]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
re PR rtl-optimization/78669 (ICE: in combine_and_move_insns, at ira.c:3665 with...
[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
8b198102
FXC
609IEEE_SUPPORT
610IEEE_SUPPORT_FALSE
611IEEE_SUPPORT_TRUE
5213506e 612FPU_HOST_HEADER
1ec601bf
FXC
613LIBGFOR_BUILD_QUAD_FALSE
614LIBGFOR_BUILD_QUAD_TRUE
615LIBQUADINCLUDE
616LIBQUADLIB_DEP
617LIBQUADLIB
618LIBQUADSPEC
5213506e
RW
619extra_ldflags_libgfortran
620ac_ct_FC
621FCFLAGS
622FC
623enable_static
624enable_shared
7de6ba7a 625lt_host_flags
5213506e
RW
626OTOOL64
627OTOOL
628LIPO
629NMEDIT
630DSYMUTIL
5213506e
RW
631OBJDUMP
632LN_S
633NM
634ac_ct_DUMPBIN
635DUMPBIN
636LD
637FGREP
5213506e
RW
638SED
639LIBTOOL
640RANLIB
641AR
642AS
643SECTION_FLAGS
ee95f928
BS
644LIBGFOR_MINIMAL_FALSE
645LIBGFOR_MINIMAL_TRUE
49ea7a0e
RO
646LIBGFOR_USE_SYMVER_SUN_FALSE
647LIBGFOR_USE_SYMVER_SUN_TRUE
648LIBGFOR_USE_SYMVER_GNU_FALSE
649LIBGFOR_USE_SYMVER_GNU_TRUE
5213506e
RW
650LIBGFOR_USE_SYMVER_FALSE
651LIBGFOR_USE_SYMVER_TRUE
652AM_CFLAGS
653AM_FCFLAGS
21be0a5a
JB
654toolexeclibdir
655toolexecdir
656EGREP
657GREP
658CPP
5213506e
RW
659am__fastdepCC_FALSE
660am__fastdepCC_TRUE
661CCDEPMODE
c20fdb91 662am__nodep
5213506e
RW
663AMDEPBACKSLASH
664AMDEP_FALSE
665AMDEP_TRUE
666am__quote
667am__include
668DEPDIR
669OBJEXT
670EXEEXT
671ac_ct_CC
672CPPFLAGS
673LDFLAGS
674CFLAGS
675CC
5213506e
RW
676multi_basedir
677MAINT
678MAINTAINER_MODE_FALSE
679MAINTAINER_MODE_TRUE
680am__untar
681am__tar
682AMTAR
683am__leading_dot
684SET_MAKE
685AWK
686mkdir_p
687MKDIR_P
688INSTALL_STRIP_PROGRAM
689STRIP
690install_sh
691MAKEINFO
692AUTOHEADER
693AUTOMAKE
694AUTOCONF
695ACLOCAL
696VERSION
697PACKAGE
698CYGPATH_W
699am__isrc
700INSTALL_DATA
701INSTALL_SCRIPT
702INSTALL_PROGRAM
60858d8a 703target_noncanonical
5213506e
RW
704target_os
705target_vendor
706target_cpu
707target
708host_os
709host_vendor
710host_cpu
711host
712onestep
713onestep_FALSE
714onestep_TRUE
715target_subdir
716host_subdir
717build_subdir
718build_libsubdir
719build_os
720build_vendor
721build_cpu
722build
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
6de9cd9a 761ac_subst_files=''
5213506e
RW
762ac_user_opts='
763enable_option_checking
764with_build_libsubdir
765enable_version_specific_runtime_libs
766enable_intermodule
767enable_maintainer_mode
768enable_multilib
769enable_dependency_tracking
bf382f5f 770enable_symvers
5213506e
RW
771enable_shared
772enable_static
773with_pic
774enable_fast_install
775with_gnu_ld
776enable_libtool_lock
777enable_largefile
87e6d9dc 778enable_libquadmath_support
5213506e
RW
779'
780 ac_precious_vars='build_alias
781host_alias
782target_alias
21be0a5a
JB
783CC
784CFLAGS
785LDFLAGS
786LIBS
5213506e 787CPPFLAGS
21be0a5a 788CPP
5213506e 789FC
21be0a5a 790FCFLAGS'
5213506e 791
6de9cd9a
DN
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
5213506e
RW
796ac_unrecognized_opts=
797ac_unrecognized_sep=
6de9cd9a
DN
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 820# (The list follows the same order as the GNU Coding Standards.)
6de9cd9a
DN
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
5213506e
RW
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
6de9cd9a
DN
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
6de9cd9a
DN
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
5213506e
RW
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
6de9cd9a
DN
840
841ac_prev=
5213506e 842ac_dashdash=
6de9cd9a
DN
843for ac_option
844do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
5213506e 847 eval $ac_prev=\$ac_option
6de9cd9a
DN
848 ac_prev=
849 continue
850 fi
851
5213506e
RW
852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
6de9cd9a
DN
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
5213506e
RW
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
6de9cd9a
DN
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
5213506e 883 -datadir | --datadir | --datadi | --datad)
6de9cd9a 884 ac_prev=datadir ;;
5213506e 885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6de9cd9a
DN
886 datadir=$ac_optarg ;;
887
5213506e
RW
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
6de9cd9a 895 -disable-* | --disable-*)
5213506e 896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6de9cd9a 897 # Reject names that are not valid shell variable names.
5213506e
RW
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904"enable_$ac_useropt"
905"*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
6de9cd9a
DN
920
921 -enable-* | --enable-*)
5213506e 922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6de9cd9a 923 # Reject names that are not valid shell variable names.
5213506e
RW
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
38d24731 934 esac
5213506e 935 eval enable_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
5213506e
RW
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
6de9cd9a
DN
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
5213506e
RW
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
6de9cd9a 997 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 998 | --localstate | --localstat | --localsta | --localst | --locals)
6de9cd9a
DN
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6de9cd9a
DN
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
5213506e
RW
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
6de9cd9a
DN
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
5213506e 1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
6de9cd9a 1127 # Reject names that are not valid shell variable names.
5213506e
RW
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134"with_$ac_useropt"
1135"*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
38d24731 1138 esac
5213506e 1139 eval with_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
1140
1141 -without-* | --without-*)
5213506e 1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6de9cd9a 1143 # Reject names that are not valid shell variable names.
5213506e
RW
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150"with_$ac_useropt"
1151"*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
6de9cd9a
DN
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
5213506e
RW
1175 -*) as_fn_error "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information."
6de9cd9a
DN
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
5213506e
RW
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
6de9cd9a
DN
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
5213506e 1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6de9cd9a 1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6de9cd9a
DN
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1202 as_fn_error "missing argument to $ac_option"
6de9cd9a
DN
1203fi
1204
5213506e
RW
1205if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
38d24731 1210 esac
5213506e 1211fi
38d24731 1212
5213506e
RW
1213# Check all directory arguments for consistency.
1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
38d24731 1218do
5213506e
RW
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
38d24731 1227 case $ac_val in
5213506e
RW
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6de9cd9a 1230 esac
5213506e 1231 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
6de9cd9a
DN
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
5213506e 1245 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
6de9cd9a
DN
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1249 fi
1250fi
1251
1252ac_tool_prefix=
1253test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255test "$silent" = yes && exec 6>/dev/null
1256
1257
5213506e
RW
1258ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259ac_ls_di=`ls -di .` &&
1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error "working directory cannot be determined"
1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error "pwd does not report name of working directory"
1264
1265
6de9cd9a
DN
1266# Find the source files, if location was not specified.
1267if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
5213506e
RW
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275$as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\).*/{
1289 s//\1/
1290 q
1291 }
1292 s/.*/./; q'`
6de9cd9a 1293 srcdir=$ac_confdir
5213506e 1294 if test ! -r "$srcdir/$ac_unique_file"; then
6de9cd9a
DN
1295 srcdir=..
1296 fi
1297else
1298 ac_srcdir_defaulted=no
1299fi
5213506e
RW
1300if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1303fi
1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1307 pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
6de9cd9a
DN
1324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
0dce3ca1 1332\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
6de9cd9a
DN
1333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
6de9cd9a
DN
1352Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1354 [$ac_default_prefix]
6de9cd9a 1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1356 [PREFIX]
6de9cd9a
DN
1357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
5213506e
RW
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
6de9cd9a
DN
1385_ACEOF
1386
1387 cat <<\_ACEOF
1388
1389Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393
1394System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 1397 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
1398_ACEOF
1399fi
1400
1401if test -n "$ac_init_help"; then
1402 case $ac_init_help in
0dce3ca1 1403 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
6de9cd9a
DN
1404 esac
1405 cat <<\_ACEOF
1406
1407Optional Features:
5213506e 1408 --disable-option-checking ignore unrecognized --enable/--with options
6de9cd9a
DN
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87e6d9dc
TB
1411 --enable-version-specific-runtime-libs
1412 specify that runtime libraries should be installed
1413 in a compiler-specific directory
b808ac33 1414 --enable-intermodule build the library in one step
6de9cd9a
DN
1415 --enable-maintainer-mode enable make rules and dependencies not useful
1416 (and sometimes confusing) to the casual installer
96b8a615 1417 --enable-multilib build many library versions (default)
679c0f9a
TT
1418 --disable-dependency-tracking speeds up one-time build
1419 --enable-dependency-tracking do not reject slow dependency extractors
bf382f5f 1420 --disable-symvers disable symbol versioning for libgfortran
5213506e
RW
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
6de9cd9a 1425 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 1426 --disable-largefile omit support for large files
87e6d9dc
TB
1427 --disable-libquadmath-support
1428 disable libquadmath support for Fortran
6de9cd9a
DN
1429
1430Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1433 --with-build-libsubdir=DIR Directory where to find libraries for build system
1cf3d07d
SE
1434 --with-pic try to use only PIC/non-PIC objects [default=use
1435 both]
1436 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
6de9cd9a
DN
1437
1438Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
5213506e
RW
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1cf3d07d 1446 CPP C preprocessor
c7a35fe9
AS
1447 FC Fortran compiler command
1448 FCFLAGS Fortran compiler flags
6de9cd9a
DN
1449
1450Use these variables to override the choices made by `configure' or to help
1451it to find libraries and programs with nonstandard names/locations.
1452
5213506e
RW
1453Report bugs to the package provider.
1454GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1455General help using GNU software: <http://www.gnu.org/gethelp/>.
6de9cd9a 1456_ACEOF
5213506e 1457ac_status=$?
6de9cd9a
DN
1458fi
1459
1460if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
6de9cd9a 1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
6de9cd9a
DN
1466 ac_builddir=.
1467
5213506e
RW
1468case "$ac_dir" in
1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470*)
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478esac
1479ac_abs_top_builddir=$ac_pwd
1480ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481# for backward compatibility:
1482ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
1483
1484case $srcdir in
5213506e 1485 .) # We are building in place.
6de9cd9a 1486 ac_srcdir=.
5213506e
RW
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 1490 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
78511f8b 1497esac
5213506e
RW
1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
6de9cd9a 1508 else
5213506e
RW
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
6de9cd9a
DN
1512 done
1513fi
1514
5213506e 1515test -n "$ac_init_help" && exit $ac_status
6de9cd9a
DN
1516if $ac_init_version; then
1517 cat <<\_ACEOF
0dce3ca1 1518GNU Fortran Runtime Library configure 0.3
5213506e 1519generated by GNU Autoconf 2.64
6de9cd9a 1520
5213506e 1521Copyright (C) 2009 Free Software Foundation, Inc.
6de9cd9a
DN
1522This configure script is free software; the Free Software Foundation
1523gives unlimited permission to copy, distribute and modify it.
1524_ACEOF
5213506e 1525 exit
6de9cd9a 1526fi
6de9cd9a 1527
5213506e
RW
1528## ------------------------ ##
1529## Autoconf initialization. ##
1530## ------------------------ ##
6de9cd9a 1531
5213506e
RW
1532# ac_fn_c_try_compile LINENO
1533# --------------------------
1534# Try to compile conftest.$ac_ext, and return whether this succeeded.
1535ac_fn_c_try_compile ()
1536{
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543esac
1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545$as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1552 fi
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559else
1560 $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1562
5213506e
RW
1563 ac_retval=1
1564fi
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1566 return $ac_retval
1567
1568} # ac_fn_c_try_compile
1569
21be0a5a
JB
1570# ac_fn_c_try_cpp LINENO
1571# ----------------------
1572# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_cpp ()
6de9cd9a 1574{
5213506e 1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1576 if { { ac_try="$ac_cpp conftest.$ac_ext"
5213506e
RW
1577case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
21be0a5a 1583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5213506e
RW
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21be0a5a
JB
1591 test $ac_status = 0; } >/dev/null && {
1592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5213506e 1593 test ! -s conftest.err
5213506e
RW
1594 }; then :
1595 ac_retval=0
1596else
1597 $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1599
21be0a5a 1600 ac_retval=1
5213506e 1601fi
5213506e
RW
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 return $ac_retval
6de9cd9a 1604
21be0a5a 1605} # ac_fn_c_try_cpp
6de9cd9a 1606
21be0a5a 1607# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5213506e 1608# -------------------------------------------------------
21be0a5a
JB
1609# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1610# the include files in INCLUDES and setting the cache variable VAR
1611# accordingly.
1612ac_fn_c_check_header_mongrel ()
5213506e
RW
1613{
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1615 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
5213506e
RW
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617$as_echo_n "checking for $2... " >&6; }
1618if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1619 $as_echo_n "(cached) " >&6
21be0a5a
JB
1620fi
1621eval ac_res=\$$3
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623$as_echo "$ac_res" >&6; }
5213506e 1624else
21be0a5a
JB
1625 # Is the header compilable?
1626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1627$as_echo_n "checking $2 usability... " >&6; }
1628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e
RW
1629/* end confdefs.h. */
1630$4
1631#include <$2>
1632_ACEOF
1633if ac_fn_c_try_compile "$LINENO"; then :
21be0a5a 1634 ac_header_compiler=yes
5213506e 1635else
21be0a5a 1636 ac_header_compiler=no
5213506e
RW
1637fi
1638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21be0a5a
JB
1639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1640$as_echo "$ac_header_compiler" >&6; }
6de9cd9a 1641
21be0a5a
JB
1642# Is the header present?
1643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1644$as_echo_n "checking $2 presence... " >&6; }
1645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646/* end confdefs.h. */
1647#include <$2>
1648_ACEOF
1649if ac_fn_c_try_cpp "$LINENO"; then :
1650 ac_header_preproc=yes
1651else
1652 ac_header_preproc=no
1653fi
1654rm -f conftest.err conftest.$ac_ext
1655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1656$as_echo "$ac_header_preproc" >&6; }
6de9cd9a 1657
21be0a5a
JB
1658# So? What about this header?
1659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1660 yes:no: )
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1662$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1664$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1665 ;;
1666 no:yes:* )
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1668$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1670$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1672$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1674$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1677 ;;
5213506e 1678esac
21be0a5a
JB
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680$as_echo_n "checking for $2... " >&6; }
1681if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
5213506e 1683else
21be0a5a
JB
1684 eval "$3=\$ac_header_compiler"
1685fi
1686eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688$as_echo "$ac_res" >&6; }
5213506e
RW
1689fi
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 1691
21be0a5a 1692} # ac_fn_c_check_header_mongrel
6de9cd9a 1693
5213506e
RW
1694# ac_fn_c_try_run LINENO
1695# ----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697# that executables *can* be run.
1698ac_fn_c_try_run ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1727
5213506e
RW
1728 ac_retval=$ac_status
1729fi
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
6de9cd9a 1733
5213506e 1734} # ac_fn_c_try_run
6de9cd9a 1735
21be0a5a
JB
1736# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737# -------------------------------------------------------
1738# Tests whether HEADER exists and can be compiled using the include files in
1739# INCLUDES, setting the cache variable VAR accordingly.
1740ac_fn_c_check_header_compile ()
1741{
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744$as_echo_n "checking for $2... " >&6; }
1745if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1747else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h. */
1750$4
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755else
1756 eval "$3=no"
1757fi
1758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759fi
1760eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764
1765} # ac_fn_c_check_header_compile
1766
1767# ac_fn_c_try_link LINENO
1768# -----------------------
1769# Try to link conftest.$ac_ext, and return whether this succeeded.
1770ac_fn_c_try_link ()
1771{
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1775case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1787 fi
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 $as_test_x conftest$ac_exeext
1795 }; then :
1796 ac_retval=0
1797else
1798 $as_echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 ac_retval=1
1802fi
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 return $ac_retval
1810
1811} # ac_fn_c_try_link
1812
5213506e
RW
1813# ac_fn_c_check_func LINENO FUNC VAR
1814# ----------------------------------
1815# Tests whether FUNC exists, setting the cache variable VAR accordingly
1816ac_fn_c_check_func ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1823else
1824 if test x$gcc_no_link = xyes; then
1825 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1826fi
1827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h. */
1829/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831#define $2 innocuous_$2
6de9cd9a 1832
5213506e
RW
1833/* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
6de9cd9a 1837
5213506e
RW
1838#ifdef __STDC__
1839# include <limits.h>
1840#else
1841# include <assert.h>
1842#endif
6de9cd9a 1843
5213506e
RW
1844#undef $2
1845
1846/* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849#ifdef __cplusplus
1850extern "C"
1851#endif
1852char $2 ();
1853/* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856#if defined __stub_$2 || defined __stub___$2
1857choke me
1858#endif
1859
1860int
1861main ()
38d24731 1862{
5213506e
RW
1863return $2 ();
1864 ;
1865 return 0;
38d24731 1866}
5213506e
RW
1867_ACEOF
1868if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870else
1871 eval "$3=no"
1872fi
1873rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1875fi
1876eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 1880
5213506e 1881} # ac_fn_c_check_func
6de9cd9a 1882
5213506e
RW
1883# ac_fn_fc_try_compile LINENO
1884# ---------------------------
1885# Try to compile conftest.$ac_ext, and return whether this succeeded.
1886ac_fn_fc_try_compile ()
1887{
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1891case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894esac
1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896$as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1903 fi
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_fc_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1909 ac_retval=0
1910else
1911 $as_echo "$as_me: failed program was:" >&5
1912sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1913
5213506e
RW
1914 ac_retval=1
1915fi
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
6de9cd9a 1918
5213506e 1919} # ac_fn_fc_try_compile
6de9cd9a 1920
5213506e
RW
1921# ac_fn_fc_try_link LINENO
1922# ------------------------
1923# Try to link conftest.$ac_ext, and return whether this succeeded.
1924ac_fn_fc_try_link ()
1925{
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1929case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932esac
1933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934$as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1941 fi
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_fc_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 $as_test_x conftest$ac_exeext
1949 }; then :
1950 ac_retval=0
1951else
1952 $as_echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1954
5213506e
RW
1955 ac_retval=1
1956fi
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 return $ac_retval
6de9cd9a 1964
5213506e 1965} # ac_fn_fc_try_link
6de9cd9a 1966
5213506e
RW
1967# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1968# -------------------------------------------
1969# Tests whether TYPE exists after having included INCLUDES, setting cache
1970# variable VAR accordingly.
1971ac_fn_c_check_type ()
1972{
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975$as_echo_n "checking for $2... " >&6; }
1976if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977 $as_echo_n "(cached) " >&6
1978else
1979 eval "$3=no"
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h. */
1982$4
1983int
1984main ()
1985{
1986if (sizeof ($2))
1987 return 0;
1988 ;
1989 return 0;
1990}
6de9cd9a 1991_ACEOF
5213506e
RW
1992if ac_fn_c_try_compile "$LINENO"; then :
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h. */
1995$4
1996int
1997main ()
1998{
1999if (sizeof (($2)))
2000 return 0;
2001 ;
2002 return 0;
2003}
6de9cd9a 2004_ACEOF
5213506e 2005if ac_fn_c_try_compile "$LINENO"; then :
6de9cd9a 2006
5213506e
RW
2007else
2008 eval "$3=yes"
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011fi
2012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013fi
2014eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016$as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 2018
5213506e 2019} # ac_fn_c_check_type
6de9cd9a 2020
21be0a5a
JB
2021# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2022# --------------------------------------------
2023# Tries to find the compile-time value of EXPR in a program that includes
2024# INCLUDES, setting VAR accordingly. Returns whether the value could be
2025# computed
2026ac_fn_c_compute_int ()
5213506e
RW
2027{
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c13e029b
PB
2029 if test "$cross_compiling" = yes; then
2030 # Depending upon the size, compute the lo and hi bounds.
2031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2032/* end confdefs.h. */
c13e029b 2033$4
5213506e
RW
2034int
2035main ()
2036{
c13e029b 2037static int test_array [1 - 2 * !(($2) >= 0)];
5213506e 2038test_array [0] = 0
6de9cd9a 2039
5213506e
RW
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2045 ac_lo=0 ac_mid=0
2046 while :; do
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2048/* end confdefs.h. */
c13e029b 2049$4
5213506e
RW
2050int
2051main ()
2052{
c13e029b 2053static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5213506e 2054test_array [0] = 0
6de9cd9a 2055
5213506e
RW
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"; then :
c13e029b 2061 ac_hi=$ac_mid; break
5213506e 2062else
c13e029b
PB
2063 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2064 if test $ac_lo -le $ac_mid; then
2065 ac_lo= ac_hi=
2066 break
2067 fi
2068 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5213506e
RW
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2071 done
2072else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h. */
2075$4
2076int
2077main ()
2078{
2079static int test_array [1 - 2 * !(($2) < 0)];
2080test_array [0] = 0
2081
2082 ;
2083 return 0;
2084}
2085_ACEOF
2086if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=-1 ac_mid=-1
2088 while :; do
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h. */
2091$4
2092int
2093main ()
2094{
2095static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2096test_array [0] = 0
2097
2098 ;
2099 return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_lo=$ac_mid; break
2104else
2105 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2106 if test $ac_mid -le $ac_hi; then
2107 ac_lo= ac_hi=
2108 break
2109 fi
2110 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
5213506e
RW
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b 2113 done
d72a3ac1 2114else
c13e029b 2115 ac_lo= ac_hi=
5213506e 2116fi
c13e029b 2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d72a3ac1 2118fi
c13e029b
PB
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120# Binary search between lo and hi bounds.
2121while test "x$ac_lo" != "x$ac_hi"; do
2122 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2124/* end confdefs.h. */
c13e029b 2125$4
5213506e
RW
2126int
2127main ()
2128{
c13e029b 2129static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5213506e 2130test_array [0] = 0
6de9cd9a 2131
5213506e
RW
2132 ;
2133 return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2137 ac_hi=$ac_mid
2138else
2139 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
5213506e
RW
2140fi
2141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2142done
2143case $ac_lo in #((
2144?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2145'') ac_retval=1 ;;
2146esac
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h. */
2150$4
2151static long int longval () { return $2; }
2152static unsigned long int ulongval () { return $2; }
2153#include <stdio.h>
2154#include <stdlib.h>
2155int
2156main ()
2157{
6de9cd9a 2158
c13e029b
PB
2159 FILE *f = fopen ("conftest.val", "w");
2160 if (! f)
2161 return 1;
2162 if (($2) < 0)
2163 {
2164 long int i = longval ();
2165 if (i != ($2))
2166 return 1;
2167 fprintf (f, "%ld", i);
2168 }
2169 else
2170 {
2171 unsigned long int i = ulongval ();
2172 if (i != ($2))
2173 return 1;
2174 fprintf (f, "%lu", i);
2175 }
2176 /* Do not output a trailing newline, as this causes \r\n confusion
2177 on some platforms. */
2178 return ferror (f) || fclose (f) != 0;
2179
2180 ;
2181 return 0;
2182}
2183_ACEOF
2184if ac_fn_c_try_run "$LINENO"; then :
2185 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
5213506e 2186else
c13e029b 2187 ac_retval=1
d72a3ac1 2188fi
c13e029b
PB
2189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2190 conftest.$ac_objext conftest.beam conftest.$ac_ext
2191rm -f conftest.val
2192
2193 fi
5213506e 2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
c13e029b 2195 return $ac_retval
6de9cd9a 2196
c13e029b 2197} # ac_fn_c_compute_int
6de9cd9a 2198
5213506e
RW
2199# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2200# ----------------------------------------------------
2201# Tries to find if the field MEMBER exists in type AGGR, after including
2202# INCLUDES, setting cache variable VAR accordingly.
2203ac_fn_c_check_member ()
2204{
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2207$as_echo_n "checking for $2.$3... " >&6; }
2208if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2210else
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212/* end confdefs.h. */
2213$5
2214int
2215main ()
2216{
2217static $2 ac_aggr;
2218if (ac_aggr.$3)
2219return 0;
2220 ;
2221 return 0;
2222}
2223_ACEOF
2224if ac_fn_c_try_compile "$LINENO"; then :
2225 eval "$4=yes"
2226else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228/* end confdefs.h. */
2229$5
2230int
2231main ()
2232{
2233static $2 ac_aggr;
2234if (sizeof ac_aggr.$3)
2235return 0;
2236 ;
2237 return 0;
2238}
2239_ACEOF
2240if ac_fn_c_try_compile "$LINENO"; then :
2241 eval "$4=yes"
2242else
2243 eval "$4=no"
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246fi
2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248fi
2249eval ac_res=\$$4
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251$as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 2253
5213506e
RW
2254} # ac_fn_c_check_member
2255cat >config.log <<_ACEOF
2256This file contains any messages produced by compilers while
2257running configure, to aid debugging if configure makes a mistake.
6de9cd9a 2258
5213506e
RW
2259It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2260generated by GNU Autoconf 2.64. Invocation command line was
6de9cd9a 2261
5213506e 2262 $ $0 $@
6de9cd9a 2263
5213506e
RW
2264_ACEOF
2265exec 5>>config.log
2266{
2267cat <<_ASUNAME
2268## --------- ##
2269## Platform. ##
2270## --------- ##
6de9cd9a 2271
5213506e
RW
2272hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2273uname -m = `(uname -m) 2>/dev/null || echo unknown`
2274uname -r = `(uname -r) 2>/dev/null || echo unknown`
2275uname -s = `(uname -s) 2>/dev/null || echo unknown`
2276uname -v = `(uname -v) 2>/dev/null || echo unknown`
6de9cd9a 2277
5213506e
RW
2278/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2279/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
6de9cd9a 2280
5213506e
RW
2281/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2282/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2283/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2284/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2285/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2286/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2287/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
6de9cd9a 2288
5213506e 2289_ASUNAME
18c04407 2290
5213506e
RW
2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2293do
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 $as_echo "PATH: $as_dir"
2297 done
2298IFS=$as_save_IFS
18c04407 2299
5213506e 2300} >&5
18c04407 2301
5213506e 2302cat >&5 <<_ACEOF
6de9cd9a
DN
2303
2304
5213506e
RW
2305## ----------- ##
2306## Core tests. ##
2307## ----------- ##
78511f8b 2308
5213506e 2309_ACEOF
38d24731 2310
96b8a615 2311
5213506e
RW
2312# Keep a trace of the command line.
2313# Strip out --no-create and --no-recursion so they do not pile up.
2314# Strip out --silent because we don't want to record it for future runs.
2315# Also quote any args containing shell meta-characters.
2316# Make two passes to allow for proper duplicate-argument suppression.
2317ac_configure_args=
2318ac_configure_args0=
2319ac_configure_args1=
2320ac_must_keep_next=false
2321for ac_pass in 1 2
2322do
2323 for ac_arg
2324 do
2325 case $ac_arg in
2326 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2328 | -silent | --silent | --silen | --sile | --sil)
2329 continue ;;
2330 *\'*)
2331 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2332 esac
2333 case $ac_pass in
2334 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2335 2)
2336 as_fn_append ac_configure_args1 " '$ac_arg'"
2337 if test $ac_must_keep_next = true; then
2338 ac_must_keep_next=false # Got value, back to normal.
2339 else
2340 case $ac_arg in
2341 *=* | --config-cache | -C | -disable-* | --disable-* \
2342 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2343 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2344 | -with-* | --with-* | -without-* | --without-* | --x)
2345 case "$ac_configure_args0 " in
2346 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2347 esac
2348 ;;
2349 -* ) ac_must_keep_next=true ;;
2350 esac
2351 fi
2352 as_fn_append ac_configure_args " '$ac_arg'"
2353 ;;
2354 esac
2355 done
6de9cd9a 2356done
5213506e
RW
2357{ ac_configure_args0=; unset ac_configure_args0;}
2358{ ac_configure_args1=; unset ac_configure_args1;}
96b8a615 2359
5213506e
RW
2360# When interrupted or exit'd, cleanup temporary files, and complete
2361# config.log. We remove comments because anyway the quotes in there
2362# would cause problems or look ugly.
2363# WARNING: Use '\'' to represent an apostrophe within the trap.
2364# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2365trap 'exit_status=$?
2366 # Save into config.log some information that might help in debugging.
2367 {
2368 echo
96b8a615 2369
5213506e
RW
2370 cat <<\_ASBOX
2371## ---------------- ##
2372## Cache variables. ##
2373## ---------------- ##
2374_ASBOX
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2377(
2378 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in #(
2381 *${as_nl}*)
2382 case $ac_var in #(
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 esac
2386 case $ac_var in #(
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2390 esac ;;
2391 esac
2392 done
2393 (set) 2>&1 |
2394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2396 sed -n \
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 ;; #(
2400 *)
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402 ;;
2403 esac |
2404 sort
2405)
2406 echo
2407
2408 cat <<\_ASBOX
2409## ----------------- ##
2410## Output variables. ##
2411## ----------------- ##
2412_ASBOX
2413 echo
2414 for ac_var in $ac_subst_vars
2415 do
2416 eval ac_val=\$$ac_var
2417 case $ac_val in
2418 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 esac
2420 $as_echo "$ac_var='\''$ac_val'\''"
2421 done | sort
2422 echo
2423
2424 if test -n "$ac_subst_files"; then
2425 cat <<\_ASBOX
2426## ------------------- ##
2427## File substitutions. ##
2428## ------------------- ##
2429_ASBOX
2430 echo
2431 for ac_var in $ac_subst_files
2432 do
2433 eval ac_val=\$$ac_var
2434 case $ac_val in
2435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 esac
2437 $as_echo "$ac_var='\''$ac_val'\''"
2438 done | sort
2439 echo
2440 fi
2441
2442 if test -s confdefs.h; then
2443 cat <<\_ASBOX
2444## ----------- ##
2445## confdefs.h. ##
2446## ----------- ##
2447_ASBOX
2448 echo
2449 cat confdefs.h
2450 echo
2451 fi
2452 test "$ac_signal" != 0 &&
2453 $as_echo "$as_me: caught signal $ac_signal"
2454 $as_echo "$as_me: exit $exit_status"
2455 } >&5
2456 rm -f core *.core core.conftest.* &&
2457 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2458 exit $exit_status
2459' 0
2460for ac_signal in 1 2 13 15; do
2461 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2462done
2463ac_signal=0
2464
2465# confdefs.h avoids OS command line length limits that DEFS can exceed.
2466rm -f -r conftest* confdefs.h
2467
2468$as_echo "/* confdefs.h */" > confdefs.h
2469
2470# Predefined preprocessor variables.
2471
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_NAME "$PACKAGE_NAME"
2474_ACEOF
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478_ACEOF
2479
2480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_VERSION "$PACKAGE_VERSION"
2482_ACEOF
2483
2484cat >>confdefs.h <<_ACEOF
2485#define PACKAGE_STRING "$PACKAGE_STRING"
2486_ACEOF
2487
2488cat >>confdefs.h <<_ACEOF
2489#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490_ACEOF
2491
2492cat >>confdefs.h <<_ACEOF
2493#define PACKAGE_URL "$PACKAGE_URL"
2494_ACEOF
2495
2496
2497# Let the site file select an alternate cache file if it wants to.
2498# Prefer an explicitly selected file to automatically selected ones.
2499ac_site_file1=NONE
2500ac_site_file2=NONE
2501if test -n "$CONFIG_SITE"; then
2502 ac_site_file1=$CONFIG_SITE
2503elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2509fi
2510for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511do
2512 test "x$ac_site_file" = xNONE && continue
2513 if test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2517 . "$ac_site_file"
2518 fi
2519done
2520
2521if test -r "$cache_file"; then
2522 # Some versions of bash will fail to source /dev/null (special
2523 # files actually), so we avoid doing that.
2524 if test -f "$cache_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2526$as_echo "$as_me: loading cache $cache_file" >&6;}
2527 case $cache_file in
2528 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2529 *) . "./$cache_file";;
2530 esac
2531 fi
2532else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2534$as_echo "$as_me: creating cache $cache_file" >&6;}
2535 >$cache_file
2536fi
2537
74544378
JB
2538as_fn_append ac_header_list " unistd.h"
2539as_fn_append ac_header_list " sys/time.h"
2540as_fn_append ac_header_list " sys/times.h"
2541as_fn_append ac_header_list " sys/resource.h"
2542as_fn_append ac_header_list " sys/types.h"
2543as_fn_append ac_header_list " sys/stat.h"
2544as_fn_append ac_header_list " sys/wait.h"
2545as_fn_append ac_header_list " floatingpoint.h"
2546as_fn_append ac_header_list " ieeefp.h"
2547as_fn_append ac_header_list " fenv.h"
2548as_fn_append ac_header_list " fptrap.h"
fa86f4f9 2549as_fn_append ac_header_list " fpxcp.h"
74544378
JB
2550as_fn_append ac_header_list " pwd.h"
2551as_fn_append ac_header_list " complex.h"
9cbecd06 2552as_fn_append ac_header_list " xlocale.h"
74544378
JB
2553as_fn_append ac_func_list " getrusage"
2554as_fn_append ac_func_list " times"
2555as_fn_append ac_func_list " mkstemp"
2556as_fn_append ac_func_list " strtof"
2557as_fn_append ac_func_list " strtold"
2558as_fn_append ac_func_list " snprintf"
2559as_fn_append ac_func_list " ftruncate"
2560as_fn_append ac_func_list " chsize"
2561as_fn_append ac_func_list " chdir"
2562as_fn_append ac_func_list " getlogin"
2563as_fn_append ac_func_list " gethostname"
2564as_fn_append ac_func_list " kill"
2565as_fn_append ac_func_list " link"
2566as_fn_append ac_func_list " symlink"
2567as_fn_append ac_func_list " sleep"
2568as_fn_append ac_func_list " ttyname"
2569as_fn_append ac_func_list " alarm"
2570as_fn_append ac_func_list " access"
2571as_fn_append ac_func_list " fork"
74544378 2572as_fn_append ac_func_list " setmode"
b5b58343 2573as_fn_append ac_func_list " fcntl"
74544378
JB
2574as_fn_append ac_func_list " gettimeofday"
2575as_fn_append ac_func_list " stat"
2576as_fn_append ac_func_list " fstat"
2577as_fn_append ac_func_list " lstat"
2578as_fn_append ac_func_list " getpwuid"
2579as_fn_append ac_func_list " vsnprintf"
2580as_fn_append ac_func_list " dup"
2581as_fn_append ac_func_list " getcwd"
2582as_fn_append ac_func_list " localtime_r"
2583as_fn_append ac_func_list " gmtime_r"
74544378
JB
2584as_fn_append ac_func_list " getpwuid_r"
2585as_fn_append ac_func_list " ttyname_r"
2586as_fn_append ac_func_list " clock_gettime"
74544378
JB
2587as_fn_append ac_func_list " getgid"
2588as_fn_append ac_func_list " getpid"
74544378
JB
2589as_fn_append ac_func_list " getuid"
2590as_fn_append ac_func_list " geteuid"
8ecd1c0d 2591as_fn_append ac_func_list " umask"
68ee9c08 2592as_fn_append ac_func_list " getegid"
227e441f 2593as_fn_append ac_func_list " secure_getenv"
68ee9c08 2594as_fn_append ac_func_list " __secure_getenv"
c20fdb91 2595as_fn_append ac_func_list " mkostemp"
4269f19c
JB
2596as_fn_append ac_func_list " strnlen"
2597as_fn_append ac_func_list " strndup"
9cbecd06
JB
2598as_fn_append ac_func_list " newlocale"
2599as_fn_append ac_func_list " freelocale"
2600as_fn_append ac_func_list " uselocale"
2601as_fn_append ac_func_list " strerror_l"
db9f46a9 2602as_fn_append ac_header_list " math.h"
5213506e
RW
2603# Check that the precious variables saved in the cache have kept the same
2604# value.
2605ac_cache_corrupted=false
2606for ac_var in $ac_precious_vars; do
2607 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2608 eval ac_new_set=\$ac_env_${ac_var}_set
2609 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2610 eval ac_new_val=\$ac_env_${ac_var}_value
2611 case $ac_old_set,$ac_new_set in
2612 set,)
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2614$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2615 ac_cache_corrupted=: ;;
2616 ,set)
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2618$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2620 ,);;
2621 *)
2622 if test "x$ac_old_val" != "x$ac_new_val"; then
2623 # differences in whitespace do not lead to failure.
2624 ac_old_val_w=`echo x $ac_old_val`
2625 ac_new_val_w=`echo x $ac_new_val`
2626 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2628$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2629 ac_cache_corrupted=:
2630 else
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2632$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2633 eval $ac_var=\$ac_old_val
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2636$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2638$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2639 fi;;
2640 esac
2641 # Pass precious variables to config.status.
2642 if test "$ac_new_set" = set; then
2643 case $ac_new_val in
2644 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2645 *) ac_arg=$ac_var=$ac_new_val ;;
2646 esac
2647 case " $ac_configure_args " in
2648 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2649 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2650 esac
2651 fi
2652done
2653if $ac_cache_corrupted; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2657$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2658 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2659fi
2660## -------------------- ##
2661## Main body of script. ##
2662## -------------------- ##
2663
2664ac_ext=c
2665ac_cpp='$CPP $CPPFLAGS'
2666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669
2670
2671
2672
2673
2674ac_config_headers="$ac_config_headers config.h"
2675
2676ac_aux_dir=
2677for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2678 for ac_t in install-sh install.sh shtool; do
2679 if test -f "$ac_dir/$ac_t"; then
2680 ac_aux_dir=$ac_dir
2681 ac_install_sh="$ac_aux_dir/$ac_t -c"
2682 break 2
2683 fi
2684 done
2685done
2686if test -z "$ac_aux_dir"; then
2687 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2688fi
2689
2690# These three variables are undocumented and unsupported,
2691# and are intended to be withdrawn in a future Autoconf release.
2692# They can cause serious problems if a builder's source tree is in a directory
2693# whose full name contains unusual characters.
2694ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2695ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2696ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2697
2698
2699# Make sure we can run config.sub.
2700$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2701 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2702
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2704$as_echo_n "checking build system type... " >&6; }
2705if test "${ac_cv_build+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
2707else
2708 ac_build_alias=$build_alias
2709test "x$ac_build_alias" = x &&
2710 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2711test "x$ac_build_alias" = x &&
2712 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2713ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2714 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2715
2716fi
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2718$as_echo "$ac_cv_build" >&6; }
2719case $ac_cv_build in
2720*-*-*) ;;
2721*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2722esac
2723build=$ac_cv_build
2724ac_save_IFS=$IFS; IFS='-'
2725set x $ac_cv_build
2726shift
2727build_cpu=$1
2728build_vendor=$2
2729shift; shift
2730# Remember, the first character of IFS is used to create $*,
2731# except with old shells:
2732build_os=$*
2733IFS=$ac_save_IFS
2734case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2735
2736
2737 case ${build_alias} in
2738 "") build_noncanonical=${build} ;;
2739 *) build_noncanonical=${build_alias} ;;
2740esac
891c05b1
JJ
2741
2742 case ${host_alias} in
2743 "") host_noncanonical=${build_noncanonical} ;;
2744 *) host_noncanonical=${host_alias} ;;
2745esac
2746
2747 case ${target_alias} in
2748 "") target_noncanonical=${host_noncanonical} ;;
2749 *) target_noncanonical=${target_alias} ;;
2750esac
2751
57255173
PB
2752
2753# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2754# have matching libraries, they should use host libraries: Makefile.tpl
2755# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2756# However, they still use the build modules, because the corresponding
2757# host modules (e.g. bison) are only built for the host when bootstrap
2758# finishes. So:
2759# - build_subdir is where we find build modules, and never changes.
2760# - build_libsubdir is where we find build libraries, and can be overridden.
2761
2762# Prefix 'build-' so this never conflicts with target_subdir.
891c05b1 2763build_subdir="build-${build_noncanonical}"
57255173 2764
5213506e
RW
2765# Check whether --with-build-libsubdir was given.
2766if test "${with_build_libsubdir+set}" = set; then :
2767 withval=$with_build_libsubdir; build_libsubdir="$withval"
57255173
PB
2768else
2769 build_libsubdir="$build_subdir"
5213506e
RW
2770fi
2771
891c05b1
JJ
2772# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2773if ( test $srcdir = . && test -d gcc ) \
2774 || test -d $srcdir/../host-${host_noncanonical}; then
2775 host_subdir="host-${host_noncanonical}"
2776else
2777 host_subdir=.
2778fi
2779# No prefix.
2780target_subdir=${target_noncanonical}
2781
2782
2783# -------
2784# Options
2785# -------
2786
5213506e
RW
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2788$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2789# Check whether --enable-version-specific-runtime-libs was given.
2790if test "${enable_version_specific_runtime_libs+set}" = set; then :
2791 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
891c05b1
JJ
2792 yes) version_specific_libs=yes ;;
2793 no) version_specific_libs=no ;;
5213506e 2794 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
891c05b1
JJ
2795 esac
2796else
2797 version_specific_libs=no
5213506e
RW
2798fi
2799
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2801$as_echo "$version_specific_libs" >&6; }
891c05b1 2802
b808ac33 2803# Build with intermodule optimisations
5213506e
RW
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2805$as_echo_n "checking for --enable-intermodule... " >&6; }
2806# Check whether --enable-intermodule was given.
2807if test "${enable_intermodule+set}" = set; then :
2808 enableval=$enable_intermodule; case "$enable_intermodule" in
b808ac33
BF
2809 yes) onestep="-onestep";;
2810 *) onestep="";;
2811esac
2812else
2813 onestep=""
5213506e 2814fi
b808ac33 2815
5213506e
RW
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2817$as_echo "$enable_intermodule" >&6; }
2818 if test x$onestep = x-onestep; then
b808ac33
BF
2819 onestep_TRUE=
2820 onestep_FALSE='#'
2821else
2822 onestep_TRUE='#'
2823 onestep_FALSE=
2824fi
2825
2826
891c05b1
JJ
2827
2828# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2829#
2830# You will slowly go insane if you do not grok the following fact: when
2831# building this library, the top-level /target/ becomes the library's /host/.
2832#
2833# configure then causes --target to default to --host, exactly like any
2834# other package using autoconf. Therefore, 'target' and 'host' will
2835# always be the same. This makes sense both for native and cross compilers
2836# just think about it for a little while. :-)
2837#
2838# Also, if this library is being configured as part of a cross compiler, the
2839# top-level configure script will pass the "real" host as $with_cross_host.
2840#
2841# Do not delete or change the following two lines. For why, see
2842# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
5213506e
RW
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2844$as_echo_n "checking host system type... " >&6; }
2845if test "${ac_cv_host+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2847else
2848 if test "x$host_alias" = x; then
2849 ac_cv_host=$ac_cv_build
2850else
2851 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2852 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2853fi
2854
2855fi
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2857$as_echo "$ac_cv_host" >&6; }
2858case $ac_cv_host in
2859*-*-*) ;;
2860*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2861esac
96b8a615 2862host=$ac_cv_host
5213506e
RW
2863ac_save_IFS=$IFS; IFS='-'
2864set x $ac_cv_host
2865shift
2866host_cpu=$1
2867host_vendor=$2
2868shift; shift
2869# Remember, the first character of IFS is used to create $*,
2870# except with old shells:
2871host_os=$*
2872IFS=$ac_save_IFS
2873case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
38d24731
RW
2874
2875
5213506e
RW
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2877$as_echo_n "checking target system type... " >&6; }
2878if test "${ac_cv_target+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
96b8a615 2880else
5213506e
RW
2881 if test "x$target_alias" = x; then
2882 ac_cv_target=$ac_cv_host
2883else
2884 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2885 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2886fi
96b8a615
AJ
2887
2888fi
5213506e
RW
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2890$as_echo "$ac_cv_target" >&6; }
2891case $ac_cv_target in
2892*-*-*) ;;
2893*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2894esac
96b8a615 2895target=$ac_cv_target
5213506e
RW
2896ac_save_IFS=$IFS; IFS='-'
2897set x $ac_cv_target
2898shift
2899target_cpu=$1
2900target_vendor=$2
2901shift; shift
2902# Remember, the first character of IFS is used to create $*,
2903# except with old shells:
2904target_os=$*
2905IFS=$ac_save_IFS
2906case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
96b8a615
AJ
2907
2908
2909# The aliases save the names the user supplied, while $host etc.
2910# will get canonicalized.
2911test -n "$target_alias" &&
2912 test "$program_prefix$program_suffix$program_transform_name" = \
2913 NONENONEs,x,x, &&
2914 program_prefix=${target_alias}-
5213506e 2915
60858d8a
TB
2916
2917
2918
96b8a615
AJ
2919target_alias=${target_alias-$host_alias}
2920
60858d8a 2921
96b8a615
AJ
2922# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2923# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
679c0f9a 2924# 1.9.6: minimum required version
96b8a615
AJ
2925# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2926# of other PACKAGE_* variables will, however, and there's nothing
2927# we can do about that; they come from AC_INIT).
2928# foreign: we don't follow the normal rules for GNU packages (no COPYING
2929# file in the top srcdir, etc, etc), so stop complaining.
13917ae3 2930# no-dist: we don't want 'dist' and related rules.
96b8a615
AJ
2931# -Wall: turns on all automake warnings...
2932# -Wno-portability: ...except this one, since GNU make is required.
5213506e
RW
2933am__api_version='1.11'
2934
6de9cd9a
DN
2935# Find a good install program. We prefer a C program (faster),
2936# so one script is as good as another. But avoid the broken or
2937# incompatible versions:
2938# SysV /etc/install, /usr/sbin/install
2939# SunOS /usr/etc/install
2940# IRIX /sbin/install
2941# AIX /bin/install
2942# AmigaOS /C/install, which installs bootblocks on floppy discs
2943# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2944# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2945# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2946# OS/2's system install, which has a completely different semantic
2947# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2948# Reject install programs that cannot install multiple files.
5213506e
RW
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2950$as_echo_n "checking for a BSD-compatible install... " >&6; }
6de9cd9a 2951if test -z "$INSTALL"; then
5213506e
RW
2952if test "${ac_cv_path_install+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
6de9cd9a
DN
2954else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
5213506e
RW
2960 # Account for people who put trailing slashes in PATH elements.
2961case $as_dir/ in #((
2962 ./ | .// | /[cC]/* | \
6de9cd9a 2963 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2964 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6de9cd9a
DN
2965 /usr/ucb/* ) ;;
2966 *)
2967 # OSF1 and SCO ODT 3.0 have their own names for install.
2968 # Don't use installbsd from OSF since it installs stuff as root
2969 # by default.
2970 for ac_prog in ginstall scoinst install; do
2971 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2972 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6de9cd9a
DN
2973 if test $ac_prog = install &&
2974 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2975 # AIX install. It has an incompatible calling convention.
2976 :
2977 elif test $ac_prog = install &&
2978 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2979 # program-specific install script used by HP pwplus--don't use.
2980 :
2981 else
38d24731
RW
2982 rm -rf conftest.one conftest.two conftest.dir
2983 echo one > conftest.one
2984 echo two > conftest.two
2985 mkdir conftest.dir
2986 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2987 test -s conftest.one && test -s conftest.two &&
2988 test -s conftest.dir/conftest.one &&
2989 test -s conftest.dir/conftest.two
2990 then
2991 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2992 break 3
2993 fi
6de9cd9a
DN
2994 fi
2995 fi
2996 done
2997 done
2998 ;;
2999esac
5213506e
RW
3000
3001 done
3002IFS=$as_save_IFS
6de9cd9a 3003
38d24731 3004rm -rf conftest.one conftest.two conftest.dir
6de9cd9a
DN
3005
3006fi
3007 if test "${ac_cv_path_install+set}" = set; then
3008 INSTALL=$ac_cv_path_install
3009 else
f489fba1
FXC
3010 # As a last resort, use the slow shell script. Don't cache a
3011 # value for INSTALL within a source directory, because that will
6de9cd9a 3012 # break other packages using the cache if that directory is
f489fba1 3013 # removed, or if the value is a relative name.
6de9cd9a
DN
3014 INSTALL=$ac_install_sh
3015 fi
3016fi
5213506e
RW
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3018$as_echo "$INSTALL" >&6; }
6de9cd9a
DN
3019
3020# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3021# It thinks the first close brace ends the variable substitution.
3022test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3023
3024test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3025
3026test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3027
5213506e
RW
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3029$as_echo_n "checking whether build environment is sane... " >&6; }
6de9cd9a
DN
3030# Just in case
3031sleep 1
3032echo timestamp > conftest.file
5213506e
RW
3033# Reject unsafe characters in $srcdir or the absolute working directory
3034# name. Accept space and tab only in the latter.
3035am_lf='
3036'
3037case `pwd` in
3038 *[\\\"\#\$\&\'\`$am_lf]*)
3039 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3040esac
3041case $srcdir in
3042 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3043 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3044esac
3045
6de9cd9a
DN
3046# Do `set' in a subshell so we don't clobber the current shell's
3047# arguments. Must try -L first in case configure is actually a
3048# symlink; some systems play weird games with the mod time of symlinks
3049# (eg FreeBSD returns the mod time of the symlink's containing
3050# directory).
3051if (
5213506e 3052 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6de9cd9a
DN
3053 if test "$*" = "X"; then
3054 # -L didn't work.
5213506e 3055 set X `ls -t "$srcdir/configure" conftest.file`
6de9cd9a
DN
3056 fi
3057 rm -f conftest.file
3058 if test "$*" != "X $srcdir/configure conftest.file" \
3059 && test "$*" != "X conftest.file $srcdir/configure"; then
3060
3061 # If neither matched, then we have a broken ls. This can happen
3062 # if, for instance, CONFIG_SHELL is bash and it inherits a
3063 # broken ls alias from the environment. This has actually
3064 # happened. Such a system could not be considered "sane".
5213506e
RW
3065 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3066alias in your environment" "$LINENO" 5
6de9cd9a
DN
3067 fi
3068
3069 test "$2" = conftest.file
3070 )
3071then
3072 # Ok.
3073 :
3074else
5213506e
RW
3075 as_fn_error "newly created file is older than distributed files!
3076Check your system clock" "$LINENO" 5
6de9cd9a 3077fi
5213506e
RW
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3079$as_echo "yes" >&6; }
6de9cd9a 3080test "$program_prefix" != NONE &&
5213506e 3081 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6de9cd9a
DN
3082# Use a double $ so make ignores it.
3083test "$program_suffix" != NONE &&
5213506e
RW
3084 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3085# Double any \ or $.
6de9cd9a 3086# By default was `s,x,x', remove it if useless.
5213506e
RW
3087ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3088program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6de9cd9a
DN
3089
3090# expand $ac_aux_dir to an absolute path
3091am_aux_dir=`cd $ac_aux_dir && pwd`
3092
5213506e
RW
3093if test x"${MISSING+set}" != xset; then
3094 case $am_aux_dir in
3095 *\ * | *\ *)
3096 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3097 *)
3098 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3099 esac
3100fi
6de9cd9a
DN
3101# Use eval to expand $SHELL
3102if eval "$MISSING --run true"; then
3103 am_missing_run="$MISSING --run "
3104else
3105 am_missing_run=
5213506e
RW
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3107$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6de9cd9a
DN
3108fi
3109
5213506e
RW
3110if test x"${install_sh}" != xset; then
3111 case $am_aux_dir in
3112 *\ * | *\ *)
3113 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3114 *)
3115 install_sh="\${SHELL} $am_aux_dir/install-sh"
3116 esac
3117fi
3118
3119# Installed binaries are usually stripped using `strip' when the user
3120# run `make install-strip'. However `strip' might not be the right
3121# tool to use in cross-compilation environments, therefore Automake
3122# will honor the `STRIP' environment variable to overrule this program.
3123if test "$cross_compiling" != no; then
3124 if test -n "$ac_tool_prefix"; then
3125 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3126set dummy ${ac_tool_prefix}strip; ac_word=$2
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128$as_echo_n "checking for $ac_word... " >&6; }
3129if test "${ac_cv_prog_STRIP+set}" = set; then :
3130 $as_echo_n "(cached) " >&6
6de9cd9a 3131else
5213506e
RW
3132 if test -n "$STRIP"; then
3133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6de9cd9a
DN
3134else
3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136for as_dir in $PATH
3137do
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
5213506e
RW
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3144 break 2
3145 fi
3146done
5213506e
RW
3147 done
3148IFS=$as_save_IFS
6de9cd9a
DN
3149
3150fi
3151fi
5213506e
RW
3152STRIP=$ac_cv_prog_STRIP
3153if test -n "$STRIP"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3155$as_echo "$STRIP" >&6; }
6de9cd9a 3156else
5213506e
RW
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
6de9cd9a
DN
3159fi
3160
6de9cd9a 3161
5213506e
RW
3162fi
3163if test -z "$ac_cv_prog_STRIP"; then
3164 ac_ct_STRIP=$STRIP
3165 # Extract the first word of "strip", so it can be a program name with args.
3166set dummy strip; ac_word=$2
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168$as_echo_n "checking for $ac_word... " >&6; }
3169if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3170 $as_echo_n "(cached) " >&6
6de9cd9a 3171else
5213506e
RW
3172 if test -n "$ac_ct_STRIP"; then
3173 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38d24731 3174else
5213506e
RW
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3182 ac_cv_prog_ac_ct_STRIP="strip"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3185 fi
3186done
3187 done
3188IFS=$as_save_IFS
3189
38d24731 3190fi
6de9cd9a 3191fi
5213506e
RW
3192ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3193if test -n "$ac_ct_STRIP"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3195$as_echo "$ac_ct_STRIP" >&6; }
3196else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198$as_echo "no" >&6; }
3199fi
3200
3201 if test "x$ac_ct_STRIP" = x; then
3202 STRIP=":"
3203 else
3204 case $cross_compiling:$ac_tool_warned in
3205yes:)
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208ac_tool_warned=yes ;;
3209esac
3210 STRIP=$ac_ct_STRIP
3211 fi
3212else
3213 STRIP="$ac_cv_prog_STRIP"
3214fi
3215
3216fi
3217INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3218
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3220$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3221if test -z "$MKDIR_P"; then
3222 if test "${ac_cv_path_mkdir+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3227do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_prog in mkdir gmkdir; do
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3233 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3234 'mkdir (GNU coreutils) '* | \
3235 'mkdir (coreutils) '* | \
3236 'mkdir (fileutils) '4.1*)
3237 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3238 break 3;;
3239 esac
3240 done
3241 done
3242 done
3243IFS=$as_save_IFS
3244
3245fi
3246
3247 if test "${ac_cv_path_mkdir+set}" = set; then
3248 MKDIR_P="$ac_cv_path_mkdir -p"
3249 else
3250 # As a last resort, use the slow shell script. Don't cache a
3251 # value for MKDIR_P within a source directory, because that will
3252 # break other packages using the cache if that directory is
3253 # removed, or if the value is a relative name.
3254 test -d ./--version && rmdir ./--version
3255 MKDIR_P="$ac_install_sh -d"
3256 fi
3257fi
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3259$as_echo "$MKDIR_P" >&6; }
3260
3261mkdir_p="$MKDIR_P"
3262case $mkdir_p in
3263 [\\/$]* | ?:[\\/]*) ;;
3264 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3265esac
3266
3267for ac_prog in gawk mawk nawk awk
3268do
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270set dummy $ac_prog; ac_word=$2
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272$as_echo_n "checking for $ac_word... " >&6; }
3273if test "${ac_cv_prog_AWK+set}" = set; then :
3274 $as_echo_n "(cached) " >&6
3275else
3276 if test -n "$AWK"; then
3277 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286 ac_cv_prog_AWK="$ac_prog"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290done
3291 done
3292IFS=$as_save_IFS
3293
3294fi
3295fi
3296AWK=$ac_cv_prog_AWK
3297if test -n "$AWK"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3299$as_echo "$AWK" >&6; }
3300else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303fi
3304
3305
3306 test -n "$AWK" && break
3307done
3308
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3310$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3311set x ${MAKE-make}
3312ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3313if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3314 $as_echo_n "(cached) " >&6
3315else
3316 cat >conftest.make <<\_ACEOF
3317SHELL = /bin/sh
3318all:
3319 @echo '@@@%%%=$(MAKE)=@@@%%%'
3320_ACEOF
3321# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3322case `${MAKE-make} -f conftest.make 2>/dev/null` in
3323 *@@@%%%=?*=@@@%%%*)
3324 eval ac_cv_prog_make_${ac_make}_set=yes;;
3325 *)
3326 eval ac_cv_prog_make_${ac_make}_set=no;;
3327esac
3328rm -f conftest.make
3329fi
3330if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332$as_echo "yes" >&6; }
6de9cd9a
DN
3333 SET_MAKE=
3334else
5213506e
RW
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336$as_echo "no" >&6; }
6de9cd9a
DN
3337 SET_MAKE="MAKE=${MAKE-make}"
3338fi
3339
3340rm -rf .tst 2>/dev/null
3341mkdir .tst 2>/dev/null
3342if test -d .tst; then
3343 am__leading_dot=.
3344else
3345 am__leading_dot=_
3346fi
3347rmdir .tst 2>/dev/null
3348
5213506e
RW
3349if test "`cd $srcdir && pwd`" != "`pwd`"; then
3350 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3351 # is not polluted with repeated "-I."
3352 am__isrc=' -I$(srcdir)'
3353 # test to see if srcdir already configured
3354 if test -f $srcdir/config.status; then
3355 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3356 fi
6de9cd9a
DN
3357fi
3358
3359# test whether we have cygpath
3360if test -z "$CYGPATH_W"; then
3361 if (cygpath --version) >/dev/null 2>/dev/null; then
3362 CYGPATH_W='cygpath -w'
3363 else
3364 CYGPATH_W=echo
3365 fi
3366fi
3367
3368
3369# Define the identity of the package.
3370 PACKAGE='libgfortran'
0dce3ca1 3371 VERSION='0.3'
6de9cd9a
DN
3372
3373
6de9cd9a
DN
3374# Some tools Automake needs.
3375
3376ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3377
3378
3379AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3380
3381
3382AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3383
3384
3385AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3386
3387
3388MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3389
6de9cd9a
DN
3390# We need awk for the "check" target. The system "awk" is bad on
3391# some platforms.
c20fdb91
JB
3392# Always define AMTAR for backward compatibility. Yes, it's still used
3393# in the wild :-( We should find a proper way to deprecate it ...
3394AMTAR='$${TAR-tar}'
d49ec2d1 3395
c20fdb91 3396am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d49ec2d1
KC
3397
3398
6de9cd9a
DN
3399
3400
3401
6de9cd9a 3402
5213506e
RW
3403
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3405$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3406 # Check whether --enable-maintainer-mode was given.
3407if test "${enable_maintainer_mode+set}" = set; then :
3408 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6de9cd9a
DN
3409else
3410 USE_MAINTAINER_MODE=no
5213506e 3411fi
6de9cd9a 3412
5213506e
RW
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3414$as_echo "$USE_MAINTAINER_MODE" >&6; }
3415 if test $USE_MAINTAINER_MODE = yes; then
6de9cd9a
DN
3416 MAINTAINER_MODE_TRUE=
3417 MAINTAINER_MODE_FALSE='#'
3418else
3419 MAINTAINER_MODE_TRUE='#'
3420 MAINTAINER_MODE_FALSE=
3421fi
3422
3423 MAINT=$MAINTAINER_MODE_TRUE
3424
3425
96b8a615 3426# Default to --enable-multilib
5213506e
RW
3427# Check whether --enable-multilib was given.
3428if test "${enable_multilib+set}" = set; then :
3429 enableval=$enable_multilib; case "$enableval" in
96b8a615
AJ
3430 yes) multilib=yes ;;
3431 no) multilib=no ;;
5213506e 3432 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
96b8a615
AJ
3433 esac
3434else
3435 multilib=yes
5213506e
RW
3436fi
3437
96b8a615
AJ
3438
3439# We may get other options which we leave undocumented:
3440# --with-target-subdir, --with-multisrctop, --with-multisubdir
3441# See config-ml.in if you want the gory details.
3442
3443if test "$srcdir" = "."; then
3444 if test "$with_target_subdir" != "."; then
3445 multi_basedir="$srcdir/$with_multisrctop../.."
3446 else
3447 multi_basedir="$srcdir/$with_multisrctop.."
3448 fi
3449else
3450 multi_basedir="$srcdir/.."
3451fi
3452
3453
9f9ef303
FXC
3454# Even if the default multilib is not a cross compilation,
3455# it may be that some of the other multilibs are.
3456if test $cross_compiling = no && test $multilib = yes \
3457 && test "x${with_multisubdir}" != x ; then
3458 cross_compiling=maybe
3459fi
3460
5213506e 3461ac_config_commands="$ac_config_commands default-1"
96b8a615
AJ
3462
3463
3464# Handy for debugging:
3465#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3466
3467# Are we being configured with some form of cross compiler?
3468# NB: We don't actually need to know this just now, but when, say, a test
3469# suite is included, we'll have to know.
3470if test "$build" != "$host"; then
3471 LIBGFOR_IS_NATIVE=false
f02d008e 3472
96b8a615
AJ
3473else
3474 LIBGFOR_IS_NATIVE=true
3475fi
3476
21be0a5a 3477DEPDIR="${am__leading_dot}deps"
96b8a615 3478
21be0a5a 3479ac_config_commands="$ac_config_commands depfiles"
96b8a615 3480
6de9cd9a 3481
21be0a5a
JB
3482am_make=${MAKE-make}
3483cat > confinc << 'END'
3484am__doit:
3485 @echo this is the am__doit target
3486.PHONY: am__doit
3487END
3488# If we don't find an include directive, just comment out the code.
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3490$as_echo_n "checking for style of include used by $am_make... " >&6; }
3491am__include="#"
3492am__quote=
3493_am_result=none
3494# First try GNU make style include.
3495echo "include confinc" > confmf
3496# Ignore all kinds of additional output from `make'.
3497case `$am_make -s -f confmf 2> /dev/null` in #(
3498*the\ am__doit\ target*)
3499 am__include=include
3500 am__quote=
3501 _am_result=GNU
3502 ;;
3503esac
3504# Now try BSD make style include.
3505if test "$am__include" = "#"; then
3506 echo '.include "confinc"' > confmf
3507 case `$am_make -s -f confmf 2> /dev/null` in #(
3508 *the\ am__doit\ target*)
3509 am__include=.include
3510 am__quote="\""
3511 _am_result=BSD
3512 ;;
3513 esac
3514fi
1ec601bf 3515
6de9cd9a 3516
21be0a5a
JB
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3518$as_echo "$_am_result" >&6; }
3519rm -f confinc confmf
3520
3521# Check whether --enable-dependency-tracking was given.
3522if test "${enable_dependency_tracking+set}" = set; then :
3523 enableval=$enable_dependency_tracking;
3524fi
3525
3526if test "x$enable_dependency_tracking" != xno; then
3527 am_depcomp="$ac_aux_dir/depcomp"
3528 AMDEPBACKSLASH='\'
c20fdb91 3529 am__nodep='_no'
21be0a5a
JB
3530fi
3531 if test "x$enable_dependency_tracking" != xno; then
3532 AMDEP_TRUE=
3533 AMDEP_FALSE='#'
3534else
3535 AMDEP_TRUE='#'
3536 AMDEP_FALSE=
3537fi
6de9cd9a
DN
3538
3539
6de9cd9a
DN
3540ac_ext=c
3541ac_cpp='$CPP $CPPFLAGS'
3542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545if test -n "$ac_tool_prefix"; then
3546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3547set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549$as_echo_n "checking for $ac_word... " >&6; }
3550if test "${ac_cv_prog_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3552else
3553 if test -n "$CC"; then
3554 ac_cv_prog_CC="$CC" # Let the user override the test.
3555else
3556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557for as_dir in $PATH
3558do
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
5213506e
RW
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3565 break 2
3566 fi
3567done
5213506e
RW
3568 done
3569IFS=$as_save_IFS
6de9cd9a
DN
3570
3571fi
3572fi
3573CC=$ac_cv_prog_CC
3574if test -n "$CC"; then
5213506e
RW
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576$as_echo "$CC" >&6; }
6de9cd9a 3577else
5213506e
RW
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579$as_echo "no" >&6; }
6de9cd9a
DN
3580fi
3581
5213506e 3582
6de9cd9a
DN
3583fi
3584if test -z "$ac_cv_prog_CC"; then
3585 ac_ct_CC=$CC
3586 # Extract the first word of "gcc", so it can be a program name with args.
3587set dummy gcc; ac_word=$2
5213506e
RW
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589$as_echo_n "checking for $ac_word... " >&6; }
3590if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3592else
3593 if test -n "$ac_ct_CC"; then
3594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3595else
3596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597for as_dir in $PATH
3598do
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
5213506e
RW
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3603 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3605 break 2
3606 fi
3607done
5213506e
RW
3608 done
3609IFS=$as_save_IFS
6de9cd9a
DN
3610
3611fi
3612fi
3613ac_ct_CC=$ac_cv_prog_ac_ct_CC
3614if test -n "$ac_ct_CC"; then
5213506e
RW
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3616$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3617else
5213506e
RW
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619$as_echo "no" >&6; }
6de9cd9a
DN
3620fi
3621
5213506e
RW
3622 if test "x$ac_ct_CC" = x; then
3623 CC=""
3624 else
3625 case $cross_compiling:$ac_tool_warned in
3626yes:)
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3629ac_tool_warned=yes ;;
3630esac
3631 CC=$ac_ct_CC
3632 fi
6de9cd9a
DN
3633else
3634 CC="$ac_cv_prog_CC"
3635fi
3636
3637if test -z "$CC"; then
5213506e
RW
3638 if test -n "$ac_tool_prefix"; then
3639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6de9cd9a 3640set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642$as_echo_n "checking for $ac_word... " >&6; }
3643if test "${ac_cv_prog_CC+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3645else
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC="$CC" # Let the user override the test.
3648else
3649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650for as_dir in $PATH
3651do
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
5213506e
RW
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3656 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3658 break 2
3659 fi
3660done
5213506e
RW
3661 done
3662IFS=$as_save_IFS
6de9cd9a
DN
3663
3664fi
3665fi
3666CC=$ac_cv_prog_CC
3667if test -n "$CC"; then
5213506e
RW
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3669$as_echo "$CC" >&6; }
38d24731 3670else
5213506e
RW
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672$as_echo "no" >&6; }
38d24731
RW
3673fi
3674
38d24731 3675
5213506e 3676 fi
6de9cd9a
DN
3677fi
3678if test -z "$CC"; then
3679 # Extract the first word of "cc", so it can be a program name with args.
3680set dummy cc; ac_word=$2
5213506e
RW
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682$as_echo_n "checking for $ac_word... " >&6; }
3683if test "${ac_cv_prog_CC+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3685else
3686 if test -n "$CC"; then
3687 ac_cv_prog_CC="$CC" # Let the user override the test.
3688else
3689 ac_prog_rejected=no
3690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691for as_dir in $PATH
3692do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
5213506e
RW
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a
DN
3697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3698 ac_prog_rejected=yes
3699 continue
3700 fi
3701 ac_cv_prog_CC="cc"
5213506e 3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3703 break 2
3704 fi
3705done
5213506e
RW
3706 done
3707IFS=$as_save_IFS
6de9cd9a
DN
3708
3709if test $ac_prog_rejected = yes; then
3710 # We found a bogon in the path, so make sure we never use it.
3711 set dummy $ac_cv_prog_CC
3712 shift
3713 if test $# != 0; then
3714 # We chose a different compiler from the bogus one.
3715 # However, it has the same basename, so the bogon will be chosen
3716 # first if we set CC to just the basename; use the full file name.
3717 shift
3718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3719 fi
3720fi
3721fi
3722fi
3723CC=$ac_cv_prog_CC
3724if test -n "$CC"; then
5213506e
RW
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3726$as_echo "$CC" >&6; }
6de9cd9a 3727else
5213506e
RW
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729$as_echo "no" >&6; }
6de9cd9a
DN
3730fi
3731
5213506e 3732
6de9cd9a
DN
3733fi
3734if test -z "$CC"; then
3735 if test -n "$ac_tool_prefix"; then
5213506e 3736 for ac_prog in cl.exe
6de9cd9a
DN
3737 do
3738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3739set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741$as_echo_n "checking for $ac_word... " >&6; }
3742if test "${ac_cv_prog_CC+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3744else
3745 if test -n "$CC"; then
3746 ac_cv_prog_CC="$CC" # Let the user override the test.
3747else
3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749for as_dir in $PATH
3750do
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
5213506e
RW
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3757 break 2
3758 fi
3759done
5213506e
RW
3760 done
3761IFS=$as_save_IFS
6de9cd9a
DN
3762
3763fi
3764fi
3765CC=$ac_cv_prog_CC
3766if test -n "$CC"; then
5213506e
RW
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3768$as_echo "$CC" >&6; }
6de9cd9a 3769else
5213506e
RW
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771$as_echo "no" >&6; }
6de9cd9a
DN
3772fi
3773
5213506e 3774
6de9cd9a
DN
3775 test -n "$CC" && break
3776 done
3777fi
3778if test -z "$CC"; then
3779 ac_ct_CC=$CC
5213506e 3780 for ac_prog in cl.exe
6de9cd9a
DN
3781do
3782 # Extract the first word of "$ac_prog", so it can be a program name with args.
3783set dummy $ac_prog; ac_word=$2
5213506e
RW
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785$as_echo_n "checking for $ac_word... " >&6; }
3786if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3788else
3789 if test -n "$ac_ct_CC"; then
3790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3791else
3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
5213506e
RW
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3799 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3801 break 2
3802 fi
3803done
5213506e
RW
3804 done
3805IFS=$as_save_IFS
6de9cd9a
DN
3806
3807fi
3808fi
3809ac_ct_CC=$ac_cv_prog_ac_ct_CC
3810if test -n "$ac_ct_CC"; then
5213506e
RW
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3812$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3813else
5213506e
RW
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815$as_echo "no" >&6; }
6de9cd9a
DN
3816fi
3817
5213506e 3818
6de9cd9a
DN
3819 test -n "$ac_ct_CC" && break
3820done
3821
5213506e
RW
3822 if test "x$ac_ct_CC" = x; then
3823 CC=""
3824 else
3825 case $cross_compiling:$ac_tool_warned in
3826yes:)
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3829ac_tool_warned=yes ;;
3830esac
3831 CC=$ac_ct_CC
3832 fi
6de9cd9a
DN
3833fi
3834
3835fi
3836
3837
5213506e
RW
3838test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840as_fn_error "no acceptable C compiler found in \$PATH
3841See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a
DN
3842
3843# Provide some information about the compiler.
5213506e
RW
3844$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3845set X $ac_compile
3846ac_compiler=$2
3847for ac_option in --version -v -V -qversion; do
3848 { { ac_try="$ac_compiler $ac_option >&5"
3849case "(($ac_try" in
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3852esac
3853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854$as_echo "$ac_try_echo"; } >&5
3855 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6de9cd9a 3856 ac_status=$?
5213506e
RW
3857 if test -s conftest.err; then
3858 sed '10a\
3859... rest of stderr output deleted ...
3860 10q' conftest.err >conftest.er1
3861 cat conftest.er1 >&5
3862 rm -f conftest.er1 conftest.err
3863 fi
3864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3865 test $ac_status = 0; }
3866done
6de9cd9a 3867
5213506e 3868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
3869/* end confdefs.h. */
3870
f02d008e
JD
3871int
3872main ()
3873{
3874
3875 ;
3876 return 0;
3877}
3878_ACEOF
3879# FIXME: Cleanup?
5213506e 3880if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
f02d008e
JD
3881 (eval $ac_link) 2>&5
3882 ac_status=$?
5213506e
RW
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }; then :
f02d008e
JD
3885 gcc_no_link=no
3886else
3887 gcc_no_link=yes
3888fi
f02d008e
JD
3889if test x$gcc_no_link = xyes; then
3890 # Setting cross_compile will disable run tests; it will
3891 # also disable AC_CHECK_FILE but that's generally
3892 # correct if we can't link.
3893 cross_compiling=yes
3894 EXEEXT=
3895else
5213506e 3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
3897/* end confdefs.h. */
3898
6de9cd9a
DN
3899int
3900main ()
3901{
3902
3903 ;
3904 return 0;
3905}
3906_ACEOF
3907ac_clean_files_save=$ac_clean_files
5213506e 3908ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6de9cd9a
DN
3909# Try to create an executable without -o first, disregard a.out.
3910# It will help us diagnose broken compilers, and finding out an intuition
3911# of exeext.
5213506e
RW
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3913$as_echo_n "checking for C compiler default output file name... " >&6; }
3914ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3915
3916# The possible output files:
3917ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3918
3919ac_rmfiles=
3920for ac_file in $ac_files
3921do
3922 case $ac_file in
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3925 esac
3926done
3927rm -f $ac_rmfiles
3928
3929if { { ac_try="$ac_link_default"
3930case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933esac
3934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935$as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_link_default") 2>&5
3937 ac_status=$?
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }; then :
3940 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3941# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3942# in a Makefile. We should not override ac_cv_exeext if it was cached,
3943# so that the user can short-circuit this test for compilers unknown to
3944# Autoconf.
3945for ac_file in $ac_files ''
6de9cd9a
DN
3946do
3947 test -f "$ac_file" || continue
3948 case $ac_file in
5213506e 3949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6de9cd9a
DN
3950 ;;
3951 [ab].out )
3952 # We found the default executable, but exeext='' is most
3953 # certainly right.
3954 break;;
3955 *.* )
5213506e
RW
3956 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3957 then :; else
3958 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3959 fi
3960 # We set ac_cv_exeext here because the later test for it is not
3961 # safe: cross compilers may not add the suffix if given an `-o'
3962 # argument, so we may need to know it at that point already.
3963 # Even if this section looks crufty: it has the advantage of
3964 # actually working.
6de9cd9a
DN
3965 break;;
3966 * )
3967 break;;
3968 esac
3969done
5213506e
RW
3970test "$ac_cv_exeext" = no && ac_cv_exeext=
3971
6de9cd9a 3972else
5213506e
RW
3973 ac_file=''
3974fi
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3976$as_echo "$ac_file" >&6; }
3977if test -z "$ac_file"; then :
3978 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
5213506e
RW
3981{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983{ as_fn_set_status 77
3984as_fn_error "C compiler cannot create executables
3985See \`config.log' for more details." "$LINENO" 5; }; }
6de9cd9a 3986fi
6de9cd9a 3987ac_exeext=$ac_cv_exeext
6de9cd9a 3988
5213506e 3989# Check that the compiler produces executables we can run. If not, either
6de9cd9a 3990# the compiler is broken, or we cross compile.
5213506e
RW
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3992$as_echo_n "checking whether the C compiler works... " >&6; }
6de9cd9a
DN
3993# If not cross compiling, check that we can run a simple program.
3994if test "$cross_compiling" != yes; then
3995 if { ac_try='./$ac_file'
5213506e
RW
3996 { { case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999esac
4000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001$as_echo "$ac_try_echo"; } >&5
4002 (eval "$ac_try") 2>&5
6de9cd9a 4003 ac_status=$?
5213506e
RW
4004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005 test $ac_status = 0; }; }; then
6de9cd9a
DN
4006 cross_compiling=no
4007 else
4008 if test "$cross_compiling" = maybe; then
4009 cross_compiling=yes
4010 else
5213506e
RW
4011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013as_fn_error "cannot run C compiled programs.
6de9cd9a 4014If you meant to cross compile, use \`--host'.
5213506e 4015See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a
DN
4016 fi
4017 fi
4018fi
5213506e
RW
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4020$as_echo "yes" >&6; }
6de9cd9a 4021
5213506e 4022rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
6de9cd9a 4023ac_clean_files=$ac_clean_files_save
5213506e 4024# Check that the compiler produces executables we can run. If not, either
6de9cd9a 4025# the compiler is broken, or we cross compile.
5213506e
RW
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4027$as_echo_n "checking whether we are cross compiling... " >&6; }
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4029$as_echo "$cross_compiling" >&6; }
4030
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4032$as_echo_n "checking for suffix of executables... " >&6; }
4033if { { ac_try="$ac_link"
4034case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037esac
4038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039$as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_link") 2>&5
6de9cd9a 4041 ac_status=$?
5213506e
RW
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }; then :
6de9cd9a
DN
4044 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4045# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4046# work properly (i.e., refer to `conftest.exe'), while it won't with
4047# `rm'.
4048for ac_file in conftest.exe conftest conftest.*; do
4049 test -f "$ac_file" || continue
4050 case $ac_file in
5213506e 4051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6de9cd9a 4052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6de9cd9a
DN
4053 break;;
4054 * ) break;;
4055 esac
4056done
4057else
5213506e
RW
4058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4060as_fn_error "cannot compute suffix of executables: cannot compile and link
4061See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a 4062fi
6de9cd9a 4063rm -f conftest$ac_cv_exeext
5213506e
RW
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4065$as_echo "$ac_cv_exeext" >&6; }
6de9cd9a
DN
4066
4067rm -f conftest.$ac_ext
4068EXEEXT=$ac_cv_exeext
4069ac_exeext=$EXEEXT
f02d008e 4070fi
5213506e
RW
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4072$as_echo_n "checking for suffix of object files... " >&6; }
4073if test "${ac_cv_objext+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
6de9cd9a 4075else
5213506e 4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
4077/* end confdefs.h. */
4078
4079int
4080main ()
4081{
4082
4083 ;
4084 return 0;
4085}
4086_ACEOF
4087rm -f conftest.o conftest.obj
5213506e
RW
4088if { { ac_try="$ac_compile"
4089case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092esac
4093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094$as_echo "$ac_try_echo"; } >&5
4095 (eval "$ac_compile") 2>&5
4096 ac_status=$?
4097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098 test $ac_status = 0; }; then :
4099 for ac_file in conftest.o conftest.obj conftest.*; do
4100 test -f "$ac_file" || continue;
6de9cd9a 4101 case $ac_file in
5213506e 4102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6de9cd9a
DN
4103 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4104 break;;
4105 esac
4106done
4107else
5213506e 4108 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4109sed 's/^/| /' conftest.$ac_ext >&5
4110
5213506e
RW
4111{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113as_fn_error "cannot compute suffix of object files: cannot compile
4114See \`config.log' for more details." "$LINENO" 5; }
78511f8b 4115fi
78511f8b
JB
4116rm -f conftest.$ac_cv_objext conftest.$ac_ext
4117fi
5213506e
RW
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4119$as_echo "$ac_cv_objext" >&6; }
78511f8b
JB
4120OBJEXT=$ac_cv_objext
4121ac_objext=$OBJEXT
5213506e
RW
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4123$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4124if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4125 $as_echo_n "(cached) " >&6
78511f8b 4126else
5213506e 4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4128/* end confdefs.h. */
6de9cd9a 4129
6de9cd9a
DN
4130int
4131main ()
4132{
78511f8b
JB
4133#ifndef __GNUC__
4134 choke me
4135#endif
c0e7e2bf 4136
6de9cd9a
DN
4137 ;
4138 return 0;
4139}
4140_ACEOF
5213506e 4141if ac_fn_c_try_compile "$LINENO"; then :
78511f8b 4142 ac_compiler_gnu=yes
6de9cd9a 4143else
5213506e 4144 ac_compiler_gnu=no
78511f8b 4145fi
5213506e 4146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78511f8b
JB
4147ac_cv_c_compiler_gnu=$ac_compiler_gnu
4148
4149fi
5213506e
RW
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4151$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4152if test $ac_compiler_gnu = yes; then
4153 GCC=yes
4154else
4155 GCC=
4156fi
78511f8b
JB
4157ac_test_CFLAGS=${CFLAGS+set}
4158ac_save_CFLAGS=$CFLAGS
5213506e
RW
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4160$as_echo_n "checking whether $CC accepts -g... " >&6; }
4161if test "${ac_cv_prog_cc_g+set}" = set; then :
4162 $as_echo_n "(cached) " >&6
78511f8b 4163else
5213506e
RW
4164 ac_save_c_werror_flag=$ac_c_werror_flag
4165 ac_c_werror_flag=yes
4166 ac_cv_prog_cc_g=no
4167 CFLAGS="-g"
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4169/* end confdefs.h. */
c0e7e2bf 4170
6de9cd9a
DN
4171int
4172main ()
4173{
c0e7e2bf 4174
6de9cd9a
DN
4175 ;
4176 return 0;
4177}
4178_ACEOF
5213506e 4179if ac_fn_c_try_compile "$LINENO"; then :
f489fba1
FXC
4180 ac_cv_prog_cc_g=yes
4181else
5213506e
RW
4182 CFLAGS=""
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h. */
4185
4186int
4187main ()
4188{
4189
4190 ;
4191 return 0;
4192}
4193_ACEOF
4194if ac_fn_c_try_compile "$LINENO"; then :
4195
4196else
4197 ac_c_werror_flag=$ac_save_c_werror_flag
4198 CFLAGS="-g"
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h. */
f489fba1 4201
5213506e
RW
4202int
4203main ()
4204{
4205
4206 ;
4207 return 0;
4208}
4209_ACEOF
4210if ac_fn_c_try_compile "$LINENO"; then :
4211 ac_cv_prog_cc_g=yes
4212fi
4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4214fi
5213506e 4215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4216fi
5213506e
RW
4217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 ac_c_werror_flag=$ac_save_c_werror_flag
4219fi
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4221$as_echo "$ac_cv_prog_cc_g" >&6; }
38d24731
RW
4222if test "$ac_test_CFLAGS" = set; then
4223 CFLAGS=$ac_save_CFLAGS
4224elif test $ac_cv_prog_cc_g = yes; then
4225 if test "$GCC" = yes; then
4226 CFLAGS="-g -O2"
4227 else
4228 CFLAGS="-g"
4229 fi
4230else
4231 if test "$GCC" = yes; then
4232 CFLAGS="-O2"
4233 else
4234 CFLAGS=
4235 fi
4236fi
5213506e
RW
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4238$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4239if test "${ac_cv_prog_cc_c89+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
38d24731 4241else
5213506e 4242 ac_cv_prog_cc_c89=no
38d24731 4243ac_save_CC=$CC
5213506e 4244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f489fba1 4245/* end confdefs.h. */
38d24731
RW
4246#include <stdarg.h>
4247#include <stdio.h>
4248#include <sys/types.h>
4249#include <sys/stat.h>
4250/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4251struct buf { int x; };
4252FILE * (*rcsopen) (struct buf *, struct stat *, int);
4253static char *e (p, i)
4254 char **p;
4255 int i;
4256{
4257 return p[i];
4258}
4259static char *f (char * (*g) (char **, int), char **p, ...)
4260{
4261 char *s;
4262 va_list v;
4263 va_start (v,p);
4264 s = g (p, va_arg (v,int));
4265 va_end (v);
4266 return s;
4267}
f489fba1 4268
38d24731
RW
4269/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4270 function prototypes and stuff, but not '\xHH' hex character constants.
4271 These don't provoke an error unfortunately, instead are silently treated
5213506e 4272 as 'x'. The following induces an error, until -std is added to get
38d24731
RW
4273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4274 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4275 that's true only with -std. */
38d24731
RW
4276int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4277
5213506e
RW
4278/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4279 inside strings and character constants. */
4280#define FOO(x) 'x'
4281int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4282
38d24731
RW
4283int test (int i, double x);
4284struct s1 {int (*f) (int a);};
4285struct s2 {int (*f) (double a);};
4286int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4287int argc;
4288char **argv;
f489fba1
FXC
4289int
4290main ()
4291{
38d24731 4292return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
f489fba1
FXC
4293 ;
4294 return 0;
4295}
4296_ACEOF
5213506e
RW
4297for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38d24731
RW
4299do
4300 CC="$ac_save_CC $ac_arg"
5213506e
RW
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_prog_cc_c89=$ac_arg
38d24731 4303fi
5213506e
RW
4304rm -f core conftest.err conftest.$ac_objext
4305 test "x$ac_cv_prog_cc_c89" != "xno" && break
38d24731 4306done
5213506e 4307rm -f conftest.$ac_ext
38d24731
RW
4308CC=$ac_save_CC
4309
4310fi
5213506e
RW
4311# AC_CACHE_VAL
4312case "x$ac_cv_prog_cc_c89" in
4313 x)
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315$as_echo "none needed" >&6; } ;;
4316 xno)
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318$as_echo "unsupported" >&6; } ;;
38d24731 4319 *)
5213506e
RW
4320 CC="$CC $ac_cv_prog_cc_c89"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4322$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
38d24731 4323esac
5213506e 4324if test "x$ac_cv_prog_cc_c89" != xno; then :
6de9cd9a
DN
4325
4326fi
6de9cd9a 4327
6de9cd9a
DN
4328ac_ext=c
4329ac_cpp='$CPP $CPPFLAGS'
4330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332ac_compiler_gnu=$ac_cv_c_compiler_gnu
679c0f9a 4333
679c0f9a
TT
4334depcc="$CC" am_compiler_list=
4335
5213506e
RW
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4337$as_echo_n "checking dependency style of $depcc... " >&6; }
4338if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4339 $as_echo_n "(cached) " >&6
679c0f9a
TT
4340else
4341 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4342 # We make a subdir and do the tests there. Otherwise we can end up
4343 # making bogus files that we don't know about and never remove. For
4344 # instance it was reported that on HP-UX the gcc test will end up
4345 # making a dummy file named `D' -- because `-MD' means `put the output
4346 # in D'.
c20fdb91 4347 rm -rf conftest.dir
679c0f9a
TT
4348 mkdir conftest.dir
4349 # Copy depcomp to subdir because otherwise we won't find it if we're
4350 # using a relative directory.
4351 cp "$am_depcomp" conftest.dir
4352 cd conftest.dir
4353 # We will build objects and dependencies in a subdirectory because
4354 # it helps to detect inapplicable dependency modes. For instance
4355 # both Tru64's cc and ICC support -MD to output dependencies as a
4356 # side effect of compilation, but ICC will put the dependencies in
4357 # the current directory while Tru64 will put them in the object
4358 # directory.
4359 mkdir sub
4360
4361 am_cv_CC_dependencies_compiler_type=none
4362 if test "$am_compiler_list" = ""; then
4363 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4364 fi
5213506e
RW
4365 am__universal=false
4366 case " $depcc " in #(
4367 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4368 esac
4369
679c0f9a
TT
4370 for depmode in $am_compiler_list; do
4371 # Setup a source with many dependencies, because some compilers
4372 # like to wrap large dependency lists on column 80 (with \), and
4373 # we should not choose a depcomp mode which is confused by this.
4374 #
4375 # We need to recreate these files for each test, as the compiler may
4376 # overwrite some of them when testing with obscure command lines.
4377 # This happens at least with the AIX C compiler.
4378 : > sub/conftest.c
4379 for i in 1 2 3 4 5 6; do
4380 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4381 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4382 # Solaris 8's {/usr,}/bin/sh.
4383 touch sub/conftst$i.h
4384 done
4385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4386
5213506e
RW
4387 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4388 # mode. It turns out that the SunPro C++ compiler does not properly
4389 # handle `-M -o', and we need to detect this. Also, some Intel
4390 # versions had trouble with output in subdirs
4391 am__obj=sub/conftest.${OBJEXT-o}
4392 am__minus_obj="-o $am__obj"
679c0f9a 4393 case $depmode in
5213506e
RW
4394 gcc)
4395 # This depmode causes a compiler race in universal mode.
4396 test "$am__universal" = false || continue
4397 ;;
679c0f9a
TT
4398 nosideeffect)
4399 # after this tag, mechanisms are not by side-effect, so they'll
4400 # only be used when explicitly requested
4401 if test "x$enable_dependency_tracking" = xyes; then
4402 continue
4403 else
4404 break
4405 fi
4406 ;;
c20fdb91 4407 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5213506e
RW
4408 # This compiler won't grok `-c -o', but also, the minuso test has
4409 # not run yet. These depmodes are late enough in the game, and
4410 # so weak that their functioning should not be impacted.
4411 am__obj=conftest.${OBJEXT-o}
4412 am__minus_obj=
4413 ;;
679c0f9a
TT
4414 none) break ;;
4415 esac
679c0f9a 4416 if depmode=$depmode \
5213506e 4417 source=sub/conftest.c object=$am__obj \
679c0f9a 4418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4419 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
679c0f9a 4420 >/dev/null 2>conftest.err &&
5213506e 4421 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a 4422 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4423 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a
TT
4424 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4425 # icc doesn't choke on unknown options, it will just issue warnings
4426 # or remarks (even with -Werror). So we grep stderr for any message
4427 # that says an option was ignored or not supported.
4428 # When given -MP, icc 7.0 and 7.1 complain thusly:
4429 # icc: Command line warning: ignoring option '-M'; no argument required
4430 # The diagnosis changed in icc 8.0:
4431 # icc: Command line remark: option '-MP' not supported
4432 if (grep 'ignoring option' conftest.err ||
4433 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4434 am_cv_CC_dependencies_compiler_type=$depmode
4435 break
4436 fi
4437 fi
4438 done
4439
4440 cd ..
4441 rm -rf conftest.dir
4442else
4443 am_cv_CC_dependencies_compiler_type=none
4444fi
4445
4446fi
5213506e
RW
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4448$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
679c0f9a
TT
4449CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4450
5213506e 4451 if
679c0f9a
TT
4452 test "x$enable_dependency_tracking" != xno \
4453 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4454 am__fastdepCC_TRUE=
4455 am__fastdepCC_FALSE='#'
4456else
4457 am__fastdepCC_TRUE='#'
4458 am__fastdepCC_FALSE=
4459fi
4460
6de9cd9a 4461
6de9cd9a 4462
21be0a5a
JB
4463ac_ext=c
4464ac_cpp='$CPP $CPPFLAGS'
4465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4469$as_echo_n "checking how to run the C preprocessor... " >&6; }
4470# On Suns, sometimes $CPP names a directory.
4471if test -n "$CPP" && test -d "$CPP"; then
4472 CPP=
6de9cd9a 4473fi
21be0a5a
JB
4474if test -z "$CPP"; then
4475 if test "${ac_cv_prog_CPP+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4477else
4478 # Double quotes because CPP needs to be expanded
4479 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4480 do
4481 ac_preproc_ok=false
4482for ac_c_preproc_warn_flag in '' yes
4483do
4484 # Use a header file that comes with gcc, so configuring glibc
4485 # with a fresh cross-compiler works.
4486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487 # <limits.h> exists even on freestanding compilers.
4488 # On the NeXT, cc -E runs the code through the compiler's parser,
4489 # not just through cpp. "Syntax error" is here to catch this case.
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c0e7e2bf 4491/* end confdefs.h. */
21be0a5a
JB
4492#ifdef __STDC__
4493# include <limits.h>
4494#else
4495# include <assert.h>
4496#endif
4497 Syntax error
c0e7e2bf 4498_ACEOF
21be0a5a
JB
4499if ac_fn_c_try_cpp "$LINENO"; then :
4500
49ea7a0e 4501else
21be0a5a
JB
4502 # Broken: fails on valid input.
4503continue
49ea7a0e 4504fi
21be0a5a 4505rm -f conftest.err conftest.$ac_ext
49ea7a0e 4506
21be0a5a
JB
4507 # OK, works on sane cases. Now check whether nonexistent headers
4508 # can be detected and how.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h. */
4511#include <ac_nonexistent.h>
49ea7a0e 4512_ACEOF
21be0a5a
JB
4513if ac_fn_c_try_cpp "$LINENO"; then :
4514 # Broken: success on invalid input.
4515continue
c0e7e2bf 4516else
21be0a5a
JB
4517 # Passes both tests.
4518ac_preproc_ok=:
4519break
49ea7a0e 4520fi
21be0a5a
JB
4521rm -f conftest.err conftest.$ac_ext
4522
4523done
4524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4525rm -f conftest.err conftest.$ac_ext
4526if $ac_preproc_ok; then :
4527 break
c0e7e2bf
JB
4528fi
4529
21be0a5a
JB
4530 done
4531 ac_cv_prog_CPP=$CPP
4532
4533fi
4534 CPP=$ac_cv_prog_CPP
49ea7a0e 4535else
21be0a5a 4536 ac_cv_prog_CPP=$CPP
49ea7a0e 4537fi
21be0a5a
JB
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4539$as_echo "$CPP" >&6; }
4540ac_preproc_ok=false
4541for ac_c_preproc_warn_flag in '' yes
4542do
4543 # Use a header file that comes with gcc, so configuring glibc
4544 # with a fresh cross-compiler works.
4545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4546 # <limits.h> exists even on freestanding compilers.
4547 # On the NeXT, cc -E runs the code through the compiler's parser,
4548 # not just through cpp. "Syntax error" is here to catch this case.
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h. */
4551#ifdef __STDC__
4552# include <limits.h>
4553#else
4554# include <assert.h>
4555#endif
4556 Syntax error
4557_ACEOF
4558if ac_fn_c_try_cpp "$LINENO"; then :
49ea7a0e 4559
49ea7a0e 4560else
21be0a5a
JB
4561 # Broken: fails on valid input.
4562continue
49ea7a0e 4563fi
21be0a5a 4564rm -f conftest.err conftest.$ac_ext
49ea7a0e 4565
21be0a5a
JB
4566 # OK, works on sane cases. Now check whether nonexistent headers
4567 # can be detected and how.
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c049309d 4569/* end confdefs.h. */
21be0a5a 4570#include <ac_nonexistent.h>
c049309d 4571_ACEOF
21be0a5a
JB
4572if ac_fn_c_try_cpp "$LINENO"; then :
4573 # Broken: success on invalid input.
4574continue
c049309d 4575else
21be0a5a
JB
4576 # Passes both tests.
4577ac_preproc_ok=:
4578break
c049309d 4579fi
21be0a5a
JB
4580rm -f conftest.err conftest.$ac_ext
4581
4582done
4583# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4584rm -f conftest.err conftest.$ac_ext
4585if $ac_preproc_ok; then :
4586
c049309d 4587else
21be0a5a
JB
4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4590as_fn_error "C preprocessor \"$CPP\" fails sanity check
4591See \`config.log' for more details." "$LINENO" 5; }
c049309d 4592fi
c049309d 4593
21be0a5a
JB
4594ac_ext=c
4595ac_cpp='$CPP $CPPFLAGS'
4596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598ac_compiler_gnu=$ac_cv_c_compiler_gnu
c049309d 4599
21be0a5a
JB
4600
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4602$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4603if test "${ac_cv_path_GREP+set}" = set; then :
5213506e 4604 $as_echo_n "(cached) " >&6
6de9cd9a 4605else
21be0a5a
JB
4606 if test -z "$GREP"; then
4607 ac_path_GREP_found=false
4608 # Loop through the user's path and test for each of PROGNAME-LIST
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
96b8a615
AJ
4611do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
21be0a5a 4614 for ac_prog in grep ggrep; do
5213506e 4615 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
4616 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4617 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4618# Check for GNU ac_path_GREP and select it if it is found.
4619 # Check for GNU $ac_path_GREP
4620case `"$ac_path_GREP" --version 2>&1` in
4621*GNU*)
4622 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4623*)
4624 ac_count=0
4625 $as_echo_n 0123456789 >"conftest.in"
4626 while :
4627 do
4628 cat "conftest.in" "conftest.in" >"conftest.tmp"
4629 mv "conftest.tmp" "conftest.in"
4630 cp "conftest.in" "conftest.nl"
4631 $as_echo 'GREP' >> "conftest.nl"
4632 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4633 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4634 as_fn_arith $ac_count + 1 && ac_count=$as_val
4635 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4636 # Best one so far, save it but keep looking for a better one
4637 ac_cv_path_GREP="$ac_path_GREP"
4638 ac_path_GREP_max=$ac_count
4639 fi
4640 # 10*(2^10) chars as input seems more than enough
4641 test $ac_count -gt 10 && break
5213506e 4642 done
21be0a5a
JB
4643 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4644esac
6de9cd9a 4645
21be0a5a
JB
4646 $ac_path_GREP_found && break 3
4647 done
4648 done
4649 done
4650IFS=$as_save_IFS
4651 if test -z "$ac_cv_path_GREP"; then
4652 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4653 fi
6de9cd9a 4654else
21be0a5a 4655 ac_cv_path_GREP=$GREP
6de9cd9a
DN
4656fi
4657
6de9cd9a 4658fi
21be0a5a
JB
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4660$as_echo "$ac_cv_path_GREP" >&6; }
4661 GREP="$ac_cv_path_GREP"
6de9cd9a 4662
21be0a5a
JB
4663
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4665$as_echo_n "checking for egrep... " >&6; }
4666if test "${ac_cv_path_EGREP+set}" = set; then :
5213506e 4667 $as_echo_n "(cached) " >&6
6de9cd9a 4668else
21be0a5a
JB
4669 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4670 then ac_cv_path_EGREP="$GREP -E"
4671 else
4672 if test -z "$EGREP"; then
4673 ac_path_EGREP_found=false
4674 # Loop through the user's path and test for each of PROGNAME-LIST
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6de9cd9a
DN
4677do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
21be0a5a 4680 for ac_prog in egrep; do
5213506e 4681 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
4682 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4683 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4684# Check for GNU ac_path_EGREP and select it if it is found.
4685 # Check for GNU $ac_path_EGREP
4686case `"$ac_path_EGREP" --version 2>&1` in
4687*GNU*)
4688 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4689*)
4690 ac_count=0
4691 $as_echo_n 0123456789 >"conftest.in"
4692 while :
4693 do
4694 cat "conftest.in" "conftest.in" >"conftest.tmp"
4695 mv "conftest.tmp" "conftest.in"
4696 cp "conftest.in" "conftest.nl"
4697 $as_echo 'EGREP' >> "conftest.nl"
4698 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4699 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4700 as_fn_arith $ac_count + 1 && ac_count=$as_val
4701 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4702 # Best one so far, save it but keep looking for a better one
4703 ac_cv_path_EGREP="$ac_path_EGREP"
4704 ac_path_EGREP_max=$ac_count
4705 fi
4706 # 10*(2^10) chars as input seems more than enough
4707 test $ac_count -gt 10 && break
5213506e 4708 done
21be0a5a
JB
4709 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4710esac
6de9cd9a 4711
21be0a5a
JB
4712 $ac_path_EGREP_found && break 3
4713 done
4714 done
4715 done
4716IFS=$as_save_IFS
4717 if test -z "$ac_cv_path_EGREP"; then
4718 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4719 fi
6de9cd9a 4720else
21be0a5a 4721 ac_cv_path_EGREP=$EGREP
6de9cd9a
DN
4722fi
4723
21be0a5a 4724 fi
6de9cd9a 4725fi
21be0a5a
JB
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4727$as_echo "$ac_cv_path_EGREP" >&6; }
4728 EGREP="$ac_cv_path_EGREP"
4729
4730
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4732$as_echo_n "checking for ANSI C header files... " >&6; }
4733if test "${ac_cv_header_stdc+set}" = set; then :
5213506e 4734 $as_echo_n "(cached) " >&6
6de9cd9a 4735else
21be0a5a
JB
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737/* end confdefs.h. */
4738#include <stdlib.h>
4739#include <stdarg.h>
4740#include <string.h>
4741#include <float.h>
4742
4743int
4744main ()
4745{
4746
4747 ;
4748 return 0;
4749}
4750_ACEOF
4751if ac_fn_c_try_compile "$LINENO"; then :
4752 ac_cv_header_stdc=yes
6de9cd9a 4753else
21be0a5a
JB
4754 ac_cv_header_stdc=no
4755fi
4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4757
21be0a5a
JB
4758if test $ac_cv_header_stdc = yes; then
4759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h. */
4762#include <string.h>
4763
4764_ACEOF
4765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4766 $EGREP "memchr" >/dev/null 2>&1; then :
4767
4768else
4769 ac_cv_header_stdc=no
6de9cd9a 4770fi
21be0a5a
JB
4771rm -f conftest*
4772
6de9cd9a 4773fi
21be0a5a
JB
4774
4775if test $ac_cv_header_stdc = yes; then
4776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h. */
4779#include <stdlib.h>
4780
4781_ACEOF
4782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4783 $EGREP "free" >/dev/null 2>&1; then :
4784
6de9cd9a 4785else
21be0a5a 4786 ac_cv_header_stdc=no
6de9cd9a 4787fi
21be0a5a 4788rm -f conftest*
6de9cd9a 4789
6de9cd9a
DN
4790fi
4791
21be0a5a
JB
4792if test $ac_cv_header_stdc = yes; then
4793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4794 if test "$cross_compiling" = yes; then :
4795 :
4796else
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h. */
4799#include <ctype.h>
4800#include <stdlib.h>
4801#if ((' ' & 0x0FF) == 0x020)
4802# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4803# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4804#else
4805# define ISLOWER(c) \
4806 (('a' <= (c) && (c) <= 'i') \
4807 || ('j' <= (c) && (c) <= 'r') \
4808 || ('s' <= (c) && (c) <= 'z'))
4809# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4810#endif
4811
4812#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4813int
4814main ()
4815{
4816 int i;
4817 for (i = 0; i < 256; i++)
4818 if (XOR (islower (i), ISLOWER (i))
4819 || toupper (i) != TOUPPER (i))
4820 return 2;
4821 return 0;
4822}
4823_ACEOF
4824if ac_fn_c_try_run "$LINENO"; then :
4825
4826else
4827 ac_cv_header_stdc=no
4828fi
4829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4830 conftest.$ac_objext conftest.beam conftest.$ac_ext
4831fi
4832
4833fi
4834fi
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4836$as_echo "$ac_cv_header_stdc" >&6; }
4837if test $ac_cv_header_stdc = yes; then
4838
4839$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4840
4841fi
4842
4843# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4844for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4845 inttypes.h stdint.h unistd.h
4846do :
4847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4848ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4849"
4850eval as_val=\$$as_ac_Header
4851 if test "x$as_val" = x""yes; then :
4852 cat >>confdefs.h <<_ACEOF
4853#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4854_ACEOF
4855
4856fi
4857
4858done
4859
4860
4861
4862 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4863if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4864 MINIX=yes
4865else
4866 MINIX=
4867fi
4868
4869
4870 if test "$MINIX" = yes; then
4871
4872$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4873
4874
4875$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4876
4877
4878$as_echo "#define _MINIX 1" >>confdefs.h
4879
4880 fi
4881
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4884$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4885if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4887else
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889/* end confdefs.h. */
4890
4891# define __EXTENSIONS__ 1
4892 $ac_includes_default
4893int
4894main ()
4895{
4896
4897 ;
4898 return 0;
4899}
4900_ACEOF
4901if ac_fn_c_try_compile "$LINENO"; then :
4902 ac_cv_safe_to_define___extensions__=yes
4903else
4904 ac_cv_safe_to_define___extensions__=no
4905fi
4906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907fi
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4909$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4910 test $ac_cv_safe_to_define___extensions__ = yes &&
4911 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4912
4913 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4914
4915 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4916
4917 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4918
4919 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4920
4921
4922
4923# Calculate toolexeclibdir
4924# Also toolexecdir, though it's only used in toolexeclibdir
4925case ${version_specific_libs} in
4926 yes)
4927 # Need the gcc compiler version to know where to install libraries
4928 # and header files if --enable-version-specific-runtime-libs option
4929 # is selected.
4930 toolexecdir='$(libdir)/gcc/$(target_alias)'
4931 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4932 ;;
4933 no)
4934 if test -n "$with_cross_host" &&
4935 test x"$with_cross_host" != x"no"; then
4936 # Install a library built with a cross compiler in tooldir, not libdir.
4937 toolexecdir='$(exec_prefix)/$(target_alias)'
4938 toolexeclibdir='$(toolexecdir)/lib'
4939 else
4940 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4941 toolexeclibdir='$(libdir)'
4942 fi
4943 multi_os_directory=`$CC -print-multi-os-directory`
4944 case $multi_os_directory in
4945 .) ;; # Avoid trailing /.
4946 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4947 esac
4948 ;;
4949esac
4950
4951
4952
4953# Create a spec file, so that compile/link tests don't fail
4954test -f libgfortran.spec || touch libgfortran.spec
4955
60858d8a
TB
4956ac_ext=c
4957ac_cpp='$CPP $CPPFLAGS'
4958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960ac_compiler_gnu=$ac_cv_c_compiler_gnu
4961
21be0a5a
JB
4962# Check the compiler.
4963# The same as in boehm-gc and libstdc++. Have to borrow it from there.
4964# We must force CC to /not/ be precious variables; otherwise
4965# the wrong, non-multilib-adjusted value will be used in multilibs.
4966# As a side effect, we have to subst CFLAGS ourselves.
4967
4968
4969
4970ac_ext=c
4971ac_cpp='$CPP $CPPFLAGS'
4972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975if test -n "$ac_tool_prefix"; then
4976 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4977set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 4980if test "${ac_cv_prog_CC+set}" = set; then :
5213506e 4981 $as_echo_n "(cached) " >&6
6de9cd9a 4982else
21be0a5a
JB
4983 if test -n "$CC"; then
4984 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 4985else
96b8a615
AJ
4986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
5213506e
RW
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 4993 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
4995 break 2
4996 fi
4997done
5213506e
RW
4998 done
4999IFS=$as_save_IFS
6de9cd9a 5000
6de9cd9a 5001fi
96b8a615 5002fi
21be0a5a
JB
5003CC=$ac_cv_prog_CC
5004if test -n "$CC"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5006$as_echo "$CC" >&6; }
96b8a615 5007else
5213506e
RW
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009$as_echo "no" >&6; }
96b8a615 5010fi
6de9cd9a 5011
5213506e 5012
6de9cd9a 5013fi
21be0a5a
JB
5014if test -z "$ac_cv_prog_CC"; then
5015 ac_ct_CC=$CC
5016 # Extract the first word of "gcc", so it can be a program name with args.
5017set dummy gcc; ac_word=$2
5213506e
RW
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 5020if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5213506e 5021 $as_echo_n "(cached) " >&6
6de9cd9a 5022else
21be0a5a
JB
5023 if test -n "$ac_ct_CC"; then
5024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6de9cd9a 5025else
96b8a615
AJ
5026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH
5028do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5213506e
RW
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 5033 ac_cv_prog_ac_ct_CC="gcc"
5213506e 5034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5035 break 2
5036 fi
5037done
5213506e
RW
5038 done
5039IFS=$as_save_IFS
6de9cd9a 5040
6de9cd9a 5041fi
6de9cd9a 5042fi
21be0a5a
JB
5043ac_ct_CC=$ac_cv_prog_ac_ct_CC
5044if test -n "$ac_ct_CC"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5046$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 5047else
5213506e
RW
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049$as_echo "no" >&6; }
6de9cd9a
DN
5050fi
5051
21be0a5a
JB
5052 if test "x$ac_ct_CC" = x; then
5053 CC=""
5213506e
RW
5054 else
5055 case $cross_compiling:$ac_tool_warned in
5056yes:)
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5059ac_tool_warned=yes ;;
5060esac
21be0a5a 5061 CC=$ac_ct_CC
5213506e 5062 fi
96b8a615 5063else
21be0a5a 5064 CC="$ac_cv_prog_CC"
6de9cd9a 5065fi
96b8a615 5066
21be0a5a
JB
5067if test -z "$CC"; then
5068 if test -n "$ac_tool_prefix"; then
5069 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5070set dummy ${ac_tool_prefix}cc; ac_word=$2
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072$as_echo_n "checking for $ac_word... " >&6; }
5073if test "${ac_cv_prog_CC+set}" = set; then :
5213506e 5074 $as_echo_n "(cached) " >&6
6de9cd9a 5075else
21be0a5a
JB
5076 if test -n "$CC"; then
5077 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 5078else
21be0a5a
JB
5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080for as_dir in $PATH
5081do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_prog_CC="${ac_tool_prefix}cc"
5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 break 2
5089 fi
5090done
5091 done
5092IFS=$as_save_IFS
5093
5094fi
5095fi
5096CC=$ac_cv_prog_CC
5097if test -n "$CC"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5099$as_echo "$CC" >&6; }
5100else
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102$as_echo "no" >&6; }
5103fi
5104
5105
5106 fi
5107fi
5108if test -z "$CC"; then
5109 # Extract the first word of "cc", so it can be a program name with args.
5110set dummy cc; ac_word=$2
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112$as_echo_n "checking for $ac_word... " >&6; }
5113if test "${ac_cv_prog_CC+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5115else
5116 if test -n "$CC"; then
5117 ac_cv_prog_CC="$CC" # Let the user override the test.
5118else
5119 ac_prog_rejected=no
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5128 ac_prog_rejected=yes
5129 continue
5130 fi
5131 ac_cv_prog_CC="cc"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5134 fi
5135done
5136 done
5137IFS=$as_save_IFS
5138
5139if test $ac_prog_rejected = yes; then
5140 # We found a bogon in the path, so make sure we never use it.
5141 set dummy $ac_cv_prog_CC
5142 shift
5143 if test $# != 0; then
5144 # We chose a different compiler from the bogus one.
5145 # However, it has the same basename, so the bogon will be chosen
5146 # first if we set CC to just the basename; use the full file name.
5147 shift
5148 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5149 fi
5150fi
5151fi
5152fi
5153CC=$ac_cv_prog_CC
5154if test -n "$CC"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5156$as_echo "$CC" >&6; }
5157else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }
5160fi
5161
5162
5163fi
5164if test -z "$CC"; then
5165 if test -n "$ac_tool_prefix"; then
5166 for ac_prog in cl.exe
5167 do
5168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5169set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171$as_echo_n "checking for $ac_word... " >&6; }
5172if test "${ac_cv_prog_CC+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5174else
5175 if test -n "$CC"; then
5176 ac_cv_prog_CC="$CC" # Let the user override the test.
5177else
5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5188 fi
5189done
5190 done
5191IFS=$as_save_IFS
5192
5193fi
5194fi
5195CC=$ac_cv_prog_CC
5196if test -n "$CC"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5198$as_echo "$CC" >&6; }
5199else
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201$as_echo "no" >&6; }
5202fi
5203
5204
5205 test -n "$CC" && break
5206 done
5207fi
5208if test -z "$CC"; then
5209 ac_ct_CC=$CC
5210 for ac_prog in cl.exe
5211do
5212 # Extract the first word of "$ac_prog", so it can be a program name with args.
5213set dummy $ac_prog; ac_word=$2
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215$as_echo_n "checking for $ac_word... " >&6; }
5216if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218else
5219 if test -n "$ac_ct_CC"; then
5220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5221else
5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_ac_ct_CC="$ac_prog"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233done
5234 done
5235IFS=$as_save_IFS
5236
5237fi
5238fi
5239ac_ct_CC=$ac_cv_prog_ac_ct_CC
5240if test -n "$ac_ct_CC"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5242$as_echo "$ac_ct_CC" >&6; }
5243else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245$as_echo "no" >&6; }
5246fi
5247
5248
5249 test -n "$ac_ct_CC" && break
5250done
5251
5252 if test "x$ac_ct_CC" = x; then
5253 CC=""
5254 else
5255 case $cross_compiling:$ac_tool_warned in
5256yes:)
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5259ac_tool_warned=yes ;;
5260esac
5261 CC=$ac_ct_CC
5262 fi
5263fi
5264
5265fi
5266
5267
5268test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5270as_fn_error "no acceptable C compiler found in \$PATH
5271See \`config.log' for more details." "$LINENO" 5; }
5272
5273# Provide some information about the compiler.
5274$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5275set X $ac_compile
5276ac_compiler=$2
5277for ac_option in --version -v -V -qversion; do
5278 { { ac_try="$ac_compiler $ac_option >&5"
5279case "(($ac_try" in
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5282esac
5283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5284$as_echo "$ac_try_echo"; } >&5
5285 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5286 ac_status=$?
5287 if test -s conftest.err; then
5288 sed '10a\
5289... rest of stderr output deleted ...
5290 10q' conftest.err >conftest.er1
5291 cat conftest.er1 >&5
5292 rm -f conftest.er1 conftest.err
5293 fi
5294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5295 test $ac_status = 0; }
5296done
5297
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5299$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5300if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5301 $as_echo_n "(cached) " >&6
5302else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304/* end confdefs.h. */
5305
5306int
5307main ()
5308{
5309#ifndef __GNUC__
5310 choke me
5311#endif
5312
5313 ;
5314 return 0;
5315}
5316_ACEOF
5317if ac_fn_c_try_compile "$LINENO"; then :
5318 ac_compiler_gnu=yes
5319else
5320 ac_compiler_gnu=no
5321fi
5322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323ac_cv_c_compiler_gnu=$ac_compiler_gnu
5324
5325fi
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5327$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5328if test $ac_compiler_gnu = yes; then
5329 GCC=yes
5330else
5331 GCC=
5332fi
5333ac_test_CFLAGS=${CFLAGS+set}
5334ac_save_CFLAGS=$CFLAGS
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5336$as_echo_n "checking whether $CC accepts -g... " >&6; }
5337if test "${ac_cv_prog_cc_g+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5339else
5340 ac_save_c_werror_flag=$ac_c_werror_flag
5341 ac_c_werror_flag=yes
5342 ac_cv_prog_cc_g=no
5343 CFLAGS="-g"
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345/* end confdefs.h. */
5346
5347int
5348main ()
5349{
5350
5351 ;
5352 return 0;
5353}
5354_ACEOF
5355if ac_fn_c_try_compile "$LINENO"; then :
5356 ac_cv_prog_cc_g=yes
5357else
5358 CFLAGS=""
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360/* end confdefs.h. */
5361
5362int
5363main ()
5364{
5365
5366 ;
5367 return 0;
5368}
5369_ACEOF
5370if ac_fn_c_try_compile "$LINENO"; then :
5371
5372else
5373 ac_c_werror_flag=$ac_save_c_werror_flag
5374 CFLAGS="-g"
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376/* end confdefs.h. */
5377
5378int
5379main ()
5380{
5381
5382 ;
5383 return 0;
5384}
5385_ACEOF
5386if ac_fn_c_try_compile "$LINENO"; then :
5387 ac_cv_prog_cc_g=yes
5388fi
5389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390fi
5391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392fi
5393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 ac_c_werror_flag=$ac_save_c_werror_flag
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5397$as_echo "$ac_cv_prog_cc_g" >&6; }
5398if test "$ac_test_CFLAGS" = set; then
5399 CFLAGS=$ac_save_CFLAGS
5400elif test $ac_cv_prog_cc_g = yes; then
5401 if test "$GCC" = yes; then
5402 CFLAGS="-g -O2"
5403 else
5404 CFLAGS="-g"
5405 fi
5406else
5407 if test "$GCC" = yes; then
5408 CFLAGS="-O2"
5409 else
5410 CFLAGS=
5411 fi
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5414$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5415if test "${ac_cv_prog_cc_c89+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5417else
5418 ac_cv_prog_cc_c89=no
5419ac_save_CC=$CC
5420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421/* end confdefs.h. */
5422#include <stdarg.h>
5423#include <stdio.h>
5424#include <sys/types.h>
5425#include <sys/stat.h>
5426/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5427struct buf { int x; };
5428FILE * (*rcsopen) (struct buf *, struct stat *, int);
5429static char *e (p, i)
5430 char **p;
5431 int i;
5432{
5433 return p[i];
5434}
5435static char *f (char * (*g) (char **, int), char **p, ...)
5436{
5437 char *s;
5438 va_list v;
5439 va_start (v,p);
5440 s = g (p, va_arg (v,int));
5441 va_end (v);
5442 return s;
5443}
5444
5445/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5446 function prototypes and stuff, but not '\xHH' hex character constants.
5447 These don't provoke an error unfortunately, instead are silently treated
5448 as 'x'. The following induces an error, until -std is added to get
5449 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5450 array size at least. It's necessary to write '\x00'==0 to get something
5451 that's true only with -std. */
5452int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5453
5454/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5455 inside strings and character constants. */
5456#define FOO(x) 'x'
5457int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5458
5459int test (int i, double x);
5460struct s1 {int (*f) (int a);};
5461struct s2 {int (*f) (double a);};
5462int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5463int argc;
5464char **argv;
5465int
5466main ()
5467{
5468return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5469 ;
5470 return 0;
5471}
5472_ACEOF
5473for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5474 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5475do
5476 CC="$ac_save_CC $ac_arg"
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478 ac_cv_prog_cc_c89=$ac_arg
5479fi
5480rm -f core conftest.err conftest.$ac_objext
5481 test "x$ac_cv_prog_cc_c89" != "xno" && break
5482done
5483rm -f conftest.$ac_ext
5484CC=$ac_save_CC
5485
5486fi
5487# AC_CACHE_VAL
5488case "x$ac_cv_prog_cc_c89" in
5489 x)
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5491$as_echo "none needed" >&6; } ;;
5492 xno)
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5494$as_echo "unsupported" >&6; } ;;
5495 *)
5496 CC="$CC $ac_cv_prog_cc_c89"
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5498$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5499esac
5500if test "x$ac_cv_prog_cc_c89" != xno; then :
5501
5502fi
5503
5504ac_ext=c
5505ac_cpp='$CPP $CPPFLAGS'
5506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509
5510depcc="$CC" am_compiler_list=
5511
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5513$as_echo_n "checking dependency style of $depcc... " >&6; }
5514if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5516else
5517 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5518 # We make a subdir and do the tests there. Otherwise we can end up
5519 # making bogus files that we don't know about and never remove. For
5520 # instance it was reported that on HP-UX the gcc test will end up
5521 # making a dummy file named `D' -- because `-MD' means `put the output
5522 # in D'.
c20fdb91 5523 rm -rf conftest.dir
21be0a5a
JB
5524 mkdir conftest.dir
5525 # Copy depcomp to subdir because otherwise we won't find it if we're
5526 # using a relative directory.
5527 cp "$am_depcomp" conftest.dir
5528 cd conftest.dir
5529 # We will build objects and dependencies in a subdirectory because
5530 # it helps to detect inapplicable dependency modes. For instance
5531 # both Tru64's cc and ICC support -MD to output dependencies as a
5532 # side effect of compilation, but ICC will put the dependencies in
5533 # the current directory while Tru64 will put them in the object
5534 # directory.
5535 mkdir sub
5536
5537 am_cv_CC_dependencies_compiler_type=none
5538 if test "$am_compiler_list" = ""; then
5539 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5540 fi
5541 am__universal=false
5542 case " $depcc " in #(
5543 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5544 esac
5545
5546 for depmode in $am_compiler_list; do
5547 # Setup a source with many dependencies, because some compilers
5548 # like to wrap large dependency lists on column 80 (with \), and
5549 # we should not choose a depcomp mode which is confused by this.
5550 #
5551 # We need to recreate these files for each test, as the compiler may
5552 # overwrite some of them when testing with obscure command lines.
5553 # This happens at least with the AIX C compiler.
5554 : > sub/conftest.c
5555 for i in 1 2 3 4 5 6; do
5556 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5557 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5558 # Solaris 8's {/usr,}/bin/sh.
5559 touch sub/conftst$i.h
5560 done
5561 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5562
5563 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5564 # mode. It turns out that the SunPro C++ compiler does not properly
5565 # handle `-M -o', and we need to detect this. Also, some Intel
5566 # versions had trouble with output in subdirs
5567 am__obj=sub/conftest.${OBJEXT-o}
5568 am__minus_obj="-o $am__obj"
5569 case $depmode in
5570 gcc)
5571 # This depmode causes a compiler race in universal mode.
5572 test "$am__universal" = false || continue
5573 ;;
5574 nosideeffect)
5575 # after this tag, mechanisms are not by side-effect, so they'll
5576 # only be used when explicitly requested
5577 if test "x$enable_dependency_tracking" = xyes; then
5578 continue
5579 else
5580 break
5581 fi
5582 ;;
c20fdb91 5583 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
21be0a5a
JB
5584 # This compiler won't grok `-c -o', but also, the minuso test has
5585 # not run yet. These depmodes are late enough in the game, and
5586 # so weak that their functioning should not be impacted.
5587 am__obj=conftest.${OBJEXT-o}
5588 am__minus_obj=
5589 ;;
5590 none) break ;;
5591 esac
5592 if depmode=$depmode \
5593 source=sub/conftest.c object=$am__obj \
5594 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5595 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5596 >/dev/null 2>conftest.err &&
5597 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5599 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5601 # icc doesn't choke on unknown options, it will just issue warnings
5602 # or remarks (even with -Werror). So we grep stderr for any message
5603 # that says an option was ignored or not supported.
5604 # When given -MP, icc 7.0 and 7.1 complain thusly:
5605 # icc: Command line warning: ignoring option '-M'; no argument required
5606 # The diagnosis changed in icc 8.0:
5607 # icc: Command line remark: option '-MP' not supported
5608 if (grep 'ignoring option' conftest.err ||
5609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5610 am_cv_CC_dependencies_compiler_type=$depmode
5611 break
5612 fi
5613 fi
5614 done
5615
5616 cd ..
5617 rm -rf conftest.dir
5618else
5619 am_cv_CC_dependencies_compiler_type=none
5620fi
5621
5622fi
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5624$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5625CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5626
5627 if
5628 test "x$enable_dependency_tracking" != xno \
5629 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5630 am__fastdepCC_TRUE=
5631 am__fastdepCC_FALSE='#'
5632else
5633 am__fastdepCC_TRUE='#'
5634 am__fastdepCC_FALSE=
5635fi
5636
5637
5638
5639
60858d8a
TB
5640
5641
5642if test "x$CC" != xcc; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5644$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5645else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5647$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5648fi
5649set dummy $CC; ac_cc=`$as_echo "$2" |
5650 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5651if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5652 $as_echo_n "(cached) " >&6
5653else
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h. */
5656
5657int
5658main ()
5659{
5660
5661 ;
5662 return 0;
5663}
5664_ACEOF
5665# Make sure it works both with $CC and with simple cc.
5666# We do the test twice because some compilers refuse to overwrite an
5667# existing .o file with -o, though they will create one.
5668ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5669rm -f conftest2.*
5670if { { case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673esac
5674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5675$as_echo "$ac_try_echo"; } >&5
5676 (eval "$ac_try") 2>&5
5677 ac_status=$?
5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679 test $ac_status = 0; } &&
5680 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683esac
5684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5685$as_echo "$ac_try_echo"; } >&5
5686 (eval "$ac_try") 2>&5
5687 ac_status=$?
5688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5689 test $ac_status = 0; };
5690then
5691 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5692 if test "x$CC" != xcc; then
5693 # Test first that cc exists at all.
5694 if { ac_try='cc -c conftest.$ac_ext >&5'
5695 { { case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698esac
5699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5700$as_echo "$ac_try_echo"; } >&5
5701 (eval "$ac_try") 2>&5
5702 ac_status=$?
5703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5704 test $ac_status = 0; }; }; then
5705 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5706 rm -f conftest2.*
5707 if { { case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710esac
5711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5712$as_echo "$ac_try_echo"; } >&5
5713 (eval "$ac_try") 2>&5
5714 ac_status=$?
5715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5716 test $ac_status = 0; } &&
5717 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720esac
5721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5722$as_echo "$ac_try_echo"; } >&5
5723 (eval "$ac_try") 2>&5
5724 ac_status=$?
5725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5726 test $ac_status = 0; };
5727 then
5728 # cc works too.
5729 :
5730 else
5731 # cc exists but doesn't like -o.
5732 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5733 fi
5734 fi
5735 fi
5736else
5737 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5738fi
5739rm -f core conftest*
5740
5741fi
5742if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5744$as_echo "yes" >&6; }
5745else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747$as_echo "no" >&6; }
5748
5749$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5750
5751fi
5752
5753# FIXME: we rely on the cache variable name because
5754# there is no other way.
5755set dummy $CC
5756am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5757eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5758if test "$am_t" != yes; then
5759 # Losing compiler, so override with the script.
5760 # FIXME: It is wrong to rewrite CC.
5761 # But if we don't then we get into trouble of one sort or another.
5762 # A longer-term fix would be to have automake use am__CC in this case,
5763 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5764 CC="$am_aux_dir/compile $CC"
5765fi
5766
5767
5768
21be0a5a
JB
5769# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5770if test "x$GCC" = "xyes"; then
5771 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
f7b6856f
JB
5772 ## We like to use C11 and C99 routines when available. This makes
5773 ## sure that
21be0a5a 5774 ## __STDC_VERSION__ is set such that libc includes make them available.
581d2326 5775 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
21be0a5a
JB
5776 ## Compile the following tests with the same system header contents
5777 ## that we'll encounter when compiling our own source files.
f7b6856f 5778 CFLAGS="-std=gnu11 $CFLAGS"
21be0a5a
JB
5779fi
5780
5781
5782
5783
5784# Check for symbol versioning (copied from libssp).
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5786$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bf382f5f
RO
5787# Check whether --enable-symvers was given.
5788if test "${enable_symvers+set}" = set; then :
5789 enableval=$enable_symvers; gfortran_use_symver=$enableval
5790else
5791 gfortran_use_symver=yes
5792fi
5793
19af62db 5794if test "x$gfortran_use_symver" != xno; then
bf382f5f
RO
5795 save_LDFLAGS="$LDFLAGS"
5796 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5797 cat > conftest.map <<EOF
21be0a5a
JB
5798FOO_1.0 {
5799 global: *foo*; bar; local: *;
5800};
5801EOF
bf382f5f 5802 if test x$gcc_no_link = xyes; then
21be0a5a
JB
5803 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5804fi
5805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806/* end confdefs.h. */
5807int foo;
5808int
5809main ()
5810{
5811
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816if ac_fn_c_try_link "$LINENO"; then :
5817 gfortran_use_symver=gnu
5818else
5819 gfortran_use_symver=no
5820fi
5821rm -f core conftest.err conftest.$ac_objext \
5822 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
5823 if test x$gfortran_use_symver = xno; then
5824 case "$target_os" in
5825 solaris2*)
5826 LDFLAGS="$save_LDFLAGS"
5827 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5828 # Sun ld cannot handle wildcards and treats all entries as undefined.
5829 cat > conftest.map <<EOF
21be0a5a
JB
5830FOO_1.0 {
5831 global: foo; local: *;
5832};
5833EOF
bf382f5f 5834 if test x$gcc_no_link = xyes; then
21be0a5a
JB
5835 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5836fi
5837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h. */
5839int foo;
5840int
5841main ()
5842{
5843
5844 ;
5845 return 0;
5846}
5847_ACEOF
5848if ac_fn_c_try_link "$LINENO"; then :
5849 gfortran_use_symver=sun
5850else
5851 gfortran_use_symver=no
5852fi
5853rm -f core conftest.err conftest.$ac_objext \
5854 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
5855 ;;
5856 esac
5857 fi
5858 LDFLAGS="$save_LDFLAGS"
21be0a5a 5859fi
21be0a5a
JB
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5861$as_echo "$gfortran_use_symver" >&6; }
5862 if test "x$gfortran_use_symver" != xno; then
5863 LIBGFOR_USE_SYMVER_TRUE=
5864 LIBGFOR_USE_SYMVER_FALSE='#'
5865else
5866 LIBGFOR_USE_SYMVER_TRUE='#'
5867 LIBGFOR_USE_SYMVER_FALSE=
5868fi
5869
5870 if test "x$gfortran_use_symver" = xgnu; then
5871 LIBGFOR_USE_SYMVER_GNU_TRUE=
5872 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5873else
5874 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5875 LIBGFOR_USE_SYMVER_GNU_FALSE=
5876fi
5877
5878 if test "x$gfortran_use_symver" = xsun; then
5879 LIBGFOR_USE_SYMVER_SUN_TRUE=
5880 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5881else
5882 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5883 LIBGFOR_USE_SYMVER_SUN_FALSE=
5884fi
5885
5886
ee95f928
BS
5887# For GPU offloading, not everything in libfortran can be supported.
5888# Currently, the only target that has this problem is nvptx. The
5889# following is a (partial) list of features that are unsupportable on
5890# this particular target:
5891# * Constructors
5892# * alloca
5893# * C library support for I/O, with printf as the one notable exception
5894# * C library support for other features such as signal, environment
5895# variables, time functions
5896
5897 if test "x${target_cpu}" = xnvptx; then
5898 LIBGFOR_MINIMAL_TRUE=
5899 LIBGFOR_MINIMAL_FALSE='#'
5900else
5901 LIBGFOR_MINIMAL_TRUE='#'
5902 LIBGFOR_MINIMAL_FALSE=
5903fi
5904
5905
21be0a5a
JB
5906# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5907# similarly to how libstdc++ does it
5908ac_test_CFLAGS="${CFLAGS+set}"
5909ac_save_CFLAGS="$CFLAGS"
5910
5911# Check for -ffunction-sections -fdata-sections
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5913$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5914CFLAGS='-Werror -ffunction-sections -fdata-sections'
5915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916/* end confdefs.h. */
5917
5918int
5919main ()
5920{
5921int foo;
5922 ;
5923 return 0;
5924}
5925_ACEOF
5926if ac_fn_c_try_compile "$LINENO"; then :
5927 ac_fdsections=yes
5928else
5929 ac_fdsections=no
5930fi
5931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932if test "$ac_test_CFLAGS" = set; then
5933 CFLAGS="$ac_save_CFLAGS"
5934else
5935 # this is the suspicious part
5936 CFLAGS=""
5937fi
5938if test x"$ac_fdsections" = x"yes"; then
5939 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5940fi
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5942$as_echo "$ac_fdsections" >&6; }
5943
5944
5945# Find other programs we need.
5946if test -n "$ac_tool_prefix"; then
5947 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5948set dummy ${ac_tool_prefix}as; ac_word=$2
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950$as_echo_n "checking for $ac_word... " >&6; }
5951if test "${ac_cv_prog_AS+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5953else
5954 if test -n "$AS"; then
5955 ac_cv_prog_AS="$AS" # Let the user override the test.
5956else
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964 ac_cv_prog_AS="${ac_tool_prefix}as"
5965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968done
5969 done
5970IFS=$as_save_IFS
5971
5972fi
5973fi
5974AS=$ac_cv_prog_AS
5975if test -n "$AS"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5977$as_echo "$AS" >&6; }
5978else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980$as_echo "no" >&6; }
5981fi
5982
5983
5984fi
5985if test -z "$ac_cv_prog_AS"; then
5986 ac_ct_AS=$AS
5987 # Extract the first word of "as", so it can be a program name with args.
5988set dummy as; ac_word=$2
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990$as_echo_n "checking for $ac_word... " >&6; }
5991if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5993else
5994 if test -n "$ac_ct_AS"; then
5995 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5996else
5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998for as_dir in $PATH
5999do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_prog_ac_ct_AS="as"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008done
6009 done
6010IFS=$as_save_IFS
6011
6012fi
6013fi
6014ac_ct_AS=$ac_cv_prog_ac_ct_AS
6015if test -n "$ac_ct_AS"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6017$as_echo "$ac_ct_AS" >&6; }
6018else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020$as_echo "no" >&6; }
6021fi
6022
6023 if test "x$ac_ct_AS" = x; then
6024 AS=""
6025 else
6026 case $cross_compiling:$ac_tool_warned in
6027yes:)
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6030ac_tool_warned=yes ;;
6031esac
6032 AS=$ac_ct_AS
6033 fi
6034else
6035 AS="$ac_cv_prog_AS"
6036fi
6037
6038if test -n "$ac_tool_prefix"; then
6039 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6040set dummy ${ac_tool_prefix}ar; ac_word=$2
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042$as_echo_n "checking for $ac_word... " >&6; }
6043if test "${ac_cv_prog_AR+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045else
6046 if test -n "$AR"; then
6047 ac_cv_prog_AR="$AR" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_AR="${ac_tool_prefix}ar"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060done
6061 done
6062IFS=$as_save_IFS
6063
6064fi
6065fi
6066AR=$ac_cv_prog_AR
6067if test -n "$AR"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6069$as_echo "$AR" >&6; }
6070else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072$as_echo "no" >&6; }
6073fi
6074
6075
6076fi
6077if test -z "$ac_cv_prog_AR"; then
6078 ac_ct_AR=$AR
6079 # Extract the first word of "ar", so it can be a program name with args.
6080set dummy ar; ac_word=$2
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082$as_echo_n "checking for $ac_word... " >&6; }
6083if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
6085else
6086 if test -n "$ac_ct_AR"; then
6087 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_ac_ct_AR="ar"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100done
6101 done
6102IFS=$as_save_IFS
6103
6104fi
6105fi
6106ac_ct_AR=$ac_cv_prog_ac_ct_AR
6107if test -n "$ac_ct_AR"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6109$as_echo "$ac_ct_AR" >&6; }
6110else
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112$as_echo "no" >&6; }
6113fi
6114
6115 if test "x$ac_ct_AR" = x; then
6116 AR=""
6117 else
6118 case $cross_compiling:$ac_tool_warned in
6119yes:)
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6122ac_tool_warned=yes ;;
6123esac
6124 AR=$ac_ct_AR
6125 fi
6126else
6127 AR="$ac_cv_prog_AR"
6128fi
6129
6130if test -n "$ac_tool_prefix"; then
6131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6132set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134$as_echo_n "checking for $ac_word... " >&6; }
6135if test "${ac_cv_prog_RANLIB+set}" = set; then :
6136 $as_echo_n "(cached) " >&6
6137else
6138 if test -n "$RANLIB"; then
6139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6140else
6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH
6143do
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6151 fi
6152done
6153 done
6154IFS=$as_save_IFS
6155
6156fi
6157fi
6158RANLIB=$ac_cv_prog_RANLIB
6159if test -n "$RANLIB"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6161$as_echo "$RANLIB" >&6; }
6162else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164$as_echo "no" >&6; }
6165fi
6166
6167
6168fi
6169if test -z "$ac_cv_prog_RANLIB"; then
6170 ac_ct_RANLIB=$RANLIB
6171 # Extract the first word of "ranlib", so it can be a program name with args.
6172set dummy ranlib; ac_word=$2
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174$as_echo_n "checking for $ac_word... " >&6; }
6175if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6176 $as_echo_n "(cached) " >&6
6177else
6178 if test -n "$ac_ct_RANLIB"; then
6179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6180else
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
6183do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_prog_ac_ct_RANLIB="ranlib"
6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6191 fi
6192done
6193 done
6194IFS=$as_save_IFS
6195
6196fi
6197fi
6198ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6199if test -n "$ac_ct_RANLIB"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6201$as_echo "$ac_ct_RANLIB" >&6; }
6202else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204$as_echo "no" >&6; }
6205fi
6206
6207 if test "x$ac_ct_RANLIB" = x; then
6208 RANLIB="ranlib-not-found-in-path-error"
6209 else
6210 case $cross_compiling:$ac_tool_warned in
6211yes:)
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6214ac_tool_warned=yes ;;
6215esac
6216 RANLIB=$ac_ct_RANLIB
6217 fi
6218else
6219 RANLIB="$ac_cv_prog_RANLIB"
6220fi
6221
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6223$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6224set x ${MAKE-make}
6225ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6226if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6227 $as_echo_n "(cached) " >&6
6228else
6229 cat >conftest.make <<\_ACEOF
6230SHELL = /bin/sh
6231all:
6232 @echo '@@@%%%=$(MAKE)=@@@%%%'
6233_ACEOF
6234# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6235case `${MAKE-make} -f conftest.make 2>/dev/null` in
6236 *@@@%%%=?*=@@@%%%*)
6237 eval ac_cv_prog_make_${ac_make}_set=yes;;
6238 *)
6239 eval ac_cv_prog_make_${ac_make}_set=no;;
6240esac
6241rm -f conftest.make
6242fi
6243if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6245$as_echo "yes" >&6; }
6246 SET_MAKE=
6247else
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249$as_echo "no" >&6; }
6250 SET_MAKE="MAKE=${MAKE-make}"
6251fi
6de9cd9a 6252
6de9cd9a 6253
6de9cd9a 6254
96b8a615
AJ
6255# Configure libtool
6256#AC_MSG_NOTICE([====== Starting libtool configuration])
1cf3d07d
SE
6257enable_dlopen=yes
6258
6259
6260
d58dead8
PG
6261case `pwd` in
6262 *\ * | *\ *)
5213506e
RW
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6264$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
d58dead8 6265esac
1cf3d07d
SE
6266
6267
1cf3d07d 6268
43e02a8a
RW
6269macro_version='2.2.7a'
6270macro_revision='1.3134'
1cf3d07d
SE
6271
6272
6273
6274
6275
6276
6de9cd9a 6277
1cf3d07d
SE
6278
6279
6280
6281
6282
6283
d58dead8 6284ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 6285
43e02a8a
RW
6286# Backslashify metacharacters that are still active within
6287# double-quoted strings.
6288sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6289
6290# Same as above, but do not quote variable references.
6291double_quote_subst='s/\(["`\\]\)/\\\1/g'
6292
6293# Sed substitution to delay expansion of an escaped shell variable in a
6294# double_quote_subst'ed string.
6295delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6296
6297# Sed substitution to delay expansion of an escaped single quote.
6298delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6299
6300# Sed substitution to avoid accidental globbing in evaled expressions
6301no_glob_subst='s/\*/\\\*/g'
6302
6303ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6304ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6305ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6306
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6308$as_echo_n "checking how to print strings... " >&6; }
6309# Test print first, because it will be a builtin if present.
6310if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6311 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6312 ECHO='print -r --'
6313elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6314 ECHO='printf %s\n'
6315else
6316 # Use this function as a fallback that always works.
6317 func_fallback_echo ()
6318 {
6319 eval 'cat <<_LTECHO_EOF
6320$1
6321_LTECHO_EOF'
6322 }
6323 ECHO='func_fallback_echo'
6324fi
6325
6326# func_echo_all arg...
6327# Invoke $ECHO with all args, space-separated.
6328func_echo_all ()
6329{
6330 $ECHO ""
6331}
6332
6333case "$ECHO" in
6334 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6335$as_echo "printf" >&6; } ;;
6336 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6337$as_echo "print -r" >&6; } ;;
6338 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6339$as_echo "cat" >&6; } ;;
6340esac
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
21be0a5a
JB
6353
6354
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6356$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6357if test "${ac_cv_path_SED+set}" = set; then :
5213506e 6358 $as_echo_n "(cached) " >&6
1cf3d07d 6359else
21be0a5a
JB
6360 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6361 for ac_i in 1 2 3 4 5 6 7; do
6362 ac_script="$ac_script$as_nl$ac_script"
6363 done
6364 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6365 { ac_script=; unset ac_script;}
6366 if test -z "$SED"; then
6367 ac_path_SED_found=false
5213506e
RW
6368 # Loop through the user's path and test for each of PROGNAME-LIST
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21be0a5a 6370for as_dir in $PATH
5213506e
RW
6371do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
21be0a5a 6374 for ac_prog in sed gsed; do
5213506e 6375 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
6376 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6377 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6378# Check for GNU ac_path_SED and select it if it is found.
6379 # Check for GNU $ac_path_SED
6380case `"$ac_path_SED" --version 2>&1` in
5213506e 6381*GNU*)
21be0a5a 6382 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5213506e
RW
6383*)
6384 ac_count=0
6385 $as_echo_n 0123456789 >"conftest.in"
6386 while :
6387 do
6388 cat "conftest.in" "conftest.in" >"conftest.tmp"
6389 mv "conftest.tmp" "conftest.in"
6390 cp "conftest.in" "conftest.nl"
21be0a5a
JB
6391 $as_echo '' >> "conftest.nl"
6392 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213506e
RW
6393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6394 as_fn_arith $ac_count + 1 && ac_count=$as_val
21be0a5a 6395 if test $ac_count -gt ${ac_path_SED_max-0}; then
5213506e 6396 # Best one so far, save it but keep looking for a better one
21be0a5a
JB
6397 ac_cv_path_SED="$ac_path_SED"
6398 ac_path_SED_max=$ac_count
38d24731 6399 fi
5213506e
RW
6400 # 10*(2^10) chars as input seems more than enough
6401 test $ac_count -gt 10 && break
6402 done
6403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6404esac
6405
21be0a5a 6406 $ac_path_SED_found && break 3
5213506e
RW
6407 done
6408 done
6409 done
6410IFS=$as_save_IFS
21be0a5a
JB
6411 if test -z "$ac_cv_path_SED"; then
6412 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5213506e
RW
6413 fi
6414else
21be0a5a 6415 ac_cv_path_SED=$SED
5213506e
RW
6416fi
6417
1cf3d07d 6418fi
21be0a5a
JB
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6420$as_echo "$ac_cv_path_SED" >&6; }
6421 SED="$ac_cv_path_SED"
6422 rm -f conftest.sed
6423
6424test -z "$SED" && SED=sed
6425Xsed="$SED -e 1s/^X//"
6426
6427
6428
6429
6430
6431
6432
6433
6434
1cf3d07d
SE
6435
6436
5213506e
RW
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6438$as_echo_n "checking for fgrep... " >&6; }
6439if test "${ac_cv_path_FGREP+set}" = set; then :
6440 $as_echo_n "(cached) " >&6
38d24731 6441else
5213506e
RW
6442 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6443 then ac_cv_path_FGREP="$GREP -F"
6444 else
6445 if test -z "$FGREP"; then
6446 ac_path_FGREP_found=false
6447 # Loop through the user's path and test for each of PROGNAME-LIST
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6450do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_prog in fgrep; do
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6456 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6457# Check for GNU ac_path_FGREP and select it if it is found.
6458 # Check for GNU $ac_path_FGREP
6459case `"$ac_path_FGREP" --version 2>&1` in
6460*GNU*)
6461 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6462*)
6463 ac_count=0
6464 $as_echo_n 0123456789 >"conftest.in"
6465 while :
6466 do
6467 cat "conftest.in" "conftest.in" >"conftest.tmp"
6468 mv "conftest.tmp" "conftest.in"
6469 cp "conftest.in" "conftest.nl"
6470 $as_echo 'FGREP' >> "conftest.nl"
6471 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6473 as_fn_arith $ac_count + 1 && ac_count=$as_val
6474 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6475 # Best one so far, save it but keep looking for a better one
6476 ac_cv_path_FGREP="$ac_path_FGREP"
6477 ac_path_FGREP_max=$ac_count
38d24731 6478 fi
5213506e
RW
6479 # 10*(2^10) chars as input seems more than enough
6480 test $ac_count -gt 10 && break
6481 done
6482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6483esac
6484
6485 $ac_path_FGREP_found && break 3
6486 done
6487 done
6488 done
6489IFS=$as_save_IFS
6490 if test -z "$ac_cv_path_FGREP"; then
6491 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6492 fi
6493else
6494 ac_cv_path_FGREP=$FGREP
1cf3d07d 6495fi
5213506e
RW
6496
6497 fi
6498fi
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6500$as_echo "$ac_cv_path_FGREP" >&6; }
6501 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
6502
6503
6504test -z "$GREP" && GREP=grep
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
5213506e
RW
6524# Check whether --with-gnu-ld was given.
6525if test "${with_gnu_ld+set}" = set; then :
6526 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
96b8a615
AJ
6527else
6528 with_gnu_ld=no
5213506e
RW
6529fi
6530
96b8a615
AJ
6531ac_prog=ld
6532if test "$GCC" = yes; then
6533 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6535$as_echo_n "checking for ld used by $CC... " >&6; }
96b8a615
AJ
6536 case $host in
6537 *-*-mingw*)
6538 # gcc leaves a trailing carriage return which upsets mingw
6539 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6540 *)
6541 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6542 esac
6543 case $ac_prog in
6544 # Accept absolute paths.
1cf3d07d 6545 [\\/]* | ?:[\\/]*)
96b8a615 6546 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
6547 # Canonicalize the pathname of ld
6548 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6549 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6550 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
96b8a615
AJ
6551 done
6552 test -z "$LD" && LD="$ac_prog"
6553 ;;
6554 "")
6555 # If it fails, then pretend we aren't using GCC.
6556 ac_prog=ld
6557 ;;
6558 *)
6559 # If it is relative, then search for the first ld in PATH.
6560 with_gnu_ld=unknown
6561 ;;
6562 esac
6563elif test "$with_gnu_ld" = yes; then
5213506e
RW
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6565$as_echo_n "checking for GNU ld... " >&6; }
96b8a615 6566else
5213506e
RW
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6568$as_echo_n "checking for non-GNU ld... " >&6; }
96b8a615 6569fi
5213506e
RW
6570if test "${lt_cv_path_LD+set}" = set; then :
6571 $as_echo_n "(cached) " >&6
96b8a615
AJ
6572else
6573 if test -z "$LD"; then
1cf3d07d 6574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
96b8a615 6575 for ac_dir in $PATH; do
1cf3d07d 6576 IFS="$lt_save_ifs"
96b8a615
AJ
6577 test -z "$ac_dir" && ac_dir=.
6578 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6579 lt_cv_path_LD="$ac_dir/$ac_prog"
6580 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 6581 # but apparently some variants of GNU ld only accept -v.
96b8a615 6582 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
6583 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6584 *GNU* | *'with BFD'*)
96b8a615 6585 test "$with_gnu_ld" != no && break
1cf3d07d
SE
6586 ;;
6587 *)
96b8a615 6588 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
6589 ;;
6590 esac
96b8a615
AJ
6591 fi
6592 done
1cf3d07d 6593 IFS="$lt_save_ifs"
96b8a615
AJ
6594else
6595 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6596fi
6597fi
6598
6599LD="$lt_cv_path_LD"
6600if test -n "$LD"; then
5213506e
RW
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6602$as_echo "$LD" >&6; }
96b8a615 6603else
5213506e
RW
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605$as_echo "no" >&6; }
96b8a615 6606fi
5213506e
RW
6607test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6609$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6610if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6611 $as_echo_n "(cached) " >&6
96b8a615 6612else
1cf3d07d
SE
6613 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6614case `$LD -v 2>&1 </dev/null` in
6615*GNU* | *'with BFD'*)
96b8a615 6616 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
6617 ;;
6618*)
96b8a615 6619 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
6620 ;;
6621esac
96b8a615 6622fi
5213506e
RW
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6624$as_echo "$lt_cv_prog_gnu_ld" >&6; }
96b8a615
AJ
6625with_gnu_ld=$lt_cv_prog_gnu_ld
6626
6627
96b8a615 6628
1cf3d07d
SE
6629
6630
6631
6632
6633
6634
5213506e
RW
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6636$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6637if test "${lt_cv_path_NM+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
96b8a615
AJ
6639else
6640 if test -n "$NM"; then
6641 # Let the user override the test.
6642 lt_cv_path_NM="$NM"
6643else
1cf3d07d
SE
6644 lt_nm_to_check="${ac_tool_prefix}nm"
6645 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6646 lt_nm_to_check="$lt_nm_to_check nm"
6647 fi
6648 for lt_tmp_nm in $lt_nm_to_check; do
6649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6650 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6651 IFS="$lt_save_ifs"
6652 test -z "$ac_dir" && ac_dir=.
6653 tmp_nm="$ac_dir/$lt_tmp_nm"
6654 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6655 # Check to see if the nm accepts a BSD-compat flag.
6656 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6657 # nm: unknown option "B" ignored
6658 # Tru64's nm complains that /dev/null is an invalid object file
6659 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6660 */dev/null* | *'Invalid file or object type'*)
6661 lt_cv_path_NM="$tmp_nm -B"
6662 break
6663 ;;
6664 *)
6665 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6666 */dev/null*)
6667 lt_cv_path_NM="$tmp_nm -p"
6668 break
6669 ;;
6670 *)
6671 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6672 continue # so that we can try to find one that supports BSD flags
6673 ;;
6674 esac
6675 ;;
6676 esac
6677 fi
6678 done
6679 IFS="$lt_save_ifs"
6680 done
6681 : ${lt_cv_path_NM=no}
6682fi
6683fi
5213506e
RW
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6685$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
6686if test "$lt_cv_path_NM" != "no"; then
6687 NM="$lt_cv_path_NM"
6688else
6689 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
6690 if test -n "$DUMPBIN"; then :
6691 # Let the user override the test.
6692 else
6693 if test -n "$ac_tool_prefix"; then
6694 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
6695 do
6696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6697set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699$as_echo_n "checking for $ac_word... " >&6; }
6700if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6701 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6702else
6703 if test -n "$DUMPBIN"; then
6704 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
5213506e
RW
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6713 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6715 break 2
6716 fi
6717done
5213506e
RW
6718 done
6719IFS=$as_save_IFS
1cf3d07d
SE
6720
6721fi
6722fi
6723DUMPBIN=$ac_cv_prog_DUMPBIN
6724if test -n "$DUMPBIN"; then
5213506e
RW
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6726$as_echo "$DUMPBIN" >&6; }
1cf3d07d 6727else
5213506e
RW
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729$as_echo "no" >&6; }
1cf3d07d
SE
6730fi
6731
5213506e 6732
1cf3d07d
SE
6733 test -n "$DUMPBIN" && break
6734 done
6735fi
6736if test -z "$DUMPBIN"; then
6737 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 6738 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
6739do
6740 # Extract the first word of "$ac_prog", so it can be a program name with args.
6741set dummy $ac_prog; ac_word=$2
5213506e
RW
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743$as_echo_n "checking for $ac_word... " >&6; }
6744if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6745 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6746else
6747 if test -n "$ac_ct_DUMPBIN"; then
6748 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6749else
6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
5213506e
RW
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6757 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6759 break 2
6760 fi
6761done
5213506e
RW
6762 done
6763IFS=$as_save_IFS
1cf3d07d
SE
6764
6765fi
6766fi
6767ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6768if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6770$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 6771else
5213506e
RW
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773$as_echo "no" >&6; }
1cf3d07d
SE
6774fi
6775
5213506e 6776
1cf3d07d
SE
6777 test -n "$ac_ct_DUMPBIN" && break
6778done
1cf3d07d 6779
5213506e
RW
6780 if test "x$ac_ct_DUMPBIN" = x; then
6781 DUMPBIN=":"
6782 else
6783 case $cross_compiling:$ac_tool_warned in
6784yes:)
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6787ac_tool_warned=yes ;;
6788esac
6789 DUMPBIN=$ac_ct_DUMPBIN
6790 fi
96b8a615 6791fi
1cf3d07d 6792
43e02a8a
RW
6793 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6794 *COFF*)
6795 DUMPBIN="$DUMPBIN -symbols"
6796 ;;
6797 *)
6798 DUMPBIN=:
6799 ;;
6800 esac
6801 fi
1cf3d07d
SE
6802
6803 if test "$DUMPBIN" != ":"; then
6804 NM="$DUMPBIN"
6805 fi
96b8a615 6806fi
1cf3d07d
SE
6807test -z "$NM" && NM=nm
6808
6809
96b8a615 6810
1cf3d07d
SE
6811
6812
6813
5213506e
RW
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6815$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6816if test "${lt_cv_nm_interface+set}" = set; then :
6817 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6818else
6819 lt_cv_nm_interface="BSD nm"
6820 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 6821 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
6822 (eval "$ac_compile" 2>conftest.err)
6823 cat conftest.err >&5
43e02a8a 6824 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
6825 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6826 cat conftest.err >&5
43e02a8a 6827 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
6828 cat conftest.out >&5
6829 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6830 lt_cv_nm_interface="MS dumpbin"
6831 fi
6832 rm -f conftest*
6833fi
5213506e
RW
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6835$as_echo "$lt_cv_nm_interface" >&6; }
96b8a615 6836
5213506e
RW
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6838$as_echo_n "checking whether ln -s works... " >&6; }
96b8a615
AJ
6839LN_S=$as_ln_s
6840if test "$LN_S" = "ln -s"; then
5213506e
RW
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6842$as_echo "yes" >&6; }
96b8a615 6843else
5213506e
RW
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6845$as_echo "no, using $LN_S" >&6; }
96b8a615
AJ
6846fi
6847
1cf3d07d 6848# find the maximum length of command line arguments
5213506e
RW
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6850$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6851if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6852 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6853else
6854 i=0
6855 teststring="ABCD"
6856
6857 case $build_os in
6858 msdosdjgpp*)
6859 # On DJGPP, this test can blow up pretty badly due to problems in libc
6860 # (any single argument exceeding 2000 bytes causes a buffer overrun
6861 # during glob expansion). Even if it were fixed, the result of this
6862 # check would be larger than it should be.
6863 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6864 ;;
6865
6866 gnu*)
6867 # Under GNU Hurd, this test is not required because there is
6868 # no limit to the length of command line arguments.
6869 # Libtool will interpret -1 as no limit whatsoever
6870 lt_cv_sys_max_cmd_len=-1;
6871 ;;
6872
d58dead8 6873 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
6874 # On Win9x/ME, this test blows up -- it succeeds, but takes
6875 # about 5 minutes as the teststring grows exponentially.
6876 # Worse, since 9x/ME are not pre-emptively multitasking,
6877 # you end up with a "frozen" computer, even though with patience
6878 # the test eventually succeeds (with a max line length of 256k).
6879 # Instead, let's just punt: use the minimum linelength reported by
6880 # all of the supported platforms: 8192 (on NT/2K/XP).
6881 lt_cv_sys_max_cmd_len=8192;
6882 ;;
6883
43e02a8a
RW
6884 mint*)
6885 # On MiNT this can take a long time and run out of memory.
6886 lt_cv_sys_max_cmd_len=8192;
6887 ;;
6888
1cf3d07d
SE
6889 amigaos*)
6890 # On AmigaOS with pdksh, this test takes hours, literally.
6891 # So we just punt and use a minimum line length of 8192.
6892 lt_cv_sys_max_cmd_len=8192;
6893 ;;
6894
6895 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6896 # This has been around since 386BSD, at least. Likely further.
6897 if test -x /sbin/sysctl; then
6898 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6899 elif test -x /usr/sbin/sysctl; then
6900 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6901 else
6902 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6903 fi
6904 # And add a safety zone
6905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6907 ;;
6908
6909 interix*)
6910 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6911 lt_cv_sys_max_cmd_len=196608
6912 ;;
6913
6914 osf*)
6915 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6916 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6917 # nice to cause kernel panics so lets avoid the loop below.
6918 # First set a reasonable default.
6919 lt_cv_sys_max_cmd_len=16384
6920 #
6921 if test -x /sbin/sysconfig; then
6922 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6923 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6924 esac
6925 fi
6926 ;;
6927 sco3.2v5*)
6928 lt_cv_sys_max_cmd_len=102400
6929 ;;
6930 sysv5* | sco5v6* | sysv4.2uw2*)
6931 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6932 if test -n "$kargmax"; then
6933 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6934 else
6935 lt_cv_sys_max_cmd_len=32768
6936 fi
6937 ;;
6938 *)
d58dead8
PG
6939 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6940 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
6941 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6943 else
6944 # Make teststring a little bigger before we do anything with it.
6945 # a 1K string should be a reasonable start.
6946 for i in 1 2 3 4 5 6 7 8 ; do
6947 teststring=$teststring$teststring
6948 done
6949 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6950 # If test is not a shell built-in, we'll probably end up computing a
6951 # maximum length that is only half of the actual maximum length, but
6952 # we can't tell.
43e02a8a
RW
6953 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6954 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
6955 test $i != 17 # 1/2 MB should be enough
6956 do
6957 i=`expr $i + 1`
6958 teststring=$teststring$teststring
6959 done
6960 # Only check the string length outside the loop.
6961 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6962 teststring=
6963 # Add a significant safety factor because C++ compilers can tack on
6964 # massive amounts of additional arguments before passing them to the
6965 # linker. It appears as though 1/2 is a usable value.
6966 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6967 fi
1cf3d07d
SE
6968 ;;
6969 esac
6970
6971fi
6972
6973if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6975$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 6976else
5213506e
RW
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6978$as_echo "none" >&6; }
1cf3d07d
SE
6979fi
6980max_cmd_len=$lt_cv_sys_max_cmd_len
6981
6982
6983
6984
6985
6986
1cf3d07d
SE
6987: ${CP="cp -f"}
6988: ${MV="mv -f"}
6989: ${RM="rm -f"}
6990
5213506e
RW
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6992$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
6993# Try some XSI features
6994xsi_shell=no
6995( _lt_dummy="a/b/c"
6996 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
d58dead8
PG
6997 = c,a/b,, \
6998 && eval 'test $(( 1 + 1 )) -eq 2 \
6999 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 7000 && xsi_shell=yes
5213506e
RW
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7002$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
7003
7004
5213506e
RW
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7006$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
7007lt_shell_append=no
7008( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7009 >/dev/null 2>&1 \
7010 && lt_shell_append=yes
5213506e
RW
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7012$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
7013
7014
7015if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7016 lt_unset=unset
7017else
7018 lt_unset=false
7019fi
7020
7021
7022
7023
7024
7025# test EBCDIC or ASCII
7026case `echo X|tr X '\101'` in
7027 A) # ASCII based system
7028 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7029 lt_SP2NL='tr \040 \012'
7030 lt_NL2SP='tr \015\012 \040\040'
7031 ;;
7032 *) # EBCDIC based system
7033 lt_SP2NL='tr \100 \n'
7034 lt_NL2SP='tr \r\n \100\100'
7035 ;;
7036esac
7037
7038
7039
7040
7041
7042
7043
7044
7045
5213506e
RW
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7047$as_echo_n "checking for $LD option to reload object files... " >&6; }
7048if test "${lt_cv_ld_reload_flag+set}" = set; then :
7049 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7050else
7051 lt_cv_ld_reload_flag='-r'
7052fi
5213506e
RW
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7054$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
7055reload_flag=$lt_cv_ld_reload_flag
7056case $reload_flag in
7057"" | " "*) ;;
7058*) reload_flag=" $reload_flag" ;;
7059esac
7060reload_cmds='$LD$reload_flag -o $output$reload_objs'
7061case $host_os in
7062 darwin*)
7063 if test "$GCC" = yes; then
7064 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7065 else
7066 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7067 fi
7068 ;;
7069esac
7070
7071
7072
7073
7074
7075
7076
7077
7078
d58dead8
PG
7079if test -n "$ac_tool_prefix"; then
7080 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7081set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083$as_echo_n "checking for $ac_word... " >&6; }
7084if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7085 $as_echo_n "(cached) " >&6
d58dead8
PG
7086else
7087 if test -n "$OBJDUMP"; then
7088 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7089else
7090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
5213506e
RW
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 7097 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7099 break 2
7100 fi
7101done
5213506e
RW
7102 done
7103IFS=$as_save_IFS
d58dead8
PG
7104
7105fi
7106fi
7107OBJDUMP=$ac_cv_prog_OBJDUMP
7108if test -n "$OBJDUMP"; then
5213506e
RW
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7110$as_echo "$OBJDUMP" >&6; }
d58dead8 7111else
5213506e
RW
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113$as_echo "no" >&6; }
d58dead8
PG
7114fi
7115
5213506e 7116
d58dead8
PG
7117fi
7118if test -z "$ac_cv_prog_OBJDUMP"; then
7119 ac_ct_OBJDUMP=$OBJDUMP
7120 # Extract the first word of "objdump", so it can be a program name with args.
7121set dummy objdump; ac_word=$2
5213506e
RW
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123$as_echo_n "checking for $ac_word... " >&6; }
7124if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7125 $as_echo_n "(cached) " >&6
d58dead8
PG
7126else
7127 if test -n "$ac_ct_OBJDUMP"; then
7128 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7129else
7130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131for as_dir in $PATH
7132do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
5213506e
RW
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 7137 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7139 break 2
7140 fi
7141done
5213506e
RW
7142 done
7143IFS=$as_save_IFS
d58dead8 7144
d58dead8
PG
7145fi
7146fi
7147ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7148if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7150$as_echo "$ac_ct_OBJDUMP" >&6; }
d58dead8 7151else
5213506e
RW
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153$as_echo "no" >&6; }
d58dead8
PG
7154fi
7155
5213506e
RW
7156 if test "x$ac_ct_OBJDUMP" = x; then
7157 OBJDUMP="false"
7158 else
7159 case $cross_compiling:$ac_tool_warned in
7160yes:)
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7163ac_tool_warned=yes ;;
7164esac
7165 OBJDUMP=$ac_ct_OBJDUMP
7166 fi
d58dead8
PG
7167else
7168 OBJDUMP="$ac_cv_prog_OBJDUMP"
7169fi
7170
7171test -z "$OBJDUMP" && OBJDUMP=objdump
7172
7173
7174
7175
7176
7177
7178
7179
1cf3d07d 7180
5213506e
RW
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7182$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7183if test "${lt_cv_deplibs_check_method+set}" = set; then :
7184 $as_echo_n "(cached) " >&6
96b8a615
AJ
7185else
7186 lt_cv_file_magic_cmd='$MAGIC_CMD'
7187lt_cv_file_magic_test_file=
7188lt_cv_deplibs_check_method='unknown'
7189# Need to set the preceding variable on all platforms that support
7190# interlibrary dependencies.
7191# 'none' -- dependencies not supported.
7192# `unknown' -- same as none, but documents that we really don't know.
7193# 'pass_all' -- all dependencies passed with no checks.
7194# 'test_compile' -- check by making test program.
1cf3d07d
SE
7195# 'file_magic [[regex]]' -- check by looking for files in library path
7196# which responds to the $file_magic_cmd with a given extended regex.
96b8a615
AJ
7197# If you have `file' or equivalent on your system and you're not sure
7198# whether `pass_all' will *always* work, you probably want this one.
7199
7200case $host_os in
4f6bebc3 7201aix[4-9]*)
96b8a615
AJ
7202 lt_cv_deplibs_check_method=pass_all
7203 ;;
7204
7205beos*)
7206 lt_cv_deplibs_check_method=pass_all
7207 ;;
7208
1cf3d07d 7209bsdi[45]*)
96b8a615
AJ
7210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7211 lt_cv_file_magic_cmd='/usr/bin/file -L'
7212 lt_cv_file_magic_test_file=/shlib/libc.so
7213 ;;
7214
1cf3d07d
SE
7215cygwin*)
7216 # func_win32_libid is a shell function defined in ltmain.sh
7217 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7218 lt_cv_file_magic_cmd='func_win32_libid'
7219 ;;
7220
7221mingw* | pw32*)
7222 # Base MSYS/MinGW do not provide the 'file' command needed by
7223 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7224 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
7225 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7226 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
7227 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7228 lt_cv_file_magic_cmd='func_win32_libid'
7229 else
7230 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7231 lt_cv_file_magic_cmd='$OBJDUMP -f'
7232 fi
96b8a615
AJ
7233 ;;
7234
43e02a8a 7235cegcc*)
d58dead8
PG
7236 # use the weaker test based on 'objdump'. See mingw*.
7237 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7238 lt_cv_file_magic_cmd='$OBJDUMP -f'
7239 ;;
7240
96b8a615 7241darwin* | rhapsody*)
96b8a615
AJ
7242 lt_cv_deplibs_check_method=pass_all
7243 ;;
7244
1cf3d07d
SE
7245freebsd* | dragonfly*)
7246 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
96b8a615
AJ
7247 case $host_cpu in
7248 i*86 )
7249 # Not sure whether the presence of OpenBSD here was a mistake.
7250 # Let's accept both of them until this is cleared up.
1cf3d07d 7251 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
96b8a615
AJ
7252 lt_cv_file_magic_cmd=/usr/bin/file
7253 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7254 ;;
7255 esac
7256 else
7257 lt_cv_deplibs_check_method=pass_all
7258 fi
7259 ;;
7260
7261gnu*)
7262 lt_cv_deplibs_check_method=pass_all
7263 ;;
7264
43e02a8a
RW
7265haiku*)
7266 lt_cv_deplibs_check_method=pass_all
7267 ;;
7268
1cf3d07d
SE
7269hpux10.20* | hpux11*)
7270 lt_cv_file_magic_cmd=/usr/bin/file
96b8a615 7271 case $host_cpu in
96b8a615
AJ
7272 ia64*)
7273 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
7274 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7275 ;;
1cf3d07d 7276 hppa*64*)
43e02a8a 7277 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 7278 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
96b8a615
AJ
7279 ;;
7280 *)
43e02a8a 7281 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d 7282 lt_cv_file_magic_test_file=/usr/lib/libc.sl
96b8a615
AJ
7283 ;;
7284 esac
1cf3d07d
SE
7285 ;;
7286
7287interix[3-9]*)
7288 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7290 ;;
7291
7292irix5* | irix6* | nonstopux*)
7293 case $LD in
7294 *-32|*"-32 ") libmagic=32-bit;;
7295 *-n32|*"-n32 ") libmagic=N32;;
7296 *-64|*"-64 ") libmagic=64-bit;;
7297 *) libmagic=never-match;;
7298 esac
96b8a615
AJ
7299 lt_cv_deplibs_check_method=pass_all
7300 ;;
7301
7302# This must be Linux ELF.
7a9d3fe8 7303linux* | k*bsd*-gnu | kopensolaris*-gnu)
2c92e90f 7304 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7305 ;;
7306
1cf3d07d
SE
7307netbsd*)
7308 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
96b8a615 7310 else
1cf3d07d 7311 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
96b8a615
AJ
7312 fi
7313 ;;
7314
1cf3d07d 7315newos6*)
96b8a615
AJ
7316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7317 lt_cv_file_magic_cmd=/usr/bin/file
7318 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7319 ;;
7320
1cf3d07d
SE
7321*nto* | *qnx*)
7322 lt_cv_deplibs_check_method=pass_all
7323 ;;
7324
7325openbsd*)
7326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7328 else
7329 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7330 fi
7331 ;;
7332
96b8a615 7333osf3* | osf4* | osf5*)
96b8a615
AJ
7334 lt_cv_deplibs_check_method=pass_all
7335 ;;
7336
1cf3d07d 7337rdos*)
96b8a615
AJ
7338 lt_cv_deplibs_check_method=pass_all
7339 ;;
7340
7341solaris*)
7342 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7343 ;;
7344
1cf3d07d 7345sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
96b8a615
AJ
7346 lt_cv_deplibs_check_method=pass_all
7347 ;;
7348
1cf3d07d 7349sysv4 | sysv4.3*)
96b8a615 7350 case $host_vendor in
96b8a615
AJ
7351 motorola)
7352 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]'
7353 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7354 ;;
1cf3d07d
SE
7355 ncr)
7356 lt_cv_deplibs_check_method=pass_all
7357 ;;
7358 sequent)
7359 lt_cv_file_magic_cmd='/bin/file'
7360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7361 ;;
7362 sni)
7363 lt_cv_file_magic_cmd='/bin/file'
7364 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7365 lt_cv_file_magic_test_file=/lib/libc.so
7366 ;;
7367 siemens)
7368 lt_cv_deplibs_check_method=pass_all
7369 ;;
7370 pc)
7371 lt_cv_deplibs_check_method=pass_all
7372 ;;
96b8a615
AJ
7373 esac
7374 ;;
1cf3d07d
SE
7375
7376tpf*)
7377 lt_cv_deplibs_check_method=pass_all
7378 ;;
96b8a615
AJ
7379esac
7380
7381fi
5213506e
RW
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7383$as_echo "$lt_cv_deplibs_check_method" >&6; }
96b8a615
AJ
7384file_magic_cmd=$lt_cv_file_magic_cmd
7385deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 7386test -z "$deplibs_check_method" && deplibs_check_method=unknown
96b8a615
AJ
7387
7388
7389
7390
96b8a615 7391
96b8a615 7392
96b8a615 7393
96b8a615 7394
6de9cd9a 7395
6de9cd9a 7396
6de9cd9a 7397
6de9cd9a 7398
96b8a615 7399if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
7400 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7401set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
7402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403$as_echo_n "checking for $ac_word... " >&6; }
7404if test "${ac_cv_prog_AR+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
6de9cd9a 7406else
1cf3d07d
SE
7407 if test -n "$AR"; then
7408 ac_cv_prog_AR="$AR" # Let the user override the test.
96b8a615
AJ
7409else
7410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
5213506e
RW
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7417 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 7418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7419 break 2
7420 fi
7421done
5213506e
RW
7422 done
7423IFS=$as_save_IFS
6de9cd9a 7424
96b8a615
AJ
7425fi
7426fi
1cf3d07d
SE
7427AR=$ac_cv_prog_AR
7428if test -n "$AR"; then
5213506e
RW
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7430$as_echo "$AR" >&6; }
96b8a615 7431else
5213506e
RW
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433$as_echo "no" >&6; }
6de9cd9a
DN
7434fi
7435
5213506e 7436
96b8a615 7437fi
1cf3d07d
SE
7438if test -z "$ac_cv_prog_AR"; then
7439 ac_ct_AR=$AR
7440 # Extract the first word of "ar", so it can be a program name with args.
7441set dummy ar; ac_word=$2
5213506e
RW
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443$as_echo_n "checking for $ac_word... " >&6; }
7444if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
96b8a615 7446else
1cf3d07d
SE
7447 if test -n "$ac_ct_AR"; then
7448 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
96b8a615
AJ
7449else
7450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
5213506e
RW
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7457 ac_cv_prog_ac_ct_AR="ar"
5213506e 7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7459 break 2
7460 fi
7461done
5213506e
RW
7462 done
7463IFS=$as_save_IFS
6de9cd9a 7464
96b8a615
AJ
7465fi
7466fi
1cf3d07d
SE
7467ac_ct_AR=$ac_cv_prog_ac_ct_AR
7468if test -n "$ac_ct_AR"; then
5213506e
RW
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7470$as_echo "$ac_ct_AR" >&6; }
6de9cd9a 7471else
5213506e
RW
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473$as_echo "no" >&6; }
6de9cd9a 7474fi
6de9cd9a 7475
5213506e
RW
7476 if test "x$ac_ct_AR" = x; then
7477 AR="false"
7478 else
7479 case $cross_compiling:$ac_tool_warned in
7480yes:)
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7483ac_tool_warned=yes ;;
7484esac
7485 AR=$ac_ct_AR
7486 fi
96b8a615 7487else
1cf3d07d 7488 AR="$ac_cv_prog_AR"
6de9cd9a
DN
7489fi
7490
1cf3d07d
SE
7491test -z "$AR" && AR=ar
7492test -z "$AR_FLAGS" && AR_FLAGS=cru
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
96b8a615
AJ
7504if test -n "$ac_tool_prefix"; then
7505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7506set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508$as_echo_n "checking for $ac_word... " >&6; }
7509if test "${ac_cv_prog_STRIP+set}" = set; then :
7510 $as_echo_n "(cached) " >&6
6de9cd9a 7511else
96b8a615
AJ
7512 if test -n "$STRIP"; then
7513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7514else
7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
5213506e
RW
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
96b8a615 7522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7524 break 2
7525 fi
7526done
5213506e
RW
7527 done
7528IFS=$as_save_IFS
6de9cd9a 7529
96b8a615
AJ
7530fi
7531fi
7532STRIP=$ac_cv_prog_STRIP
7533if test -n "$STRIP"; then
5213506e
RW
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7535$as_echo "$STRIP" >&6; }
6de9cd9a 7536else
5213506e
RW
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538$as_echo "no" >&6; }
96b8a615 7539fi
6de9cd9a 7540
5213506e 7541
6de9cd9a 7542fi
96b8a615
AJ
7543if test -z "$ac_cv_prog_STRIP"; then
7544 ac_ct_STRIP=$STRIP
7545 # Extract the first word of "strip", so it can be a program name with args.
7546set dummy strip; ac_word=$2
5213506e
RW
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548$as_echo_n "checking for $ac_word... " >&6; }
7549if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
96b8a615
AJ
7551else
7552 if test -n "$ac_ct_STRIP"; then
7553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7554else
7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
5213506e
RW
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
96b8a615 7562 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7564 break 2
7565 fi
7566done
5213506e
RW
7567 done
7568IFS=$as_save_IFS
96b8a615 7569
6de9cd9a
DN
7570fi
7571fi
96b8a615
AJ
7572ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7573if test -n "$ac_ct_STRIP"; then
5213506e
RW
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7575$as_echo "$ac_ct_STRIP" >&6; }
96b8a615 7576else
5213506e
RW
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; }
6de9cd9a 7579fi
6de9cd9a 7580
5213506e
RW
7581 if test "x$ac_ct_STRIP" = x; then
7582 STRIP=":"
7583 else
7584 case $cross_compiling:$ac_tool_warned in
7585yes:)
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7588ac_tool_warned=yes ;;
7589esac
7590 STRIP=$ac_ct_STRIP
7591 fi
96b8a615
AJ
7592else
7593 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
7594fi
7595
1cf3d07d 7596test -z "$STRIP" && STRIP=:
6de9cd9a
DN
7597
7598
7599
7600
7601
7602
1cf3d07d
SE
7603if test -n "$ac_tool_prefix"; then
7604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7605set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607$as_echo_n "checking for $ac_word... " >&6; }
7608if test "${ac_cv_prog_RANLIB+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
6de9cd9a 7610else
1cf3d07d
SE
7611 if test -n "$RANLIB"; then
7612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7613else
7614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615for as_dir in $PATH
7616do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
5213506e
RW
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7623 break 2
7624 fi
7625done
5213506e
RW
7626 done
7627IFS=$as_save_IFS
1cf3d07d
SE
7628
7629fi
7630fi
7631RANLIB=$ac_cv_prog_RANLIB
7632if test -n "$RANLIB"; then
5213506e
RW
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7634$as_echo "$RANLIB" >&6; }
1cf3d07d 7635else
5213506e
RW
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637$as_echo "no" >&6; }
1cf3d07d
SE
7638fi
7639
5213506e 7640
1cf3d07d
SE
7641fi
7642if test -z "$ac_cv_prog_RANLIB"; then
7643 ac_ct_RANLIB=$RANLIB
7644 # Extract the first word of "ranlib", so it can be a program name with args.
7645set dummy ranlib; ac_word=$2
5213506e
RW
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647$as_echo_n "checking for $ac_word... " >&6; }
7648if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7649 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7650else
7651 if test -n "$ac_ct_RANLIB"; then
7652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7653else
7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
5213506e
RW
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7661 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7663 break 2
7664 fi
7665done
5213506e
RW
7666 done
7667IFS=$as_save_IFS
1cf3d07d 7668
1cf3d07d
SE
7669fi
7670fi
7671ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7672if test -n "$ac_ct_RANLIB"; then
5213506e
RW
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7674$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 7675else
5213506e
RW
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677$as_echo "no" >&6; }
1cf3d07d
SE
7678fi
7679
5213506e
RW
7680 if test "x$ac_ct_RANLIB" = x; then
7681 RANLIB=":"
7682 else
7683 case $cross_compiling:$ac_tool_warned in
7684yes:)
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687ac_tool_warned=yes ;;
7688esac
7689 RANLIB=$ac_ct_RANLIB
7690 fi
1cf3d07d
SE
7691else
7692 RANLIB="$ac_cv_prog_RANLIB"
7693fi
7694
7695test -z "$RANLIB" && RANLIB=:
7696
7697
7698
7699
7700
7701
7702# Determine commands to create old-style static archives.
d58dead8 7703old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
7704old_postinstall_cmds='chmod 644 $oldlib'
7705old_postuninstall_cmds=
7706
7707if test -n "$RANLIB"; then
7708 case $host_os in
7709 openbsd*)
7710 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7711 ;;
7712 *)
7713 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7714 ;;
7715 esac
7716 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7717fi
7718
43e02a8a
RW
7719case $host_os in
7720 darwin*)
7721 lock_old_archive_extraction=yes ;;
7722 *)
7723 lock_old_archive_extraction=no ;;
7724esac
7725
7726
7727
7728
7729
7730
1cf3d07d
SE
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764# If no C compiler was specified, use CC.
7765LTCC=${LTCC-"$CC"}
7766
7767# If no C compiler flags were specified, use CFLAGS.
7768LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7769
7770# Allow CC to be a program name with arguments.
7771compiler=$CC
7772
7773
7774# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7776$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7777if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7779else
7780
7781# These are sane defaults that work on at least a few old systems.
7782# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7783
7784# Character class describing NM global symbol codes.
7785symcode='[BCDEGRST]'
7786
7787# Regexp to match symbols that can be accessed directly from C.
7788sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7789
7790# Define system-specific variables.
7791case $host_os in
7792aix*)
7793 symcode='[BCDT]'
7794 ;;
d58dead8 7795cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7796 symcode='[ABCDGISTW]'
7797 ;;
7798hpux*)
7799 if test "$host_cpu" = ia64; then
7800 symcode='[ABCDEGRST]'
7801 fi
7802 ;;
7803irix* | nonstopux*)
7804 symcode='[BCDEGRST]'
7805 ;;
7806osf*)
7807 symcode='[BCDEGQRST]'
7808 ;;
7809solaris*)
7810 symcode='[BDRT]'
7811 ;;
7812sco3.2v5*)
7813 symcode='[DT]'
7814 ;;
7815sysv4.2uw2*)
7816 symcode='[DT]'
7817 ;;
7818sysv5* | sco5v6* | unixware* | OpenUNIX*)
7819 symcode='[ABDT]'
7820 ;;
7821sysv4)
7822 symcode='[DFNSTU]'
7823 ;;
7824esac
7825
7826# If we're using GNU nm, then use its standard symbol codes.
7827case `$NM -V 2>&1` in
7828*GNU* | *'with BFD'*)
7829 symcode='[ABCDGIRSTW]' ;;
7830esac
7831
7832# Transform an extracted symbol line into a proper C declaration.
7833# Some systems (esp. on ia64) link data and code symbols differently,
7834# so use this general approach.
7835lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7836
7837# Transform an extracted symbol line into symbol name and symbol address
7838lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d58dead8 7839lt_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
7840
7841# Handle CRLF in mingw tool chain
7842opt_cr=
7843case $build_os in
7844mingw*)
7845 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7846 ;;
7847esac
7848
7849# Try without a prefix underscore, then with it.
7850for ac_symprfx in "" "_"; do
7851
7852 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7853 symxfrm="\\1 $ac_symprfx\\2 \\2"
7854
7855 # Write the raw and C identifiers.
7856 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7857 # Fake it for dumpbin and say T for any non-static function
7858 # and D for any global variable.
7859 # Also find C++ and __fastcall symbols from MSVC++,
7860 # which start with @ or ?.
7861 lt_cv_sys_global_symbol_pipe="$AWK '"\
7862" {last_section=section; section=\$ 3};"\
7863" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7864" \$ 0!~/External *\|/{next};"\
7865" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7866" {if(hide[section]) next};"\
7867" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7868" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7869" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7870" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7871" ' prfx=^$ac_symprfx"
7872 else
7873 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7874 fi
7875
7876 # Check to see that the pipe works correctly.
7877 pipe_works=no
7878
7879 rm -f conftest*
7880 cat > conftest.$ac_ext <<_LT_EOF
7881#ifdef __cplusplus
7882extern "C" {
7883#endif
7884char nm_test_var;
7885void nm_test_func(void);
7886void nm_test_func(void){}
7887#ifdef __cplusplus
7888}
7889#endif
7890int main(){nm_test_var='a';nm_test_func();return(0);}
7891_LT_EOF
7892
5213506e 7893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
7894 (eval $ac_compile) 2>&5
7895 ac_status=$?
5213506e
RW
7896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7897 test $ac_status = 0; }; then
1cf3d07d
SE
7898 # Now try to grab the symbols.
7899 nlist=conftest.nm
43e02a8a
RW
7900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7901 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 7902 ac_status=$?
5213506e
RW
7903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7904 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
7905 # Try sorting and uniquifying the output.
7906 if sort "$nlist" | uniq > "$nlist"T; then
7907 mv -f "$nlist"T "$nlist"
7908 else
7909 rm -f "$nlist"T
7910 fi
7911
7912 # Make sure that we snagged all the symbols we need.
7913 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7914 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7915 cat <<_LT_EOF > conftest.$ac_ext
7916#ifdef __cplusplus
7917extern "C" {
7918#endif
7919
7920_LT_EOF
7921 # Now generate the symbol file.
7922 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7923
7924 cat <<_LT_EOF >> conftest.$ac_ext
7925
7926/* The mapping between symbol names and symbols. */
7927const struct {
7928 const char *name;
7929 void *address;
7930}
7931lt__PROGRAM__LTX_preloaded_symbols[] =
7932{
7933 { "@PROGRAM@", (void *) 0 },
7934_LT_EOF
7935 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7936 cat <<\_LT_EOF >> conftest.$ac_ext
7937 {0, (void *) 0}
7938};
7939
7940/* This works around a problem in FreeBSD linker */
7941#ifdef FREEBSD_WORKAROUND
7942static const void *lt_preloaded_setup() {
7943 return lt__PROGRAM__LTX_preloaded_symbols;
7944}
7945#endif
7946
7947#ifdef __cplusplus
7948}
7949#endif
7950_LT_EOF
7951 # Now try linking the two files.
7952 mv conftest.$ac_objext conftstm.$ac_objext
7953 lt_save_LIBS="$LIBS"
7954 lt_save_CFLAGS="$CFLAGS"
7955 LIBS="conftstm.$ac_objext"
7956 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 7957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
7958 (eval $ac_link) 2>&5
7959 ac_status=$?
5213506e
RW
7960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7961 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
7962 pipe_works=yes
7963 fi
7964 LIBS="$lt_save_LIBS"
7965 CFLAGS="$lt_save_CFLAGS"
7966 else
7967 echo "cannot find nm_test_func in $nlist" >&5
7968 fi
7969 else
7970 echo "cannot find nm_test_var in $nlist" >&5
7971 fi
7972 else
7973 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7974 fi
7975 else
7976 echo "$progname: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7978 fi
d58dead8 7979 rm -rf conftest* conftst*
1cf3d07d
SE
7980
7981 # Do not use the global_symbol_pipe unless it works.
7982 if test "$pipe_works" = yes; then
7983 break
7984 else
7985 lt_cv_sys_global_symbol_pipe=
7986 fi
7987done
7988
7989fi
7990
7991if test -z "$lt_cv_sys_global_symbol_pipe"; then
7992 lt_cv_sys_global_symbol_to_cdecl=
7993fi
7994if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7996$as_echo "failed" >&6; }
1cf3d07d 7997else
5213506e
RW
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7999$as_echo "ok" >&6; }
1cf3d07d
SE
8000fi
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
d58dead8
PG
8016
8017
8018
8019
8020
1cf3d07d
SE
8021
8022
5213506e
RW
8023# Check whether --enable-libtool-lock was given.
8024if test "${enable_libtool_lock+set}" = set; then :
8025 enableval=$enable_libtool_lock;
8026fi
1cf3d07d 8027
1cf3d07d 8028test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6de9cd9a 8029
96b8a615
AJ
8030# Some flags need to be propagated to the compiler or linker for good
8031# libtool support.
8032case $host in
1cf3d07d 8033ia64-*-hpux*)
96b8a615 8034 # Find out which ABI we are using.
1cf3d07d 8035 echo 'int i;' > conftest.$ac_ext
5213506e 8036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8037 (eval $ac_compile) 2>&5
6de9cd9a 8038 ac_status=$?
5213506e
RW
8039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8040 test $ac_status = 0; }; then
96b8a615 8041 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
8042 *ELF-32*)
8043 HPUX_IA64_MODE="32"
8044 ;;
8045 *ELF-64*)
8046 HPUX_IA64_MODE="64"
8047 ;;
96b8a615 8048 esac
96b8a615
AJ
8049 fi
8050 rm -rf conftest*
8051 ;;
1cf3d07d 8052*-*-irix6*)
96b8a615 8053 # Find out which ABI we are using.
43e02a8a 8054 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 8055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8056 (eval $ac_compile) 2>&5
6de9cd9a 8057 ac_status=$?
5213506e
RW
8058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8059 test $ac_status = 0; }; then
1cf3d07d
SE
8060 if test "$lt_cv_prog_gnu_ld" = yes; then
8061 case `/usr/bin/file conftest.$ac_objext` in
8062 *32-bit*)
8063 LD="${LD-ld} -melf32bsmip"
8064 ;;
8065 *N32*)
8066 LD="${LD-ld} -melf32bmipn32"
8067 ;;
8068 *64-bit*)
8069 LD="${LD-ld} -melf64bmip"
8070 ;;
8071 esac
8072 else
8073 case `/usr/bin/file conftest.$ac_objext` in
8074 *32-bit*)
8075 LD="${LD-ld} -32"
8076 ;;
8077 *N32*)
8078 LD="${LD-ld} -n32"
8079 ;;
8080 *64-bit*)
8081 LD="${LD-ld} -64"
8082 ;;
8083 esac
8084 fi
96b8a615
AJ
8085 fi
8086 rm -rf conftest*
8087 ;;
6de9cd9a 8088
3cbe17f7 8089x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d 8090s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
96b8a615
AJ
8091 # Find out which ABI we are using.
8092 echo 'int i;' > conftest.$ac_ext
5213506e 8093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8094 (eval $ac_compile) 2>&5
6de9cd9a 8095 ac_status=$?
5213506e
RW
8096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8097 test $ac_status = 0; }; then
1cf3d07d
SE
8098 case `/usr/bin/file conftest.o` in
8099 *32-bit*)
8100 case $host in
8101 x86_64-*kfreebsd*-gnu)
8102 LD="${LD-ld} -m elf_i386_fbsd"
8103 ;;
8104 x86_64-*linux*)
e6d5f8c9
L
8105 case `/usr/bin/file conftest.o` in
8106 *x86-64*)
8107 LD="${LD-ld} -m elf32_x86_64"
8108 ;;
8109 *)
8110 LD="${LD-ld} -m elf_i386"
8111 ;;
8112 esac
1cf3d07d 8113 ;;
3cbe17f7
AM
8114 powerpc64le-*linux*)
8115 LD="${LD-ld} -m elf32lppclinux"
8116 ;;
8117 powerpc64-*linux*)
1cf3d07d
SE
8118 LD="${LD-ld} -m elf32ppclinux"
8119 ;;
8120 s390x-*linux*)
8121 LD="${LD-ld} -m elf_s390"
8122 ;;
8123 sparc64-*linux*)
8124 LD="${LD-ld} -m elf32_sparc"
8125 ;;
8126 esac
8127 ;;
8128 *64-bit*)
8129 case $host in
8130 x86_64-*kfreebsd*-gnu)
8131 LD="${LD-ld} -m elf_x86_64_fbsd"
8132 ;;
8133 x86_64-*linux*)
8134 LD="${LD-ld} -m elf_x86_64"
8135 ;;
3cbe17f7
AM
8136 powerpcle-*linux*)
8137 LD="${LD-ld} -m elf64lppc"
8138 ;;
8139 powerpc-*linux*)
1cf3d07d
SE
8140 LD="${LD-ld} -m elf64ppc"
8141 ;;
8142 s390*-*linux*|s390*-*tpf*)
8143 LD="${LD-ld} -m elf64_s390"
8144 ;;
8145 sparc*-*linux*)
8146 LD="${LD-ld} -m elf64_sparc"
8147 ;;
8148 esac
8149 ;;
96b8a615 8150 esac
6de9cd9a 8151 fi
96b8a615
AJ
8152 rm -rf conftest*
8153 ;;
6de9cd9a 8154
96b8a615
AJ
8155*-*-sco3.2v5*)
8156 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8157 SAVE_CFLAGS="$CFLAGS"
8158 CFLAGS="$CFLAGS -belf"
5213506e
RW
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8160$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8161if test "${lt_cv_cc_needs_belf+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
6de9cd9a 8163else
1cf3d07d 8164 ac_ext=c
96b8a615
AJ
8165ac_cpp='$CPP $CPPFLAGS'
8166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 8169
f02d008e 8170 if test x$gcc_no_link = xyes; then
5213506e 8171 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 8172fi
5213506e 8173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 8174/* end confdefs.h. */
6de9cd9a
DN
8175
8176int
8177main ()
8178{
96b8a615 8179
6de9cd9a
DN
8180 ;
8181 return 0;
8182}
8183_ACEOF
5213506e 8184if ac_fn_c_try_link "$LINENO"; then :
96b8a615 8185 lt_cv_cc_needs_belf=yes
6de9cd9a 8186else
5213506e 8187 lt_cv_cc_needs_belf=no
6de9cd9a 8188fi
5213506e
RW
8189rm -f core conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
8191 ac_ext=c
8192ac_cpp='$CPP $CPPFLAGS'
8193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8195ac_compiler_gnu=$ac_cv_c_compiler_gnu
8196
6de9cd9a 8197fi
5213506e
RW
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8199$as_echo "$lt_cv_cc_needs_belf" >&6; }
96b8a615
AJ
8200 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8201 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8202 CFLAGS="$SAVE_CFLAGS"
8203 fi
8204 ;;
1cf3d07d
SE
8205sparc*-*solaris*)
8206 # Find out which ABI we are using.
8207 echo 'int i;' > conftest.$ac_ext
5213506e 8208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8209 (eval $ac_compile) 2>&5
8210 ac_status=$?
5213506e
RW
8211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8212 test $ac_status = 0; }; then
1cf3d07d
SE
8213 case `/usr/bin/file conftest.o` in
8214 *64-bit*)
8215 case $lt_cv_prog_gnu_ld in
8216 yes*) LD="${LD-ld} -m elf64_sparc" ;;
d58dead8
PG
8217 *)
8218 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8219 LD="${LD-ld} -64"
8220 fi
8221 ;;
1cf3d07d
SE
8222 esac
8223 ;;
8224 esac
8225 fi
8226 rm -rf conftest*
8227 ;;
96b8a615
AJ
8228esac
8229
1cf3d07d 8230need_locks="$enable_libtool_lock"
96b8a615 8231
d58dead8
PG
8232
8233 case $host_os in
8234 rhapsody* | darwin*)
8235 if test -n "$ac_tool_prefix"; then
8236 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8237set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239$as_echo_n "checking for $ac_word... " >&6; }
8240if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
d58dead8
PG
8242else
8243 if test -n "$DSYMUTIL"; then
8244 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8245else
8246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247for as_dir in $PATH
8248do
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
5213506e
RW
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 8253 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8255 break 2
8256 fi
8257done
5213506e
RW
8258 done
8259IFS=$as_save_IFS
d58dead8
PG
8260
8261fi
8262fi
8263DSYMUTIL=$ac_cv_prog_DSYMUTIL
8264if test -n "$DSYMUTIL"; then
5213506e
RW
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8266$as_echo "$DSYMUTIL" >&6; }
d58dead8 8267else
5213506e
RW
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269$as_echo "no" >&6; }
d58dead8
PG
8270fi
8271
5213506e 8272
d58dead8
PG
8273fi
8274if test -z "$ac_cv_prog_DSYMUTIL"; then
8275 ac_ct_DSYMUTIL=$DSYMUTIL
8276 # Extract the first word of "dsymutil", so it can be a program name with args.
8277set dummy dsymutil; ac_word=$2
5213506e
RW
8278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279$as_echo_n "checking for $ac_word... " >&6; }
8280if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
d58dead8 8282else
21be0a5a
JB
8283 if test -n "$ac_ct_DSYMUTIL"; then
8284 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d58dead8
PG
8285else
8286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287for as_dir in $PATH
8288do
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
5213506e
RW
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8293 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8295 break 2
8296 fi
8297done
5213506e
RW
8298 done
8299IFS=$as_save_IFS
d58dead8 8300
d58dead8
PG
8301fi
8302fi
21be0a5a
JB
8303ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8304if test -n "$ac_ct_DSYMUTIL"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8306$as_echo "$ac_ct_DSYMUTIL" >&6; }
d58dead8 8307else
5213506e
RW
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309$as_echo "no" >&6; }
d58dead8
PG
8310fi
8311
21be0a5a
JB
8312 if test "x$ac_ct_DSYMUTIL" = x; then
8313 DSYMUTIL=":"
5213506e
RW
8314 else
8315 case $cross_compiling:$ac_tool_warned in
8316yes:)
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8319ac_tool_warned=yes ;;
8320esac
21be0a5a 8321 DSYMUTIL=$ac_ct_DSYMUTIL
5213506e 8322 fi
d58dead8 8323else
21be0a5a 8324 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d58dead8
PG
8325fi
8326
8327 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8328 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8329set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8332if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5213506e 8333 $as_echo_n "(cached) " >&6
d58dead8 8334else
21be0a5a
JB
8335 if test -n "$NMEDIT"; then
8336 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d58dead8
PG
8337else
8338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339for as_dir in $PATH
8340do
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
5213506e
RW
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8345 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8347 break 2
8348 fi
8349done
5213506e
RW
8350 done
8351IFS=$as_save_IFS
d58dead8
PG
8352
8353fi
8354fi
21be0a5a
JB
8355NMEDIT=$ac_cv_prog_NMEDIT
8356if test -n "$NMEDIT"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8358$as_echo "$NMEDIT" >&6; }
d58dead8 8359else
5213506e
RW
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361$as_echo "no" >&6; }
d58dead8
PG
8362fi
8363
5213506e 8364
d58dead8 8365fi
21be0a5a
JB
8366if test -z "$ac_cv_prog_NMEDIT"; then
8367 ac_ct_NMEDIT=$NMEDIT
8368 # Extract the first word of "nmedit", so it can be a program name with args.
8369set dummy nmedit; ac_word=$2
5213506e
RW
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8372if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5213506e 8373 $as_echo_n "(cached) " >&6
d58dead8 8374else
21be0a5a
JB
8375 if test -n "$ac_ct_NMEDIT"; then
8376 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d58dead8
PG
8377else
8378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
5213506e
RW
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8385 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 8386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8387 break 2
8388 fi
8389done
5213506e
RW
8390 done
8391IFS=$as_save_IFS
d58dead8 8392
d58dead8
PG
8393fi
8394fi
21be0a5a
JB
8395ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8396if test -n "$ac_ct_NMEDIT"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8398$as_echo "$ac_ct_NMEDIT" >&6; }
d58dead8 8399else
5213506e
RW
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401$as_echo "no" >&6; }
d58dead8
PG
8402fi
8403
21be0a5a
JB
8404 if test "x$ac_ct_NMEDIT" = x; then
8405 NMEDIT=":"
5213506e
RW
8406 else
8407 case $cross_compiling:$ac_tool_warned in
8408yes:)
8409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8411ac_tool_warned=yes ;;
8412esac
21be0a5a 8413 NMEDIT=$ac_ct_NMEDIT
5213506e 8414 fi
d58dead8 8415else
21be0a5a 8416 NMEDIT="$ac_cv_prog_NMEDIT"
d58dead8
PG
8417fi
8418
8419 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8420 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8421set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8424if test "${ac_cv_prog_LIPO+set}" = set; then :
5213506e 8425 $as_echo_n "(cached) " >&6
d58dead8 8426else
21be0a5a
JB
8427 if test -n "$LIPO"; then
8428 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d58dead8
PG
8429else
8430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431for as_dir in $PATH
8432do
8433 IFS=$as_save_IFS
8434 test -z "$as_dir" && as_dir=.
5213506e
RW
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8437 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8439 break 2
8440 fi
8441done
5213506e
RW
8442 done
8443IFS=$as_save_IFS
d58dead8
PG
8444
8445fi
8446fi
21be0a5a
JB
8447LIPO=$ac_cv_prog_LIPO
8448if test -n "$LIPO"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8450$as_echo "$LIPO" >&6; }
d58dead8 8451else
5213506e
RW
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453$as_echo "no" >&6; }
d58dead8
PG
8454fi
8455
5213506e 8456
d58dead8 8457fi
21be0a5a
JB
8458if test -z "$ac_cv_prog_LIPO"; then
8459 ac_ct_LIPO=$LIPO
8460 # Extract the first word of "lipo", so it can be a program name with args.
8461set dummy lipo; ac_word=$2
5213506e
RW
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8464if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5213506e 8465 $as_echo_n "(cached) " >&6
d58dead8 8466else
21be0a5a
JB
8467 if test -n "$ac_ct_LIPO"; then
8468 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d58dead8
PG
8469else
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
5213506e
RW
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8477 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8479 break 2
8480 fi
8481done
5213506e
RW
8482 done
8483IFS=$as_save_IFS
d58dead8 8484
d58dead8
PG
8485fi
8486fi
21be0a5a
JB
8487ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8488if test -n "$ac_ct_LIPO"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8490$as_echo "$ac_ct_LIPO" >&6; }
d58dead8 8491else
5213506e
RW
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493$as_echo "no" >&6; }
d58dead8
PG
8494fi
8495
21be0a5a
JB
8496 if test "x$ac_ct_LIPO" = x; then
8497 LIPO=":"
5213506e
RW
8498 else
8499 case $cross_compiling:$ac_tool_warned in
8500yes:)
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8503ac_tool_warned=yes ;;
8504esac
21be0a5a 8505 LIPO=$ac_ct_LIPO
5213506e 8506 fi
d58dead8 8507else
21be0a5a 8508 LIPO="$ac_cv_prog_LIPO"
d58dead8
PG
8509fi
8510
21be0a5a
JB
8511 if test -n "$ac_tool_prefix"; then
8512 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8513set dummy ${ac_tool_prefix}otool; ac_word=$2
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515$as_echo_n "checking for $ac_word... " >&6; }
8516if test "${ac_cv_prog_OTOOL+set}" = set; then :
5213506e 8517 $as_echo_n "(cached) " >&6
d58dead8 8518else
21be0a5a
JB
8519 if test -n "$OTOOL"; then
8520 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
43e02a8a 8521else
21be0a5a
JB
8522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523for as_dir in $PATH
8524do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8532 fi
8533done
8534 done
8535IFS=$as_save_IFS
43e02a8a
RW
8536
8537fi
21be0a5a
JB
8538fi
8539OTOOL=$ac_cv_prog_OTOOL
8540if test -n "$OTOOL"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8542$as_echo "$OTOOL" >&6; }
8543else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545$as_echo "no" >&6; }
8546fi
8547
d58dead8 8548
1cf3d07d 8549fi
21be0a5a
JB
8550if test -z "$ac_cv_prog_OTOOL"; then
8551 ac_ct_OTOOL=$OTOOL
8552 # Extract the first word of "otool", so it can be a program name with args.
8553set dummy otool; ac_word=$2
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555$as_echo_n "checking for $ac_word... " >&6; }
8556if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5213506e 8557 $as_echo_n "(cached) " >&6
1cf3d07d 8558else
21be0a5a
JB
8559 if test -n "$ac_ct_OTOOL"; then
8560 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8561else
8562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563for as_dir in $PATH
1cf3d07d 8564do
21be0a5a
JB
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569 ac_cv_prog_ac_ct_OTOOL="otool"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8572 fi
8573done
8574 done
8575IFS=$as_save_IFS
6de9cd9a 8576
21be0a5a
JB
8577fi
8578fi
8579ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8580if test -n "$ac_ct_OTOOL"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8582$as_echo "$ac_ct_OTOOL" >&6; }
5213506e 8583else
21be0a5a
JB
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585$as_echo "no" >&6; }
1cf3d07d 8586fi
96b8a615 8587
21be0a5a
JB
8588 if test "x$ac_ct_OTOOL" = x; then
8589 OTOOL=":"
8590 else
8591 case $cross_compiling:$ac_tool_warned in
8592yes:)
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8595ac_tool_warned=yes ;;
8596esac
8597 OTOOL=$ac_ct_OTOOL
8598 fi
1cf3d07d 8599else
21be0a5a 8600 OTOOL="$ac_cv_prog_OTOOL"
1cf3d07d 8601fi
6de9cd9a 8602
21be0a5a
JB
8603 if test -n "$ac_tool_prefix"; then
8604 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8605set dummy ${ac_tool_prefix}otool64; ac_word=$2
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607$as_echo_n "checking for $ac_word... " >&6; }
8608if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8609 $as_echo_n "(cached) " >&6
8610else
8611 if test -n "$OTOOL64"; then
8612 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8613else
8614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615for as_dir in $PATH
8616do
8617 IFS=$as_save_IFS
8618 test -z "$as_dir" && as_dir=.
8619 for ac_exec_ext in '' $ac_executable_extensions; do
8620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8621 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 break 2
8624 fi
1cf3d07d 8625done
21be0a5a
JB
8626 done
8627IFS=$as_save_IFS
8628
8629fi
8630fi
8631OTOOL64=$ac_cv_prog_OTOOL64
8632if test -n "$OTOOL64"; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8634$as_echo "$OTOOL64" >&6; }
8635else
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637$as_echo "no" >&6; }
1cf3d07d 8638fi
6de9cd9a 8639
96b8a615 8640
1cf3d07d 8641fi
21be0a5a
JB
8642if test -z "$ac_cv_prog_OTOOL64"; then
8643 ac_ct_OTOOL64=$OTOOL64
8644 # Extract the first word of "otool64", so it can be a program name with args.
8645set dummy otool64; ac_word=$2
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647$as_echo_n "checking for $ac_word... " >&6; }
8648if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
96b8a615 8650else
21be0a5a
JB
8651 if test -n "$ac_ct_OTOOL64"; then
8652 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8653else
8654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655for as_dir in $PATH
96b8a615 8656do
21be0a5a
JB
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661 ac_cv_prog_ac_ct_OTOOL64="otool64"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8664 fi
8665done
8666 done
8667IFS=$as_save_IFS
96b8a615 8668
21be0a5a
JB
8669fi
8670fi
8671ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8672if test -n "$ac_ct_OTOOL64"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8674$as_echo "$ac_ct_OTOOL64" >&6; }
5213506e 8675else
21be0a5a
JB
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677$as_echo "no" >&6; }
96b8a615
AJ
8678fi
8679
21be0a5a
JB
8680 if test "x$ac_ct_OTOOL64" = x; then
8681 OTOOL64=":"
8682 else
8683 case $cross_compiling:$ac_tool_warned in
8684yes:)
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8687ac_tool_warned=yes ;;
8688esac
8689 OTOOL64=$ac_ct_OTOOL64
8690 fi
6de9cd9a 8691else
21be0a5a 8692 OTOOL64="$ac_cv_prog_OTOOL64"
6de9cd9a 8693fi
6de9cd9a 8694
5213506e 8695
1cf3d07d 8696
1cf3d07d
SE
8697
8698
6de9cd9a 8699
1cf3d07d 8700
6de9cd9a 8701
1cf3d07d 8702
5213506e 8703
6de9cd9a 8704
e87045f3 8705
15e92535 8706
5213506e 8707
15e92535 8708
15e92535 8709
21be0a5a
JB
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8722$as_echo_n "checking for -single_module linker flag... " >&6; }
8723if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
1cf3d07d 8725else
21be0a5a
JB
8726 lt_cv_apple_cc_single_mod=no
8727 if test -z "${LT_MULTI_MODULE}"; then
8728 # By default we will add the -single_module flag. You can override
8729 # by either setting the environment variable LT_MULTI_MODULE
8730 # non-empty at configure time, or by adding -multi_module to the
8731 # link flags.
8732 rm -rf libconftest.dylib*
8733 echo "int foo(void){return 1;}" > conftest.c
8734 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8735-dynamiclib -Wl,-single_module conftest.c" >&5
8736 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8737 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8738 _lt_result=$?
8739 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8740 lt_cv_apple_cc_single_mod=yes
8741 else
8742 cat conftest.err >&5
8743 fi
8744 rm -rf libconftest.dylib*
8745 rm -f conftest.*
8746 fi
8747fi
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8749$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8751$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8752if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8753 $as_echo_n "(cached) " >&6
8754else
8755 lt_cv_ld_exported_symbols_list=no
8756 save_LDFLAGS=$LDFLAGS
8757 echo "_main" > conftest.sym
8758 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8759 if test x$gcc_no_link = xyes; then
8760 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8761fi
8762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 8763/* end confdefs.h. */
15e92535 8764
1cf3d07d
SE
8765int
8766main ()
8767{
21be0a5a
JB
8768
8769 ;
5213506e 8770 return 0;
1cf3d07d 8771}
15e92535 8772_ACEOF
21be0a5a
JB
8773if ac_fn_c_try_link "$LINENO"; then :
8774 lt_cv_ld_exported_symbols_list=yes
5213506e 8775else
21be0a5a 8776 lt_cv_ld_exported_symbols_list=no
1cf3d07d 8777fi
21be0a5a
JB
8778rm -f core conftest.err conftest.$ac_objext \
8779 conftest$ac_exeext conftest.$ac_ext
8780 LDFLAGS="$save_LDFLAGS"
15e92535
FXC
8781
8782fi
21be0a5a
JB
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8784$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8786$as_echo_n "checking for -force_load linker flag... " >&6; }
8787if test "${lt_cv_ld_force_load+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
8789else
8790 lt_cv_ld_force_load=no
8791 cat > conftest.c << _LT_EOF
8792int forced_loaded() { return 2;}
8793_LT_EOF
8794 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8795 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8796 echo "$AR cru libconftest.a conftest.o" >&5
8797 $AR cru libconftest.a conftest.o 2>&5
8798 cat > conftest.c << _LT_EOF
8799int main() { return 0;}
8800_LT_EOF
8801 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8802 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8803 _lt_result=$?
8804 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8805 lt_cv_ld_force_load=yes
8806 else
8807 cat conftest.err >&5
8808 fi
8809 rm -f conftest.err libconftest.a conftest conftest.c
8810 rm -rf conftest.dSYM
1cf3d07d
SE
8811
8812fi
21be0a5a
JB
8813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8814$as_echo "$lt_cv_ld_force_load" >&6; }
8815 case $host_os in
8816 rhapsody* | darwin1.[012])
8817 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8818 darwin1.*)
8819 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8820 darwin*) # darwin 5.x on
8821 # if running on 10.5 or later, the deployment target defaults
8822 # to the OS version, if on x86, and 10.4, the deployment
8823 # target defaults to 10.4. Don't you love it?
8824 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8825 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8826 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 8827 10.[012][,.]*)
21be0a5a
JB
8828 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8829 10.*)
8830 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8831 esac
8832 ;;
8833 esac
8834 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8835 _lt_dar_single_mod='$single_module'
8836 fi
8837 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8838 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8839 else
8840 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8841 fi
8842 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8843 _lt_dsymutil='~$DSYMUTIL $lib || :'
8844 else
8845 _lt_dsymutil=
8846 fi
8847 ;;
8848 esac
1cf3d07d 8849
1cf3d07d 8850for ac_header in dlfcn.h
5213506e
RW
8851do :
8852 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8853"
8854if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
1cf3d07d 8855 cat >>confdefs.h <<_ACEOF
5213506e 8856#define HAVE_DLFCN_H 1
9cdc381b 8857_ACEOF
9cdc381b 8858
1cf3d07d
SE
8859fi
8860
8861done
8862
8863
8864
43e02a8a
RW
8865
8866
d58dead8
PG
8867# Set options
8868
8869
8870
8871
8872 enable_win32_dll=no
8873
8874
5213506e
RW
8875 # Check whether --enable-shared was given.
8876if test "${enable_shared+set}" = set; then :
8877 enableval=$enable_shared; p=${PACKAGE-default}
d58dead8
PG
8878 case $enableval in
8879 yes) enable_shared=yes ;;
8880 no) enable_shared=no ;;
8881 *)
8882 enable_shared=no
8883 # Look at the argument we got. We use all the common list separators.
8884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8885 for pkg in $enableval; do
8886 IFS="$lt_save_ifs"
8887 if test "X$pkg" = "X$p"; then
8888 enable_shared=yes
8889 fi
8890 done
8891 IFS="$lt_save_ifs"
8892 ;;
8893 esac
8894else
8895 enable_shared=yes
5213506e
RW
8896fi
8897
d58dead8
PG
8898
8899
8900
8901
8902
8903
8904
8905
5213506e
RW
8906 # Check whether --enable-static was given.
8907if test "${enable_static+set}" = set; then :
8908 enableval=$enable_static; p=${PACKAGE-default}
d58dead8
PG
8909 case $enableval in
8910 yes) enable_static=yes ;;
8911 no) enable_static=no ;;
8912 *)
8913 enable_static=no
8914 # Look at the argument we got. We use all the common list separators.
8915 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8916 for pkg in $enableval; do
8917 IFS="$lt_save_ifs"
8918 if test "X$pkg" = "X$p"; then
8919 enable_static=yes
8920 fi
8921 done
8922 IFS="$lt_save_ifs"
8923 ;;
8924 esac
8925else
8926 enable_static=yes
5213506e
RW
8927fi
8928
d58dead8
PG
8929
8930
8931
8932
8933
8934
8935
8936
8937
5213506e
RW
8938# Check whether --with-pic was given.
8939if test "${with_pic+set}" = set; then :
8940 withval=$with_pic; pic_mode="$withval"
d58dead8
PG
8941else
8942 pic_mode=default
5213506e
RW
8943fi
8944
d58dead8
PG
8945
8946test -z "$pic_mode" && pic_mode=default
8947
8948
8949
8950
8951
8952
8953
5213506e
RW
8954 # Check whether --enable-fast-install was given.
8955if test "${enable_fast_install+set}" = set; then :
8956 enableval=$enable_fast_install; p=${PACKAGE-default}
d58dead8
PG
8957 case $enableval in
8958 yes) enable_fast_install=yes ;;
8959 no) enable_fast_install=no ;;
8960 *)
8961 enable_fast_install=no
8962 # Look at the argument we got. We use all the common list separators.
8963 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8964 for pkg in $enableval; do
8965 IFS="$lt_save_ifs"
8966 if test "X$pkg" = "X$p"; then
8967 enable_fast_install=yes
8968 fi
8969 done
8970 IFS="$lt_save_ifs"
8971 ;;
8972 esac
8973else
8974 enable_fast_install=yes
5213506e
RW
8975fi
8976
d58dead8
PG
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
1cf3d07d
SE
8987# This can be used to rebuild libtool when needed
8988LIBTOOL_DEPS="$ltmain"
8989
8990# Always use our own libtool.
8991LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
43e02a8a 9015
1cf3d07d
SE
9016
9017
9018test -z "$LN_S" && LN_S="ln -s"
9019
9020
9021
9022
9023
9cdc381b 9024
1cf3d07d
SE
9025
9026
9027
9028
9029
9030
9031
9032
9033if test -n "${ZSH_VERSION+set}" ; then
9034 setopt NO_GLOB_SUBST
9cdc381b 9035fi
9cdc381b 9036
5213506e
RW
9037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9038$as_echo_n "checking for objdir... " >&6; }
9039if test "${lt_cv_objdir+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9cdc381b 9041else
1cf3d07d
SE
9042 rm -f .libs 2>/dev/null
9043mkdir .libs 2>/dev/null
9044if test -d .libs; then
9045 lt_cv_objdir=.libs
9046else
9047 # MS-DOS does not allow filenames that begin with a dot.
9048 lt_cv_objdir=_libs
9cdc381b 9049fi
1cf3d07d 9050rmdir .libs 2>/dev/null
9cdc381b 9051fi
5213506e
RW
9052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9053$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
9054objdir=$lt_cv_objdir
9055
9056
9057
9058
9cdc381b
BD
9059
9060cat >>confdefs.h <<_ACEOF
1cf3d07d 9061#define LT_OBJDIR "$lt_cv_objdir/"
9cdc381b
BD
9062_ACEOF
9063
1cf3d07d
SE
9064
9065
9066
1cf3d07d
SE
9067case $host_os in
9068aix3*)
9069 # AIX sometimes has problems with the GCC collect2 program. For some
9070 # reason, if we set the COLLECT_NAMES environment variable, the problems
9071 # vanish in a puff of smoke.
9072 if test "X${COLLECT_NAMES+set}" != Xset; then
9073 COLLECT_NAMES=
9074 export COLLECT_NAMES
9075 fi
9076 ;;
9077esac
9078
1cf3d07d
SE
9079# Global variables:
9080ofile=libtool
9081can_build_shared=yes
9082
9083# All known linkers require a `.a' archive for static linking (except MSVC,
9084# which needs '.lib').
9085libext=a
9086
9087with_gnu_ld="$lt_cv_prog_gnu_ld"
9088
9089old_CC="$CC"
9090old_CFLAGS="$CFLAGS"
9091
9092# Set sane defaults for various variables
9093test -z "$CC" && CC=cc
9094test -z "$LTCC" && LTCC=$CC
9095test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9096test -z "$LD" && LD=ld
9097test -z "$ac_objext" && ac_objext=o
9098
9099for cc_temp in $compiler""; do
9100 case $cc_temp in
9101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9103 \-*) ;;
9104 *) break;;
9105 esac
9106done
43e02a8a 9107cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
9108
9109
9110# Only perform the check for file, if the check method requires it
9111test -z "$MAGIC_CMD" && MAGIC_CMD=file
9112case $deplibs_check_method in
9113file_magic*)
9114 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9116$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9117if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9cdc381b 9119else
1cf3d07d
SE
9120 case $MAGIC_CMD in
9121[\\/*] | ?:[\\/]*)
9122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9123 ;;
9124*)
9125 lt_save_MAGIC_CMD="$MAGIC_CMD"
9126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9127 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9128 for ac_dir in $ac_dummy; do
9129 IFS="$lt_save_ifs"
9130 test -z "$ac_dir" && ac_dir=.
9131 if test -f $ac_dir/${ac_tool_prefix}file; then
9132 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9133 if test -n "$file_magic_test_file"; then
9134 case $deplibs_check_method in
9135 "file_magic "*)
9136 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9138 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9139 $EGREP "$file_magic_regex" > /dev/null; then
9140 :
9141 else
9142 cat <<_LT_EOF 1>&2
9cdc381b 9143
1cf3d07d
SE
9144*** Warning: the command libtool uses to detect shared libraries,
9145*** $file_magic_cmd, produces output that libtool cannot recognize.
9146*** The result is that libtool may fail to recognize shared libraries
9147*** as such. This will affect the creation of libtool libraries that
9148*** depend on shared libraries, but programs linked with such libtool
9149*** libraries will work regardless of this problem. Nevertheless, you
9150*** may want to report the problem to your system manager and/or to
9151*** bug-libtool@gnu.org
9152
9153_LT_EOF
9154 fi ;;
9155 esac
9156 fi
9157 break
9158 fi
9159 done
9160 IFS="$lt_save_ifs"
9161 MAGIC_CMD="$lt_save_MAGIC_CMD"
9162 ;;
9163esac
9164fi
9165
9166MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9167if test -n "$MAGIC_CMD"; then
5213506e
RW
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9169$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9170else
5213506e
RW
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172$as_echo "no" >&6; }
1cf3d07d
SE
9173fi
9174
9175
9176
9177
9178
9179if test -z "$lt_cv_path_MAGIC_CMD"; then
9180 if test -n "$ac_tool_prefix"; then
5213506e
RW
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9182$as_echo_n "checking for file... " >&6; }
9183if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9185else
9186 case $MAGIC_CMD in
9187[\\/*] | ?:[\\/]*)
9188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9189 ;;
9190*)
9191 lt_save_MAGIC_CMD="$MAGIC_CMD"
9192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9194 for ac_dir in $ac_dummy; do
9195 IFS="$lt_save_ifs"
9196 test -z "$ac_dir" && ac_dir=.
9197 if test -f $ac_dir/file; then
9198 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9199 if test -n "$file_magic_test_file"; then
9200 case $deplibs_check_method in
9201 "file_magic "*)
9202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9205 $EGREP "$file_magic_regex" > /dev/null; then
9206 :
9207 else
9208 cat <<_LT_EOF 1>&2
9209
9210*** Warning: the command libtool uses to detect shared libraries,
9211*** $file_magic_cmd, produces output that libtool cannot recognize.
9212*** The result is that libtool may fail to recognize shared libraries
9213*** as such. This will affect the creation of libtool libraries that
9214*** depend on shared libraries, but programs linked with such libtool
9215*** libraries will work regardless of this problem. Nevertheless, you
9216*** may want to report the problem to your system manager and/or to
9217*** bug-libtool@gnu.org
9218
9219_LT_EOF
9220 fi ;;
9221 esac
9222 fi
9223 break
9224 fi
9225 done
9226 IFS="$lt_save_ifs"
9227 MAGIC_CMD="$lt_save_MAGIC_CMD"
9228 ;;
9229esac
9230fi
9231
9232MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9233if test -n "$MAGIC_CMD"; then
5213506e
RW
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9235$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9236else
5213506e
RW
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238$as_echo "no" >&6; }
1cf3d07d
SE
9239fi
9240
9241
9242 else
9243 MAGIC_CMD=:
9244 fi
9245fi
9246
9247 fi
9248 ;;
9249esac
9250
9251# Use C for the default configuration in the libtool script
9252
9253lt_save_CC="$CC"
9254ac_ext=c
9255ac_cpp='$CPP $CPPFLAGS'
9256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9258ac_compiler_gnu=$ac_cv_c_compiler_gnu
9259
9260
9261# Source file extension for C test sources.
9262ac_ext=c
9263
9264# Object file extension for compiled C test sources.
9265objext=o
9266objext=$objext
9267
9268# Code to be used in simple compile tests
9269lt_simple_compile_test_code="int some_variable = 0;"
9270
9271# Code to be used in simple link tests
9272lt_simple_link_test_code='int main(){return(0);}'
9273
9274
9275
9276
9277
9278
9279
9280# If no C compiler was specified, use CC.
9281LTCC=${LTCC-"$CC"}
9282
9283# If no C compiler flags were specified, use CFLAGS.
9284LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9285
9286# Allow CC to be a program name with arguments.
9287compiler=$CC
9288
9289# Save the default compiler, since it gets overwritten when the other
9290# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9291compiler_DEFAULT=$CC
9292
9293# save warnings/boilerplate of simple test code
9294ac_outfile=conftest.$ac_objext
9295echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9296eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9297_lt_compiler_boilerplate=`cat conftest.err`
9298$RM conftest*
9299
9300ac_outfile=conftest.$ac_objext
9301echo "$lt_simple_link_test_code" >conftest.$ac_ext
9302eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9303_lt_linker_boilerplate=`cat conftest.err`
d58dead8 9304$RM -r conftest*
1cf3d07d
SE
9305
9306
9307## CAVEAT EMPTOR:
9308## There is no encapsulation within the following macros, do not change
9309## the running order or otherwise move them around unless you know exactly
9310## what you are doing...
9311if test -n "$compiler"; then
9312
9313lt_prog_compiler_no_builtin_flag=
9314
9315if test "$GCC" = yes; then
43e02a8a
RW
9316 case $cc_basename in
9317 nvcc*)
9318 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9319 *)
9320 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9321 esac
1cf3d07d 9322
5213506e
RW
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9324$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9325if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9326 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9327else
9328 lt_cv_prog_compiler_rtti_exceptions=no
9329 ac_outfile=conftest.$ac_objext
9330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9331 lt_compiler_flag="-fno-rtti -fno-exceptions"
9332 # Insert the option either (1) after the last *FLAGS variable, or
9333 # (2) before a word containing "conftest.", or (3) at the end.
9334 # Note that $ac_compile itself does not contain backslashes and begins
9335 # with a dollar sign (not a hyphen), so the echo should work correctly.
9336 # The option is referenced via a variable to avoid confusing sed.
9337 lt_compile=`echo "$ac_compile" | $SED \
9338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9340 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9342 (eval "$lt_compile" 2>conftest.err)
9343 ac_status=$?
9344 cat conftest.err >&5
43e02a8a 9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9346 if (exit $ac_status) && test -s "$ac_outfile"; then
9347 # The compiler can only warn and ignore the option if not recognized
9348 # So say no if there are warnings other than the usual output.
43e02a8a 9349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9352 lt_cv_prog_compiler_rtti_exceptions=yes
9353 fi
9354 fi
9355 $RM conftest*
9356
9357fi
5213506e
RW
9358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9359$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
9360
9361if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9362 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9363else
9364 :
9365fi
9366
9367fi
9368
9369
9370
9371
9372
9373
9374 lt_prog_compiler_wl=
9375lt_prog_compiler_pic=
9376lt_prog_compiler_static=
9377
5213506e
RW
9378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9379$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
9380
9381 if test "$GCC" = yes; then
9382 lt_prog_compiler_wl='-Wl,'
9383 lt_prog_compiler_static='-static'
9384
9385 case $host_os in
9386 aix*)
9387 # All AIX code is PIC.
9388 if test "$host_cpu" = ia64; then
9389 # AIX 5 now supports IA64 processor
9390 lt_prog_compiler_static='-Bstatic'
9391 fi
bad8a4a7 9392 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
9393 ;;
9394
9395 amigaos*)
d58dead8
PG
9396 case $host_cpu in
9397 powerpc)
9398 # see comment about AmigaOS4 .so support
9399 lt_prog_compiler_pic='-fPIC'
9400 ;;
9401 m68k)
9402 # FIXME: we need at least 68020 code to build shared libraries, but
9403 # adding the `-m68020' flag to GCC prevents building anything better,
9404 # like `-m68040'.
9405 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9406 ;;
9407 esac
1cf3d07d
SE
9408 ;;
9409
9410 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9411 # PIC is the default for these OSes.
9412 ;;
9413
d58dead8 9414 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9415 # This hack is so that the source file can tell whether it is being
9416 # built for inclusion in a dll (and should export symbols for example).
9417 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9418 # (--disable-auto-import) libraries
9419 lt_prog_compiler_pic='-DDLL_EXPORT'
9420 ;;
9421
9422 darwin* | rhapsody*)
9423 # PIC is the default on this platform
9424 # Common symbols not allowed in MH_DYLIB files
9425 lt_prog_compiler_pic='-fno-common'
9426 ;;
9427
43e02a8a
RW
9428 haiku*)
9429 # PIC is the default for Haiku.
9430 # The "-static" flag exists, but is broken.
9431 lt_prog_compiler_static=
9432 ;;
9433
1cf3d07d 9434 hpux*)
d58dead8
PG
9435 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9436 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9437 # sets the default TLS model and affects inlining.
1cf3d07d 9438 case $host_cpu in
d58dead8 9439 hppa*64*)
1cf3d07d
SE
9440 # +Z the default
9441 ;;
9442 *)
9443 lt_prog_compiler_pic='-fPIC'
9444 ;;
9445 esac
9446 ;;
9447
9448 interix[3-9]*)
9449 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9450 # Instead, we relocate shared libraries at runtime.
9451 ;;
9452
9453 msdosdjgpp*)
9454 # Just because we use GCC doesn't mean we suddenly get shared libraries
9455 # on systems that don't support them.
9456 lt_prog_compiler_can_build_shared=no
9457 enable_shared=no
9458 ;;
9459
9460 *nto* | *qnx*)
9461 # QNX uses GNU C++, but need to define -shared option too, otherwise
9462 # it will coredump.
9463 lt_prog_compiler_pic='-fPIC -shared'
9464 ;;
9465
9466 sysv4*MP*)
9467 if test -d /usr/nec; then
9468 lt_prog_compiler_pic=-Kconform_pic
9469 fi
9470 ;;
9471
9472 *)
9473 lt_prog_compiler_pic='-fPIC'
9474 ;;
9475 esac
43e02a8a
RW
9476
9477 case $cc_basename in
9478 nvcc*) # Cuda Compiler Driver 2.2
9479 lt_prog_compiler_wl='-Xlinker '
9480 lt_prog_compiler_pic='-Xcompiler -fPIC'
9481 ;;
9482 esac
1cf3d07d
SE
9483 else
9484 # PORTME Check for flag to pass linker flags through the system compiler.
9485 case $host_os in
9486 aix*)
9487 lt_prog_compiler_wl='-Wl,'
9488 if test "$host_cpu" = ia64; then
9489 # AIX 5 now supports IA64 processor
9490 lt_prog_compiler_static='-Bstatic'
9491 else
9492 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9493 fi
9494 ;;
1cf3d07d 9495
d58dead8 9496 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9497 # This hack is so that the source file can tell whether it is being
9498 # built for inclusion in a dll (and should export symbols for example).
9499 lt_prog_compiler_pic='-DDLL_EXPORT'
9500 ;;
9501
9502 hpux9* | hpux10* | hpux11*)
9503 lt_prog_compiler_wl='-Wl,'
9504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9505 # not for PA HP-UX.
9506 case $host_cpu in
9507 hppa*64*|ia64*)
9508 # +Z the default
9509 ;;
9510 *)
9511 lt_prog_compiler_pic='+Z'
9512 ;;
9513 esac
9514 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9515 lt_prog_compiler_static='${wl}-a ${wl}archive'
9516 ;;
9517
9518 irix5* | irix6* | nonstopux*)
9519 lt_prog_compiler_wl='-Wl,'
9520 # PIC (with -KPIC) is the default.
9521 lt_prog_compiler_static='-non_shared'
9522 ;;
9523
7a9d3fe8 9524 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 9525 case $cc_basename in
d58dead8
PG
9526 # old Intel for x86_64 which still supported -KPIC.
9527 ecc*)
1cf3d07d
SE
9528 lt_prog_compiler_wl='-Wl,'
9529 lt_prog_compiler_pic='-KPIC'
9530 lt_prog_compiler_static='-static'
9531 ;;
d58dead8
PG
9532 # icc used to be incompatible with GCC.
9533 # ICC 10 doesn't accept -KPIC any more.
9534 icc* | ifort*)
9535 lt_prog_compiler_wl='-Wl,'
9536 lt_prog_compiler_pic='-fPIC'
9537 lt_prog_compiler_static='-static'
9538 ;;
9539 # Lahey Fortran 8.1.
9540 lf95*)
9541 lt_prog_compiler_wl='-Wl,'
9542 lt_prog_compiler_pic='--shared'
9543 lt_prog_compiler_static='--static'
9544 ;;
43e02a8a 9545 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
9546 # Portland Group compilers (*not* the Pentium gcc compiler,
9547 # which looks to be a dead project)
9548 lt_prog_compiler_wl='-Wl,'
9549 lt_prog_compiler_pic='-fpic'
9550 lt_prog_compiler_static='-Bstatic'
9551 ;;
9552 ccc*)
9553 lt_prog_compiler_wl='-Wl,'
9554 # All Alpha code is PIC.
9555 lt_prog_compiler_static='-non_shared'
9556 ;;
43e02a8a
RW
9557 xl* | bgxl* | bgf* | mpixl*)
9558 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
9559 lt_prog_compiler_wl='-Wl,'
9560 lt_prog_compiler_pic='-qpic'
9561 lt_prog_compiler_static='-qstaticlink'
9562 ;;
1cf3d07d
SE
9563 *)
9564 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
9565 *Sun\ F* | *Sun*Fortran*)
9566 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
9567 lt_prog_compiler_pic='-KPIC'
9568 lt_prog_compiler_static='-Bstatic'
43e02a8a 9569 lt_prog_compiler_wl=''
1cf3d07d 9570 ;;
43e02a8a
RW
9571 *Sun\ C*)
9572 # Sun C 5.9
1cf3d07d
SE
9573 lt_prog_compiler_pic='-KPIC'
9574 lt_prog_compiler_static='-Bstatic'
43e02a8a 9575 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
9576 ;;
9577 esac
9578 ;;
9579 esac
9580 ;;
9581
9582 newsos6)
9583 lt_prog_compiler_pic='-KPIC'
9584 lt_prog_compiler_static='-Bstatic'
9585 ;;
9586
9587 *nto* | *qnx*)
9588 # QNX uses GNU C++, but need to define -shared option too, otherwise
9589 # it will coredump.
9590 lt_prog_compiler_pic='-fPIC -shared'
9591 ;;
9592
9593 osf3* | osf4* | osf5*)
9594 lt_prog_compiler_wl='-Wl,'
9595 # All OSF/1 code is PIC.
9596 lt_prog_compiler_static='-non_shared'
9597 ;;
9598
9599 rdos*)
9600 lt_prog_compiler_static='-non_shared'
9601 ;;
9602
9603 solaris*)
9604 lt_prog_compiler_pic='-KPIC'
9605 lt_prog_compiler_static='-Bstatic'
9606 case $cc_basename in
9607 f77* | f90* | f95*)
9608 lt_prog_compiler_wl='-Qoption ld ';;
9609 *)
9610 lt_prog_compiler_wl='-Wl,';;
9611 esac
9612 ;;
9613
9614 sunos4*)
9615 lt_prog_compiler_wl='-Qoption ld '
9616 lt_prog_compiler_pic='-PIC'
9617 lt_prog_compiler_static='-Bstatic'
9618 ;;
9619
9620 sysv4 | sysv4.2uw2* | sysv4.3*)
9621 lt_prog_compiler_wl='-Wl,'
9622 lt_prog_compiler_pic='-KPIC'
9623 lt_prog_compiler_static='-Bstatic'
9624 ;;
9625
9626 sysv4*MP*)
9627 if test -d /usr/nec ;then
9628 lt_prog_compiler_pic='-Kconform_pic'
9629 lt_prog_compiler_static='-Bstatic'
9630 fi
9631 ;;
9632
9633 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9634 lt_prog_compiler_wl='-Wl,'
9635 lt_prog_compiler_pic='-KPIC'
9636 lt_prog_compiler_static='-Bstatic'
9637 ;;
9638
9639 unicos*)
9640 lt_prog_compiler_wl='-Wl,'
9641 lt_prog_compiler_can_build_shared=no
9642 ;;
9643
9644 uts4*)
9645 lt_prog_compiler_pic='-pic'
9646 lt_prog_compiler_static='-Bstatic'
9647 ;;
9648
9649 *)
9650 lt_prog_compiler_can_build_shared=no
9651 ;;
9652 esac
9653 fi
9654
9655case $host_os in
9656 # For platforms which do not support PIC, -DPIC is meaningless:
9657 *djgpp*)
9658 lt_prog_compiler_pic=
9659 ;;
9660 *)
9661 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9662 ;;
9663esac
5213506e
RW
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9665$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
9666
9667
9668
9669
9670
9671
9672#
9673# Check to make sure the PIC flag actually works.
9674#
9675if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9677$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9678if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9679 $as_echo_n "(cached) " >&6
1cf3d07d 9680else
d58dead8 9681 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
9682 ac_outfile=conftest.$ac_objext
9683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9684 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9685 # Insert the option either (1) after the last *FLAGS variable, or
9686 # (2) before a word containing "conftest.", or (3) at the end.
9687 # Note that $ac_compile itself does not contain backslashes and begins
9688 # with a dollar sign (not a hyphen), so the echo should work correctly.
9689 # The option is referenced via a variable to avoid confusing sed.
9690 lt_compile=`echo "$ac_compile" | $SED \
9691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9693 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9695 (eval "$lt_compile" 2>conftest.err)
9696 ac_status=$?
9697 cat conftest.err >&5
43e02a8a 9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9699 if (exit $ac_status) && test -s "$ac_outfile"; then
9700 # The compiler can only warn and ignore the option if not recognized
9701 # So say no if there are warnings other than the usual output.
43e02a8a 9702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 9705 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
9706 fi
9707 fi
9708 $RM conftest*
9709
9710fi
5213506e
RW
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9712$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 9713
d58dead8 9714if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
9715 case $lt_prog_compiler_pic in
9716 "" | " "*) ;;
9717 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9718 esac
9719else
9720 lt_prog_compiler_pic=
9721 lt_prog_compiler_can_build_shared=no
9722fi
9723
9724fi
9725
9726
9727
9728
9729
9730
9731#
9732# Check to make sure the static flag actually works.
9733#
9734wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9736$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9737if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9738 $as_echo_n "(cached) " >&6
1cf3d07d 9739else
d58dead8 9740 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
9741 save_LDFLAGS="$LDFLAGS"
9742 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9743 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9744 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9745 # The linker can only warn and ignore the option if not recognized
9746 # So say no if there are warnings
9747 if test -s conftest.err; then
9748 # Append any errors to the config.log.
9749 cat conftest.err 1>&5
43e02a8a 9750 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
9751 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9752 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 9753 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9754 fi
9755 else
d58dead8 9756 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9757 fi
9758 fi
d58dead8 9759 $RM -r conftest*
1cf3d07d
SE
9760 LDFLAGS="$save_LDFLAGS"
9761
9762fi
5213506e
RW
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9764$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 9765
d58dead8 9766if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
9767 :
9768else
9769 lt_prog_compiler_static=
9770fi
9771
9772
9773
9774
9775
9776
9777
5213506e
RW
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9779$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9780if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9781 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9782else
9783 lt_cv_prog_compiler_c_o=no
9784 $RM -r conftest 2>/dev/null
9785 mkdir conftest
9786 cd conftest
9787 mkdir out
9788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9789
9790 lt_compiler_flag="-o out/conftest2.$ac_objext"
9791 # Insert the option either (1) after the last *FLAGS variable, or
9792 # (2) before a word containing "conftest.", or (3) at the end.
9793 # Note that $ac_compile itself does not contain backslashes and begins
9794 # with a dollar sign (not a hyphen), so the echo should work correctly.
9795 lt_compile=`echo "$ac_compile" | $SED \
9796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9798 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9799 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9800 (eval "$lt_compile" 2>out/conftest.err)
9801 ac_status=$?
9802 cat out/conftest.err >&5
43e02a8a 9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9805 then
9806 # The compiler can only warn and ignore the option if not recognized
9807 # So say no if there are warnings
43e02a8a 9808 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
9809 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9810 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9811 lt_cv_prog_compiler_c_o=yes
9812 fi
9813 fi
9814 chmod u+w . 2>&5
9815 $RM conftest*
9816 # SGI C++ compiler will create directory out/ii_files/ for
9817 # template instantiation
9818 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9819 $RM out/* && rmdir out
9820 cd ..
9821 $RM -r conftest
9822 $RM conftest*
9823
9824fi
5213506e
RW
9825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9826$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9827
9828
9829
9830
9831
9832
5213506e
RW
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9834$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9835if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9836 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9837else
9838 lt_cv_prog_compiler_c_o=no
9839 $RM -r conftest 2>/dev/null
9840 mkdir conftest
9841 cd conftest
9842 mkdir out
9843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9844
9845 lt_compiler_flag="-o out/conftest2.$ac_objext"
9846 # Insert the option either (1) after the last *FLAGS variable, or
9847 # (2) before a word containing "conftest.", or (3) at the end.
9848 # Note that $ac_compile itself does not contain backslashes and begins
9849 # with a dollar sign (not a hyphen), so the echo should work correctly.
9850 lt_compile=`echo "$ac_compile" | $SED \
9851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9853 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9854 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9855 (eval "$lt_compile" 2>out/conftest.err)
9856 ac_status=$?
9857 cat out/conftest.err >&5
43e02a8a 9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9859 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9860 then
9861 # The compiler can only warn and ignore the option if not recognized
9862 # So say no if there are warnings
43e02a8a 9863 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
9864 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9865 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9866 lt_cv_prog_compiler_c_o=yes
9867 fi
9868 fi
9869 chmod u+w . 2>&5
9870 $RM conftest*
9871 # SGI C++ compiler will create directory out/ii_files/ for
9872 # template instantiation
9873 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9874 $RM out/* && rmdir out
9875 cd ..
9876 $RM -r conftest
9877 $RM conftest*
9878
9879fi
5213506e
RW
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9881$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9882
9883
9884
9885
9886hard_links="nottested"
9887if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9888 # do not overwrite the value of need_locks provided by the user
5213506e
RW
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9890$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
9891 hard_links=yes
9892 $RM conftest*
9893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9894 touch conftest.a
9895 ln conftest.a conftest.b 2>&5 || hard_links=no
9896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9898$as_echo "$hard_links" >&6; }
1cf3d07d 9899 if test "$hard_links" = no; then
5213506e
RW
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9901$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
9902 need_locks=warn
9903 fi
9904else
9905 need_locks=no
9906fi
9907
9908
9909
9910
9911
9912
5213506e
RW
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9914$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
9915
9916 runpath_var=
9917 allow_undefined_flag=
9918 always_export_symbols=no
9919 archive_cmds=
9920 archive_expsym_cmds=
9921 compiler_needs_object=no
9922 enable_shared_with_static_runtimes=no
9923 export_dynamic_flag_spec=
9924 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9925 hardcode_automatic=no
9926 hardcode_direct=no
9927 hardcode_direct_absolute=no
9928 hardcode_libdir_flag_spec=
9929 hardcode_libdir_flag_spec_ld=
9930 hardcode_libdir_separator=
9931 hardcode_minus_L=no
9932 hardcode_shlibpath_var=unsupported
9933 inherit_rpath=no
9934 link_all_deplibs=unknown
9935 module_cmds=
9936 module_expsym_cmds=
9937 old_archive_from_new_cmds=
9938 old_archive_from_expsyms_cmds=
9939 thread_safe_flag_spec=
9940 whole_archive_flag_spec=
9941 # include_expsyms should be a list of space-separated symbols to be *always*
9942 # included in the symbol list
9943 include_expsyms=
9944 # exclude_expsyms can be an extended regexp of symbols to exclude
9945 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9946 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9947 # as well as any symbol that contains `d'.
d58dead8 9948 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
9949 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9950 # platforms (ab)use it in PIC code, but their linkers get confused if
9951 # the symbol is explicitly referenced. Since portable code cannot
9952 # rely on this symbol name, it's probably fine to never include it in
9953 # preloaded symbol tables.
d58dead8 9954 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
9955 extract_expsyms_cmds=
9956
9957 case $host_os in
d58dead8 9958 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9959 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9960 # When not using gcc, we currently assume that we are using
9961 # Microsoft Visual C++.
9962 if test "$GCC" != yes; then
9963 with_gnu_ld=no
9964 fi
9965 ;;
9966 interix*)
9967 # we just hope/assume this is gcc and not c89 (= MSVC++)
9968 with_gnu_ld=yes
9969 ;;
9970 openbsd*)
9971 with_gnu_ld=no
9972 ;;
9973 esac
9974
9975 ld_shlibs=yes
43e02a8a
RW
9976
9977 # On some targets, GNU ld is compatible enough with the native linker
9978 # that we're better off using the native interface for both.
9979 lt_use_gnu_ld_interface=no
1cf3d07d 9980 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
9981 case $host_os in
9982 aix*)
9983 # The AIX port of GNU ld has always aspired to compatibility
9984 # with the native linker. However, as the warning in the GNU ld
9985 # block says, versions before 2.19.5* couldn't really create working
9986 # shared libraries, regardless of the interface used.
9987 case `$LD -v 2>&1` in
9988 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9989 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9990 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9991 *)
9992 lt_use_gnu_ld_interface=yes
9993 ;;
9994 esac
9995 ;;
9996 *)
9997 lt_use_gnu_ld_interface=yes
9998 ;;
9999 esac
10000 fi
10001
10002 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
10003 # If archive_cmds runs LD, not CC, wlarc should be empty
10004 wlarc='${wl}'
10005
10006 # Set some defaults for GNU ld with shared library support. These
10007 # are reset later if shared libraries are not supported. Putting them
10008 # here allows them to be overridden if necessary.
10009 runpath_var=LD_RUN_PATH
10010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10011 export_dynamic_flag_spec='${wl}--export-dynamic'
10012 # ancient GNU ld didn't support --whole-archive et. al.
10013 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10014 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10015 else
10016 whole_archive_flag_spec=
10017 fi
10018 supports_anon_versioning=no
10019 case `$LD -v 2>&1` in
43e02a8a 10020 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
10021 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10022 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10023 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10024 *\ 2.11.*) ;; # other 2.11 versions
10025 *) supports_anon_versioning=yes ;;
10026 esac
10027
10028 # See if GNU ld supports shared libraries.
10029 case $host_os in
4f6bebc3 10030 aix[3-9]*)
1cf3d07d
SE
10031 # On AIX/PPC, the GNU linker is very broken
10032 if test "$host_cpu" != ia64; then
10033 ld_shlibs=no
10034 cat <<_LT_EOF 1>&2
10035
43e02a8a 10036*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
10037*** to be unable to reliably create shared libraries on AIX.
10038*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
10039*** really care for shared libraries, you may want to install binutils
10040*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10041*** You will then need to restart the configuration process.
1cf3d07d
SE
10042
10043_LT_EOF
10044 fi
10045 ;;
10046
10047 amigaos*)
d58dead8
PG
10048 case $host_cpu in
10049 powerpc)
10050 # see comment about AmigaOS4 .so support
10051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10052 archive_expsym_cmds=''
10053 ;;
10054 m68k)
10055 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)'
10056 hardcode_libdir_flag_spec='-L$libdir'
10057 hardcode_minus_L=yes
10058 ;;
10059 esac
1cf3d07d
SE
10060 ;;
10061
10062 beos*)
10063 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10064 allow_undefined_flag=unsupported
10065 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10066 # support --undefined. This deserves some investigation. FIXME
10067 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10068 else
10069 ld_shlibs=no
10070 fi
10071 ;;
10072
d58dead8 10073 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10074 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10075 # as there is no search path for DLLs.
10076 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 10077 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
10078 allow_undefined_flag=unsupported
10079 always_export_symbols=no
10080 enable_shared_with_static_runtimes=yes
10081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10082
10083 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10085 # If the export-symbols file already is a .def file (1st line
10086 # is EXPORTS), use it as is; otherwise, prepend...
10087 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10088 cp $export_symbols $output_objdir/$soname.def;
10089 else
10090 echo EXPORTS > $output_objdir/$soname.def;
10091 cat $export_symbols >> $output_objdir/$soname.def;
10092 fi~
10093 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10094 else
10095 ld_shlibs=no
10096 fi
10097 ;;
10098
43e02a8a
RW
10099 haiku*)
10100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10101 link_all_deplibs=yes
10102 ;;
10103
1cf3d07d
SE
10104 interix[3-9]*)
10105 hardcode_direct=no
10106 hardcode_shlibpath_var=no
10107 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10108 export_dynamic_flag_spec='${wl}-E'
10109 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10110 # Instead, shared libraries are loaded at an image base (0x10000000 by
10111 # default) and relocated if they conflict, which is a slow very memory
10112 # consuming and fragmenting process. To avoid this, we pick a random,
10113 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10114 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10115 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10116 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'
10117 ;;
10118
7a9d3fe8 10119 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
10120 tmp_diet=no
10121 if test "$host_os" = linux-dietlibc; then
10122 case $cc_basename in
10123 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10124 esac
10125 fi
10126 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10127 && test "$tmp_diet" = no
10128 then
a699d672 10129 tmp_addflag=' $pic_flag'
d58dead8 10130 tmp_sharedflag='-shared'
1cf3d07d
SE
10131 case $cc_basename,$host_cpu in
10132 pgcc*) # Portland Group C compiler
43e02a8a 10133 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
10134 tmp_addflag=' $pic_flag'
10135 ;;
43e02a8a
RW
10136 pgf77* | pgf90* | pgf95* | pgfortran*)
10137 # Portland Group f77 and f90 compilers
10138 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
10139 tmp_addflag=' $pic_flag -Mnomain' ;;
10140 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10141 tmp_addflag=' -i_dynamic' ;;
10142 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10143 tmp_addflag=' -i_dynamic -nofor_main' ;;
10144 ifc* | ifort*) # Intel Fortran compiler
10145 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
10146 lf95*) # Lahey Fortran 8.1
10147 whole_archive_flag_spec=
10148 tmp_sharedflag='--shared' ;;
43e02a8a 10149 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
10150 tmp_sharedflag='-qmkshrobj'
10151 tmp_addflag= ;;
43e02a8a
RW
10152 nvcc*) # Cuda Compiler Driver 2.2
10153 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'
10154 compiler_needs_object=yes
10155 ;;
1cf3d07d
SE
10156 esac
10157 case `$CC -V 2>&1 | sed 5q` in
10158 *Sun\ C*) # Sun C 5.9
43e02a8a 10159 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
10160 compiler_needs_object=yes
10161 tmp_sharedflag='-G' ;;
10162 *Sun\ F*) # Sun Fortran 8.3
10163 tmp_sharedflag='-G' ;;
1cf3d07d
SE
10164 esac
10165 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10166
10167 if test "x$supports_anon_versioning" = xyes; then
10168 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10169 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10170 echo "local: *; };" >> $output_objdir/$libname.ver~
10171 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10172 fi
d58dead8
PG
10173
10174 case $cc_basename in
43e02a8a 10175 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
10176 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10177 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10178 hardcode_libdir_flag_spec=
10179 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10180 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10181 if test "x$supports_anon_versioning" = xyes; then
10182 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10183 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10184 echo "local: *; };" >> $output_objdir/$libname.ver~
10185 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10186 fi
10187 ;;
10188 esac
1cf3d07d
SE
10189 else
10190 ld_shlibs=no
10191 fi
10192 ;;
10193
10194 netbsd*)
10195 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10196 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10197 wlarc=
10198 else
10199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10200 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10201 fi
10202 ;;
10203
10204 solaris*)
10205 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10206 ld_shlibs=no
10207 cat <<_LT_EOF 1>&2
10208
10209*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10210*** create shared libraries on Solaris systems. Therefore, libtool
10211*** is disabling shared libraries support. We urge you to upgrade GNU
10212*** binutils to release 2.9.1 or newer. Another option is to modify
10213*** your PATH or compiler configuration so that the native linker is
10214*** used, and then restart.
10215
10216_LT_EOF
10217 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10219 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10220 else
10221 ld_shlibs=no
10222 fi
10223 ;;
10224
10225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10226 case `$LD -v 2>&1` in
10227 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10228 ld_shlibs=no
10229 cat <<_LT_EOF 1>&2
10230
10231*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10232*** reliably create shared libraries on SCO systems. Therefore, libtool
10233*** is disabling shared libraries support. We urge you to upgrade GNU
10234*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10235*** your PATH or compiler configuration so that the native linker is
10236*** used, and then restart.
10237
10238_LT_EOF
10239 ;;
10240 *)
10241 # For security reasons, it is highly recommended that you always
10242 # use absolute paths for naming shared libraries, and exclude the
10243 # DT_RUNPATH tag from executables and libraries. But doing so
10244 # requires that you compile everything twice, which is a pain.
10245 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10249 else
10250 ld_shlibs=no
10251 fi
10252 ;;
10253 esac
10254 ;;
10255
10256 sunos4*)
10257 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10258 wlarc=
10259 hardcode_direct=yes
10260 hardcode_shlibpath_var=no
10261 ;;
10262
10263 *)
10264 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10267 else
10268 ld_shlibs=no
10269 fi
10270 ;;
10271 esac
10272
10273 if test "$ld_shlibs" = no; then
10274 runpath_var=
10275 hardcode_libdir_flag_spec=
10276 export_dynamic_flag_spec=
10277 whole_archive_flag_spec=
10278 fi
10279 else
10280 # PORTME fill in a description of your system's linker (not GNU ld)
10281 case $host_os in
10282 aix3*)
10283 allow_undefined_flag=unsupported
10284 always_export_symbols=yes
10285 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'
10286 # Note: this linker hardcodes the directories in LIBPATH if there
10287 # are no directories specified by -L.
10288 hardcode_minus_L=yes
10289 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10290 # Neither direct hardcoding nor static linking is supported with a
10291 # broken collect2.
10292 hardcode_direct=unsupported
10293 fi
10294 ;;
10295
4f6bebc3 10296 aix[4-9]*)
1cf3d07d
SE
10297 if test "$host_cpu" = ia64; then
10298 # On IA64, the linker does run time linking by default, so we don't
10299 # have to do anything special.
10300 aix_use_runtimelinking=no
10301 exp_sym_flag='-Bexport'
10302 no_entry_flag=""
10303 else
10304 # If we're using GNU nm, then we don't want the "-C" option.
10305 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
10306 # Also, AIX nm treats weak defined symbols like other global
10307 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 10308 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 10309 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 10310 else
d3ca2257 10311 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
10312 fi
10313 aix_use_runtimelinking=no
10314
10315 # Test if we are trying to use run time linking or normal
10316 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10317 # need to do runtime linking.
4f6bebc3 10318 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
10319 for ld_flag in $LDFLAGS; do
10320 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10321 aix_use_runtimelinking=yes
10322 break
10323 fi
10324 done
10325 ;;
10326 esac
10327
10328 exp_sym_flag='-bexport'
10329 no_entry_flag='-bnoentry'
10330 fi
10331
10332 # When large executables or shared objects are built, AIX ld can
10333 # have problems creating the table of contents. If linking a library
10334 # or program results in "error TOC overflow" add -mminimal-toc to
10335 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10336 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10337
10338 archive_cmds=''
10339 hardcode_direct=yes
10340 hardcode_direct_absolute=yes
10341 hardcode_libdir_separator=':'
10342 link_all_deplibs=yes
10343 file_list_spec='${wl}-f,'
10344
10345 if test "$GCC" = yes; then
10346 case $host_os in aix4.[012]|aix4.[012].*)
10347 # We only want to do this on AIX 4.2 and lower, the check
10348 # below for broken collect2 doesn't work under 4.3+
10349 collect2name=`${CC} -print-prog-name=collect2`
10350 if test -f "$collect2name" &&
10351 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10352 then
10353 # We have reworked collect2
10354 :
10355 else
10356 # We have old collect2
10357 hardcode_direct=unsupported
10358 # It fails to find uninstalled libraries when the uninstalled
10359 # path is not listed in the libpath. Setting hardcode_minus_L
10360 # to unsupported forces relinking
10361 hardcode_minus_L=yes
10362 hardcode_libdir_flag_spec='-L$libdir'
10363 hardcode_libdir_separator=
10364 fi
10365 ;;
10366 esac
10367 shared_flag='-shared'
10368 if test "$aix_use_runtimelinking" = yes; then
10369 shared_flag="$shared_flag "'${wl}-G'
10370 fi
10371 else
10372 # not using gcc
10373 if test "$host_cpu" = ia64; then
10374 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10375 # chokes on -Wl,-G. The following line is correct:
10376 shared_flag='-G'
10377 else
10378 if test "$aix_use_runtimelinking" = yes; then
10379 shared_flag='${wl}-G'
10380 else
10381 shared_flag='${wl}-bM:SRE'
10382 fi
10383 fi
10384 fi
10385
d58dead8 10386 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
10387 # It seems that -bexpall does not export symbols beginning with
10388 # underscore (_), so it is better to generate a list of symbols to export.
10389 always_export_symbols=yes
10390 if test "$aix_use_runtimelinking" = yes; then
10391 # Warning - without using the other runtime loading flags (-brtl),
10392 # -berok will link without error, but may produce a broken library.
10393 allow_undefined_flag='-berok'
10394 # Determine the default libpath from the value encoded in an
10395 # empty executable.
10396 if test x$gcc_no_link = xyes; then
5213506e 10397 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10398fi
5213506e 10399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10400/* end confdefs.h. */
10401
10402int
10403main ()
10404{
10405
10406 ;
10407 return 0;
10408}
10409_ACEOF
5213506e 10410if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10411
10412lt_aix_libpath_sed='
10413 /Import File Strings/,/^$/ {
10414 /^0/ {
10415 s/^0 *\(.*\)$/\1/
10416 p
10417 }
10418 }'
10419aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10420# Check for a 64-bit object if we didn't find anything.
10421if test -z "$aix_libpath"; then
10422 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10423fi
1cf3d07d 10424fi
5213506e
RW
10425rm -f core conftest.err conftest.$ac_objext \
10426 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10427if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10428
10429 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 10430 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
10431 else
10432 if test "$host_cpu" = ia64; then
10433 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10434 allow_undefined_flag="-z nodefs"
10435 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"
10436 else
10437 # Determine the default libpath from the value encoded in an
10438 # empty executable.
10439 if test x$gcc_no_link = xyes; then
5213506e 10440 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10441fi
5213506e 10442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10443/* end confdefs.h. */
10444
10445int
10446main ()
10447{
10448
10449 ;
10450 return 0;
10451}
10452_ACEOF
5213506e 10453if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10454
10455lt_aix_libpath_sed='
10456 /Import File Strings/,/^$/ {
10457 /^0/ {
10458 s/^0 *\(.*\)$/\1/
10459 p
10460 }
10461 }'
10462aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10463# Check for a 64-bit object if we didn't find anything.
10464if test -z "$aix_libpath"; then
10465 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10466fi
1cf3d07d 10467fi
5213506e
RW
10468rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10470if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10471
10472 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10473 # Warning - without using the other run time loading flags,
10474 # -berok will link without error, but may produce a broken library.
10475 no_undefined_flag=' ${wl}-bernotok'
10476 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
10477 if test "$with_gnu_ld" = yes; then
10478 # We only use this code for GNU lds that support --whole-archive.
10479 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10480 else
10481 # Exported symbols can be pulled into shared objects from archives
10482 whole_archive_flag_spec='$convenience'
10483 fi
1cf3d07d
SE
10484 archive_cmds_need_lc=yes
10485 # This is similar to how AIX traditionally builds its shared libraries.
10486 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'
10487 fi
10488 fi
10489 ;;
10490
10491 amigaos*)
d58dead8
PG
10492 case $host_cpu in
10493 powerpc)
10494 # see comment about AmigaOS4 .so support
10495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10496 archive_expsym_cmds=''
10497 ;;
10498 m68k)
10499 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)'
10500 hardcode_libdir_flag_spec='-L$libdir'
10501 hardcode_minus_L=yes
10502 ;;
10503 esac
1cf3d07d
SE
10504 ;;
10505
10506 bsdi[45]*)
10507 export_dynamic_flag_spec=-rdynamic
10508 ;;
10509
d58dead8 10510 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10511 # When not using gcc, we currently assume that we are using
10512 # Microsoft Visual C++.
10513 # hardcode_libdir_flag_spec is actually meaningless, as there is
10514 # no search path for DLLs.
10515 hardcode_libdir_flag_spec=' '
10516 allow_undefined_flag=unsupported
10517 # Tell ltmain to make .lib files, not .a files.
10518 libext=lib
10519 # Tell ltmain to make .dll files, not .so files.
10520 shrext_cmds=".dll"
10521 # FIXME: Setting linknames here is a bad hack.
43e02a8a 10522 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
10523 # The linker will automatically build a .lib file if we build a DLL.
10524 old_archive_from_new_cmds='true'
10525 # FIXME: Should let the user specify the lib program.
10526 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10527 fix_srcfile_path='`cygpath -w "$srcfile"`'
10528 enable_shared_with_static_runtimes=yes
10529 ;;
10530
10531 darwin* | rhapsody*)
1cf3d07d 10532
d58dead8
PG
10533
10534 archive_cmds_need_lc=no
10535 hardcode_direct=no
10536 hardcode_automatic=yes
10537 hardcode_shlibpath_var=unsupported
43e02a8a
RW
10538 if test "$lt_cv_ld_force_load" = "yes"; then
10539 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\"`'
10540 else
10541 whole_archive_flag_spec=''
10542 fi
d58dead8
PG
10543 link_all_deplibs=yes
10544 allow_undefined_flag="$_lt_dar_allow_undefined"
10545 case $cc_basename in
10546 ifort*) _lt_dar_can_shared=yes ;;
10547 *) _lt_dar_can_shared=$GCC ;;
10548 esac
10549 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 10550 output_verbose_link_cmd=func_echo_all
d58dead8
PG
10551 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10552 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10553 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}"
10554 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}"
10555
10556 else
10557 ld_shlibs=no
10558 fi
10559
1cf3d07d
SE
10560 ;;
10561
10562 dgux*)
10563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10564 hardcode_libdir_flag_spec='-L$libdir'
10565 hardcode_shlibpath_var=no
10566 ;;
10567
1cf3d07d
SE
10568 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10569 # support. Future versions do this automatically, but an explicit c++rt0.o
10570 # does not break anything, and helps significantly (at the cost of a little
10571 # extra space).
10572 freebsd2.2*)
10573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10574 hardcode_libdir_flag_spec='-R$libdir'
10575 hardcode_direct=yes
10576 hardcode_shlibpath_var=no
10577 ;;
10578
10579 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10580 freebsd2.*)
1cf3d07d
SE
10581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10582 hardcode_direct=yes
10583 hardcode_minus_L=yes
10584 hardcode_shlibpath_var=no
10585 ;;
10586
10587 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10588 freebsd* | dragonfly*)
10589 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10590 hardcode_libdir_flag_spec='-R$libdir'
10591 hardcode_direct=yes
10592 hardcode_shlibpath_var=no
10593 ;;
10594
10595 hpux9*)
10596 if test "$GCC" = yes; then
10597 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'
10598 else
10599 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'
10600 fi
10601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10602 hardcode_libdir_separator=:
10603 hardcode_direct=yes
10604
10605 # hardcode_minus_L: Not really in the search PATH,
10606 # but as the default location of the library.
10607 hardcode_minus_L=yes
10608 export_dynamic_flag_spec='${wl}-E'
10609 ;;
10610
10611 hpux10*)
43e02a8a 10612 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
10613 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10614 else
10615 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10616 fi
10617 if test "$with_gnu_ld" = no; then
10618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10619 hardcode_libdir_flag_spec_ld='+b $libdir'
10620 hardcode_libdir_separator=:
10621 hardcode_direct=yes
10622 hardcode_direct_absolute=yes
10623 export_dynamic_flag_spec='${wl}-E'
10624 # hardcode_minus_L: Not really in the search PATH,
10625 # but as the default location of the library.
10626 hardcode_minus_L=yes
10627 fi
10628 ;;
10629
10630 hpux11*)
43e02a8a 10631 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
10632 case $host_cpu in
10633 hppa*64*)
10634 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10635 ;;
10636 ia64*)
d58dead8 10637 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
10638 ;;
10639 *)
10640 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10641 ;;
10642 esac
10643 else
10644 case $host_cpu in
10645 hppa*64*)
10646 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 ;;
10648 ia64*)
10649 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10650 ;;
10651 *)
43e02a8a
RW
10652
10653 # Older versions of the 11.00 compiler do not understand -b yet
10654 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10656$as_echo_n "checking if $CC understands -b... " >&6; }
10657if test "${lt_cv_prog_compiler__b+set}" = set; then :
10658 $as_echo_n "(cached) " >&6
10659else
10660 lt_cv_prog_compiler__b=no
10661 save_LDFLAGS="$LDFLAGS"
10662 LDFLAGS="$LDFLAGS -b"
10663 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10664 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10665 # The linker can only warn and ignore the option if not recognized
10666 # So say no if there are warnings
10667 if test -s conftest.err; then
10668 # Append any errors to the config.log.
10669 cat conftest.err 1>&5
10670 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10672 if diff conftest.exp conftest.er2 >/dev/null; then
10673 lt_cv_prog_compiler__b=yes
10674 fi
10675 else
10676 lt_cv_prog_compiler__b=yes
10677 fi
10678 fi
10679 $RM -r conftest*
10680 LDFLAGS="$save_LDFLAGS"
10681
10682fi
10683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10684$as_echo "$lt_cv_prog_compiler__b" >&6; }
10685
10686if test x"$lt_cv_prog_compiler__b" = xyes; then
10687 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10688else
10689 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10690fi
10691
1cf3d07d
SE
10692 ;;
10693 esac
10694 fi
10695 if test "$with_gnu_ld" = no; then
10696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10697 hardcode_libdir_separator=:
10698
10699 case $host_cpu in
10700 hppa*64*|ia64*)
10701 hardcode_direct=no
10702 hardcode_shlibpath_var=no
10703 ;;
10704 *)
10705 hardcode_direct=yes
10706 hardcode_direct_absolute=yes
10707 export_dynamic_flag_spec='${wl}-E'
10708
10709 # hardcode_minus_L: Not really in the search PATH,
10710 # but as the default location of the library.
10711 hardcode_minus_L=yes
10712 ;;
10713 esac
10714 fi
10715 ;;
10716
10717 irix5* | irix6* | nonstopux*)
10718 if test "$GCC" = yes; then
43e02a8a 10719 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
10720 # Try to use the -exported_symbol ld option, if it does not
10721 # work, assume that -exports_file does not work either and
10722 # implicitly export all symbols.
10723 save_LDFLAGS="$LDFLAGS"
10724 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10725 if test x$gcc_no_link = xyes; then
5213506e 10726 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10727fi
5213506e
RW
10728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729/* end confdefs.h. */
1cf3d07d
SE
10730int foo(void) {}
10731_ACEOF
5213506e 10732if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 10733 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 10734
1cf3d07d 10735fi
5213506e
RW
10736rm -f core conftest.err conftest.$ac_objext \
10737 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10738 LDFLAGS="$save_LDFLAGS"
10739 else
43e02a8a
RW
10740 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'
10741 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
10742 fi
10743 archive_cmds_need_lc='no'
10744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10745 hardcode_libdir_separator=:
10746 inherit_rpath=yes
10747 link_all_deplibs=yes
10748 ;;
10749
10750 netbsd*)
10751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10752 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10753 else
10754 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10755 fi
10756 hardcode_libdir_flag_spec='-R$libdir'
10757 hardcode_direct=yes
10758 hardcode_shlibpath_var=no
10759 ;;
10760
10761 newsos6)
10762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10763 hardcode_direct=yes
10764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10765 hardcode_libdir_separator=:
10766 hardcode_shlibpath_var=no
10767 ;;
10768
10769 *nto* | *qnx*)
10770 ;;
10771
10772 openbsd*)
d58dead8
PG
10773 if test -f /usr/libexec/ld.so; then
10774 hardcode_direct=yes
10775 hardcode_shlibpath_var=no
10776 hardcode_direct_absolute=yes
10777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 10778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 10779 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 10780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
d58dead8
PG
10781 export_dynamic_flag_spec='${wl}-E'
10782 else
10783 case $host_os in
10784 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10785 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10786 hardcode_libdir_flag_spec='-R$libdir'
10787 ;;
10788 *)
10789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10790 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10791 ;;
10792 esac
10793 fi
10794 else
10795 ld_shlibs=no
1cf3d07d
SE
10796 fi
10797 ;;
10798
10799 os2*)
10800 hardcode_libdir_flag_spec='-L$libdir'
10801 hardcode_minus_L=yes
10802 allow_undefined_flag=unsupported
43e02a8a 10803 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
10804 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10805 ;;
10806
10807 osf3*)
10808 if test "$GCC" = yes; then
10809 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10810 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
10811 else
10812 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10813 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
10814 fi
10815 archive_cmds_need_lc='no'
10816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10817 hardcode_libdir_separator=:
10818 ;;
10819
10820 osf4* | osf5*) # as osf3* with the addition of -msym flag
10821 if test "$GCC" = yes; then
10822 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10823 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
10824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10825 else
10826 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10827 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 10828 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 10829 $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
10830
10831 # Both c and cxx compiler support -rpath directly
10832 hardcode_libdir_flag_spec='-rpath $libdir'
10833 fi
10834 archive_cmds_need_lc='no'
10835 hardcode_libdir_separator=:
10836 ;;
10837
10838 solaris*)
10839 no_undefined_flag=' -z defs'
10840 if test "$GCC" = yes; then
10841 wlarc='${wl}'
10842 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10843 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10844 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10845 else
10846 case `$CC -V 2>&1` in
10847 *"Compilers 5.0"*)
10848 wlarc=''
10849 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10850 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10851 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10852 ;;
10853 *)
10854 wlarc='${wl}'
10855 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10856 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10857 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10858 ;;
10859 esac
10860 fi
10861 hardcode_libdir_flag_spec='-R$libdir'
10862 hardcode_shlibpath_var=no
10863 case $host_os in
10864 solaris2.[0-5] | solaris2.[0-5].*) ;;
10865 *)
10866 # The compiler driver will combine and reorder linker options,
10867 # but understands `-z linker_flag'. GCC discards it without `$wl',
10868 # but is careful enough not to reorder.
10869 # Supported since Solaris 2.6 (maybe 2.5.1?)
10870 if test "$GCC" = yes; then
10871 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10872 else
10873 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10874 fi
10875 ;;
10876 esac
10877 link_all_deplibs=yes
10878 ;;
10879
10880 sunos4*)
10881 if test "x$host_vendor" = xsequent; then
10882 # Use $CC to link under sequent, because it throws in some extra .o
10883 # files that make .init and .fini sections work.
10884 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10885 else
10886 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10887 fi
10888 hardcode_libdir_flag_spec='-L$libdir'
10889 hardcode_direct=yes
10890 hardcode_minus_L=yes
10891 hardcode_shlibpath_var=no
10892 ;;
10893
10894 sysv4)
10895 case $host_vendor in
10896 sni)
10897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10898 hardcode_direct=yes # is this really true???
10899 ;;
10900 siemens)
10901 ## LD is ld it makes a PLAMLIB
10902 ## CC just makes a GrossModule.
10903 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10904 reload_cmds='$CC -r -o $output$reload_objs'
10905 hardcode_direct=no
10906 ;;
10907 motorola)
10908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10909 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10910 ;;
10911 esac
10912 runpath_var='LD_RUN_PATH'
10913 hardcode_shlibpath_var=no
10914 ;;
10915
10916 sysv4.3*)
10917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10918 hardcode_shlibpath_var=no
10919 export_dynamic_flag_spec='-Bexport'
10920 ;;
10921
10922 sysv4*MP*)
10923 if test -d /usr/nec; then
10924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10925 hardcode_shlibpath_var=no
10926 runpath_var=LD_RUN_PATH
10927 hardcode_runpath_var=yes
10928 ld_shlibs=yes
10929 fi
10930 ;;
10931
10932 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10933 no_undefined_flag='${wl}-z,text'
10934 archive_cmds_need_lc=no
10935 hardcode_shlibpath_var=no
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 sysv5* | sco3.2v5* | sco5v6*)
10948 # Note: We can NOT use -z defs as we might desire, because we do not
10949 # link with -lc, and that would cause any symbols used from libc to
10950 # always be unresolved, which means just about no library would
10951 # ever link correctly. If we're not using GNU ld we use -z text
10952 # though, which does catch some bad symbols but isn't as heavy-handed
10953 # as -z defs.
10954 no_undefined_flag='${wl}-z,text'
10955 allow_undefined_flag='${wl}-z,nodefs'
10956 archive_cmds_need_lc=no
10957 hardcode_shlibpath_var=no
10958 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10959 hardcode_libdir_separator=':'
10960 link_all_deplibs=yes
10961 export_dynamic_flag_spec='${wl}-Bexport'
10962 runpath_var='LD_RUN_PATH'
10963
10964 if test "$GCC" = yes; then
10965 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10966 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10967 else
10968 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10969 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10970 fi
10971 ;;
10972
10973 uts4*)
10974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10975 hardcode_libdir_flag_spec='-L$libdir'
10976 hardcode_shlibpath_var=no
10977 ;;
10978
10979 *)
10980 ld_shlibs=no
10981 ;;
10982 esac
10983
10984 if test x$host_vendor = xsni; then
10985 case $host in
10986 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10987 export_dynamic_flag_spec='${wl}-Blargedynsym'
10988 ;;
10989 esac
10990 fi
10991 fi
10992
5213506e
RW
10993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10994$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
10995test "$ld_shlibs" = no && can_build_shared=no
10996
10997with_gnu_ld=$with_gnu_ld
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013#
11014# Do we need to explicitly link libc?
11015#
11016case "x$archive_cmds_need_lc" in
11017x|xyes)
11018 # Assume -lc should be added
11019 archive_cmds_need_lc=yes
11020
11021 if test "$enable_shared" = yes && test "$GCC" = yes; then
11022 case $archive_cmds in
11023 *'~'*)
11024 # FIXME: we may have to deal with multi-command sequences.
11025 ;;
11026 '$CC '*)
11027 # Test whether the compiler implicitly links with -lc since on some
11028 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11029 # to ld, don't add -lc before -lgcc.
5213506e
RW
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11031$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11032if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11033 $as_echo_n "(cached) " >&6
baafc534
RW
11034else
11035 $RM conftest*
11036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 11037
5213506e 11038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
11039 (eval $ac_compile) 2>&5
11040 ac_status=$?
5213506e
RW
11041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
11043 soname=conftest
11044 lib=conftest
11045 libobjs=conftest.$ac_objext
11046 deplibs=
11047 wl=$lt_prog_compiler_wl
11048 pic_flag=$lt_prog_compiler_pic
11049 compiler_flags=-v
11050 linker_flags=-v
11051 verstring=
11052 output_objdir=.
11053 libname=conftest
11054 lt_save_allow_undefined_flag=$allow_undefined_flag
11055 allow_undefined_flag=
5213506e 11056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
11057 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11058 ac_status=$?
5213506e
RW
11059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11060 test $ac_status = 0; }
baafc534
RW
11061 then
11062 lt_cv_archive_cmds_need_lc=no
11063 else
11064 lt_cv_archive_cmds_need_lc=yes
11065 fi
11066 allow_undefined_flag=$lt_save_allow_undefined_flag
11067 else
11068 cat conftest.err 1>&5
11069 fi
11070 $RM conftest*
11071
11072fi
5213506e
RW
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11074$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 11075 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
11076 ;;
11077 esac
11078 fi
11079 ;;
11080esac
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
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
5213506e
RW
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11239$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8
PG
11240
11241if test "$GCC" = yes; then
1cf3d07d
SE
11242 case $host_os in
11243 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11244 *) lt_awk_arg="/^libraries:/" ;;
11245 esac
43e02a8a
RW
11246 case $host_os in
11247 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11248 *) lt_sed_strip_eq="s,=/,/,g" ;;
11249 esac
11250 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11251 case $lt_search_path_spec in
11252 *\;*)
1cf3d07d
SE
11253 # if the path contains ";" then we assume it to be the separator
11254 # otherwise default to the standard path separator (i.e. ":") - it is
11255 # assumed that no part of a normal pathname contains ";" but that should
11256 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
11257 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11258 ;;
11259 *)
11260 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11261 ;;
11262 esac
1cf3d07d
SE
11263 # Ok, now we have the path, separated by spaces, we can step through it
11264 # and add multilib dir if necessary.
11265 lt_tmp_lt_search_path_spec=
11266 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11267 for lt_sys_path in $lt_search_path_spec; do
11268 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11269 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11270 else
11271 test -d "$lt_sys_path" && \
11272 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11273 fi
11274 done
43e02a8a 11275 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
11276BEGIN {RS=" "; FS="/|\n";} {
11277 lt_foo="";
11278 lt_count=0;
11279 for (lt_i = NF; lt_i > 0; lt_i--) {
11280 if ($lt_i != "" && $lt_i != ".") {
11281 if ($lt_i == "..") {
11282 lt_count++;
11283 } else {
11284 if (lt_count == 0) {
11285 lt_foo="/" $lt_i lt_foo;
11286 } else {
11287 lt_count--;
11288 }
11289 }
11290 }
11291 }
11292 if (lt_foo != "") { lt_freq[lt_foo]++; }
11293 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11294}'`
43e02a8a
RW
11295 # AWK program above erroneously prepends '/' to C:/dos/paths
11296 # for these hosts.
11297 case $host_os in
11298 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11299 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11300 esac
11301 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
11302else
11303 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11304fi
11305library_names_spec=
11306libname_spec='lib$name'
11307soname_spec=
11308shrext_cmds=".so"
11309postinstall_cmds=
11310postuninstall_cmds=
11311finish_cmds=
11312finish_eval=
11313shlibpath_var=
11314shlibpath_overrides_runpath=unknown
11315version_type=none
11316dynamic_linker="$host_os ld.so"
11317sys_lib_dlsearch_path_spec="/lib /usr/lib"
11318need_lib_prefix=unknown
11319hardcode_into_libs=no
11320
11321# when you set need_version to no, make sure it does not cause -set_version
11322# flags to be left without arguments
11323need_version=unknown
11324
11325case $host_os in
11326aix3*)
11327 version_type=linux
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11329 shlibpath_var=LIBPATH
11330
11331 # AIX 3 has no versioning support, so we append a major version to the name.
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 ;;
11334
4f6bebc3 11335aix[4-9]*)
1cf3d07d
SE
11336 version_type=linux
11337 need_lib_prefix=no
11338 need_version=no
11339 hardcode_into_libs=yes
11340 if test "$host_cpu" = ia64; then
11341 # AIX 5 supports IA64
11342 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11343 shlibpath_var=LD_LIBRARY_PATH
11344 else
11345 # With GCC up to 2.95.x, collect2 would create an import file
11346 # for dependence libraries. The import file would start with
11347 # the line `#! .'. This would cause the generated library to
11348 # depend on `.', always an invalid library. This was fixed in
11349 # development snapshots of GCC prior to 3.0.
11350 case $host_os in
11351 aix4 | aix4.[01] | aix4.[01].*)
11352 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11353 echo ' yes '
11354 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11355 :
11356 else
11357 can_build_shared=no
11358 fi
11359 ;;
11360 esac
11361 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11362 # soname into executable. Probably we can add versioning support to
11363 # collect2, so additional links can be useful in future.
11364 if test "$aix_use_runtimelinking" = yes; then
11365 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11366 # instead of lib<name>.a to let people know that these are not
11367 # typical AIX shared libraries.
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369 else
11370 # We preserve .a as extension for shared libraries through AIX4.2
11371 # and later when we are not doing run time linking.
11372 library_names_spec='${libname}${release}.a $libname.a'
11373 soname_spec='${libname}${release}${shared_ext}$major'
11374 fi
11375 shlibpath_var=LIBPATH
11376 fi
11377 ;;
11378
11379amigaos*)
d58dead8
PG
11380 case $host_cpu in
11381 powerpc)
11382 # Since July 2007 AmigaOS4 officially supports .so libraries.
11383 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11385 ;;
11386 m68k)
1cf3d07d
SE
11387 library_names_spec='$libname.ixlibrary $libname.a'
11388 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 11389 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
11390 ;;
11391 esac
1cf3d07d
SE
11392 ;;
11393
11394beos*)
11395 library_names_spec='${libname}${shared_ext}'
11396 dynamic_linker="$host_os ld.so"
11397 shlibpath_var=LIBRARY_PATH
11398 ;;
11399
11400bsdi[45]*)
11401 version_type=linux
11402 need_version=no
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404 soname_spec='${libname}${release}${shared_ext}$major'
11405 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11406 shlibpath_var=LD_LIBRARY_PATH
11407 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11408 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11409 # the default ld.so.conf also contains /usr/contrib/lib and
11410 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11411 # libtool to hard-code these into programs
11412 ;;
11413
d58dead8 11414cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11415 version_type=windows
11416 shrext_cmds=".dll"
11417 need_version=no
11418 need_lib_prefix=no
11419
d58dead8
PG
11420 case $GCC,$host_os in
11421 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
11422 library_names_spec='$libname.dll.a'
11423 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11424 postinstall_cmds='base_file=`basename \${file}`~
11425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11426 dldir=$destdir/`dirname \$dlpath`~
11427 test -d \$dldir || mkdir -p \$dldir~
11428 $install_prog $dir/$dlname \$dldir/$dlname~
11429 chmod a+x \$dldir/$dlname~
11430 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11431 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11432 fi'
11433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11434 dlpath=$dir/\$dldll~
11435 $RM \$dlpath'
11436 shlibpath_overrides_runpath=yes
11437
11438 case $host_os in
11439 cygwin*)
11440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11441 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
11442
11443 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 11444 ;;
d58dead8 11445 mingw* | cegcc*)
1cf3d07d
SE
11446 # MinGW DLLs use traditional 'lib' prefix
11447 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
11448 ;;
11449 pw32*)
11450 # pw32 DLLs use 'pw' prefix rather than 'lib'
11451 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11452 ;;
11453 esac
11454 ;;
11455
11456 *)
11457 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11458 ;;
11459 esac
11460 dynamic_linker='Win32 ld.exe'
11461 # FIXME: first we should search . and the directory the executable is in
11462 shlibpath_var=PATH
11463 ;;
11464
11465darwin* | rhapsody*)
11466 dynamic_linker="$host_os dyld"
11467 version_type=darwin
11468 need_lib_prefix=no
11469 need_version=no
11470 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11471 soname_spec='${libname}${release}${major}$shared_ext'
11472 shlibpath_overrides_runpath=yes
11473 shlibpath_var=DYLD_LIBRARY_PATH
11474 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11475
11476 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11478 ;;
11479
11480dgux*)
11481 version_type=linux
11482 need_lib_prefix=no
11483 need_version=no
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11487 ;;
11488
1cf3d07d
SE
11489freebsd* | dragonfly*)
11490 # DragonFly does not have aout. When/if they implement a new
11491 # versioning mechanism, adjust this.
11492 if test -x /usr/bin/objformat; then
11493 objformat=`/usr/bin/objformat`
11494 else
11495 case $host_os in
c6084f68 11496 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
11497 *) objformat=elf ;;
11498 esac
11499 fi
11500 version_type=freebsd-$objformat
11501 case $version_type in
11502 freebsd-elf*)
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11504 need_version=no
11505 need_lib_prefix=no
11506 ;;
11507 freebsd-*)
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11509 need_version=yes
11510 ;;
11511 esac
11512 shlibpath_var=LD_LIBRARY_PATH
11513 case $host_os in
c6084f68 11514 freebsd2.*)
1cf3d07d
SE
11515 shlibpath_overrides_runpath=yes
11516 ;;
11517 freebsd3.[01]* | freebsdelf3.[01]*)
11518 shlibpath_overrides_runpath=yes
11519 hardcode_into_libs=yes
11520 ;;
11521 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11522 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11523 shlibpath_overrides_runpath=no
11524 hardcode_into_libs=yes
11525 ;;
11526 *) # from 4.6 on, and DragonFly
11527 shlibpath_overrides_runpath=yes
11528 hardcode_into_libs=yes
11529 ;;
11530 esac
11531 ;;
11532
11533gnu*)
11534 version_type=linux
11535 need_lib_prefix=no
11536 need_version=no
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 shlibpath_var=LD_LIBRARY_PATH
11540 hardcode_into_libs=yes
11541 ;;
11542
43e02a8a
RW
11543haiku*)
11544 version_type=linux
11545 need_lib_prefix=no
11546 need_version=no
11547 dynamic_linker="$host_os runtime_loader"
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 shlibpath_var=LIBRARY_PATH
11551 shlibpath_overrides_runpath=yes
11552 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11553 hardcode_into_libs=yes
11554 ;;
11555
1cf3d07d
SE
11556hpux9* | hpux10* | hpux11*)
11557 # Give a soname corresponding to the major version so that dld.sl refuses to
11558 # link against other versions.
11559 version_type=sunos
11560 need_lib_prefix=no
11561 need_version=no
11562 case $host_cpu in
11563 ia64*)
11564 shrext_cmds='.so'
11565 hardcode_into_libs=yes
11566 dynamic_linker="$host_os dld.so"
11567 shlibpath_var=LD_LIBRARY_PATH
11568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 if test "X$HPUX_IA64_MODE" = X32; then
11572 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11573 else
11574 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11575 fi
11576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11577 ;;
11578 hppa*64*)
11579 shrext_cmds='.sl'
11580 hardcode_into_libs=yes
11581 dynamic_linker="$host_os dld.sl"
11582 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585 soname_spec='${libname}${release}${shared_ext}$major'
11586 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11588 ;;
11589 *)
11590 shrext_cmds='.sl'
11591 dynamic_linker="$host_os dld.sl"
11592 shlibpath_var=SHLIB_PATH
11593 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11596 ;;
11597 esac
43e02a8a 11598 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 11599 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
11600 # or fails outright, so override atomically:
11601 install_override_mode=555
1cf3d07d
SE
11602 ;;
11603
11604interix[3-9]*)
11605 version_type=linux
11606 need_lib_prefix=no
11607 need_version=no
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11609 soname_spec='${libname}${release}${shared_ext}$major'
11610 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11611 shlibpath_var=LD_LIBRARY_PATH
11612 shlibpath_overrides_runpath=no
11613 hardcode_into_libs=yes
11614 ;;
11615
11616irix5* | irix6* | nonstopux*)
11617 case $host_os in
11618 nonstopux*) version_type=nonstopux ;;
11619 *)
11620 if test "$lt_cv_prog_gnu_ld" = yes; then
11621 version_type=linux
11622 else
11623 version_type=irix
11624 fi ;;
11625 esac
11626 need_lib_prefix=no
11627 need_version=no
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11630 case $host_os in
11631 irix5* | nonstopux*)
11632 libsuff= shlibsuff=
11633 ;;
11634 *)
11635 case $LD in # libtool.m4 will add one of these switches to LD
11636 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11637 libsuff= shlibsuff= libmagic=32-bit;;
11638 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11639 libsuff=32 shlibsuff=N32 libmagic=N32;;
11640 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11641 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11642 *) libsuff= shlibsuff= libmagic=never-match;;
11643 esac
11644 ;;
11645 esac
11646 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11647 shlibpath_overrides_runpath=no
11648 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11649 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11650 hardcode_into_libs=yes
11651 ;;
11652
11653# No shared lib support for Linux oldld, aout, or coff.
11654linux*oldld* | linux*aout* | linux*coff*)
11655 dynamic_linker=no
11656 ;;
11657
11658# This must be Linux ELF.
7a9d3fe8 11659linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
11660 version_type=linux
11661 need_lib_prefix=no
11662 need_version=no
11663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11664 soname_spec='${libname}${release}${shared_ext}$major'
11665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11666 shlibpath_var=LD_LIBRARY_PATH
11667 shlibpath_overrides_runpath=no
baafc534 11668
1cf3d07d 11669 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
11670 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11671 $as_echo_n "(cached) " >&6
baafc534
RW
11672else
11673 lt_cv_shlibpath_overrides_runpath=no
11674 save_LDFLAGS=$LDFLAGS
11675 save_libdir=$libdir
11676 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11677 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11678 if test x$gcc_no_link = xyes; then
5213506e 11679 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11680fi
5213506e 11681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11682/* end confdefs.h. */
11683
11684int
11685main ()
11686{
11687
11688 ;
11689 return 0;
11690}
11691_ACEOF
5213506e
RW
11692if ac_fn_c_try_link "$LINENO"; then :
11693 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 11694 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 11695fi
1cf3d07d 11696fi
5213506e
RW
11697rm -f core conftest.err conftest.$ac_objext \
11698 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
11699 LDFLAGS=$save_LDFLAGS
11700 libdir=$save_libdir
11701
11702fi
11703
11704 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
11705
11706 # This implies no fast_install, which is unacceptable.
11707 # Some rework will be needed to allow for fast_install
11708 # before this can be enabled.
11709 hardcode_into_libs=yes
11710
11711 # Append ld.so.conf contents to the search path
11712 if test -f /etc/ld.so.conf; then
43e02a8a 11713 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
11714 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11715 fi
11716
11717 # We used to test for /lib/ld.so.1 and disable shared libraries on
11718 # powerpc, because MkLinux only supported shared libraries with the
11719 # GNU dynamic linker. Since this was broken with cross compilers,
11720 # most powerpc-linux boxes support dynamic linking these days and
11721 # people can always --disable-shared, the test was removed, and we
11722 # assume the GNU/Linux dynamic linker is in use.
11723 dynamic_linker='GNU/Linux ld.so'
11724 ;;
11725
11726netbsd*)
11727 version_type=sunos
11728 need_lib_prefix=no
11729 need_version=no
11730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11733 dynamic_linker='NetBSD (a.out) ld.so'
11734 else
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11736 soname_spec='${libname}${release}${shared_ext}$major'
11737 dynamic_linker='NetBSD ld.elf_so'
11738 fi
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes
11741 hardcode_into_libs=yes
11742 ;;
11743
11744newsos6)
11745 version_type=linux
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747 shlibpath_var=LD_LIBRARY_PATH
11748 shlibpath_overrides_runpath=yes
11749 ;;
11750
11751*nto* | *qnx*)
11752 version_type=qnx
11753 need_lib_prefix=no
11754 need_version=no
11755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11756 soname_spec='${libname}${release}${shared_ext}$major'
11757 shlibpath_var=LD_LIBRARY_PATH
11758 shlibpath_overrides_runpath=no
11759 hardcode_into_libs=yes
11760 dynamic_linker='ldqnx.so'
11761 ;;
11762
11763openbsd*)
11764 version_type=sunos
11765 sys_lib_dlsearch_path_spec="/usr/lib"
11766 need_lib_prefix=no
11767 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11768 case $host_os in
11769 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11770 *) need_version=no ;;
11771 esac
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11774 shlibpath_var=LD_LIBRARY_PATH
11775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11776 case $host_os in
11777 openbsd2.[89] | openbsd2.[89].*)
11778 shlibpath_overrides_runpath=no
11779 ;;
11780 *)
11781 shlibpath_overrides_runpath=yes
11782 ;;
11783 esac
11784 else
11785 shlibpath_overrides_runpath=yes
11786 fi
11787 ;;
11788
11789os2*)
11790 libname_spec='$name'
11791 shrext_cmds=".dll"
11792 need_lib_prefix=no
11793 library_names_spec='$libname${shared_ext} $libname.a'
11794 dynamic_linker='OS/2 ld.exe'
11795 shlibpath_var=LIBPATH
11796 ;;
11797
11798osf3* | osf4* | osf5*)
11799 version_type=osf
11800 need_lib_prefix=no
11801 need_version=no
11802 soname_spec='${libname}${release}${shared_ext}$major'
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 shlibpath_var=LD_LIBRARY_PATH
11805 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11806 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11807 ;;
11808
11809rdos*)
11810 dynamic_linker=no
11811 ;;
11812
11813solaris*)
11814 version_type=linux
11815 need_lib_prefix=no
11816 need_version=no
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818 soname_spec='${libname}${release}${shared_ext}$major'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath=yes
11821 hardcode_into_libs=yes
11822 # ldd complains unless libraries are executable
11823 postinstall_cmds='chmod +x $lib'
11824 ;;
11825
11826sunos4*)
11827 version_type=sunos
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=yes
11832 if test "$with_gnu_ld" = yes; then
11833 need_lib_prefix=no
11834 fi
11835 need_version=yes
11836 ;;
11837
11838sysv4 | sysv4.3*)
11839 version_type=linux
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841 soname_spec='${libname}${release}${shared_ext}$major'
11842 shlibpath_var=LD_LIBRARY_PATH
11843 case $host_vendor in
11844 sni)
11845 shlibpath_overrides_runpath=no
11846 need_lib_prefix=no
11847 runpath_var=LD_RUN_PATH
11848 ;;
11849 siemens)
11850 need_lib_prefix=no
11851 ;;
11852 motorola)
11853 need_lib_prefix=no
11854 need_version=no
11855 shlibpath_overrides_runpath=no
11856 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11857 ;;
11858 esac
11859 ;;
11860
11861sysv4*MP*)
11862 if test -d /usr/nec ;then
11863 version_type=linux
11864 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11865 soname_spec='$libname${shared_ext}.$major'
11866 shlibpath_var=LD_LIBRARY_PATH
11867 fi
11868 ;;
11869
11870sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11871 version_type=freebsd-elf
11872 need_lib_prefix=no
11873 need_version=no
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 shlibpath_overrides_runpath=yes
11878 hardcode_into_libs=yes
11879 if test "$with_gnu_ld" = yes; then
11880 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11881 else
11882 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11883 case $host_os in
11884 sco3.2v5*)
11885 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11886 ;;
11887 esac
11888 fi
11889 sys_lib_dlsearch_path_spec='/usr/lib'
11890 ;;
11891
11892tpf*)
11893 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11894 version_type=linux
11895 need_lib_prefix=no
11896 need_version=no
d58dead8 11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
11898 shlibpath_var=LD_LIBRARY_PATH
11899 shlibpath_overrides_runpath=no
11900 hardcode_into_libs=yes
11901 ;;
11902
11903uts4*)
11904 version_type=linux
11905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11906 soname_spec='${libname}${release}${shared_ext}$major'
11907 shlibpath_var=LD_LIBRARY_PATH
11908 ;;
11909
11910*)
11911 dynamic_linker=no
11912 ;;
11913esac
5213506e
RW
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11915$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
11916test "$dynamic_linker" = no && can_build_shared=no
11917
11918variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11919if test "$GCC" = yes; then
11920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11921fi
11922
d58dead8
PG
11923if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11924 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11925fi
11926if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11927 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11928fi
11929
1cf3d07d
SE
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
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
43e02a8a
RW
12010
12011
12012
12013
12014
1cf3d07d
SE
12015
12016
12017
12018
12019
12020
5213506e
RW
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12022$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
12023hardcode_action=
12024if test -n "$hardcode_libdir_flag_spec" ||
12025 test -n "$runpath_var" ||
12026 test "X$hardcode_automatic" = "Xyes" ; then
12027
12028 # We can hardcode non-existent directories.
12029 if test "$hardcode_direct" != no &&
12030 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12031 # have to relink, otherwise we might link with an installed library
12032 # when we should be linking with a yet-to-be-installed one
12033 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12034 test "$hardcode_minus_L" != no; then
12035 # Linking always hardcodes the temporary library directory.
12036 hardcode_action=relink
12037 else
12038 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12039 hardcode_action=immediate
12040 fi
12041else
12042 # We cannot hardcode anything, or else we can only hardcode existing
12043 # directories.
12044 hardcode_action=unsupported
12045fi
5213506e
RW
12046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12047$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
12048
12049if test "$hardcode_action" = relink ||
12050 test "$inherit_rpath" = yes; then
12051 # Fast installation is not supported
12052 enable_fast_install=no
12053elif test "$shlibpath_overrides_runpath" = yes ||
12054 test "$enable_shared" = no; then
12055 # Fast installation is not necessary
12056 enable_fast_install=needless
12057fi
12058
12059
12060
12061
12062
12063
12064 if test "x$enable_dlopen" != xyes; then
12065 enable_dlopen=unknown
12066 enable_dlopen_self=unknown
12067 enable_dlopen_self_static=unknown
12068else
12069 lt_cv_dlopen=no
12070 lt_cv_dlopen_libs=
12071
12072 case $host_os in
12073 beos*)
12074 lt_cv_dlopen="load_add_on"
12075 lt_cv_dlopen_libs=
12076 lt_cv_dlopen_self=yes
12077 ;;
12078
d58dead8 12079 mingw* | pw32* | cegcc*)
1cf3d07d
SE
12080 lt_cv_dlopen="LoadLibrary"
12081 lt_cv_dlopen_libs=
12082 ;;
12083
12084 cygwin*)
12085 lt_cv_dlopen="dlopen"
12086 lt_cv_dlopen_libs=
12087 ;;
12088
12089 darwin*)
12090 # if libdl is installed we need to link against it
5213506e
RW
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12092$as_echo_n "checking for dlopen in -ldl... " >&6; }
12093if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12094 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12095else
12096 ac_check_lib_save_LIBS=$LIBS
12097LIBS="-ldl $LIBS"
12098if test x$gcc_no_link = xyes; then
5213506e 12099 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12100fi
5213506e 12101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12102/* end confdefs.h. */
12103
5213506e
RW
12104/* Override any GCC internal prototype to avoid an error.
12105 Use char because int might match the return type of a GCC
12106 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12107#ifdef __cplusplus
12108extern "C"
12109#endif
1cf3d07d
SE
12110char dlopen ();
12111int
12112main ()
12113{
5213506e 12114return dlopen ();
1cf3d07d
SE
12115 ;
12116 return 0;
12117}
12118_ACEOF
5213506e 12119if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12120 ac_cv_lib_dl_dlopen=yes
12121else
5213506e 12122 ac_cv_lib_dl_dlopen=no
1cf3d07d 12123fi
5213506e
RW
12124rm -f core conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12126LIBS=$ac_check_lib_save_LIBS
12127fi
5213506e
RW
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12129$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12130if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
12131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12132else
12133
12134 lt_cv_dlopen="dyld"
12135 lt_cv_dlopen_libs=
12136 lt_cv_dlopen_self=yes
12137
12138fi
12139
12140 ;;
12141
12142 *)
5213506e
RW
12143 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12144if test "x$ac_cv_func_shl_load" = x""yes; then :
1cf3d07d
SE
12145 lt_cv_dlopen="shl_load"
12146else
5213506e
RW
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12148$as_echo_n "checking for shl_load in -ldld... " >&6; }
12149if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12151else
12152 ac_check_lib_save_LIBS=$LIBS
12153LIBS="-ldld $LIBS"
12154if test x$gcc_no_link = xyes; then
5213506e 12155 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12156fi
5213506e 12157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12158/* end confdefs.h. */
12159
5213506e
RW
12160/* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12163#ifdef __cplusplus
12164extern "C"
12165#endif
1cf3d07d
SE
12166char shl_load ();
12167int
12168main ()
12169{
5213506e 12170return shl_load ();
1cf3d07d
SE
12171 ;
12172 return 0;
12173}
12174_ACEOF
5213506e 12175if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12176 ac_cv_lib_dld_shl_load=yes
12177else
5213506e 12178 ac_cv_lib_dld_shl_load=no
1cf3d07d 12179fi
5213506e
RW
12180rm -f core conftest.err conftest.$ac_objext \
12181 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12182LIBS=$ac_check_lib_save_LIBS
12183fi
5213506e
RW
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12185$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12186if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
d58dead8 12187 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 12188else
5213506e
RW
12189 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12190if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
12191 lt_cv_dlopen="dlopen"
12192else
5213506e
RW
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12194$as_echo_n "checking for dlopen in -ldl... " >&6; }
12195if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12197else
12198 ac_check_lib_save_LIBS=$LIBS
12199LIBS="-ldl $LIBS"
12200if test x$gcc_no_link = xyes; then
5213506e 12201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12202fi
5213506e 12203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12204/* end confdefs.h. */
12205
5213506e
RW
12206/* Override any GCC internal prototype to avoid an error.
12207 Use char because int might match the return type of a GCC
12208 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12209#ifdef __cplusplus
12210extern "C"
12211#endif
1cf3d07d
SE
12212char dlopen ();
12213int
12214main ()
12215{
5213506e 12216return dlopen ();
1cf3d07d
SE
12217 ;
12218 return 0;
12219}
12220_ACEOF
5213506e 12221if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12222 ac_cv_lib_dl_dlopen=yes
12223else
5213506e 12224 ac_cv_lib_dl_dlopen=no
1cf3d07d 12225fi
5213506e
RW
12226rm -f core conftest.err conftest.$ac_objext \
12227 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12228LIBS=$ac_check_lib_save_LIBS
12229fi
5213506e
RW
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12231$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12232if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
12233 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12234else
5213506e
RW
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12236$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12237if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12238 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12239else
12240 ac_check_lib_save_LIBS=$LIBS
12241LIBS="-lsvld $LIBS"
12242if test x$gcc_no_link = xyes; then
5213506e 12243 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12244fi
5213506e 12245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12246/* end confdefs.h. */
12247
5213506e
RW
12248/* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12251#ifdef __cplusplus
12252extern "C"
12253#endif
1cf3d07d
SE
12254char dlopen ();
12255int
12256main ()
12257{
5213506e 12258return dlopen ();
1cf3d07d
SE
12259 ;
12260 return 0;
12261}
12262_ACEOF
5213506e 12263if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12264 ac_cv_lib_svld_dlopen=yes
12265else
5213506e 12266 ac_cv_lib_svld_dlopen=no
1cf3d07d 12267fi
5213506e
RW
12268rm -f core conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12270LIBS=$ac_check_lib_save_LIBS
12271fi
5213506e
RW
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12273$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12274if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d
SE
12275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12276else
5213506e
RW
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12278$as_echo_n "checking for dld_link in -ldld... " >&6; }
12279if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12280 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12281else
12282 ac_check_lib_save_LIBS=$LIBS
12283LIBS="-ldld $LIBS"
12284if test x$gcc_no_link = xyes; then
5213506e 12285 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12286fi
5213506e 12287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12288/* end confdefs.h. */
12289
5213506e
RW
12290/* Override any GCC internal prototype to avoid an error.
12291 Use char because int might match the return type of a GCC
12292 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12293#ifdef __cplusplus
12294extern "C"
12295#endif
1cf3d07d
SE
12296char dld_link ();
12297int
12298main ()
12299{
5213506e 12300return dld_link ();
1cf3d07d
SE
12301 ;
12302 return 0;
12303}
12304_ACEOF
5213506e 12305if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12306 ac_cv_lib_dld_dld_link=yes
12307else
5213506e 12308 ac_cv_lib_dld_dld_link=no
1cf3d07d 12309fi
5213506e
RW
12310rm -f core conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12312LIBS=$ac_check_lib_save_LIBS
12313fi
5213506e
RW
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12315$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12316if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
d58dead8 12317 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
12318fi
12319
12320
12321fi
12322
12323
12324fi
12325
12326
12327fi
12328
12329
12330fi
12331
12332
12333fi
12334
12335 ;;
12336 esac
12337
12338 if test "x$lt_cv_dlopen" != xno; then
12339 enable_dlopen=yes
12340 else
12341 enable_dlopen=no
12342 fi
12343
12344 case $lt_cv_dlopen in
12345 dlopen)
12346 save_CPPFLAGS="$CPPFLAGS"
12347 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12348
12349 save_LDFLAGS="$LDFLAGS"
12350 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12351
12352 save_LIBS="$LIBS"
12353 LIBS="$lt_cv_dlopen_libs $LIBS"
12354
5213506e
RW
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12356$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12357if test "${lt_cv_dlopen_self+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12359else
12360 if test "$cross_compiling" = yes; then :
12361 lt_cv_dlopen_self=cross
12362else
12363 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12364 lt_status=$lt_dlunknown
12365 cat > conftest.$ac_ext <<_LT_EOF
4879fba9 12366#line 12366 "configure"
1cf3d07d
SE
12367#include "confdefs.h"
12368
12369#if HAVE_DLFCN_H
12370#include <dlfcn.h>
12371#endif
12372
12373#include <stdio.h>
12374
12375#ifdef RTLD_GLOBAL
12376# define LT_DLGLOBAL RTLD_GLOBAL
12377#else
12378# ifdef DL_GLOBAL
12379# define LT_DLGLOBAL DL_GLOBAL
12380# else
12381# define LT_DLGLOBAL 0
12382# endif
12383#endif
12384
12385/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12386 find out it does not work in some platform. */
12387#ifndef LT_DLLAZY_OR_NOW
12388# ifdef RTLD_LAZY
12389# define LT_DLLAZY_OR_NOW RTLD_LAZY
12390# else
12391# ifdef DL_LAZY
12392# define LT_DLLAZY_OR_NOW DL_LAZY
12393# else
12394# ifdef RTLD_NOW
12395# define LT_DLLAZY_OR_NOW RTLD_NOW
12396# else
12397# ifdef DL_NOW
12398# define LT_DLLAZY_OR_NOW DL_NOW
12399# else
12400# define LT_DLLAZY_OR_NOW 0
12401# endif
12402# endif
12403# endif
12404# endif
12405#endif
12406
43e02a8a
RW
12407/* When -fvisbility=hidden is used, assume the code has been annotated
12408 correspondingly for the symbols needed. */
12409#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12410void fnord () __attribute__((visibility("default")));
12411#endif
12412
12413void fnord () { int i=42; }
1cf3d07d
SE
12414int main ()
12415{
12416 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12417 int status = $lt_dlunknown;
12418
12419 if (self)
12420 {
12421 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12422 else
12423 {
12424 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12425 else puts (dlerror ());
12426 }
1cf3d07d
SE
12427 /* dlclose (self); */
12428 }
12429 else
12430 puts (dlerror ());
12431
d58dead8 12432 return status;
1cf3d07d
SE
12433}
12434_LT_EOF
5213506e 12435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12436 (eval $ac_link) 2>&5
12437 ac_status=$?
5213506e
RW
12438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12439 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12440 (./conftest; exit; ) >&5 2>/dev/null
12441 lt_status=$?
12442 case x$lt_status in
12443 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12444 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12445 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12446 esac
12447 else :
12448 # compilation failed
12449 lt_cv_dlopen_self=no
12450 fi
12451fi
12452rm -fr conftest*
12453
12454
12455fi
5213506e
RW
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12457$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
12458
12459 if test "x$lt_cv_dlopen_self" = xyes; then
12460 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12462$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12463if test "${lt_cv_dlopen_self_static+set}" = set; then :
12464 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12465else
12466 if test "$cross_compiling" = yes; then :
12467 lt_cv_dlopen_self_static=cross
12468else
12469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12470 lt_status=$lt_dlunknown
12471 cat > conftest.$ac_ext <<_LT_EOF
4879fba9 12472#line 12472 "configure"
1cf3d07d
SE
12473#include "confdefs.h"
12474
12475#if HAVE_DLFCN_H
12476#include <dlfcn.h>
12477#endif
12478
12479#include <stdio.h>
12480
12481#ifdef RTLD_GLOBAL
12482# define LT_DLGLOBAL RTLD_GLOBAL
12483#else
12484# ifdef DL_GLOBAL
12485# define LT_DLGLOBAL DL_GLOBAL
12486# else
12487# define LT_DLGLOBAL 0
12488# endif
12489#endif
12490
12491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12492 find out it does not work in some platform. */
12493#ifndef LT_DLLAZY_OR_NOW
12494# ifdef RTLD_LAZY
12495# define LT_DLLAZY_OR_NOW RTLD_LAZY
12496# else
12497# ifdef DL_LAZY
12498# define LT_DLLAZY_OR_NOW DL_LAZY
12499# else
12500# ifdef RTLD_NOW
12501# define LT_DLLAZY_OR_NOW RTLD_NOW
12502# else
12503# ifdef DL_NOW
12504# define LT_DLLAZY_OR_NOW DL_NOW
12505# else
12506# define LT_DLLAZY_OR_NOW 0
12507# endif
12508# endif
12509# endif
12510# endif
12511#endif
12512
43e02a8a
RW
12513/* When -fvisbility=hidden is used, assume the code has been annotated
12514 correspondingly for the symbols needed. */
12515#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12516void fnord () __attribute__((visibility("default")));
12517#endif
12518
12519void fnord () { int i=42; }
1cf3d07d
SE
12520int main ()
12521{
12522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12523 int status = $lt_dlunknown;
12524
12525 if (self)
12526 {
12527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12528 else
12529 {
12530 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12531 else puts (dlerror ());
12532 }
1cf3d07d
SE
12533 /* dlclose (self); */
12534 }
12535 else
12536 puts (dlerror ());
12537
d58dead8 12538 return status;
1cf3d07d
SE
12539}
12540_LT_EOF
5213506e 12541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12542 (eval $ac_link) 2>&5
12543 ac_status=$?
5213506e
RW
12544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12545 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12546 (./conftest; exit; ) >&5 2>/dev/null
12547 lt_status=$?
12548 case x$lt_status in
12549 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12550 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12551 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12552 esac
12553 else :
12554 # compilation failed
12555 lt_cv_dlopen_self_static=no
12556 fi
12557fi
12558rm -fr conftest*
12559
12560
12561fi
5213506e
RW
12562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12563$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
12564 fi
12565
12566 CPPFLAGS="$save_CPPFLAGS"
12567 LDFLAGS="$save_LDFLAGS"
12568 LIBS="$save_LIBS"
12569 ;;
12570 esac
12571
12572 case $lt_cv_dlopen_self in
12573 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12574 *) enable_dlopen_self=unknown ;;
12575 esac
12576
12577 case $lt_cv_dlopen_self_static in
12578 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12579 *) enable_dlopen_self_static=unknown ;;
12580 esac
12581fi
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599striplib=
12600old_striplib=
5213506e
RW
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12602$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
12603if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12604 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12605 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12607$as_echo "yes" >&6; }
1cf3d07d
SE
12608else
12609# FIXME - insert some real tests, host_os isn't really good enough
12610 case $host_os in
12611 darwin*)
12612 if test -n "$STRIP" ; then
12613 striplib="$STRIP -x"
12614 old_striplib="$STRIP -S"
5213506e
RW
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12616$as_echo "yes" >&6; }
1cf3d07d 12617 else
5213506e
RW
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619$as_echo "no" >&6; }
1cf3d07d
SE
12620 fi
12621 ;;
12622 *)
5213506e
RW
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624$as_echo "no" >&6; }
1cf3d07d
SE
12625 ;;
12626 esac
12627fi
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
43e02a8a
RW
12640 # Report which library types will actually be built
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12642$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12644$as_echo "$can_build_shared" >&6; }
1cf3d07d 12645
43e02a8a
RW
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12647$as_echo_n "checking whether to build shared libraries... " >&6; }
12648 test "$can_build_shared" = "no" && enable_shared=no
1cf3d07d 12649
43e02a8a
RW
12650 # On AIX, shared libraries and static libraries use the same namespace, and
12651 # are all built from PIC.
12652 case $host_os in
12653 aix3*)
12654 test "$enable_shared" = yes && enable_static=no
12655 if test -n "$RANLIB"; then
12656 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12657 postinstall_cmds='$RANLIB $lib'
12658 fi
12659 ;;
1cf3d07d 12660
43e02a8a
RW
12661 aix[4-9]*)
12662 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12663 test "$enable_shared" = yes && enable_static=no
12664 fi
12665 ;;
12666 esac
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12668$as_echo "$enable_shared" >&6; }
1cf3d07d 12669
43e02a8a
RW
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12671$as_echo_n "checking whether to build static libraries... " >&6; }
12672 # Make sure either enable_shared or enable_static is yes.
12673 test "$enable_shared" = yes || enable_static=yes
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12675$as_echo "$enable_static" >&6; }
1cf3d07d 12676
1cf3d07d 12677
1cf3d07d 12678
1cf3d07d
SE
12679
12680fi
1cf3d07d
SE
12681ac_ext=c
12682ac_cpp='$CPP $CPPFLAGS'
12683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12685ac_compiler_gnu=$ac_cv_c_compiler_gnu
12686
43e02a8a
RW
12687CC="$lt_save_CC"
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701 ac_config_commands="$ac_config_commands libtool"
12702
12703
12704
12705
12706# Only expand once:
12707
12708
12709
12710
7de6ba7a
DK
12711
12712case $host in
12713 *-cygwin* | *-mingw*)
12714 # 'host' will be top-level target in the case of a target lib,
12715 # we must compare to with_cross_host to decide if this is a native
12716 # or cross-compiler and select where to install dlls appropriately.
12717 if test -n "$with_cross_host" &&
12718 test x"$with_cross_host" != x"no"; then
12719 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12720 else
12721 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12722 fi
12723 ;;
12724 *)
12725 lt_host_flags=
12726 ;;
12727esac
12728
12729
12730
12731
12732
43e02a8a 12733#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
1cf3d07d 12734
43e02a8a
RW
12735# We need gfortran to compile parts of the library
12736#AC_PROG_FC(gfortran)
12737FC="$GFORTRAN"
5213506e
RW
12738ac_ext=${ac_fc_srcext-f}
12739ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12740ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
12741ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12742if test -n "$ac_tool_prefix"; then
43e02a8a 12743 for ac_prog in gfortran
1cf3d07d
SE
12744 do
12745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12746set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
12747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12748$as_echo_n "checking for $ac_word... " >&6; }
12749if test "${ac_cv_prog_FC+set}" = set; then :
12750 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12751else
12752 if test -n "$FC"; then
12753 ac_cv_prog_FC="$FC" # Let the user override the test.
12754else
12755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12756for as_dir in $PATH
12757do
12758 IFS=$as_save_IFS
12759 test -z "$as_dir" && as_dir=.
5213506e
RW
12760 for ac_exec_ext in '' $ac_executable_extensions; do
12761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 12762 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5213506e 12763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
12764 break 2
12765 fi
12766done
5213506e
RW
12767 done
12768IFS=$as_save_IFS
1cf3d07d
SE
12769
12770fi
12771fi
12772FC=$ac_cv_prog_FC
12773if test -n "$FC"; then
5213506e
RW
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12775$as_echo "$FC" >&6; }
1cf3d07d 12776else
5213506e
RW
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778$as_echo "no" >&6; }
1cf3d07d
SE
12779fi
12780
5213506e 12781
1cf3d07d
SE
12782 test -n "$FC" && break
12783 done
12784fi
12785if test -z "$FC"; then
12786 ac_ct_FC=$FC
43e02a8a 12787 for ac_prog in gfortran
1cf3d07d
SE
12788do
12789 # Extract the first word of "$ac_prog", so it can be a program name with args.
12790set dummy $ac_prog; ac_word=$2
5213506e
RW
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792$as_echo_n "checking for $ac_word... " >&6; }
12793if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12794 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12795else
12796 if test -n "$ac_ct_FC"; then
12797 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12798else
12799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800for as_dir in $PATH
12801do
12802 IFS=$as_save_IFS
12803 test -z "$as_dir" && as_dir=.
5213506e
RW
12804 for ac_exec_ext in '' $ac_executable_extensions; do
12805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 12806 ac_cv_prog_ac_ct_FC="$ac_prog"
5213506e 12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
12808 break 2
12809 fi
12810done
5213506e
RW
12811 done
12812IFS=$as_save_IFS
1cf3d07d
SE
12813
12814fi
12815fi
12816ac_ct_FC=$ac_cv_prog_ac_ct_FC
12817if test -n "$ac_ct_FC"; then
5213506e
RW
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12819$as_echo "$ac_ct_FC" >&6; }
1cf3d07d 12820else
5213506e
RW
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822$as_echo "no" >&6; }
1cf3d07d
SE
12823fi
12824
5213506e 12825
1cf3d07d 12826 test -n "$ac_ct_FC" && break
38d24731
RW
12827done
12828
5213506e
RW
12829 if test "x$ac_ct_FC" = x; then
12830 FC=""
12831 else
12832 case $cross_compiling:$ac_tool_warned in
12833yes:)
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12836ac_tool_warned=yes ;;
12837esac
12838 FC=$ac_ct_FC
12839 fi
1cf3d07d
SE
12840fi
12841
12842
12843# Provide some information about the compiler.
5213506e
RW
12844$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12845set X $ac_compile
12846ac_compiler=$2
12847for ac_option in --version -v -V -qversion; do
12848 { { ac_try="$ac_compiler $ac_option >&5"
12849case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12852esac
12853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12854$as_echo "$ac_try_echo"; } >&5
12855 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 12856 ac_status=$?
5213506e
RW
12857 if test -s conftest.err; then
12858 sed '10a\
12859... rest of stderr output deleted ...
12860 10q' conftest.err >conftest.er1
12861 cat conftest.er1 >&5
12862 rm -f conftest.er1 conftest.err
12863 fi
12864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12865 test $ac_status = 0; }
12866done
1cf3d07d
SE
12867rm -f a.out
12868
12869# If we don't use `.F' as extension, the preprocessor is not run on the
12870# input file. (Note that this only needs to work for GNU compilers.)
12871ac_save_ext=$ac_ext
12872ac_ext=F
5213506e
RW
12873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12874$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12875if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
1cf3d07d 12877else
5213506e 12878 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
12879 program main
12880#ifndef __GNUC__
12881 choke me
12882#endif
12883
12884 end
12885_ACEOF
5213506e 12886if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
12887 ac_compiler_gnu=yes
12888else
5213506e 12889 ac_compiler_gnu=no
1cf3d07d 12890fi
5213506e 12891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
12892ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12893
12894fi
5213506e
RW
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12896$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
1cf3d07d 12897ac_ext=$ac_save_ext
5213506e
RW
12898ac_test_FCFLAGS=${FCFLAGS+set}
12899ac_save_FCFLAGS=$FCFLAGS
1cf3d07d 12900FCFLAGS=
5213506e
RW
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12902$as_echo_n "checking whether $FC accepts -g... " >&6; }
12903if test "${ac_cv_prog_fc_g+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12905else
12906 FCFLAGS=-g
5213506e 12907cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
12908 program main
12909
12910 end
12911_ACEOF
5213506e 12912if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
12913 ac_cv_prog_fc_g=yes
12914else
5213506e 12915 ac_cv_prog_fc_g=no
1cf3d07d 12916fi
5213506e 12917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
12918
12919fi
5213506e
RW
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12921$as_echo "$ac_cv_prog_fc_g" >&6; }
12922if test "$ac_test_FCFLAGS" = set; then
12923 FCFLAGS=$ac_save_FCFLAGS
1cf3d07d
SE
12924elif test $ac_cv_prog_fc_g = yes; then
12925 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12926 FCFLAGS="-g -O2"
12927 else
12928 FCFLAGS="-g"
12929 fi
12930else
12931 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12932 FCFLAGS="-O2"
12933 else
12934 FCFLAGS=
12935 fi
12936fi
12937
12938ac_ext=c
12939ac_cpp='$CPP $CPPFLAGS'
12940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12942ac_compiler_gnu=$ac_cv_c_compiler_gnu
12943
5213506e
RW
12944 ac_ext=${ac_fc_srcext-f}
12945ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12946ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
12947ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12948
12949
43e02a8a
RW
12950if test -z "$FC" || test "X$FC" = "Xno"; then
12951 _lt_disable_FC=yes
12952fi
12953
1cf3d07d
SE
12954archive_cmds_need_lc_FC=no
12955allow_undefined_flag_FC=
12956always_export_symbols_FC=no
12957archive_expsym_cmds_FC=
12958export_dynamic_flag_spec_FC=
12959hardcode_direct_FC=no
12960hardcode_direct_absolute_FC=no
12961hardcode_libdir_flag_spec_FC=
12962hardcode_libdir_flag_spec_ld_FC=
12963hardcode_libdir_separator_FC=
12964hardcode_minus_L_FC=no
12965hardcode_automatic_FC=no
12966inherit_rpath_FC=no
12967module_cmds_FC=
12968module_expsym_cmds_FC=
12969link_all_deplibs_FC=unknown
12970old_archive_cmds_FC=$old_archive_cmds
43e02a8a
RW
12971reload_flag_FC=$reload_flag
12972reload_cmds_FC=$reload_cmds
1cf3d07d
SE
12973no_undefined_flag_FC=
12974whole_archive_flag_spec_FC=
12975enable_shared_with_static_runtimes_FC=no
12976
12977# Source file extension for fc test sources.
12978ac_ext=${ac_fc_srcext-f}
12979
12980# Object file extension for compiled fc test sources.
12981objext=o
12982objext_FC=$objext
12983
12984# No sense in running all these tests if we already determined that
12985# the FC compiler isn't working. Some variables (like enable_shared)
12986# are currently assumed to apply to all compilers on this platform,
12987# and will be corrupted by setting them based on a non-working compiler.
12988if test "$_lt_disable_FC" != yes; then
12989 # Code to be used in simple compile tests
12990 lt_simple_compile_test_code="\
12991 subroutine t
12992 return
12993 end
12994"
12995
12996 # Code to be used in simple link tests
12997 lt_simple_link_test_code="\
12998 program t
12999 end
13000"
13001
13002 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13003
13004
13005
13006
13007
13008
13009# If no C compiler was specified, use CC.
13010LTCC=${LTCC-"$CC"}
13011
13012# If no C compiler flags were specified, use CFLAGS.
13013LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13014
13015# Allow CC to be a program name with arguments.
13016compiler=$CC
13017
13018
13019 # save warnings/boilerplate of simple test code
13020 ac_outfile=conftest.$ac_objext
13021echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13022eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13023_lt_compiler_boilerplate=`cat conftest.err`
13024$RM conftest*
13025
13026 ac_outfile=conftest.$ac_objext
13027echo "$lt_simple_link_test_code" >conftest.$ac_ext
13028eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13029_lt_linker_boilerplate=`cat conftest.err`
d58dead8 13030$RM -r conftest*
1cf3d07d
SE
13031
13032
13033 # Allow CC to be a program name with arguments.
13034 lt_save_CC="$CC"
d58dead8 13035 lt_save_GCC=$GCC
1cf3d07d
SE
13036 CC=${FC-"f95"}
13037 compiler=$CC
d58dead8
PG
13038 GCC=$ac_cv_fc_compiler_gnu
13039
1cf3d07d
SE
13040 compiler_FC=$CC
13041 for cc_temp in $compiler""; do
13042 case $cc_temp in
13043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13045 \-*) ;;
13046 *) break;;
13047 esac
13048done
43e02a8a 13049cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
13050
13051
13052 if test -n "$compiler"; then
5213506e
RW
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13054$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13056$as_echo "$can_build_shared" >&6; }
1cf3d07d 13057
5213506e
RW
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13059$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
13060 test "$can_build_shared" = "no" && enable_shared=no
13061
13062 # On AIX, shared libraries and static libraries use the same namespace, and
13063 # are all built from PIC.
13064 case $host_os in
13065 aix3*)
13066 test "$enable_shared" = yes && enable_static=no
13067 if test -n "$RANLIB"; then
13068 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13069 postinstall_cmds='$RANLIB $lib'
13070 fi
13071 ;;
4f6bebc3 13072 aix[4-9]*)
1cf3d07d
SE
13073 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13074 test "$enable_shared" = yes && enable_static=no
13075 fi
13076 ;;
13077 esac
5213506e
RW
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13079$as_echo "$enable_shared" >&6; }
1cf3d07d 13080
5213506e
RW
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13082$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
13083 # Make sure either enable_shared or enable_static is yes.
13084 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13086$as_echo "$enable_static" >&6; }
1cf3d07d
SE
13087
13088 GCC_FC="$ac_cv_fc_compiler_gnu"
13089 LD_FC="$LD"
13090
13091 ## CAVEAT EMPTOR:
13092 ## There is no encapsulation within the following macros, do not change
13093 ## the running order or otherwise move them around unless you know exactly
13094 ## what you are doing...
13095 # Dependencies to place before and after the object being linked:
13096predep_objects_FC=
13097postdep_objects_FC=
13098predeps_FC=
13099postdeps_FC=
13100compiler_lib_search_path_FC=
13101
13102cat > conftest.$ac_ext <<_LT_EOF
13103 subroutine foo
13104 implicit none
13105 integer a
13106 a=0
13107 return
13108 end
13109_LT_EOF
13110
5213506e 13111if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
13112 (eval $ac_compile) 2>&5
13113 ac_status=$?
5213506e
RW
13114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13115 test $ac_status = 0; }; then
1cf3d07d
SE
13116 # Parse the compiler output and extract the necessary
13117 # objects, libraries and library flags.
13118
13119 # Sentinel used to keep track of whether or not we are before
13120 # the conftest object file.
13121 pre_test_object_deps_done=no
13122
d58dead8 13123 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
13124 case $p in
13125
13126 -L* | -R* | -l*)
13127 # Some compilers place space between "-{L,R}" and the path.
13128 # Remove the space.
13129 if test $p = "-L" ||
13130 test $p = "-R"; then
13131 prev=$p
13132 continue
13133 else
13134 prev=
13135 fi
13136
13137 if test "$pre_test_object_deps_done" = no; then
13138 case $p in
13139 -L* | -R*)
13140 # Internal compiler library paths should come after those
13141 # provided the user. The postdeps already come after the
13142 # user supplied libs so there is no need to process them.
13143 if test -z "$compiler_lib_search_path_FC"; then
13144 compiler_lib_search_path_FC="${prev}${p}"
13145 else
13146 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13147 fi
13148 ;;
13149 # The "-l" case would never come before the object being
13150 # linked, so don't bother handling this case.
13151 esac
13152 else
13153 if test -z "$postdeps_FC"; then
13154 postdeps_FC="${prev}${p}"
13155 else
13156 postdeps_FC="${postdeps_FC} ${prev}${p}"
13157 fi
13158 fi
13159 ;;
13160
13161 *.$objext)
13162 # This assumes that the test object file only shows up
13163 # once in the compiler output.
13164 if test "$p" = "conftest.$objext"; then
13165 pre_test_object_deps_done=yes
13166 continue
13167 fi
13168
13169 if test "$pre_test_object_deps_done" = no; then
13170 if test -z "$predep_objects_FC"; then
13171 predep_objects_FC="$p"
13172 else
13173 predep_objects_FC="$predep_objects_FC $p"
13174 fi
13175 else
13176 if test -z "$postdep_objects_FC"; then
13177 postdep_objects_FC="$p"
13178 else
13179 postdep_objects_FC="$postdep_objects_FC $p"
13180 fi
13181 fi
13182 ;;
13183
13184 *) ;; # Ignore the rest.
13185
13186 esac
13187 done
13188
13189 # Clean up.
13190 rm -f a.out a.exe
13191else
13192 echo "libtool.m4: error: problem compiling FC test program"
13193fi
13194
13195$RM -f confest.$objext
13196
13197# PORTME: override above test on systems where it is broken
13198
13199
13200case " $postdeps_FC " in
13201*" -lc "*) archive_cmds_need_lc_FC=no ;;
13202esac
d58dead8
PG
13203 compiler_lib_search_dirs_FC=
13204if test -n "${compiler_lib_search_path_FC}"; then
13205 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13206fi
13207
13208
13209
13210
13211
1cf3d07d
SE
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238 lt_prog_compiler_wl_FC=
13239lt_prog_compiler_pic_FC=
13240lt_prog_compiler_static_FC=
13241
5213506e
RW
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13243$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
13244
13245 if test "$GCC" = yes; then
13246 lt_prog_compiler_wl_FC='-Wl,'
13247 lt_prog_compiler_static_FC='-static'
13248
13249 case $host_os in
13250 aix*)
13251 # All AIX code is PIC.
13252 if test "$host_cpu" = ia64; then
13253 # AIX 5 now supports IA64 processor
13254 lt_prog_compiler_static_FC='-Bstatic'
13255 fi
bad8a4a7 13256 lt_prog_compiler_pic_FC='-fPIC'
1cf3d07d
SE
13257 ;;
13258
13259 amigaos*)
d58dead8
PG
13260 case $host_cpu in
13261 powerpc)
13262 # see comment about AmigaOS4 .so support
13263 lt_prog_compiler_pic_FC='-fPIC'
13264 ;;
13265 m68k)
13266 # FIXME: we need at least 68020 code to build shared libraries, but
13267 # adding the `-m68020' flag to GCC prevents building anything better,
13268 # like `-m68040'.
13269 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13270 ;;
13271 esac
1cf3d07d
SE
13272 ;;
13273
13274 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13275 # PIC is the default for these OSes.
13276 ;;
13277
d58dead8 13278 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13279 # This hack is so that the source file can tell whether it is being
13280 # built for inclusion in a dll (and should export symbols for example).
13281 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13282 # (--disable-auto-import) libraries
13283 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13284 ;;
13285
13286 darwin* | rhapsody*)
13287 # PIC is the default on this platform
13288 # Common symbols not allowed in MH_DYLIB files
13289 lt_prog_compiler_pic_FC='-fno-common'
13290 ;;
13291
43e02a8a
RW
13292 haiku*)
13293 # PIC is the default for Haiku.
13294 # The "-static" flag exists, but is broken.
13295 lt_prog_compiler_static_FC=
13296 ;;
13297
1cf3d07d 13298 hpux*)
d58dead8
PG
13299 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13300 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13301 # sets the default TLS model and affects inlining.
1cf3d07d 13302 case $host_cpu in
d58dead8 13303 hppa*64*)
1cf3d07d
SE
13304 # +Z the default
13305 ;;
13306 *)
13307 lt_prog_compiler_pic_FC='-fPIC'
13308 ;;
13309 esac
13310 ;;
13311
13312 interix[3-9]*)
13313 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13314 # Instead, we relocate shared libraries at runtime.
13315 ;;
13316
13317 msdosdjgpp*)
13318 # Just because we use GCC doesn't mean we suddenly get shared libraries
13319 # on systems that don't support them.
13320 lt_prog_compiler_can_build_shared_FC=no
13321 enable_shared=no
13322 ;;
13323
13324 *nto* | *qnx*)
13325 # QNX uses GNU C++, but need to define -shared option too, otherwise
13326 # it will coredump.
13327 lt_prog_compiler_pic_FC='-fPIC -shared'
13328 ;;
13329
13330 sysv4*MP*)
13331 if test -d /usr/nec; then
13332 lt_prog_compiler_pic_FC=-Kconform_pic
13333 fi
13334 ;;
13335
13336 *)
13337 lt_prog_compiler_pic_FC='-fPIC'
13338 ;;
13339 esac
43e02a8a
RW
13340
13341 case $cc_basename in
13342 nvcc*) # Cuda Compiler Driver 2.2
13343 lt_prog_compiler_wl_FC='-Xlinker '
13344 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13345 ;;
13346 esac
1cf3d07d
SE
13347 else
13348 # PORTME Check for flag to pass linker flags through the system compiler.
13349 case $host_os in
13350 aix*)
13351 lt_prog_compiler_wl_FC='-Wl,'
13352 if test "$host_cpu" = ia64; then
13353 # AIX 5 now supports IA64 processor
13354 lt_prog_compiler_static_FC='-Bstatic'
13355 else
13356 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13357 fi
13358 ;;
1cf3d07d 13359
d58dead8 13360 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13361 # This hack is so that the source file can tell whether it is being
13362 # built for inclusion in a dll (and should export symbols for example).
13363 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13364 ;;
13365
13366 hpux9* | hpux10* | hpux11*)
13367 lt_prog_compiler_wl_FC='-Wl,'
13368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13369 # not for PA HP-UX.
13370 case $host_cpu in
13371 hppa*64*|ia64*)
13372 # +Z the default
13373 ;;
13374 *)
13375 lt_prog_compiler_pic_FC='+Z'
13376 ;;
13377 esac
13378 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13379 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13380 ;;
13381
13382 irix5* | irix6* | nonstopux*)
13383 lt_prog_compiler_wl_FC='-Wl,'
13384 # PIC (with -KPIC) is the default.
13385 lt_prog_compiler_static_FC='-non_shared'
13386 ;;
13387
7a9d3fe8 13388 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 13389 case $cc_basename in
d58dead8
PG
13390 # old Intel for x86_64 which still supported -KPIC.
13391 ecc*)
1cf3d07d
SE
13392 lt_prog_compiler_wl_FC='-Wl,'
13393 lt_prog_compiler_pic_FC='-KPIC'
13394 lt_prog_compiler_static_FC='-static'
13395 ;;
d58dead8
PG
13396 # icc used to be incompatible with GCC.
13397 # ICC 10 doesn't accept -KPIC any more.
13398 icc* | ifort*)
13399 lt_prog_compiler_wl_FC='-Wl,'
13400 lt_prog_compiler_pic_FC='-fPIC'
13401 lt_prog_compiler_static_FC='-static'
13402 ;;
13403 # Lahey Fortran 8.1.
13404 lf95*)
13405 lt_prog_compiler_wl_FC='-Wl,'
13406 lt_prog_compiler_pic_FC='--shared'
13407 lt_prog_compiler_static_FC='--static'
13408 ;;
43e02a8a 13409 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
13410 # Portland Group compilers (*not* the Pentium gcc compiler,
13411 # which looks to be a dead project)
13412 lt_prog_compiler_wl_FC='-Wl,'
13413 lt_prog_compiler_pic_FC='-fpic'
13414 lt_prog_compiler_static_FC='-Bstatic'
13415 ;;
13416 ccc*)
13417 lt_prog_compiler_wl_FC='-Wl,'
13418 # All Alpha code is PIC.
13419 lt_prog_compiler_static_FC='-non_shared'
13420 ;;
43e02a8a
RW
13421 xl* | bgxl* | bgf* | mpixl*)
13422 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
13423 lt_prog_compiler_wl_FC='-Wl,'
13424 lt_prog_compiler_pic_FC='-qpic'
13425 lt_prog_compiler_static_FC='-qstaticlink'
13426 ;;
1cf3d07d
SE
13427 *)
13428 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
13429 *Sun\ F* | *Sun*Fortran*)
13430 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
13431 lt_prog_compiler_pic_FC='-KPIC'
13432 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13433 lt_prog_compiler_wl_FC=''
1cf3d07d 13434 ;;
43e02a8a
RW
13435 *Sun\ C*)
13436 # Sun C 5.9
1cf3d07d
SE
13437 lt_prog_compiler_pic_FC='-KPIC'
13438 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13439 lt_prog_compiler_wl_FC='-Wl,'
1cf3d07d
SE
13440 ;;
13441 esac
13442 ;;
13443 esac
13444 ;;
13445
13446 newsos6)
13447 lt_prog_compiler_pic_FC='-KPIC'
13448 lt_prog_compiler_static_FC='-Bstatic'
13449 ;;
13450
13451 *nto* | *qnx*)
13452 # QNX uses GNU C++, but need to define -shared option too, otherwise
13453 # it will coredump.
13454 lt_prog_compiler_pic_FC='-fPIC -shared'
13455 ;;
13456
13457 osf3* | osf4* | osf5*)
13458 lt_prog_compiler_wl_FC='-Wl,'
13459 # All OSF/1 code is PIC.
13460 lt_prog_compiler_static_FC='-non_shared'
13461 ;;
13462
13463 rdos*)
13464 lt_prog_compiler_static_FC='-non_shared'
13465 ;;
13466
13467 solaris*)
13468 lt_prog_compiler_pic_FC='-KPIC'
13469 lt_prog_compiler_static_FC='-Bstatic'
13470 case $cc_basename in
13471 f77* | f90* | f95*)
13472 lt_prog_compiler_wl_FC='-Qoption ld ';;
13473 *)
13474 lt_prog_compiler_wl_FC='-Wl,';;
13475 esac
13476 ;;
13477
13478 sunos4*)
13479 lt_prog_compiler_wl_FC='-Qoption ld '
13480 lt_prog_compiler_pic_FC='-PIC'
13481 lt_prog_compiler_static_FC='-Bstatic'
13482 ;;
13483
13484 sysv4 | sysv4.2uw2* | sysv4.3*)
13485 lt_prog_compiler_wl_FC='-Wl,'
13486 lt_prog_compiler_pic_FC='-KPIC'
13487 lt_prog_compiler_static_FC='-Bstatic'
13488 ;;
13489
13490 sysv4*MP*)
13491 if test -d /usr/nec ;then
13492 lt_prog_compiler_pic_FC='-Kconform_pic'
13493 lt_prog_compiler_static_FC='-Bstatic'
13494 fi
13495 ;;
13496
13497 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13498 lt_prog_compiler_wl_FC='-Wl,'
13499 lt_prog_compiler_pic_FC='-KPIC'
13500 lt_prog_compiler_static_FC='-Bstatic'
13501 ;;
13502
13503 unicos*)
13504 lt_prog_compiler_wl_FC='-Wl,'
13505 lt_prog_compiler_can_build_shared_FC=no
13506 ;;
13507
13508 uts4*)
13509 lt_prog_compiler_pic_FC='-pic'
13510 lt_prog_compiler_static_FC='-Bstatic'
13511 ;;
13512
13513 *)
13514 lt_prog_compiler_can_build_shared_FC=no
13515 ;;
13516 esac
13517 fi
13518
13519case $host_os in
13520 # For platforms which do not support PIC, -DPIC is meaningless:
13521 *djgpp*)
13522 lt_prog_compiler_pic_FC=
13523 ;;
13524 *)
13525 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13526 ;;
13527esac
5213506e
RW
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13529$as_echo "$lt_prog_compiler_pic_FC" >&6; }
1cf3d07d
SE
13530
13531
13532
13533#
13534# Check to make sure the PIC flag actually works.
13535#
13536if test -n "$lt_prog_compiler_pic_FC"; then
5213506e
RW
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13538$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13539if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13540 $as_echo_n "(cached) " >&6
1cf3d07d 13541else
d58dead8 13542 lt_cv_prog_compiler_pic_works_FC=no
1cf3d07d
SE
13543 ac_outfile=conftest.$ac_objext
13544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13545 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13546 # Insert the option either (1) after the last *FLAGS variable, or
13547 # (2) before a word containing "conftest.", or (3) at the end.
13548 # Note that $ac_compile itself does not contain backslashes and begins
13549 # with a dollar sign (not a hyphen), so the echo should work correctly.
13550 # The option is referenced via a variable to avoid confusing sed.
13551 lt_compile=`echo "$ac_compile" | $SED \
13552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13554 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13556 (eval "$lt_compile" 2>conftest.err)
13557 ac_status=$?
13558 cat conftest.err >&5
43e02a8a 13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13560 if (exit $ac_status) && test -s "$ac_outfile"; then
13561 # The compiler can only warn and ignore the option if not recognized
13562 # So say no if there are warnings other than the usual output.
43e02a8a 13563 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
13564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13565 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 13566 lt_cv_prog_compiler_pic_works_FC=yes
1cf3d07d
SE
13567 fi
13568 fi
13569 $RM conftest*
13570
13571fi
5213506e
RW
13572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13573$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
1cf3d07d 13574
d58dead8 13575if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
1cf3d07d
SE
13576 case $lt_prog_compiler_pic_FC in
13577 "" | " "*) ;;
13578 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13579 esac
13580else
13581 lt_prog_compiler_pic_FC=
13582 lt_prog_compiler_can_build_shared_FC=no
13583fi
13584
13585fi
13586
13587
13588
13589#
13590# Check to make sure the static flag actually works.
13591#
13592wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
5213506e
RW
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13594$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13595if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
1cf3d07d 13597else
d58dead8 13598 lt_cv_prog_compiler_static_works_FC=no
1cf3d07d
SE
13599 save_LDFLAGS="$LDFLAGS"
13600 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13601 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13602 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13603 # The linker can only warn and ignore the option if not recognized
13604 # So say no if there are warnings
13605 if test -s conftest.err; then
13606 # Append any errors to the config.log.
13607 cat conftest.err 1>&5
43e02a8a 13608 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
13609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13610 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 13611 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
13612 fi
13613 else
d58dead8 13614 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
13615 fi
13616 fi
d58dead8 13617 $RM -r conftest*
1cf3d07d
SE
13618 LDFLAGS="$save_LDFLAGS"
13619
13620fi
5213506e
RW
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13622$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
1cf3d07d 13623
d58dead8 13624if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
1cf3d07d
SE
13625 :
13626else
13627 lt_prog_compiler_static_FC=
13628fi
13629
13630
13631
13632
5213506e
RW
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13634$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13635if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13636 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13637else
13638 lt_cv_prog_compiler_c_o_FC=no
13639 $RM -r conftest 2>/dev/null
13640 mkdir conftest
13641 cd conftest
13642 mkdir out
13643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13644
13645 lt_compiler_flag="-o out/conftest2.$ac_objext"
13646 # Insert the option either (1) after the last *FLAGS variable, or
13647 # (2) before a word containing "conftest.", or (3) at the end.
13648 # Note that $ac_compile itself does not contain backslashes and begins
13649 # with a dollar sign (not a hyphen), so the echo should work correctly.
13650 lt_compile=`echo "$ac_compile" | $SED \
13651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13653 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13655 (eval "$lt_compile" 2>out/conftest.err)
13656 ac_status=$?
13657 cat out/conftest.err >&5
43e02a8a 13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13660 then
13661 # The compiler can only warn and ignore the option if not recognized
13662 # So say no if there are warnings
43e02a8a 13663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13666 lt_cv_prog_compiler_c_o_FC=yes
13667 fi
13668 fi
13669 chmod u+w . 2>&5
13670 $RM conftest*
13671 # SGI C++ compiler will create directory out/ii_files/ for
13672 # template instantiation
13673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13674 $RM out/* && rmdir out
13675 cd ..
13676 $RM -r conftest
13677 $RM conftest*
13678
13679fi
5213506e
RW
13680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13681$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
13682
13683
13684
5213506e
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13686$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13687if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13689else
13690 lt_cv_prog_compiler_c_o_FC=no
13691 $RM -r conftest 2>/dev/null
13692 mkdir conftest
13693 cd conftest
13694 mkdir out
13695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13696
13697 lt_compiler_flag="-o out/conftest2.$ac_objext"
13698 # Insert the option either (1) after the last *FLAGS variable, or
13699 # (2) before a word containing "conftest.", or (3) at the end.
13700 # Note that $ac_compile itself does not contain backslashes and begins
13701 # with a dollar sign (not a hyphen), so the echo should work correctly.
13702 lt_compile=`echo "$ac_compile" | $SED \
13703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13705 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13707 (eval "$lt_compile" 2>out/conftest.err)
13708 ac_status=$?
13709 cat out/conftest.err >&5
43e02a8a 13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13711 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13712 then
13713 # The compiler can only warn and ignore the option if not recognized
13714 # So say no if there are warnings
43e02a8a 13715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13716 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13717 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13718 lt_cv_prog_compiler_c_o_FC=yes
13719 fi
13720 fi
13721 chmod u+w . 2>&5
13722 $RM conftest*
13723 # SGI C++ compiler will create directory out/ii_files/ for
13724 # template instantiation
13725 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13726 $RM out/* && rmdir out
13727 cd ..
13728 $RM -r conftest
13729 $RM conftest*
13730
13731fi
5213506e
RW
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13733$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
13734
13735
13736
13737
13738hard_links="nottested"
13739if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13740 # do not overwrite the value of need_locks provided by the user
5213506e
RW
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13742$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
13743 hard_links=yes
13744 $RM conftest*
13745 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13746 touch conftest.a
13747 ln conftest.a conftest.b 2>&5 || hard_links=no
13748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13750$as_echo "$hard_links" >&6; }
1cf3d07d 13751 if test "$hard_links" = no; then
5213506e
RW
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13753$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
13754 need_locks=warn
13755 fi
13756else
13757 need_locks=no
13758fi
13759
13760
13761
5213506e
RW
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13763$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
13764
13765 runpath_var=
13766 allow_undefined_flag_FC=
13767 always_export_symbols_FC=no
13768 archive_cmds_FC=
13769 archive_expsym_cmds_FC=
13770 compiler_needs_object_FC=no
13771 enable_shared_with_static_runtimes_FC=no
13772 export_dynamic_flag_spec_FC=
13773 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13774 hardcode_automatic_FC=no
13775 hardcode_direct_FC=no
13776 hardcode_direct_absolute_FC=no
13777 hardcode_libdir_flag_spec_FC=
13778 hardcode_libdir_flag_spec_ld_FC=
13779 hardcode_libdir_separator_FC=
13780 hardcode_minus_L_FC=no
13781 hardcode_shlibpath_var_FC=unsupported
13782 inherit_rpath_FC=no
13783 link_all_deplibs_FC=unknown
13784 module_cmds_FC=
13785 module_expsym_cmds_FC=
13786 old_archive_from_new_cmds_FC=
13787 old_archive_from_expsyms_cmds_FC=
13788 thread_safe_flag_spec_FC=
13789 whole_archive_flag_spec_FC=
13790 # include_expsyms should be a list of space-separated symbols to be *always*
13791 # included in the symbol list
13792 include_expsyms_FC=
13793 # exclude_expsyms can be an extended regexp of symbols to exclude
13794 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13795 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13796 # as well as any symbol that contains `d'.
d58dead8 13797 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
13798 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13799 # platforms (ab)use it in PIC code, but their linkers get confused if
13800 # the symbol is explicitly referenced. Since portable code cannot
13801 # rely on this symbol name, it's probably fine to never include it in
13802 # preloaded symbol tables.
d58dead8 13803 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
13804 extract_expsyms_cmds=
13805
13806 case $host_os in
d58dead8 13807 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13808 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13809 # When not using gcc, we currently assume that we are using
13810 # Microsoft Visual C++.
13811 if test "$GCC" != yes; then
13812 with_gnu_ld=no
13813 fi
13814 ;;
13815 interix*)
13816 # we just hope/assume this is gcc and not c89 (= MSVC++)
13817 with_gnu_ld=yes
13818 ;;
13819 openbsd*)
13820 with_gnu_ld=no
13821 ;;
13822 esac
13823
13824 ld_shlibs_FC=yes
43e02a8a
RW
13825
13826 # On some targets, GNU ld is compatible enough with the native linker
13827 # that we're better off using the native interface for both.
13828 lt_use_gnu_ld_interface=no
1cf3d07d 13829 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
13830 case $host_os in
13831 aix*)
13832 # The AIX port of GNU ld has always aspired to compatibility
13833 # with the native linker. However, as the warning in the GNU ld
13834 # block says, versions before 2.19.5* couldn't really create working
13835 # shared libraries, regardless of the interface used.
13836 case `$LD -v 2>&1` in
13837 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13838 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13839 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13840 *)
13841 lt_use_gnu_ld_interface=yes
13842 ;;
13843 esac
13844 ;;
13845 *)
13846 lt_use_gnu_ld_interface=yes
13847 ;;
13848 esac
13849 fi
13850
13851 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
13852 # If archive_cmds runs LD, not CC, wlarc should be empty
13853 wlarc='${wl}'
13854
13855 # Set some defaults for GNU ld with shared library support. These
13856 # are reset later if shared libraries are not supported. Putting them
13857 # here allows them to be overridden if necessary.
13858 runpath_var=LD_RUN_PATH
13859 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13860 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13861 # ancient GNU ld didn't support --whole-archive et. al.
13862 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13863 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13864 else
13865 whole_archive_flag_spec_FC=
13866 fi
13867 supports_anon_versioning=no
13868 case `$LD -v 2>&1` in
43e02a8a 13869 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
13870 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13871 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13872 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13873 *\ 2.11.*) ;; # other 2.11 versions
13874 *) supports_anon_versioning=yes ;;
13875 esac
13876
13877 # See if GNU ld supports shared libraries.
13878 case $host_os in
4f6bebc3 13879 aix[3-9]*)
1cf3d07d
SE
13880 # On AIX/PPC, the GNU linker is very broken
13881 if test "$host_cpu" != ia64; then
13882 ld_shlibs_FC=no
13883 cat <<_LT_EOF 1>&2
13884
43e02a8a 13885*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
13886*** to be unable to reliably create shared libraries on AIX.
13887*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
13888*** really care for shared libraries, you may want to install binutils
13889*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13890*** You will then need to restart the configuration process.
1cf3d07d
SE
13891
13892_LT_EOF
13893 fi
13894 ;;
13895
13896 amigaos*)
d58dead8
PG
13897 case $host_cpu in
13898 powerpc)
13899 # see comment about AmigaOS4 .so support
13900 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13901 archive_expsym_cmds_FC=''
13902 ;;
13903 m68k)
13904 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)'
13905 hardcode_libdir_flag_spec_FC='-L$libdir'
13906 hardcode_minus_L_FC=yes
13907 ;;
13908 esac
1cf3d07d
SE
13909 ;;
13910
13911 beos*)
13912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13913 allow_undefined_flag_FC=unsupported
13914 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13915 # support --undefined. This deserves some investigation. FIXME
13916 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13917 else
13918 ld_shlibs_FC=no
13919 fi
13920 ;;
13921
d58dead8 13922 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13923 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13924 # as there is no search path for DLLs.
13925 hardcode_libdir_flag_spec_FC='-L$libdir'
43e02a8a 13926 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
1cf3d07d
SE
13927 allow_undefined_flag_FC=unsupported
13928 always_export_symbols_FC=no
13929 enable_shared_with_static_runtimes_FC=yes
13930 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13931
13932 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13933 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13934 # If the export-symbols file already is a .def file (1st line
13935 # is EXPORTS), use it as is; otherwise, prepend...
13936 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13937 cp $export_symbols $output_objdir/$soname.def;
13938 else
13939 echo EXPORTS > $output_objdir/$soname.def;
13940 cat $export_symbols >> $output_objdir/$soname.def;
13941 fi~
13942 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13943 else
13944 ld_shlibs_FC=no
13945 fi
13946 ;;
13947
43e02a8a
RW
13948 haiku*)
13949 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13950 link_all_deplibs_FC=yes
13951 ;;
13952
1cf3d07d
SE
13953 interix[3-9]*)
13954 hardcode_direct_FC=no
13955 hardcode_shlibpath_var_FC=no
13956 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13957 export_dynamic_flag_spec_FC='${wl}-E'
13958 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13959 # Instead, shared libraries are loaded at an image base (0x10000000 by
13960 # default) and relocated if they conflict, which is a slow very memory
13961 # consuming and fragmenting process. To avoid this, we pick a random,
13962 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13963 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13964 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'
13965 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'
13966 ;;
13967
7a9d3fe8 13968 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
13969 tmp_diet=no
13970 if test "$host_os" = linux-dietlibc; then
13971 case $cc_basename in
13972 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13973 esac
13974 fi
13975 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13976 && test "$tmp_diet" = no
13977 then
a699d672 13978 tmp_addflag=' $pic_flag'
d58dead8 13979 tmp_sharedflag='-shared'
1cf3d07d
SE
13980 case $cc_basename,$host_cpu in
13981 pgcc*) # Portland Group C compiler
43e02a8a 13982 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
13983 tmp_addflag=' $pic_flag'
13984 ;;
43e02a8a
RW
13985 pgf77* | pgf90* | pgf95* | pgfortran*)
13986 # Portland Group f77 and f90 compilers
13987 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
13988 tmp_addflag=' $pic_flag -Mnomain' ;;
13989 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13990 tmp_addflag=' -i_dynamic' ;;
13991 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13992 tmp_addflag=' -i_dynamic -nofor_main' ;;
13993 ifc* | ifort*) # Intel Fortran compiler
13994 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
13995 lf95*) # Lahey Fortran 8.1
13996 whole_archive_flag_spec_FC=
13997 tmp_sharedflag='--shared' ;;
43e02a8a 13998 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
13999 tmp_sharedflag='-qmkshrobj'
14000 tmp_addflag= ;;
43e02a8a
RW
14001 nvcc*) # Cuda Compiler Driver 2.2
14002 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'
14003 compiler_needs_object_FC=yes
14004 ;;
1cf3d07d
SE
14005 esac
14006 case `$CC -V 2>&1 | sed 5q` in
14007 *Sun\ C*) # Sun C 5.9
43e02a8a 14008 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
14009 compiler_needs_object_FC=yes
14010 tmp_sharedflag='-G' ;;
14011 *Sun\ F*) # Sun Fortran 8.3
14012 tmp_sharedflag='-G' ;;
1cf3d07d
SE
14013 esac
14014 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14015
14016 if test "x$supports_anon_versioning" = xyes; then
14017 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14018 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14019 echo "local: *; };" >> $output_objdir/$libname.ver~
14020 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14021 fi
d58dead8
PG
14022
14023 case $cc_basename in
43e02a8a 14024 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
14025 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14026 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14027 hardcode_libdir_flag_spec_FC=
14028 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14029 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14030 if test "x$supports_anon_versioning" = xyes; then
14031 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14032 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14033 echo "local: *; };" >> $output_objdir/$libname.ver~
14034 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14035 fi
14036 ;;
14037 esac
1cf3d07d
SE
14038 else
14039 ld_shlibs_FC=no
14040 fi
14041 ;;
14042
14043 netbsd*)
14044 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14045 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14046 wlarc=
14047 else
14048 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14049 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14050 fi
14051 ;;
14052
14053 solaris*)
14054 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14055 ld_shlibs_FC=no
14056 cat <<_LT_EOF 1>&2
14057
14058*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14059*** create shared libraries on Solaris systems. Therefore, libtool
14060*** is disabling shared libraries support. We urge you to upgrade GNU
14061*** binutils to release 2.9.1 or newer. Another option is to modify
14062*** your PATH or compiler configuration so that the native linker is
14063*** used, and then restart.
14064
14065_LT_EOF
14066 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14067 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14068 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14069 else
14070 ld_shlibs_FC=no
14071 fi
14072 ;;
14073
14074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14075 case `$LD -v 2>&1` in
14076 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14077 ld_shlibs_FC=no
14078 cat <<_LT_EOF 1>&2
14079
14080*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14081*** reliably create shared libraries on SCO systems. Therefore, libtool
14082*** is disabling shared libraries support. We urge you to upgrade GNU
14083*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14084*** your PATH or compiler configuration so that the native linker is
14085*** used, and then restart.
14086
14087_LT_EOF
14088 ;;
14089 *)
14090 # For security reasons, it is highly recommended that you always
14091 # use absolute paths for naming shared libraries, and exclude the
14092 # DT_RUNPATH tag from executables and libraries. But doing so
14093 # requires that you compile everything twice, which is a pain.
14094 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14095 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14096 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14097 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14098 else
14099 ld_shlibs_FC=no
14100 fi
14101 ;;
14102 esac
14103 ;;
14104
14105 sunos4*)
14106 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14107 wlarc=
14108 hardcode_direct_FC=yes
14109 hardcode_shlibpath_var_FC=no
14110 ;;
14111
14112 *)
14113 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14114 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14115 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14116 else
14117 ld_shlibs_FC=no
14118 fi
14119 ;;
14120 esac
14121
14122 if test "$ld_shlibs_FC" = no; then
14123 runpath_var=
14124 hardcode_libdir_flag_spec_FC=
14125 export_dynamic_flag_spec_FC=
14126 whole_archive_flag_spec_FC=
14127 fi
14128 else
14129 # PORTME fill in a description of your system's linker (not GNU ld)
14130 case $host_os in
14131 aix3*)
14132 allow_undefined_flag_FC=unsupported
14133 always_export_symbols_FC=yes
14134 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'
14135 # Note: this linker hardcodes the directories in LIBPATH if there
14136 # are no directories specified by -L.
14137 hardcode_minus_L_FC=yes
14138 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14139 # Neither direct hardcoding nor static linking is supported with a
14140 # broken collect2.
14141 hardcode_direct_FC=unsupported
14142 fi
14143 ;;
14144
4f6bebc3 14145 aix[4-9]*)
1cf3d07d
SE
14146 if test "$host_cpu" = ia64; then
14147 # On IA64, the linker does run time linking by default, so we don't
14148 # have to do anything special.
14149 aix_use_runtimelinking=no
14150 exp_sym_flag='-Bexport'
14151 no_entry_flag=""
14152 else
14153 # If we're using GNU nm, then we don't want the "-C" option.
14154 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
14155 # Also, AIX nm treats weak defined symbols like other global
14156 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 14157 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 14158 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 14159 else
d3ca2257 14160 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
14161 fi
14162 aix_use_runtimelinking=no
14163
14164 # Test if we are trying to use run time linking or normal
14165 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14166 # need to do runtime linking.
4f6bebc3 14167 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
14168 for ld_flag in $LDFLAGS; do
14169 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14170 aix_use_runtimelinking=yes
14171 break
14172 fi
14173 done
14174 ;;
14175 esac
14176
14177 exp_sym_flag='-bexport'
14178 no_entry_flag='-bnoentry'
14179 fi
14180
14181 # When large executables or shared objects are built, AIX ld can
14182 # have problems creating the table of contents. If linking a library
14183 # or program results in "error TOC overflow" add -mminimal-toc to
14184 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14185 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14186
14187 archive_cmds_FC=''
14188 hardcode_direct_FC=yes
14189 hardcode_direct_absolute_FC=yes
14190 hardcode_libdir_separator_FC=':'
14191 link_all_deplibs_FC=yes
14192 file_list_spec_FC='${wl}-f,'
14193
14194 if test "$GCC" = yes; then
14195 case $host_os in aix4.[012]|aix4.[012].*)
14196 # We only want to do this on AIX 4.2 and lower, the check
14197 # below for broken collect2 doesn't work under 4.3+
14198 collect2name=`${CC} -print-prog-name=collect2`
14199 if test -f "$collect2name" &&
14200 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14201 then
14202 # We have reworked collect2
14203 :
14204 else
14205 # We have old collect2
14206 hardcode_direct_FC=unsupported
14207 # It fails to find uninstalled libraries when the uninstalled
14208 # path is not listed in the libpath. Setting hardcode_minus_L
14209 # to unsupported forces relinking
14210 hardcode_minus_L_FC=yes
14211 hardcode_libdir_flag_spec_FC='-L$libdir'
14212 hardcode_libdir_separator_FC=
14213 fi
14214 ;;
14215 esac
14216 shared_flag='-shared'
14217 if test "$aix_use_runtimelinking" = yes; then
14218 shared_flag="$shared_flag "'${wl}-G'
14219 fi
14220 else
14221 # not using gcc
14222 if test "$host_cpu" = ia64; then
14223 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14224 # chokes on -Wl,-G. The following line is correct:
14225 shared_flag='-G'
14226 else
14227 if test "$aix_use_runtimelinking" = yes; then
14228 shared_flag='${wl}-G'
14229 else
14230 shared_flag='${wl}-bM:SRE'
14231 fi
14232 fi
14233 fi
14234
d58dead8 14235 export_dynamic_flag_spec_FC='${wl}-bexpall'
1cf3d07d
SE
14236 # It seems that -bexpall does not export symbols beginning with
14237 # underscore (_), so it is better to generate a list of symbols to export.
14238 always_export_symbols_FC=yes
14239 if test "$aix_use_runtimelinking" = yes; then
14240 # Warning - without using the other runtime loading flags (-brtl),
14241 # -berok will link without error, but may produce a broken library.
14242 allow_undefined_flag_FC='-berok'
14243 # Determine the default libpath from the value encoded in an
14244 # empty executable.
14245 if test x$gcc_no_link = xyes; then
5213506e 14246 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14247fi
5213506e 14248cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14249 program main
14250
14251 end
14252_ACEOF
5213506e 14253if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14254
14255lt_aix_libpath_sed='
14256 /Import File Strings/,/^$/ {
14257 /^0/ {
14258 s/^0 *\(.*\)$/\1/
14259 p
14260 }
14261 }'
14262aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14263# Check for a 64-bit object if we didn't find anything.
14264if test -z "$aix_libpath"; then
14265 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14266fi
1cf3d07d 14267fi
5213506e
RW
14268rm -f core conftest.err conftest.$ac_objext \
14269 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14270if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14271
14272 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 14273 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
14274 else
14275 if test "$host_cpu" = ia64; then
14276 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14277 allow_undefined_flag_FC="-z nodefs"
14278 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"
14279 else
14280 # Determine the default libpath from the value encoded in an
14281 # empty executable.
14282 if test x$gcc_no_link = xyes; then
5213506e 14283 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14284fi
5213506e 14285cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14286 program main
14287
14288 end
14289_ACEOF
5213506e 14290if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14291
14292lt_aix_libpath_sed='
14293 /Import File Strings/,/^$/ {
14294 /^0/ {
14295 s/^0 *\(.*\)$/\1/
14296 p
14297 }
14298 }'
14299aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14300# Check for a 64-bit object if we didn't find anything.
14301if test -z "$aix_libpath"; then
14302 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14303fi
1cf3d07d 14304fi
5213506e
RW
14305rm -f core conftest.err conftest.$ac_objext \
14306 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14307if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14308
14309 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14310 # Warning - without using the other run time loading flags,
14311 # -berok will link without error, but may produce a broken library.
14312 no_undefined_flag_FC=' ${wl}-bernotok'
14313 allow_undefined_flag_FC=' ${wl}-berok'
43e02a8a
RW
14314 if test "$with_gnu_ld" = yes; then
14315 # We only use this code for GNU lds that support --whole-archive.
14316 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14317 else
14318 # Exported symbols can be pulled into shared objects from archives
14319 whole_archive_flag_spec_FC='$convenience'
14320 fi
1cf3d07d
SE
14321 archive_cmds_need_lc_FC=yes
14322 # This is similar to how AIX traditionally builds its shared libraries.
14323 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'
14324 fi
14325 fi
14326 ;;
14327
14328 amigaos*)
d58dead8
PG
14329 case $host_cpu in
14330 powerpc)
14331 # see comment about AmigaOS4 .so support
14332 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14333 archive_expsym_cmds_FC=''
14334 ;;
14335 m68k)
14336 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)'
14337 hardcode_libdir_flag_spec_FC='-L$libdir'
14338 hardcode_minus_L_FC=yes
14339 ;;
14340 esac
1cf3d07d
SE
14341 ;;
14342
14343 bsdi[45]*)
14344 export_dynamic_flag_spec_FC=-rdynamic
14345 ;;
14346
d58dead8 14347 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14348 # When not using gcc, we currently assume that we are using
14349 # Microsoft Visual C++.
14350 # hardcode_libdir_flag_spec is actually meaningless, as there is
14351 # no search path for DLLs.
14352 hardcode_libdir_flag_spec_FC=' '
14353 allow_undefined_flag_FC=unsupported
14354 # Tell ltmain to make .lib files, not .a files.
14355 libext=lib
14356 # Tell ltmain to make .dll files, not .so files.
14357 shrext_cmds=".dll"
14358 # FIXME: Setting linknames here is a bad hack.
43e02a8a 14359 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
14360 # The linker will automatically build a .lib file if we build a DLL.
14361 old_archive_from_new_cmds_FC='true'
14362 # FIXME: Should let the user specify the lib program.
14363 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14364 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14365 enable_shared_with_static_runtimes_FC=yes
14366 ;;
14367
14368 darwin* | rhapsody*)
1cf3d07d 14369
d58dead8
PG
14370
14371 archive_cmds_need_lc_FC=no
14372 hardcode_direct_FC=no
14373 hardcode_automatic_FC=yes
14374 hardcode_shlibpath_var_FC=unsupported
43e02a8a
RW
14375 if test "$lt_cv_ld_force_load" = "yes"; then
14376 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\"`'
14377 else
14378 whole_archive_flag_spec_FC=''
14379 fi
d58dead8
PG
14380 link_all_deplibs_FC=yes
14381 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14382 case $cc_basename in
14383 ifort*) _lt_dar_can_shared=yes ;;
14384 *) _lt_dar_can_shared=$GCC ;;
14385 esac
14386 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 14387 output_verbose_link_cmd=func_echo_all
d58dead8
PG
14388 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}"
14389 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14390 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}"
14391 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}"
14392
14393 else
14394 ld_shlibs_FC=no
14395 fi
14396
1cf3d07d
SE
14397 ;;
14398
14399 dgux*)
14400 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14401 hardcode_libdir_flag_spec_FC='-L$libdir'
14402 hardcode_shlibpath_var_FC=no
14403 ;;
14404
1cf3d07d
SE
14405 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14406 # support. Future versions do this automatically, but an explicit c++rt0.o
14407 # does not break anything, and helps significantly (at the cost of a little
14408 # extra space).
14409 freebsd2.2*)
14410 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14411 hardcode_libdir_flag_spec_FC='-R$libdir'
14412 hardcode_direct_FC=yes
14413 hardcode_shlibpath_var_FC=no
14414 ;;
14415
14416 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 14417 freebsd2.*)
1cf3d07d
SE
14418 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14419 hardcode_direct_FC=yes
14420 hardcode_minus_L_FC=yes
14421 hardcode_shlibpath_var_FC=no
14422 ;;
14423
14424 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14425 freebsd* | dragonfly*)
14426 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14427 hardcode_libdir_flag_spec_FC='-R$libdir'
14428 hardcode_direct_FC=yes
14429 hardcode_shlibpath_var_FC=no
14430 ;;
14431
14432 hpux9*)
14433 if test "$GCC" = yes; then
14434 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'
14435 else
14436 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'
14437 fi
14438 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14439 hardcode_libdir_separator_FC=:
14440 hardcode_direct_FC=yes
14441
14442 # hardcode_minus_L: Not really in the search PATH,
14443 # but as the default location of the library.
14444 hardcode_minus_L_FC=yes
14445 export_dynamic_flag_spec_FC='${wl}-E'
14446 ;;
14447
14448 hpux10*)
43e02a8a 14449 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14450 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14451 else
14452 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14453 fi
14454 if test "$with_gnu_ld" = no; then
14455 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14456 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14457 hardcode_libdir_separator_FC=:
14458 hardcode_direct_FC=yes
14459 hardcode_direct_absolute_FC=yes
14460 export_dynamic_flag_spec_FC='${wl}-E'
14461 # hardcode_minus_L: Not really in the search PATH,
14462 # but as the default location of the library.
14463 hardcode_minus_L_FC=yes
14464 fi
14465 ;;
14466
14467 hpux11*)
43e02a8a 14468 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14469 case $host_cpu in
14470 hppa*64*)
14471 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14472 ;;
14473 ia64*)
d58dead8 14474 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14475 ;;
14476 *)
14477 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14478 ;;
14479 esac
14480 else
14481 case $host_cpu in
14482 hppa*64*)
14483 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14484 ;;
14485 ia64*)
14486 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14487 ;;
14488 *)
43e02a8a 14489 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14490 ;;
14491 esac
14492 fi
14493 if test "$with_gnu_ld" = no; then
14494 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14495 hardcode_libdir_separator_FC=:
14496
14497 case $host_cpu in
14498 hppa*64*|ia64*)
14499 hardcode_direct_FC=no
14500 hardcode_shlibpath_var_FC=no
14501 ;;
14502 *)
14503 hardcode_direct_FC=yes
14504 hardcode_direct_absolute_FC=yes
14505 export_dynamic_flag_spec_FC='${wl}-E'
14506
14507 # hardcode_minus_L: Not really in the search PATH,
14508 # but as the default location of the library.
14509 hardcode_minus_L_FC=yes
14510 ;;
14511 esac
14512 fi
14513 ;;
14514
14515 irix5* | irix6* | nonstopux*)
14516 if test "$GCC" = yes; then
43e02a8a 14517 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
14518 # Try to use the -exported_symbol ld option, if it does not
14519 # work, assume that -exports_file does not work either and
14520 # implicitly export all symbols.
14521 save_LDFLAGS="$LDFLAGS"
14522 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14523 if test x$gcc_no_link = xyes; then
5213506e 14524 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14525fi
5213506e 14526cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14527int foo(void) {}
14528_ACEOF
5213506e 14529if ac_fn_fc_try_link "$LINENO"; then :
43e02a8a 14530 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 14531
1cf3d07d 14532fi
5213506e
RW
14533rm -f core conftest.err conftest.$ac_objext \
14534 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14535 LDFLAGS="$save_LDFLAGS"
14536 else
43e02a8a
RW
14537 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'
14538 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
14539 fi
14540 archive_cmds_need_lc_FC='no'
14541 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14542 hardcode_libdir_separator_FC=:
14543 inherit_rpath_FC=yes
14544 link_all_deplibs_FC=yes
14545 ;;
14546
14547 netbsd*)
14548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14549 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14550 else
14551 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14552 fi
14553 hardcode_libdir_flag_spec_FC='-R$libdir'
14554 hardcode_direct_FC=yes
14555 hardcode_shlibpath_var_FC=no
14556 ;;
14557
14558 newsos6)
14559 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14560 hardcode_direct_FC=yes
14561 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14562 hardcode_libdir_separator_FC=:
14563 hardcode_shlibpath_var_FC=no
14564 ;;
14565
14566 *nto* | *qnx*)
14567 ;;
14568
14569 openbsd*)
d58dead8
PG
14570 if test -f /usr/libexec/ld.so; then
14571 hardcode_direct_FC=yes
14572 hardcode_shlibpath_var_FC=no
14573 hardcode_direct_absolute_FC=yes
14574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 14575 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 14576 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 14577 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
d58dead8
PG
14578 export_dynamic_flag_spec_FC='${wl}-E'
14579 else
14580 case $host_os in
14581 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14582 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14583 hardcode_libdir_flag_spec_FC='-R$libdir'
14584 ;;
14585 *)
14586 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14587 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14588 ;;
14589 esac
14590 fi
14591 else
14592 ld_shlibs_FC=no
1cf3d07d
SE
14593 fi
14594 ;;
14595
14596 os2*)
14597 hardcode_libdir_flag_spec_FC='-L$libdir'
14598 hardcode_minus_L_FC=yes
14599 allow_undefined_flag_FC=unsupported
43e02a8a 14600 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
14601 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14602 ;;
14603
14604 osf3*)
14605 if test "$GCC" = yes; then
14606 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14607 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
14608 else
14609 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 14610 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
14611 fi
14612 archive_cmds_need_lc_FC='no'
14613 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14614 hardcode_libdir_separator_FC=:
14615 ;;
14616
14617 osf4* | osf5*) # as osf3* with the addition of -msym flag
14618 if test "$GCC" = yes; then
14619 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14620 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
14621 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14622 else
14623 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 14624 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 14625 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 14626 $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
14627
14628 # Both c and cxx compiler support -rpath directly
14629 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14630 fi
14631 archive_cmds_need_lc_FC='no'
14632 hardcode_libdir_separator_FC=:
14633 ;;
14634
14635 solaris*)
14636 no_undefined_flag_FC=' -z defs'
14637 if test "$GCC" = yes; then
14638 wlarc='${wl}'
14639 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14640 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14641 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14642 else
14643 case `$CC -V 2>&1` in
14644 *"Compilers 5.0"*)
14645 wlarc=''
14646 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14647 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14648 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14649 ;;
14650 *)
14651 wlarc='${wl}'
14652 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14653 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14654 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14655 ;;
14656 esac
14657 fi
14658 hardcode_libdir_flag_spec_FC='-R$libdir'
14659 hardcode_shlibpath_var_FC=no
14660 case $host_os in
14661 solaris2.[0-5] | solaris2.[0-5].*) ;;
14662 *)
14663 # The compiler driver will combine and reorder linker options,
14664 # but understands `-z linker_flag'. GCC discards it without `$wl',
14665 # but is careful enough not to reorder.
14666 # Supported since Solaris 2.6 (maybe 2.5.1?)
14667 if test "$GCC" = yes; then
14668 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14669 else
14670 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14671 fi
14672 ;;
14673 esac
14674 link_all_deplibs_FC=yes
14675 ;;
14676
14677 sunos4*)
14678 if test "x$host_vendor" = xsequent; then
14679 # Use $CC to link under sequent, because it throws in some extra .o
14680 # files that make .init and .fini sections work.
14681 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14682 else
14683 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14684 fi
14685 hardcode_libdir_flag_spec_FC='-L$libdir'
14686 hardcode_direct_FC=yes
14687 hardcode_minus_L_FC=yes
14688 hardcode_shlibpath_var_FC=no
14689 ;;
14690
14691 sysv4)
14692 case $host_vendor in
14693 sni)
14694 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14695 hardcode_direct_FC=yes # is this really true???
14696 ;;
14697 siemens)
14698 ## LD is ld it makes a PLAMLIB
14699 ## CC just makes a GrossModule.
14700 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14701 reload_cmds_FC='$CC -r -o $output$reload_objs'
14702 hardcode_direct_FC=no
14703 ;;
14704 motorola)
14705 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14706 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14707 ;;
14708 esac
14709 runpath_var='LD_RUN_PATH'
14710 hardcode_shlibpath_var_FC=no
14711 ;;
14712
14713 sysv4.3*)
14714 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14715 hardcode_shlibpath_var_FC=no
14716 export_dynamic_flag_spec_FC='-Bexport'
14717 ;;
14718
14719 sysv4*MP*)
14720 if test -d /usr/nec; then
14721 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14722 hardcode_shlibpath_var_FC=no
14723 runpath_var=LD_RUN_PATH
14724 hardcode_runpath_var=yes
14725 ld_shlibs_FC=yes
14726 fi
14727 ;;
14728
14729 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14730 no_undefined_flag_FC='${wl}-z,text'
14731 archive_cmds_need_lc_FC=no
14732 hardcode_shlibpath_var_FC=no
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 sysv5* | sco3.2v5* | sco5v6*)
14745 # Note: We can NOT use -z defs as we might desire, because we do not
14746 # link with -lc, and that would cause any symbols used from libc to
14747 # always be unresolved, which means just about no library would
14748 # ever link correctly. If we're not using GNU ld we use -z text
14749 # though, which does catch some bad symbols but isn't as heavy-handed
14750 # as -z defs.
14751 no_undefined_flag_FC='${wl}-z,text'
14752 allow_undefined_flag_FC='${wl}-z,nodefs'
14753 archive_cmds_need_lc_FC=no
14754 hardcode_shlibpath_var_FC=no
14755 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14756 hardcode_libdir_separator_FC=':'
14757 link_all_deplibs_FC=yes
14758 export_dynamic_flag_spec_FC='${wl}-Bexport'
14759 runpath_var='LD_RUN_PATH'
14760
14761 if test "$GCC" = yes; then
14762 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14763 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14764 else
14765 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14766 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14767 fi
14768 ;;
14769
14770 uts4*)
14771 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14772 hardcode_libdir_flag_spec_FC='-L$libdir'
14773 hardcode_shlibpath_var_FC=no
14774 ;;
14775
14776 *)
14777 ld_shlibs_FC=no
14778 ;;
14779 esac
14780
14781 if test x$host_vendor = xsni; then
14782 case $host in
14783 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14784 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14785 ;;
14786 esac
14787 fi
14788 fi
14789
5213506e
RW
14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14791$as_echo "$ld_shlibs_FC" >&6; }
1cf3d07d
SE
14792test "$ld_shlibs_FC" = no && can_build_shared=no
14793
14794with_gnu_ld_FC=$with_gnu_ld
14795
14796
14797
14798
14799
14800
14801#
14802# Do we need to explicitly link libc?
14803#
14804case "x$archive_cmds_need_lc_FC" in
14805x|xyes)
14806 # Assume -lc should be added
14807 archive_cmds_need_lc_FC=yes
14808
14809 if test "$enable_shared" = yes && test "$GCC" = yes; then
14810 case $archive_cmds_FC in
14811 *'~'*)
14812 # FIXME: we may have to deal with multi-command sequences.
14813 ;;
14814 '$CC '*)
14815 # Test whether the compiler implicitly links with -lc since on some
14816 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14817 # to ld, don't add -lc before -lgcc.
5213506e
RW
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14819$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14820if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14821 $as_echo_n "(cached) " >&6
baafc534
RW
14822else
14823 $RM conftest*
14824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 14825
5213506e 14826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
14827 (eval $ac_compile) 2>&5
14828 ac_status=$?
5213506e
RW
14829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14830 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
14831 soname=conftest
14832 lib=conftest
14833 libobjs=conftest.$ac_objext
14834 deplibs=
14835 wl=$lt_prog_compiler_wl_FC
14836 pic_flag=$lt_prog_compiler_pic_FC
14837 compiler_flags=-v
14838 linker_flags=-v
14839 verstring=
14840 output_objdir=.
14841 libname=conftest
14842 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14843 allow_undefined_flag_FC=
5213506e 14844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 14845 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9cdc381b 14846 ac_status=$?
5213506e
RW
14847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14848 test $ac_status = 0; }
baafc534
RW
14849 then
14850 lt_cv_archive_cmds_need_lc_FC=no
14851 else
14852 lt_cv_archive_cmds_need_lc_FC=yes
14853 fi
14854 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14855 else
14856 cat conftest.err 1>&5
14857 fi
14858 $RM conftest*
14859
14860fi
5213506e
RW
14861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14862$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
baafc534 14863 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
1cf3d07d
SE
14864 ;;
14865 esac
14866 fi
14867 ;;
14868esac
9cdc381b 14869
9cdc381b 14870
1cf3d07d
SE
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
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
5213506e
RW
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14934$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8 14935
1cf3d07d
SE
14936library_names_spec=
14937libname_spec='lib$name'
14938soname_spec=
14939shrext_cmds=".so"
14940postinstall_cmds=
14941postuninstall_cmds=
14942finish_cmds=
14943finish_eval=
14944shlibpath_var=
14945shlibpath_overrides_runpath=unknown
14946version_type=none
14947dynamic_linker="$host_os ld.so"
14948sys_lib_dlsearch_path_spec="/lib /usr/lib"
14949need_lib_prefix=unknown
14950hardcode_into_libs=no
14951
14952# when you set need_version to no, make sure it does not cause -set_version
14953# flags to be left without arguments
14954need_version=unknown
14955
14956case $host_os in
14957aix3*)
14958 version_type=linux
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14960 shlibpath_var=LIBPATH
14961
14962 # AIX 3 has no versioning support, so we append a major version to the name.
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 ;;
14965
4f6bebc3 14966aix[4-9]*)
1cf3d07d
SE
14967 version_type=linux
14968 need_lib_prefix=no
14969 need_version=no
14970 hardcode_into_libs=yes
14971 if test "$host_cpu" = ia64; then
14972 # AIX 5 supports IA64
14973 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14974 shlibpath_var=LD_LIBRARY_PATH
14975 else
14976 # With GCC up to 2.95.x, collect2 would create an import file
14977 # for dependence libraries. The import file would start with
14978 # the line `#! .'. This would cause the generated library to
14979 # depend on `.', always an invalid library. This was fixed in
14980 # development snapshots of GCC prior to 3.0.
14981 case $host_os in
14982 aix4 | aix4.[01] | aix4.[01].*)
14983 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14984 echo ' yes '
14985 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14986 :
14987 else
14988 can_build_shared=no
14989 fi
14990 ;;
14991 esac
14992 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14993 # soname into executable. Probably we can add versioning support to
14994 # collect2, so additional links can be useful in future.
14995 if test "$aix_use_runtimelinking" = yes; then
14996 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14997 # instead of lib<name>.a to let people know that these are not
14998 # typical AIX shared libraries.
14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000 else
15001 # We preserve .a as extension for shared libraries through AIX4.2
15002 # and later when we are not doing run time linking.
15003 library_names_spec='${libname}${release}.a $libname.a'
15004 soname_spec='${libname}${release}${shared_ext}$major'
15005 fi
15006 shlibpath_var=LIBPATH
15007 fi
15008 ;;
15009
15010amigaos*)
d58dead8
PG
15011 case $host_cpu in
15012 powerpc)
15013 # Since July 2007 AmigaOS4 officially supports .so libraries.
15014 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 ;;
15017 m68k)
1cf3d07d
SE
15018 library_names_spec='$libname.ixlibrary $libname.a'
15019 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 15020 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
15021 ;;
15022 esac
1cf3d07d
SE
15023 ;;
15024
15025beos*)
15026 library_names_spec='${libname}${shared_ext}'
15027 dynamic_linker="$host_os ld.so"
15028 shlibpath_var=LIBRARY_PATH
15029 ;;
15030
15031bsdi[45]*)
15032 version_type=linux
15033 need_version=no
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15037 shlibpath_var=LD_LIBRARY_PATH
15038 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15039 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15040 # the default ld.so.conf also contains /usr/contrib/lib and
15041 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15042 # libtool to hard-code these into programs
15043 ;;
15044
d58dead8 15045cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
15046 version_type=windows
15047 shrext_cmds=".dll"
15048 need_version=no
15049 need_lib_prefix=no
15050
d58dead8
PG
15051 case $GCC,$host_os in
15052 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
15053 library_names_spec='$libname.dll.a'
15054 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15055 postinstall_cmds='base_file=`basename \${file}`~
15056 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15057 dldir=$destdir/`dirname \$dlpath`~
15058 test -d \$dldir || mkdir -p \$dldir~
15059 $install_prog $dir/$dlname \$dldir/$dlname~
15060 chmod a+x \$dldir/$dlname~
15061 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15062 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15063 fi'
15064 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15065 dlpath=$dir/\$dldll~
15066 $RM \$dlpath'
15067 shlibpath_overrides_runpath=yes
15068
15069 case $host_os in
15070 cygwin*)
15071 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15072 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 15073
1cf3d07d 15074 ;;
d58dead8 15075 mingw* | cegcc*)
1cf3d07d
SE
15076 # MinGW DLLs use traditional 'lib' prefix
15077 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
15078 ;;
15079 pw32*)
15080 # pw32 DLLs use 'pw' prefix rather than 'lib'
15081 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15082 ;;
15083 esac
15084 ;;
15085
15086 *)
15087 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15088 ;;
15089 esac
15090 dynamic_linker='Win32 ld.exe'
15091 # FIXME: first we should search . and the directory the executable is in
15092 shlibpath_var=PATH
15093 ;;
15094
15095darwin* | rhapsody*)
15096 dynamic_linker="$host_os dyld"
15097 version_type=darwin
15098 need_lib_prefix=no
15099 need_version=no
15100 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15101 soname_spec='${libname}${release}${major}$shared_ext'
15102 shlibpath_overrides_runpath=yes
15103 shlibpath_var=DYLD_LIBRARY_PATH
15104 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15105
15106 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15107 ;;
15108
15109dgux*)
15110 version_type=linux
15111 need_lib_prefix=no
15112 need_version=no
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15114 soname_spec='${libname}${release}${shared_ext}$major'
15115 shlibpath_var=LD_LIBRARY_PATH
15116 ;;
15117
1cf3d07d
SE
15118freebsd* | dragonfly*)
15119 # DragonFly does not have aout. When/if they implement a new
15120 # versioning mechanism, adjust this.
15121 if test -x /usr/bin/objformat; then
15122 objformat=`/usr/bin/objformat`
15123 else
15124 case $host_os in
c6084f68 15125 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
15126 *) objformat=elf ;;
15127 esac
15128 fi
15129 version_type=freebsd-$objformat
15130 case $version_type in
15131 freebsd-elf*)
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15133 need_version=no
15134 need_lib_prefix=no
15135 ;;
15136 freebsd-*)
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15138 need_version=yes
15139 ;;
15140 esac
15141 shlibpath_var=LD_LIBRARY_PATH
15142 case $host_os in
c6084f68 15143 freebsd2.*)
1cf3d07d
SE
15144 shlibpath_overrides_runpath=yes
15145 ;;
15146 freebsd3.[01]* | freebsdelf3.[01]*)
15147 shlibpath_overrides_runpath=yes
15148 hardcode_into_libs=yes
15149 ;;
15150 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15151 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15152 shlibpath_overrides_runpath=no
15153 hardcode_into_libs=yes
15154 ;;
15155 *) # from 4.6 on, and DragonFly
15156 shlibpath_overrides_runpath=yes
15157 hardcode_into_libs=yes
15158 ;;
15159 esac
15160 ;;
15161
15162gnu*)
15163 version_type=linux
15164 need_lib_prefix=no
15165 need_version=no
15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15167 soname_spec='${libname}${release}${shared_ext}$major'
15168 shlibpath_var=LD_LIBRARY_PATH
15169 hardcode_into_libs=yes
15170 ;;
15171
43e02a8a
RW
15172haiku*)
15173 version_type=linux
15174 need_lib_prefix=no
15175 need_version=no
15176 dynamic_linker="$host_os runtime_loader"
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15178 soname_spec='${libname}${release}${shared_ext}$major'
15179 shlibpath_var=LIBRARY_PATH
15180 shlibpath_overrides_runpath=yes
15181 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15182 hardcode_into_libs=yes
15183 ;;
15184
1cf3d07d
SE
15185hpux9* | hpux10* | hpux11*)
15186 # Give a soname corresponding to the major version so that dld.sl refuses to
15187 # link against other versions.
15188 version_type=sunos
15189 need_lib_prefix=no
15190 need_version=no
15191 case $host_cpu in
15192 ia64*)
15193 shrext_cmds='.so'
15194 hardcode_into_libs=yes
15195 dynamic_linker="$host_os dld.so"
15196 shlibpath_var=LD_LIBRARY_PATH
15197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199 soname_spec='${libname}${release}${shared_ext}$major'
15200 if test "X$HPUX_IA64_MODE" = X32; then
15201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15202 else
15203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15204 fi
15205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15206 ;;
15207 hppa*64*)
15208 shrext_cmds='.sl'
15209 hardcode_into_libs=yes
15210 dynamic_linker="$host_os dld.sl"
15211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15217 ;;
15218 *)
15219 shrext_cmds='.sl'
15220 dynamic_linker="$host_os dld.sl"
15221 shlibpath_var=SHLIB_PATH
15222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15224 soname_spec='${libname}${release}${shared_ext}$major'
15225 ;;
15226 esac
43e02a8a 15227 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 15228 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
15229 # or fails outright, so override atomically:
15230 install_override_mode=555
1cf3d07d
SE
15231 ;;
15232
15233interix[3-9]*)
15234 version_type=linux
15235 need_lib_prefix=no
15236 need_version=no
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15239 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15240 shlibpath_var=LD_LIBRARY_PATH
15241 shlibpath_overrides_runpath=no
15242 hardcode_into_libs=yes
15243 ;;
15244
15245irix5* | irix6* | nonstopux*)
15246 case $host_os in
15247 nonstopux*) version_type=nonstopux ;;
15248 *)
15249 if test "$lt_cv_prog_gnu_ld" = yes; then
15250 version_type=linux
15251 else
15252 version_type=irix
15253 fi ;;
15254 esac
15255 need_lib_prefix=no
15256 need_version=no
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15259 case $host_os in
15260 irix5* | nonstopux*)
15261 libsuff= shlibsuff=
15262 ;;
15263 *)
15264 case $LD in # libtool.m4 will add one of these switches to LD
15265 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15266 libsuff= shlibsuff= libmagic=32-bit;;
15267 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15268 libsuff=32 shlibsuff=N32 libmagic=N32;;
15269 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15270 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15271 *) libsuff= shlibsuff= libmagic=never-match;;
15272 esac
15273 ;;
15274 esac
15275 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15276 shlibpath_overrides_runpath=no
15277 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15278 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15279 hardcode_into_libs=yes
15280 ;;
15281
15282# No shared lib support for Linux oldld, aout, or coff.
15283linux*oldld* | linux*aout* | linux*coff*)
15284 dynamic_linker=no
15285 ;;
15286
15287# This must be Linux ELF.
7a9d3fe8 15288linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
15289 version_type=linux
15290 need_lib_prefix=no
15291 need_version=no
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15295 shlibpath_var=LD_LIBRARY_PATH
15296 shlibpath_overrides_runpath=no
baafc534 15297
1cf3d07d 15298 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
15299 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15300 $as_echo_n "(cached) " >&6
baafc534
RW
15301else
15302 lt_cv_shlibpath_overrides_runpath=no
15303 save_LDFLAGS=$LDFLAGS
15304 save_libdir=$libdir
15305 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15306 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15307 if test x$gcc_no_link = xyes; then
5213506e 15308 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15309fi
5213506e 15310cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15311 program main
15312
15313 end
9cdc381b 15314_ACEOF
5213506e
RW
15315if ac_fn_fc_try_link "$LINENO"; then :
15316 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 15317 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 15318fi
9cdc381b 15319fi
5213506e
RW
15320rm -f core conftest.err conftest.$ac_objext \
15321 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
15322 LDFLAGS=$save_LDFLAGS
15323 libdir=$save_libdir
15324
15325fi
15326
15327 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
15328
15329 # This implies no fast_install, which is unacceptable.
15330 # Some rework will be needed to allow for fast_install
15331 # before this can be enabled.
15332 hardcode_into_libs=yes
15333
15334 # Append ld.so.conf contents to the search path
15335 if test -f /etc/ld.so.conf; then
43e02a8a 15336 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
15337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15338 fi
15339
15340 # We used to test for /lib/ld.so.1 and disable shared libraries on
15341 # powerpc, because MkLinux only supported shared libraries with the
15342 # GNU dynamic linker. Since this was broken with cross compilers,
15343 # most powerpc-linux boxes support dynamic linking these days and
15344 # people can always --disable-shared, the test was removed, and we
15345 # assume the GNU/Linux dynamic linker is in use.
15346 dynamic_linker='GNU/Linux ld.so'
15347 ;;
15348
15349netbsd*)
15350 version_type=sunos
15351 need_lib_prefix=no
15352 need_version=no
15353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15356 dynamic_linker='NetBSD (a.out) ld.so'
15357 else
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 dynamic_linker='NetBSD ld.elf_so'
15361 fi
15362 shlibpath_var=LD_LIBRARY_PATH
15363 shlibpath_overrides_runpath=yes
15364 hardcode_into_libs=yes
15365 ;;
15366
15367newsos6)
15368 version_type=linux
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 shlibpath_overrides_runpath=yes
15372 ;;
15373
15374*nto* | *qnx*)
15375 version_type=qnx
15376 need_lib_prefix=no
15377 need_version=no
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15379 soname_spec='${libname}${release}${shared_ext}$major'
15380 shlibpath_var=LD_LIBRARY_PATH
15381 shlibpath_overrides_runpath=no
15382 hardcode_into_libs=yes
15383 dynamic_linker='ldqnx.so'
15384 ;;
15385
15386openbsd*)
15387 version_type=sunos
15388 sys_lib_dlsearch_path_spec="/usr/lib"
15389 need_lib_prefix=no
15390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15391 case $host_os in
15392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15393 *) need_version=no ;;
15394 esac
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15399 case $host_os in
15400 openbsd2.[89] | openbsd2.[89].*)
15401 shlibpath_overrides_runpath=no
15402 ;;
15403 *)
15404 shlibpath_overrides_runpath=yes
15405 ;;
15406 esac
15407 else
15408 shlibpath_overrides_runpath=yes
15409 fi
15410 ;;
15411
15412os2*)
15413 libname_spec='$name'
15414 shrext_cmds=".dll"
15415 need_lib_prefix=no
15416 library_names_spec='$libname${shared_ext} $libname.a'
15417 dynamic_linker='OS/2 ld.exe'
15418 shlibpath_var=LIBPATH
15419 ;;
15420
15421osf3* | osf4* | osf5*)
15422 version_type=osf
15423 need_lib_prefix=no
15424 need_version=no
15425 soname_spec='${libname}${release}${shared_ext}$major'
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15427 shlibpath_var=LD_LIBRARY_PATH
15428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15430 ;;
15431
15432rdos*)
15433 dynamic_linker=no
15434 ;;
15435
15436solaris*)
15437 version_type=linux
15438 need_lib_prefix=no
15439 need_version=no
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15441 soname_spec='${libname}${release}${shared_ext}$major'
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=yes
15444 hardcode_into_libs=yes
15445 # ldd complains unless libraries are executable
15446 postinstall_cmds='chmod +x $lib'
15447 ;;
15448
15449sunos4*)
15450 version_type=sunos
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15453 shlibpath_var=LD_LIBRARY_PATH
15454 shlibpath_overrides_runpath=yes
15455 if test "$with_gnu_ld" = yes; then
15456 need_lib_prefix=no
15457 fi
15458 need_version=yes
15459 ;;
15460
15461sysv4 | sysv4.3*)
15462 version_type=linux
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 shlibpath_var=LD_LIBRARY_PATH
15466 case $host_vendor in
15467 sni)
15468 shlibpath_overrides_runpath=no
15469 need_lib_prefix=no
15470 runpath_var=LD_RUN_PATH
15471 ;;
15472 siemens)
15473 need_lib_prefix=no
15474 ;;
15475 motorola)
15476 need_lib_prefix=no
15477 need_version=no
15478 shlibpath_overrides_runpath=no
15479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15480 ;;
15481 esac
15482 ;;
15483
15484sysv4*MP*)
15485 if test -d /usr/nec ;then
15486 version_type=linux
15487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15488 soname_spec='$libname${shared_ext}.$major'
15489 shlibpath_var=LD_LIBRARY_PATH
15490 fi
15491 ;;
15492
15493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15494 version_type=freebsd-elf
15495 need_lib_prefix=no
15496 need_version=no
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15498 soname_spec='${libname}${release}${shared_ext}$major'
15499 shlibpath_var=LD_LIBRARY_PATH
15500 shlibpath_overrides_runpath=yes
15501 hardcode_into_libs=yes
15502 if test "$with_gnu_ld" = yes; then
15503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15504 else
15505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15506 case $host_os in
15507 sco3.2v5*)
15508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15509 ;;
15510 esac
15511 fi
15512 sys_lib_dlsearch_path_spec='/usr/lib'
15513 ;;
15514
15515tpf*)
15516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15517 version_type=linux
15518 need_lib_prefix=no
15519 need_version=no
d58dead8 15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
15521 shlibpath_var=LD_LIBRARY_PATH
15522 shlibpath_overrides_runpath=no
15523 hardcode_into_libs=yes
15524 ;;
15525
15526uts4*)
15527 version_type=linux
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15529 soname_spec='${libname}${release}${shared_ext}$major'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 ;;
15532
15533*)
15534 dynamic_linker=no
15535 ;;
15536esac
5213506e
RW
15537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15538$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
15539test "$dynamic_linker" = no && can_build_shared=no
15540
15541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15542if test "$GCC" = yes; then
15543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9cdc381b 15544fi
9cdc381b 15545
d58dead8
PG
15546if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15547 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15548fi
15549if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15550 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15551fi
15552
9cdc381b 15553
1cf3d07d
SE
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
43e02a8a
RW
15585
15586
1cf3d07d
SE
15587
15588
15589
5213506e
RW
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15591$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
15592hardcode_action_FC=
15593if test -n "$hardcode_libdir_flag_spec_FC" ||
15594 test -n "$runpath_var_FC" ||
15595 test "X$hardcode_automatic_FC" = "Xyes" ; then
15596
15597 # We can hardcode non-existent directories.
15598 if test "$hardcode_direct_FC" != no &&
15599 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15600 # have to relink, otherwise we might link with an installed library
15601 # when we should be linking with a yet-to-be-installed one
15602 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15603 test "$hardcode_minus_L_FC" != no; then
15604 # Linking always hardcodes the temporary library directory.
15605 hardcode_action_FC=relink
15606 else
15607 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15608 hardcode_action_FC=immediate
15609 fi
15610else
15611 # We cannot hardcode anything, or else we can only hardcode existing
15612 # directories.
15613 hardcode_action_FC=unsupported
9cdc381b 15614fi
5213506e
RW
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15616$as_echo "$hardcode_action_FC" >&6; }
1cf3d07d
SE
15617
15618if test "$hardcode_action_FC" = relink ||
15619 test "$inherit_rpath_FC" = yes; then
15620 # Fast installation is not supported
15621 enable_fast_install=no
15622elif test "$shlibpath_overrides_runpath" = yes ||
15623 test "$enable_shared" = no; then
15624 # Fast installation is not necessary
15625 enable_fast_install=needless
9cdc381b
BD
15626fi
15627
1cf3d07d
SE
15628
15629
15630
15631
15632
15633
15634 fi # test -n "$compiler"
15635
d58dead8 15636 GCC=$lt_save_GCC
1cf3d07d
SE
15637 CC="$lt_save_CC"
15638fi # test "$_lt_disable_FC" != yes
15639
dd46a4de 15640ac_ext=c
96b8a615
AJ
15641ac_cpp='$CPP $CPPFLAGS'
15642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15644ac_compiler_gnu=$ac_cv_c_compiler_gnu
1cf3d07d
SE
15645
15646
15647
15648# extra LD Flags which are required for targets
15649case "${host}" in
15650 *-darwin*)
15651 # Darwin needs -single_module when linking libgfortran
15652 extra_ldflags_libgfortran=-Wl,-single_module
15653 ;;
15654esac
15655
15656
15657# We need a working compiler at that point, otherwise give a clear
15658# error message and bail out.
15659
5213506e
RW
15660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15661$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15662ac_ext=${ac_fc_srcext-f}
15663ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15664ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
15665ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15666
5213506e 15667cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15668
15669 program foo
15670 real, parameter :: bar = sin (12.34 / 2.5)
15671 end program foo
6de9cd9a 15672_ACEOF
5213506e
RW
15673if ac_fn_fc_try_compile "$LINENO"; then :
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15675$as_echo "yes" >&6; }
6de9cd9a 15676else
5213506e
RW
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15678$as_echo "no" >&6; }
15679 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 15680
96b8a615 15681fi
5213506e 15682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
15683ac_ext=c
15684ac_cpp='$CPP $CPPFLAGS'
15685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15687ac_compiler_gnu=$ac_cv_c_compiler_gnu
96b8a615 15688
96b8a615 15689
1cf3d07d 15690
5213506e
RW
15691# Check whether --enable-largefile was given.
15692if test "${enable_largefile+set}" = set; then :
15693 enableval=$enable_largefile;
15694fi
1cf3d07d 15695
1cf3d07d
SE
15696if test "$enable_largefile" != no; then
15697
5213506e
RW
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15699$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15700if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15701 $as_echo_n "(cached) " >&6
96b8a615 15702else
1cf3d07d
SE
15703 ac_cv_sys_largefile_CC=no
15704 if test "$GCC" != yes; then
15705 ac_save_CC=$CC
15706 while :; do
5213506e
RW
15707 # IRIX 6.2 and later do not support large files by default,
15708 # so use the C compiler's -n32 option if that helps.
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96b8a615 15710/* end confdefs.h. */
1cf3d07d
SE
15711#include <sys/types.h>
15712 /* Check that off_t can represent 2**63 - 1 correctly.
15713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15714 since some C++ compilers masquerading as C compilers
15715 incorrectly reject 9223372036854775807. */
15716#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
15717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15718 && LARGE_OFF_T % 2147483647 == 1)
15719 ? 1 : -1];
4c4b3eb0
PB
15720int
15721main ()
15722{
4c4b3eb0
PB
15723
15724 ;
15725 return 0;
15726}
15727_ACEOF
5213506e
RW
15728 if ac_fn_c_try_compile "$LINENO"; then :
15729 break
4c4b3eb0 15730fi
5213506e
RW
15731rm -f core conftest.err conftest.$ac_objext
15732 CC="$CC -n32"
15733 if ac_fn_c_try_compile "$LINENO"; then :
15734 ac_cv_sys_largefile_CC=' -n32'; break
15735fi
15736rm -f core conftest.err conftest.$ac_objext
15737 break
15738 done
15739 CC=$ac_save_CC
15740 rm -f conftest.$ac_ext
15741 fi
15742fi
15743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15744$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15745 if test "$ac_cv_sys_largefile_CC" != no; then
15746 CC=$CC$ac_cv_sys_largefile_CC
15747 fi
4c4b3eb0 15748
5213506e
RW
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15750$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15751if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15752 $as_echo_n "(cached) " >&6
15753else
15754 while :; do
15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15756/* end confdefs.h. */
5213506e
RW
15757#include <sys/types.h>
15758 /* Check that off_t can represent 2**63 - 1 correctly.
15759 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15760 since some C++ compilers masquerading as C compilers
15761 incorrectly reject 9223372036854775807. */
15762#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15763 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15764 && LARGE_OFF_T % 2147483647 == 1)
15765 ? 1 : -1];
4c4b3eb0
PB
15766int
15767main ()
15768{
4c4b3eb0
PB
15769
15770 ;
15771 return 0;
15772}
15773_ACEOF
5213506e
RW
15774if ac_fn_c_try_compile "$LINENO"; then :
15775 ac_cv_sys_file_offset_bits=no; break
15776fi
15777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15779/* end confdefs.h. */
5213506e
RW
15780#define _FILE_OFFSET_BITS 64
15781#include <sys/types.h>
15782 /* Check that off_t can represent 2**63 - 1 correctly.
15783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15784 since some C++ compilers masquerading as C compilers
15785 incorrectly reject 9223372036854775807. */
15786#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15788 && LARGE_OFF_T % 2147483647 == 1)
15789 ? 1 : -1];
4c4b3eb0
PB
15790int
15791main ()
15792{
4c4b3eb0
PB
15793
15794 ;
15795 return 0;
15796}
15797_ACEOF
5213506e
RW
15798if ac_fn_c_try_compile "$LINENO"; then :
15799 ac_cv_sys_file_offset_bits=64; break
4c4b3eb0 15800fi
5213506e
RW
15801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802 ac_cv_sys_file_offset_bits=unknown
15803 break
15804done
4c4b3eb0 15805fi
5213506e
RW
15806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15807$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15808case $ac_cv_sys_file_offset_bits in #(
15809 no | unknown) ;;
15810 *)
15811cat >>confdefs.h <<_ACEOF
15812#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4c4b3eb0 15813_ACEOF
5213506e
RW
15814;;
15815esac
15816rm -rf conftest*
15817 if test $ac_cv_sys_file_offset_bits = unknown; then
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15819$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15820if test "${ac_cv_sys_large_files+set}" = set; then :
15821 $as_echo_n "(cached) " >&6
15822else
15823 while :; do
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15825/* end confdefs.h. */
5213506e
RW
15826#include <sys/types.h>
15827 /* Check that off_t can represent 2**63 - 1 correctly.
15828 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15829 since some C++ compilers masquerading as C compilers
15830 incorrectly reject 9223372036854775807. */
15831#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15832 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15833 && LARGE_OFF_T % 2147483647 == 1)
15834 ? 1 : -1];
4c4b3eb0
PB
15835int
15836main ()
15837{
4c4b3eb0
PB
15838
15839 ;
15840 return 0;
15841}
15842_ACEOF
5213506e
RW
15843if ac_fn_c_try_compile "$LINENO"; then :
15844 ac_cv_sys_large_files=no; break
4c4b3eb0 15845fi
5213506e
RW
15846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15848/* end confdefs.h. */
5213506e
RW
15849#define _LARGE_FILES 1
15850#include <sys/types.h>
15851 /* Check that off_t can represent 2**63 - 1 correctly.
15852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15853 since some C++ compilers masquerading as C compilers
15854 incorrectly reject 9223372036854775807. */
15855#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15857 && LARGE_OFF_T % 2147483647 == 1)
15858 ? 1 : -1];
4c4b3eb0
PB
15859int
15860main ()
15861{
15862
4c4b3eb0
PB
15863 ;
15864 return 0;
15865}
15866_ACEOF
5213506e
RW
15867if ac_fn_c_try_compile "$LINENO"; then :
15868 ac_cv_sys_large_files=1; break
4c4b3eb0 15869fi
5213506e
RW
15870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15871 ac_cv_sys_large_files=unknown
15872 break
15873done
38d24731 15874fi
5213506e
RW
15875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15876$as_echo "$ac_cv_sys_large_files" >&6; }
15877case $ac_cv_sys_large_files in #(
15878 no | unknown) ;;
15879 *)
4c4b3eb0 15880cat >>confdefs.h <<_ACEOF
5213506e 15881#define _LARGE_FILES $ac_cv_sys_large_files
4c4b3eb0 15882_ACEOF
5213506e
RW
15883;;
15884esac
15885rm -rf conftest*
15886 fi
4c4b3eb0
PB
15887fi
15888
44720bef
JB
15889
15890# Types
5213506e
RW
15891ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15892if test "x$ac_cv_type_off_t" = x""yes; then :
4c4b3eb0 15893
5213506e 15894else
4c4b3eb0 15895
5213506e
RW
15896cat >>confdefs.h <<_ACEOF
15897#define off_t long int
15898_ACEOF
4c4b3eb0 15899
44720bef
JB
15900fi
15901
15902
15903 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15904if test "x$ac_cv_type_intptr_t" = x""yes; then :
15905
15906$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15907
15908else
15909 for ac_type in 'int' 'long int' 'long long int'; do
15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911/* end confdefs.h. */
15912$ac_includes_default
15913int
15914main ()
15915{
15916static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15917test_array [0] = 0
15918
15919 ;
15920 return 0;
15921}
15922_ACEOF
15923if ac_fn_c_try_compile "$LINENO"; then :
15924
15925cat >>confdefs.h <<_ACEOF
15926#define intptr_t $ac_type
15927_ACEOF
15928
15929 ac_type=
15930fi
15931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15932 test -z "$ac_type" && break
15933 done
15934fi
15935
15936
15937
15938 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15939if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15940
15941$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15942
15943else
15944 for ac_type in 'unsigned int' 'unsigned long int' \
15945 'unsigned long long int'; do
15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947/* end confdefs.h. */
15948$ac_includes_default
15949int
15950main ()
15951{
15952static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15953test_array [0] = 0
15954
15955 ;
15956 return 0;
15957}
15958_ACEOF
15959if ac_fn_c_try_compile "$LINENO"; then :
15960
15961cat >>confdefs.h <<_ACEOF
15962#define uintptr_t $ac_type
15963_ACEOF
15964
15965 ac_type=
15966fi
15967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968 test -z "$ac_type" && break
15969 done
15970fi
15971
15972
15973ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15974if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15975
15976cat >>confdefs.h <<_ACEOF
15977#define HAVE_PTRDIFF_T 1
15978_ACEOF
15979
15980
4c4b3eb0
PB
15981fi
15982
4c4b3eb0 15983
74544378 15984# check header files (we assume C89 is available, so don't check for that)
df65f093 15985
5213506e 15986
df65f093 15987
74544378
JB
15988 for ac_header in $ac_header_list
15989do :
15990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15991ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15992"
15993eval as_val=\$$as_ac_Header
15994 if test "x$as_val" = x""yes; then :
15995 cat >>confdefs.h <<_ACEOF
15996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
df65f093
SK
15997_ACEOF
15998
5213506e 15999fi
df65f093 16000
74544378 16001done
df65f093 16002
5213506e 16003
5213506e 16004
df65f093 16005
5213506e 16006
5213506e 16007
df65f093 16008
df65f093 16009
df65f093
SK
16010
16011
df65f093 16012
df65f093 16013
df65f093
SK
16014
16015
df65f093
SK
16016
16017
41724e6a 16018
2cbcdeba 16019
3969c39f 16020
1fb2002d
FXC
16021
16022
32aa3bff 16023
f77b6ca3 16024
f77b6ca3 16025
f77b6ca3 16026
f77b6ca3 16027
f77b6ca3 16028
f77b6ca3 16029
fa86f4f9
TB
16030
16031
9cbecd06
JB
16032
16033
f77b6ca3 16034
f77b6ca3 16035
6de9cd9a 16036
c13e029b 16037inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
6de9cd9a 16038
c13e029b
PB
16039acx_cv_header_stdint=stddef.h
16040acx_cv_header_stdint_kind="(already complete)"
16041for i in stdint.h $inttype_headers; do
16042 unset ac_cv_type_uintptr_t
16043 unset ac_cv_type_uintmax_t
16044 unset ac_cv_type_int_least32_t
16045 unset ac_cv_type_int_fast32_t
16046 unset ac_cv_type_uint64_t
16047 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16048 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16049#include <$i>
16050"
16051if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16052 acx_cv_header_stdint=$i
5213506e 16053else
c13e029b 16054 continue
5213506e 16055fi
6de9cd9a 16056
c13e029b
PB
16057 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16058#include <$i>
16059"
16060if test "x$ac_cv_type_uintptr_t" = x""yes; then :
96b8a615 16061
5213506e 16062else
c13e029b 16063 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16064fi
96b8a615 16065
c13e029b
PB
16066 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16067#include <$i>
16068"
16069if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16070
f77b6ca3 16071else
c13e029b 16072 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16073fi
5213506e 16074
c13e029b
PB
16075 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16076#include <$i>
16077"
16078if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
f77b6ca3 16079
c13e029b
PB
16080else
16081 acx_cv_header_stdint_kind="(mostly complete)"
16082fi
d72a3ac1 16083
c13e029b
PB
16084 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16085#include <$i>
16086"
16087if test "x$ac_cv_type_uint64_t" = x""yes; then :
d72a3ac1 16088
5213506e 16089else
c13e029b
PB
16090 acx_cv_header_stdint_kind="(lacks uint64_t)"
16091fi
f77b6ca3 16092
c13e029b
PB
16093 break
16094done
16095if test "$acx_cv_header_stdint" = stddef.h; then
16096 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16097 for i in stdint.h $inttype_headers; do
16098 unset ac_cv_type_uintptr_t
16099 unset ac_cv_type_uint32_t
16100 unset ac_cv_type_uint64_t
16101 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16102 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16103#include <$i>
16104"
16105if test "x$ac_cv_type_uint32_t" = x""yes; then :
16106 acx_cv_header_stdint=$i
16107else
16108 continue
5213506e 16109fi
f77b6ca3 16110
c13e029b
PB
16111 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16112#include <$i>
16113"
16114if test "x$ac_cv_type_uint64_t" = x""yes; then :
8845001b 16115
c13e029b 16116fi
185d7d97 16117
c13e029b
PB
16118 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16119#include <$i>
16120"
16121if test "x$ac_cv_type_uintptr_t" = x""yes; then :
185d7d97 16122
c13e029b 16123fi
35059811 16124
c13e029b
PB
16125 break
16126 done
16127fi
16128if test "$acx_cv_header_stdint" = stddef.h; then
16129 acx_cv_header_stdint_kind="(u_intXX_t style)"
16130 for i in sys/types.h $inttype_headers; do
16131 unset ac_cv_type_u_int32_t
16132 unset ac_cv_type_u_int64_t
16133 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16134 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16135#include <$i>
16136"
16137if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16138 acx_cv_header_stdint=$i
d72a3ac1 16139else
c13e029b
PB
16140 continue
16141fi
a119fc1c 16142
c13e029b
PB
16143 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16144#include <$i>
16145"
16146if test "x$ac_cv_type_u_int64_t" = x""yes; then :
a119fc1c 16147
c13e029b 16148fi
a119fc1c 16149
c13e029b
PB
16150 break
16151 done
a119fc1c 16152fi
c13e029b
PB
16153if test "$acx_cv_header_stdint" = stddef.h; then
16154 acx_cv_header_stdint_kind="(using manual detection)"
5213506e 16155fi
a119fc1c 16156
c13e029b
PB
16157test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16158test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16159test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16160test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16161test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
a119fc1c 16162
c13e029b 16163# ----------------- Summarize what we found so far
5213506e 16164
c13e029b
PB
16165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16166$as_echo_n "checking what to include in gstdint.h... " >&6; }
a119fc1c 16167
c13e029b
PB
16168case `$as_basename -- gstdint.h ||
16169$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16170 Xgstdint.h : 'X\(//\)$' \| \
16171 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16172$as_echo X/gstdint.h |
16173 sed '/^.*\/\([^/][^/]*\)\/*$/{
16174 s//\1/
16175 q
16176 }
16177 /^X\/\(\/\/\)$/{
16178 s//\1/
16179 q
16180 }
16181 /^X\/\(\/\).*/{
16182 s//\1/
16183 q
16184 }
16185 s/.*/./; q'` in
16186 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16187$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16188 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16189$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16190 *) ;;
16191esac
a119fc1c 16192
c13e029b
PB
16193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16194$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
a63a0959 16195
c13e029b 16196# ----------------- done included file, check C basic types --------
868d75db 16197
c13e029b
PB
16198# Lacking an uintptr_t? Test size of void *
16199case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16200 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16201# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16202# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16203# This bug is HP SR number 8606223364.
16204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16205$as_echo_n "checking size of void *... " >&6; }
16206if test "${ac_cv_sizeof_void_p+set}" = set; then :
16207 $as_echo_n "(cached) " >&6
16208else
16209 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
868d75db 16210
c13e029b
PB
16211else
16212 if test "$ac_cv_type_void_p" = yes; then
16213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16215{ as_fn_set_status 77
16216as_fn_error "cannot compute sizeof (void *)
16217See \`config.log' for more details." "$LINENO" 5; }; }
16218 else
16219 ac_cv_sizeof_void_p=0
16220 fi
16221fi
d72a3ac1 16222
c13e029b
PB
16223fi
16224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16225$as_echo "$ac_cv_sizeof_void_p" >&6; }
d72a3ac1 16226
868d75db
FXC
16227
16228
d72a3ac1 16229cat >>confdefs.h <<_ACEOF
c13e029b 16230#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
d72a3ac1 16231_ACEOF
d72a3ac1 16232
c13e029b
PB
16233 ;;
16234esac
d72a3ac1 16235
c13e029b
PB
16236# Lacking an uint64_t? Test size of long
16237case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16238 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16239# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16240# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16241# This bug is HP SR number 8606223364.
16242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16243$as_echo_n "checking size of long... " >&6; }
16244if test "${ac_cv_sizeof_long+set}" = set; then :
5213506e
RW
16245 $as_echo_n "(cached) " >&6
16246else
c13e029b 16247 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
d72a3ac1 16248
7f483eec 16249else
c13e029b
PB
16250 if test "$ac_cv_type_long" = yes; then
16251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16253{ as_fn_set_status 77
16254as_fn_error "cannot compute sizeof (long)
16255See \`config.log' for more details." "$LINENO" 5; }; }
16256 else
16257 ac_cv_sizeof_long=0
16258 fi
5213506e 16259fi
7f483eec 16260
c13e029b
PB
16261fi
16262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16263$as_echo "$ac_cv_sizeof_long" >&6; }
d72a3ac1 16264
7f483eec 16265
d72a3ac1
PB
16266
16267cat >>confdefs.h <<_ACEOF
c13e029b 16268#define SIZEOF_LONG $ac_cv_sizeof_long
d72a3ac1 16269_ACEOF
7f483eec 16270
c13e029b
PB
16271 ;;
16272esac
29e86cb0 16273
c13e029b
PB
16274if test $acx_cv_header_stdint = stddef.h; then
16275 # Lacking a good header? Test size of everything and deduce all types.
16276 # The cast to long int works around a bug in the HP C Compiler
16277# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16278# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16279# This bug is HP SR number 8606223364.
16280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16281$as_echo_n "checking size of int... " >&6; }
16282if test "${ac_cv_sizeof_int+set}" = set; then :
16283 $as_echo_n "(cached) " >&6
16284else
16285 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6422c112 16286
c13e029b
PB
16287else
16288 if test "$ac_cv_type_int" = yes; then
16289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16291{ as_fn_set_status 77
16292as_fn_error "cannot compute sizeof (int)
16293See \`config.log' for more details." "$LINENO" 5; }; }
16294 else
16295 ac_cv_sizeof_int=0
16296 fi
16297fi
d8163f5c 16298
c13e029b
PB
16299fi
16300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16301$as_echo "$ac_cv_sizeof_int" >&6; }
2515e5a7
FXC
16302
16303
868d75db 16304
d72a3ac1 16305cat >>confdefs.h <<_ACEOF
c13e029b 16306#define SIZEOF_INT $ac_cv_sizeof_int
d72a3ac1
PB
16307_ACEOF
16308
d72a3ac1 16309
c13e029b
PB
16310 # The cast to long int works around a bug in the HP C Compiler
16311# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16312# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16313# This bug is HP SR number 8606223364.
16314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16315$as_echo_n "checking size of short... " >&6; }
16316if test "${ac_cv_sizeof_short+set}" = set; then :
16317 $as_echo_n "(cached) " >&6
16318else
16319 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
d72a3ac1 16320
c13e029b
PB
16321else
16322 if test "$ac_cv_type_short" = yes; then
16323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16325{ as_fn_set_status 77
16326as_fn_error "cannot compute sizeof (short)
16327See \`config.log' for more details." "$LINENO" 5; }; }
16328 else
16329 ac_cv_sizeof_short=0
16330 fi
16331fi
d72a3ac1 16332
c13e029b
PB
16333fi
16334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16335$as_echo "$ac_cv_sizeof_short" >&6; }
d72a3ac1
PB
16336
16337
16338
c13e029b
PB
16339cat >>confdefs.h <<_ACEOF
16340#define SIZEOF_SHORT $ac_cv_sizeof_short
16341_ACEOF
d72a3ac1
PB
16342
16343
c13e029b
PB
16344 # The cast to long int works around a bug in the HP C Compiler
16345# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16346# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16347# This bug is HP SR number 8606223364.
16348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16349$as_echo_n "checking size of char... " >&6; }
16350if test "${ac_cv_sizeof_char+set}" = set; then :
16351 $as_echo_n "(cached) " >&6
16352else
16353 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
d72a3ac1 16354
c13e029b
PB
16355else
16356 if test "$ac_cv_type_char" = yes; then
16357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16359{ as_fn_set_status 77
16360as_fn_error "cannot compute sizeof (char)
16361See \`config.log' for more details." "$LINENO" 5; }; }
16362 else
16363 ac_cv_sizeof_char=0
16364 fi
16365fi
d72a3ac1 16366
c13e029b
PB
16367fi
16368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16369$as_echo "$ac_cv_sizeof_char" >&6; }
d72a3ac1
PB
16370
16371
d72a3ac1 16372
5213506e 16373cat >>confdefs.h <<_ACEOF
c13e029b 16374#define SIZEOF_CHAR $ac_cv_sizeof_char
868d75db 16375_ACEOF
868d75db 16376
868d75db 16377
2017c370 16378
c13e029b
PB
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16380$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16381 case "$ac_cv_sizeof_char" in
16382 1) acx_cv_type_int8_t=char ;;
75bc9e5e 16383 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16384 esac
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16386$as_echo "$acx_cv_type_int8_t" >&6; }
16387
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16389$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16390 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16391 2:*) acx_cv_type_int16_t=int ;;
16392 *:2) acx_cv_type_int16_t=short ;;
75bc9e5e 16393 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16394 esac
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16396$as_echo "$acx_cv_type_int16_t" >&6; }
16397
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16399$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16400 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16401 4:*) acx_cv_type_int32_t=int ;;
16402 *:4) acx_cv_type_int32_t=long ;;
75bc9e5e 16403 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16404 esac
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16406$as_echo "$acx_cv_type_int32_t" >&6; }
5213506e
RW
16407fi
16408
c13e029b 16409# These tests are here to make the output prettier
d72a3ac1 16410
c13e029b
PB
16411if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16412 case "$ac_cv_sizeof_long" in
16413 8) acx_cv_type_int64_t=long ;;
16414 esac
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16416$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16418$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16419fi
16420
16421# Now we can use the above types
16422
16423if test "$ac_cv_type_uintptr_t" != yes; then
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16425$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16426 case $ac_cv_sizeof_void_p in
16427 2) acx_cv_type_intptr_t=int16_t ;;
16428 4) acx_cv_type_intptr_t=int32_t ;;
16429 8) acx_cv_type_intptr_t=int64_t ;;
75bc9e5e 16430 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c13e029b
PB
16431 esac
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16433$as_echo "$acx_cv_type_intptr_t" >&6; }
16434fi
d72a3ac1 16435
c13e029b 16436# ----------------- done all checks, emit header -------------
5213506e 16437ac_config_commands="$ac_config_commands gstdint.h"
2017c370 16438
2017c370 16439
5213506e
RW
16440
16441
16442ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16443if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16444
16445cat >>confdefs.h <<_ACEOF
16446#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
2017c370 16447_ACEOF
2017c370 16448
5213506e 16449
2017c370 16450fi
5213506e
RW
16451ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16452if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16453
16454cat >>confdefs.h <<_ACEOF
16455#define HAVE_STRUCT_STAT_ST_BLOCKS 1
2017c370
JB
16456_ACEOF
16457
5213506e 16458
2017c370 16459fi
5213506e
RW
16460ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16461if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
2017c370 16462
5213506e
RW
16463cat >>confdefs.h <<_ACEOF
16464#define HAVE_STRUCT_STAT_ST_RDEV 1
16465_ACEOF
868d75db
FXC
16466
16467
f02d008e 16468fi
5213506e
RW
16469
16470
bd459d0b
JG
16471case "${host}--x${with_newlib}" in
16472 mips*--xyes)
16473 hardwire_newlib=1;;
d3ca2257
NS
16474 nvptx*--xyes)
16475 hardwire_newlib=1;;
bd459d0b
JG
16476esac
16477
5213506e 16478# Check for library functions.
bd459d0b 16479if test "${hardwire_newlib:-0}" -eq 1; then
b4005c71
SE
16480 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16481 # may not work correctly, because the compiler may not be able to
16482 # link executables.
16483
16484$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16485
16486
16487$as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16488
16489
b4005c71
SE
16490$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16491
16492
b4005c71
SE
16493$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16494
16495
16496$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16497
16498
16499$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16500
cb83df66 16501
ebfedee6
HPN
16502$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16503
16504
16505$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16506
16507
cb83df66
SE
16508 # At some point, we should differentiate between architectures
16509 # like x86, which have long double versions, and alpha/powerpc/etc.,
16510 # which don't. For the time being, punt.
16511 if test x"long_double_math_on_this_cpu" = x"yes"; then
16512
16513$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16514
16515 fi
b4005c71 16516else
f77b6ca3 16517
f77b6ca3 16518
74544378
JB
16519
16520 for ac_func in $ac_func_list
5213506e
RW
16521do :
16522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16523ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16524eval as_val=\$$as_ac_var
16525 if test "x$as_val" = x""yes; then :
16526 cat >>confdefs.h <<_ACEOF
16527#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16528_ACEOF
f77b6ca3 16529
5213506e
RW
16530fi
16531done
f77b6ca3 16532
f77b6ca3 16533
5213506e 16534
96b8a615 16535
5213506e 16536
5213506e 16537
5213506e 16538
6de9cd9a 16539
6de9cd9a 16540
b6e7a3d1 16541
b6e7a3d1 16542
6de9cd9a 16543
4c0c6b9f 16544
4c0c6b9f 16545
4c0c6b9f 16546
4c0c6b9f 16547
4c0c6b9f 16548
4c0c6b9f 16549
4c0c6b9f 16550
4c0c6b9f 16551
868d75db 16552
868d75db 16553
868d75db 16554
868d75db 16555
4c0c6b9f 16556
4c0c6b9f 16557
4c0c6b9f 16558
4c0c6b9f 16559
6422c112 16560
6422c112 16561
6422c112 16562
74544378
JB
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
68ee9c08 16619
227e441f 16620
9cbecd06
JB
16621
16622
4269f19c
JB
16623
16624
b5b58343
UW
16625
16626
70480968
JB
16627
16628
227e441f 16629
8ecd1c0d
TB
16630
16631
b4005c71 16632fi
74544378 16633
4179e59a
TB
16634# Check strerror_r, cannot be above as versions with two and three arguments exist
16635
16636 ac_save_CFLAGS="$CFLAGS"
16637 CFLAGS="-Wimplicit-function-declaration -Werror"
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h. */
16640#define _GNU_SOURCE 1
16641 #include <string.h>
16642 #include <locale.h>
16643int
16644main ()
16645{
16646char s[128]; strerror_r(5, s, 128);
16647 ;
16648 return 0;
16649}
16650_ACEOF
16651if ac_fn_c_try_compile "$LINENO"; then :
16652
16653$as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16654
16655fi
16656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16657 CFLAGS="$ac_save_CFLAGS"
16658
16659 ac_save_CFLAGS="$CFLAGS"
16660 CFLAGS="-Wimplicit-function-declaration -Werror"
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662/* end confdefs.h. */
16663#define _GNU_SOURCE 1
16664 #include <string.h>
16665 #include <locale.h>
16666int
16667main ()
16668{
16669char s[128]; strerror_r(5, s);
16670 ;
16671 return 0;
16672}
16673_ACEOF
16674if ac_fn_c_try_compile "$LINENO"; then :
16675
16676$as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16677
16678fi
16679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680 CFLAGS="$ac_save_CFLAGS"
6422c112 16681
4c0c6b9f 16682
453310d8 16683# Check for C99 (and other IEEE) math functions
db9f46a9
TG
16684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16685$as_echo_n "checking for sin in -lm... " >&6; }
16686if test "${ac_cv_lib_m_sin+set}" = set; then :
5213506e 16687 $as_echo_n "(cached) " >&6
453310d8
RS
16688else
16689 ac_check_lib_save_LIBS=$LIBS
16690LIBS="-lm $LIBS"
f02d008e 16691if test x$gcc_no_link = xyes; then
5213506e 16692 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16693fi
5213506e 16694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16695/* end confdefs.h. */
16696
5213506e
RW
16697/* Override any GCC internal prototype to avoid an error.
16698 Use char because int might match the return type of a GCC
16699 builtin and then its argument prototype would still apply. */
453310d8
RS
16700#ifdef __cplusplus
16701extern "C"
16702#endif
db9f46a9 16703char sin ();
453310d8
RS
16704int
16705main ()
16706{
db9f46a9 16707return sin ();
453310d8
RS
16708 ;
16709 return 0;
16710}
16711_ACEOF
5213506e 16712if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16713 ac_cv_lib_m_sin=yes
453310d8 16714else
db9f46a9 16715 ac_cv_lib_m_sin=no
453310d8 16716fi
5213506e
RW
16717rm -f core conftest.err conftest.$ac_objext \
16718 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
16719LIBS=$ac_check_lib_save_LIBS
16720fi
db9f46a9
TG
16721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16722$as_echo "$ac_cv_lib_m_sin" >&6; }
16723if test "x$ac_cv_lib_m_sin" = x""yes; then :
16724 cat >>confdefs.h <<_ACEOF
16725#define HAVE_LIBM 1
16726_ACEOF
453310d8 16727
db9f46a9 16728 LIBS="-lm $LIBS"
453310d8
RS
16729
16730fi
16731
db9f46a9
TG
16732
16733
16734
16735
16736
16737
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16739$as_echo_n "checking for acosf... " >&6; }
16740if test "${gcc_cv_math_func_acosf+set}" = set; then :
5213506e 16741 $as_echo_n "(cached) " >&6
f02d008e 16742else
db9f46a9 16743 if test x$gcc_no_link = xyes; then
5213506e 16744 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16745fi
5213506e 16746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16747/* end confdefs.h. */
16748
db9f46a9
TG
16749#ifdef HAVE_COMPLEX_H
16750#include <complex.h>
16751#endif
16752#ifdef HAVE_MATH_H
16753#include <math.h>
f02d008e 16754#endif
db9f46a9
TG
16755
16756int (*ptr)() = (int (*)())acosf;
16757
f02d008e
JD
16758int
16759main ()
16760{
f02d008e
JD
16761 return 0;
16762}
db9f46a9 16763
f02d008e 16764_ACEOF
5213506e 16765if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16766 gcc_cv_math_func_acosf=yes
f02d008e 16767else
db9f46a9 16768 gcc_cv_math_func_acosf=no
f02d008e 16769fi
5213506e
RW
16770rm -f core conftest.err conftest.$ac_objext \
16771 conftest$ac_exeext conftest.$ac_ext
f02d008e 16772fi
db9f46a9
TG
16773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16774$as_echo "$gcc_cv_math_func_acosf" >&6; }
16775 if test $gcc_cv_math_func_acosf = yes; then
f1cdfa01 16776
f38a14ca
TG
16777cat >>confdefs.h <<_ACEOF
16778#define HAVE_ACOSF 1
16779_ACEOF
db9f46a9
TG
16780
16781 fi
f02d008e 16782
f02d008e 16783
f02d008e 16784
db9f46a9
TG
16785
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16787$as_echo_n "checking for acos... " >&6; }
16788if test "${gcc_cv_math_func_acos+set}" = set; then :
5213506e 16789 $as_echo_n "(cached) " >&6
453310d8 16790else
db9f46a9 16791 if test x$gcc_no_link = xyes; then
5213506e 16792 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16793fi
5213506e 16794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16795/* end confdefs.h. */
16796
db9f46a9
TG
16797#ifdef HAVE_COMPLEX_H
16798#include <complex.h>
453310d8 16799#endif
db9f46a9
TG
16800#ifdef HAVE_MATH_H
16801#include <math.h>
16802#endif
16803
16804int (*ptr)() = (int (*)())acos;
16805
453310d8
RS
16806int
16807main ()
16808{
453310d8
RS
16809 return 0;
16810}
db9f46a9 16811
453310d8 16812_ACEOF
5213506e 16813if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16814 gcc_cv_math_func_acos=yes
453310d8 16815else
db9f46a9 16816 gcc_cv_math_func_acos=no
453310d8 16817fi
5213506e
RW
16818rm -f core conftest.err conftest.$ac_objext \
16819 conftest$ac_exeext conftest.$ac_ext
453310d8 16820fi
db9f46a9
TG
16821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16822$as_echo "$gcc_cv_math_func_acos" >&6; }
16823 if test $gcc_cv_math_func_acos = yes; then
f1cdfa01 16824
f38a14ca
TG
16825cat >>confdefs.h <<_ACEOF
16826#define HAVE_ACOS 1
16827_ACEOF
db9f46a9
TG
16828
16829 fi
16830
453310d8 16831
453310d8 16832
453310d8 16833
db9f46a9
TG
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16835$as_echo_n "checking for acosl... " >&6; }
16836if test "${gcc_cv_math_func_acosl+set}" = set; then :
5213506e 16837 $as_echo_n "(cached) " >&6
f02d008e 16838else
db9f46a9 16839 if test x$gcc_no_link = xyes; then
5213506e 16840 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16841fi
5213506e 16842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16843/* end confdefs.h. */
16844
db9f46a9
TG
16845#ifdef HAVE_COMPLEX_H
16846#include <complex.h>
16847#endif
16848#ifdef HAVE_MATH_H
16849#include <math.h>
f02d008e 16850#endif
db9f46a9
TG
16851
16852int (*ptr)() = (int (*)())acosl;
16853
f02d008e
JD
16854int
16855main ()
16856{
f02d008e
JD
16857 return 0;
16858}
db9f46a9 16859
f02d008e 16860_ACEOF
5213506e 16861if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16862 gcc_cv_math_func_acosl=yes
f02d008e 16863else
db9f46a9 16864 gcc_cv_math_func_acosl=no
f02d008e 16865fi
5213506e
RW
16866rm -f core conftest.err conftest.$ac_objext \
16867 conftest$ac_exeext conftest.$ac_ext
f02d008e 16868fi
db9f46a9
TG
16869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16870$as_echo "$gcc_cv_math_func_acosl" >&6; }
16871 if test $gcc_cv_math_func_acosl = yes; then
f1cdfa01 16872
f38a14ca
TG
16873cat >>confdefs.h <<_ACEOF
16874#define HAVE_ACOSL 1
16875_ACEOF
db9f46a9
TG
16876
16877 fi
f02d008e 16878
f02d008e 16879
f02d008e 16880
db9f46a9
TG
16881
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16883$as_echo_n "checking for acoshf... " >&6; }
16884if test "${gcc_cv_math_func_acoshf+set}" = set; then :
5213506e 16885 $as_echo_n "(cached) " >&6
453310d8 16886else
db9f46a9 16887 if test x$gcc_no_link = xyes; then
5213506e 16888 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16889fi
5213506e 16890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16891/* end confdefs.h. */
16892
db9f46a9
TG
16893#ifdef HAVE_COMPLEX_H
16894#include <complex.h>
453310d8 16895#endif
db9f46a9
TG
16896#ifdef HAVE_MATH_H
16897#include <math.h>
16898#endif
16899
16900int (*ptr)() = (int (*)())acoshf;
16901
453310d8
RS
16902int
16903main ()
16904{
453310d8
RS
16905 return 0;
16906}
db9f46a9 16907
453310d8 16908_ACEOF
5213506e 16909if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16910 gcc_cv_math_func_acoshf=yes
453310d8 16911else
db9f46a9 16912 gcc_cv_math_func_acoshf=no
453310d8 16913fi
5213506e
RW
16914rm -f core conftest.err conftest.$ac_objext \
16915 conftest$ac_exeext conftest.$ac_ext
453310d8 16916fi
db9f46a9
TG
16917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16918$as_echo "$gcc_cv_math_func_acoshf" >&6; }
16919 if test $gcc_cv_math_func_acoshf = yes; then
f1cdfa01 16920
f38a14ca
TG
16921cat >>confdefs.h <<_ACEOF
16922#define HAVE_ACOSHF 1
16923_ACEOF
453310d8 16924
db9f46a9 16925 fi
453310d8 16926
453310d8 16927
db9f46a9
TG
16928
16929
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16931$as_echo_n "checking for acosh... " >&6; }
16932if test "${gcc_cv_math_func_acosh+set}" = set; then :
5213506e 16933 $as_echo_n "(cached) " >&6
453310d8 16934else
db9f46a9 16935 if test x$gcc_no_link = xyes; then
5213506e 16936 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16937fi
5213506e 16938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16939/* end confdefs.h. */
16940
db9f46a9
TG
16941#ifdef HAVE_COMPLEX_H
16942#include <complex.h>
16943#endif
16944#ifdef HAVE_MATH_H
16945#include <math.h>
453310d8 16946#endif
db9f46a9
TG
16947
16948int (*ptr)() = (int (*)())acosh;
16949
453310d8
RS
16950int
16951main ()
16952{
5213506e
RW
16953 return 0;
16954}
db9f46a9 16955
5213506e
RW
16956_ACEOF
16957if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16958 gcc_cv_math_func_acosh=yes
453310d8 16959else
db9f46a9 16960 gcc_cv_math_func_acosh=no
453310d8 16961fi
5213506e
RW
16962rm -f core conftest.err conftest.$ac_objext \
16963 conftest$ac_exeext conftest.$ac_ext
453310d8 16964fi
db9f46a9
TG
16965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16966$as_echo "$gcc_cv_math_func_acosh" >&6; }
16967 if test $gcc_cv_math_func_acosh = yes; then
f1cdfa01 16968
f38a14ca
TG
16969cat >>confdefs.h <<_ACEOF
16970#define HAVE_ACOSH 1
16971_ACEOF
db9f46a9
TG
16972
16973 fi
453310d8 16974
453310d8 16975
453310d8 16976
db9f46a9
TG
16977
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16979$as_echo_n "checking for acoshl... " >&6; }
16980if test "${gcc_cv_math_func_acoshl+set}" = set; then :
5213506e 16981 $as_echo_n "(cached) " >&6
f02d008e 16982else
db9f46a9 16983 if test x$gcc_no_link = xyes; then
5213506e 16984 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16985fi
5213506e 16986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16987/* end confdefs.h. */
16988
db9f46a9
TG
16989#ifdef HAVE_COMPLEX_H
16990#include <complex.h>
f02d008e 16991#endif
db9f46a9
TG
16992#ifdef HAVE_MATH_H
16993#include <math.h>
16994#endif
16995
16996int (*ptr)() = (int (*)())acoshl;
16997
f02d008e
JD
16998int
16999main ()
17000{
f02d008e
JD
17001 return 0;
17002}
db9f46a9 17003
f02d008e 17004_ACEOF
5213506e 17005if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17006 gcc_cv_math_func_acoshl=yes
f02d008e 17007else
db9f46a9 17008 gcc_cv_math_func_acoshl=no
f02d008e 17009fi
5213506e
RW
17010rm -f core conftest.err conftest.$ac_objext \
17011 conftest$ac_exeext conftest.$ac_ext
f02d008e 17012fi
db9f46a9
TG
17013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17014$as_echo "$gcc_cv_math_func_acoshl" >&6; }
17015 if test $gcc_cv_math_func_acoshl = yes; then
f1cdfa01 17016
f38a14ca
TG
17017cat >>confdefs.h <<_ACEOF
17018#define HAVE_ACOSHL 1
17019_ACEOF
db9f46a9
TG
17020
17021 fi
17022
f02d008e 17023
f02d008e 17024
f02d008e 17025
db9f46a9
TG
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17027$as_echo_n "checking for asinf... " >&6; }
17028if test "${gcc_cv_math_func_asinf+set}" = set; then :
5213506e 17029 $as_echo_n "(cached) " >&6
453310d8 17030else
db9f46a9 17031 if test x$gcc_no_link = xyes; then
5213506e 17032 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17033fi
5213506e 17034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17035/* end confdefs.h. */
17036
db9f46a9
TG
17037#ifdef HAVE_COMPLEX_H
17038#include <complex.h>
17039#endif
17040#ifdef HAVE_MATH_H
17041#include <math.h>
453310d8 17042#endif
db9f46a9
TG
17043
17044int (*ptr)() = (int (*)())asinf;
17045
453310d8
RS
17046int
17047main ()
17048{
453310d8
RS
17049 return 0;
17050}
db9f46a9 17051
453310d8 17052_ACEOF
5213506e 17053if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17054 gcc_cv_math_func_asinf=yes
453310d8 17055else
db9f46a9 17056 gcc_cv_math_func_asinf=no
453310d8 17057fi
5213506e
RW
17058rm -f core conftest.err conftest.$ac_objext \
17059 conftest$ac_exeext conftest.$ac_ext
453310d8 17060fi
db9f46a9
TG
17061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17062$as_echo "$gcc_cv_math_func_asinf" >&6; }
17063 if test $gcc_cv_math_func_asinf = yes; then
f1cdfa01 17064
f38a14ca
TG
17065cat >>confdefs.h <<_ACEOF
17066#define HAVE_ASINF 1
17067_ACEOF
db9f46a9
TG
17068
17069 fi
453310d8 17070
453310d8 17071
453310d8 17072
db9f46a9
TG
17073
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17075$as_echo_n "checking for asin... " >&6; }
17076if test "${gcc_cv_math_func_asin+set}" = set; then :
5213506e 17077 $as_echo_n "(cached) " >&6
453310d8 17078else
db9f46a9 17079 if test x$gcc_no_link = xyes; then
5213506e 17080 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17081fi
5213506e 17082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17083/* end confdefs.h. */
17084
db9f46a9
TG
17085#ifdef HAVE_COMPLEX_H
17086#include <complex.h>
453310d8 17087#endif
db9f46a9
TG
17088#ifdef HAVE_MATH_H
17089#include <math.h>
17090#endif
17091
17092int (*ptr)() = (int (*)())asin;
17093
453310d8
RS
17094int
17095main ()
17096{
453310d8
RS
17097 return 0;
17098}
db9f46a9 17099
453310d8 17100_ACEOF
5213506e 17101if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17102 gcc_cv_math_func_asin=yes
453310d8 17103else
db9f46a9 17104 gcc_cv_math_func_asin=no
453310d8 17105fi
5213506e
RW
17106rm -f core conftest.err conftest.$ac_objext \
17107 conftest$ac_exeext conftest.$ac_ext
453310d8 17108fi
db9f46a9
TG
17109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17110$as_echo "$gcc_cv_math_func_asin" >&6; }
17111 if test $gcc_cv_math_func_asin = yes; then
f1cdfa01 17112
f38a14ca
TG
17113cat >>confdefs.h <<_ACEOF
17114#define HAVE_ASIN 1
17115_ACEOF
453310d8 17116
db9f46a9 17117 fi
453310d8 17118
453310d8 17119
db9f46a9
TG
17120
17121
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17123$as_echo_n "checking for asinl... " >&6; }
17124if test "${gcc_cv_math_func_asinl+set}" = set; then :
5213506e 17125 $as_echo_n "(cached) " >&6
453310d8 17126else
db9f46a9 17127 if test x$gcc_no_link = xyes; then
5213506e 17128 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17129fi
5213506e 17130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17131/* end confdefs.h. */
17132
db9f46a9
TG
17133#ifdef HAVE_COMPLEX_H
17134#include <complex.h>
17135#endif
17136#ifdef HAVE_MATH_H
17137#include <math.h>
453310d8 17138#endif
db9f46a9
TG
17139
17140int (*ptr)() = (int (*)())asinl;
17141
453310d8
RS
17142int
17143main ()
17144{
453310d8
RS
17145 return 0;
17146}
db9f46a9 17147
453310d8 17148_ACEOF
5213506e 17149if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17150 gcc_cv_math_func_asinl=yes
453310d8 17151else
db9f46a9 17152 gcc_cv_math_func_asinl=no
453310d8 17153fi
5213506e
RW
17154rm -f core conftest.err conftest.$ac_objext \
17155 conftest$ac_exeext conftest.$ac_ext
453310d8 17156fi
db9f46a9
TG
17157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17158$as_echo "$gcc_cv_math_func_asinl" >&6; }
17159 if test $gcc_cv_math_func_asinl = yes; then
f1cdfa01 17160
f38a14ca
TG
17161cat >>confdefs.h <<_ACEOF
17162#define HAVE_ASINL 1
17163_ACEOF
db9f46a9
TG
17164
17165 fi
453310d8 17166
453310d8 17167
453310d8 17168
db9f46a9
TG
17169
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17171$as_echo_n "checking for asinhf... " >&6; }
17172if test "${gcc_cv_math_func_asinhf+set}" = set; then :
5213506e 17173 $as_echo_n "(cached) " >&6
453310d8 17174else
db9f46a9 17175 if test x$gcc_no_link = xyes; then
5213506e 17176 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17177fi
5213506e 17178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17179/* end confdefs.h. */
17180
db9f46a9
TG
17181#ifdef HAVE_COMPLEX_H
17182#include <complex.h>
453310d8 17183#endif
db9f46a9
TG
17184#ifdef HAVE_MATH_H
17185#include <math.h>
17186#endif
17187
17188int (*ptr)() = (int (*)())asinhf;
17189
453310d8
RS
17190int
17191main ()
17192{
453310d8
RS
17193 return 0;
17194}
db9f46a9 17195
453310d8 17196_ACEOF
5213506e 17197if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17198 gcc_cv_math_func_asinhf=yes
453310d8 17199else
db9f46a9 17200 gcc_cv_math_func_asinhf=no
453310d8 17201fi
5213506e
RW
17202rm -f core conftest.err conftest.$ac_objext \
17203 conftest$ac_exeext conftest.$ac_ext
453310d8 17204fi
db9f46a9
TG
17205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17206$as_echo "$gcc_cv_math_func_asinhf" >&6; }
17207 if test $gcc_cv_math_func_asinhf = yes; then
f1cdfa01 17208
f38a14ca
TG
17209cat >>confdefs.h <<_ACEOF
17210#define HAVE_ASINHF 1
17211_ACEOF
db9f46a9
TG
17212
17213 fi
17214
453310d8 17215
453310d8 17216
453310d8 17217
db9f46a9
TG
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17219$as_echo_n "checking for asinh... " >&6; }
17220if test "${gcc_cv_math_func_asinh+set}" = set; then :
5213506e 17221 $as_echo_n "(cached) " >&6
453310d8 17222else
db9f46a9 17223 if test x$gcc_no_link = xyes; then
5213506e 17224 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17225fi
5213506e 17226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17227/* end confdefs.h. */
17228
db9f46a9
TG
17229#ifdef HAVE_COMPLEX_H
17230#include <complex.h>
17231#endif
17232#ifdef HAVE_MATH_H
17233#include <math.h>
453310d8 17234#endif
db9f46a9
TG
17235
17236int (*ptr)() = (int (*)())asinh;
17237
453310d8
RS
17238int
17239main ()
17240{
453310d8
RS
17241 return 0;
17242}
db9f46a9 17243
453310d8 17244_ACEOF
5213506e 17245if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17246 gcc_cv_math_func_asinh=yes
453310d8 17247else
db9f46a9 17248 gcc_cv_math_func_asinh=no
453310d8 17249fi
5213506e
RW
17250rm -f core conftest.err conftest.$ac_objext \
17251 conftest$ac_exeext conftest.$ac_ext
453310d8 17252fi
db9f46a9
TG
17253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17254$as_echo "$gcc_cv_math_func_asinh" >&6; }
17255 if test $gcc_cv_math_func_asinh = yes; then
f1cdfa01 17256
f38a14ca
TG
17257cat >>confdefs.h <<_ACEOF
17258#define HAVE_ASINH 1
17259_ACEOF
db9f46a9
TG
17260
17261 fi
453310d8 17262
453310d8 17263
453310d8 17264
db9f46a9
TG
17265
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17267$as_echo_n "checking for asinhl... " >&6; }
17268if test "${gcc_cv_math_func_asinhl+set}" = set; then :
5213506e 17269 $as_echo_n "(cached) " >&6
6e4d9244 17270else
db9f46a9 17271 if test x$gcc_no_link = xyes; then
5213506e 17272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17273fi
5213506e 17274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6e4d9244
EB
17275/* end confdefs.h. */
17276
db9f46a9
TG
17277#ifdef HAVE_COMPLEX_H
17278#include <complex.h>
6e4d9244 17279#endif
db9f46a9
TG
17280#ifdef HAVE_MATH_H
17281#include <math.h>
17282#endif
17283
17284int (*ptr)() = (int (*)())asinhl;
17285
6e4d9244
EB
17286int
17287main ()
17288{
6e4d9244
EB
17289 return 0;
17290}
db9f46a9 17291
6e4d9244 17292_ACEOF
5213506e 17293if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17294 gcc_cv_math_func_asinhl=yes
6e4d9244 17295else
db9f46a9 17296 gcc_cv_math_func_asinhl=no
6e4d9244 17297fi
5213506e
RW
17298rm -f core conftest.err conftest.$ac_objext \
17299 conftest$ac_exeext conftest.$ac_ext
6e4d9244 17300fi
db9f46a9
TG
17301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17302$as_echo "$gcc_cv_math_func_asinhl" >&6; }
17303 if test $gcc_cv_math_func_asinhl = yes; then
f1cdfa01 17304
f38a14ca
TG
17305cat >>confdefs.h <<_ACEOF
17306#define HAVE_ASINHL 1
17307_ACEOF
6e4d9244 17308
db9f46a9 17309 fi
6e4d9244 17310
6e4d9244 17311
db9f46a9
TG
17312
17313
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17315$as_echo_n "checking for atan2f... " >&6; }
17316if test "${gcc_cv_math_func_atan2f+set}" = set; then :
5213506e 17317 $as_echo_n "(cached) " >&6
453310d8 17318else
db9f46a9 17319 if test x$gcc_no_link = xyes; then
5213506e 17320 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17321fi
5213506e 17322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17323/* end confdefs.h. */
17324
db9f46a9
TG
17325#ifdef HAVE_COMPLEX_H
17326#include <complex.h>
453310d8 17327#endif
db9f46a9
TG
17328#ifdef HAVE_MATH_H
17329#include <math.h>
17330#endif
17331
17332int (*ptr)() = (int (*)())atan2f;
17333
17334int
453310d8
RS
17335main ()
17336{
453310d8
RS
17337 return 0;
17338}
db9f46a9 17339
453310d8 17340_ACEOF
5213506e 17341if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17342 gcc_cv_math_func_atan2f=yes
453310d8 17343else
db9f46a9 17344 gcc_cv_math_func_atan2f=no
453310d8 17345fi
5213506e
RW
17346rm -f core conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
453310d8 17348fi
db9f46a9
TG
17349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17350$as_echo "$gcc_cv_math_func_atan2f" >&6; }
17351 if test $gcc_cv_math_func_atan2f = yes; then
f1cdfa01 17352
f38a14ca
TG
17353cat >>confdefs.h <<_ACEOF
17354#define HAVE_ATAN2F 1
17355_ACEOF
db9f46a9
TG
17356
17357 fi
453310d8 17358
453310d8 17359
453310d8 17360
db9f46a9
TG
17361
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17363$as_echo_n "checking for atan2... " >&6; }
17364if test "${gcc_cv_math_func_atan2+set}" = set; then :
5213506e 17365 $as_echo_n "(cached) " >&6
453310d8 17366else
db9f46a9 17367 if test x$gcc_no_link = xyes; then
5213506e 17368 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17369fi
5213506e 17370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17371/* end confdefs.h. */
17372
db9f46a9
TG
17373#ifdef HAVE_COMPLEX_H
17374#include <complex.h>
453310d8 17375#endif
db9f46a9
TG
17376#ifdef HAVE_MATH_H
17377#include <math.h>
17378#endif
17379
17380int (*ptr)() = (int (*)())atan2;
17381
453310d8
RS
17382int
17383main ()
17384{
453310d8
RS
17385 return 0;
17386}
db9f46a9 17387
453310d8 17388_ACEOF
5213506e 17389if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17390 gcc_cv_math_func_atan2=yes
453310d8 17391else
db9f46a9 17392 gcc_cv_math_func_atan2=no
453310d8 17393fi
5213506e
RW
17394rm -f core conftest.err conftest.$ac_objext \
17395 conftest$ac_exeext conftest.$ac_ext
453310d8 17396fi
db9f46a9
TG
17397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17398$as_echo "$gcc_cv_math_func_atan2" >&6; }
17399 if test $gcc_cv_math_func_atan2 = yes; then
f1cdfa01 17400
f38a14ca
TG
17401cat >>confdefs.h <<_ACEOF
17402#define HAVE_ATAN2 1
17403_ACEOF
453310d8 17404
db9f46a9 17405 fi
453310d8 17406
453310d8 17407
db9f46a9
TG
17408
17409
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17411$as_echo_n "checking for atan2l... " >&6; }
17412if test "${gcc_cv_math_func_atan2l+set}" = set; then :
5213506e 17413 $as_echo_n "(cached) " >&6
453310d8 17414else
db9f46a9 17415 if test x$gcc_no_link = xyes; then
5213506e 17416 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17417fi
5213506e 17418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17419/* end confdefs.h. */
17420
db9f46a9
TG
17421#ifdef HAVE_COMPLEX_H
17422#include <complex.h>
17423#endif
17424#ifdef HAVE_MATH_H
17425#include <math.h>
453310d8 17426#endif
db9f46a9
TG
17427
17428int (*ptr)() = (int (*)())atan2l;
17429
453310d8
RS
17430int
17431main ()
17432{
453310d8
RS
17433 return 0;
17434}
db9f46a9 17435
453310d8 17436_ACEOF
5213506e 17437if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17438 gcc_cv_math_func_atan2l=yes
453310d8 17439else
db9f46a9 17440 gcc_cv_math_func_atan2l=no
453310d8 17441fi
5213506e
RW
17442rm -f core conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
453310d8 17444fi
db9f46a9
TG
17445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17446$as_echo "$gcc_cv_math_func_atan2l" >&6; }
17447 if test $gcc_cv_math_func_atan2l = yes; then
f1cdfa01 17448
f38a14ca
TG
17449cat >>confdefs.h <<_ACEOF
17450#define HAVE_ATAN2L 1
17451_ACEOF
db9f46a9
TG
17452
17453 fi
453310d8 17454
453310d8 17455
453310d8 17456
db9f46a9
TG
17457
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17459$as_echo_n "checking for atanf... " >&6; }
17460if test "${gcc_cv_math_func_atanf+set}" = set; then :
5213506e 17461 $as_echo_n "(cached) " >&6
453310d8 17462else
db9f46a9 17463 if test x$gcc_no_link = xyes; then
5213506e 17464 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17465fi
5213506e 17466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17467/* end confdefs.h. */
17468
db9f46a9
TG
17469#ifdef HAVE_COMPLEX_H
17470#include <complex.h>
453310d8 17471#endif
db9f46a9
TG
17472#ifdef HAVE_MATH_H
17473#include <math.h>
17474#endif
17475
17476int (*ptr)() = (int (*)())atanf;
17477
453310d8
RS
17478int
17479main ()
17480{
453310d8
RS
17481 return 0;
17482}
db9f46a9 17483
453310d8 17484_ACEOF
5213506e 17485if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17486 gcc_cv_math_func_atanf=yes
453310d8 17487else
db9f46a9 17488 gcc_cv_math_func_atanf=no
453310d8 17489fi
5213506e
RW
17490rm -f core conftest.err conftest.$ac_objext \
17491 conftest$ac_exeext conftest.$ac_ext
453310d8 17492fi
db9f46a9
TG
17493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17494$as_echo "$gcc_cv_math_func_atanf" >&6; }
17495 if test $gcc_cv_math_func_atanf = yes; then
f1cdfa01 17496
f38a14ca
TG
17497cat >>confdefs.h <<_ACEOF
17498#define HAVE_ATANF 1
17499_ACEOF
db9f46a9
TG
17500
17501 fi
17502
453310d8 17503
453310d8 17504
453310d8 17505
db9f46a9
TG
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17507$as_echo_n "checking for atan... " >&6; }
17508if test "${gcc_cv_math_func_atan+set}" = set; then :
5213506e 17509 $as_echo_n "(cached) " >&6
453310d8 17510else
db9f46a9 17511 if test x$gcc_no_link = xyes; then
5213506e 17512 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17513fi
5213506e 17514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17515/* end confdefs.h. */
17516
db9f46a9
TG
17517#ifdef HAVE_COMPLEX_H
17518#include <complex.h>
17519#endif
17520#ifdef HAVE_MATH_H
17521#include <math.h>
453310d8 17522#endif
db9f46a9
TG
17523
17524int (*ptr)() = (int (*)())atan;
17525
453310d8
RS
17526int
17527main ()
17528{
453310d8
RS
17529 return 0;
17530}
db9f46a9 17531
453310d8 17532_ACEOF
5213506e 17533if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17534 gcc_cv_math_func_atan=yes
453310d8 17535else
db9f46a9 17536 gcc_cv_math_func_atan=no
453310d8 17537fi
5213506e
RW
17538rm -f core conftest.err conftest.$ac_objext \
17539 conftest$ac_exeext conftest.$ac_ext
453310d8 17540fi
db9f46a9
TG
17541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17542$as_echo "$gcc_cv_math_func_atan" >&6; }
17543 if test $gcc_cv_math_func_atan = yes; then
f1cdfa01 17544
f38a14ca
TG
17545cat >>confdefs.h <<_ACEOF
17546#define HAVE_ATAN 1
17547_ACEOF
db9f46a9
TG
17548
17549 fi
453310d8 17550
453310d8 17551
453310d8 17552
db9f46a9
TG
17553
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17555$as_echo_n "checking for atanl... " >&6; }
17556if test "${gcc_cv_math_func_atanl+set}" = set; then :
5213506e 17557 $as_echo_n "(cached) " >&6
32aa3bff 17558else
db9f46a9 17559 if test x$gcc_no_link = xyes; then
5213506e 17560 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17561fi
5213506e 17562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32aa3bff
FXC
17563/* end confdefs.h. */
17564
db9f46a9
TG
17565#ifdef HAVE_COMPLEX_H
17566#include <complex.h>
32aa3bff 17567#endif
db9f46a9
TG
17568#ifdef HAVE_MATH_H
17569#include <math.h>
17570#endif
17571
17572int (*ptr)() = (int (*)())atanl;
17573
32aa3bff
FXC
17574int
17575main ()
17576{
32aa3bff
FXC
17577 return 0;
17578}
db9f46a9 17579
32aa3bff 17580_ACEOF
5213506e 17581if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17582 gcc_cv_math_func_atanl=yes
32aa3bff 17583else
db9f46a9 17584 gcc_cv_math_func_atanl=no
32aa3bff 17585fi
5213506e
RW
17586rm -f core conftest.err conftest.$ac_objext \
17587 conftest$ac_exeext conftest.$ac_ext
32aa3bff 17588fi
db9f46a9
TG
17589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17590$as_echo "$gcc_cv_math_func_atanl" >&6; }
17591 if test $gcc_cv_math_func_atanl = yes; then
f1cdfa01 17592
f38a14ca
TG
17593cat >>confdefs.h <<_ACEOF
17594#define HAVE_ATANL 1
17595_ACEOF
32aa3bff 17596
db9f46a9 17597 fi
32aa3bff 17598
32aa3bff 17599
db9f46a9
TG
17600
17601
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17603$as_echo_n "checking for atanhf... " >&6; }
17604if test "${gcc_cv_math_func_atanhf+set}" = set; then :
5213506e 17605 $as_echo_n "(cached) " >&6
453310d8 17606else
db9f46a9 17607 if test x$gcc_no_link = xyes; then
5213506e 17608 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17609fi
5213506e 17610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17611/* end confdefs.h. */
17612
db9f46a9
TG
17613#ifdef HAVE_COMPLEX_H
17614#include <complex.h>
17615#endif
17616#ifdef HAVE_MATH_H
17617#include <math.h>
453310d8 17618#endif
db9f46a9
TG
17619
17620int (*ptr)() = (int (*)())atanhf;
17621
453310d8
RS
17622int
17623main ()
17624{
453310d8
RS
17625 return 0;
17626}
db9f46a9 17627
453310d8 17628_ACEOF
5213506e 17629if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17630 gcc_cv_math_func_atanhf=yes
453310d8 17631else
db9f46a9 17632 gcc_cv_math_func_atanhf=no
453310d8 17633fi
5213506e
RW
17634rm -f core conftest.err conftest.$ac_objext \
17635 conftest$ac_exeext conftest.$ac_ext
453310d8 17636fi
db9f46a9
TG
17637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17638$as_echo "$gcc_cv_math_func_atanhf" >&6; }
17639 if test $gcc_cv_math_func_atanhf = yes; then
f1cdfa01 17640
f38a14ca
TG
17641cat >>confdefs.h <<_ACEOF
17642#define HAVE_ATANHF 1
17643_ACEOF
db9f46a9
TG
17644
17645 fi
453310d8 17646
453310d8 17647
453310d8 17648
db9f46a9
TG
17649
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17651$as_echo_n "checking for atanh... " >&6; }
17652if test "${gcc_cv_math_func_atanh+set}" = set; then :
5213506e 17653 $as_echo_n "(cached) " >&6
453310d8 17654else
db9f46a9 17655 if test x$gcc_no_link = xyes; then
5213506e 17656 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17657fi
5213506e 17658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17659/* end confdefs.h. */
17660
db9f46a9
TG
17661#ifdef HAVE_COMPLEX_H
17662#include <complex.h>
453310d8 17663#endif
db9f46a9
TG
17664#ifdef HAVE_MATH_H
17665#include <math.h>
17666#endif
17667
17668int (*ptr)() = (int (*)())atanh;
17669
453310d8
RS
17670int
17671main ()
17672{
453310d8
RS
17673 return 0;
17674}
db9f46a9 17675
453310d8 17676_ACEOF
5213506e 17677if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17678 gcc_cv_math_func_atanh=yes
453310d8 17679else
db9f46a9 17680 gcc_cv_math_func_atanh=no
453310d8 17681fi
5213506e
RW
17682rm -f core conftest.err conftest.$ac_objext \
17683 conftest$ac_exeext conftest.$ac_ext
453310d8 17684fi
db9f46a9
TG
17685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17686$as_echo "$gcc_cv_math_func_atanh" >&6; }
17687 if test $gcc_cv_math_func_atanh = yes; then
f1cdfa01 17688
f38a14ca
TG
17689cat >>confdefs.h <<_ACEOF
17690#define HAVE_ATANH 1
17691_ACEOF
db9f46a9
TG
17692
17693 fi
17694
453310d8 17695
453310d8 17696
453310d8 17697
db9f46a9
TG
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17699$as_echo_n "checking for atanhl... " >&6; }
17700if test "${gcc_cv_math_func_atanhl+set}" = set; then :
5213506e 17701 $as_echo_n "(cached) " >&6
bf4d99cf 17702else
db9f46a9 17703 if test x$gcc_no_link = xyes; then
5213506e 17704 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17705fi
5213506e 17706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bf4d99cf
TS
17707/* end confdefs.h. */
17708
db9f46a9
TG
17709#ifdef HAVE_COMPLEX_H
17710#include <complex.h>
17711#endif
17712#ifdef HAVE_MATH_H
17713#include <math.h>
bf4d99cf 17714#endif
db9f46a9
TG
17715
17716int (*ptr)() = (int (*)())atanhl;
17717
bf4d99cf
TS
17718int
17719main ()
17720{
bf4d99cf
TS
17721 return 0;
17722}
db9f46a9 17723
bf4d99cf 17724_ACEOF
5213506e 17725if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17726 gcc_cv_math_func_atanhl=yes
bf4d99cf 17727else
db9f46a9 17728 gcc_cv_math_func_atanhl=no
bf4d99cf 17729fi
5213506e
RW
17730rm -f core conftest.err conftest.$ac_objext \
17731 conftest$ac_exeext conftest.$ac_ext
bf4d99cf 17732fi
db9f46a9
TG
17733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17734$as_echo "$gcc_cv_math_func_atanhl" >&6; }
17735 if test $gcc_cv_math_func_atanhl = yes; then
f1cdfa01 17736
f38a14ca
TG
17737cat >>confdefs.h <<_ACEOF
17738#define HAVE_ATANHL 1
17739_ACEOF
db9f46a9
TG
17740
17741 fi
bf4d99cf 17742
bf4d99cf 17743
bf4d99cf 17744
db9f46a9
TG
17745
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17747$as_echo_n "checking for cargf... " >&6; }
17748if test "${gcc_cv_math_func_cargf+set}" = set; then :
5213506e 17749 $as_echo_n "(cached) " >&6
a2a2059f 17750else
db9f46a9 17751 if test x$gcc_no_link = xyes; then
5213506e 17752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17753fi
5213506e 17754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
17755/* end confdefs.h. */
17756
db9f46a9
TG
17757#ifdef HAVE_COMPLEX_H
17758#include <complex.h>
a2a2059f 17759#endif
db9f46a9
TG
17760#ifdef HAVE_MATH_H
17761#include <math.h>
17762#endif
17763
17764int (*ptr)() = (int (*)())cargf;
17765
453310d8
RS
17766int
17767main ()
17768{
453310d8
RS
17769 return 0;
17770}
db9f46a9 17771
453310d8 17772_ACEOF
5213506e 17773if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17774 gcc_cv_math_func_cargf=yes
453310d8 17775else
db9f46a9 17776 gcc_cv_math_func_cargf=no
453310d8 17777fi
5213506e
RW
17778rm -f core conftest.err conftest.$ac_objext \
17779 conftest$ac_exeext conftest.$ac_ext
453310d8 17780fi
db9f46a9
TG
17781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17782$as_echo "$gcc_cv_math_func_cargf" >&6; }
17783 if test $gcc_cv_math_func_cargf = yes; then
f1cdfa01 17784
f38a14ca
TG
17785cat >>confdefs.h <<_ACEOF
17786#define HAVE_CARGF 1
17787_ACEOF
453310d8 17788
db9f46a9 17789 fi
453310d8 17790
453310d8 17791
db9f46a9
TG
17792
17793
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17795$as_echo_n "checking for carg... " >&6; }
17796if test "${gcc_cv_math_func_carg+set}" = set; then :
5213506e 17797 $as_echo_n "(cached) " >&6
453310d8 17798else
db9f46a9 17799 if test x$gcc_no_link = xyes; then
5213506e 17800 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17801fi
5213506e 17802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17803/* end confdefs.h. */
17804
db9f46a9
TG
17805#ifdef HAVE_COMPLEX_H
17806#include <complex.h>
17807#endif
17808#ifdef HAVE_MATH_H
17809#include <math.h>
453310d8 17810#endif
db9f46a9
TG
17811
17812int (*ptr)() = (int (*)())carg;
17813
a2a2059f
BD
17814int
17815main ()
17816{
a2a2059f
BD
17817 return 0;
17818}
db9f46a9 17819
a2a2059f 17820_ACEOF
5213506e 17821if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17822 gcc_cv_math_func_carg=yes
a2a2059f 17823else
db9f46a9 17824 gcc_cv_math_func_carg=no
a2a2059f 17825fi
5213506e
RW
17826rm -f core conftest.err conftest.$ac_objext \
17827 conftest$ac_exeext conftest.$ac_ext
a2a2059f 17828fi
db9f46a9
TG
17829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17830$as_echo "$gcc_cv_math_func_carg" >&6; }
17831 if test $gcc_cv_math_func_carg = yes; then
f1cdfa01 17832
f38a14ca
TG
17833cat >>confdefs.h <<_ACEOF
17834#define HAVE_CARG 1
17835_ACEOF
db9f46a9
TG
17836
17837 fi
a2a2059f 17838
a2a2059f 17839
a2a2059f 17840
db9f46a9
TG
17841
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17843$as_echo_n "checking for cargl... " >&6; }
17844if test "${gcc_cv_math_func_cargl+set}" = set; then :
5213506e 17845 $as_echo_n "(cached) " >&6
a2a2059f 17846else
db9f46a9 17847 if test x$gcc_no_link = xyes; then
5213506e 17848 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17849fi
5213506e 17850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
17851/* end confdefs.h. */
17852
db9f46a9
TG
17853#ifdef HAVE_COMPLEX_H
17854#include <complex.h>
a2a2059f 17855#endif
db9f46a9
TG
17856#ifdef HAVE_MATH_H
17857#include <math.h>
17858#endif
17859
17860int (*ptr)() = (int (*)())cargl;
17861
a2a2059f
BD
17862int
17863main ()
17864{
a2a2059f
BD
17865 return 0;
17866}
db9f46a9 17867
a2a2059f 17868_ACEOF
5213506e 17869if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17870 gcc_cv_math_func_cargl=yes
a2a2059f 17871else
db9f46a9 17872 gcc_cv_math_func_cargl=no
a2a2059f 17873fi
5213506e
RW
17874rm -f core conftest.err conftest.$ac_objext \
17875 conftest$ac_exeext conftest.$ac_ext
a2a2059f 17876fi
db9f46a9
TG
17877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17878$as_echo "$gcc_cv_math_func_cargl" >&6; }
17879 if test $gcc_cv_math_func_cargl = yes; then
f1cdfa01 17880
f38a14ca
TG
17881cat >>confdefs.h <<_ACEOF
17882#define HAVE_CARGL 1
17883_ACEOF
db9f46a9
TG
17884
17885 fi
17886
a2a2059f 17887
a2a2059f 17888
a2a2059f 17889
db9f46a9
TG
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17891$as_echo_n "checking for ceilf... " >&6; }
17892if test "${gcc_cv_math_func_ceilf+set}" = set; then :
5213506e 17893 $as_echo_n "(cached) " >&6
ae973d6a 17894else
db9f46a9 17895 if test x$gcc_no_link = xyes; then
5213506e 17896 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17897fi
5213506e 17898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae973d6a
FXC
17899/* end confdefs.h. */
17900
db9f46a9
TG
17901#ifdef HAVE_COMPLEX_H
17902#include <complex.h>
17903#endif
17904#ifdef HAVE_MATH_H
17905#include <math.h>
ae973d6a 17906#endif
db9f46a9
TG
17907
17908int (*ptr)() = (int (*)())ceilf;
17909
ae973d6a
FXC
17910int
17911main ()
17912{
ae973d6a
FXC
17913 return 0;
17914}
db9f46a9 17915
ae973d6a 17916_ACEOF
5213506e 17917if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17918 gcc_cv_math_func_ceilf=yes
ae973d6a 17919else
db9f46a9 17920 gcc_cv_math_func_ceilf=no
ae973d6a 17921fi
5213506e
RW
17922rm -f core conftest.err conftest.$ac_objext \
17923 conftest$ac_exeext conftest.$ac_ext
ae973d6a 17924fi
db9f46a9
TG
17925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17926$as_echo "$gcc_cv_math_func_ceilf" >&6; }
17927 if test $gcc_cv_math_func_ceilf = yes; then
f1cdfa01 17928
f38a14ca
TG
17929cat >>confdefs.h <<_ACEOF
17930#define HAVE_CEILF 1
17931_ACEOF
db9f46a9
TG
17932
17933 fi
ae973d6a 17934
ae973d6a 17935
ae973d6a 17936
db9f46a9
TG
17937
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17939$as_echo_n "checking for ceil... " >&6; }
17940if test "${gcc_cv_math_func_ceil+set}" = set; then :
5213506e 17941 $as_echo_n "(cached) " >&6
a9e7b9d3 17942else
db9f46a9 17943 if test x$gcc_no_link = xyes; then
5213506e 17944 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17945fi
5213506e 17946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
17947/* end confdefs.h. */
17948
db9f46a9
TG
17949#ifdef HAVE_COMPLEX_H
17950#include <complex.h>
a9e7b9d3 17951#endif
db9f46a9
TG
17952#ifdef HAVE_MATH_H
17953#include <math.h>
17954#endif
17955
17956int (*ptr)() = (int (*)())ceil;
17957
a9e7b9d3
PB
17958int
17959main ()
17960{
a9e7b9d3
PB
17961 return 0;
17962}
db9f46a9 17963
a9e7b9d3 17964_ACEOF
5213506e 17965if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17966 gcc_cv_math_func_ceil=yes
a9e7b9d3 17967else
db9f46a9 17968 gcc_cv_math_func_ceil=no
a9e7b9d3 17969fi
5213506e
RW
17970rm -f core conftest.err conftest.$ac_objext \
17971 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 17972fi
db9f46a9
TG
17973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17974$as_echo "$gcc_cv_math_func_ceil" >&6; }
17975 if test $gcc_cv_math_func_ceil = yes; then
f1cdfa01 17976
f38a14ca
TG
17977cat >>confdefs.h <<_ACEOF
17978#define HAVE_CEIL 1
17979_ACEOF
a9e7b9d3 17980
db9f46a9 17981 fi
a9e7b9d3 17982
a9e7b9d3 17983
db9f46a9
TG
17984
17985
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
17987$as_echo_n "checking for ceill... " >&6; }
17988if test "${gcc_cv_math_func_ceill+set}" = set; then :
5213506e 17989 $as_echo_n "(cached) " >&6
a9e7b9d3 17990else
db9f46a9 17991 if test x$gcc_no_link = xyes; then
5213506e 17992 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17993fi
5213506e 17994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
17995/* end confdefs.h. */
17996
db9f46a9
TG
17997#ifdef HAVE_COMPLEX_H
17998#include <complex.h>
17999#endif
18000#ifdef HAVE_MATH_H
18001#include <math.h>
a9e7b9d3 18002#endif
db9f46a9
TG
18003
18004int (*ptr)() = (int (*)())ceill;
18005
a9e7b9d3
PB
18006int
18007main ()
18008{
a9e7b9d3
PB
18009 return 0;
18010}
db9f46a9 18011
a9e7b9d3 18012_ACEOF
5213506e 18013if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18014 gcc_cv_math_func_ceill=yes
a9e7b9d3 18015else
db9f46a9 18016 gcc_cv_math_func_ceill=no
a9e7b9d3 18017fi
5213506e
RW
18018rm -f core conftest.err conftest.$ac_objext \
18019 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 18020fi
db9f46a9
TG
18021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18022$as_echo "$gcc_cv_math_func_ceill" >&6; }
18023 if test $gcc_cv_math_func_ceill = yes; then
f1cdfa01 18024
f38a14ca
TG
18025cat >>confdefs.h <<_ACEOF
18026#define HAVE_CEILL 1
18027_ACEOF
db9f46a9
TG
18028
18029 fi
a9e7b9d3 18030
453310d8 18031
453310d8 18032
db9f46a9
TG
18033
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18035$as_echo_n "checking for copysignf... " >&6; }
18036if test "${gcc_cv_math_func_copysignf+set}" = set; then :
5213506e 18037 $as_echo_n "(cached) " >&6
453310d8 18038else
db9f46a9 18039 if test x$gcc_no_link = xyes; then
5213506e 18040 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18041fi
5213506e 18042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18043/* end confdefs.h. */
18044
db9f46a9
TG
18045#ifdef HAVE_COMPLEX_H
18046#include <complex.h>
453310d8 18047#endif
db9f46a9
TG
18048#ifdef HAVE_MATH_H
18049#include <math.h>
18050#endif
18051
18052int (*ptr)() = (int (*)())copysignf;
18053
453310d8
RS
18054int
18055main ()
18056{
453310d8
RS
18057 return 0;
18058}
db9f46a9 18059
453310d8 18060_ACEOF
5213506e 18061if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18062 gcc_cv_math_func_copysignf=yes
453310d8 18063else
db9f46a9 18064 gcc_cv_math_func_copysignf=no
453310d8 18065fi
5213506e
RW
18066rm -f core conftest.err conftest.$ac_objext \
18067 conftest$ac_exeext conftest.$ac_ext
453310d8 18068fi
db9f46a9
TG
18069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18070$as_echo "$gcc_cv_math_func_copysignf" >&6; }
18071 if test $gcc_cv_math_func_copysignf = yes; then
f1cdfa01 18072
f38a14ca
TG
18073cat >>confdefs.h <<_ACEOF
18074#define HAVE_COPYSIGNF 1
18075_ACEOF
db9f46a9
TG
18076
18077 fi
18078
453310d8 18079
453310d8 18080
453310d8 18081
db9f46a9
TG
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18083$as_echo_n "checking for copysign... " >&6; }
18084if test "${gcc_cv_math_func_copysign+set}" = set; then :
5213506e 18085 $as_echo_n "(cached) " >&6
453310d8 18086else
db9f46a9 18087 if test x$gcc_no_link = xyes; then
5213506e 18088 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18089fi
5213506e 18090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18091/* end confdefs.h. */
18092
db9f46a9
TG
18093#ifdef HAVE_COMPLEX_H
18094#include <complex.h>
18095#endif
18096#ifdef HAVE_MATH_H
18097#include <math.h>
453310d8 18098#endif
db9f46a9
TG
18099
18100int (*ptr)() = (int (*)())copysign;
18101
453310d8
RS
18102int
18103main ()
18104{
453310d8
RS
18105 return 0;
18106}
db9f46a9 18107
453310d8 18108_ACEOF
5213506e 18109if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18110 gcc_cv_math_func_copysign=yes
453310d8 18111else
db9f46a9 18112 gcc_cv_math_func_copysign=no
453310d8 18113fi
5213506e
RW
18114rm -f core conftest.err conftest.$ac_objext \
18115 conftest$ac_exeext conftest.$ac_ext
453310d8 18116fi
db9f46a9
TG
18117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18118$as_echo "$gcc_cv_math_func_copysign" >&6; }
18119 if test $gcc_cv_math_func_copysign = yes; then
f1cdfa01 18120
f38a14ca
TG
18121cat >>confdefs.h <<_ACEOF
18122#define HAVE_COPYSIGN 1
18123_ACEOF
db9f46a9
TG
18124
18125 fi
453310d8 18126
453310d8 18127
453310d8 18128
db9f46a9
TG
18129
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18131$as_echo_n "checking for copysignl... " >&6; }
18132if test "${gcc_cv_math_func_copysignl+set}" = set; then :
5213506e 18133 $as_echo_n "(cached) " >&6
453310d8 18134else
db9f46a9 18135 if test x$gcc_no_link = xyes; then
5213506e 18136 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18137fi
5213506e 18138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18139/* end confdefs.h. */
18140
db9f46a9
TG
18141#ifdef HAVE_COMPLEX_H
18142#include <complex.h>
453310d8 18143#endif
db9f46a9
TG
18144#ifdef HAVE_MATH_H
18145#include <math.h>
18146#endif
18147
18148int (*ptr)() = (int (*)())copysignl;
18149
453310d8
RS
18150int
18151main ()
18152{
5213506e
RW
18153 return 0;
18154}
db9f46a9 18155
5213506e
RW
18156_ACEOF
18157if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18158 gcc_cv_math_func_copysignl=yes
453310d8 18159else
db9f46a9 18160 gcc_cv_math_func_copysignl=no
453310d8 18161fi
5213506e
RW
18162rm -f core conftest.err conftest.$ac_objext \
18163 conftest$ac_exeext conftest.$ac_ext
453310d8 18164fi
db9f46a9
TG
18165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18166$as_echo "$gcc_cv_math_func_copysignl" >&6; }
18167 if test $gcc_cv_math_func_copysignl = yes; then
f1cdfa01 18168
f38a14ca
TG
18169cat >>confdefs.h <<_ACEOF
18170#define HAVE_COPYSIGNL 1
18171_ACEOF
453310d8 18172
db9f46a9 18173 fi
a9e7b9d3 18174
a9e7b9d3 18175
db9f46a9
TG
18176
18177
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18179$as_echo_n "checking for cosf... " >&6; }
18180if test "${gcc_cv_math_func_cosf+set}" = set; then :
5213506e 18181 $as_echo_n "(cached) " >&6
69a2d125 18182else
db9f46a9 18183 if test x$gcc_no_link = xyes; then
5213506e 18184 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18185fi
5213506e 18186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
18187/* end confdefs.h. */
18188
db9f46a9
TG
18189#ifdef HAVE_COMPLEX_H
18190#include <complex.h>
18191#endif
18192#ifdef HAVE_MATH_H
18193#include <math.h>
69a2d125 18194#endif
db9f46a9
TG
18195
18196int (*ptr)() = (int (*)())cosf;
18197
69a2d125
EB
18198int
18199main ()
18200{
69a2d125
EB
18201 return 0;
18202}
db9f46a9 18203
69a2d125 18204_ACEOF
5213506e 18205if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18206 gcc_cv_math_func_cosf=yes
69a2d125 18207else
db9f46a9 18208 gcc_cv_math_func_cosf=no
69a2d125 18209fi
5213506e
RW
18210rm -f core conftest.err conftest.$ac_objext \
18211 conftest$ac_exeext conftest.$ac_ext
69a2d125 18212fi
db9f46a9
TG
18213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18214$as_echo "$gcc_cv_math_func_cosf" >&6; }
18215 if test $gcc_cv_math_func_cosf = yes; then
f1cdfa01 18216
f38a14ca
TG
18217cat >>confdefs.h <<_ACEOF
18218#define HAVE_COSF 1
18219_ACEOF
db9f46a9
TG
18220
18221 fi
69a2d125 18222
1409cd0b 18223
1409cd0b 18224
db9f46a9
TG
18225
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18227$as_echo_n "checking for cos... " >&6; }
18228if test "${gcc_cv_math_func_cos+set}" = set; then :
5213506e 18229 $as_echo_n "(cached) " >&6
1409cd0b 18230else
db9f46a9 18231 if test x$gcc_no_link = xyes; then
5213506e 18232 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18233fi
5213506e 18234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18235/* end confdefs.h. */
18236
db9f46a9
TG
18237#ifdef HAVE_COMPLEX_H
18238#include <complex.h>
1409cd0b 18239#endif
db9f46a9
TG
18240#ifdef HAVE_MATH_H
18241#include <math.h>
18242#endif
18243
18244int (*ptr)() = (int (*)())cos;
18245
1409cd0b
FXC
18246int
18247main ()
18248{
1409cd0b
FXC
18249 return 0;
18250}
db9f46a9 18251
1409cd0b 18252_ACEOF
5213506e 18253if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18254 gcc_cv_math_func_cos=yes
1409cd0b 18255else
db9f46a9 18256 gcc_cv_math_func_cos=no
1409cd0b 18257fi
5213506e
RW
18258rm -f core conftest.err conftest.$ac_objext \
18259 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18260fi
db9f46a9
TG
18261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18262$as_echo "$gcc_cv_math_func_cos" >&6; }
18263 if test $gcc_cv_math_func_cos = yes; then
f1cdfa01 18264
f38a14ca
TG
18265cat >>confdefs.h <<_ACEOF
18266#define HAVE_COS 1
18267_ACEOF
db9f46a9
TG
18268
18269 fi
18270
1409cd0b 18271
1409cd0b 18272
1409cd0b 18273
db9f46a9
TG
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18275$as_echo_n "checking for cosl... " >&6; }
18276if test "${gcc_cv_math_func_cosl+set}" = set; then :
5213506e 18277 $as_echo_n "(cached) " >&6
1409cd0b 18278else
db9f46a9 18279 if test x$gcc_no_link = xyes; then
5213506e 18280 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18281fi
5213506e 18282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18283/* end confdefs.h. */
18284
db9f46a9
TG
18285#ifdef HAVE_COMPLEX_H
18286#include <complex.h>
18287#endif
18288#ifdef HAVE_MATH_H
18289#include <math.h>
1409cd0b 18290#endif
db9f46a9
TG
18291
18292int (*ptr)() = (int (*)())cosl;
18293
1409cd0b
FXC
18294int
18295main ()
18296{
1409cd0b
FXC
18297 return 0;
18298}
db9f46a9 18299
1409cd0b 18300_ACEOF
5213506e 18301if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18302 gcc_cv_math_func_cosl=yes
1409cd0b 18303else
db9f46a9 18304 gcc_cv_math_func_cosl=no
1409cd0b 18305fi
5213506e
RW
18306rm -f core conftest.err conftest.$ac_objext \
18307 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18308fi
db9f46a9
TG
18309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18310$as_echo "$gcc_cv_math_func_cosl" >&6; }
18311 if test $gcc_cv_math_func_cosl = yes; then
f1cdfa01 18312
f38a14ca
TG
18313cat >>confdefs.h <<_ACEOF
18314#define HAVE_COSL 1
18315_ACEOF
db9f46a9
TG
18316
18317 fi
1409cd0b 18318
1409cd0b 18319
1409cd0b 18320
db9f46a9
TG
18321
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18323$as_echo_n "checking for ccosf... " >&6; }
18324if test "${gcc_cv_math_func_ccosf+set}" = set; then :
5213506e 18325 $as_echo_n "(cached) " >&6
1409cd0b 18326else
db9f46a9 18327 if test x$gcc_no_link = xyes; then
5213506e 18328 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18329fi
5213506e 18330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18331/* end confdefs.h. */
18332
db9f46a9
TG
18333#ifdef HAVE_COMPLEX_H
18334#include <complex.h>
1409cd0b 18335#endif
db9f46a9
TG
18336#ifdef HAVE_MATH_H
18337#include <math.h>
18338#endif
18339
18340int (*ptr)() = (int (*)())ccosf;
18341
1409cd0b
FXC
18342int
18343main ()
18344{
1409cd0b
FXC
18345 return 0;
18346}
db9f46a9 18347
1409cd0b 18348_ACEOF
5213506e 18349if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18350 gcc_cv_math_func_ccosf=yes
1409cd0b 18351else
db9f46a9 18352 gcc_cv_math_func_ccosf=no
1409cd0b 18353fi
5213506e
RW
18354rm -f core conftest.err conftest.$ac_objext \
18355 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18356fi
db9f46a9
TG
18357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18358$as_echo "$gcc_cv_math_func_ccosf" >&6; }
18359 if test $gcc_cv_math_func_ccosf = yes; then
f1cdfa01 18360
f38a14ca
TG
18361cat >>confdefs.h <<_ACEOF
18362#define HAVE_CCOSF 1
18363_ACEOF
1409cd0b 18364
db9f46a9 18365 fi
1409cd0b 18366
1409cd0b 18367
db9f46a9
TG
18368
18369
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18371$as_echo_n "checking for ccos... " >&6; }
18372if test "${gcc_cv_math_func_ccos+set}" = set; then :
5213506e 18373 $as_echo_n "(cached) " >&6
1409cd0b 18374else
db9f46a9 18375 if test x$gcc_no_link = xyes; then
5213506e 18376 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18377fi
5213506e 18378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18379/* end confdefs.h. */
18380
db9f46a9
TG
18381#ifdef HAVE_COMPLEX_H
18382#include <complex.h>
18383#endif
18384#ifdef HAVE_MATH_H
18385#include <math.h>
1409cd0b 18386#endif
db9f46a9
TG
18387
18388int (*ptr)() = (int (*)())ccos;
18389
1409cd0b
FXC
18390int
18391main ()
18392{
1409cd0b
FXC
18393 return 0;
18394}
db9f46a9 18395
1409cd0b 18396_ACEOF
5213506e 18397if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18398 gcc_cv_math_func_ccos=yes
1409cd0b 18399else
db9f46a9 18400 gcc_cv_math_func_ccos=no
1409cd0b 18401fi
5213506e
RW
18402rm -f core conftest.err conftest.$ac_objext \
18403 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18404fi
db9f46a9
TG
18405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18406$as_echo "$gcc_cv_math_func_ccos" >&6; }
18407 if test $gcc_cv_math_func_ccos = yes; then
f1cdfa01 18408
f38a14ca
TG
18409cat >>confdefs.h <<_ACEOF
18410#define HAVE_CCOS 1
18411_ACEOF
db9f46a9
TG
18412
18413 fi
1409cd0b 18414
1409cd0b 18415
1409cd0b 18416
db9f46a9
TG
18417
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18419$as_echo_n "checking for ccosl... " >&6; }
18420if test "${gcc_cv_math_func_ccosl+set}" = set; then :
5213506e 18421 $as_echo_n "(cached) " >&6
1409cd0b 18422else
db9f46a9 18423 if test x$gcc_no_link = xyes; then
5213506e 18424 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18425fi
5213506e 18426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18427/* end confdefs.h. */
18428
db9f46a9
TG
18429#ifdef HAVE_COMPLEX_H
18430#include <complex.h>
1409cd0b 18431#endif
db9f46a9
TG
18432#ifdef HAVE_MATH_H
18433#include <math.h>
18434#endif
18435
18436int (*ptr)() = (int (*)())ccosl;
18437
1409cd0b
FXC
18438int
18439main ()
18440{
1409cd0b
FXC
18441 return 0;
18442}
db9f46a9 18443
1409cd0b 18444_ACEOF
5213506e 18445if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18446 gcc_cv_math_func_ccosl=yes
1409cd0b 18447else
db9f46a9 18448 gcc_cv_math_func_ccosl=no
1409cd0b 18449fi
5213506e
RW
18450rm -f core conftest.err conftest.$ac_objext \
18451 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18452fi
db9f46a9
TG
18453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18454$as_echo "$gcc_cv_math_func_ccosl" >&6; }
18455 if test $gcc_cv_math_func_ccosl = yes; then
f1cdfa01 18456
f38a14ca
TG
18457cat >>confdefs.h <<_ACEOF
18458#define HAVE_CCOSL 1
18459_ACEOF
db9f46a9
TG
18460
18461 fi
18462
1409cd0b 18463
1409cd0b 18464
1409cd0b 18465
db9f46a9
TG
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18467$as_echo_n "checking for coshf... " >&6; }
18468if test "${gcc_cv_math_func_coshf+set}" = set; then :
5213506e 18469 $as_echo_n "(cached) " >&6
1409cd0b 18470else
db9f46a9 18471 if test x$gcc_no_link = xyes; then
5213506e 18472 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18473fi
5213506e 18474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18475/* end confdefs.h. */
18476
db9f46a9
TG
18477#ifdef HAVE_COMPLEX_H
18478#include <complex.h>
18479#endif
18480#ifdef HAVE_MATH_H
18481#include <math.h>
1409cd0b 18482#endif
db9f46a9
TG
18483
18484int (*ptr)() = (int (*)())coshf;
18485
1409cd0b
FXC
18486int
18487main ()
18488{
1409cd0b
FXC
18489 return 0;
18490}
db9f46a9 18491
1409cd0b 18492_ACEOF
5213506e 18493if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18494 gcc_cv_math_func_coshf=yes
1409cd0b 18495else
db9f46a9 18496 gcc_cv_math_func_coshf=no
1409cd0b 18497fi
5213506e
RW
18498rm -f core conftest.err conftest.$ac_objext \
18499 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18500fi
db9f46a9
TG
18501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18502$as_echo "$gcc_cv_math_func_coshf" >&6; }
18503 if test $gcc_cv_math_func_coshf = yes; then
f1cdfa01 18504
f38a14ca
TG
18505cat >>confdefs.h <<_ACEOF
18506#define HAVE_COSHF 1
18507_ACEOF
db9f46a9
TG
18508
18509 fi
1409cd0b 18510
1409cd0b 18511
1409cd0b 18512
db9f46a9
TG
18513
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18515$as_echo_n "checking for cosh... " >&6; }
18516if test "${gcc_cv_math_func_cosh+set}" = set; then :
5213506e 18517 $as_echo_n "(cached) " >&6
1409cd0b 18518else
db9f46a9 18519 if test x$gcc_no_link = xyes; then
5213506e 18520 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18521fi
5213506e 18522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18523/* end confdefs.h. */
18524
db9f46a9
TG
18525#ifdef HAVE_COMPLEX_H
18526#include <complex.h>
1409cd0b 18527#endif
db9f46a9
TG
18528#ifdef HAVE_MATH_H
18529#include <math.h>
18530#endif
18531
18532int (*ptr)() = (int (*)())cosh;
18533
1409cd0b
FXC
18534int
18535main ()
18536{
1409cd0b
FXC
18537 return 0;
18538}
db9f46a9 18539
1409cd0b 18540_ACEOF
5213506e 18541if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18542 gcc_cv_math_func_cosh=yes
1409cd0b 18543else
db9f46a9 18544 gcc_cv_math_func_cosh=no
1409cd0b 18545fi
5213506e
RW
18546rm -f core conftest.err conftest.$ac_objext \
18547 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18548fi
db9f46a9
TG
18549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18550$as_echo "$gcc_cv_math_func_cosh" >&6; }
18551 if test $gcc_cv_math_func_cosh = yes; then
f1cdfa01 18552
f38a14ca
TG
18553cat >>confdefs.h <<_ACEOF
18554#define HAVE_COSH 1
18555_ACEOF
1409cd0b 18556
db9f46a9 18557 fi
1409cd0b 18558
1409cd0b 18559
db9f46a9
TG
18560
18561
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18563$as_echo_n "checking for coshl... " >&6; }
18564if test "${gcc_cv_math_func_coshl+set}" = set; then :
5213506e 18565 $as_echo_n "(cached) " >&6
1409cd0b 18566else
db9f46a9 18567 if test x$gcc_no_link = xyes; then
5213506e 18568 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18569fi
5213506e 18570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18571/* end confdefs.h. */
18572
db9f46a9
TG
18573#ifdef HAVE_COMPLEX_H
18574#include <complex.h>
18575#endif
18576#ifdef HAVE_MATH_H
18577#include <math.h>
1409cd0b 18578#endif
db9f46a9
TG
18579
18580int (*ptr)() = (int (*)())coshl;
18581
1409cd0b
FXC
18582int
18583main ()
18584{
1409cd0b
FXC
18585 return 0;
18586}
db9f46a9 18587
1409cd0b 18588_ACEOF
5213506e 18589if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18590 gcc_cv_math_func_coshl=yes
1409cd0b 18591else
db9f46a9 18592 gcc_cv_math_func_coshl=no
1409cd0b 18593fi
5213506e
RW
18594rm -f core conftest.err conftest.$ac_objext \
18595 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18596fi
db9f46a9
TG
18597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18598$as_echo "$gcc_cv_math_func_coshl" >&6; }
18599 if test $gcc_cv_math_func_coshl = yes; then
f1cdfa01 18600
f38a14ca
TG
18601cat >>confdefs.h <<_ACEOF
18602#define HAVE_COSHL 1
18603_ACEOF
db9f46a9
TG
18604
18605 fi
1409cd0b 18606
1409cd0b 18607
1409cd0b 18608
db9f46a9
TG
18609
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18611$as_echo_n "checking for ccoshf... " >&6; }
18612if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
5213506e 18613 $as_echo_n "(cached) " >&6
1409cd0b 18614else
db9f46a9 18615 if test x$gcc_no_link = xyes; then
5213506e 18616 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18617fi
5213506e 18618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18619/* end confdefs.h. */
18620
db9f46a9
TG
18621#ifdef HAVE_COMPLEX_H
18622#include <complex.h>
1409cd0b 18623#endif
db9f46a9
TG
18624#ifdef HAVE_MATH_H
18625#include <math.h>
18626#endif
18627
18628int (*ptr)() = (int (*)())ccoshf;
18629
1409cd0b
FXC
18630int
18631main ()
18632{
1409cd0b
FXC
18633 return 0;
18634}
db9f46a9 18635
1409cd0b 18636_ACEOF
5213506e 18637if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18638 gcc_cv_math_func_ccoshf=yes
1409cd0b 18639else
db9f46a9 18640 gcc_cv_math_func_ccoshf=no
1409cd0b 18641fi
5213506e
RW
18642rm -f core conftest.err conftest.$ac_objext \
18643 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18644fi
db9f46a9
TG
18645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18646$as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18647 if test $gcc_cv_math_func_ccoshf = yes; then
f1cdfa01 18648
f38a14ca
TG
18649cat >>confdefs.h <<_ACEOF
18650#define HAVE_CCOSHF 1
18651_ACEOF
db9f46a9
TG
18652
18653 fi
18654
1409cd0b 18655
1409cd0b 18656
1409cd0b 18657
db9f46a9
TG
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18659$as_echo_n "checking for ccosh... " >&6; }
18660if test "${gcc_cv_math_func_ccosh+set}" = set; then :
5213506e 18661 $as_echo_n "(cached) " >&6
1409cd0b 18662else
db9f46a9 18663 if test x$gcc_no_link = xyes; then
5213506e 18664 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18665fi
5213506e 18666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18667/* end confdefs.h. */
18668
db9f46a9
TG
18669#ifdef HAVE_COMPLEX_H
18670#include <complex.h>
18671#endif
18672#ifdef HAVE_MATH_H
18673#include <math.h>
1409cd0b 18674#endif
db9f46a9
TG
18675
18676int (*ptr)() = (int (*)())ccosh;
18677
1409cd0b
FXC
18678int
18679main ()
18680{
1409cd0b
FXC
18681 return 0;
18682}
db9f46a9 18683
1409cd0b 18684_ACEOF
5213506e 18685if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18686 gcc_cv_math_func_ccosh=yes
1409cd0b 18687else
db9f46a9 18688 gcc_cv_math_func_ccosh=no
1409cd0b 18689fi
5213506e
RW
18690rm -f core conftest.err conftest.$ac_objext \
18691 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18692fi
db9f46a9
TG
18693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18694$as_echo "$gcc_cv_math_func_ccosh" >&6; }
18695 if test $gcc_cv_math_func_ccosh = yes; then
f1cdfa01 18696
f38a14ca
TG
18697cat >>confdefs.h <<_ACEOF
18698#define HAVE_CCOSH 1
18699_ACEOF
db9f46a9
TG
18700
18701 fi
1409cd0b 18702
1409cd0b 18703
1409cd0b 18704
db9f46a9
TG
18705
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18707$as_echo_n "checking for ccoshl... " >&6; }
18708if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
5213506e 18709 $as_echo_n "(cached) " >&6
1409cd0b 18710else
db9f46a9 18711 if test x$gcc_no_link = xyes; then
5213506e 18712 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18713fi
5213506e 18714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18715/* end confdefs.h. */
18716
db9f46a9
TG
18717#ifdef HAVE_COMPLEX_H
18718#include <complex.h>
1409cd0b 18719#endif
db9f46a9
TG
18720#ifdef HAVE_MATH_H
18721#include <math.h>
18722#endif
18723
18724int (*ptr)() = (int (*)())ccoshl;
18725
1409cd0b
FXC
18726int
18727main ()
18728{
1409cd0b
FXC
18729 return 0;
18730}
db9f46a9 18731
1409cd0b 18732_ACEOF
5213506e 18733if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18734 gcc_cv_math_func_ccoshl=yes
1409cd0b 18735else
db9f46a9 18736 gcc_cv_math_func_ccoshl=no
1409cd0b 18737fi
5213506e
RW
18738rm -f core conftest.err conftest.$ac_objext \
18739 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18740fi
db9f46a9
TG
18741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18742$as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18743 if test $gcc_cv_math_func_ccoshl = yes; then
f1cdfa01 18744
f38a14ca
TG
18745cat >>confdefs.h <<_ACEOF
18746#define HAVE_CCOSHL 1
18747_ACEOF
1409cd0b 18748
db9f46a9 18749 fi
1409cd0b 18750
1409cd0b 18751
db9f46a9
TG
18752
18753
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18755$as_echo_n "checking for expf... " >&6; }
18756if test "${gcc_cv_math_func_expf+set}" = set; then :
5213506e 18757 $as_echo_n "(cached) " >&6
1409cd0b 18758else
db9f46a9 18759 if test x$gcc_no_link = xyes; then
5213506e 18760 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18761fi
5213506e 18762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18763/* end confdefs.h. */
18764
db9f46a9
TG
18765#ifdef HAVE_COMPLEX_H
18766#include <complex.h>
18767#endif
18768#ifdef HAVE_MATH_H
18769#include <math.h>
1409cd0b 18770#endif
db9f46a9
TG
18771
18772int (*ptr)() = (int (*)())expf;
18773
1409cd0b
FXC
18774int
18775main ()
18776{
1409cd0b
FXC
18777 return 0;
18778}
db9f46a9 18779
1409cd0b 18780_ACEOF
5213506e 18781if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18782 gcc_cv_math_func_expf=yes
1409cd0b 18783else
db9f46a9 18784 gcc_cv_math_func_expf=no
1409cd0b 18785fi
5213506e
RW
18786rm -f core conftest.err conftest.$ac_objext \
18787 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18788fi
db9f46a9
TG
18789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18790$as_echo "$gcc_cv_math_func_expf" >&6; }
18791 if test $gcc_cv_math_func_expf = yes; then
f1cdfa01 18792
f38a14ca
TG
18793cat >>confdefs.h <<_ACEOF
18794#define HAVE_EXPF 1
18795_ACEOF
db9f46a9
TG
18796
18797 fi
1409cd0b 18798
1409cd0b 18799
1409cd0b 18800
db9f46a9
TG
18801
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18803$as_echo_n "checking for exp... " >&6; }
18804if test "${gcc_cv_math_func_exp+set}" = set; then :
5213506e 18805 $as_echo_n "(cached) " >&6
1409cd0b 18806else
db9f46a9 18807 if test x$gcc_no_link = xyes; then
5213506e 18808 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18809fi
5213506e 18810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18811/* end confdefs.h. */
18812
db9f46a9
TG
18813#ifdef HAVE_COMPLEX_H
18814#include <complex.h>
1409cd0b 18815#endif
db9f46a9
TG
18816#ifdef HAVE_MATH_H
18817#include <math.h>
18818#endif
18819
18820int (*ptr)() = (int (*)())exp;
18821
1409cd0b
FXC
18822int
18823main ()
18824{
1409cd0b
FXC
18825 return 0;
18826}
db9f46a9 18827
1409cd0b 18828_ACEOF
5213506e 18829if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18830 gcc_cv_math_func_exp=yes
1409cd0b 18831else
db9f46a9 18832 gcc_cv_math_func_exp=no
1409cd0b 18833fi
5213506e
RW
18834rm -f core conftest.err conftest.$ac_objext \
18835 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18836fi
db9f46a9
TG
18837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18838$as_echo "$gcc_cv_math_func_exp" >&6; }
18839 if test $gcc_cv_math_func_exp = yes; then
f1cdfa01 18840
f38a14ca
TG
18841cat >>confdefs.h <<_ACEOF
18842#define HAVE_EXP 1
18843_ACEOF
db9f46a9
TG
18844
18845 fi
18846
1409cd0b 18847
1409cd0b 18848
1409cd0b 18849
db9f46a9
TG
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18851$as_echo_n "checking for expl... " >&6; }
18852if test "${gcc_cv_math_func_expl+set}" = set; then :
5213506e 18853 $as_echo_n "(cached) " >&6
1409cd0b 18854else
db9f46a9 18855 if test x$gcc_no_link = xyes; then
5213506e 18856 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18857fi
5213506e 18858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18859/* end confdefs.h. */
18860
db9f46a9
TG
18861#ifdef HAVE_COMPLEX_H
18862#include <complex.h>
18863#endif
18864#ifdef HAVE_MATH_H
18865#include <math.h>
1409cd0b 18866#endif
db9f46a9
TG
18867
18868int (*ptr)() = (int (*)())expl;
18869
1409cd0b
FXC
18870int
18871main ()
18872{
1409cd0b
FXC
18873 return 0;
18874}
db9f46a9 18875
1409cd0b 18876_ACEOF
5213506e 18877if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18878 gcc_cv_math_func_expl=yes
1409cd0b 18879else
db9f46a9 18880 gcc_cv_math_func_expl=no
1409cd0b 18881fi
5213506e
RW
18882rm -f core conftest.err conftest.$ac_objext \
18883 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18884fi
db9f46a9
TG
18885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18886$as_echo "$gcc_cv_math_func_expl" >&6; }
18887 if test $gcc_cv_math_func_expl = yes; then
f1cdfa01 18888
f38a14ca
TG
18889cat >>confdefs.h <<_ACEOF
18890#define HAVE_EXPL 1
18891_ACEOF
db9f46a9
TG
18892
18893 fi
1409cd0b 18894
1409cd0b 18895
1409cd0b 18896
db9f46a9
TG
18897
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18899$as_echo_n "checking for cexpf... " >&6; }
18900if test "${gcc_cv_math_func_cexpf+set}" = set; then :
5213506e 18901 $as_echo_n "(cached) " >&6
1409cd0b 18902else
db9f46a9 18903 if test x$gcc_no_link = xyes; then
5213506e 18904 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18905fi
5213506e 18906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18907/* end confdefs.h. */
18908
db9f46a9
TG
18909#ifdef HAVE_COMPLEX_H
18910#include <complex.h>
1409cd0b 18911#endif
db9f46a9
TG
18912#ifdef HAVE_MATH_H
18913#include <math.h>
18914#endif
18915
18916int (*ptr)() = (int (*)())cexpf;
18917
1409cd0b
FXC
18918int
18919main ()
18920{
1409cd0b
FXC
18921 return 0;
18922}
db9f46a9 18923
1409cd0b 18924_ACEOF
5213506e 18925if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18926 gcc_cv_math_func_cexpf=yes
1409cd0b 18927else
db9f46a9 18928 gcc_cv_math_func_cexpf=no
1409cd0b 18929fi
5213506e
RW
18930rm -f core conftest.err conftest.$ac_objext \
18931 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18932fi
db9f46a9
TG
18933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18934$as_echo "$gcc_cv_math_func_cexpf" >&6; }
18935 if test $gcc_cv_math_func_cexpf = yes; then
f1cdfa01 18936
f38a14ca
TG
18937cat >>confdefs.h <<_ACEOF
18938#define HAVE_CEXPF 1
18939_ACEOF
1409cd0b 18940
db9f46a9 18941 fi
1409cd0b 18942
1409cd0b 18943
db9f46a9
TG
18944
18945
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18947$as_echo_n "checking for cexp... " >&6; }
18948if test "${gcc_cv_math_func_cexp+set}" = set; then :
5213506e 18949 $as_echo_n "(cached) " >&6
1409cd0b 18950else
db9f46a9 18951 if test x$gcc_no_link = xyes; then
5213506e 18952 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18953fi
5213506e 18954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18955/* end confdefs.h. */
18956
db9f46a9
TG
18957#ifdef HAVE_COMPLEX_H
18958#include <complex.h>
18959#endif
18960#ifdef HAVE_MATH_H
18961#include <math.h>
1409cd0b 18962#endif
db9f46a9
TG
18963
18964int (*ptr)() = (int (*)())cexp;
18965
1409cd0b
FXC
18966int
18967main ()
18968{
1409cd0b
FXC
18969 return 0;
18970}
db9f46a9 18971
1409cd0b 18972_ACEOF
5213506e 18973if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18974 gcc_cv_math_func_cexp=yes
1409cd0b 18975else
db9f46a9 18976 gcc_cv_math_func_cexp=no
1409cd0b 18977fi
5213506e
RW
18978rm -f core conftest.err conftest.$ac_objext \
18979 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18980fi
db9f46a9
TG
18981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18982$as_echo "$gcc_cv_math_func_cexp" >&6; }
18983 if test $gcc_cv_math_func_cexp = yes; then
f1cdfa01 18984
f38a14ca
TG
18985cat >>confdefs.h <<_ACEOF
18986#define HAVE_CEXP 1
18987_ACEOF
db9f46a9
TG
18988
18989 fi
1409cd0b 18990
1409cd0b 18991
1409cd0b 18992
db9f46a9
TG
18993
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
18995$as_echo_n "checking for cexpl... " >&6; }
18996if test "${gcc_cv_math_func_cexpl+set}" = set; then :
5213506e 18997 $as_echo_n "(cached) " >&6
1409cd0b 18998else
db9f46a9 18999 if test x$gcc_no_link = xyes; then
5213506e 19000 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19001fi
5213506e 19002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19003/* end confdefs.h. */
19004
db9f46a9
TG
19005#ifdef HAVE_COMPLEX_H
19006#include <complex.h>
1409cd0b 19007#endif
db9f46a9
TG
19008#ifdef HAVE_MATH_H
19009#include <math.h>
19010#endif
19011
19012int (*ptr)() = (int (*)())cexpl;
19013
1409cd0b
FXC
19014int
19015main ()
19016{
1409cd0b
FXC
19017 return 0;
19018}
db9f46a9 19019
1409cd0b 19020_ACEOF
5213506e 19021if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19022 gcc_cv_math_func_cexpl=yes
1409cd0b 19023else
db9f46a9 19024 gcc_cv_math_func_cexpl=no
1409cd0b 19025fi
5213506e
RW
19026rm -f core conftest.err conftest.$ac_objext \
19027 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19028fi
db9f46a9
TG
19029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19030$as_echo "$gcc_cv_math_func_cexpl" >&6; }
19031 if test $gcc_cv_math_func_cexpl = yes; then
f1cdfa01 19032
f38a14ca
TG
19033cat >>confdefs.h <<_ACEOF
19034#define HAVE_CEXPL 1
19035_ACEOF
db9f46a9
TG
19036
19037 fi
19038
1409cd0b 19039
1409cd0b 19040
1409cd0b 19041
db9f46a9
TG
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19043$as_echo_n "checking for fabsf... " >&6; }
19044if test "${gcc_cv_math_func_fabsf+set}" = set; then :
5213506e 19045 $as_echo_n "(cached) " >&6
1409cd0b 19046else
db9f46a9 19047 if test x$gcc_no_link = xyes; then
5213506e 19048 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19049fi
5213506e 19050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19051/* end confdefs.h. */
19052
db9f46a9
TG
19053#ifdef HAVE_COMPLEX_H
19054#include <complex.h>
19055#endif
19056#ifdef HAVE_MATH_H
19057#include <math.h>
1409cd0b 19058#endif
db9f46a9
TG
19059
19060int (*ptr)() = (int (*)())fabsf;
19061
1409cd0b
FXC
19062int
19063main ()
19064{
1409cd0b
FXC
19065 return 0;
19066}
db9f46a9 19067
1409cd0b 19068_ACEOF
5213506e 19069if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19070 gcc_cv_math_func_fabsf=yes
1409cd0b 19071else
db9f46a9 19072 gcc_cv_math_func_fabsf=no
1409cd0b 19073fi
5213506e
RW
19074rm -f core conftest.err conftest.$ac_objext \
19075 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19076fi
db9f46a9
TG
19077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19078$as_echo "$gcc_cv_math_func_fabsf" >&6; }
19079 if test $gcc_cv_math_func_fabsf = yes; then
f1cdfa01 19080
f38a14ca
TG
19081cat >>confdefs.h <<_ACEOF
19082#define HAVE_FABSF 1
19083_ACEOF
db9f46a9
TG
19084
19085 fi
1409cd0b 19086
1409cd0b 19087
1409cd0b 19088
db9f46a9
TG
19089
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19091$as_echo_n "checking for fabs... " >&6; }
19092if test "${gcc_cv_math_func_fabs+set}" = set; then :
5213506e 19093 $as_echo_n "(cached) " >&6
1409cd0b 19094else
db9f46a9 19095 if test x$gcc_no_link = xyes; then
5213506e 19096 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19097fi
5213506e 19098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19099/* end confdefs.h. */
19100
db9f46a9
TG
19101#ifdef HAVE_COMPLEX_H
19102#include <complex.h>
1409cd0b 19103#endif
db9f46a9
TG
19104#ifdef HAVE_MATH_H
19105#include <math.h>
19106#endif
19107
19108int (*ptr)() = (int (*)())fabs;
19109
1409cd0b
FXC
19110int
19111main ()
19112{
1409cd0b
FXC
19113 return 0;
19114}
db9f46a9 19115
1409cd0b 19116_ACEOF
5213506e 19117if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19118 gcc_cv_math_func_fabs=yes
1409cd0b 19119else
db9f46a9 19120 gcc_cv_math_func_fabs=no
1409cd0b 19121fi
5213506e
RW
19122rm -f core conftest.err conftest.$ac_objext \
19123 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19124fi
db9f46a9
TG
19125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19126$as_echo "$gcc_cv_math_func_fabs" >&6; }
19127 if test $gcc_cv_math_func_fabs = yes; then
f1cdfa01 19128
f38a14ca
TG
19129cat >>confdefs.h <<_ACEOF
19130#define HAVE_FABS 1
19131_ACEOF
1409cd0b 19132
db9f46a9 19133 fi
1409cd0b 19134
1409cd0b 19135
db9f46a9
TG
19136
19137
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19139$as_echo_n "checking for fabsl... " >&6; }
19140if test "${gcc_cv_math_func_fabsl+set}" = set; then :
5213506e 19141 $as_echo_n "(cached) " >&6
1409cd0b 19142else
db9f46a9 19143 if test x$gcc_no_link = xyes; then
5213506e 19144 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19145fi
5213506e 19146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19147/* end confdefs.h. */
19148
db9f46a9
TG
19149#ifdef HAVE_COMPLEX_H
19150#include <complex.h>
19151#endif
19152#ifdef HAVE_MATH_H
19153#include <math.h>
1409cd0b 19154#endif
db9f46a9
TG
19155
19156int (*ptr)() = (int (*)())fabsl;
19157
1409cd0b
FXC
19158int
19159main ()
19160{
1409cd0b
FXC
19161 return 0;
19162}
db9f46a9 19163
1409cd0b 19164_ACEOF
5213506e 19165if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19166 gcc_cv_math_func_fabsl=yes
1409cd0b 19167else
db9f46a9 19168 gcc_cv_math_func_fabsl=no
1409cd0b 19169fi
5213506e
RW
19170rm -f core conftest.err conftest.$ac_objext \
19171 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19172fi
db9f46a9
TG
19173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19174$as_echo "$gcc_cv_math_func_fabsl" >&6; }
19175 if test $gcc_cv_math_func_fabsl = yes; then
f1cdfa01 19176
f38a14ca
TG
19177cat >>confdefs.h <<_ACEOF
19178#define HAVE_FABSL 1
19179_ACEOF
db9f46a9
TG
19180
19181 fi
1409cd0b 19182
1409cd0b 19183
1409cd0b 19184
db9f46a9
TG
19185
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19187$as_echo_n "checking for cabsf... " >&6; }
19188if test "${gcc_cv_math_func_cabsf+set}" = set; then :
5213506e 19189 $as_echo_n "(cached) " >&6
1409cd0b 19190else
db9f46a9 19191 if test x$gcc_no_link = xyes; then
5213506e 19192 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19193fi
5213506e 19194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19195/* end confdefs.h. */
19196
db9f46a9
TG
19197#ifdef HAVE_COMPLEX_H
19198#include <complex.h>
1409cd0b 19199#endif
db9f46a9
TG
19200#ifdef HAVE_MATH_H
19201#include <math.h>
19202#endif
19203
19204int (*ptr)() = (int (*)())cabsf;
19205
1409cd0b
FXC
19206int
19207main ()
19208{
1409cd0b
FXC
19209 return 0;
19210}
db9f46a9 19211
1409cd0b 19212_ACEOF
5213506e 19213if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19214 gcc_cv_math_func_cabsf=yes
1409cd0b 19215else
db9f46a9 19216 gcc_cv_math_func_cabsf=no
1409cd0b 19217fi
5213506e
RW
19218rm -f core conftest.err conftest.$ac_objext \
19219 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19220fi
db9f46a9
TG
19221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19222$as_echo "$gcc_cv_math_func_cabsf" >&6; }
19223 if test $gcc_cv_math_func_cabsf = yes; then
f1cdfa01 19224
f38a14ca
TG
19225cat >>confdefs.h <<_ACEOF
19226#define HAVE_CABSF 1
19227_ACEOF
db9f46a9
TG
19228
19229 fi
19230
1409cd0b 19231
1409cd0b 19232
1409cd0b 19233
db9f46a9
TG
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19235$as_echo_n "checking for cabs... " >&6; }
19236if test "${gcc_cv_math_func_cabs+set}" = set; then :
5213506e 19237 $as_echo_n "(cached) " >&6
1409cd0b 19238else
db9f46a9 19239 if test x$gcc_no_link = xyes; then
5213506e 19240 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19241fi
5213506e 19242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19243/* end confdefs.h. */
19244
db9f46a9
TG
19245#ifdef HAVE_COMPLEX_H
19246#include <complex.h>
19247#endif
19248#ifdef HAVE_MATH_H
19249#include <math.h>
1409cd0b 19250#endif
db9f46a9
TG
19251
19252int (*ptr)() = (int (*)())cabs;
19253
1409cd0b
FXC
19254int
19255main ()
19256{
1409cd0b
FXC
19257 return 0;
19258}
db9f46a9 19259
1409cd0b 19260_ACEOF
5213506e 19261if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19262 gcc_cv_math_func_cabs=yes
1409cd0b 19263else
db9f46a9 19264 gcc_cv_math_func_cabs=no
1409cd0b 19265fi
5213506e
RW
19266rm -f core conftest.err conftest.$ac_objext \
19267 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19268fi
db9f46a9
TG
19269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19270$as_echo "$gcc_cv_math_func_cabs" >&6; }
19271 if test $gcc_cv_math_func_cabs = yes; then
f1cdfa01 19272
f38a14ca
TG
19273cat >>confdefs.h <<_ACEOF
19274#define HAVE_CABS 1
19275_ACEOF
db9f46a9
TG
19276
19277 fi
1409cd0b 19278
1409cd0b 19279
1409cd0b 19280
db9f46a9
TG
19281
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19283$as_echo_n "checking for cabsl... " >&6; }
19284if test "${gcc_cv_math_func_cabsl+set}" = set; then :
5213506e 19285 $as_echo_n "(cached) " >&6
1409cd0b 19286else
db9f46a9 19287 if test x$gcc_no_link = xyes; then
5213506e 19288 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19289fi
5213506e 19290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19291/* end confdefs.h. */
19292
db9f46a9
TG
19293#ifdef HAVE_COMPLEX_H
19294#include <complex.h>
1409cd0b 19295#endif
db9f46a9
TG
19296#ifdef HAVE_MATH_H
19297#include <math.h>
19298#endif
19299
19300int (*ptr)() = (int (*)())cabsl;
19301
1409cd0b
FXC
19302int
19303main ()
19304{
1409cd0b
FXC
19305 return 0;
19306}
db9f46a9 19307
1409cd0b 19308_ACEOF
5213506e 19309if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19310 gcc_cv_math_func_cabsl=yes
1409cd0b 19311else
db9f46a9 19312 gcc_cv_math_func_cabsl=no
1409cd0b 19313fi
5213506e
RW
19314rm -f core conftest.err conftest.$ac_objext \
19315 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19316fi
db9f46a9
TG
19317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19318$as_echo "$gcc_cv_math_func_cabsl" >&6; }
19319 if test $gcc_cv_math_func_cabsl = yes; then
f1cdfa01 19320
f38a14ca
TG
19321cat >>confdefs.h <<_ACEOF
19322#define HAVE_CABSL 1
19323_ACEOF
1409cd0b 19324
db9f46a9 19325 fi
1409cd0b 19326
1409cd0b 19327
db9f46a9
TG
19328
19329
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19331$as_echo_n "checking for floorf... " >&6; }
19332if test "${gcc_cv_math_func_floorf+set}" = set; then :
5213506e 19333 $as_echo_n "(cached) " >&6
1409cd0b 19334else
db9f46a9 19335 if test x$gcc_no_link = xyes; then
5213506e 19336 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19337fi
5213506e 19338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19339/* end confdefs.h. */
19340
db9f46a9
TG
19341#ifdef HAVE_COMPLEX_H
19342#include <complex.h>
19343#endif
19344#ifdef HAVE_MATH_H
19345#include <math.h>
1409cd0b 19346#endif
db9f46a9
TG
19347
19348int (*ptr)() = (int (*)())floorf;
19349
1409cd0b
FXC
19350int
19351main ()
19352{
5213506e
RW
19353 return 0;
19354}
db9f46a9 19355
5213506e
RW
19356_ACEOF
19357if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19358 gcc_cv_math_func_floorf=yes
1409cd0b 19359else
db9f46a9 19360 gcc_cv_math_func_floorf=no
1409cd0b 19361fi
5213506e
RW
19362rm -f core conftest.err conftest.$ac_objext \
19363 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19364fi
db9f46a9
TG
19365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19366$as_echo "$gcc_cv_math_func_floorf" >&6; }
19367 if test $gcc_cv_math_func_floorf = yes; then
f1cdfa01 19368
f38a14ca
TG
19369cat >>confdefs.h <<_ACEOF
19370#define HAVE_FLOORF 1
19371_ACEOF
db9f46a9
TG
19372
19373 fi
1409cd0b 19374
1409cd0b 19375
1409cd0b 19376
db9f46a9
TG
19377
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19379$as_echo_n "checking for floor... " >&6; }
19380if test "${gcc_cv_math_func_floor+set}" = set; then :
5213506e 19381 $as_echo_n "(cached) " >&6
1409cd0b 19382else
db9f46a9 19383 if test x$gcc_no_link = xyes; then
5213506e 19384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19385fi
5213506e 19386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19387/* end confdefs.h. */
19388
db9f46a9
TG
19389#ifdef HAVE_COMPLEX_H
19390#include <complex.h>
1409cd0b 19391#endif
db9f46a9
TG
19392#ifdef HAVE_MATH_H
19393#include <math.h>
19394#endif
19395
19396int (*ptr)() = (int (*)())floor;
19397
1409cd0b
FXC
19398int
19399main ()
19400{
1409cd0b
FXC
19401 return 0;
19402}
db9f46a9 19403
1409cd0b 19404_ACEOF
5213506e 19405if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19406 gcc_cv_math_func_floor=yes
1409cd0b 19407else
db9f46a9 19408 gcc_cv_math_func_floor=no
1409cd0b 19409fi
5213506e
RW
19410rm -f core conftest.err conftest.$ac_objext \
19411 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19412fi
db9f46a9
TG
19413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19414$as_echo "$gcc_cv_math_func_floor" >&6; }
19415 if test $gcc_cv_math_func_floor = yes; then
f1cdfa01 19416
f38a14ca
TG
19417cat >>confdefs.h <<_ACEOF
19418#define HAVE_FLOOR 1
19419_ACEOF
db9f46a9
TG
19420
19421 fi
19422
1409cd0b 19423
1409cd0b 19424
1409cd0b 19425
db9f46a9
TG
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19427$as_echo_n "checking for floorl... " >&6; }
19428if test "${gcc_cv_math_func_floorl+set}" = set; then :
5213506e 19429 $as_echo_n "(cached) " >&6
eb647f7d 19430else
db9f46a9 19431 if test x$gcc_no_link = xyes; then
5213506e 19432 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19433fi
5213506e 19434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19435/* end confdefs.h. */
19436
db9f46a9
TG
19437#ifdef HAVE_COMPLEX_H
19438#include <complex.h>
19439#endif
19440#ifdef HAVE_MATH_H
19441#include <math.h>
eb647f7d 19442#endif
db9f46a9
TG
19443
19444int (*ptr)() = (int (*)())floorl;
19445
eb647f7d
FXC
19446int
19447main ()
19448{
eb647f7d
FXC
19449 return 0;
19450}
db9f46a9 19451
eb647f7d 19452_ACEOF
5213506e 19453if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19454 gcc_cv_math_func_floorl=yes
eb647f7d 19455else
db9f46a9 19456 gcc_cv_math_func_floorl=no
eb647f7d 19457fi
5213506e
RW
19458rm -f core conftest.err conftest.$ac_objext \
19459 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19460fi
db9f46a9
TG
19461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19462$as_echo "$gcc_cv_math_func_floorl" >&6; }
19463 if test $gcc_cv_math_func_floorl = yes; then
f1cdfa01 19464
f38a14ca
TG
19465cat >>confdefs.h <<_ACEOF
19466#define HAVE_FLOORL 1
19467_ACEOF
db9f46a9
TG
19468
19469 fi
eb647f7d 19470
eb647f7d 19471
eb647f7d 19472
db9f46a9
TG
19473
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19475$as_echo_n "checking for fmodf... " >&6; }
19476if test "${gcc_cv_math_func_fmodf+set}" = set; then :
5213506e 19477 $as_echo_n "(cached) " >&6
eb647f7d 19478else
db9f46a9 19479 if test x$gcc_no_link = xyes; then
5213506e 19480 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19481fi
5213506e 19482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19483/* end confdefs.h. */
19484
db9f46a9
TG
19485#ifdef HAVE_COMPLEX_H
19486#include <complex.h>
eb647f7d 19487#endif
db9f46a9
TG
19488#ifdef HAVE_MATH_H
19489#include <math.h>
19490#endif
19491
19492int (*ptr)() = (int (*)())fmodf;
19493
eb647f7d
FXC
19494int
19495main ()
19496{
eb647f7d
FXC
19497 return 0;
19498}
db9f46a9 19499
eb647f7d 19500_ACEOF
5213506e 19501if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19502 gcc_cv_math_func_fmodf=yes
eb647f7d 19503else
db9f46a9 19504 gcc_cv_math_func_fmodf=no
eb647f7d 19505fi
5213506e
RW
19506rm -f core conftest.err conftest.$ac_objext \
19507 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19508fi
db9f46a9
TG
19509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19510$as_echo "$gcc_cv_math_func_fmodf" >&6; }
19511 if test $gcc_cv_math_func_fmodf = yes; then
f1cdfa01 19512
f38a14ca
TG
19513cat >>confdefs.h <<_ACEOF
19514#define HAVE_FMODF 1
19515_ACEOF
eb647f7d 19516
db9f46a9 19517 fi
eb647f7d 19518
eb647f7d 19519
db9f46a9
TG
19520
19521
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19523$as_echo_n "checking for fmod... " >&6; }
19524if test "${gcc_cv_math_func_fmod+set}" = set; then :
5213506e 19525 $as_echo_n "(cached) " >&6
eb647f7d 19526else
db9f46a9 19527 if test x$gcc_no_link = xyes; then
5213506e 19528 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19529fi
5213506e 19530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19531/* end confdefs.h. */
19532
db9f46a9
TG
19533#ifdef HAVE_COMPLEX_H
19534#include <complex.h>
19535#endif
19536#ifdef HAVE_MATH_H
19537#include <math.h>
eb647f7d 19538#endif
db9f46a9
TG
19539
19540int (*ptr)() = (int (*)())fmod;
19541
eb647f7d
FXC
19542int
19543main ()
19544{
eb647f7d
FXC
19545 return 0;
19546}
db9f46a9 19547
eb647f7d 19548_ACEOF
5213506e 19549if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19550 gcc_cv_math_func_fmod=yes
eb647f7d 19551else
db9f46a9 19552 gcc_cv_math_func_fmod=no
eb647f7d 19553fi
5213506e
RW
19554rm -f core conftest.err conftest.$ac_objext \
19555 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19556fi
db9f46a9
TG
19557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19558$as_echo "$gcc_cv_math_func_fmod" >&6; }
19559 if test $gcc_cv_math_func_fmod = yes; then
f1cdfa01 19560
f38a14ca
TG
19561cat >>confdefs.h <<_ACEOF
19562#define HAVE_FMOD 1
19563_ACEOF
db9f46a9
TG
19564
19565 fi
eb647f7d 19566
eb647f7d 19567
eb647f7d 19568
db9f46a9
TG
19569
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19571$as_echo_n "checking for fmodl... " >&6; }
19572if test "${gcc_cv_math_func_fmodl+set}" = set; then :
5213506e 19573 $as_echo_n "(cached) " >&6
1409cd0b 19574else
db9f46a9 19575 if test x$gcc_no_link = xyes; then
5213506e 19576 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19577fi
5213506e 19578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19579/* end confdefs.h. */
19580
db9f46a9
TG
19581#ifdef HAVE_COMPLEX_H
19582#include <complex.h>
1409cd0b 19583#endif
db9f46a9
TG
19584#ifdef HAVE_MATH_H
19585#include <math.h>
19586#endif
19587
19588int (*ptr)() = (int (*)())fmodl;
19589
1409cd0b
FXC
19590int
19591main ()
19592{
1409cd0b
FXC
19593 return 0;
19594}
db9f46a9 19595
1409cd0b 19596_ACEOF
5213506e 19597if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19598 gcc_cv_math_func_fmodl=yes
1409cd0b 19599else
db9f46a9 19600 gcc_cv_math_func_fmodl=no
1409cd0b 19601fi
5213506e
RW
19602rm -f core conftest.err conftest.$ac_objext \
19603 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19604fi
db9f46a9
TG
19605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19606$as_echo "$gcc_cv_math_func_fmodl" >&6; }
19607 if test $gcc_cv_math_func_fmodl = yes; then
f1cdfa01 19608
f38a14ca
TG
19609cat >>confdefs.h <<_ACEOF
19610#define HAVE_FMODL 1
19611_ACEOF
db9f46a9
TG
19612
19613 fi
19614
1409cd0b 19615
1409cd0b 19616
1409cd0b 19617
db9f46a9
TG
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19619$as_echo_n "checking for frexpf... " >&6; }
19620if test "${gcc_cv_math_func_frexpf+set}" = set; then :
5213506e 19621 $as_echo_n "(cached) " >&6
1409cd0b 19622else
db9f46a9 19623 if test x$gcc_no_link = xyes; then
5213506e 19624 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19625fi
5213506e 19626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19627/* end confdefs.h. */
19628
db9f46a9
TG
19629#ifdef HAVE_COMPLEX_H
19630#include <complex.h>
19631#endif
19632#ifdef HAVE_MATH_H
19633#include <math.h>
1409cd0b 19634#endif
db9f46a9
TG
19635
19636int (*ptr)() = (int (*)())frexpf;
19637
1409cd0b
FXC
19638int
19639main ()
19640{
1409cd0b
FXC
19641 return 0;
19642}
db9f46a9 19643
1409cd0b 19644_ACEOF
5213506e 19645if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19646 gcc_cv_math_func_frexpf=yes
1409cd0b 19647else
db9f46a9 19648 gcc_cv_math_func_frexpf=no
1409cd0b 19649fi
5213506e
RW
19650rm -f core conftest.err conftest.$ac_objext \
19651 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19652fi
db9f46a9
TG
19653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19654$as_echo "$gcc_cv_math_func_frexpf" >&6; }
19655 if test $gcc_cv_math_func_frexpf = yes; then
f1cdfa01 19656
f38a14ca
TG
19657cat >>confdefs.h <<_ACEOF
19658#define HAVE_FREXPF 1
19659_ACEOF
db9f46a9
TG
19660
19661 fi
1409cd0b 19662
1409cd0b 19663
1409cd0b 19664
db9f46a9
TG
19665
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19667$as_echo_n "checking for frexp... " >&6; }
19668if test "${gcc_cv_math_func_frexp+set}" = set; then :
5213506e 19669 $as_echo_n "(cached) " >&6
1409cd0b 19670else
db9f46a9 19671 if test x$gcc_no_link = xyes; then
5213506e 19672 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19673fi
5213506e 19674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19675/* end confdefs.h. */
19676
db9f46a9
TG
19677#ifdef HAVE_COMPLEX_H
19678#include <complex.h>
1409cd0b 19679#endif
db9f46a9
TG
19680#ifdef HAVE_MATH_H
19681#include <math.h>
19682#endif
19683
19684int (*ptr)() = (int (*)())frexp;
19685
1409cd0b
FXC
19686int
19687main ()
19688{
1409cd0b
FXC
19689 return 0;
19690}
db9f46a9 19691
1409cd0b 19692_ACEOF
5213506e 19693if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19694 gcc_cv_math_func_frexp=yes
1409cd0b 19695else
db9f46a9 19696 gcc_cv_math_func_frexp=no
1409cd0b 19697fi
5213506e
RW
19698rm -f core conftest.err conftest.$ac_objext \
19699 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19700fi
db9f46a9
TG
19701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19702$as_echo "$gcc_cv_math_func_frexp" >&6; }
19703 if test $gcc_cv_math_func_frexp = yes; then
f1cdfa01 19704
f38a14ca
TG
19705cat >>confdefs.h <<_ACEOF
19706#define HAVE_FREXP 1
19707_ACEOF
1409cd0b 19708
db9f46a9 19709 fi
1409cd0b 19710
1409cd0b 19711
db9f46a9
TG
19712
19713
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19715$as_echo_n "checking for frexpl... " >&6; }
19716if test "${gcc_cv_math_func_frexpl+set}" = set; then :
5213506e 19717 $as_echo_n "(cached) " >&6
1409cd0b 19718else
db9f46a9 19719 if test x$gcc_no_link = xyes; then
5213506e 19720 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19721fi
5213506e 19722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19723/* end confdefs.h. */
19724
db9f46a9
TG
19725#ifdef HAVE_COMPLEX_H
19726#include <complex.h>
19727#endif
19728#ifdef HAVE_MATH_H
19729#include <math.h>
1409cd0b 19730#endif
db9f46a9
TG
19731
19732int (*ptr)() = (int (*)())frexpl;
19733
1409cd0b
FXC
19734int
19735main ()
19736{
1409cd0b
FXC
19737 return 0;
19738}
db9f46a9 19739
1409cd0b 19740_ACEOF
5213506e 19741if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19742 gcc_cv_math_func_frexpl=yes
1409cd0b 19743else
db9f46a9 19744 gcc_cv_math_func_frexpl=no
1409cd0b 19745fi
5213506e
RW
19746rm -f core conftest.err conftest.$ac_objext \
19747 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19748fi
db9f46a9
TG
19749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19750$as_echo "$gcc_cv_math_func_frexpl" >&6; }
19751 if test $gcc_cv_math_func_frexpl = yes; then
f1cdfa01 19752
f38a14ca
TG
19753cat >>confdefs.h <<_ACEOF
19754#define HAVE_FREXPL 1
19755_ACEOF
db9f46a9
TG
19756
19757 fi
1409cd0b 19758
1409cd0b 19759
1409cd0b 19760
db9f46a9
TG
19761
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19763$as_echo_n "checking for hypotf... " >&6; }
19764if test "${gcc_cv_math_func_hypotf+set}" = set; then :
5213506e 19765 $as_echo_n "(cached) " >&6
1409cd0b 19766else
db9f46a9 19767 if test x$gcc_no_link = xyes; then
5213506e 19768 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19769fi
5213506e 19770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19771/* end confdefs.h. */
19772
db9f46a9
TG
19773#ifdef HAVE_COMPLEX_H
19774#include <complex.h>
1409cd0b 19775#endif
db9f46a9
TG
19776#ifdef HAVE_MATH_H
19777#include <math.h>
19778#endif
19779
19780int (*ptr)() = (int (*)())hypotf;
19781
1409cd0b
FXC
19782int
19783main ()
19784{
1409cd0b
FXC
19785 return 0;
19786}
db9f46a9 19787
1409cd0b 19788_ACEOF
5213506e 19789if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19790 gcc_cv_math_func_hypotf=yes
1409cd0b 19791else
db9f46a9 19792 gcc_cv_math_func_hypotf=no
1409cd0b 19793fi
5213506e
RW
19794rm -f core conftest.err conftest.$ac_objext \
19795 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19796fi
db9f46a9
TG
19797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19798$as_echo "$gcc_cv_math_func_hypotf" >&6; }
19799 if test $gcc_cv_math_func_hypotf = yes; then
f1cdfa01 19800
f38a14ca
TG
19801cat >>confdefs.h <<_ACEOF
19802#define HAVE_HYPOTF 1
19803_ACEOF
db9f46a9
TG
19804
19805 fi
19806
1409cd0b 19807
1409cd0b 19808
1409cd0b 19809
db9f46a9
TG
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19811$as_echo_n "checking for hypot... " >&6; }
19812if test "${gcc_cv_math_func_hypot+set}" = set; then :
5213506e 19813 $as_echo_n "(cached) " >&6
1409cd0b 19814else
db9f46a9 19815 if test x$gcc_no_link = xyes; then
5213506e 19816 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19817fi
5213506e 19818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19819/* end confdefs.h. */
19820
db9f46a9
TG
19821#ifdef HAVE_COMPLEX_H
19822#include <complex.h>
19823#endif
19824#ifdef HAVE_MATH_H
19825#include <math.h>
1409cd0b 19826#endif
db9f46a9
TG
19827
19828int (*ptr)() = (int (*)())hypot;
19829
1409cd0b
FXC
19830int
19831main ()
19832{
1409cd0b
FXC
19833 return 0;
19834}
db9f46a9 19835
1409cd0b 19836_ACEOF
5213506e 19837if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19838 gcc_cv_math_func_hypot=yes
1409cd0b 19839else
db9f46a9 19840 gcc_cv_math_func_hypot=no
1409cd0b 19841fi
5213506e
RW
19842rm -f core conftest.err conftest.$ac_objext \
19843 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19844fi
db9f46a9
TG
19845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19846$as_echo "$gcc_cv_math_func_hypot" >&6; }
19847 if test $gcc_cv_math_func_hypot = yes; then
f1cdfa01 19848
f38a14ca
TG
19849cat >>confdefs.h <<_ACEOF
19850#define HAVE_HYPOT 1
19851_ACEOF
db9f46a9
TG
19852
19853 fi
1409cd0b 19854
1409cd0b 19855
1409cd0b 19856
db9f46a9
TG
19857
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19859$as_echo_n "checking for hypotl... " >&6; }
19860if test "${gcc_cv_math_func_hypotl+set}" = set; then :
5213506e 19861 $as_echo_n "(cached) " >&6
cc6d3bde 19862else
db9f46a9 19863 if test x$gcc_no_link = xyes; then
5213506e 19864 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19865fi
5213506e 19866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19867/* end confdefs.h. */
19868
db9f46a9
TG
19869#ifdef HAVE_COMPLEX_H
19870#include <complex.h>
cc6d3bde 19871#endif
db9f46a9
TG
19872#ifdef HAVE_MATH_H
19873#include <math.h>
19874#endif
19875
19876int (*ptr)() = (int (*)())hypotl;
19877
cc6d3bde
SK
19878int
19879main ()
19880{
cc6d3bde
SK
19881 return 0;
19882}
db9f46a9 19883
cc6d3bde 19884_ACEOF
5213506e 19885if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19886 gcc_cv_math_func_hypotl=yes
cc6d3bde 19887else
db9f46a9 19888 gcc_cv_math_func_hypotl=no
cc6d3bde 19889fi
5213506e
RW
19890rm -f core conftest.err conftest.$ac_objext \
19891 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 19892fi
db9f46a9
TG
19893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19894$as_echo "$gcc_cv_math_func_hypotl" >&6; }
19895 if test $gcc_cv_math_func_hypotl = yes; then
f1cdfa01 19896
f38a14ca
TG
19897cat >>confdefs.h <<_ACEOF
19898#define HAVE_HYPOTL 1
19899_ACEOF
cc6d3bde 19900
db9f46a9 19901 fi
cc6d3bde 19902
cc6d3bde 19903
db9f46a9
TG
19904
19905
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19907$as_echo_n "checking for ldexpf... " >&6; }
19908if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
5213506e 19909 $as_echo_n "(cached) " >&6
cc6d3bde 19910else
db9f46a9 19911 if test x$gcc_no_link = xyes; then
5213506e 19912 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19913fi
5213506e 19914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19915/* end confdefs.h. */
19916
db9f46a9
TG
19917#ifdef HAVE_COMPLEX_H
19918#include <complex.h>
19919#endif
19920#ifdef HAVE_MATH_H
19921#include <math.h>
cc6d3bde 19922#endif
db9f46a9
TG
19923
19924int (*ptr)() = (int (*)())ldexpf;
19925
cc6d3bde
SK
19926int
19927main ()
19928{
cc6d3bde
SK
19929 return 0;
19930}
db9f46a9 19931
cc6d3bde 19932_ACEOF
5213506e 19933if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19934 gcc_cv_math_func_ldexpf=yes
cc6d3bde 19935else
db9f46a9 19936 gcc_cv_math_func_ldexpf=no
cc6d3bde 19937fi
5213506e
RW
19938rm -f core conftest.err conftest.$ac_objext \
19939 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 19940fi
db9f46a9
TG
19941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19942$as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19943 if test $gcc_cv_math_func_ldexpf = yes; then
f1cdfa01 19944
f38a14ca
TG
19945cat >>confdefs.h <<_ACEOF
19946#define HAVE_LDEXPF 1
19947_ACEOF
db9f46a9
TG
19948
19949 fi
cc6d3bde 19950
cc6d3bde 19951
cc6d3bde 19952
db9f46a9
TG
19953
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19955$as_echo_n "checking for ldexp... " >&6; }
19956if test "${gcc_cv_math_func_ldexp+set}" = set; then :
5213506e 19957 $as_echo_n "(cached) " >&6
cc6d3bde 19958else
db9f46a9 19959 if test x$gcc_no_link = xyes; then
5213506e 19960 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19961fi
5213506e 19962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19963/* end confdefs.h. */
19964
db9f46a9
TG
19965#ifdef HAVE_COMPLEX_H
19966#include <complex.h>
cc6d3bde 19967#endif
db9f46a9
TG
19968#ifdef HAVE_MATH_H
19969#include <math.h>
19970#endif
19971
19972int (*ptr)() = (int (*)())ldexp;
19973
cc6d3bde
SK
19974int
19975main ()
19976{
cc6d3bde
SK
19977 return 0;
19978}
db9f46a9 19979
cc6d3bde 19980_ACEOF
5213506e 19981if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19982 gcc_cv_math_func_ldexp=yes
cc6d3bde 19983else
db9f46a9 19984 gcc_cv_math_func_ldexp=no
cc6d3bde 19985fi
5213506e
RW
19986rm -f core conftest.err conftest.$ac_objext \
19987 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 19988fi
db9f46a9
TG
19989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
19990$as_echo "$gcc_cv_math_func_ldexp" >&6; }
19991 if test $gcc_cv_math_func_ldexp = yes; then
f1cdfa01 19992
f38a14ca
TG
19993cat >>confdefs.h <<_ACEOF
19994#define HAVE_LDEXP 1
19995_ACEOF
db9f46a9
TG
19996
19997 fi
19998
cc6d3bde 19999
cc6d3bde 20000
cc6d3bde 20001
db9f46a9
TG
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20003$as_echo_n "checking for ldexpl... " >&6; }
20004if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
5213506e 20005 $as_echo_n "(cached) " >&6
1409cd0b 20006else
db9f46a9 20007 if test x$gcc_no_link = xyes; then
5213506e 20008 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20009fi
5213506e 20010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20011/* end confdefs.h. */
20012
db9f46a9
TG
20013#ifdef HAVE_COMPLEX_H
20014#include <complex.h>
20015#endif
20016#ifdef HAVE_MATH_H
20017#include <math.h>
1409cd0b 20018#endif
db9f46a9
TG
20019
20020int (*ptr)() = (int (*)())ldexpl;
20021
1409cd0b
FXC
20022int
20023main ()
20024{
1409cd0b
FXC
20025 return 0;
20026}
db9f46a9 20027
1409cd0b 20028_ACEOF
5213506e 20029if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20030 gcc_cv_math_func_ldexpl=yes
1409cd0b 20031else
db9f46a9 20032 gcc_cv_math_func_ldexpl=no
1409cd0b 20033fi
5213506e
RW
20034rm -f core conftest.err conftest.$ac_objext \
20035 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20036fi
db9f46a9
TG
20037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20038$as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20039 if test $gcc_cv_math_func_ldexpl = yes; then
f1cdfa01 20040
f38a14ca
TG
20041cat >>confdefs.h <<_ACEOF
20042#define HAVE_LDEXPL 1
20043_ACEOF
db9f46a9
TG
20044
20045 fi
1409cd0b 20046
1409cd0b 20047
1409cd0b 20048
db9f46a9
TG
20049
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20051$as_echo_n "checking for logf... " >&6; }
20052if test "${gcc_cv_math_func_logf+set}" = set; then :
5213506e 20053 $as_echo_n "(cached) " >&6
1409cd0b 20054else
db9f46a9 20055 if test x$gcc_no_link = xyes; then
5213506e 20056 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20057fi
5213506e 20058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20059/* end confdefs.h. */
20060
db9f46a9
TG
20061#ifdef HAVE_COMPLEX_H
20062#include <complex.h>
1409cd0b 20063#endif
db9f46a9
TG
20064#ifdef HAVE_MATH_H
20065#include <math.h>
20066#endif
20067
20068int (*ptr)() = (int (*)())logf;
20069
1409cd0b
FXC
20070int
20071main ()
20072{
1409cd0b
FXC
20073 return 0;
20074}
db9f46a9 20075
1409cd0b 20076_ACEOF
5213506e 20077if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20078 gcc_cv_math_func_logf=yes
1409cd0b 20079else
db9f46a9 20080 gcc_cv_math_func_logf=no
1409cd0b 20081fi
5213506e
RW
20082rm -f core conftest.err conftest.$ac_objext \
20083 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20084fi
db9f46a9
TG
20085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20086$as_echo "$gcc_cv_math_func_logf" >&6; }
20087 if test $gcc_cv_math_func_logf = yes; then
f1cdfa01 20088
f38a14ca
TG
20089cat >>confdefs.h <<_ACEOF
20090#define HAVE_LOGF 1
20091_ACEOF
1409cd0b 20092
db9f46a9 20093 fi
1409cd0b 20094
1409cd0b 20095
db9f46a9
TG
20096
20097
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20099$as_echo_n "checking for log... " >&6; }
20100if test "${gcc_cv_math_func_log+set}" = set; then :
5213506e 20101 $as_echo_n "(cached) " >&6
1409cd0b 20102else
db9f46a9 20103 if test x$gcc_no_link = xyes; then
5213506e 20104 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20105fi
5213506e 20106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20107/* end confdefs.h. */
20108
db9f46a9
TG
20109#ifdef HAVE_COMPLEX_H
20110#include <complex.h>
20111#endif
20112#ifdef HAVE_MATH_H
20113#include <math.h>
1409cd0b 20114#endif
db9f46a9
TG
20115
20116int (*ptr)() = (int (*)())log;
20117
1409cd0b
FXC
20118int
20119main ()
20120{
1409cd0b
FXC
20121 return 0;
20122}
db9f46a9 20123
1409cd0b 20124_ACEOF
5213506e 20125if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20126 gcc_cv_math_func_log=yes
1409cd0b 20127else
db9f46a9 20128 gcc_cv_math_func_log=no
1409cd0b 20129fi
5213506e
RW
20130rm -f core conftest.err conftest.$ac_objext \
20131 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20132fi
db9f46a9
TG
20133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20134$as_echo "$gcc_cv_math_func_log" >&6; }
20135 if test $gcc_cv_math_func_log = yes; then
f1cdfa01 20136
f38a14ca
TG
20137cat >>confdefs.h <<_ACEOF
20138#define HAVE_LOG 1
20139_ACEOF
db9f46a9
TG
20140
20141 fi
1409cd0b 20142
1409cd0b 20143
1409cd0b 20144
db9f46a9
TG
20145
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20147$as_echo_n "checking for logl... " >&6; }
20148if test "${gcc_cv_math_func_logl+set}" = set; then :
5213506e 20149 $as_echo_n "(cached) " >&6
1409cd0b 20150else
db9f46a9 20151 if test x$gcc_no_link = xyes; then
5213506e 20152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20153fi
5213506e 20154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20155/* end confdefs.h. */
20156
db9f46a9
TG
20157#ifdef HAVE_COMPLEX_H
20158#include <complex.h>
1409cd0b 20159#endif
db9f46a9
TG
20160#ifdef HAVE_MATH_H
20161#include <math.h>
20162#endif
20163
20164int (*ptr)() = (int (*)())logl;
20165
1409cd0b
FXC
20166int
20167main ()
20168{
1409cd0b
FXC
20169 return 0;
20170}
db9f46a9 20171
1409cd0b 20172_ACEOF
5213506e 20173if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20174 gcc_cv_math_func_logl=yes
1409cd0b 20175else
db9f46a9 20176 gcc_cv_math_func_logl=no
1409cd0b 20177fi
5213506e
RW
20178rm -f core conftest.err conftest.$ac_objext \
20179 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20180fi
db9f46a9
TG
20181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20182$as_echo "$gcc_cv_math_func_logl" >&6; }
20183 if test $gcc_cv_math_func_logl = yes; then
f1cdfa01 20184
f38a14ca
TG
20185cat >>confdefs.h <<_ACEOF
20186#define HAVE_LOGL 1
20187_ACEOF
db9f46a9
TG
20188
20189 fi
20190
1409cd0b 20191
1409cd0b 20192
1409cd0b 20193
db9f46a9
TG
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20195$as_echo_n "checking for clogf... " >&6; }
20196if test "${gcc_cv_math_func_clogf+set}" = set; then :
5213506e 20197 $as_echo_n "(cached) " >&6
1409cd0b 20198else
db9f46a9 20199 if test x$gcc_no_link = xyes; then
5213506e 20200 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20201fi
5213506e 20202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20203/* end confdefs.h. */
20204
db9f46a9
TG
20205#ifdef HAVE_COMPLEX_H
20206#include <complex.h>
20207#endif
20208#ifdef HAVE_MATH_H
20209#include <math.h>
1409cd0b 20210#endif
db9f46a9
TG
20211
20212int (*ptr)() = (int (*)())clogf;
20213
1409cd0b
FXC
20214int
20215main ()
20216{
1409cd0b
FXC
20217 return 0;
20218}
db9f46a9 20219
1409cd0b 20220_ACEOF
5213506e 20221if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20222 gcc_cv_math_func_clogf=yes
1409cd0b 20223else
db9f46a9 20224 gcc_cv_math_func_clogf=no
1409cd0b 20225fi
5213506e
RW
20226rm -f core conftest.err conftest.$ac_objext \
20227 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20228fi
db9f46a9
TG
20229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20230$as_echo "$gcc_cv_math_func_clogf" >&6; }
20231 if test $gcc_cv_math_func_clogf = yes; then
f1cdfa01 20232
f38a14ca
TG
20233cat >>confdefs.h <<_ACEOF
20234#define HAVE_CLOGF 1
20235_ACEOF
db9f46a9
TG
20236
20237 fi
1409cd0b 20238
1409cd0b 20239
1409cd0b 20240
db9f46a9
TG
20241
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20243$as_echo_n "checking for clog... " >&6; }
20244if test "${gcc_cv_math_func_clog+set}" = set; then :
5213506e 20245 $as_echo_n "(cached) " >&6
1409cd0b 20246else
db9f46a9 20247 if test x$gcc_no_link = xyes; then
5213506e 20248 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20249fi
5213506e 20250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20251/* end confdefs.h. */
20252
db9f46a9
TG
20253#ifdef HAVE_COMPLEX_H
20254#include <complex.h>
1409cd0b 20255#endif
db9f46a9
TG
20256#ifdef HAVE_MATH_H
20257#include <math.h>
20258#endif
20259
20260int (*ptr)() = (int (*)())clog;
20261
1409cd0b
FXC
20262int
20263main ()
20264{
1409cd0b
FXC
20265 return 0;
20266}
db9f46a9 20267
1409cd0b 20268_ACEOF
5213506e 20269if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20270 gcc_cv_math_func_clog=yes
1409cd0b 20271else
db9f46a9 20272 gcc_cv_math_func_clog=no
1409cd0b 20273fi
5213506e
RW
20274rm -f core conftest.err conftest.$ac_objext \
20275 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20276fi
db9f46a9
TG
20277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20278$as_echo "$gcc_cv_math_func_clog" >&6; }
20279 if test $gcc_cv_math_func_clog = yes; then
f1cdfa01 20280
f38a14ca
TG
20281cat >>confdefs.h <<_ACEOF
20282#define HAVE_CLOG 1
20283_ACEOF
1409cd0b 20284
db9f46a9 20285 fi
1409cd0b 20286
1409cd0b 20287
db9f46a9
TG
20288
20289
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20291$as_echo_n "checking for clogl... " >&6; }
20292if test "${gcc_cv_math_func_clogl+set}" = set; then :
5213506e 20293 $as_echo_n "(cached) " >&6
1409cd0b 20294else
db9f46a9 20295 if test x$gcc_no_link = xyes; then
5213506e 20296 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20297fi
5213506e 20298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20299/* end confdefs.h. */
20300
db9f46a9
TG
20301#ifdef HAVE_COMPLEX_H
20302#include <complex.h>
20303#endif
20304#ifdef HAVE_MATH_H
20305#include <math.h>
1409cd0b 20306#endif
db9f46a9
TG
20307
20308int (*ptr)() = (int (*)())clogl;
20309
1409cd0b
FXC
20310int
20311main ()
20312{
1409cd0b
FXC
20313 return 0;
20314}
db9f46a9 20315
1409cd0b 20316_ACEOF
5213506e 20317if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20318 gcc_cv_math_func_clogl=yes
1409cd0b 20319else
db9f46a9 20320 gcc_cv_math_func_clogl=no
1409cd0b 20321fi
5213506e
RW
20322rm -f core conftest.err conftest.$ac_objext \
20323 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20324fi
db9f46a9
TG
20325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20326$as_echo "$gcc_cv_math_func_clogl" >&6; }
20327 if test $gcc_cv_math_func_clogl = yes; then
f1cdfa01 20328
f38a14ca
TG
20329cat >>confdefs.h <<_ACEOF
20330#define HAVE_CLOGL 1
20331_ACEOF
db9f46a9
TG
20332
20333 fi
1409cd0b 20334
1409cd0b 20335
1409cd0b 20336
db9f46a9
TG
20337
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20339$as_echo_n "checking for log10f... " >&6; }
20340if test "${gcc_cv_math_func_log10f+set}" = set; then :
5213506e 20341 $as_echo_n "(cached) " >&6
1409cd0b 20342else
db9f46a9 20343 if test x$gcc_no_link = xyes; then
5213506e 20344 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20345fi
5213506e 20346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20347/* end confdefs.h. */
20348
db9f46a9
TG
20349#ifdef HAVE_COMPLEX_H
20350#include <complex.h>
1409cd0b 20351#endif
db9f46a9
TG
20352#ifdef HAVE_MATH_H
20353#include <math.h>
20354#endif
20355
20356int (*ptr)() = (int (*)())log10f;
20357
1409cd0b
FXC
20358int
20359main ()
20360{
1409cd0b
FXC
20361 return 0;
20362}
db9f46a9 20363
1409cd0b 20364_ACEOF
5213506e 20365if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20366 gcc_cv_math_func_log10f=yes
1409cd0b 20367else
db9f46a9 20368 gcc_cv_math_func_log10f=no
1409cd0b 20369fi
5213506e
RW
20370rm -f core conftest.err conftest.$ac_objext \
20371 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20372fi
db9f46a9
TG
20373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20374$as_echo "$gcc_cv_math_func_log10f" >&6; }
20375 if test $gcc_cv_math_func_log10f = yes; then
f1cdfa01 20376
f38a14ca
TG
20377cat >>confdefs.h <<_ACEOF
20378#define HAVE_LOG10F 1
20379_ACEOF
db9f46a9
TG
20380
20381 fi
20382
1409cd0b 20383
1409cd0b 20384
1409cd0b 20385
db9f46a9
TG
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20387$as_echo_n "checking for log10... " >&6; }
20388if test "${gcc_cv_math_func_log10+set}" = set; then :
5213506e 20389 $as_echo_n "(cached) " >&6
1409cd0b 20390else
db9f46a9 20391 if test x$gcc_no_link = xyes; then
5213506e 20392 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20393fi
5213506e 20394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20395/* end confdefs.h. */
20396
db9f46a9
TG
20397#ifdef HAVE_COMPLEX_H
20398#include <complex.h>
20399#endif
20400#ifdef HAVE_MATH_H
20401#include <math.h>
1409cd0b 20402#endif
db9f46a9
TG
20403
20404int (*ptr)() = (int (*)())log10;
20405
1409cd0b
FXC
20406int
20407main ()
20408{
1409cd0b
FXC
20409 return 0;
20410}
db9f46a9 20411
1409cd0b 20412_ACEOF
5213506e 20413if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20414 gcc_cv_math_func_log10=yes
1409cd0b 20415else
db9f46a9 20416 gcc_cv_math_func_log10=no
1409cd0b 20417fi
5213506e
RW
20418rm -f core conftest.err conftest.$ac_objext \
20419 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20420fi
db9f46a9
TG
20421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20422$as_echo "$gcc_cv_math_func_log10" >&6; }
20423 if test $gcc_cv_math_func_log10 = yes; then
f1cdfa01 20424
f38a14ca
TG
20425cat >>confdefs.h <<_ACEOF
20426#define HAVE_LOG10 1
20427_ACEOF
db9f46a9
TG
20428
20429 fi
1409cd0b 20430
1409cd0b 20431
1409cd0b 20432
db9f46a9
TG
20433
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20435$as_echo_n "checking for log10l... " >&6; }
20436if test "${gcc_cv_math_func_log10l+set}" = set; then :
5213506e 20437 $as_echo_n "(cached) " >&6
1409cd0b 20438else
db9f46a9 20439 if test x$gcc_no_link = xyes; then
5213506e 20440 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20441fi
5213506e 20442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20443/* end confdefs.h. */
20444
db9f46a9
TG
20445#ifdef HAVE_COMPLEX_H
20446#include <complex.h>
1409cd0b 20447#endif
db9f46a9
TG
20448#ifdef HAVE_MATH_H
20449#include <math.h>
20450#endif
20451
20452int (*ptr)() = (int (*)())log10l;
20453
1409cd0b
FXC
20454int
20455main ()
20456{
1409cd0b
FXC
20457 return 0;
20458}
db9f46a9 20459
1409cd0b 20460_ACEOF
5213506e 20461if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20462 gcc_cv_math_func_log10l=yes
1409cd0b 20463else
db9f46a9 20464 gcc_cv_math_func_log10l=no
1409cd0b 20465fi
5213506e
RW
20466rm -f core conftest.err conftest.$ac_objext \
20467 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20468fi
db9f46a9
TG
20469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20470$as_echo "$gcc_cv_math_func_log10l" >&6; }
20471 if test $gcc_cv_math_func_log10l = yes; then
f1cdfa01 20472
f38a14ca
TG
20473cat >>confdefs.h <<_ACEOF
20474#define HAVE_LOG10L 1
20475_ACEOF
1409cd0b 20476
db9f46a9 20477 fi
1409cd0b 20478
1409cd0b 20479
db9f46a9
TG
20480
20481
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20483$as_echo_n "checking for clog10f... " >&6; }
20484if test "${gcc_cv_math_func_clog10f+set}" = set; then :
5213506e 20485 $as_echo_n "(cached) " >&6
1409cd0b 20486else
db9f46a9 20487 if test x$gcc_no_link = xyes; then
5213506e 20488 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20489fi
5213506e 20490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20491/* end confdefs.h. */
20492
db9f46a9
TG
20493#ifdef HAVE_COMPLEX_H
20494#include <complex.h>
20495#endif
20496#ifdef HAVE_MATH_H
20497#include <math.h>
1409cd0b 20498#endif
db9f46a9
TG
20499
20500int (*ptr)() = (int (*)())clog10f;
20501
1409cd0b
FXC
20502int
20503main ()
20504{
1409cd0b
FXC
20505 return 0;
20506}
db9f46a9 20507
1409cd0b 20508_ACEOF
5213506e 20509if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20510 gcc_cv_math_func_clog10f=yes
1409cd0b 20511else
db9f46a9 20512 gcc_cv_math_func_clog10f=no
1409cd0b 20513fi
5213506e
RW
20514rm -f core conftest.err conftest.$ac_objext \
20515 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20516fi
db9f46a9
TG
20517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20518$as_echo "$gcc_cv_math_func_clog10f" >&6; }
20519 if test $gcc_cv_math_func_clog10f = yes; then
f1cdfa01 20520
f38a14ca
TG
20521cat >>confdefs.h <<_ACEOF
20522#define HAVE_CLOG10F 1
20523_ACEOF
db9f46a9
TG
20524
20525 fi
1409cd0b 20526
1409cd0b 20527
1409cd0b 20528
db9f46a9
TG
20529
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20531$as_echo_n "checking for clog10... " >&6; }
20532if test "${gcc_cv_math_func_clog10+set}" = set; then :
5213506e 20533 $as_echo_n "(cached) " >&6
1409cd0b 20534else
db9f46a9 20535 if test x$gcc_no_link = xyes; then
5213506e 20536 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20537fi
5213506e 20538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20539/* end confdefs.h. */
20540
db9f46a9
TG
20541#ifdef HAVE_COMPLEX_H
20542#include <complex.h>
1409cd0b 20543#endif
db9f46a9
TG
20544#ifdef HAVE_MATH_H
20545#include <math.h>
20546#endif
20547
20548int (*ptr)() = (int (*)())clog10;
20549
1409cd0b
FXC
20550int
20551main ()
20552{
5213506e
RW
20553 return 0;
20554}
db9f46a9 20555
5213506e
RW
20556_ACEOF
20557if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20558 gcc_cv_math_func_clog10=yes
1409cd0b 20559else
db9f46a9 20560 gcc_cv_math_func_clog10=no
1409cd0b 20561fi
5213506e
RW
20562rm -f core conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20564fi
db9f46a9
TG
20565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20566$as_echo "$gcc_cv_math_func_clog10" >&6; }
20567 if test $gcc_cv_math_func_clog10 = yes; then
f1cdfa01 20568
f38a14ca
TG
20569cat >>confdefs.h <<_ACEOF
20570#define HAVE_CLOG10 1
20571_ACEOF
db9f46a9
TG
20572
20573 fi
20574
1409cd0b 20575
1409cd0b 20576
1409cd0b 20577
db9f46a9
TG
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20579$as_echo_n "checking for clog10l... " >&6; }
20580if test "${gcc_cv_math_func_clog10l+set}" = set; then :
5213506e 20581 $as_echo_n "(cached) " >&6
1409cd0b 20582else
db9f46a9 20583 if test x$gcc_no_link = xyes; then
5213506e 20584 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20585fi
5213506e 20586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20587/* end confdefs.h. */
20588
db9f46a9
TG
20589#ifdef HAVE_COMPLEX_H
20590#include <complex.h>
20591#endif
20592#ifdef HAVE_MATH_H
20593#include <math.h>
1409cd0b 20594#endif
db9f46a9
TG
20595
20596int (*ptr)() = (int (*)())clog10l;
20597
1409cd0b
FXC
20598int
20599main ()
20600{
1409cd0b
FXC
20601 return 0;
20602}
db9f46a9 20603
1409cd0b 20604_ACEOF
5213506e 20605if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20606 gcc_cv_math_func_clog10l=yes
1409cd0b 20607else
db9f46a9 20608 gcc_cv_math_func_clog10l=no
1409cd0b 20609fi
5213506e
RW
20610rm -f core conftest.err conftest.$ac_objext \
20611 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20612fi
db9f46a9
TG
20613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20614$as_echo "$gcc_cv_math_func_clog10l" >&6; }
20615 if test $gcc_cv_math_func_clog10l = yes; then
f1cdfa01 20616
f38a14ca
TG
20617cat >>confdefs.h <<_ACEOF
20618#define HAVE_CLOG10L 1
20619_ACEOF
db9f46a9
TG
20620
20621 fi
1409cd0b 20622
1409cd0b 20623
1409cd0b 20624
db9f46a9
TG
20625
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20627$as_echo_n "checking for nextafterf... " >&6; }
20628if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
5213506e 20629 $as_echo_n "(cached) " >&6
1409cd0b 20630else
db9f46a9 20631 if test x$gcc_no_link = xyes; then
5213506e 20632 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20633fi
5213506e 20634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20635/* end confdefs.h. */
20636
db9f46a9
TG
20637#ifdef HAVE_COMPLEX_H
20638#include <complex.h>
1409cd0b 20639#endif
db9f46a9
TG
20640#ifdef HAVE_MATH_H
20641#include <math.h>
20642#endif
20643
20644int (*ptr)() = (int (*)())nextafterf;
20645
1409cd0b
FXC
20646int
20647main ()
20648{
1409cd0b
FXC
20649 return 0;
20650}
db9f46a9 20651
1409cd0b 20652_ACEOF
5213506e 20653if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20654 gcc_cv_math_func_nextafterf=yes
1409cd0b 20655else
db9f46a9 20656 gcc_cv_math_func_nextafterf=no
1409cd0b 20657fi
5213506e
RW
20658rm -f core conftest.err conftest.$ac_objext \
20659 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20660fi
db9f46a9
TG
20661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20662$as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20663 if test $gcc_cv_math_func_nextafterf = yes; then
f1cdfa01 20664
f38a14ca
TG
20665cat >>confdefs.h <<_ACEOF
20666#define HAVE_NEXTAFTERF 1
20667_ACEOF
1409cd0b 20668
db9f46a9 20669 fi
1409cd0b 20670
1409cd0b 20671
db9f46a9
TG
20672
20673
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20675$as_echo_n "checking for nextafter... " >&6; }
20676if test "${gcc_cv_math_func_nextafter+set}" = set; then :
5213506e 20677 $as_echo_n "(cached) " >&6
1409cd0b 20678else
db9f46a9 20679 if test x$gcc_no_link = xyes; then
5213506e 20680 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20681fi
5213506e 20682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20683/* end confdefs.h. */
20684
db9f46a9
TG
20685#ifdef HAVE_COMPLEX_H
20686#include <complex.h>
20687#endif
20688#ifdef HAVE_MATH_H
20689#include <math.h>
1409cd0b 20690#endif
db9f46a9
TG
20691
20692int (*ptr)() = (int (*)())nextafter;
20693
1409cd0b
FXC
20694int
20695main ()
20696{
1409cd0b
FXC
20697 return 0;
20698}
db9f46a9 20699
1409cd0b 20700_ACEOF
5213506e 20701if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20702 gcc_cv_math_func_nextafter=yes
1409cd0b 20703else
db9f46a9 20704 gcc_cv_math_func_nextafter=no
1409cd0b 20705fi
5213506e
RW
20706rm -f core conftest.err conftest.$ac_objext \
20707 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20708fi
db9f46a9
TG
20709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20710$as_echo "$gcc_cv_math_func_nextafter" >&6; }
20711 if test $gcc_cv_math_func_nextafter = yes; then
f1cdfa01 20712
f38a14ca
TG
20713cat >>confdefs.h <<_ACEOF
20714#define HAVE_NEXTAFTER 1
20715_ACEOF
db9f46a9
TG
20716
20717 fi
1409cd0b 20718
1409cd0b 20719
1409cd0b 20720
db9f46a9
TG
20721
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20723$as_echo_n "checking for nextafterl... " >&6; }
20724if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
5213506e 20725 $as_echo_n "(cached) " >&6
1409cd0b 20726else
db9f46a9 20727 if test x$gcc_no_link = xyes; then
5213506e 20728 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20729fi
5213506e 20730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20731/* end confdefs.h. */
20732
db9f46a9
TG
20733#ifdef HAVE_COMPLEX_H
20734#include <complex.h>
1409cd0b 20735#endif
db9f46a9
TG
20736#ifdef HAVE_MATH_H
20737#include <math.h>
20738#endif
20739
20740int (*ptr)() = (int (*)())nextafterl;
20741
1409cd0b
FXC
20742int
20743main ()
20744{
1409cd0b
FXC
20745 return 0;
20746}
db9f46a9 20747
1409cd0b 20748_ACEOF
5213506e 20749if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20750 gcc_cv_math_func_nextafterl=yes
1409cd0b 20751else
db9f46a9 20752 gcc_cv_math_func_nextafterl=no
1409cd0b 20753fi
5213506e
RW
20754rm -f core conftest.err conftest.$ac_objext \
20755 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20756fi
db9f46a9
TG
20757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20758$as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20759 if test $gcc_cv_math_func_nextafterl = yes; then
f1cdfa01 20760
f38a14ca
TG
20761cat >>confdefs.h <<_ACEOF
20762#define HAVE_NEXTAFTERL 1
20763_ACEOF
db9f46a9
TG
20764
20765 fi
20766
1409cd0b 20767
1409cd0b 20768
1409cd0b 20769
db9f46a9
TG
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20771$as_echo_n "checking for powf... " >&6; }
20772if test "${gcc_cv_math_func_powf+set}" = set; then :
5213506e 20773 $as_echo_n "(cached) " >&6
1409cd0b 20774else
db9f46a9 20775 if test x$gcc_no_link = xyes; then
5213506e 20776 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20777fi
5213506e 20778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20779/* end confdefs.h. */
20780
db9f46a9
TG
20781#ifdef HAVE_COMPLEX_H
20782#include <complex.h>
20783#endif
20784#ifdef HAVE_MATH_H
20785#include <math.h>
1409cd0b 20786#endif
db9f46a9
TG
20787
20788int (*ptr)() = (int (*)())powf;
20789
1409cd0b
FXC
20790int
20791main ()
20792{
1409cd0b
FXC
20793 return 0;
20794}
db9f46a9 20795
1409cd0b 20796_ACEOF
5213506e 20797if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20798 gcc_cv_math_func_powf=yes
1409cd0b 20799else
db9f46a9 20800 gcc_cv_math_func_powf=no
1409cd0b 20801fi
5213506e
RW
20802rm -f core conftest.err conftest.$ac_objext \
20803 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20804fi
db9f46a9
TG
20805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20806$as_echo "$gcc_cv_math_func_powf" >&6; }
20807 if test $gcc_cv_math_func_powf = yes; then
f1cdfa01 20808
f38a14ca
TG
20809cat >>confdefs.h <<_ACEOF
20810#define HAVE_POWF 1
20811_ACEOF
db9f46a9
TG
20812
20813 fi
1409cd0b 20814
1409cd0b 20815
1409cd0b 20816
db9f46a9
TG
20817
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20819$as_echo_n "checking for pow... " >&6; }
20820if test "${gcc_cv_math_func_pow+set}" = set; then :
5213506e 20821 $as_echo_n "(cached) " >&6
1409cd0b 20822else
db9f46a9 20823 if test x$gcc_no_link = xyes; then
5213506e 20824 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20825fi
5213506e 20826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20827/* end confdefs.h. */
20828
db9f46a9
TG
20829#ifdef HAVE_COMPLEX_H
20830#include <complex.h>
1409cd0b 20831#endif
db9f46a9
TG
20832#ifdef HAVE_MATH_H
20833#include <math.h>
20834#endif
20835
20836int (*ptr)() = (int (*)())pow;
20837
1409cd0b
FXC
20838int
20839main ()
20840{
1409cd0b
FXC
20841 return 0;
20842}
db9f46a9 20843
1409cd0b 20844_ACEOF
5213506e 20845if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20846 gcc_cv_math_func_pow=yes
1409cd0b 20847else
db9f46a9 20848 gcc_cv_math_func_pow=no
1409cd0b 20849fi
5213506e
RW
20850rm -f core conftest.err conftest.$ac_objext \
20851 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20852fi
db9f46a9
TG
20853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20854$as_echo "$gcc_cv_math_func_pow" >&6; }
20855 if test $gcc_cv_math_func_pow = yes; then
f1cdfa01 20856
f38a14ca
TG
20857cat >>confdefs.h <<_ACEOF
20858#define HAVE_POW 1
20859_ACEOF
1409cd0b 20860
db9f46a9 20861 fi
1409cd0b 20862
1409cd0b 20863
db9f46a9
TG
20864
20865
db9f46a9
TG
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20867$as_echo_n "checking for cpowf... " >&6; }
20868if test "${gcc_cv_math_func_cpowf+set}" = set; then :
5213506e 20869 $as_echo_n "(cached) " >&6
1409cd0b 20870else
db9f46a9 20871 if test x$gcc_no_link = xyes; then
5213506e 20872 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20873fi
5213506e 20874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20875/* end confdefs.h. */
20876
db9f46a9
TG
20877#ifdef HAVE_COMPLEX_H
20878#include <complex.h>
1409cd0b 20879#endif
db9f46a9
TG
20880#ifdef HAVE_MATH_H
20881#include <math.h>
20882#endif
20883
20884int (*ptr)() = (int (*)())cpowf;
20885
1409cd0b
FXC
20886int
20887main ()
20888{
1409cd0b
FXC
20889 return 0;
20890}
db9f46a9 20891
1409cd0b 20892_ACEOF
5213506e 20893if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20894 gcc_cv_math_func_cpowf=yes
1409cd0b 20895else
db9f46a9 20896 gcc_cv_math_func_cpowf=no
1409cd0b 20897fi
5213506e
RW
20898rm -f core conftest.err conftest.$ac_objext \
20899 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20900fi
db9f46a9
TG
20901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20902$as_echo "$gcc_cv_math_func_cpowf" >&6; }
20903 if test $gcc_cv_math_func_cpowf = yes; then
f1cdfa01 20904
f38a14ca
TG
20905cat >>confdefs.h <<_ACEOF
20906#define HAVE_CPOWF 1
20907_ACEOF
db9f46a9
TG
20908
20909 fi
20910
1409cd0b 20911
1409cd0b 20912
1409cd0b 20913
db9f46a9
TG
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20915$as_echo_n "checking for cpow... " >&6; }
20916if test "${gcc_cv_math_func_cpow+set}" = set; then :
5213506e 20917 $as_echo_n "(cached) " >&6
1409cd0b 20918else
db9f46a9 20919 if test x$gcc_no_link = xyes; then
5213506e 20920 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20921fi
5213506e 20922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20923/* end confdefs.h. */
20924
db9f46a9
TG
20925#ifdef HAVE_COMPLEX_H
20926#include <complex.h>
20927#endif
20928#ifdef HAVE_MATH_H
20929#include <math.h>
1409cd0b 20930#endif
db9f46a9
TG
20931
20932int (*ptr)() = (int (*)())cpow;
20933
1409cd0b
FXC
20934int
20935main ()
20936{
1409cd0b
FXC
20937 return 0;
20938}
db9f46a9 20939
1409cd0b 20940_ACEOF
5213506e 20941if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20942 gcc_cv_math_func_cpow=yes
1409cd0b 20943else
db9f46a9 20944 gcc_cv_math_func_cpow=no
1409cd0b 20945fi
5213506e
RW
20946rm -f core conftest.err conftest.$ac_objext \
20947 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20948fi
db9f46a9
TG
20949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
20950$as_echo "$gcc_cv_math_func_cpow" >&6; }
20951 if test $gcc_cv_math_func_cpow = yes; then
f1cdfa01 20952
f38a14ca
TG
20953cat >>confdefs.h <<_ACEOF
20954#define HAVE_CPOW 1
20955_ACEOF
db9f46a9
TG
20956
20957 fi
1409cd0b 20958
1409cd0b 20959
1409cd0b 20960
db9f46a9
TG
20961
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
20963$as_echo_n "checking for cpowl... " >&6; }
20964if test "${gcc_cv_math_func_cpowl+set}" = set; then :
5213506e 20965 $as_echo_n "(cached) " >&6
1409cd0b 20966else
db9f46a9 20967 if test x$gcc_no_link = xyes; then
5213506e 20968 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20969fi
5213506e 20970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20971/* end confdefs.h. */
20972
db9f46a9
TG
20973#ifdef HAVE_COMPLEX_H
20974#include <complex.h>
1409cd0b 20975#endif
db9f46a9
TG
20976#ifdef HAVE_MATH_H
20977#include <math.h>
20978#endif
20979
20980int (*ptr)() = (int (*)())cpowl;
20981
1409cd0b
FXC
20982int
20983main ()
20984{
1409cd0b
FXC
20985 return 0;
20986}
db9f46a9 20987
1409cd0b 20988_ACEOF
5213506e 20989if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20990 gcc_cv_math_func_cpowl=yes
1409cd0b 20991else
db9f46a9 20992 gcc_cv_math_func_cpowl=no
1409cd0b 20993fi
5213506e
RW
20994rm -f core conftest.err conftest.$ac_objext \
20995 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20996fi
db9f46a9
TG
20997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
20998$as_echo "$gcc_cv_math_func_cpowl" >&6; }
20999 if test $gcc_cv_math_func_cpowl = yes; then
f1cdfa01 21000
f38a14ca
TG
21001cat >>confdefs.h <<_ACEOF
21002#define HAVE_CPOWL 1
21003_ACEOF
1409cd0b 21004
db9f46a9 21005 fi
1409cd0b 21006
1409cd0b 21007
db9f46a9
TG
21008
21009
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21011$as_echo_n "checking for roundf... " >&6; }
21012if test "${gcc_cv_math_func_roundf+set}" = set; then :
5213506e 21013 $as_echo_n "(cached) " >&6
1409cd0b 21014else
db9f46a9 21015 if test x$gcc_no_link = xyes; then
5213506e 21016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21017fi
5213506e 21018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21019/* end confdefs.h. */
21020
db9f46a9
TG
21021#ifdef HAVE_COMPLEX_H
21022#include <complex.h>
21023#endif
21024#ifdef HAVE_MATH_H
21025#include <math.h>
1409cd0b 21026#endif
db9f46a9
TG
21027
21028int (*ptr)() = (int (*)())roundf;
21029
1409cd0b
FXC
21030int
21031main ()
21032{
1409cd0b
FXC
21033 return 0;
21034}
db9f46a9 21035
1409cd0b 21036_ACEOF
5213506e 21037if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21038 gcc_cv_math_func_roundf=yes
1409cd0b 21039else
db9f46a9 21040 gcc_cv_math_func_roundf=no
1409cd0b 21041fi
5213506e
RW
21042rm -f core conftest.err conftest.$ac_objext \
21043 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21044fi
db9f46a9
TG
21045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21046$as_echo "$gcc_cv_math_func_roundf" >&6; }
21047 if test $gcc_cv_math_func_roundf = yes; then
f1cdfa01 21048
f38a14ca
TG
21049cat >>confdefs.h <<_ACEOF
21050#define HAVE_ROUNDF 1
21051_ACEOF
db9f46a9
TG
21052
21053 fi
1409cd0b 21054
1409cd0b 21055
1409cd0b 21056
db9f46a9
TG
21057
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21059$as_echo_n "checking for round... " >&6; }
21060if test "${gcc_cv_math_func_round+set}" = set; then :
5213506e 21061 $as_echo_n "(cached) " >&6
1409cd0b 21062else
db9f46a9 21063 if test x$gcc_no_link = xyes; then
5213506e 21064 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21065fi
5213506e 21066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21067/* end confdefs.h. */
21068
db9f46a9
TG
21069#ifdef HAVE_COMPLEX_H
21070#include <complex.h>
1409cd0b 21071#endif
db9f46a9
TG
21072#ifdef HAVE_MATH_H
21073#include <math.h>
21074#endif
21075
21076int (*ptr)() = (int (*)())round;
21077
1409cd0b
FXC
21078int
21079main ()
21080{
1409cd0b
FXC
21081 return 0;
21082}
db9f46a9 21083
1409cd0b 21084_ACEOF
5213506e 21085if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21086 gcc_cv_math_func_round=yes
1409cd0b 21087else
db9f46a9 21088 gcc_cv_math_func_round=no
1409cd0b 21089fi
5213506e
RW
21090rm -f core conftest.err conftest.$ac_objext \
21091 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21092fi
db9f46a9
TG
21093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21094$as_echo "$gcc_cv_math_func_round" >&6; }
21095 if test $gcc_cv_math_func_round = yes; then
f1cdfa01 21096
f38a14ca
TG
21097cat >>confdefs.h <<_ACEOF
21098#define HAVE_ROUND 1
21099_ACEOF
db9f46a9
TG
21100
21101 fi
21102
1409cd0b 21103
1409cd0b 21104
1409cd0b 21105
db9f46a9
TG
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21107$as_echo_n "checking for roundl... " >&6; }
21108if test "${gcc_cv_math_func_roundl+set}" = set; then :
5213506e 21109 $as_echo_n "(cached) " >&6
94f548c2 21110else
db9f46a9 21111 if test x$gcc_no_link = xyes; then
5213506e 21112 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21113fi
5213506e 21114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21115/* end confdefs.h. */
21116
db9f46a9
TG
21117#ifdef HAVE_COMPLEX_H
21118#include <complex.h>
21119#endif
21120#ifdef HAVE_MATH_H
21121#include <math.h>
94f548c2 21122#endif
db9f46a9
TG
21123
21124int (*ptr)() = (int (*)())roundl;
21125
94f548c2
FXC
21126int
21127main ()
21128{
94f548c2
FXC
21129 return 0;
21130}
db9f46a9 21131
94f548c2 21132_ACEOF
5213506e 21133if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21134 gcc_cv_math_func_roundl=yes
94f548c2 21135else
db9f46a9 21136 gcc_cv_math_func_roundl=no
94f548c2 21137fi
5213506e
RW
21138rm -f core conftest.err conftest.$ac_objext \
21139 conftest$ac_exeext conftest.$ac_ext
94f548c2 21140fi
db9f46a9
TG
21141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21142$as_echo "$gcc_cv_math_func_roundl" >&6; }
21143 if test $gcc_cv_math_func_roundl = yes; then
f1cdfa01 21144
f38a14ca
TG
21145cat >>confdefs.h <<_ACEOF
21146#define HAVE_ROUNDL 1
21147_ACEOF
db9f46a9
TG
21148
21149 fi
94f548c2 21150
94f548c2 21151
94f548c2 21152
db9f46a9
TG
21153
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21155$as_echo_n "checking for lroundf... " >&6; }
21156if test "${gcc_cv_math_func_lroundf+set}" = set; then :
5213506e 21157 $as_echo_n "(cached) " >&6
94f548c2 21158else
db9f46a9 21159 if test x$gcc_no_link = xyes; then
5213506e 21160 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21161fi
5213506e 21162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21163/* end confdefs.h. */
21164
db9f46a9
TG
21165#ifdef HAVE_COMPLEX_H
21166#include <complex.h>
94f548c2 21167#endif
db9f46a9
TG
21168#ifdef HAVE_MATH_H
21169#include <math.h>
21170#endif
21171
21172int (*ptr)() = (int (*)())lroundf;
21173
94f548c2
FXC
21174int
21175main ()
21176{
94f548c2
FXC
21177 return 0;
21178}
db9f46a9 21179
94f548c2 21180_ACEOF
5213506e 21181if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21182 gcc_cv_math_func_lroundf=yes
94f548c2 21183else
db9f46a9 21184 gcc_cv_math_func_lroundf=no
94f548c2 21185fi
5213506e
RW
21186rm -f core conftest.err conftest.$ac_objext \
21187 conftest$ac_exeext conftest.$ac_ext
94f548c2 21188fi
db9f46a9
TG
21189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21190$as_echo "$gcc_cv_math_func_lroundf" >&6; }
21191 if test $gcc_cv_math_func_lroundf = yes; then
f1cdfa01 21192
f38a14ca
TG
21193cat >>confdefs.h <<_ACEOF
21194#define HAVE_LROUNDF 1
21195_ACEOF
94f548c2 21196
db9f46a9 21197 fi
94f548c2 21198
94f548c2 21199
db9f46a9
TG
21200
21201
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21203$as_echo_n "checking for lround... " >&6; }
21204if test "${gcc_cv_math_func_lround+set}" = set; then :
5213506e 21205 $as_echo_n "(cached) " >&6
94f548c2 21206else
db9f46a9 21207 if test x$gcc_no_link = xyes; then
5213506e 21208 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21209fi
5213506e 21210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21211/* end confdefs.h. */
21212
db9f46a9
TG
21213#ifdef HAVE_COMPLEX_H
21214#include <complex.h>
21215#endif
21216#ifdef HAVE_MATH_H
21217#include <math.h>
94f548c2 21218#endif
db9f46a9
TG
21219
21220int (*ptr)() = (int (*)())lround;
21221
94f548c2
FXC
21222int
21223main ()
21224{
94f548c2
FXC
21225 return 0;
21226}
db9f46a9 21227
94f548c2 21228_ACEOF
5213506e 21229if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21230 gcc_cv_math_func_lround=yes
94f548c2 21231else
db9f46a9 21232 gcc_cv_math_func_lround=no
94f548c2 21233fi
5213506e
RW
21234rm -f core conftest.err conftest.$ac_objext \
21235 conftest$ac_exeext conftest.$ac_ext
94f548c2 21236fi
db9f46a9
TG
21237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21238$as_echo "$gcc_cv_math_func_lround" >&6; }
21239 if test $gcc_cv_math_func_lround = yes; then
f1cdfa01 21240
f38a14ca
TG
21241cat >>confdefs.h <<_ACEOF
21242#define HAVE_LROUND 1
21243_ACEOF
db9f46a9
TG
21244
21245 fi
21246
94f548c2 21247
94f548c2 21248
94f548c2 21249
db9f46a9
TG
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21251$as_echo_n "checking for lroundl... " >&6; }
21252if test "${gcc_cv_math_func_lroundl+set}" = set; then :
5213506e 21253 $as_echo_n "(cached) " >&6
94f548c2 21254else
db9f46a9 21255 if test x$gcc_no_link = xyes; then
5213506e 21256 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21257fi
5213506e 21258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21259/* end confdefs.h. */
21260
db9f46a9
TG
21261#ifdef HAVE_COMPLEX_H
21262#include <complex.h>
21263#endif
21264#ifdef HAVE_MATH_H
21265#include <math.h>
94f548c2 21266#endif
db9f46a9
TG
21267
21268int (*ptr)() = (int (*)())lroundl;
21269
94f548c2
FXC
21270int
21271main ()
21272{
94f548c2
FXC
21273 return 0;
21274}
db9f46a9 21275
94f548c2 21276_ACEOF
5213506e 21277if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21278 gcc_cv_math_func_lroundl=yes
94f548c2 21279else
db9f46a9 21280 gcc_cv_math_func_lroundl=no
94f548c2 21281fi
5213506e
RW
21282rm -f core conftest.err conftest.$ac_objext \
21283 conftest$ac_exeext conftest.$ac_ext
94f548c2 21284fi
db9f46a9
TG
21285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21286$as_echo "$gcc_cv_math_func_lroundl" >&6; }
21287 if test $gcc_cv_math_func_lroundl = yes; then
f1cdfa01 21288
f38a14ca
TG
21289cat >>confdefs.h <<_ACEOF
21290#define HAVE_LROUNDL 1
21291_ACEOF
94f548c2 21292
db9f46a9 21293 fi
94f548c2 21294
94f548c2 21295
db9f46a9
TG
21296
21297
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21299$as_echo_n "checking for llroundf... " >&6; }
21300if test "${gcc_cv_math_func_llroundf+set}" = set; then :
5213506e 21301 $as_echo_n "(cached) " >&6
94f548c2 21302else
db9f46a9 21303 if test x$gcc_no_link = xyes; then
5213506e 21304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21305fi
5213506e 21306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21307/* end confdefs.h. */
21308
db9f46a9
TG
21309#ifdef HAVE_COMPLEX_H
21310#include <complex.h>
94f548c2 21311#endif
db9f46a9
TG
21312#ifdef HAVE_MATH_H
21313#include <math.h>
21314#endif
21315
21316int (*ptr)() = (int (*)())llroundf;
21317
94f548c2
FXC
21318int
21319main ()
21320{
94f548c2
FXC
21321 return 0;
21322}
db9f46a9 21323
94f548c2 21324_ACEOF
5213506e 21325if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21326 gcc_cv_math_func_llroundf=yes
94f548c2 21327else
db9f46a9 21328 gcc_cv_math_func_llroundf=no
94f548c2 21329fi
5213506e
RW
21330rm -f core conftest.err conftest.$ac_objext \
21331 conftest$ac_exeext conftest.$ac_ext
94f548c2 21332fi
db9f46a9
TG
21333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21334$as_echo "$gcc_cv_math_func_llroundf" >&6; }
21335 if test $gcc_cv_math_func_llroundf = yes; then
f1cdfa01 21336
f38a14ca
TG
21337cat >>confdefs.h <<_ACEOF
21338#define HAVE_LLROUNDF 1
21339_ACEOF
94f548c2 21340
db9f46a9 21341 fi
94f548c2 21342
94f548c2 21343
db9f46a9
TG
21344
21345
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21347$as_echo_n "checking for llround... " >&6; }
21348if test "${gcc_cv_math_func_llround+set}" = set; then :
5213506e 21349 $as_echo_n "(cached) " >&6
94f548c2 21350else
db9f46a9 21351 if test x$gcc_no_link = xyes; then
5213506e 21352 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21353fi
5213506e 21354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21355/* end confdefs.h. */
21356
db9f46a9
TG
21357#ifdef HAVE_COMPLEX_H
21358#include <complex.h>
21359#endif
21360#ifdef HAVE_MATH_H
21361#include <math.h>
94f548c2 21362#endif
db9f46a9
TG
21363
21364int (*ptr)() = (int (*)())llround;
21365
94f548c2
FXC
21366int
21367main ()
21368{
94f548c2
FXC
21369 return 0;
21370}
db9f46a9 21371
94f548c2 21372_ACEOF
5213506e 21373if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21374 gcc_cv_math_func_llround=yes
94f548c2 21375else
db9f46a9 21376 gcc_cv_math_func_llround=no
94f548c2 21377fi
5213506e
RW
21378rm -f core conftest.err conftest.$ac_objext \
21379 conftest$ac_exeext conftest.$ac_ext
94f548c2 21380fi
db9f46a9
TG
21381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21382$as_echo "$gcc_cv_math_func_llround" >&6; }
21383 if test $gcc_cv_math_func_llround = yes; then
f1cdfa01 21384
f38a14ca
TG
21385cat >>confdefs.h <<_ACEOF
21386#define HAVE_LLROUND 1
21387_ACEOF
db9f46a9
TG
21388
21389 fi
21390
94f548c2 21391
94f548c2 21392
94f548c2 21393
db9f46a9
TG
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21395$as_echo_n "checking for llroundl... " >&6; }
21396if test "${gcc_cv_math_func_llroundl+set}" = set; then :
5213506e 21397 $as_echo_n "(cached) " >&6
1409cd0b 21398else
db9f46a9 21399 if test x$gcc_no_link = xyes; then
5213506e 21400 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21401fi
5213506e 21402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21403/* end confdefs.h. */
21404
db9f46a9
TG
21405#ifdef HAVE_COMPLEX_H
21406#include <complex.h>
21407#endif
21408#ifdef HAVE_MATH_H
21409#include <math.h>
1409cd0b 21410#endif
db9f46a9
TG
21411
21412int (*ptr)() = (int (*)())llroundl;
21413
1409cd0b
FXC
21414int
21415main ()
21416{
1409cd0b
FXC
21417 return 0;
21418}
db9f46a9 21419
1409cd0b 21420_ACEOF
5213506e 21421if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21422 gcc_cv_math_func_llroundl=yes
1409cd0b 21423else
db9f46a9 21424 gcc_cv_math_func_llroundl=no
1409cd0b 21425fi
5213506e
RW
21426rm -f core conftest.err conftest.$ac_objext \
21427 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21428fi
db9f46a9
TG
21429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21430$as_echo "$gcc_cv_math_func_llroundl" >&6; }
21431 if test $gcc_cv_math_func_llroundl = yes; then
f1cdfa01 21432
f38a14ca
TG
21433cat >>confdefs.h <<_ACEOF
21434#define HAVE_LLROUNDL 1
21435_ACEOF
1409cd0b 21436
db9f46a9 21437 fi
1409cd0b 21438
1409cd0b 21439
db9f46a9
TG
21440
21441
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21443$as_echo_n "checking for scalbnf... " >&6; }
21444if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
5213506e 21445 $as_echo_n "(cached) " >&6
1409cd0b 21446else
db9f46a9 21447 if test x$gcc_no_link = xyes; then
5213506e 21448 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21449fi
5213506e 21450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21451/* end confdefs.h. */
21452
db9f46a9
TG
21453#ifdef HAVE_COMPLEX_H
21454#include <complex.h>
1409cd0b 21455#endif
db9f46a9
TG
21456#ifdef HAVE_MATH_H
21457#include <math.h>
21458#endif
21459
21460int (*ptr)() = (int (*)())scalbnf;
21461
1409cd0b
FXC
21462int
21463main ()
21464{
1409cd0b
FXC
21465 return 0;
21466}
db9f46a9 21467
1409cd0b 21468_ACEOF
5213506e 21469if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21470 gcc_cv_math_func_scalbnf=yes
1409cd0b 21471else
db9f46a9 21472 gcc_cv_math_func_scalbnf=no
1409cd0b 21473fi
5213506e
RW
21474rm -f core conftest.err conftest.$ac_objext \
21475 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21476fi
db9f46a9
TG
21477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21478$as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21479 if test $gcc_cv_math_func_scalbnf = yes; then
f1cdfa01 21480
f38a14ca
TG
21481cat >>confdefs.h <<_ACEOF
21482#define HAVE_SCALBNF 1
21483_ACEOF
1409cd0b 21484
db9f46a9 21485 fi
1409cd0b 21486
1409cd0b 21487
db9f46a9
TG
21488
21489
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21491$as_echo_n "checking for scalbn... " >&6; }
21492if test "${gcc_cv_math_func_scalbn+set}" = set; then :
5213506e 21493 $as_echo_n "(cached) " >&6
1409cd0b 21494else
db9f46a9 21495 if test x$gcc_no_link = xyes; then
5213506e 21496 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21497fi
5213506e 21498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21499/* end confdefs.h. */
21500
db9f46a9
TG
21501#ifdef HAVE_COMPLEX_H
21502#include <complex.h>
21503#endif
21504#ifdef HAVE_MATH_H
21505#include <math.h>
1409cd0b 21506#endif
db9f46a9
TG
21507
21508int (*ptr)() = (int (*)())scalbn;
21509
1409cd0b
FXC
21510int
21511main ()
21512{
1409cd0b
FXC
21513 return 0;
21514}
db9f46a9 21515
1409cd0b 21516_ACEOF
5213506e 21517if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21518 gcc_cv_math_func_scalbn=yes
1409cd0b 21519else
db9f46a9 21520 gcc_cv_math_func_scalbn=no
1409cd0b 21521fi
5213506e
RW
21522rm -f core conftest.err conftest.$ac_objext \
21523 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21524fi
db9f46a9
TG
21525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21526$as_echo "$gcc_cv_math_func_scalbn" >&6; }
21527 if test $gcc_cv_math_func_scalbn = yes; then
f1cdfa01 21528
f38a14ca
TG
21529cat >>confdefs.h <<_ACEOF
21530#define HAVE_SCALBN 1
21531_ACEOF
db9f46a9
TG
21532
21533 fi
21534
1409cd0b 21535
1409cd0b 21536
1409cd0b 21537
db9f46a9
TG
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21539$as_echo_n "checking for scalbnl... " >&6; }
21540if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
5213506e 21541 $as_echo_n "(cached) " >&6
1409cd0b 21542else
db9f46a9 21543 if test x$gcc_no_link = xyes; then
5213506e 21544 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21545fi
5213506e 21546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21547/* end confdefs.h. */
21548
db9f46a9
TG
21549#ifdef HAVE_COMPLEX_H
21550#include <complex.h>
21551#endif
21552#ifdef HAVE_MATH_H
21553#include <math.h>
1409cd0b 21554#endif
db9f46a9
TG
21555
21556int (*ptr)() = (int (*)())scalbnl;
21557
1409cd0b
FXC
21558int
21559main ()
21560{
1409cd0b
FXC
21561 return 0;
21562}
db9f46a9 21563
1409cd0b 21564_ACEOF
5213506e 21565if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21566 gcc_cv_math_func_scalbnl=yes
1409cd0b 21567else
db9f46a9 21568 gcc_cv_math_func_scalbnl=no
1409cd0b 21569fi
5213506e
RW
21570rm -f core conftest.err conftest.$ac_objext \
21571 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21572fi
db9f46a9
TG
21573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21574$as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21575 if test $gcc_cv_math_func_scalbnl = yes; then
f1cdfa01 21576
f38a14ca
TG
21577cat >>confdefs.h <<_ACEOF
21578#define HAVE_SCALBNL 1
21579_ACEOF
1409cd0b 21580
db9f46a9 21581 fi
1409cd0b 21582
1409cd0b 21583
db9f46a9
TG
21584
21585
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21587$as_echo_n "checking for sinf... " >&6; }
21588if test "${gcc_cv_math_func_sinf+set}" = set; then :
5213506e 21589 $as_echo_n "(cached) " >&6
1409cd0b 21590else
db9f46a9 21591 if test x$gcc_no_link = xyes; then
5213506e 21592 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21593fi
5213506e 21594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21595/* end confdefs.h. */
21596
db9f46a9
TG
21597#ifdef HAVE_COMPLEX_H
21598#include <complex.h>
1409cd0b 21599#endif
db9f46a9
TG
21600#ifdef HAVE_MATH_H
21601#include <math.h>
21602#endif
21603
21604int (*ptr)() = (int (*)())sinf;
21605
1409cd0b
FXC
21606int
21607main ()
21608{
1409cd0b
FXC
21609 return 0;
21610}
db9f46a9 21611
1409cd0b 21612_ACEOF
5213506e 21613if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21614 gcc_cv_math_func_sinf=yes
1409cd0b 21615else
db9f46a9 21616 gcc_cv_math_func_sinf=no
1409cd0b 21617fi
5213506e
RW
21618rm -f core conftest.err conftest.$ac_objext \
21619 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21620fi
db9f46a9
TG
21621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21622$as_echo "$gcc_cv_math_func_sinf" >&6; }
21623 if test $gcc_cv_math_func_sinf = yes; then
f1cdfa01 21624
f38a14ca
TG
21625cat >>confdefs.h <<_ACEOF
21626#define HAVE_SINF 1
21627_ACEOF
1409cd0b 21628
db9f46a9 21629 fi
1409cd0b 21630
1409cd0b 21631
db9f46a9
TG
21632
21633
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21635$as_echo_n "checking for sin... " >&6; }
21636if test "${gcc_cv_math_func_sin+set}" = set; then :
5213506e 21637 $as_echo_n "(cached) " >&6
1409cd0b 21638else
db9f46a9 21639 if test x$gcc_no_link = xyes; then
5213506e 21640 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21641fi
5213506e 21642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21643/* end confdefs.h. */
21644
db9f46a9
TG
21645#ifdef HAVE_COMPLEX_H
21646#include <complex.h>
1409cd0b 21647#endif
db9f46a9
TG
21648#ifdef HAVE_MATH_H
21649#include <math.h>
21650#endif
21651
21652int (*ptr)() = (int (*)())sin;
21653
1409cd0b
FXC
21654int
21655main ()
21656{
1409cd0b
FXC
21657 return 0;
21658}
db9f46a9 21659
1409cd0b 21660_ACEOF
5213506e 21661if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21662 gcc_cv_math_func_sin=yes
1409cd0b 21663else
db9f46a9 21664 gcc_cv_math_func_sin=no
1409cd0b 21665fi
5213506e
RW
21666rm -f core conftest.err conftest.$ac_objext \
21667 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21668fi
db9f46a9
TG
21669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21670$as_echo "$gcc_cv_math_func_sin" >&6; }
21671 if test $gcc_cv_math_func_sin = yes; then
f1cdfa01 21672
f38a14ca
TG
21673cat >>confdefs.h <<_ACEOF
21674#define HAVE_SIN 1
21675_ACEOF
db9f46a9
TG
21676
21677 fi
21678
1409cd0b 21679
1409cd0b 21680
1409cd0b 21681
db9f46a9
TG
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21683$as_echo_n "checking for sinl... " >&6; }
21684if test "${gcc_cv_math_func_sinl+set}" = set; then :
5213506e 21685 $as_echo_n "(cached) " >&6
1409cd0b 21686else
db9f46a9 21687 if test x$gcc_no_link = xyes; then
5213506e 21688 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21689fi
5213506e 21690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21691/* end confdefs.h. */
21692
db9f46a9
TG
21693#ifdef HAVE_COMPLEX_H
21694#include <complex.h>
1409cd0b 21695#endif
db9f46a9
TG
21696#ifdef HAVE_MATH_H
21697#include <math.h>
21698#endif
21699
21700int (*ptr)() = (int (*)())sinl;
21701
1409cd0b
FXC
21702int
21703main ()
21704{
5213506e
RW
21705 return 0;
21706}
db9f46a9 21707
5213506e
RW
21708_ACEOF
21709if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21710 gcc_cv_math_func_sinl=yes
1409cd0b 21711else
db9f46a9 21712 gcc_cv_math_func_sinl=no
1409cd0b 21713fi
5213506e
RW
21714rm -f core conftest.err conftest.$ac_objext \
21715 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21716fi
db9f46a9
TG
21717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21718$as_echo "$gcc_cv_math_func_sinl" >&6; }
21719 if test $gcc_cv_math_func_sinl = yes; then
f1cdfa01 21720
f38a14ca
TG
21721cat >>confdefs.h <<_ACEOF
21722#define HAVE_SINL 1
21723_ACEOF
db9f46a9
TG
21724
21725 fi
1409cd0b 21726
1409cd0b 21727
1409cd0b 21728
db9f46a9
TG
21729
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21731$as_echo_n "checking for csinf... " >&6; }
21732if test "${gcc_cv_math_func_csinf+set}" = set; then :
5213506e 21733 $as_echo_n "(cached) " >&6
1409cd0b 21734else
db9f46a9 21735 if test x$gcc_no_link = xyes; then
5213506e 21736 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21737fi
5213506e 21738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21739/* end confdefs.h. */
21740
db9f46a9
TG
21741#ifdef HAVE_COMPLEX_H
21742#include <complex.h>
21743#endif
21744#ifdef HAVE_MATH_H
21745#include <math.h>
1409cd0b 21746#endif
db9f46a9
TG
21747
21748int (*ptr)() = (int (*)())csinf;
21749
1409cd0b
FXC
21750int
21751main ()
21752{
1409cd0b
FXC
21753 return 0;
21754}
db9f46a9 21755
1409cd0b 21756_ACEOF
5213506e 21757if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21758 gcc_cv_math_func_csinf=yes
1409cd0b 21759else
db9f46a9 21760 gcc_cv_math_func_csinf=no
1409cd0b 21761fi
5213506e
RW
21762rm -f core conftest.err conftest.$ac_objext \
21763 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21764fi
db9f46a9
TG
21765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21766$as_echo "$gcc_cv_math_func_csinf" >&6; }
21767 if test $gcc_cv_math_func_csinf = yes; then
f1cdfa01 21768
f38a14ca
TG
21769cat >>confdefs.h <<_ACEOF
21770#define HAVE_CSINF 1
21771_ACEOF
1409cd0b 21772
db9f46a9 21773 fi
1409cd0b 21774
1409cd0b 21775
db9f46a9
TG
21776
21777
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21779$as_echo_n "checking for csin... " >&6; }
21780if test "${gcc_cv_math_func_csin+set}" = set; then :
5213506e 21781 $as_echo_n "(cached) " >&6
1409cd0b 21782else
db9f46a9 21783 if test x$gcc_no_link = xyes; then
5213506e 21784 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21785fi
5213506e 21786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21787/* end confdefs.h. */
21788
db9f46a9
TG
21789#ifdef HAVE_COMPLEX_H
21790#include <complex.h>
1409cd0b 21791#endif
db9f46a9
TG
21792#ifdef HAVE_MATH_H
21793#include <math.h>
21794#endif
21795
21796int (*ptr)() = (int (*)())csin;
21797
1409cd0b
FXC
21798int
21799main ()
21800{
1409cd0b
FXC
21801 return 0;
21802}
db9f46a9 21803
1409cd0b 21804_ACEOF
5213506e 21805if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21806 gcc_cv_math_func_csin=yes
1409cd0b 21807else
db9f46a9 21808 gcc_cv_math_func_csin=no
1409cd0b 21809fi
5213506e
RW
21810rm -f core conftest.err conftest.$ac_objext \
21811 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21812fi
db9f46a9
TG
21813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21814$as_echo "$gcc_cv_math_func_csin" >&6; }
21815 if test $gcc_cv_math_func_csin = yes; then
f1cdfa01 21816
f38a14ca
TG
21817cat >>confdefs.h <<_ACEOF
21818#define HAVE_CSIN 1
21819_ACEOF
db9f46a9
TG
21820
21821 fi
21822
1409cd0b 21823
1409cd0b 21824
1409cd0b 21825
db9f46a9
TG
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21827$as_echo_n "checking for csinl... " >&6; }
21828if test "${gcc_cv_math_func_csinl+set}" = set; then :
5213506e 21829 $as_echo_n "(cached) " >&6
1409cd0b 21830else
db9f46a9 21831 if test x$gcc_no_link = xyes; then
5213506e 21832 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21833fi
5213506e 21834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21835/* end confdefs.h. */
21836
db9f46a9
TG
21837#ifdef HAVE_COMPLEX_H
21838#include <complex.h>
1409cd0b 21839#endif
db9f46a9
TG
21840#ifdef HAVE_MATH_H
21841#include <math.h>
21842#endif
21843
21844int (*ptr)() = (int (*)())csinl;
21845
1409cd0b
FXC
21846int
21847main ()
21848{
1409cd0b
FXC
21849 return 0;
21850}
db9f46a9 21851
1409cd0b 21852_ACEOF
5213506e 21853if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21854 gcc_cv_math_func_csinl=yes
1409cd0b 21855else
db9f46a9 21856 gcc_cv_math_func_csinl=no
1409cd0b 21857fi
5213506e
RW
21858rm -f core conftest.err conftest.$ac_objext \
21859 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21860fi
db9f46a9
TG
21861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21862$as_echo "$gcc_cv_math_func_csinl" >&6; }
21863 if test $gcc_cv_math_func_csinl = yes; then
f1cdfa01 21864
f38a14ca
TG
21865cat >>confdefs.h <<_ACEOF
21866#define HAVE_CSINL 1
21867_ACEOF
db9f46a9
TG
21868
21869 fi
1409cd0b 21870
1409cd0b 21871
1409cd0b 21872
db9f46a9
TG
21873
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21875$as_echo_n "checking for sinhf... " >&6; }
21876if test "${gcc_cv_math_func_sinhf+set}" = set; then :
5213506e 21877 $as_echo_n "(cached) " >&6
1409cd0b 21878else
db9f46a9 21879 if test x$gcc_no_link = xyes; then
5213506e 21880 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21881fi
5213506e 21882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21883/* end confdefs.h. */
21884
db9f46a9
TG
21885#ifdef HAVE_COMPLEX_H
21886#include <complex.h>
21887#endif
21888#ifdef HAVE_MATH_H
21889#include <math.h>
1409cd0b 21890#endif
db9f46a9
TG
21891
21892int (*ptr)() = (int (*)())sinhf;
21893
1409cd0b
FXC
21894int
21895main ()
21896{
1409cd0b
FXC
21897 return 0;
21898}
db9f46a9 21899
1409cd0b 21900_ACEOF
5213506e 21901if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21902 gcc_cv_math_func_sinhf=yes
1409cd0b 21903else
db9f46a9 21904 gcc_cv_math_func_sinhf=no
1409cd0b 21905fi
5213506e
RW
21906rm -f core conftest.err conftest.$ac_objext \
21907 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21908fi
db9f46a9
TG
21909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21910$as_echo "$gcc_cv_math_func_sinhf" >&6; }
21911 if test $gcc_cv_math_func_sinhf = yes; then
f1cdfa01 21912
f38a14ca
TG
21913cat >>confdefs.h <<_ACEOF
21914#define HAVE_SINHF 1
21915_ACEOF
1409cd0b 21916
db9f46a9 21917 fi
1409cd0b 21918
1409cd0b 21919
db9f46a9
TG
21920
21921
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21923$as_echo_n "checking for sinh... " >&6; }
21924if test "${gcc_cv_math_func_sinh+set}" = set; then :
5213506e 21925 $as_echo_n "(cached) " >&6
1409cd0b 21926else
db9f46a9 21927 if test x$gcc_no_link = xyes; then
5213506e 21928 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21929fi
5213506e 21930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21931/* end confdefs.h. */
21932
db9f46a9
TG
21933#ifdef HAVE_COMPLEX_H
21934#include <complex.h>
1409cd0b 21935#endif
db9f46a9
TG
21936#ifdef HAVE_MATH_H
21937#include <math.h>
21938#endif
21939
21940int (*ptr)() = (int (*)())sinh;
21941
1409cd0b
FXC
21942int
21943main ()
21944{
1409cd0b
FXC
21945 return 0;
21946}
db9f46a9 21947
1409cd0b 21948_ACEOF
5213506e 21949if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21950 gcc_cv_math_func_sinh=yes
1409cd0b 21951else
db9f46a9 21952 gcc_cv_math_func_sinh=no
1409cd0b 21953fi
5213506e
RW
21954rm -f core conftest.err conftest.$ac_objext \
21955 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21956fi
db9f46a9
TG
21957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
21958$as_echo "$gcc_cv_math_func_sinh" >&6; }
21959 if test $gcc_cv_math_func_sinh = yes; then
f1cdfa01 21960
f38a14ca
TG
21961cat >>confdefs.h <<_ACEOF
21962#define HAVE_SINH 1
21963_ACEOF
db9f46a9
TG
21964
21965 fi
21966
1409cd0b 21967
1409cd0b 21968
1409cd0b 21969
db9f46a9
TG
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
21971$as_echo_n "checking for sinhl... " >&6; }
21972if test "${gcc_cv_math_func_sinhl+set}" = set; then :
5213506e 21973 $as_echo_n "(cached) " >&6
1409cd0b 21974else
db9f46a9 21975 if test x$gcc_no_link = xyes; then
5213506e 21976 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21977fi
5213506e 21978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21979/* end confdefs.h. */
21980
db9f46a9
TG
21981#ifdef HAVE_COMPLEX_H
21982#include <complex.h>
1409cd0b 21983#endif
db9f46a9
TG
21984#ifdef HAVE_MATH_H
21985#include <math.h>
21986#endif
21987
21988int (*ptr)() = (int (*)())sinhl;
21989
1409cd0b
FXC
21990int
21991main ()
21992{
1409cd0b
FXC
21993 return 0;
21994}
db9f46a9 21995
1409cd0b 21996_ACEOF
5213506e 21997if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21998 gcc_cv_math_func_sinhl=yes
1409cd0b 21999else
db9f46a9 22000 gcc_cv_math_func_sinhl=no
1409cd0b 22001fi
5213506e
RW
22002rm -f core conftest.err conftest.$ac_objext \
22003 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22004fi
db9f46a9
TG
22005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22006$as_echo "$gcc_cv_math_func_sinhl" >&6; }
22007 if test $gcc_cv_math_func_sinhl = yes; then
f1cdfa01 22008
f38a14ca
TG
22009cat >>confdefs.h <<_ACEOF
22010#define HAVE_SINHL 1
22011_ACEOF
db9f46a9
TG
22012
22013 fi
1409cd0b 22014
1409cd0b 22015
1409cd0b 22016
db9f46a9
TG
22017
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22019$as_echo_n "checking for csinhf... " >&6; }
22020if test "${gcc_cv_math_func_csinhf+set}" = set; then :
5213506e 22021 $as_echo_n "(cached) " >&6
1409cd0b 22022else
db9f46a9 22023 if test x$gcc_no_link = xyes; then
5213506e 22024 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22025fi
5213506e 22026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22027/* end confdefs.h. */
22028
db9f46a9
TG
22029#ifdef HAVE_COMPLEX_H
22030#include <complex.h>
22031#endif
22032#ifdef HAVE_MATH_H
22033#include <math.h>
1409cd0b 22034#endif
db9f46a9
TG
22035
22036int (*ptr)() = (int (*)())csinhf;
22037
1409cd0b
FXC
22038int
22039main ()
22040{
1409cd0b
FXC
22041 return 0;
22042}
db9f46a9 22043
1409cd0b 22044_ACEOF
5213506e 22045if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22046 gcc_cv_math_func_csinhf=yes
1409cd0b 22047else
db9f46a9 22048 gcc_cv_math_func_csinhf=no
1409cd0b 22049fi
5213506e
RW
22050rm -f core conftest.err conftest.$ac_objext \
22051 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22052fi
db9f46a9
TG
22053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22054$as_echo "$gcc_cv_math_func_csinhf" >&6; }
22055 if test $gcc_cv_math_func_csinhf = yes; then
f1cdfa01 22056
f38a14ca
TG
22057cat >>confdefs.h <<_ACEOF
22058#define HAVE_CSINHF 1
22059_ACEOF
1409cd0b 22060
db9f46a9 22061 fi
1409cd0b 22062
1409cd0b 22063
db9f46a9
TG
22064
22065
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22067$as_echo_n "checking for csinh... " >&6; }
22068if test "${gcc_cv_math_func_csinh+set}" = set; then :
5213506e 22069 $as_echo_n "(cached) " >&6
1409cd0b 22070else
db9f46a9 22071 if test x$gcc_no_link = xyes; then
5213506e 22072 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22073fi
5213506e 22074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22075/* end confdefs.h. */
22076
db9f46a9
TG
22077#ifdef HAVE_COMPLEX_H
22078#include <complex.h>
1409cd0b 22079#endif
db9f46a9
TG
22080#ifdef HAVE_MATH_H
22081#include <math.h>
22082#endif
22083
22084int (*ptr)() = (int (*)())csinh;
22085
1409cd0b
FXC
22086int
22087main ()
22088{
1409cd0b
FXC
22089 return 0;
22090}
db9f46a9 22091
1409cd0b 22092_ACEOF
5213506e 22093if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22094 gcc_cv_math_func_csinh=yes
1409cd0b 22095else
db9f46a9 22096 gcc_cv_math_func_csinh=no
1409cd0b 22097fi
5213506e
RW
22098rm -f core conftest.err conftest.$ac_objext \
22099 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22100fi
db9f46a9
TG
22101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22102$as_echo "$gcc_cv_math_func_csinh" >&6; }
22103 if test $gcc_cv_math_func_csinh = yes; then
f1cdfa01 22104
f38a14ca
TG
22105cat >>confdefs.h <<_ACEOF
22106#define HAVE_CSINH 1
22107_ACEOF
db9f46a9
TG
22108
22109 fi
22110
1409cd0b 22111
1409cd0b 22112
1409cd0b 22113
db9f46a9
TG
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22115$as_echo_n "checking for csinhl... " >&6; }
22116if test "${gcc_cv_math_func_csinhl+set}" = set; then :
5213506e 22117 $as_echo_n "(cached) " >&6
1409cd0b 22118else
db9f46a9 22119 if test x$gcc_no_link = xyes; then
5213506e 22120 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22121fi
5213506e 22122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22123/* end confdefs.h. */
22124
db9f46a9
TG
22125#ifdef HAVE_COMPLEX_H
22126#include <complex.h>
1409cd0b 22127#endif
db9f46a9
TG
22128#ifdef HAVE_MATH_H
22129#include <math.h>
22130#endif
22131
22132int (*ptr)() = (int (*)())csinhl;
22133
1409cd0b
FXC
22134int
22135main ()
22136{
1409cd0b
FXC
22137 return 0;
22138}
db9f46a9 22139
1409cd0b 22140_ACEOF
5213506e 22141if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22142 gcc_cv_math_func_csinhl=yes
1409cd0b 22143else
db9f46a9 22144 gcc_cv_math_func_csinhl=no
1409cd0b 22145fi
5213506e
RW
22146rm -f core conftest.err conftest.$ac_objext \
22147 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22148fi
db9f46a9
TG
22149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22150$as_echo "$gcc_cv_math_func_csinhl" >&6; }
22151 if test $gcc_cv_math_func_csinhl = yes; then
f1cdfa01 22152
f38a14ca
TG
22153cat >>confdefs.h <<_ACEOF
22154#define HAVE_CSINHL 1
22155_ACEOF
db9f46a9
TG
22156
22157 fi
1409cd0b 22158
1409cd0b 22159
1409cd0b 22160
db9f46a9
TG
22161
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22163$as_echo_n "checking for sqrtf... " >&6; }
22164if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
5213506e 22165 $as_echo_n "(cached) " >&6
1409cd0b 22166else
db9f46a9 22167 if test x$gcc_no_link = xyes; then
5213506e 22168 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22169fi
5213506e 22170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22171/* end confdefs.h. */
22172
db9f46a9
TG
22173#ifdef HAVE_COMPLEX_H
22174#include <complex.h>
22175#endif
22176#ifdef HAVE_MATH_H
22177#include <math.h>
1409cd0b 22178#endif
db9f46a9
TG
22179
22180int (*ptr)() = (int (*)())sqrtf;
22181
1409cd0b
FXC
22182int
22183main ()
22184{
1409cd0b
FXC
22185 return 0;
22186}
db9f46a9 22187
1409cd0b 22188_ACEOF
5213506e 22189if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22190 gcc_cv_math_func_sqrtf=yes
1409cd0b 22191else
db9f46a9 22192 gcc_cv_math_func_sqrtf=no
1409cd0b 22193fi
5213506e
RW
22194rm -f core conftest.err conftest.$ac_objext \
22195 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22196fi
db9f46a9
TG
22197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22198$as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22199 if test $gcc_cv_math_func_sqrtf = yes; then
f1cdfa01 22200
f38a14ca
TG
22201cat >>confdefs.h <<_ACEOF
22202#define HAVE_SQRTF 1
22203_ACEOF
db9f46a9
TG
22204
22205 fi
1409cd0b 22206
1409cd0b 22207
db9f46a9
TG
22208
22209
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22211$as_echo_n "checking for sqrt... " >&6; }
22212if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22213 $as_echo_n "(cached) " >&6
22214else
22215 if test x$gcc_no_link = xyes; then
22216 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22217fi
db9f46a9
TG
22218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22219/* end confdefs.h. */
22220
22221#ifdef HAVE_COMPLEX_H
22222#include <complex.h>
22223#endif
22224#ifdef HAVE_MATH_H
22225#include <math.h>
22226#endif
22227
22228int (*ptr)() = (int (*)())sqrt;
22229
22230int
22231main ()
22232{
22233 return 0;
22234}
22235
22236_ACEOF
22237if ac_fn_c_try_link "$LINENO"; then :
22238 gcc_cv_math_func_sqrt=yes
22239else
22240 gcc_cv_math_func_sqrt=no
22241fi
22242rm -f core conftest.err conftest.$ac_objext \
22243 conftest$ac_exeext conftest.$ac_ext
22244fi
22245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22246$as_echo "$gcc_cv_math_func_sqrt" >&6; }
22247 if test $gcc_cv_math_func_sqrt = yes; then
f1cdfa01 22248
f38a14ca
TG
22249cat >>confdefs.h <<_ACEOF
22250#define HAVE_SQRT 1
22251_ACEOF
db9f46a9
TG
22252
22253 fi
1409cd0b 22254
db9f46a9
TG
22255
22256
22257
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22259$as_echo_n "checking for sqrtl... " >&6; }
22260if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
5213506e 22261 $as_echo_n "(cached) " >&6
1409cd0b 22262else
db9f46a9 22263 if test x$gcc_no_link = xyes; then
5213506e 22264 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22265fi
5213506e 22266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22267/* end confdefs.h. */
22268
db9f46a9
TG
22269#ifdef HAVE_COMPLEX_H
22270#include <complex.h>
22271#endif
22272#ifdef HAVE_MATH_H
22273#include <math.h>
1409cd0b 22274#endif
db9f46a9
TG
22275
22276int (*ptr)() = (int (*)())sqrtl;
22277
1409cd0b
FXC
22278int
22279main ()
22280{
1409cd0b
FXC
22281 return 0;
22282}
db9f46a9 22283
1409cd0b 22284_ACEOF
5213506e 22285if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22286 gcc_cv_math_func_sqrtl=yes
1409cd0b 22287else
db9f46a9 22288 gcc_cv_math_func_sqrtl=no
1409cd0b 22289fi
5213506e
RW
22290rm -f core conftest.err conftest.$ac_objext \
22291 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22292fi
db9f46a9
TG
22293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22294$as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22295 if test $gcc_cv_math_func_sqrtl = yes; then
f1cdfa01 22296
f38a14ca
TG
22297cat >>confdefs.h <<_ACEOF
22298#define HAVE_SQRTL 1
22299_ACEOF
db9f46a9
TG
22300
22301 fi
1409cd0b 22302
1409cd0b 22303
1409cd0b 22304
db9f46a9
TG
22305
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22307$as_echo_n "checking for csqrtf... " >&6; }
22308if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
5213506e 22309 $as_echo_n "(cached) " >&6
1409cd0b 22310else
db9f46a9 22311 if test x$gcc_no_link = xyes; then
5213506e 22312 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22313fi
5213506e 22314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22315/* end confdefs.h. */
22316
db9f46a9
TG
22317#ifdef HAVE_COMPLEX_H
22318#include <complex.h>
1409cd0b 22319#endif
db9f46a9
TG
22320#ifdef HAVE_MATH_H
22321#include <math.h>
22322#endif
22323
22324int (*ptr)() = (int (*)())csqrtf;
22325
1409cd0b
FXC
22326int
22327main ()
22328{
1409cd0b
FXC
22329 return 0;
22330}
db9f46a9 22331
1409cd0b 22332_ACEOF
5213506e 22333if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22334 gcc_cv_math_func_csqrtf=yes
1409cd0b 22335else
db9f46a9 22336 gcc_cv_math_func_csqrtf=no
1409cd0b 22337fi
5213506e
RW
22338rm -f core conftest.err conftest.$ac_objext \
22339 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22340fi
db9f46a9
TG
22341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22342$as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22343 if test $gcc_cv_math_func_csqrtf = yes; then
f1cdfa01 22344
f38a14ca
TG
22345cat >>confdefs.h <<_ACEOF
22346#define HAVE_CSQRTF 1
22347_ACEOF
1409cd0b 22348
db9f46a9 22349 fi
1409cd0b 22350
1409cd0b 22351
db9f46a9
TG
22352
22353
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22355$as_echo_n "checking for csqrt... " >&6; }
22356if test "${gcc_cv_math_func_csqrt+set}" = set; then :
5213506e 22357 $as_echo_n "(cached) " >&6
1409cd0b 22358else
db9f46a9 22359 if test x$gcc_no_link = xyes; then
5213506e 22360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22361fi
5213506e 22362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22363/* end confdefs.h. */
22364
db9f46a9
TG
22365#ifdef HAVE_COMPLEX_H
22366#include <complex.h>
22367#endif
22368#ifdef HAVE_MATH_H
22369#include <math.h>
1409cd0b 22370#endif
db9f46a9
TG
22371
22372int (*ptr)() = (int (*)())csqrt;
22373
1409cd0b
FXC
22374int
22375main ()
22376{
1409cd0b
FXC
22377 return 0;
22378}
db9f46a9 22379
1409cd0b 22380_ACEOF
5213506e 22381if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22382 gcc_cv_math_func_csqrt=yes
1409cd0b 22383else
db9f46a9 22384 gcc_cv_math_func_csqrt=no
1409cd0b 22385fi
5213506e
RW
22386rm -f core conftest.err conftest.$ac_objext \
22387 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22388fi
db9f46a9
TG
22389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22390$as_echo "$gcc_cv_math_func_csqrt" >&6; }
22391 if test $gcc_cv_math_func_csqrt = yes; then
f1cdfa01 22392
f38a14ca
TG
22393cat >>confdefs.h <<_ACEOF
22394#define HAVE_CSQRT 1
22395_ACEOF
db9f46a9
TG
22396
22397 fi
1409cd0b 22398
1409cd0b 22399
1409cd0b 22400
db9f46a9
TG
22401
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22403$as_echo_n "checking for csqrtl... " >&6; }
22404if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
5213506e 22405 $as_echo_n "(cached) " >&6
1409cd0b 22406else
db9f46a9 22407 if test x$gcc_no_link = xyes; then
5213506e 22408 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22409fi
5213506e 22410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22411/* end confdefs.h. */
22412
db9f46a9
TG
22413#ifdef HAVE_COMPLEX_H
22414#include <complex.h>
1409cd0b 22415#endif
db9f46a9
TG
22416#ifdef HAVE_MATH_H
22417#include <math.h>
22418#endif
22419
22420int (*ptr)() = (int (*)())csqrtl;
22421
1409cd0b
FXC
22422int
22423main ()
22424{
1409cd0b
FXC
22425 return 0;
22426}
db9f46a9 22427
1409cd0b 22428_ACEOF
5213506e 22429if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22430 gcc_cv_math_func_csqrtl=yes
1409cd0b 22431else
db9f46a9 22432 gcc_cv_math_func_csqrtl=no
1409cd0b 22433fi
5213506e
RW
22434rm -f core conftest.err conftest.$ac_objext \
22435 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22436fi
db9f46a9
TG
22437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22438$as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22439 if test $gcc_cv_math_func_csqrtl = yes; then
f1cdfa01 22440
f38a14ca
TG
22441cat >>confdefs.h <<_ACEOF
22442#define HAVE_CSQRTL 1
22443_ACEOF
db9f46a9
TG
22444
22445 fi
22446
1409cd0b 22447
1409cd0b 22448
1409cd0b 22449
db9f46a9
TG
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22451$as_echo_n "checking for tanf... " >&6; }
22452if test "${gcc_cv_math_func_tanf+set}" = set; then :
5213506e 22453 $as_echo_n "(cached) " >&6
1409cd0b 22454else
db9f46a9 22455 if test x$gcc_no_link = xyes; then
5213506e 22456 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22457fi
5213506e 22458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22459/* end confdefs.h. */
22460
db9f46a9
TG
22461#ifdef HAVE_COMPLEX_H
22462#include <complex.h>
22463#endif
22464#ifdef HAVE_MATH_H
22465#include <math.h>
1409cd0b 22466#endif
db9f46a9
TG
22467
22468int (*ptr)() = (int (*)())tanf;
22469
1409cd0b
FXC
22470int
22471main ()
22472{
1409cd0b
FXC
22473 return 0;
22474}
db9f46a9 22475
1409cd0b 22476_ACEOF
5213506e 22477if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22478 gcc_cv_math_func_tanf=yes
1409cd0b 22479else
db9f46a9 22480 gcc_cv_math_func_tanf=no
1409cd0b 22481fi
5213506e
RW
22482rm -f core conftest.err conftest.$ac_objext \
22483 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22484fi
db9f46a9
TG
22485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22486$as_echo "$gcc_cv_math_func_tanf" >&6; }
22487 if test $gcc_cv_math_func_tanf = yes; then
f1cdfa01 22488
f38a14ca
TG
22489cat >>confdefs.h <<_ACEOF
22490#define HAVE_TANF 1
22491_ACEOF
db9f46a9
TG
22492
22493 fi
1409cd0b 22494
1409cd0b 22495
1409cd0b 22496
db9f46a9
TG
22497
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22499$as_echo_n "checking for tan... " >&6; }
22500if test "${gcc_cv_math_func_tan+set}" = set; then :
5213506e 22501 $as_echo_n "(cached) " >&6
1409cd0b 22502else
db9f46a9 22503 if test x$gcc_no_link = xyes; then
5213506e 22504 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22505fi
5213506e 22506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22507/* end confdefs.h. */
22508
db9f46a9
TG
22509#ifdef HAVE_COMPLEX_H
22510#include <complex.h>
1409cd0b 22511#endif
db9f46a9
TG
22512#ifdef HAVE_MATH_H
22513#include <math.h>
22514#endif
22515
22516int (*ptr)() = (int (*)())tan;
22517
1409cd0b
FXC
22518int
22519main ()
22520{
1409cd0b
FXC
22521 return 0;
22522}
db9f46a9 22523
1409cd0b 22524_ACEOF
5213506e 22525if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22526 gcc_cv_math_func_tan=yes
1409cd0b 22527else
db9f46a9 22528 gcc_cv_math_func_tan=no
1409cd0b 22529fi
5213506e
RW
22530rm -f core conftest.err conftest.$ac_objext \
22531 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22532fi
db9f46a9
TG
22533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22534$as_echo "$gcc_cv_math_func_tan" >&6; }
22535 if test $gcc_cv_math_func_tan = yes; then
f1cdfa01 22536
f38a14ca
TG
22537cat >>confdefs.h <<_ACEOF
22538#define HAVE_TAN 1
22539_ACEOF
1409cd0b 22540
db9f46a9 22541 fi
1409cd0b 22542
1409cd0b 22543
db9f46a9
TG
22544
22545
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22547$as_echo_n "checking for tanl... " >&6; }
22548if test "${gcc_cv_math_func_tanl+set}" = set; then :
5213506e 22549 $as_echo_n "(cached) " >&6
1409cd0b 22550else
db9f46a9 22551 if test x$gcc_no_link = xyes; then
5213506e 22552 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22553fi
5213506e 22554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22555/* end confdefs.h. */
22556
db9f46a9
TG
22557#ifdef HAVE_COMPLEX_H
22558#include <complex.h>
22559#endif
22560#ifdef HAVE_MATH_H
22561#include <math.h>
1409cd0b 22562#endif
db9f46a9
TG
22563
22564int (*ptr)() = (int (*)())tanl;
22565
1409cd0b
FXC
22566int
22567main ()
22568{
1409cd0b
FXC
22569 return 0;
22570}
db9f46a9 22571
1409cd0b 22572_ACEOF
5213506e 22573if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22574 gcc_cv_math_func_tanl=yes
1409cd0b 22575else
db9f46a9 22576 gcc_cv_math_func_tanl=no
1409cd0b 22577fi
5213506e
RW
22578rm -f core conftest.err conftest.$ac_objext \
22579 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22580fi
db9f46a9
TG
22581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22582$as_echo "$gcc_cv_math_func_tanl" >&6; }
22583 if test $gcc_cv_math_func_tanl = yes; then
f1cdfa01 22584
f38a14ca
TG
22585cat >>confdefs.h <<_ACEOF
22586#define HAVE_TANL 1
22587_ACEOF
db9f46a9
TG
22588
22589 fi
1409cd0b 22590
1409cd0b 22591
1409cd0b 22592
db9f46a9
TG
22593
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22595$as_echo_n "checking for ctanf... " >&6; }
22596if test "${gcc_cv_math_func_ctanf+set}" = set; then :
5213506e 22597 $as_echo_n "(cached) " >&6
1409cd0b 22598else
db9f46a9 22599 if test x$gcc_no_link = xyes; then
5213506e 22600 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22601fi
5213506e 22602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22603/* end confdefs.h. */
22604
db9f46a9
TG
22605#ifdef HAVE_COMPLEX_H
22606#include <complex.h>
1409cd0b 22607#endif
db9f46a9
TG
22608#ifdef HAVE_MATH_H
22609#include <math.h>
22610#endif
22611
22612int (*ptr)() = (int (*)())ctanf;
22613
1409cd0b
FXC
22614int
22615main ()
22616{
1409cd0b
FXC
22617 return 0;
22618}
db9f46a9 22619
1409cd0b 22620_ACEOF
5213506e 22621if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22622 gcc_cv_math_func_ctanf=yes
1409cd0b 22623else
db9f46a9 22624 gcc_cv_math_func_ctanf=no
1409cd0b 22625fi
5213506e
RW
22626rm -f core conftest.err conftest.$ac_objext \
22627 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22628fi
db9f46a9
TG
22629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22630$as_echo "$gcc_cv_math_func_ctanf" >&6; }
22631 if test $gcc_cv_math_func_ctanf = yes; then
f1cdfa01 22632
f38a14ca
TG
22633cat >>confdefs.h <<_ACEOF
22634#define HAVE_CTANF 1
22635_ACEOF
db9f46a9
TG
22636
22637 fi
22638
1409cd0b 22639
1409cd0b 22640
1409cd0b 22641
db9f46a9
TG
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22643$as_echo_n "checking for ctan... " >&6; }
22644if test "${gcc_cv_math_func_ctan+set}" = set; then :
5213506e 22645 $as_echo_n "(cached) " >&6
1409cd0b 22646else
db9f46a9 22647 if test x$gcc_no_link = xyes; then
5213506e 22648 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22649fi
5213506e 22650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22651/* end confdefs.h. */
22652
db9f46a9
TG
22653#ifdef HAVE_COMPLEX_H
22654#include <complex.h>
22655#endif
22656#ifdef HAVE_MATH_H
22657#include <math.h>
1409cd0b 22658#endif
db9f46a9
TG
22659
22660int (*ptr)() = (int (*)())ctan;
22661
1409cd0b
FXC
22662int
22663main ()
22664{
1409cd0b
FXC
22665 return 0;
22666}
db9f46a9 22667
1409cd0b 22668_ACEOF
5213506e 22669if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22670 gcc_cv_math_func_ctan=yes
1409cd0b 22671else
db9f46a9 22672 gcc_cv_math_func_ctan=no
1409cd0b 22673fi
5213506e
RW
22674rm -f core conftest.err conftest.$ac_objext \
22675 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22676fi
db9f46a9
TG
22677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22678$as_echo "$gcc_cv_math_func_ctan" >&6; }
22679 if test $gcc_cv_math_func_ctan = yes; then
f1cdfa01 22680
f38a14ca
TG
22681cat >>confdefs.h <<_ACEOF
22682#define HAVE_CTAN 1
22683_ACEOF
db9f46a9
TG
22684
22685 fi
1409cd0b 22686
1409cd0b 22687
1409cd0b 22688
db9f46a9
TG
22689
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22691$as_echo_n "checking for ctanl... " >&6; }
22692if test "${gcc_cv_math_func_ctanl+set}" = set; then :
5213506e 22693 $as_echo_n "(cached) " >&6
1409cd0b 22694else
db9f46a9 22695 if test x$gcc_no_link = xyes; then
5213506e 22696 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22697fi
5213506e 22698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22699/* end confdefs.h. */
22700
db9f46a9
TG
22701#ifdef HAVE_COMPLEX_H
22702#include <complex.h>
1409cd0b 22703#endif
db9f46a9
TG
22704#ifdef HAVE_MATH_H
22705#include <math.h>
22706#endif
22707
22708int (*ptr)() = (int (*)())ctanl;
22709
1409cd0b
FXC
22710int
22711main ()
22712{
1409cd0b
FXC
22713 return 0;
22714}
db9f46a9 22715
1409cd0b 22716_ACEOF
5213506e 22717if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22718 gcc_cv_math_func_ctanl=yes
1409cd0b 22719else
db9f46a9 22720 gcc_cv_math_func_ctanl=no
1409cd0b 22721fi
5213506e
RW
22722rm -f core conftest.err conftest.$ac_objext \
22723 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22724fi
db9f46a9
TG
22725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22726$as_echo "$gcc_cv_math_func_ctanl" >&6; }
22727 if test $gcc_cv_math_func_ctanl = yes; then
f1cdfa01 22728
f38a14ca
TG
22729cat >>confdefs.h <<_ACEOF
22730#define HAVE_CTANL 1
22731_ACEOF
1409cd0b 22732
db9f46a9 22733 fi
1409cd0b 22734
1409cd0b 22735
db9f46a9
TG
22736
22737
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22739$as_echo_n "checking for tanhf... " >&6; }
22740if test "${gcc_cv_math_func_tanhf+set}" = set; then :
5213506e 22741 $as_echo_n "(cached) " >&6
1409cd0b 22742else
db9f46a9 22743 if test x$gcc_no_link = xyes; then
5213506e 22744 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22745fi
5213506e 22746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22747/* end confdefs.h. */
22748
db9f46a9
TG
22749#ifdef HAVE_COMPLEX_H
22750#include <complex.h>
22751#endif
22752#ifdef HAVE_MATH_H
22753#include <math.h>
1409cd0b 22754#endif
db9f46a9
TG
22755
22756int (*ptr)() = (int (*)())tanhf;
22757
1409cd0b
FXC
22758int
22759main ()
22760{
1409cd0b
FXC
22761 return 0;
22762}
db9f46a9 22763
1409cd0b 22764_ACEOF
5213506e 22765if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22766 gcc_cv_math_func_tanhf=yes
1409cd0b 22767else
db9f46a9 22768 gcc_cv_math_func_tanhf=no
1409cd0b 22769fi
5213506e
RW
22770rm -f core conftest.err conftest.$ac_objext \
22771 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22772fi
db9f46a9
TG
22773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22774$as_echo "$gcc_cv_math_func_tanhf" >&6; }
22775 if test $gcc_cv_math_func_tanhf = yes; then
f1cdfa01 22776
f38a14ca
TG
22777cat >>confdefs.h <<_ACEOF
22778#define HAVE_TANHF 1
22779_ACEOF
db9f46a9
TG
22780
22781 fi
1409cd0b 22782
1409cd0b 22783
1409cd0b 22784
db9f46a9
TG
22785
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22787$as_echo_n "checking for tanh... " >&6; }
22788if test "${gcc_cv_math_func_tanh+set}" = set; then :
5213506e 22789 $as_echo_n "(cached) " >&6
1409cd0b 22790else
db9f46a9 22791 if test x$gcc_no_link = xyes; then
5213506e 22792 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22793fi
5213506e 22794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22795/* end confdefs.h. */
22796
db9f46a9
TG
22797#ifdef HAVE_COMPLEX_H
22798#include <complex.h>
1409cd0b 22799#endif
db9f46a9
TG
22800#ifdef HAVE_MATH_H
22801#include <math.h>
22802#endif
22803
22804int (*ptr)() = (int (*)())tanh;
22805
1409cd0b
FXC
22806int
22807main ()
22808{
1409cd0b
FXC
22809 return 0;
22810}
db9f46a9 22811
1409cd0b 22812_ACEOF
5213506e 22813if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22814 gcc_cv_math_func_tanh=yes
1409cd0b 22815else
db9f46a9 22816 gcc_cv_math_func_tanh=no
1409cd0b 22817fi
5213506e
RW
22818rm -f core conftest.err conftest.$ac_objext \
22819 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22820fi
db9f46a9
TG
22821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22822$as_echo "$gcc_cv_math_func_tanh" >&6; }
22823 if test $gcc_cv_math_func_tanh = yes; then
f1cdfa01 22824
f38a14ca
TG
22825cat >>confdefs.h <<_ACEOF
22826#define HAVE_TANH 1
22827_ACEOF
db9f46a9
TG
22828
22829 fi
22830
1409cd0b 22831
1409cd0b 22832
1409cd0b 22833
db9f46a9
TG
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22835$as_echo_n "checking for tanhl... " >&6; }
22836if test "${gcc_cv_math_func_tanhl+set}" = set; then :
5213506e 22837 $as_echo_n "(cached) " >&6
1409cd0b 22838else
db9f46a9 22839 if test x$gcc_no_link = xyes; then
5213506e 22840 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22841fi
5213506e 22842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22843/* end confdefs.h. */
22844
db9f46a9
TG
22845#ifdef HAVE_COMPLEX_H
22846#include <complex.h>
22847#endif
22848#ifdef HAVE_MATH_H
22849#include <math.h>
1409cd0b 22850#endif
db9f46a9
TG
22851
22852int (*ptr)() = (int (*)())tanhl;
22853
1409cd0b
FXC
22854int
22855main ()
22856{
1409cd0b
FXC
22857 return 0;
22858}
db9f46a9 22859
1409cd0b 22860_ACEOF
5213506e 22861if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22862 gcc_cv_math_func_tanhl=yes
1409cd0b 22863else
db9f46a9 22864 gcc_cv_math_func_tanhl=no
1409cd0b 22865fi
5213506e
RW
22866rm -f core conftest.err conftest.$ac_objext \
22867 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22868fi
db9f46a9
TG
22869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22870$as_echo "$gcc_cv_math_func_tanhl" >&6; }
22871 if test $gcc_cv_math_func_tanhl = yes; then
f1cdfa01 22872
f38a14ca
TG
22873cat >>confdefs.h <<_ACEOF
22874#define HAVE_TANHL 1
22875_ACEOF
db9f46a9
TG
22876
22877 fi
1409cd0b 22878
1409cd0b 22879
1409cd0b 22880
db9f46a9
TG
22881
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22883$as_echo_n "checking for ctanhf... " >&6; }
22884if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
5213506e 22885 $as_echo_n "(cached) " >&6
1409cd0b 22886else
db9f46a9 22887 if test x$gcc_no_link = xyes; then
5213506e 22888 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db9f46a9
TG
22889fi
22890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22891/* end confdefs.h. */
22892
22893#ifdef HAVE_COMPLEX_H
22894#include <complex.h>
1409cd0b 22895#endif
db9f46a9
TG
22896#ifdef HAVE_MATH_H
22897#include <math.h>
22898#endif
22899
22900int (*ptr)() = (int (*)())ctanhf;
22901
1409cd0b
FXC
22902int
22903main ()
22904{
1409cd0b
FXC
22905 return 0;
22906}
db9f46a9 22907
1409cd0b 22908_ACEOF
5213506e 22909if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22910 gcc_cv_math_func_ctanhf=yes
1409cd0b 22911else
db9f46a9 22912 gcc_cv_math_func_ctanhf=no
1409cd0b 22913fi
5213506e
RW
22914rm -f core conftest.err conftest.$ac_objext \
22915 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22916fi
db9f46a9
TG
22917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22918$as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22919 if test $gcc_cv_math_func_ctanhf = yes; then
f1cdfa01 22920
f38a14ca
TG
22921cat >>confdefs.h <<_ACEOF
22922#define HAVE_CTANHF 1
22923_ACEOF
1409cd0b 22924
db9f46a9 22925 fi
1409cd0b 22926
1409cd0b 22927
db9f46a9
TG
22928
22929
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22931$as_echo_n "checking for ctanh... " >&6; }
22932if test "${gcc_cv_math_func_ctanh+set}" = set; then :
5213506e 22933 $as_echo_n "(cached) " >&6
1409cd0b 22934else
db9f46a9 22935 if test x$gcc_no_link = xyes; then
5213506e 22936 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22937fi
5213506e 22938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22939/* end confdefs.h. */
22940
db9f46a9
TG
22941#ifdef HAVE_COMPLEX_H
22942#include <complex.h>
22943#endif
22944#ifdef HAVE_MATH_H
22945#include <math.h>
1409cd0b 22946#endif
db9f46a9
TG
22947
22948int (*ptr)() = (int (*)())ctanh;
22949
1409cd0b
FXC
22950int
22951main ()
22952{
5213506e
RW
22953 return 0;
22954}
db9f46a9 22955
5213506e
RW
22956_ACEOF
22957if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22958 gcc_cv_math_func_ctanh=yes
1409cd0b 22959else
db9f46a9 22960 gcc_cv_math_func_ctanh=no
1409cd0b 22961fi
5213506e
RW
22962rm -f core conftest.err conftest.$ac_objext \
22963 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22964fi
db9f46a9
TG
22965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
22966$as_echo "$gcc_cv_math_func_ctanh" >&6; }
22967 if test $gcc_cv_math_func_ctanh = yes; then
f1cdfa01 22968
f38a14ca
TG
22969cat >>confdefs.h <<_ACEOF
22970#define HAVE_CTANH 1
22971_ACEOF
db9f46a9
TG
22972
22973 fi
1409cd0b 22974
1409cd0b 22975
1409cd0b 22976
db9f46a9
TG
22977
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
22979$as_echo_n "checking for ctanhl... " >&6; }
22980if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
5213506e 22981 $as_echo_n "(cached) " >&6
1409cd0b 22982else
db9f46a9 22983 if test x$gcc_no_link = xyes; then
5213506e 22984 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22985fi
5213506e 22986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22987/* end confdefs.h. */
22988
db9f46a9
TG
22989#ifdef HAVE_COMPLEX_H
22990#include <complex.h>
1409cd0b 22991#endif
db9f46a9
TG
22992#ifdef HAVE_MATH_H
22993#include <math.h>
22994#endif
22995
22996int (*ptr)() = (int (*)())ctanhl;
22997
1409cd0b
FXC
22998int
22999main ()
23000{
1409cd0b
FXC
23001 return 0;
23002}
db9f46a9 23003
1409cd0b 23004_ACEOF
5213506e 23005if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23006 gcc_cv_math_func_ctanhl=yes
1409cd0b 23007else
db9f46a9 23008 gcc_cv_math_func_ctanhl=no
1409cd0b 23009fi
5213506e
RW
23010rm -f core conftest.err conftest.$ac_objext \
23011 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23012fi
db9f46a9
TG
23013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23014$as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23015 if test $gcc_cv_math_func_ctanhl = yes; then
f1cdfa01 23016
f38a14ca
TG
23017cat >>confdefs.h <<_ACEOF
23018#define HAVE_CTANHL 1
23019_ACEOF
db9f46a9
TG
23020
23021 fi
23022
1409cd0b 23023
69a2d125 23024
69a2d125 23025
db9f46a9
TG
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23027$as_echo_n "checking for truncf... " >&6; }
23028if test "${gcc_cv_math_func_truncf+set}" = set; then :
5213506e 23029 $as_echo_n "(cached) " >&6
69a2d125 23030else
db9f46a9 23031 if test x$gcc_no_link = xyes; then
5213506e 23032 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23033fi
5213506e 23034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
23035/* end confdefs.h. */
23036
db9f46a9
TG
23037#ifdef HAVE_COMPLEX_H
23038#include <complex.h>
23039#endif
23040#ifdef HAVE_MATH_H
23041#include <math.h>
69a2d125 23042#endif
db9f46a9
TG
23043
23044int (*ptr)() = (int (*)())truncf;
23045
1409cd0b
FXC
23046int
23047main ()
23048{
1409cd0b
FXC
23049 return 0;
23050}
db9f46a9 23051
1409cd0b 23052_ACEOF
5213506e 23053if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23054 gcc_cv_math_func_truncf=yes
1409cd0b 23055else
db9f46a9 23056 gcc_cv_math_func_truncf=no
1409cd0b 23057fi
5213506e
RW
23058rm -f core conftest.err conftest.$ac_objext \
23059 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23060fi
db9f46a9
TG
23061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23062$as_echo "$gcc_cv_math_func_truncf" >&6; }
23063 if test $gcc_cv_math_func_truncf = yes; then
f1cdfa01 23064
f38a14ca
TG
23065cat >>confdefs.h <<_ACEOF
23066#define HAVE_TRUNCF 1
23067_ACEOF
db9f46a9
TG
23068
23069 fi
1409cd0b 23070
1409cd0b 23071
1409cd0b 23072
db9f46a9
TG
23073
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23075$as_echo_n "checking for trunc... " >&6; }
23076if test "${gcc_cv_math_func_trunc+set}" = set; then :
5213506e 23077 $as_echo_n "(cached) " >&6
1409cd0b 23078else
db9f46a9 23079 if test x$gcc_no_link = xyes; then
5213506e 23080 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23081fi
5213506e 23082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23083/* end confdefs.h. */
23084
db9f46a9
TG
23085#ifdef HAVE_COMPLEX_H
23086#include <complex.h>
1409cd0b 23087#endif
db9f46a9
TG
23088#ifdef HAVE_MATH_H
23089#include <math.h>
23090#endif
23091
23092int (*ptr)() = (int (*)())trunc;
23093
1409cd0b
FXC
23094int
23095main ()
23096{
1409cd0b
FXC
23097 return 0;
23098}
db9f46a9 23099
1409cd0b 23100_ACEOF
5213506e 23101if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23102 gcc_cv_math_func_trunc=yes
1409cd0b 23103else
db9f46a9 23104 gcc_cv_math_func_trunc=no
1409cd0b 23105fi
5213506e
RW
23106rm -f core conftest.err conftest.$ac_objext \
23107 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23108fi
db9f46a9
TG
23109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23110$as_echo "$gcc_cv_math_func_trunc" >&6; }
23111 if test $gcc_cv_math_func_trunc = yes; then
f1cdfa01 23112
f38a14ca
TG
23113cat >>confdefs.h <<_ACEOF
23114#define HAVE_TRUNC 1
23115_ACEOF
1409cd0b 23116
db9f46a9 23117 fi
1409cd0b 23118
1409cd0b 23119
db9f46a9
TG
23120
23121
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23123$as_echo_n "checking for truncl... " >&6; }
23124if test "${gcc_cv_math_func_truncl+set}" = set; then :
5213506e 23125 $as_echo_n "(cached) " >&6
1409cd0b 23126else
db9f46a9 23127 if test x$gcc_no_link = xyes; then
5213506e 23128 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23129fi
5213506e 23130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23131/* end confdefs.h. */
23132
db9f46a9
TG
23133#ifdef HAVE_COMPLEX_H
23134#include <complex.h>
23135#endif
23136#ifdef HAVE_MATH_H
23137#include <math.h>
1409cd0b 23138#endif
db9f46a9
TG
23139
23140int (*ptr)() = (int (*)())truncl;
23141
1409cd0b
FXC
23142int
23143main ()
23144{
1409cd0b
FXC
23145 return 0;
23146}
db9f46a9 23147
1409cd0b 23148_ACEOF
5213506e 23149if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23150 gcc_cv_math_func_truncl=yes
1409cd0b 23151else
db9f46a9 23152 gcc_cv_math_func_truncl=no
1409cd0b 23153fi
5213506e
RW
23154rm -f core conftest.err conftest.$ac_objext \
23155 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23156fi
db9f46a9
TG
23157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23158$as_echo "$gcc_cv_math_func_truncl" >&6; }
23159 if test $gcc_cv_math_func_truncl = yes; then
f1cdfa01 23160
f38a14ca
TG
23161cat >>confdefs.h <<_ACEOF
23162#define HAVE_TRUNCL 1
23163_ACEOF
db9f46a9
TG
23164
23165 fi
1409cd0b 23166
1409cd0b 23167
1409cd0b 23168
db9f46a9
TG
23169
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23171$as_echo_n "checking for erff... " >&6; }
23172if test "${gcc_cv_math_func_erff+set}" = set; then :
5213506e 23173 $as_echo_n "(cached) " >&6
1409cd0b 23174else
db9f46a9 23175 if test x$gcc_no_link = xyes; then
5213506e 23176 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23177fi
5213506e 23178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23179/* end confdefs.h. */
23180
db9f46a9
TG
23181#ifdef HAVE_COMPLEX_H
23182#include <complex.h>
1409cd0b 23183#endif
db9f46a9
TG
23184#ifdef HAVE_MATH_H
23185#include <math.h>
23186#endif
23187
23188int (*ptr)() = (int (*)())erff;
23189
1409cd0b
FXC
23190int
23191main ()
23192{
1409cd0b
FXC
23193 return 0;
23194}
db9f46a9 23195
1409cd0b 23196_ACEOF
5213506e 23197if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23198 gcc_cv_math_func_erff=yes
1409cd0b 23199else
db9f46a9 23200 gcc_cv_math_func_erff=no
1409cd0b 23201fi
5213506e
RW
23202rm -f core conftest.err conftest.$ac_objext \
23203 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23204fi
db9f46a9
TG
23205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23206$as_echo "$gcc_cv_math_func_erff" >&6; }
23207 if test $gcc_cv_math_func_erff = yes; then
f1cdfa01 23208
f38a14ca
TG
23209cat >>confdefs.h <<_ACEOF
23210#define HAVE_ERFF 1
23211_ACEOF
db9f46a9
TG
23212
23213 fi
23214
1409cd0b 23215
1409cd0b 23216
1409cd0b 23217
db9f46a9
TG
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23219$as_echo_n "checking for erf... " >&6; }
23220if test "${gcc_cv_math_func_erf+set}" = set; then :
5213506e 23221 $as_echo_n "(cached) " >&6
1409cd0b 23222else
db9f46a9 23223 if test x$gcc_no_link = xyes; then
5213506e 23224 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23225fi
5213506e 23226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23227/* end confdefs.h. */
23228
db9f46a9
TG
23229#ifdef HAVE_COMPLEX_H
23230#include <complex.h>
23231#endif
23232#ifdef HAVE_MATH_H
23233#include <math.h>
1409cd0b 23234#endif
db9f46a9
TG
23235
23236int (*ptr)() = (int (*)())erf;
23237
1409cd0b
FXC
23238int
23239main ()
23240{
1409cd0b
FXC
23241 return 0;
23242}
db9f46a9 23243
1409cd0b 23244_ACEOF
5213506e 23245if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23246 gcc_cv_math_func_erf=yes
1409cd0b 23247else
db9f46a9 23248 gcc_cv_math_func_erf=no
1409cd0b 23249fi
5213506e
RW
23250rm -f core conftest.err conftest.$ac_objext \
23251 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23252fi
db9f46a9
TG
23253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23254$as_echo "$gcc_cv_math_func_erf" >&6; }
23255 if test $gcc_cv_math_func_erf = yes; then
f1cdfa01 23256
f38a14ca
TG
23257cat >>confdefs.h <<_ACEOF
23258#define HAVE_ERF 1
23259_ACEOF
db9f46a9
TG
23260
23261 fi
1409cd0b 23262
1409cd0b 23263
1409cd0b 23264
db9f46a9 23265
db9f46a9
TG
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23267$as_echo_n "checking for erfcf... " >&6; }
23268if test "${gcc_cv_math_func_erfcf+set}" = set; then :
5213506e 23269 $as_echo_n "(cached) " >&6
1409cd0b 23270else
db9f46a9 23271 if test x$gcc_no_link = xyes; then
5213506e 23272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23273fi
5213506e 23274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23275/* end confdefs.h. */
23276
db9f46a9
TG
23277#ifdef HAVE_COMPLEX_H
23278#include <complex.h>
23279#endif
23280#ifdef HAVE_MATH_H
23281#include <math.h>
1409cd0b 23282#endif
db9f46a9
TG
23283
23284int (*ptr)() = (int (*)())erfcf;
23285
1409cd0b
FXC
23286int
23287main ()
23288{
1409cd0b
FXC
23289 return 0;
23290}
db9f46a9 23291
1409cd0b 23292_ACEOF
5213506e 23293if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23294 gcc_cv_math_func_erfcf=yes
1409cd0b 23295else
db9f46a9 23296 gcc_cv_math_func_erfcf=no
1409cd0b 23297fi
5213506e
RW
23298rm -f core conftest.err conftest.$ac_objext \
23299 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23300fi
db9f46a9
TG
23301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23302$as_echo "$gcc_cv_math_func_erfcf" >&6; }
23303 if test $gcc_cv_math_func_erfcf = yes; then
f1cdfa01 23304
f38a14ca
TG
23305cat >>confdefs.h <<_ACEOF
23306#define HAVE_ERFCF 1
23307_ACEOF
db9f46a9
TG
23308
23309 fi
1409cd0b 23310
1409cd0b 23311
1409cd0b 23312
db9f46a9
TG
23313
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23315$as_echo_n "checking for erfc... " >&6; }
23316if test "${gcc_cv_math_func_erfc+set}" = set; then :
5213506e 23317 $as_echo_n "(cached) " >&6
1409cd0b 23318else
db9f46a9 23319 if test x$gcc_no_link = xyes; then
5213506e 23320 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23321fi
5213506e 23322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23323/* end confdefs.h. */
23324
db9f46a9
TG
23325#ifdef HAVE_COMPLEX_H
23326#include <complex.h>
1409cd0b 23327#endif
db9f46a9
TG
23328#ifdef HAVE_MATH_H
23329#include <math.h>
23330#endif
23331
23332int (*ptr)() = (int (*)())erfc;
23333
69a2d125
EB
23334int
23335main ()
23336{
69a2d125
EB
23337 return 0;
23338}
db9f46a9 23339
69a2d125 23340_ACEOF
5213506e 23341if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23342 gcc_cv_math_func_erfc=yes
69a2d125 23343else
db9f46a9 23344 gcc_cv_math_func_erfc=no
69a2d125 23345fi
5213506e
RW
23346rm -f core conftest.err conftest.$ac_objext \
23347 conftest$ac_exeext conftest.$ac_ext
69a2d125 23348fi
db9f46a9
TG
23349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23350$as_echo "$gcc_cv_math_func_erfc" >&6; }
23351 if test $gcc_cv_math_func_erfc = yes; then
f1cdfa01 23352
f38a14ca
TG
23353cat >>confdefs.h <<_ACEOF
23354#define HAVE_ERFC 1
23355_ACEOF
db9f46a9
TG
23356
23357 fi
23358
69a2d125 23359
69a2d125 23360
69a2d125 23361
db9f46a9
TG
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23363$as_echo_n "checking for erfcl... " >&6; }
23364if test "${gcc_cv_math_func_erfcl+set}" = set; then :
5213506e 23365 $as_echo_n "(cached) " >&6
e8525382 23366else
db9f46a9 23367 if test x$gcc_no_link = xyes; then
5213506e 23368 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23369fi
5213506e 23370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23371/* end confdefs.h. */
23372
db9f46a9
TG
23373#ifdef HAVE_COMPLEX_H
23374#include <complex.h>
23375#endif
23376#ifdef HAVE_MATH_H
23377#include <math.h>
e8525382 23378#endif
db9f46a9
TG
23379
23380int (*ptr)() = (int (*)())erfcl;
23381
e8525382
SK
23382int
23383main ()
23384{
e8525382
SK
23385 return 0;
23386}
db9f46a9 23387
e8525382 23388_ACEOF
5213506e 23389if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23390 gcc_cv_math_func_erfcl=yes
e8525382 23391else
db9f46a9 23392 gcc_cv_math_func_erfcl=no
e8525382 23393fi
5213506e
RW
23394rm -f core conftest.err conftest.$ac_objext \
23395 conftest$ac_exeext conftest.$ac_ext
e8525382 23396fi
db9f46a9
TG
23397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23398$as_echo "$gcc_cv_math_func_erfcl" >&6; }
23399 if test $gcc_cv_math_func_erfcl = yes; then
f1cdfa01 23400
f38a14ca
TG
23401cat >>confdefs.h <<_ACEOF
23402#define HAVE_ERFCL 1
23403_ACEOF
db9f46a9
TG
23404
23405 fi
e8525382 23406
e8525382 23407
e8525382 23408
db9f46a9
TG
23409
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23411$as_echo_n "checking for j0f... " >&6; }
23412if test "${gcc_cv_math_func_j0f+set}" = set; then :
5213506e 23413 $as_echo_n "(cached) " >&6
e8525382 23414else
db9f46a9 23415 if test x$gcc_no_link = xyes; then
5213506e 23416 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23417fi
5213506e 23418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23419/* end confdefs.h. */
23420
db9f46a9
TG
23421#ifdef HAVE_COMPLEX_H
23422#include <complex.h>
e8525382 23423#endif
db9f46a9
TG
23424#ifdef HAVE_MATH_H
23425#include <math.h>
23426#endif
23427
23428int (*ptr)() = (int (*)())j0f;
23429
e8525382
SK
23430int
23431main ()
23432{
e8525382
SK
23433 return 0;
23434}
db9f46a9 23435
e8525382 23436_ACEOF
5213506e 23437if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23438 gcc_cv_math_func_j0f=yes
e8525382 23439else
db9f46a9 23440 gcc_cv_math_func_j0f=no
1409cd0b 23441fi
5213506e
RW
23442rm -f core conftest.err conftest.$ac_objext \
23443 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23444fi
db9f46a9
TG
23445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23446$as_echo "$gcc_cv_math_func_j0f" >&6; }
23447 if test $gcc_cv_math_func_j0f = yes; then
f1cdfa01 23448
f38a14ca
TG
23449cat >>confdefs.h <<_ACEOF
23450#define HAVE_J0F 1
23451_ACEOF
1409cd0b 23452
db9f46a9 23453 fi
1409cd0b 23454
1409cd0b 23455
db9f46a9
TG
23456
23457
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23459$as_echo_n "checking for j0... " >&6; }
23460if test "${gcc_cv_math_func_j0+set}" = set; then :
5213506e 23461 $as_echo_n "(cached) " >&6
1409cd0b 23462else
db9f46a9 23463 if test x$gcc_no_link = xyes; then
5213506e 23464 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23465fi
5213506e 23466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23467/* end confdefs.h. */
23468
db9f46a9
TG
23469#ifdef HAVE_COMPLEX_H
23470#include <complex.h>
23471#endif
23472#ifdef HAVE_MATH_H
23473#include <math.h>
1409cd0b 23474#endif
db9f46a9
TG
23475
23476int (*ptr)() = (int (*)())j0;
23477
1409cd0b
FXC
23478int
23479main ()
23480{
1409cd0b
FXC
23481 return 0;
23482}
db9f46a9 23483
1409cd0b 23484_ACEOF
5213506e 23485if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23486 gcc_cv_math_func_j0=yes
1409cd0b 23487else
db9f46a9 23488 gcc_cv_math_func_j0=no
1409cd0b 23489fi
5213506e
RW
23490rm -f core conftest.err conftest.$ac_objext \
23491 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23492fi
db9f46a9
TG
23493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23494$as_echo "$gcc_cv_math_func_j0" >&6; }
23495 if test $gcc_cv_math_func_j0 = yes; then
f1cdfa01 23496
f38a14ca
TG
23497cat >>confdefs.h <<_ACEOF
23498#define HAVE_J0 1
23499_ACEOF
db9f46a9
TG
23500
23501 fi
1409cd0b 23502
1409cd0b 23503
1409cd0b 23504
db9f46a9 23505
db9f46a9
TG
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23507$as_echo_n "checking for j1f... " >&6; }
23508if test "${gcc_cv_math_func_j1f+set}" = set; then :
5213506e 23509 $as_echo_n "(cached) " >&6
1409cd0b 23510else
db9f46a9 23511 if test x$gcc_no_link = xyes; then
5213506e 23512 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23513fi
5213506e 23514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23515/* end confdefs.h. */
23516
db9f46a9
TG
23517#ifdef HAVE_COMPLEX_H
23518#include <complex.h>
23519#endif
23520#ifdef HAVE_MATH_H
23521#include <math.h>
1409cd0b 23522#endif
db9f46a9
TG
23523
23524int (*ptr)() = (int (*)())j1f;
23525
1409cd0b
FXC
23526int
23527main ()
23528{
1409cd0b
FXC
23529 return 0;
23530}
db9f46a9 23531
1409cd0b 23532_ACEOF
5213506e 23533if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23534 gcc_cv_math_func_j1f=yes
1409cd0b 23535else
db9f46a9 23536 gcc_cv_math_func_j1f=no
e8525382 23537fi
5213506e
RW
23538rm -f core conftest.err conftest.$ac_objext \
23539 conftest$ac_exeext conftest.$ac_ext
e8525382 23540fi
db9f46a9
TG
23541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23542$as_echo "$gcc_cv_math_func_j1f" >&6; }
23543 if test $gcc_cv_math_func_j1f = yes; then
f1cdfa01 23544
f38a14ca
TG
23545cat >>confdefs.h <<_ACEOF
23546#define HAVE_J1F 1
23547_ACEOF
db9f46a9
TG
23548
23549 fi
e8525382 23550
e8525382 23551
e8525382 23552
db9f46a9
TG
23553
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23555$as_echo_n "checking for j1... " >&6; }
23556if test "${gcc_cv_math_func_j1+set}" = set; then :
5213506e 23557 $as_echo_n "(cached) " >&6
e8525382 23558else
db9f46a9 23559 if test x$gcc_no_link = xyes; then
5213506e 23560 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23561fi
5213506e 23562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23563/* end confdefs.h. */
23564
db9f46a9
TG
23565#ifdef HAVE_COMPLEX_H
23566#include <complex.h>
e8525382 23567#endif
db9f46a9
TG
23568#ifdef HAVE_MATH_H
23569#include <math.h>
23570#endif
23571
23572int (*ptr)() = (int (*)())j1;
23573
e8525382
SK
23574int
23575main ()
23576{
e8525382
SK
23577 return 0;
23578}
db9f46a9 23579
e8525382 23580_ACEOF
5213506e 23581if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23582 gcc_cv_math_func_j1=yes
e8525382 23583else
db9f46a9 23584 gcc_cv_math_func_j1=no
e8525382 23585fi
5213506e
RW
23586rm -f core conftest.err conftest.$ac_objext \
23587 conftest$ac_exeext conftest.$ac_ext
e8525382 23588fi
db9f46a9
TG
23589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23590$as_echo "$gcc_cv_math_func_j1" >&6; }
23591 if test $gcc_cv_math_func_j1 = yes; then
f1cdfa01 23592
f38a14ca
TG
23593cat >>confdefs.h <<_ACEOF
23594#define HAVE_J1 1
23595_ACEOF
e8525382 23596
db9f46a9 23597 fi
e8525382 23598
e8525382 23599
db9f46a9
TG
23600
23601
db9f46a9
TG
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23603$as_echo_n "checking for jnf... " >&6; }
23604if test "${gcc_cv_math_func_jnf+set}" = set; then :
5213506e 23605 $as_echo_n "(cached) " >&6
e8525382 23606else
db9f46a9 23607 if test x$gcc_no_link = xyes; then
5213506e 23608 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23609fi
5213506e 23610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23611/* end confdefs.h. */
23612
db9f46a9
TG
23613#ifdef HAVE_COMPLEX_H
23614#include <complex.h>
e8525382 23615#endif
db9f46a9
TG
23616#ifdef HAVE_MATH_H
23617#include <math.h>
23618#endif
23619
23620int (*ptr)() = (int (*)())jnf;
23621
e8525382
SK
23622int
23623main ()
23624{
e8525382
SK
23625 return 0;
23626}
db9f46a9 23627
e8525382 23628_ACEOF
5213506e 23629if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23630 gcc_cv_math_func_jnf=yes
e8525382 23631else
db9f46a9 23632 gcc_cv_math_func_jnf=no
e8525382 23633fi
5213506e
RW
23634rm -f core conftest.err conftest.$ac_objext \
23635 conftest$ac_exeext conftest.$ac_ext
e8525382 23636fi
db9f46a9
TG
23637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23638$as_echo "$gcc_cv_math_func_jnf" >&6; }
23639 if test $gcc_cv_math_func_jnf = yes; then
f1cdfa01 23640
f38a14ca
TG
23641cat >>confdefs.h <<_ACEOF
23642#define HAVE_JNF 1
23643_ACEOF
db9f46a9
TG
23644
23645 fi
23646
e8525382 23647
e8525382 23648
e8525382 23649
db9f46a9
TG
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23651$as_echo_n "checking for jn... " >&6; }
23652if test "${gcc_cv_math_func_jn+set}" = set; then :
5213506e 23653 $as_echo_n "(cached) " >&6
e8525382 23654else
db9f46a9 23655 if test x$gcc_no_link = xyes; then
5213506e 23656 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23657fi
5213506e 23658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23659/* end confdefs.h. */
23660
db9f46a9
TG
23661#ifdef HAVE_COMPLEX_H
23662#include <complex.h>
23663#endif
23664#ifdef HAVE_MATH_H
23665#include <math.h>
e8525382 23666#endif
db9f46a9
TG
23667
23668int (*ptr)() = (int (*)())jn;
23669
e8525382
SK
23670int
23671main ()
23672{
e8525382
SK
23673 return 0;
23674}
db9f46a9 23675
e8525382 23676_ACEOF
5213506e 23677if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23678 gcc_cv_math_func_jn=yes
e8525382 23679else
db9f46a9 23680 gcc_cv_math_func_jn=no
e8525382 23681fi
5213506e
RW
23682rm -f core conftest.err conftest.$ac_objext \
23683 conftest$ac_exeext conftest.$ac_ext
e8525382 23684fi
db9f46a9
TG
23685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23686$as_echo "$gcc_cv_math_func_jn" >&6; }
23687 if test $gcc_cv_math_func_jn = yes; then
f1cdfa01 23688
f38a14ca
TG
23689cat >>confdefs.h <<_ACEOF
23690#define HAVE_JN 1
23691_ACEOF
db9f46a9
TG
23692
23693 fi
e8525382 23694
e8525382 23695
e8525382 23696
db9f46a9
TG
23697
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23699$as_echo_n "checking for jnl... " >&6; }
23700if test "${gcc_cv_math_func_jnl+set}" = set; then :
5213506e 23701 $as_echo_n "(cached) " >&6
e8525382 23702else
db9f46a9 23703 if test x$gcc_no_link = xyes; then
5213506e 23704 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23705fi
5213506e 23706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23707/* end confdefs.h. */
23708
db9f46a9
TG
23709#ifdef HAVE_COMPLEX_H
23710#include <complex.h>
e8525382 23711#endif
db9f46a9
TG
23712#ifdef HAVE_MATH_H
23713#include <math.h>
23714#endif
23715
23716int (*ptr)() = (int (*)())jnl;
23717
e8525382
SK
23718int
23719main ()
23720{
e8525382
SK
23721 return 0;
23722}
db9f46a9 23723
e8525382 23724_ACEOF
5213506e 23725if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23726 gcc_cv_math_func_jnl=yes
e8525382 23727else
db9f46a9 23728 gcc_cv_math_func_jnl=no
e8525382 23729fi
5213506e
RW
23730rm -f core conftest.err conftest.$ac_objext \
23731 conftest$ac_exeext conftest.$ac_ext
e8525382 23732fi
db9f46a9
TG
23733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23734$as_echo "$gcc_cv_math_func_jnl" >&6; }
23735 if test $gcc_cv_math_func_jnl = yes; then
f1cdfa01 23736
f38a14ca
TG
23737cat >>confdefs.h <<_ACEOF
23738#define HAVE_JNL 1
23739_ACEOF
e8525382 23740
db9f46a9 23741 fi
e8525382 23742
e8525382 23743
db9f46a9
TG
23744
23745
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23747$as_echo_n "checking for y0f... " >&6; }
23748if test "${gcc_cv_math_func_y0f+set}" = set; then :
5213506e 23749 $as_echo_n "(cached) " >&6
e8525382 23750else
db9f46a9 23751 if test x$gcc_no_link = xyes; then
5213506e 23752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23753fi
5213506e 23754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23755/* end confdefs.h. */
23756
db9f46a9
TG
23757#ifdef HAVE_COMPLEX_H
23758#include <complex.h>
23759#endif
23760#ifdef HAVE_MATH_H
23761#include <math.h>
e8525382 23762#endif
db9f46a9
TG
23763
23764int (*ptr)() = (int (*)())y0f;
23765
e8525382
SK
23766int
23767main ()
23768{
e8525382
SK
23769 return 0;
23770}
db9f46a9 23771
e8525382 23772_ACEOF
5213506e 23773if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23774 gcc_cv_math_func_y0f=yes
e8525382 23775else
db9f46a9 23776 gcc_cv_math_func_y0f=no
e8525382 23777fi
5213506e
RW
23778rm -f core conftest.err conftest.$ac_objext \
23779 conftest$ac_exeext conftest.$ac_ext
e8525382 23780fi
db9f46a9
TG
23781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23782$as_echo "$gcc_cv_math_func_y0f" >&6; }
23783 if test $gcc_cv_math_func_y0f = yes; then
f1cdfa01 23784
f38a14ca
TG
23785cat >>confdefs.h <<_ACEOF
23786#define HAVE_Y0F 1
23787_ACEOF
db9f46a9
TG
23788
23789 fi
e8525382 23790
e8525382 23791
e8525382 23792
db9f46a9
TG
23793
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23795$as_echo_n "checking for y0... " >&6; }
23796if test "${gcc_cv_math_func_y0+set}" = set; then :
5213506e 23797 $as_echo_n "(cached) " >&6
e8525382 23798else
db9f46a9 23799 if test x$gcc_no_link = xyes; then
5213506e 23800 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23801fi
5213506e 23802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23803/* end confdefs.h. */
23804
db9f46a9
TG
23805#ifdef HAVE_COMPLEX_H
23806#include <complex.h>
e8525382 23807#endif
db9f46a9
TG
23808#ifdef HAVE_MATH_H
23809#include <math.h>
23810#endif
23811
23812int (*ptr)() = (int (*)())y0;
23813
e8525382
SK
23814int
23815main ()
23816{
e8525382
SK
23817 return 0;
23818}
db9f46a9 23819
e8525382 23820_ACEOF
5213506e 23821if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23822 gcc_cv_math_func_y0=yes
e8525382 23823else
db9f46a9 23824 gcc_cv_math_func_y0=no
e8525382 23825fi
5213506e
RW
23826rm -f core conftest.err conftest.$ac_objext \
23827 conftest$ac_exeext conftest.$ac_ext
e8525382 23828fi
db9f46a9
TG
23829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23830$as_echo "$gcc_cv_math_func_y0" >&6; }
23831 if test $gcc_cv_math_func_y0 = yes; then
f1cdfa01 23832
f38a14ca
TG
23833cat >>confdefs.h <<_ACEOF
23834#define HAVE_Y0 1
23835_ACEOF
db9f46a9
TG
23836
23837 fi
23838
e8525382 23839
e8525382 23840
e8525382 23841
db9f46a9
TG
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
23843$as_echo_n "checking for y1f... " >&6; }
23844if test "${gcc_cv_math_func_y1f+set}" = set; then :
5213506e 23845 $as_echo_n "(cached) " >&6
e8525382 23846else
db9f46a9 23847 if test x$gcc_no_link = xyes; then
5213506e 23848 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23849fi
5213506e 23850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23851/* end confdefs.h. */
23852
db9f46a9
TG
23853#ifdef HAVE_COMPLEX_H
23854#include <complex.h>
e8525382 23855#endif
db9f46a9
TG
23856#ifdef HAVE_MATH_H
23857#include <math.h>
23858#endif
23859
23860int (*ptr)() = (int (*)())y1f;
23861
e8525382
SK
23862int
23863main ()
23864{
e8525382
SK
23865 return 0;
23866}
db9f46a9 23867
e8525382 23868_ACEOF
5213506e 23869if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23870 gcc_cv_math_func_y1f=yes
e8525382 23871else
db9f46a9 23872 gcc_cv_math_func_y1f=no
e8525382 23873fi
5213506e
RW
23874rm -f core conftest.err conftest.$ac_objext \
23875 conftest$ac_exeext conftest.$ac_ext
e8525382 23876fi
db9f46a9
TG
23877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
23878$as_echo "$gcc_cv_math_func_y1f" >&6; }
23879 if test $gcc_cv_math_func_y1f = yes; then
f1cdfa01 23880
f38a14ca
TG
23881cat >>confdefs.h <<_ACEOF
23882#define HAVE_Y1F 1
23883_ACEOF
e8525382 23884
db9f46a9 23885 fi
e8525382 23886
e8525382 23887
db9f46a9
TG
23888
23889
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
23891$as_echo_n "checking for y1... " >&6; }
23892if test "${gcc_cv_math_func_y1+set}" = set; then :
5213506e 23893 $as_echo_n "(cached) " >&6
e8525382 23894else
db9f46a9 23895 if test x$gcc_no_link = xyes; then
5213506e 23896 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23897fi
5213506e 23898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23899/* end confdefs.h. */
23900
db9f46a9
TG
23901#ifdef HAVE_COMPLEX_H
23902#include <complex.h>
23903#endif
23904#ifdef HAVE_MATH_H
23905#include <math.h>
e8525382 23906#endif
db9f46a9
TG
23907
23908int (*ptr)() = (int (*)())y1;
23909
e8525382
SK
23910int
23911main ()
23912{
e8525382
SK
23913 return 0;
23914}
db9f46a9 23915
e8525382 23916_ACEOF
5213506e 23917if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23918 gcc_cv_math_func_y1=yes
e8525382 23919else
db9f46a9 23920 gcc_cv_math_func_y1=no
e8525382 23921fi
5213506e
RW
23922rm -f core conftest.err conftest.$ac_objext \
23923 conftest$ac_exeext conftest.$ac_ext
e8525382 23924fi
db9f46a9
TG
23925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
23926$as_echo "$gcc_cv_math_func_y1" >&6; }
23927 if test $gcc_cv_math_func_y1 = yes; then
f1cdfa01 23928
f38a14ca
TG
23929cat >>confdefs.h <<_ACEOF
23930#define HAVE_Y1 1
23931_ACEOF
db9f46a9
TG
23932
23933 fi
e8525382 23934
e8525382 23935
e8525382 23936
db9f46a9 23937
db9f46a9
TG
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
23939$as_echo_n "checking for ynf... " >&6; }
23940if test "${gcc_cv_math_func_ynf+set}" = set; then :
5213506e 23941 $as_echo_n "(cached) " >&6
db9f46a9
TG
23942else
23943 if test x$gcc_no_link = xyes; then
5213506e 23944 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23945fi
5213506e 23946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23947/* end confdefs.h. */
23948
db9f46a9
TG
23949#ifdef HAVE_COMPLEX_H
23950#include <complex.h>
23951#endif
23952#ifdef HAVE_MATH_H
23953#include <math.h>
e8525382 23954#endif
db9f46a9
TG
23955
23956int (*ptr)() = (int (*)())ynf;
23957
e8525382
SK
23958int
23959main ()
23960{
e8525382
SK
23961 return 0;
23962}
db9f46a9 23963
e8525382 23964_ACEOF
5213506e 23965if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23966 gcc_cv_math_func_ynf=yes
e8525382 23967else
db9f46a9 23968 gcc_cv_math_func_ynf=no
e8525382 23969fi
5213506e
RW
23970rm -f core conftest.err conftest.$ac_objext \
23971 conftest$ac_exeext conftest.$ac_ext
e8525382 23972fi
db9f46a9
TG
23973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
23974$as_echo "$gcc_cv_math_func_ynf" >&6; }
23975 if test $gcc_cv_math_func_ynf = yes; then
f1cdfa01 23976
f38a14ca
TG
23977cat >>confdefs.h <<_ACEOF
23978#define HAVE_YNF 1
23979_ACEOF
db9f46a9
TG
23980
23981 fi
e8525382 23982
e8525382 23983
e8525382 23984
db9f46a9
TG
23985
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
23987$as_echo_n "checking for yn... " >&6; }
23988if test "${gcc_cv_math_func_yn+set}" = set; then :
5213506e 23989 $as_echo_n "(cached) " >&6
e8525382 23990else
db9f46a9 23991 if test x$gcc_no_link = xyes; then
5213506e 23992 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23993fi
5213506e 23994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23995/* end confdefs.h. */
23996
db9f46a9
TG
23997#ifdef HAVE_COMPLEX_H
23998#include <complex.h>
e8525382 23999#endif
db9f46a9
TG
24000#ifdef HAVE_MATH_H
24001#include <math.h>
24002#endif
24003
24004int (*ptr)() = (int (*)())yn;
24005
e8525382
SK
24006int
24007main ()
24008{
e8525382
SK
24009 return 0;
24010}
db9f46a9 24011
e8525382 24012_ACEOF
5213506e 24013if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24014 gcc_cv_math_func_yn=yes
e8525382 24015else
db9f46a9 24016 gcc_cv_math_func_yn=no
e8525382 24017fi
5213506e
RW
24018rm -f core conftest.err conftest.$ac_objext \
24019 conftest$ac_exeext conftest.$ac_ext
e8525382 24020fi
db9f46a9
TG
24021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24022$as_echo "$gcc_cv_math_func_yn" >&6; }
24023 if test $gcc_cv_math_func_yn = yes; then
f1cdfa01 24024
f38a14ca
TG
24025cat >>confdefs.h <<_ACEOF
24026#define HAVE_YN 1
24027_ACEOF
db9f46a9
TG
24028
24029 fi
24030
e8525382 24031
e8525382 24032
e8525382 24033
db9f46a9
TG
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24035$as_echo_n "checking for ynl... " >&6; }
24036if test "${gcc_cv_math_func_ynl+set}" = set; then :
5213506e 24037 $as_echo_n "(cached) " >&6
e8525382 24038else
db9f46a9 24039 if test x$gcc_no_link = xyes; then
5213506e 24040 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24041fi
5213506e 24042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24043/* end confdefs.h. */
24044
db9f46a9
TG
24045#ifdef HAVE_COMPLEX_H
24046#include <complex.h>
24047#endif
24048#ifdef HAVE_MATH_H
24049#include <math.h>
e8525382 24050#endif
db9f46a9
TG
24051
24052int (*ptr)() = (int (*)())ynl;
24053
e8525382
SK
24054int
24055main ()
24056{
e8525382
SK
24057 return 0;
24058}
db9f46a9 24059
e8525382 24060_ACEOF
5213506e 24061if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24062 gcc_cv_math_func_ynl=yes
e8525382 24063else
db9f46a9 24064 gcc_cv_math_func_ynl=no
e8525382 24065fi
5213506e
RW
24066rm -f core conftest.err conftest.$ac_objext \
24067 conftest$ac_exeext conftest.$ac_ext
e8525382 24068fi
db9f46a9
TG
24069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24070$as_echo "$gcc_cv_math_func_ynl" >&6; }
24071 if test $gcc_cv_math_func_ynl = yes; then
f1cdfa01 24072
f38a14ca
TG
24073cat >>confdefs.h <<_ACEOF
24074#define HAVE_YNL 1
24075_ACEOF
db9f46a9
TG
24076
24077 fi
e8525382 24078
e8525382 24079
e8525382 24080
db9f46a9
TG
24081
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24083$as_echo_n "checking for tgamma... " >&6; }
24084if test "${gcc_cv_math_func_tgamma+set}" = set; then :
5213506e 24085 $as_echo_n "(cached) " >&6
fb0a0e15 24086else
db9f46a9 24087 if test x$gcc_no_link = xyes; then
5213506e 24088 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24089fi
5213506e 24090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24091/* end confdefs.h. */
24092
db9f46a9
TG
24093#ifdef HAVE_COMPLEX_H
24094#include <complex.h>
fb0a0e15 24095#endif
db9f46a9
TG
24096#ifdef HAVE_MATH_H
24097#include <math.h>
24098#endif
24099
24100int (*ptr)() = (int (*)())tgamma;
24101
fb0a0e15
FXC
24102int
24103main ()
24104{
fb0a0e15
FXC
24105 return 0;
24106}
db9f46a9 24107
fb0a0e15 24108_ACEOF
5213506e 24109if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24110 gcc_cv_math_func_tgamma=yes
fb0a0e15 24111else
db9f46a9 24112 gcc_cv_math_func_tgamma=no
fb0a0e15 24113fi
5213506e
RW
24114rm -f core conftest.err conftest.$ac_objext \
24115 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24116fi
db9f46a9
TG
24117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24118$as_echo "$gcc_cv_math_func_tgamma" >&6; }
24119 if test $gcc_cv_math_func_tgamma = yes; then
f1cdfa01 24120
f38a14ca
TG
24121cat >>confdefs.h <<_ACEOF
24122#define HAVE_TGAMMA 1
24123_ACEOF
fb0a0e15 24124
db9f46a9 24125 fi
fb0a0e15 24126
fb0a0e15 24127
db9f46a9
TG
24128
24129
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24131$as_echo_n "checking for tgammaf... " >&6; }
24132if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
5213506e 24133 $as_echo_n "(cached) " >&6
fb0a0e15 24134else
db9f46a9 24135 if test x$gcc_no_link = xyes; then
5213506e 24136 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24137fi
5213506e 24138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24139/* end confdefs.h. */
24140
db9f46a9
TG
24141#ifdef HAVE_COMPLEX_H
24142#include <complex.h>
24143#endif
24144#ifdef HAVE_MATH_H
24145#include <math.h>
fb0a0e15 24146#endif
db9f46a9
TG
24147
24148int (*ptr)() = (int (*)())tgammaf;
24149
fb0a0e15
FXC
24150int
24151main ()
24152{
fb0a0e15
FXC
24153 return 0;
24154}
db9f46a9 24155
fb0a0e15 24156_ACEOF
5213506e 24157if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24158 gcc_cv_math_func_tgammaf=yes
fb0a0e15 24159else
db9f46a9 24160 gcc_cv_math_func_tgammaf=no
fb0a0e15 24161fi
5213506e
RW
24162rm -f core conftest.err conftest.$ac_objext \
24163 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24164fi
db9f46a9
TG
24165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24166$as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24167 if test $gcc_cv_math_func_tgammaf = yes; then
f1cdfa01 24168
f38a14ca
TG
24169cat >>confdefs.h <<_ACEOF
24170#define HAVE_TGAMMAF 1
24171_ACEOF
db9f46a9
TG
24172
24173 fi
fb0a0e15 24174
fb0a0e15 24175
fb0a0e15 24176
db9f46a9 24177
db9f46a9
TG
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24179$as_echo_n "checking for lgamma... " >&6; }
24180if test "${gcc_cv_math_func_lgamma+set}" = set; then :
5213506e 24181 $as_echo_n "(cached) " >&6
fb0a0e15 24182else
db9f46a9 24183 if test x$gcc_no_link = xyes; then
5213506e 24184 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24185fi
5213506e 24186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24187/* end confdefs.h. */
24188
db9f46a9
TG
24189#ifdef HAVE_COMPLEX_H
24190#include <complex.h>
24191#endif
24192#ifdef HAVE_MATH_H
24193#include <math.h>
fb0a0e15 24194#endif
db9f46a9
TG
24195
24196int (*ptr)() = (int (*)())lgamma;
24197
fb0a0e15
FXC
24198int
24199main ()
24200{
fb0a0e15
FXC
24201 return 0;
24202}
db9f46a9 24203
fb0a0e15 24204_ACEOF
5213506e 24205if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24206 gcc_cv_math_func_lgamma=yes
fb0a0e15 24207else
db9f46a9 24208 gcc_cv_math_func_lgamma=no
fb0a0e15 24209fi
5213506e
RW
24210rm -f core conftest.err conftest.$ac_objext \
24211 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24212fi
db9f46a9
TG
24213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24214$as_echo "$gcc_cv_math_func_lgamma" >&6; }
24215 if test $gcc_cv_math_func_lgamma = yes; then
f1cdfa01 24216
f38a14ca
TG
24217cat >>confdefs.h <<_ACEOF
24218#define HAVE_LGAMMA 1
24219_ACEOF
db9f46a9
TG
24220
24221 fi
fb0a0e15 24222
fb0a0e15 24223
fb0a0e15 24224
db9f46a9
TG
24225
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24227$as_echo_n "checking for lgammaf... " >&6; }
24228if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
5213506e 24229 $as_echo_n "(cached) " >&6
fb0a0e15 24230else
db9f46a9 24231 if test x$gcc_no_link = xyes; then
5213506e 24232 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24233fi
5213506e 24234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24235/* end confdefs.h. */
24236
db9f46a9
TG
24237#ifdef HAVE_COMPLEX_H
24238#include <complex.h>
fb0a0e15 24239#endif
db9f46a9
TG
24240#ifdef HAVE_MATH_H
24241#include <math.h>
24242#endif
24243
24244int (*ptr)() = (int (*)())lgammaf;
24245
fb0a0e15
FXC
24246int
24247main ()
24248{
fb0a0e15
FXC
24249 return 0;
24250}
db9f46a9 24251
fb0a0e15 24252_ACEOF
5213506e 24253if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24254 gcc_cv_math_func_lgammaf=yes
fb0a0e15 24255else
db9f46a9 24256 gcc_cv_math_func_lgammaf=no
fb0a0e15 24257fi
5213506e
RW
24258rm -f core conftest.err conftest.$ac_objext \
24259 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24260fi
db9f46a9
TG
24261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24262$as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24263 if test $gcc_cv_math_func_lgammaf = yes; then
f1cdfa01 24264
f38a14ca
TG
24265cat >>confdefs.h <<_ACEOF
24266#define HAVE_LGAMMAF 1
24267_ACEOF
fb0a0e15 24268
db9f46a9 24269 fi
fb0a0e15 24270
fb0a0e15 24271
db1cf15c 24272# Check for GFORTRAN_C99_1.1 funcs
db9f46a9
TG
24273
24274
24275
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24277$as_echo_n "checking for cacos... " >&6; }
24278if test "${gcc_cv_math_func_cacos+set}" = set; then :
db1cf15c
IS
24279 $as_echo_n "(cached) " >&6
24280else
db9f46a9 24281 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24283fi
24284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24285/* end confdefs.h. */
24286
db9f46a9
TG
24287#ifdef HAVE_COMPLEX_H
24288#include <complex.h>
db1cf15c 24289#endif
db9f46a9
TG
24290#ifdef HAVE_MATH_H
24291#include <math.h>
24292#endif
24293
24294int (*ptr)() = (int (*)())cacos;
24295
db1cf15c
IS
24296int
24297main ()
24298{
db1cf15c
IS
24299 return 0;
24300}
db9f46a9 24301
db1cf15c
IS
24302_ACEOF
24303if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24304 gcc_cv_math_func_cacos=yes
db1cf15c 24305else
db9f46a9 24306 gcc_cv_math_func_cacos=no
db1cf15c
IS
24307fi
24308rm -f core conftest.err conftest.$ac_objext \
24309 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24310fi
db9f46a9
TG
24311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24312$as_echo "$gcc_cv_math_func_cacos" >&6; }
24313 if test $gcc_cv_math_func_cacos = yes; then
f1cdfa01 24314
f38a14ca
TG
24315cat >>confdefs.h <<_ACEOF
24316#define HAVE_CACOS 1
24317_ACEOF
db1cf15c 24318
db9f46a9 24319 fi
db1cf15c 24320
db1cf15c 24321
db9f46a9
TG
24322
24323
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24325$as_echo_n "checking for cacosf... " >&6; }
24326if test "${gcc_cv_math_func_cacosf+set}" = set; then :
db1cf15c
IS
24327 $as_echo_n "(cached) " >&6
24328else
db9f46a9 24329 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24331fi
24332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24333/* end confdefs.h. */
24334
db9f46a9
TG
24335#ifdef HAVE_COMPLEX_H
24336#include <complex.h>
24337#endif
24338#ifdef HAVE_MATH_H
24339#include <math.h>
db1cf15c 24340#endif
db9f46a9
TG
24341
24342int (*ptr)() = (int (*)())cacosf;
24343
db1cf15c
IS
24344int
24345main ()
24346{
db1cf15c
IS
24347 return 0;
24348}
db9f46a9 24349
db1cf15c
IS
24350_ACEOF
24351if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24352 gcc_cv_math_func_cacosf=yes
db1cf15c 24353else
db9f46a9 24354 gcc_cv_math_func_cacosf=no
db1cf15c
IS
24355fi
24356rm -f core conftest.err conftest.$ac_objext \
24357 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24358fi
db9f46a9
TG
24359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24360$as_echo "$gcc_cv_math_func_cacosf" >&6; }
24361 if test $gcc_cv_math_func_cacosf = yes; then
f1cdfa01 24362
f38a14ca
TG
24363cat >>confdefs.h <<_ACEOF
24364#define HAVE_CACOSF 1
24365_ACEOF
db9f46a9
TG
24366
24367 fi
db1cf15c 24368
db1cf15c 24369
db1cf15c 24370
db9f46a9
TG
24371
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24373$as_echo_n "checking for cacosh... " >&6; }
24374if test "${gcc_cv_math_func_cacosh+set}" = set; then :
db1cf15c
IS
24375 $as_echo_n "(cached) " >&6
24376else
db9f46a9 24377 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24379fi
24380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24381/* end confdefs.h. */
24382
db9f46a9
TG
24383#ifdef HAVE_COMPLEX_H
24384#include <complex.h>
db1cf15c 24385#endif
db9f46a9
TG
24386#ifdef HAVE_MATH_H
24387#include <math.h>
24388#endif
24389
24390int (*ptr)() = (int (*)())cacosh;
24391
db1cf15c
IS
24392int
24393main ()
24394{
db1cf15c
IS
24395 return 0;
24396}
db9f46a9 24397
db1cf15c
IS
24398_ACEOF
24399if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24400 gcc_cv_math_func_cacosh=yes
db1cf15c 24401else
db9f46a9 24402 gcc_cv_math_func_cacosh=no
db1cf15c
IS
24403fi
24404rm -f core conftest.err conftest.$ac_objext \
24405 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24406fi
db9f46a9
TG
24407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24408$as_echo "$gcc_cv_math_func_cacosh" >&6; }
24409 if test $gcc_cv_math_func_cacosh = yes; then
f1cdfa01 24410
f38a14ca
TG
24411cat >>confdefs.h <<_ACEOF
24412#define HAVE_CACOSH 1
24413_ACEOF
db9f46a9
TG
24414
24415 fi
24416
db1cf15c 24417
db1cf15c 24418
db1cf15c 24419
db9f46a9
TG
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24421$as_echo_n "checking for cacoshf... " >&6; }
24422if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
db1cf15c
IS
24423 $as_echo_n "(cached) " >&6
24424else
db9f46a9 24425 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24427fi
24428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24429/* end confdefs.h. */
24430
db9f46a9
TG
24431#ifdef HAVE_COMPLEX_H
24432#include <complex.h>
24433#endif
24434#ifdef HAVE_MATH_H
24435#include <math.h>
db1cf15c 24436#endif
db9f46a9
TG
24437
24438int (*ptr)() = (int (*)())cacoshf;
24439
db1cf15c
IS
24440int
24441main ()
24442{
db1cf15c
IS
24443 return 0;
24444}
db9f46a9 24445
db1cf15c
IS
24446_ACEOF
24447if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24448 gcc_cv_math_func_cacoshf=yes
db1cf15c 24449else
db9f46a9 24450 gcc_cv_math_func_cacoshf=no
db1cf15c
IS
24451fi
24452rm -f core conftest.err conftest.$ac_objext \
24453 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24454fi
db9f46a9
TG
24455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24456$as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24457 if test $gcc_cv_math_func_cacoshf = yes; then
f1cdfa01 24458
f38a14ca
TG
24459cat >>confdefs.h <<_ACEOF
24460#define HAVE_CACOSHF 1
24461_ACEOF
db9f46a9
TG
24462
24463 fi
db1cf15c 24464
db1cf15c 24465
db1cf15c 24466
db9f46a9
TG
24467
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24469$as_echo_n "checking for cacoshl... " >&6; }
24470if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
db1cf15c
IS
24471 $as_echo_n "(cached) " >&6
24472else
db9f46a9 24473 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24475fi
24476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24477/* end confdefs.h. */
24478
db9f46a9
TG
24479#ifdef HAVE_COMPLEX_H
24480#include <complex.h>
db1cf15c 24481#endif
db9f46a9
TG
24482#ifdef HAVE_MATH_H
24483#include <math.h>
24484#endif
24485
24486int (*ptr)() = (int (*)())cacoshl;
24487
db1cf15c
IS
24488int
24489main ()
24490{
db1cf15c
IS
24491 return 0;
24492}
db9f46a9 24493
db1cf15c
IS
24494_ACEOF
24495if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24496 gcc_cv_math_func_cacoshl=yes
db1cf15c 24497else
db9f46a9 24498 gcc_cv_math_func_cacoshl=no
db1cf15c
IS
24499fi
24500rm -f core conftest.err conftest.$ac_objext \
24501 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24502fi
db9f46a9
TG
24503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24504$as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24505 if test $gcc_cv_math_func_cacoshl = yes; then
f1cdfa01 24506
f38a14ca
TG
24507cat >>confdefs.h <<_ACEOF
24508#define HAVE_CACOSHL 1
24509_ACEOF
db1cf15c 24510
db9f46a9 24511 fi
db1cf15c 24512
db1cf15c 24513
db9f46a9
TG
24514
24515
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24517$as_echo_n "checking for cacosl... " >&6; }
24518if test "${gcc_cv_math_func_cacosl+set}" = set; then :
db1cf15c
IS
24519 $as_echo_n "(cached) " >&6
24520else
db9f46a9 24521 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24523fi
24524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24525/* end confdefs.h. */
24526
db9f46a9
TG
24527#ifdef HAVE_COMPLEX_H
24528#include <complex.h>
24529#endif
24530#ifdef HAVE_MATH_H
24531#include <math.h>
db1cf15c 24532#endif
db9f46a9
TG
24533
24534int (*ptr)() = (int (*)())cacosl;
24535
db1cf15c
IS
24536int
24537main ()
24538{
db1cf15c
IS
24539 return 0;
24540}
db9f46a9 24541
db1cf15c
IS
24542_ACEOF
24543if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24544 gcc_cv_math_func_cacosl=yes
db1cf15c 24545else
db9f46a9 24546 gcc_cv_math_func_cacosl=no
db1cf15c
IS
24547fi
24548rm -f core conftest.err conftest.$ac_objext \
24549 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24550fi
db9f46a9
TG
24551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24552$as_echo "$gcc_cv_math_func_cacosl" >&6; }
24553 if test $gcc_cv_math_func_cacosl = yes; then
f1cdfa01 24554
f38a14ca
TG
24555cat >>confdefs.h <<_ACEOF
24556#define HAVE_CACOSL 1
24557_ACEOF
db9f46a9
TG
24558
24559 fi
db1cf15c 24560
db1cf15c 24561
db1cf15c 24562
db9f46a9
TG
24563
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24565$as_echo_n "checking for casin... " >&6; }
24566if test "${gcc_cv_math_func_casin+set}" = set; then :
db1cf15c
IS
24567 $as_echo_n "(cached) " >&6
24568else
db9f46a9 24569 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24570 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24571fi
24572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24573/* end confdefs.h. */
24574
db9f46a9
TG
24575#ifdef HAVE_COMPLEX_H
24576#include <complex.h>
db1cf15c 24577#endif
db9f46a9
TG
24578#ifdef HAVE_MATH_H
24579#include <math.h>
24580#endif
24581
24582int (*ptr)() = (int (*)())casin;
24583
db1cf15c
IS
24584int
24585main ()
24586{
db1cf15c
IS
24587 return 0;
24588}
db9f46a9 24589
db1cf15c
IS
24590_ACEOF
24591if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24592 gcc_cv_math_func_casin=yes
db1cf15c 24593else
db9f46a9 24594 gcc_cv_math_func_casin=no
db1cf15c
IS
24595fi
24596rm -f core conftest.err conftest.$ac_objext \
24597 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24598fi
db9f46a9
TG
24599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24600$as_echo "$gcc_cv_math_func_casin" >&6; }
24601 if test $gcc_cv_math_func_casin = yes; then
f1cdfa01 24602
f38a14ca
TG
24603cat >>confdefs.h <<_ACEOF
24604#define HAVE_CASIN 1
24605_ACEOF
db9f46a9
TG
24606
24607 fi
24608
db1cf15c 24609
db1cf15c 24610
db1cf15c 24611
db9f46a9
TG
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24613$as_echo_n "checking for casinf... " >&6; }
24614if test "${gcc_cv_math_func_casinf+set}" = set; then :
db1cf15c
IS
24615 $as_echo_n "(cached) " >&6
24616else
db9f46a9 24617 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24618 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24619fi
24620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24621/* end confdefs.h. */
24622
db9f46a9
TG
24623#ifdef HAVE_COMPLEX_H
24624#include <complex.h>
24625#endif
24626#ifdef HAVE_MATH_H
24627#include <math.h>
db1cf15c 24628#endif
db9f46a9
TG
24629
24630int (*ptr)() = (int (*)())casinf;
24631
db1cf15c
IS
24632int
24633main ()
24634{
db1cf15c
IS
24635 return 0;
24636}
db9f46a9 24637
db1cf15c
IS
24638_ACEOF
24639if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24640 gcc_cv_math_func_casinf=yes
db1cf15c 24641else
db9f46a9 24642 gcc_cv_math_func_casinf=no
db1cf15c
IS
24643fi
24644rm -f core conftest.err conftest.$ac_objext \
24645 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24646fi
db9f46a9
TG
24647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24648$as_echo "$gcc_cv_math_func_casinf" >&6; }
24649 if test $gcc_cv_math_func_casinf = yes; then
f1cdfa01 24650
f38a14ca
TG
24651cat >>confdefs.h <<_ACEOF
24652#define HAVE_CASINF 1
24653_ACEOF
db9f46a9
TG
24654
24655 fi
db1cf15c 24656
db1cf15c 24657
db1cf15c 24658
db9f46a9
TG
24659
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24661$as_echo_n "checking for casinh... " >&6; }
24662if test "${gcc_cv_math_func_casinh+set}" = set; then :
db1cf15c
IS
24663 $as_echo_n "(cached) " >&6
24664else
db9f46a9 24665 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24666 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24667fi
24668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24669/* end confdefs.h. */
24670
db9f46a9
TG
24671#ifdef HAVE_COMPLEX_H
24672#include <complex.h>
db1cf15c 24673#endif
db9f46a9
TG
24674#ifdef HAVE_MATH_H
24675#include <math.h>
24676#endif
24677
24678int (*ptr)() = (int (*)())casinh;
24679
db1cf15c
IS
24680int
24681main ()
24682{
db1cf15c
IS
24683 return 0;
24684}
db9f46a9 24685
db1cf15c
IS
24686_ACEOF
24687if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24688 gcc_cv_math_func_casinh=yes
db1cf15c 24689else
db9f46a9 24690 gcc_cv_math_func_casinh=no
db1cf15c
IS
24691fi
24692rm -f core conftest.err conftest.$ac_objext \
24693 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24694fi
db9f46a9
TG
24695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
24696$as_echo "$gcc_cv_math_func_casinh" >&6; }
24697 if test $gcc_cv_math_func_casinh = yes; then
f1cdfa01 24698
f38a14ca
TG
24699cat >>confdefs.h <<_ACEOF
24700#define HAVE_CASINH 1
24701_ACEOF
db1cf15c 24702
db9f46a9 24703 fi
db1cf15c 24704
db1cf15c 24705
db9f46a9
TG
24706
24707
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
24709$as_echo_n "checking for casinhf... " >&6; }
24710if test "${gcc_cv_math_func_casinhf+set}" = set; then :
db1cf15c
IS
24711 $as_echo_n "(cached) " >&6
24712else
db9f46a9 24713 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24714 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24715fi
24716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24717/* end confdefs.h. */
24718
db9f46a9
TG
24719#ifdef HAVE_COMPLEX_H
24720#include <complex.h>
24721#endif
24722#ifdef HAVE_MATH_H
24723#include <math.h>
db1cf15c 24724#endif
db9f46a9
TG
24725
24726int (*ptr)() = (int (*)())casinhf;
24727
db1cf15c
IS
24728int
24729main ()
24730{
db1cf15c
IS
24731 return 0;
24732}
db9f46a9 24733
db1cf15c
IS
24734_ACEOF
24735if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24736 gcc_cv_math_func_casinhf=yes
db1cf15c 24737else
db9f46a9 24738 gcc_cv_math_func_casinhf=no
db1cf15c
IS
24739fi
24740rm -f core conftest.err conftest.$ac_objext \
24741 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24742fi
db9f46a9
TG
24743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
24744$as_echo "$gcc_cv_math_func_casinhf" >&6; }
24745 if test $gcc_cv_math_func_casinhf = yes; then
f1cdfa01 24746
f38a14ca
TG
24747cat >>confdefs.h <<_ACEOF
24748#define HAVE_CASINHF 1
24749_ACEOF
db9f46a9
TG
24750
24751 fi
db1cf15c 24752
db1cf15c 24753
db1cf15c 24754
db9f46a9
TG
24755
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
24757$as_echo_n "checking for casinhl... " >&6; }
24758if test "${gcc_cv_math_func_casinhl+set}" = set; then :
db1cf15c
IS
24759 $as_echo_n "(cached) " >&6
24760else
db9f46a9 24761 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24762 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24763fi
24764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24765/* end confdefs.h. */
24766
db9f46a9
TG
24767#ifdef HAVE_COMPLEX_H
24768#include <complex.h>
db1cf15c 24769#endif
db9f46a9
TG
24770#ifdef HAVE_MATH_H
24771#include <math.h>
24772#endif
24773
24774int (*ptr)() = (int (*)())casinhl;
24775
db1cf15c
IS
24776int
24777main ()
24778{
db1cf15c
IS
24779 return 0;
24780}
db9f46a9 24781
db1cf15c
IS
24782_ACEOF
24783if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24784 gcc_cv_math_func_casinhl=yes
db1cf15c 24785else
db9f46a9 24786 gcc_cv_math_func_casinhl=no
db1cf15c
IS
24787fi
24788rm -f core conftest.err conftest.$ac_objext \
24789 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24790fi
db9f46a9
TG
24791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
24792$as_echo "$gcc_cv_math_func_casinhl" >&6; }
24793 if test $gcc_cv_math_func_casinhl = yes; then
f1cdfa01 24794
f38a14ca
TG
24795cat >>confdefs.h <<_ACEOF
24796#define HAVE_CASINHL 1
24797_ACEOF
db9f46a9
TG
24798
24799 fi
24800
db1cf15c 24801
db1cf15c 24802
db1cf15c 24803
db9f46a9
TG
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
24805$as_echo_n "checking for casinl... " >&6; }
24806if test "${gcc_cv_math_func_casinl+set}" = set; then :
db1cf15c
IS
24807 $as_echo_n "(cached) " >&6
24808else
db9f46a9 24809 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24810 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24811fi
24812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24813/* end confdefs.h. */
24814
db9f46a9
TG
24815#ifdef HAVE_COMPLEX_H
24816#include <complex.h>
24817#endif
24818#ifdef HAVE_MATH_H
24819#include <math.h>
db1cf15c 24820#endif
db9f46a9
TG
24821
24822int (*ptr)() = (int (*)())casinl;
24823
db1cf15c
IS
24824int
24825main ()
24826{
db1cf15c
IS
24827 return 0;
24828}
db9f46a9 24829
db1cf15c
IS
24830_ACEOF
24831if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24832 gcc_cv_math_func_casinl=yes
db1cf15c 24833else
db9f46a9 24834 gcc_cv_math_func_casinl=no
db1cf15c
IS
24835fi
24836rm -f core conftest.err conftest.$ac_objext \
24837 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24838fi
db9f46a9
TG
24839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
24840$as_echo "$gcc_cv_math_func_casinl" >&6; }
24841 if test $gcc_cv_math_func_casinl = yes; then
f1cdfa01 24842
f38a14ca
TG
24843cat >>confdefs.h <<_ACEOF
24844#define HAVE_CASINL 1
24845_ACEOF
db9f46a9
TG
24846
24847 fi
db1cf15c 24848
db1cf15c 24849
db1cf15c 24850
db9f46a9
TG
24851
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
24853$as_echo_n "checking for catan... " >&6; }
24854if test "${gcc_cv_math_func_catan+set}" = set; then :
db1cf15c
IS
24855 $as_echo_n "(cached) " >&6
24856else
db9f46a9 24857 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24858 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24859fi
24860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24861/* end confdefs.h. */
24862
db9f46a9
TG
24863#ifdef HAVE_COMPLEX_H
24864#include <complex.h>
db1cf15c 24865#endif
db9f46a9
TG
24866#ifdef HAVE_MATH_H
24867#include <math.h>
24868#endif
24869
24870int (*ptr)() = (int (*)())catan;
24871
db1cf15c
IS
24872int
24873main ()
24874{
db1cf15c
IS
24875 return 0;
24876}
db9f46a9 24877
db1cf15c
IS
24878_ACEOF
24879if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24880 gcc_cv_math_func_catan=yes
db1cf15c 24881else
db9f46a9 24882 gcc_cv_math_func_catan=no
db1cf15c
IS
24883fi
24884rm -f core conftest.err conftest.$ac_objext \
24885 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24886fi
db9f46a9
TG
24887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
24888$as_echo "$gcc_cv_math_func_catan" >&6; }
24889 if test $gcc_cv_math_func_catan = yes; then
f1cdfa01 24890
f38a14ca
TG
24891cat >>confdefs.h <<_ACEOF
24892#define HAVE_CATAN 1
24893_ACEOF
db1cf15c 24894
db9f46a9 24895 fi
db1cf15c 24896
db1cf15c 24897
db9f46a9
TG
24898
24899
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
24901$as_echo_n "checking for catanf... " >&6; }
24902if test "${gcc_cv_math_func_catanf+set}" = set; then :
db1cf15c
IS
24903 $as_echo_n "(cached) " >&6
24904else
db9f46a9 24905 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24906 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24907fi
24908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24909/* end confdefs.h. */
24910
db9f46a9
TG
24911#ifdef HAVE_COMPLEX_H
24912#include <complex.h>
24913#endif
24914#ifdef HAVE_MATH_H
24915#include <math.h>
db1cf15c 24916#endif
db9f46a9
TG
24917
24918int (*ptr)() = (int (*)())catanf;
24919
db1cf15c
IS
24920int
24921main ()
24922{
db1cf15c
IS
24923 return 0;
24924}
db9f46a9 24925
db1cf15c
IS
24926_ACEOF
24927if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24928 gcc_cv_math_func_catanf=yes
db1cf15c 24929else
db9f46a9 24930 gcc_cv_math_func_catanf=no
db1cf15c
IS
24931fi
24932rm -f core conftest.err conftest.$ac_objext \
24933 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24934fi
db9f46a9
TG
24935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
24936$as_echo "$gcc_cv_math_func_catanf" >&6; }
24937 if test $gcc_cv_math_func_catanf = yes; then
f1cdfa01 24938
f38a14ca
TG
24939cat >>confdefs.h <<_ACEOF
24940#define HAVE_CATANF 1
24941_ACEOF
db9f46a9
TG
24942
24943 fi
db1cf15c 24944
db1cf15c 24945
db1cf15c 24946
db9f46a9
TG
24947
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
24949$as_echo_n "checking for catanh... " >&6; }
24950if test "${gcc_cv_math_func_catanh+set}" = set; then :
db1cf15c
IS
24951 $as_echo_n "(cached) " >&6
24952else
db9f46a9 24953 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24954 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24955fi
24956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24957/* end confdefs.h. */
24958
db9f46a9
TG
24959#ifdef HAVE_COMPLEX_H
24960#include <complex.h>
db1cf15c 24961#endif
db9f46a9
TG
24962#ifdef HAVE_MATH_H
24963#include <math.h>
24964#endif
24965
24966int (*ptr)() = (int (*)())catanh;
24967
db1cf15c
IS
24968int
24969main ()
24970{
db1cf15c
IS
24971 return 0;
24972}
db9f46a9 24973
db1cf15c
IS
24974_ACEOF
24975if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24976 gcc_cv_math_func_catanh=yes
db1cf15c 24977else
db9f46a9 24978 gcc_cv_math_func_catanh=no
db1cf15c
IS
24979fi
24980rm -f core conftest.err conftest.$ac_objext \
24981 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24982fi
db9f46a9
TG
24983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
24984$as_echo "$gcc_cv_math_func_catanh" >&6; }
24985 if test $gcc_cv_math_func_catanh = yes; then
f1cdfa01 24986
f38a14ca
TG
24987cat >>confdefs.h <<_ACEOF
24988#define HAVE_CATANH 1
24989_ACEOF
db9f46a9
TG
24990
24991 fi
24992
db1cf15c 24993
db1cf15c 24994
db1cf15c 24995
db9f46a9
TG
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
24997$as_echo_n "checking for catanhf... " >&6; }
24998if test "${gcc_cv_math_func_catanhf+set}" = set; then :
db1cf15c
IS
24999 $as_echo_n "(cached) " >&6
25000else
db9f46a9 25001 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25002 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25003fi
25004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25005/* end confdefs.h. */
25006
db9f46a9
TG
25007#ifdef HAVE_COMPLEX_H
25008#include <complex.h>
25009#endif
25010#ifdef HAVE_MATH_H
25011#include <math.h>
db1cf15c 25012#endif
db9f46a9
TG
25013
25014int (*ptr)() = (int (*)())catanhf;
25015
db1cf15c
IS
25016int
25017main ()
25018{
db1cf15c
IS
25019 return 0;
25020}
db9f46a9 25021
db1cf15c
IS
25022_ACEOF
25023if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25024 gcc_cv_math_func_catanhf=yes
db1cf15c 25025else
db9f46a9 25026 gcc_cv_math_func_catanhf=no
db1cf15c
IS
25027fi
25028rm -f core conftest.err conftest.$ac_objext \
25029 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25030fi
db9f46a9
TG
25031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25032$as_echo "$gcc_cv_math_func_catanhf" >&6; }
25033 if test $gcc_cv_math_func_catanhf = yes; then
f1cdfa01 25034
f38a14ca
TG
25035cat >>confdefs.h <<_ACEOF
25036#define HAVE_CATANHF 1
25037_ACEOF
db9f46a9
TG
25038
25039 fi
db1cf15c 25040
db1cf15c 25041
db1cf15c 25042
db9f46a9
TG
25043
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25045$as_echo_n "checking for catanhl... " >&6; }
25046if test "${gcc_cv_math_func_catanhl+set}" = set; then :
db1cf15c
IS
25047 $as_echo_n "(cached) " >&6
25048else
db9f46a9 25049 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25050 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25051fi
25052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25053/* end confdefs.h. */
25054
db9f46a9
TG
25055#ifdef HAVE_COMPLEX_H
25056#include <complex.h>
db1cf15c 25057#endif
db9f46a9
TG
25058#ifdef HAVE_MATH_H
25059#include <math.h>
25060#endif
25061
25062int (*ptr)() = (int (*)())catanhl;
25063
db1cf15c
IS
25064int
25065main ()
25066{
db1cf15c
IS
25067 return 0;
25068}
db9f46a9 25069
db1cf15c
IS
25070_ACEOF
25071if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25072 gcc_cv_math_func_catanhl=yes
db1cf15c 25073else
db9f46a9 25074 gcc_cv_math_func_catanhl=no
db1cf15c
IS
25075fi
25076rm -f core conftest.err conftest.$ac_objext \
25077 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25078fi
db9f46a9
TG
25079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25080$as_echo "$gcc_cv_math_func_catanhl" >&6; }
25081 if test $gcc_cv_math_func_catanhl = yes; then
f1cdfa01 25082
f38a14ca
TG
25083cat >>confdefs.h <<_ACEOF
25084#define HAVE_CATANHL 1
25085_ACEOF
db1cf15c 25086
db9f46a9 25087 fi
db1cf15c 25088
db1cf15c 25089
db9f46a9
TG
25090
25091
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25093$as_echo_n "checking for catanl... " >&6; }
25094if test "${gcc_cv_math_func_catanl+set}" = set; then :
db1cf15c
IS
25095 $as_echo_n "(cached) " >&6
25096else
db9f46a9 25097 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25098 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25099fi
25100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25101/* end confdefs.h. */
25102
db9f46a9
TG
25103#ifdef HAVE_COMPLEX_H
25104#include <complex.h>
25105#endif
25106#ifdef HAVE_MATH_H
25107#include <math.h>
db1cf15c 25108#endif
db9f46a9
TG
25109
25110int (*ptr)() = (int (*)())catanl;
25111
db1cf15c
IS
25112int
25113main ()
25114{
db1cf15c
IS
25115 return 0;
25116}
db9f46a9 25117
db1cf15c
IS
25118_ACEOF
25119if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25120 gcc_cv_math_func_catanl=yes
db1cf15c 25121else
db9f46a9 25122 gcc_cv_math_func_catanl=no
db1cf15c
IS
25123fi
25124rm -f core conftest.err conftest.$ac_objext \
25125 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25126fi
db9f46a9
TG
25127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25128$as_echo "$gcc_cv_math_func_catanl" >&6; }
25129 if test $gcc_cv_math_func_catanl = yes; then
f1cdfa01 25130
f38a14ca
TG
25131cat >>confdefs.h <<_ACEOF
25132#define HAVE_CATANL 1
25133_ACEOF
db1cf15c 25134
db9f46a9 25135 fi
db1cf15c
IS
25136
25137
118ea208 25138# On AIX, clog is present in libm as __clog
5213506e
RW
25139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25140$as_echo_n "checking for __clog in -lm... " >&6; }
25141if test "${ac_cv_lib_m___clog+set}" = set; then :
25142 $as_echo_n "(cached) " >&6
e097b4f1
DE
25143else
25144 ac_check_lib_save_LIBS=$LIBS
25145LIBS="-lm $LIBS"
25146if test x$gcc_no_link = xyes; then
5213506e 25147 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e097b4f1 25148fi
5213506e 25149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e097b4f1
DE
25150/* end confdefs.h. */
25151
5213506e
RW
25152/* Override any GCC internal prototype to avoid an error.
25153 Use char because int might match the return type of a GCC
25154 builtin and then its argument prototype would still apply. */
e097b4f1
DE
25155#ifdef __cplusplus
25156extern "C"
25157#endif
e097b4f1
DE
25158char __clog ();
25159int
25160main ()
25161{
5213506e 25162return __clog ();
e097b4f1
DE
25163 ;
25164 return 0;
25165}
25166_ACEOF
5213506e 25167if ac_fn_c_try_link "$LINENO"; then :
e097b4f1
DE
25168 ac_cv_lib_m___clog=yes
25169else
5213506e 25170 ac_cv_lib_m___clog=no
e097b4f1 25171fi
5213506e
RW
25172rm -f core conftest.err conftest.$ac_objext \
25173 conftest$ac_exeext conftest.$ac_ext
e097b4f1
DE
25174LIBS=$ac_check_lib_save_LIBS
25175fi
5213506e
RW
25176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25177$as_echo "$ac_cv_lib_m___clog" >&6; }
25178if test "x$ac_cv_lib_m___clog" = x""yes; then :
e097b4f1 25179
5213506e 25180$as_echo "#define HAVE_CLOG 1" >>confdefs.h
e097b4f1
DE
25181
25182fi
25183
25184
ad238e4f
FXC
25185# Check whether the system has a working stat()
25186
5213506e
RW
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25188$as_echo_n "checking whether the target stat is reliable... " >&6; }
25189if test "${libgfor_cv_have_working_stat+set}" = set; then :
25190 $as_echo_n "(cached) " >&6
ad238e4f
FXC
25191else
25192
5213506e 25193 if test "$cross_compiling" = yes; then :
ad238e4f
FXC
25194
25195case "${target}" in
6d26724a
RW
25196 *mingw*) libgfor_cv_have_working_stat=no ;;
25197 *) libgfor_cv_have_working_stat=yes;;
ad238e4f
FXC
25198esac
25199else
5213506e 25200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad238e4f
FXC
25201/* end confdefs.h. */
25202
25203#include <stdio.h>
25204#include <sys/types.h>
25205#include <sys/stat.h>
25206#include <unistd.h>
25207
25208int main ()
25209{
25210 FILE *f, *g;
25211 struct stat st1, st2;
25212
25213 f = fopen ("foo", "w");
25214 g = fopen ("bar", "w");
25215 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25216 return 1;
25217 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25218 return 1;
25219 fclose(f);
25220 fclose(g);
25221 return 0;
25222}
25223_ACEOF
5213506e 25224if ac_fn_c_try_run "$LINENO"; then :
6d26724a 25225 libgfor_cv_have_working_stat=yes
ad238e4f 25226else
5213506e 25227 libgfor_cv_have_working_stat=no
ad238e4f 25228fi
5213506e
RW
25229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25230 conftest.$ac_objext conftest.beam conftest.$ac_ext
ad238e4f 25231fi
5213506e 25232
ad238e4f 25233fi
5213506e
RW
25234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25235$as_echo "$libgfor_cv_have_working_stat" >&6; }
6d26724a 25236if test x"$libgfor_cv_have_working_stat" = xyes; then
ad238e4f 25237
5213506e 25238$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
ad238e4f
FXC
25239
25240fi
25241
db8092dc
FXC
25242# Check whether __mingw_snprintf() is present
25243
5213506e
RW
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25245$as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25246if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25247 $as_echo_n "(cached) " >&6
db8092dc
FXC
25248else
25249
25250 if test x$gcc_no_link = xyes; then
5213506e 25251 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db8092dc 25252fi
5213506e 25253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db8092dc
FXC
25254/* end confdefs.h. */
25255
25256#include <stdio.h>
25257extern int __mingw_snprintf (char *, size_t, const char *, ...);
25258
25259int
25260main ()
25261{
25262
25263__mingw_snprintf (NULL, 0, "%d\n", 1);
25264
25265 ;
25266 return 0;
25267}
25268_ACEOF
5213506e 25269if ac_fn_c_try_link "$LINENO"; then :
6d26724a 25270 eval "libgfor_cv_have_mingw_snprintf=yes"
db8092dc 25271else
5213506e 25272 eval "libgfor_cv_have_mingw_snprintf=no"
db8092dc 25273fi
5213506e
RW
25274rm -f core conftest.err conftest.$ac_objext \
25275 conftest$ac_exeext conftest.$ac_ext
db8092dc
FXC
25276
25277fi
5213506e
RW
25278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25279$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
6d26724a 25280 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
db8092dc 25281
5213506e 25282$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
db8092dc
FXC
25283
25284 fi
25285
25286
87e6d9dc
TB
25287# Check whether libquadmath should be used
25288# Check whether --enable-libquadmath-support was given.
25289if test "${enable_libquadmath_support+set}" = set; then :
25290 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25291else
25292 ENABLE_LIBQUADMATH_SUPPORT=yes
25293fi
25294
25295enable_libquadmath_support=
25296if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25297 enable_libquadmath_support=no
25298fi
25299
25300# Check whether we have a __float128 type, depends on enable_libquadmath_support
1ec601bf
FXC
25301
25302 LIBQUADSPEC=
87e6d9dc
TB
25303
25304 if test "x$enable_libquadmath_support" != xno; then
25305
1ec601bf
FXC
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25307$as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25308if test "${libgfor_cv_have_float128+set}" = set; then :
25309 $as_echo_n "(cached) " >&6
25310else
25311
69eb61d4
TB
25312 if test x$gcc_no_link = xyes; then
25313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
25314/* end confdefs.h. */
25315
69eb61d4
TB
25316 typedef _Complex float __attribute__((mode(TC))) __complex128;
25317
25318 __float128 foo (__float128 x)
25319 {
25320
25321 __complex128 z1, z2;
25322
25323 z1 = x;
25324 z2 = x / 7.Q;
25325 z2 /= z1;
25326
25327 return (__float128) z2;
25328 }
25329
25330 __float128 bar (__float128 x)
25331 {
25332 return x * __builtin_huge_valq ();
25333 }
1ec601bf
FXC
25334
25335int
25336main ()
25337{
25338
69eb61d4
TB
25339 foo (1.2Q);
25340 bar (1.2Q);
1ec601bf 25341
69eb61d4
TB
25342 ;
25343 return 0;
25344}
25345_ACEOF
25346if ac_fn_c_try_compile "$LINENO"; then :
1ec601bf 25347
69eb61d4 25348 libgfor_cv_have_float128=yes
1ec601bf 25349
69eb61d4
TB
25350else
25351
25352 libgfor_cv_have_float128=no
25353
25354fi
25355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25356else
25357 if test x$gcc_no_link = xyes; then
25358 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25359fi
25360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25361/* end confdefs.h. */
25362
25363 typedef _Complex float __attribute__((mode(TC))) __complex128;
25364
25365 __float128 foo (__float128 x)
25366 {
25367
25368 __complex128 z1, z2;
25369
25370 z1 = x;
25371 z2 = x / 7.Q;
25372 z2 /= z1;
25373
25374 return (__float128) z2;
25375 }
25376
25377 __float128 bar (__float128 x)
25378 {
25379 return x * __builtin_huge_valq ();
25380 }
25381
25382int
25383main ()
25384{
25385
25386 foo (1.2Q);
25387 bar (1.2Q);
1ec601bf
FXC
25388
25389 ;
25390 return 0;
25391}
25392_ACEOF
25393if ac_fn_c_try_link "$LINENO"; then :
69eb61d4
TB
25394
25395 libgfor_cv_have_float128=yes
25396
1ec601bf 25397else
69eb61d4
TB
25398
25399 libgfor_cv_have_float128=no
25400
1ec601bf
FXC
25401fi
25402rm -f core conftest.err conftest.$ac_objext \
25403 conftest$ac_exeext conftest.$ac_ext
69eb61d4 25404fi
1ec601bf
FXC
25405fi
25406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25407$as_echo "$libgfor_cv_have_float128" >&6; }
25408
25409 if test "x$libgfor_cv_have_float128" = xyes; then
25410
25411$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25412
25413
25414 ac_xsave_c_werror_flag=$ac_c_werror_flag
828012a5
RO
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25416$as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
1ec601bf
FXC
25417if test "${libgfor_cv_have_as_needed+set}" = set; then :
25418 $as_echo_n "(cached) " >&6
25419else
25420
828012a5
RO
25421 # Test for native Solaris options first.
25422 # No whitespace after -z to pass it through -Wl.
25423 libgfor_cv_as_needed_option="-zignore"
25424 libgfor_cv_no_as_needed_option="-zrecord"
1ec601bf 25425 save_LDFLAGS="$LDFLAGS"
828012a5 25426 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
1ec601bf
FXC
25427 libgfor_cv_have_as_needed=no
25428
25429ac_c_werror_flag=yes
25430 if test x$gcc_no_link = xyes; then
25431 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25432fi
25433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25434/* end confdefs.h. */
25435
25436int
25437main ()
25438{
25439
25440 ;
25441 return 0;
25442}
25443_ACEOF
25444if ac_fn_c_try_link "$LINENO"; then :
25445 libgfor_cv_have_as_needed=yes
25446else
25447 libgfor_cv_have_as_needed=no
25448fi
25449rm -f core conftest.err conftest.$ac_objext \
25450 conftest$ac_exeext conftest.$ac_ext
25451 LDFLAGS="$save_LDFLAGS"
828012a5
RO
25452 if test "x$libgfor_cv_have_as_needed" = xno; then
25453 libgfor_cv_as_needed_option="--as-needed"
25454 libgfor_cv_no_as_needed_option="--no-as-needed"
25455 save_LDFLAGS="$LDFLAGS"
25456 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25457 libgfor_cv_have_as_needed=no
25458
25459ac_c_werror_flag=yes
25460 if test x$gcc_no_link = xyes; then
25461 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25462fi
25463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25464/* end confdefs.h. */
25465
25466int
25467main ()
25468{
25469
25470 ;
25471 return 0;
25472}
25473_ACEOF
25474if ac_fn_c_try_link "$LINENO"; then :
25475 libgfor_cv_have_as_needed=yes
25476else
25477 libgfor_cv_have_as_needed=no
25478fi
25479rm -f core conftest.err conftest.$ac_objext \
25480 conftest$ac_exeext conftest.$ac_ext
25481 LDFLAGS="$save_LDFLAGS"
25482 fi
1ec601bf
FXC
25483 ac_c_werror_flag=$ac_xsave_c_werror_flag
25484
25485fi
25486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25487$as_echo "$libgfor_cv_have_as_needed" >&6; }
25488
25489 if test "x$libgfor_cv_have_as_needed" = xyes; then
828012a5 25490 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
1ec601bf
FXC
25491 else
25492 LIBQUADSPEC="-lquadmath"
25493 fi
25494 if test -f ../libquadmath/libquadmath.la; then
25495 LIBQUADLIB=../libquadmath/libquadmath.la
25496 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25497 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25498 else
25499 LIBQUADLIB="-lquadmath"
25500 LIBQUADLIB_DEP=
25501 LIBQUADINCLUDE=
25502 fi
25503 fi
87e6d9dc
TB
25504 else
25505 # for --disable-quadmath
25506 LIBQUADLIB=
25507 LIBQUADLIB_DEP=
25508 LIBQUADINCLUDE=
25509 fi
1ec601bf
FXC
25510
25511
25512
25513
25514
25515
25516 if test "x$libgfor_cv_have_float128" = xyes; then
25517 LIBGFOR_BUILD_QUAD_TRUE=
25518 LIBGFOR_BUILD_QUAD_FALSE='#'
25519else
25520 LIBGFOR_BUILD_QUAD_TRUE='#'
25521 LIBGFOR_BUILD_QUAD_FALSE=
25522fi
25523
25524
25525
944b8b35 25526# Check for GNU libc feenableexcept
5213506e
RW
25527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25528$as_echo_n "checking for feenableexcept in -lm... " >&6; }
25529if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25530 $as_echo_n "(cached) " >&6
944b8b35
FXC
25531else
25532 ac_check_lib_save_LIBS=$LIBS
25533LIBS="-lm $LIBS"
25534if test x$gcc_no_link = xyes; then
5213506e 25535 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
944b8b35 25536fi
5213506e 25537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944b8b35
FXC
25538/* end confdefs.h. */
25539
5213506e
RW
25540/* Override any GCC internal prototype to avoid an error.
25541 Use char because int might match the return type of a GCC
25542 builtin and then its argument prototype would still apply. */
944b8b35
FXC
25543#ifdef __cplusplus
25544extern "C"
25545#endif
944b8b35
FXC
25546char feenableexcept ();
25547int
25548main ()
25549{
5213506e 25550return feenableexcept ();
944b8b35
FXC
25551 ;
25552 return 0;
25553}
25554_ACEOF
5213506e 25555if ac_fn_c_try_link "$LINENO"; then :
944b8b35
FXC
25556 ac_cv_lib_m_feenableexcept=yes
25557else
5213506e 25558 ac_cv_lib_m_feenableexcept=no
944b8b35 25559fi
5213506e
RW
25560rm -f core conftest.err conftest.$ac_objext \
25561 conftest$ac_exeext conftest.$ac_ext
944b8b35
FXC
25562LIBS=$ac_check_lib_save_LIBS
25563fi
5213506e
RW
25564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25565$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25566if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
944b8b35 25567 have_feenableexcept=yes
5213506e 25568$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
3b14f664
FXC
25569
25570fi
25571
3b14f664 25572
5c30094f 25573# At least for glibc, clock_gettime is in librt. But don't
2aadeae2
JB
25574# pull that in if it still doesn't give us the function we want. This
25575# test is copied from libgomp, and modified to not link in -lrt as
25576# libgfortran calls clock_gettime via a weak reference if it's found
25577# in librt.
deb9dd74 25578if test "$ac_cv_func_clock_gettime" = no; then
b6e7a3d1
JB
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25580$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25581if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25582 $as_echo_n "(cached) " >&6
25583else
25584 ac_check_lib_save_LIBS=$LIBS
25585LIBS="-lrt $LIBS"
25586if test x$gcc_no_link = xyes; then
25587 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25588fi
25589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25590/* end confdefs.h. */
25591
25592/* Override any GCC internal prototype to avoid an error.
25593 Use char because int might match the return type of a GCC
25594 builtin and then its argument prototype would still apply. */
25595#ifdef __cplusplus
25596extern "C"
25597#endif
25598char clock_gettime ();
25599int
25600main ()
25601{
25602return clock_gettime ();
25603 ;
25604 return 0;
25605}
25606_ACEOF
25607if ac_fn_c_try_link "$LINENO"; then :
25608 ac_cv_lib_rt_clock_gettime=yes
25609else
25610 ac_cv_lib_rt_clock_gettime=no
25611fi
25612rm -f core conftest.err conftest.$ac_objext \
25613 conftest$ac_exeext conftest.$ac_ext
25614LIBS=$ac_check_lib_save_LIBS
25615fi
25616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25617$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25618if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
b6e7a3d1 25619
2aadeae2 25620$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
b6e7a3d1
JB
25621
25622fi
25623
25624fi
25625
5213506e 25626# Check for SysV fpsetmask
3b14f664 25627
5213506e
RW
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25629$as_echo_n "checking whether fpsetmask is present... " >&6; }
25630if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25631 $as_echo_n "(cached) " >&6
25632else
3b14f664 25633
5213506e
RW
25634 if test x$gcc_no_link = xyes; then
25635 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25636fi
25637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25638/* end confdefs.h. */
3b14f664 25639
5213506e
RW
25640#if HAVE_FLOATINGPOINT_H
25641# include <floatingpoint.h>
25642#endif /* HAVE_FLOATINGPOINT_H */
25643#if HAVE_IEEEFP_H
25644# include <ieeefp.h>
25645#endif /* HAVE_IEEEFP_H */
3b14f664
FXC
25646int
25647main ()
25648{
5213506e 25649fpsetmask(0);
3b14f664
FXC
25650 ;
25651 return 0;
25652}
25653_ACEOF
5213506e
RW
25654if ac_fn_c_try_link "$LINENO"; then :
25655 eval "libgfor_cv_have_fpsetmask=yes"
3b14f664 25656else
5213506e
RW
25657 eval "libgfor_cv_have_fpsetmask=no"
25658fi
25659rm -f core conftest.err conftest.$ac_objext \
25660 conftest$ac_exeext conftest.$ac_ext
3b14f664 25661
3b14f664 25662fi
5213506e
RW
25663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25664$as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25665 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
1b9fef3e 25666 have_fpsetmask=yes
5213506e
RW
25667
25668$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25669
25670 fi
25671
6faf4751 25672ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
67c4c164 25673#ifdef HAVE_IEEEFP_H
6faf4751 25674#include <ieeefp.h>
67c4c164 25675#endif
6faf4751
FXC
25676#include <math.h>
25677
7ae346c3
TB
25678"
25679if test "x$ac_cv_type_fp_except" = x""yes; then :
25680
25681cat >>confdefs.h <<_ACEOF
25682#define HAVE_FP_EXCEPT 1
25683_ACEOF
25684
25685
25686fi
6faf4751 25687ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
67c4c164 25688#ifdef HAVE_IEEEFP_H
6faf4751 25689#include <ieeefp.h>
67c4c164 25690#endif
6faf4751
FXC
25691#include <math.h>
25692
7ae346c3
TB
25693"
25694if test "x$ac_cv_type_fp_except_t" = x""yes; then :
25695
25696cat >>confdefs.h <<_ACEOF
25697#define HAVE_FP_EXCEPT_T 1
25698_ACEOF
25699
25700
82a4f54c
TB
25701fi
25702
6faf4751 25703ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
67c4c164 25704#ifdef HAVE_IEEEFP_H
6faf4751 25705#include <ieeefp.h>
67c4c164 25706#endif
6faf4751
FXC
25707#include <math.h>
25708
82a4f54c
TB
25709"
25710if test "x$ac_cv_type_fp_rnd" = x""yes; then :
25711
25712cat >>confdefs.h <<_ACEOF
25713#define HAVE_FP_RND 1
25714_ACEOF
25715
25716
25717fi
6faf4751 25718ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
67c4c164 25719#ifdef HAVE_IEEEFP_H
6faf4751 25720#include <ieeefp.h>
67c4c164 25721#endif
6faf4751
FXC
25722#include <math.h>
25723
82a4f54c
TB
25724"
25725if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
25726
25727cat >>confdefs.h <<_ACEOF
25728#define HAVE_FP_RND_T 1
25729_ACEOF
25730
25731
7ae346c3
TB
25732fi
25733
5213506e 25734
de51fc1b
RO
25735# Check whether we have fpsetsticky or fpresetsticky
25736ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
25737if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
25738 have_fpsetsticky=yes
25739$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
25740
25741fi
25742
25743ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
25744if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
25745 have_fpresetsticky=yes
25746$as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
25747
25748fi
25749
25750
5213506e
RW
25751# Check for AIX fp_trap and fp_enable
25752ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25753if test "x$ac_cv_func_fp_trap" = x""yes; then :
25754 have_fp_trap=yes
25755$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25756
3b14f664 25757fi
5213506e
RW
25758
25759ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25760if test "x$ac_cv_func_fp_enable" = x""yes; then :
3b14f664 25761 have_fp_enable=yes
5213506e 25762$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
3b14f664
FXC
25763
25764fi
25765
25766
944b8b35
FXC
25767# Runs configure.host to set up necessary host-dependent shell variables.
25768# We then display a message about it, and propagate them through the
25769# build chain.
25770. ${srcdir}/configure.host
5213506e
RW
25771{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25772$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
8b198102
FXC
25773{ $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
25774$as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
944b8b35
FXC
25775FPU_HOST_HEADER=config/${fpu_host}.h
25776
25777
8b198102
FXC
25778# Whether we will build the IEEE modules
25779 if test x${ieee_support} = xyes; then
25780 IEEE_SUPPORT_TRUE=
25781 IEEE_SUPPORT_FALSE='#'
25782else
25783 IEEE_SUPPORT_TRUE='#'
25784 IEEE_SUPPORT_FALSE=
25785fi
25786
25787
25788
9fc77574
KK
25789# Some targets require additional compiler options for IEEE compatibility.
25790IEEE_FLAGS="${ieee_flags}"
25791
25792
23e6d4a5
JB
25793
25794# Check for POSIX getpwuid_r
25795#
25796# There are two versions of getpwuid_r, the POSIX one with 5
25797# arguments, and another one with 4 arguments used by at least HP-UX
25798# 10.2.
25799if test "$ac_cv_func_getpwuid_r" = "yes"; then
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25801$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
25802if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
25803 $as_echo_n "(cached) " >&6
25804else
25805
25806 if test x$gcc_no_link = xyes; then
25807 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25808fi
25809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25810/* end confdefs.h. */
25811
25812#include <stdio.h>
25813#include <sys/types.h>
25814#include <pwd.h>
25815int
25816main ()
25817{
25818
25819 getpwuid_r(0, NULL, NULL, 0, NULL);
25820
25821 ;
25822 return 0;
25823}
25824_ACEOF
25825if ac_fn_c_try_link "$LINENO"; then :
25826 libgfor_cv_posix_getpwuid_r="yes"
25827else
25828 libgfor_cv_posix_getpwuid_r="no"
25829fi
25830rm -f core conftest.err conftest.$ac_objext \
25831 conftest$ac_exeext conftest.$ac_ext
25832fi
25833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
25834$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
25835fi
25836if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
25837
25838$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
25839
25840fi
25841
25842
7d7b8bfe
RH
25843# Check out attribute support.
25844
5213506e
RW
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
25846$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
25847if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
25848 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
25849else
25850
25851 save_CFLAGS="$CFLAGS"
25852 CFLAGS="$CFLAGS -Werror"
5213506e 25853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
25854/* end confdefs.h. */
25855void __attribute__((visibility("hidden"))) foo(void) { }
25856int
25857main ()
25858{
25859
25860 ;
25861 return 0;
25862}
25863_ACEOF
5213506e 25864if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 25865 libgfor_cv_have_attribute_visibility=yes
7d7b8bfe 25866else
5213506e 25867 libgfor_cv_have_attribute_visibility=no
7d7b8bfe 25868fi
5213506e 25869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
25870 CFLAGS="$save_CFLAGS"
25871fi
5213506e
RW
25872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
25873$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6d26724a 25874 if test $libgfor_cv_have_attribute_visibility = yes; then
7d7b8bfe 25875
5213506e 25876$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7d7b8bfe
RH
25877
25878 fi
25879
5213506e
RW
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
25881$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
25882if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
25883 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
25884else
25885
f02d008e 25886 if test x$gcc_no_link = xyes; then
5213506e 25887 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 25888fi
5213506e 25889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
25890/* end confdefs.h. */
25891
7d7b8bfe 25892void foo(void) { }
16a314a9 25893extern void bar(void) __attribute__((alias("foo")));
7d7b8bfe
RH
25894int
25895main ()
25896{
25897bar();
25898 ;
25899 return 0;
25900}
25901_ACEOF
5213506e 25902if ac_fn_c_try_link "$LINENO"; then :
6d26724a 25903 libgfor_cv_have_attribute_alias=yes
7d7b8bfe 25904else
5213506e 25905 libgfor_cv_have_attribute_alias=no
7d7b8bfe 25906fi
5213506e
RW
25907rm -f core conftest.err conftest.$ac_objext \
25908 conftest$ac_exeext conftest.$ac_ext
7d7b8bfe 25909fi
5213506e
RW
25910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
25911$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6d26724a 25912 if test $libgfor_cv_have_attribute_alias = yes; then
7d7b8bfe 25913
5213506e 25914$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7d7b8bfe
RH
25915
25916 fi
25917
5e805e44
JJ
25918# Check out sync builtins support.
25919
5213506e
RW
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
25921$as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
25922if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
25923 $as_echo_n "(cached) " >&6
5e805e44
JJ
25924else
25925
25926 if test x$gcc_no_link = xyes; then
5213506e 25927 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5e805e44 25928fi
5213506e 25929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44
JJ
25930/* end confdefs.h. */
25931int foovar = 0;
25932int
25933main ()
25934{
25935
25936if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
25937if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
25938 ;
25939 return 0;
25940}
25941_ACEOF
5213506e 25942if ac_fn_c_try_link "$LINENO"; then :
6d26724a 25943 libgfor_cv_have_sync_fetch_and_add=yes
5e805e44 25944else
5213506e 25945 libgfor_cv_have_sync_fetch_and_add=no
5e805e44 25946fi
5213506e
RW
25947rm -f core conftest.err conftest.$ac_objext \
25948 conftest$ac_exeext conftest.$ac_ext
5e805e44 25949fi
5213506e
RW
25950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
25951$as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
6d26724a 25952 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
5e805e44 25953
5213506e 25954$as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
5e805e44
JJ
25955
25956 fi
25957
6a822a74
FXC
25958# Check out #pragma weak.
25959
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
25961$as_echo_n "checking whether pragma weak works... " >&6; }
25962if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
25963 $as_echo_n "(cached) " >&6
25964else
25965
25966 gfor_save_CFLAGS="$CFLAGS"
25967 CFLAGS="$CFLAGS -Wunknown-pragmas"
25968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25969/* end confdefs.h. */
25970
25971void foo (void);
25972#pragma weak foo
25973
25974int
25975main ()
25976{
25977if (foo) foo ();
25978 ;
25979 return 0;
25980}
25981_ACEOF
25982if ac_fn_c_try_compile "$LINENO"; then :
25983 libgfor_cv_have_pragma_weak=yes
25984else
25985 libgfor_cv_have_pragma_weak=no
25986fi
25987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25988fi
25989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
25990$as_echo "$libgfor_cv_have_pragma_weak" >&6; }
25991 if test $libgfor_cv_have_pragma_weak = yes; then
25992
25993$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
25994
25995 fi
25996 case "$host" in
25997 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
25998
25999$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26000
26001 ;;
26002 esac
26003
e7854993 26004# Check out weakref support.
5e805e44 26005
e7854993
FXC
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26007$as_echo_n "checking whether the target supports weakref... " >&6; }
26008if test "${libgfor_cv_have_weakref+set}" = set; then :
5213506e 26009 $as_echo_n "(cached) " >&6
5e805e44
JJ
26010else
26011
e7854993
FXC
26012 save_CFLAGS="$CFLAGS"
26013 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26014 if test x$gcc_no_link = xyes; then
26015 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26016fi
26017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44 26018/* end confdefs.h. */
de15ea94 26019
e7854993 26020static int mytoto (int) __attribute__((__weakref__("toto")));
de15ea94 26021
5e805e44
JJ
26022int
26023main ()
26024{
e7854993 26025return (mytoto != 0);
5e805e44
JJ
26026 ;
26027 return 0;
26028}
26029_ACEOF
e7854993
FXC
26030if ac_fn_c_try_link "$LINENO"; then :
26031 libgfor_cv_have_weakref=yes
5e805e44 26032else
e7854993 26033 libgfor_cv_have_weakref=no
5e805e44 26034fi
e7854993
FXC
26035rm -f core conftest.err conftest.$ac_objext \
26036 conftest$ac_exeext conftest.$ac_ext
26037 CFLAGS="$save_CFLAGS"
5e805e44 26038fi
e7854993
FXC
26039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26040$as_echo "$libgfor_cv_have_weakref" >&6; }
26041 if test $libgfor_cv_have_weakref = yes; then
5e805e44 26042
e7854993 26043$as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
5e805e44
JJ
26044
26045 fi
26046
10c682a0
FXC
26047# Various other checks on target
26048
5213506e
RW
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26050$as_echo_n "checking whether the target can unlink an open file... " >&6; }
26051if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26052 $as_echo_n "(cached) " >&6
10c682a0
FXC
26053else
26054
5213506e 26055 if test "$cross_compiling" = yes; then :
10c682a0
FXC
26056
26057case "${target}" in
6d26724a
RW
26058 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26059 *) libgfor_cv_have_unlink_open_file=yes;;
10c682a0
FXC
26060esac
26061else
5213506e 26062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10c682a0
FXC
26063/* end confdefs.h. */
26064
26065#include <errno.h>
26066#include <fcntl.h>
26067#include <unistd.h>
26068#include <sys/stat.h>
26069
26070int main ()
26071{
26072 int fd;
26073
42dfafa9 26074 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
10c682a0
FXC
26075 if (fd <= 0)
26076 return 0;
26077 if (unlink ("testfile") == -1)
26078 return 1;
26079 write (fd, "This is a test\n", 15);
26080 close (fd);
26081
42dfafa9 26082 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
10c682a0
FXC
26083 return 0;
26084 else
26085 return 1;
26086}
26087_ACEOF
5213506e 26088if ac_fn_c_try_run "$LINENO"; then :
6d26724a 26089 libgfor_cv_have_unlink_open_file=yes
10c682a0 26090else
5213506e 26091 libgfor_cv_have_unlink_open_file=no
10c682a0 26092fi
5213506e
RW
26093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26094 conftest.$ac_objext conftest.beam conftest.$ac_ext
10c682a0 26095fi
5213506e 26096
10c682a0 26097fi
5213506e
RW
26098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26099$as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
6d26724a 26100if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
10c682a0 26101
5213506e 26102$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
10c682a0
FXC
26103
26104fi
26105
3c127520
FXC
26106# Check whether line terminator is LF or CRLF
26107
5213506e
RW
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26109$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26110if test "${libgfor_cv_have_crlf+set}" = set; then :
26111 $as_echo_n "(cached) " >&6
3c127520
FXC
26112else
26113
5213506e 26114 if test "$cross_compiling" = yes; then :
3c127520
FXC
26115
26116case "${target}" in
6d26724a
RW
26117 *mingw*) libgfor_cv_have_crlf=yes ;;
26118 *) libgfor_cv_have_crlf=no;;
3c127520
FXC
26119esac
26120else
5213506e 26121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3c127520
FXC
26122/* end confdefs.h. */
26123
26124/* This test program should exit with status 0 if system uses a CRLF as
26125 line terminator, and status 1 otherwise.
26126 Since it is used to check for mingw systems, and should return 0 in any
26127 other case, in case of a failure we will not use CRLF. */
26128#include <sys/stat.h>
26129#include <stdlib.h>
26130#include <fcntl.h>
26131#include <stdio.h>
26132
26133int main ()
26134{
26135#ifndef O_BINARY
26136 exit(1);
26137#else
26138 int fd, bytes;
26139 char buff[5];
26140
26141 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26142 if (fd < 0)
26143 exit(1);
26144 if (write (fd, "\n", 1) < 0)
26145 perror ("write");
26146
26147 close (fd);
26148
26149 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26150 exit(1);
26151 bytes = read (fd, buff, 5);
26152 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26153 exit(0);
26154 else
26155 exit(1);
26156#endif
26157}
26158_ACEOF
5213506e 26159if ac_fn_c_try_run "$LINENO"; then :
6d26724a 26160 libgfor_cv_have_crlf=yes
3c127520 26161else
5213506e 26162 libgfor_cv_have_crlf=no
3c127520 26163fi
5213506e
RW
26164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26165 conftest.$ac_objext conftest.beam conftest.$ac_ext
3c127520 26166fi
5213506e 26167
3c127520 26168fi
5213506e
RW
26169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26170$as_echo "$libgfor_cv_have_crlf" >&6; }
6d26724a 26171if test x"$libgfor_cv_have_crlf" = xyes; then
3c127520 26172
5213506e 26173$as_echo "#define HAVE_CRLF 1" >>confdefs.h
3c127520
FXC
26174
26175fi
26176
31cfd832
TK
26177# Check whether we support AVX extensions
26178
26179 ac_save_CFLAGS="$CFLAGS"
26180 CFLAGS="-O2 -mavx"
26181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26182/* end confdefs.h. */
26183
26184 void _mm256_zeroall (void)
26185 {
26186 __builtin_ia32_vzeroall ();
26187 }
26188int
26189main ()
26190{
26191
26192 ;
26193 return 0;
26194}
26195_ACEOF
26196if ac_fn_c_try_compile "$LINENO"; then :
26197
26198$as_echo "#define HAVE_AVX 1" >>confdefs.h
26199
26200fi
26201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26202 CFLAGS="$ac_save_CFLAGS"
26203
26204
26205# Check wether we support AVX2 extensions
26206
26207 ac_save_CFLAGS="$CFLAGS"
26208 CFLAGS="-O2 -mavx2"
26209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26210/* end confdefs.h. */
26211
26212 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26213 __v4di
26214 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26215 {
26216 return __builtin_ia32_andnotsi256 (__X, __Y);
26217 }
26218int
26219main ()
26220{
26221
26222 ;
26223 return 0;
26224}
26225_ACEOF
26226if ac_fn_c_try_compile "$LINENO"; then :
26227
26228$as_echo "#define HAVE_AVX2 1" >>confdefs.h
26229
26230fi
26231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26232 CFLAGS="$ac_save_CFLAGS"
26233
26234
26235# Check wether we support AVX512f extensions
26236
26237 ac_save_CFLAGS="$CFLAGS"
26238 CFLAGS="-O2 -mavx512f"
26239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240/* end confdefs.h. */
26241
26242 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26243 __m512d _mm512_add (__m512d a)
26244 {
26245 return __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26246 }
26247int
26248main ()
26249{
26250
26251 ;
26252 return 0;
26253}
26254_ACEOF
26255if ac_fn_c_try_compile "$LINENO"; then :
26256
26257$as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26258
26259fi
26260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26261 CFLAGS="$ac_save_CFLAGS"
26262
26263
6de9cd9a
DN
26264cat >confcache <<\_ACEOF
26265# This file is a shell script that caches the results of configure
26266# tests run on this system so they can be shared between configure
26267# scripts and configure runs, see configure's option --config-cache.
26268# It is not useful on other systems. If it contains results you don't
26269# want to keep, you may remove or edit it.
26270#
26271# config.status only pays attention to the cache file if you give it
26272# the --recheck option to rerun configure.
26273#
26274# `ac_cv_env_foo' variables (set or unset) will be overridden when
26275# loading this file, other *unset* `ac_cv_foo' will be assigned the
26276# following values.
26277
26278_ACEOF
26279
26280# The following way of writing the cache mishandles newlines in values,
26281# but we know of no workaround that is simple, portable, and efficient.
5213506e 26282# So, we kill variables containing newlines.
6de9cd9a
DN
26283# Ultrix sh set writes to stderr and can't be redirected directly,
26284# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
26285(
26286 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26287 eval ac_val=\$$ac_var
26288 case $ac_val in #(
26289 *${as_nl}*)
26290 case $ac_var in #(
26291 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26292$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26293 esac
26294 case $ac_var in #(
26295 _ | IFS | as_nl) ;; #(
26296 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26297 *) { eval $ac_var=; unset $ac_var;} ;;
26298 esac ;;
26299 esac
26300 done
26301
6de9cd9a 26302 (set) 2>&1 |
5213506e
RW
26303 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26304 *${as_nl}ac_space=\ *)
26305 # `set' does not quote correctly, so add quotes: double-quote
26306 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
26307 sed -n \
26308 "s/'/'\\\\''/g;
26309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 26310 ;; #(
6de9cd9a
DN
26311 *)
26312 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 26313 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 26314 ;;
5213506e
RW
26315 esac |
26316 sort
26317) |
6de9cd9a 26318 sed '
5213506e 26319 /^ac_cv_env_/b end
6de9cd9a 26320 t clear
5213506e 26321 :clear
6de9cd9a
DN
26322 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26323 t end
5213506e
RW
26324 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26325 :end' >>confcache
26326if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26327 if test -w "$cache_file"; then
26328 test "x$cache_file" != "x/dev/null" &&
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26330$as_echo "$as_me: updating cache $cache_file" >&6;}
6de9cd9a
DN
26331 cat confcache >$cache_file
26332 else
5213506e
RW
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26334$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
26335 fi
26336fi
26337rm -f confcache
26338
96b8a615
AJ
26339if test ${multilib} = yes; then
26340 multilib_arg="--enable-multilib"
6de9cd9a 26341else
96b8a615 26342 multilib_arg=
6de9cd9a 26343fi
6de9cd9a 26344
1ec601bf
FXC
26345# Write our Makefile and spec file.
26346ac_config_files="$ac_config_files Makefile libgfortran.spec"
96b8a615 26347
6de9cd9a
DN
26348cat >confcache <<\_ACEOF
26349# This file is a shell script that caches the results of configure
26350# tests run on this system so they can be shared between configure
26351# scripts and configure runs, see configure's option --config-cache.
26352# It is not useful on other systems. If it contains results you don't
26353# want to keep, you may remove or edit it.
26354#
26355# config.status only pays attention to the cache file if you give it
26356# the --recheck option to rerun configure.
26357#
26358# `ac_cv_env_foo' variables (set or unset) will be overridden when
26359# loading this file, other *unset* `ac_cv_foo' will be assigned the
26360# following values.
26361
26362_ACEOF
26363
26364# The following way of writing the cache mishandles newlines in values,
26365# but we know of no workaround that is simple, portable, and efficient.
5213506e 26366# So, we kill variables containing newlines.
6de9cd9a
DN
26367# Ultrix sh set writes to stderr and can't be redirected directly,
26368# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
26369(
26370 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26371 eval ac_val=\$$ac_var
26372 case $ac_val in #(
26373 *${as_nl}*)
26374 case $ac_var in #(
26375 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26376$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26377 esac
26378 case $ac_var in #(
26379 _ | IFS | as_nl) ;; #(
26380 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26381 *) { eval $ac_var=; unset $ac_var;} ;;
26382 esac ;;
26383 esac
26384 done
26385
6de9cd9a 26386 (set) 2>&1 |
5213506e
RW
26387 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26388 *${as_nl}ac_space=\ *)
26389 # `set' does not quote correctly, so add quotes: double-quote
26390 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
26391 sed -n \
26392 "s/'/'\\\\''/g;
26393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 26394 ;; #(
6de9cd9a
DN
26395 *)
26396 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 26397 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 26398 ;;
5213506e
RW
26399 esac |
26400 sort
26401) |
6de9cd9a 26402 sed '
5213506e 26403 /^ac_cv_env_/b end
6de9cd9a 26404 t clear
5213506e 26405 :clear
6de9cd9a
DN
26406 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26407 t end
5213506e
RW
26408 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26409 :end' >>confcache
26410if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26411 if test -w "$cache_file"; then
26412 test "x$cache_file" != "x/dev/null" &&
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26414$as_echo "$as_me: updating cache $cache_file" >&6;}
6de9cd9a
DN
26415 cat confcache >$cache_file
26416 else
5213506e
RW
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26418$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
26419 fi
26420fi
26421rm -f confcache
26422
26423test "x$prefix" = xNONE && prefix=$ac_default_prefix
26424# Let make expand exec_prefix.
26425test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26426
6de9cd9a
DN
26427DEFS=-DHAVE_CONFIG_H
26428
26429ac_libobjs=
26430ac_ltlibobjs=
26431for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26432 # 1. Remove the extension, and $U if already installed.
5213506e
RW
26433 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26434 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26435 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26436 # will be set to the directory where LIBOBJS objects are built.
26437 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26438 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6de9cd9a
DN
26439done
26440LIBOBJS=$ac_libobjs
26441
26442LTLIBOBJS=$ac_ltlibobjs
26443
26444
b808ac33 26445if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
5213506e
RW
26446 as_fn_error "conditional \"onestep\" was never defined.
26447Usually this means the macro was only invoked conditionally." "$LINENO" 5
26448fi
26449 if test -n "$EXEEXT"; then
26450 am__EXEEXT_TRUE=
26451 am__EXEEXT_FALSE='#'
26452else
26453 am__EXEEXT_TRUE='#'
26454 am__EXEEXT_FALSE=
b808ac33 26455fi
5213506e 26456
6de9cd9a 26457if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
26458 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26459Usually this means the macro was only invoked conditionally." "$LINENO" 5
6de9cd9a 26460fi
679c0f9a 26461if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
26462 as_fn_error "conditional \"AMDEP\" was never defined.
26463Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a
TT
26464fi
26465if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
26466 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26467Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a 26468fi
21be0a5a
JB
26469if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26470 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26471Usually this means the macro was only invoked conditionally." "$LINENO" 5
26472fi
c0e7e2bf 26473if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
5213506e
RW
26474 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26475Usually this means the macro was only invoked conditionally." "$LINENO" 5
c0e7e2bf 26476fi
49ea7a0e
RO
26477if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26478 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26479Usually this means the macro was only invoked conditionally." "$LINENO" 5
26480fi
26481if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26482 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26483Usually this means the macro was only invoked conditionally." "$LINENO" 5
26484fi
ee95f928
BS
26485if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
26486 as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined.
26487Usually this means the macro was only invoked conditionally." "$LINENO" 5
26488fi
1ec601bf
FXC
26489if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26490 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26491Usually this means the macro was only invoked conditionally." "$LINENO" 5
26492fi
8b198102
FXC
26493if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26494 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26495Usually this means the macro was only invoked conditionally." "$LINENO" 5
26496fi
6de9cd9a
DN
26497
26498: ${CONFIG_STATUS=./config.status}
5213506e 26499ac_write_fail=0
6de9cd9a
DN
26500ac_clean_files_save=$ac_clean_files
26501ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
26502{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26503$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26504as_write_fail=0
26505cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6de9cd9a
DN
26506#! $SHELL
26507# Generated by $as_me.
26508# Run this file to recreate the current configuration.
26509# Compiler output produced by configure, useful for debugging
26510# configure, is in config.log if it exists.
26511
26512debug=false
26513ac_cs_recheck=false
26514ac_cs_silent=false
6de9cd9a 26515
5213506e
RW
26516SHELL=\${CONFIG_SHELL-$SHELL}
26517export SHELL
26518_ASEOF
26519cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26520## -------------------- ##
26521## M4sh Initialization. ##
26522## -------------------- ##
26523
26524# Be more Bourne compatible
26525DUALCASE=1; export DUALCASE # for MKS sh
26526if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6de9cd9a
DN
26527 emulate sh
26528 NULLCMD=:
5213506e 26529 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6de9cd9a
DN
26530 # is contrary to our usage. Disable this feature.
26531 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
26532 setopt NO_GLOB_SUBST
26533else
26534 case `(set -o) 2>/dev/null` in #(
26535 *posix*) :
26536 set -o posix ;; #(
26537 *) :
26538 ;;
26539esac
6de9cd9a 26540fi
6de9cd9a 26541
5213506e
RW
26542
26543as_nl='
26544'
26545export as_nl
26546# Printing a long string crashes Solaris 7 /usr/bin/printf.
26547as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26548as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26549as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26550# Prefer a ksh shell builtin over an external printf program on Solaris,
26551# but without wasting forks for bash or zsh.
26552if test -z "$BASH_VERSION$ZSH_VERSION" \
26553 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26554 as_echo='print -r --'
26555 as_echo_n='print -rn --'
26556elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26557 as_echo='printf %s\n'
26558 as_echo_n='printf %s'
26559else
26560 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26561 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26562 as_echo_n='/usr/ucb/echo -n'
26563 else
26564 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26565 as_echo_n_body='eval
26566 arg=$1;
26567 case $arg in #(
26568 *"$as_nl"*)
26569 expr "X$arg" : "X\\(.*\\)$as_nl";
26570 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26571 esac;
26572 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26573 '
26574 export as_echo_n_body
26575 as_echo_n='sh -c $as_echo_n_body as_echo'
26576 fi
26577 export as_echo_body
26578 as_echo='sh -c $as_echo_body as_echo'
26579fi
26580
26581# The user is always right.
26582if test "${PATH_SEPARATOR+set}" != set; then
26583 PATH_SEPARATOR=:
26584 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26585 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26586 PATH_SEPARATOR=';'
26587 }
6de9cd9a
DN
26588fi
26589
26590
5213506e
RW
26591# IFS
26592# We need space, tab and new line, in precisely that order. Quoting is
26593# there to prevent editors from complaining about space-tab.
26594# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26595# splitting by setting IFS to empty value.)
26596IFS=" "" $as_nl"
26597
26598# Find who we are. Look in the path if we contain no directory separator.
26599case $0 in #((
26600 *[\\/]* ) as_myself=$0 ;;
26601 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26602for as_dir in $PATH
26603do
26604 IFS=$as_save_IFS
26605 test -z "$as_dir" && as_dir=.
26606 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26607 done
26608IFS=$as_save_IFS
26609
26610 ;;
26611esac
26612# We did not find ourselves, most probably we were run as `sh COMMAND'
26613# in which case we are not to be found in the path.
26614if test "x$as_myself" = x; then
26615 as_myself=$0
26616fi
26617if test ! -f "$as_myself"; then
26618 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26619 exit 1
26620fi
26621
26622# Unset variables that we do not need and which cause bugs (e.g. in
26623# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26624# suppresses any "Segmentation fault" message there. '((' could
26625# trigger a bug in pdksh 5.2.14.
26626for as_var in BASH_ENV ENV MAIL MAILPATH
26627do eval test x\${$as_var+set} = xset \
26628 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26629done
6de9cd9a
DN
26630PS1='$ '
26631PS2='> '
26632PS4='+ '
26633
26634# NLS nuisances.
5213506e
RW
26635LC_ALL=C
26636export LC_ALL
26637LANGUAGE=C
26638export LANGUAGE
26639
26640# CDPATH.
26641(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26642
26643
26644# as_fn_error ERROR [LINENO LOG_FD]
26645# ---------------------------------
26646# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26647# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26648# script with status $?, using 1 if that was 0.
26649as_fn_error ()
26650{
26651 as_status=$?; test $as_status -eq 0 && as_status=1
26652 if test "$3"; then
26653 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26654 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6de9cd9a 26655 fi
5213506e
RW
26656 $as_echo "$as_me: error: $1" >&2
26657 as_fn_exit $as_status
26658} # as_fn_error
26659
26660
26661# as_fn_set_status STATUS
26662# -----------------------
26663# Set $? to STATUS, without forking.
26664as_fn_set_status ()
26665{
26666 return $1
26667} # as_fn_set_status
26668
26669# as_fn_exit STATUS
26670# -----------------
26671# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26672as_fn_exit ()
26673{
26674 set +e
26675 as_fn_set_status $1
26676 exit $1
26677} # as_fn_exit
26678
26679# as_fn_unset VAR
26680# ---------------
26681# Portably unset VAR.
26682as_fn_unset ()
26683{
26684 { eval $1=; unset $1;}
26685}
26686as_unset=as_fn_unset
26687# as_fn_append VAR VALUE
26688# ----------------------
26689# Append the text in VALUE to the end of the definition contained in VAR. Take
26690# advantage of any shell optimizations that allow amortized linear growth over
26691# repeated appends, instead of the typical quadratic growth present in naive
26692# implementations.
26693if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26694 eval 'as_fn_append ()
26695 {
26696 eval $1+=\$2
26697 }'
26698else
26699 as_fn_append ()
26700 {
26701 eval $1=\$$1\$2
26702 }
26703fi # as_fn_append
26704
26705# as_fn_arith ARG...
26706# ------------------
26707# Perform arithmetic evaluation on the ARGs, and store the result in the
26708# global $as_val. Take advantage of shells that can avoid forks. The arguments
26709# must be portable across $(()) and expr.
26710if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26711 eval 'as_fn_arith ()
26712 {
26713 as_val=$(( $* ))
26714 }'
26715else
26716 as_fn_arith ()
26717 {
26718 as_val=`expr "$@" || test $? -eq 1`
26719 }
26720fi # as_fn_arith
6de9cd9a 26721
5213506e
RW
26722
26723if expr a : '\(a\)' >/dev/null 2>&1 &&
26724 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
26725 as_expr=expr
26726else
26727 as_expr=false
26728fi
26729
5213506e 26730if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
26731 as_basename=basename
26732else
26733 as_basename=false
26734fi
26735
5213506e
RW
26736if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26737 as_dirname=dirname
26738else
26739 as_dirname=false
26740fi
6de9cd9a 26741
5213506e 26742as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
26743$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26744 X"$0" : 'X\(//\)$' \| \
5213506e
RW
26745 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26746$as_echo X/"$0" |
26747 sed '/^.*\/\([^/][^/]*\)\/*$/{
26748 s//\1/
26749 q
26750 }
26751 /^X\/\(\/\/\)$/{
26752 s//\1/
26753 q
26754 }
26755 /^X\/\(\/\).*/{
26756 s//\1/
26757 q
26758 }
26759 s/.*/./; q'`
38d24731 26760
38d24731
RW
26761# Avoid depending upon Character Ranges.
26762as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26763as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26764as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26765as_cr_digits='0123456789'
26766as_cr_alnum=$as_cr_Letters$as_cr_digits
26767
5213506e
RW
26768ECHO_C= ECHO_N= ECHO_T=
26769case `echo -n x` in #(((((
26770-n*)
26771 case `echo 'xy\c'` in
26772 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26773 xy) ECHO_C='\c';;
26774 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26775 ECHO_T=' ';;
26776 esac;;
26777*)
26778 ECHO_N='-n';;
6de9cd9a
DN
26779esac
26780
5213506e
RW
26781rm -f conf$$ conf$$.exe conf$$.file
26782if test -d conf$$.dir; then
26783 rm -f conf$$.dir/conf$$.file
6de9cd9a 26784else
5213506e
RW
26785 rm -f conf$$.dir
26786 mkdir conf$$.dir 2>/dev/null
6de9cd9a 26787fi
5213506e
RW
26788if (echo >conf$$.file) 2>/dev/null; then
26789 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 26790 as_ln_s='ln -s'
5213506e
RW
26791 # ... but there are two gotchas:
26792 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26793 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26794 # In both cases, we have to default to `cp -p'.
26795 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26796 as_ln_s='cp -p'
26797 elif ln conf$$.file conf$$ 2>/dev/null; then
26798 as_ln_s=ln
26799 else
26800 as_ln_s='cp -p'
38d24731 26801 fi
6de9cd9a
DN
26802else
26803 as_ln_s='cp -p'
26804fi
5213506e
RW
26805rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26806rmdir conf$$.dir 2>/dev/null
26807
26808
26809# as_fn_mkdir_p
26810# -------------
26811# Create "$as_dir" as a directory, including parents if necessary.
26812as_fn_mkdir_p ()
26813{
26814
26815 case $as_dir in #(
26816 -*) as_dir=./$as_dir;;
26817 esac
26818 test -d "$as_dir" || eval $as_mkdir_p || {
26819 as_dirs=
26820 while :; do
26821 case $as_dir in #(
26822 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26823 *) as_qdir=$as_dir;;
26824 esac
26825 as_dirs="'$as_qdir' $as_dirs"
26826 as_dir=`$as_dirname -- "$as_dir" ||
26827$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26828 X"$as_dir" : 'X\(//\)[^/]' \| \
26829 X"$as_dir" : 'X\(//\)$' \| \
26830 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26831$as_echo X"$as_dir" |
26832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26833 s//\1/
26834 q
26835 }
26836 /^X\(\/\/\)[^/].*/{
26837 s//\1/
26838 q
26839 }
26840 /^X\(\/\/\)$/{
26841 s//\1/
26842 q
26843 }
26844 /^X\(\/\).*/{
26845 s//\1/
26846 q
26847 }
26848 s/.*/./; q'`
26849 test -d "$as_dir" && break
26850 done
26851 test -z "$as_dirs" || eval "mkdir $as_dirs"
26852 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26853
6de9cd9a 26854
5213506e 26855} # as_fn_mkdir_p
6de9cd9a 26856if mkdir -p . 2>/dev/null; then
5213506e 26857 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
26858else
26859 test -d ./-p && rmdir ./-p
26860 as_mkdir_p=false
26861fi
26862
5213506e
RW
26863if test -x / >/dev/null 2>&1; then
26864 as_test_x='test -x'
26865else
26866 if ls -dL / >/dev/null 2>&1; then
26867 as_ls_L_option=L
26868 else
26869 as_ls_L_option=
26870 fi
26871 as_test_x='
26872 eval sh -c '\''
26873 if test -d "$1"; then
26874 test -d "$1/.";
26875 else
26876 case $1 in #(
26877 -*)set "./$1";;
26878 esac;
26879 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26880 ???[sx]*):;;*)false;;esac;fi
26881 '\'' sh
26882 '
26883fi
26884as_executable_p=$as_test_x
6de9cd9a
DN
26885
26886# Sed expression to map a string onto a valid CPP name.
26887as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26888
26889# Sed expression to map a string onto a valid variable name.
26890as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26891
26892
6de9cd9a 26893exec 6>&1
5213506e
RW
26894## ----------------------------------- ##
26895## Main body of $CONFIG_STATUS script. ##
26896## ----------------------------------- ##
26897_ASEOF
26898test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26899
26900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26901# Save the log message, to keep $0 and so on meaningful, and to
6de9cd9a 26902# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
26903# values after options handling.
26904ac_log="
0dce3ca1 26905This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
5213506e 26906generated by GNU Autoconf 2.64. Invocation command line was
6de9cd9a
DN
26907
26908 CONFIG_FILES = $CONFIG_FILES
26909 CONFIG_HEADERS = $CONFIG_HEADERS
26910 CONFIG_LINKS = $CONFIG_LINKS
26911 CONFIG_COMMANDS = $CONFIG_COMMANDS
26912 $ $0 $@
26913
5213506e
RW
26914on `(hostname || uname -n) 2>/dev/null | sed 1q`
26915"
26916
6de9cd9a
DN
26917_ACEOF
26918
5213506e
RW
26919case $ac_config_files in *"
26920"*) set x $ac_config_files; shift; ac_config_files=$*;;
26921esac
78511f8b 26922
5213506e
RW
26923case $ac_config_headers in *"
26924"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26925esac
38d24731 26926
38d24731 26927
5213506e
RW
26928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26929# Files that config.status was made for.
26930config_files="$ac_config_files"
26931config_headers="$ac_config_headers"
26932config_commands="$ac_config_commands"
6de9cd9a 26933
5213506e 26934_ACEOF
38d24731 26935
5213506e 26936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a 26937ac_cs_usage="\
5213506e
RW
26938\`$as_me' instantiates files and other configuration actions
26939from templates according to the current configuration. Unless the files
26940and actions are specified as TAGs, all are instantiated by default.
6de9cd9a 26941
5213506e 26942Usage: $0 [OPTION]... [TAG]...
6de9cd9a
DN
26943
26944 -h, --help print this help, then exit
5213506e
RW
26945 -V, --version print version number and configuration settings, then exit
26946 -q, --quiet, --silent
26947 do not print progress messages
6de9cd9a
DN
26948 -d, --debug don't remove temporary files
26949 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
26950 --file=FILE[:TEMPLATE]
26951 instantiate the configuration file FILE
26952 --header=FILE[:TEMPLATE]
26953 instantiate the configuration header FILE
6de9cd9a
DN
26954
26955Configuration files:
26956$config_files
26957
26958Configuration headers:
26959$config_headers
26960
26961Configuration commands:
26962$config_commands
26963
5213506e
RW
26964Report bugs to the package provider.
26965GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
26966General help using GNU software: <http://www.gnu.org/gethelp/>."
38d24731 26967
5213506e
RW
26968_ACEOF
26969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 26970ac_cs_version="\\
0dce3ca1 26971GNU Fortran Runtime Library config.status 0.3
5213506e
RW
26972configured by $0, generated by GNU Autoconf 2.64,
26973 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6de9cd9a 26974
5213506e 26975Copyright (C) 2009 Free Software Foundation, Inc.
6de9cd9a
DN
26976This config.status script is free software; the Free Software Foundation
26977gives unlimited permission to copy, distribute and modify it."
5213506e
RW
26978
26979ac_pwd='$ac_pwd'
26980srcdir='$srcdir'
26981INSTALL='$INSTALL'
26982MKDIR_P='$MKDIR_P'
26983AWK='$AWK'
26984test -n "\$AWK" || AWK=awk
6de9cd9a
DN
26985_ACEOF
26986
5213506e
RW
26987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26988# The default lists apply if the user does not specify any file.
6de9cd9a
DN
26989ac_need_defaults=:
26990while test $# != 0
26991do
26992 case $1 in
26993 --*=*)
5213506e
RW
26994 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26995 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6de9cd9a
DN
26996 ac_shift=:
26997 ;;
5213506e 26998 *)
6de9cd9a
DN
26999 ac_option=$1
27000 ac_optarg=$2
27001 ac_shift=shift
27002 ;;
6de9cd9a
DN
27003 esac
27004
27005 case $ac_option in
27006 # Handling of the options.
6de9cd9a
DN
27007 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27008 ac_cs_recheck=: ;;
5213506e
RW
27009 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27010 $as_echo "$ac_cs_version"; exit ;;
27011 --debug | --debu | --deb | --de | --d | -d )
6de9cd9a
DN
27012 debug=: ;;
27013 --file | --fil | --fi | --f )
27014 $ac_shift
5213506e
RW
27015 case $ac_optarg in
27016 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27017 esac
27018 as_fn_append CONFIG_FILES " '$ac_optarg'"
6de9cd9a
DN
27019 ac_need_defaults=false;;
27020 --header | --heade | --head | --hea )
27021 $ac_shift
5213506e
RW
27022 case $ac_optarg in
27023 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27024 esac
27025 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6de9cd9a 27026 ac_need_defaults=false;;
5213506e
RW
27027 --he | --h)
27028 # Conflict between --help and --header
27029 as_fn_error "ambiguous option: \`$1'
27030Try \`$0 --help' for more information.";;
27031 --help | --hel | -h )
27032 $as_echo "$ac_cs_usage"; exit ;;
6de9cd9a
DN
27033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27034 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27035 ac_cs_silent=: ;;
27036
27037 # This is an error.
5213506e
RW
27038 -*) as_fn_error "unrecognized option: \`$1'
27039Try \`$0 --help' for more information." ;;
6de9cd9a 27040
5213506e
RW
27041 *) as_fn_append ac_config_targets " $1"
27042 ac_need_defaults=false ;;
6de9cd9a
DN
27043
27044 esac
27045 shift
27046done
27047
27048ac_configure_extra_args=
27049
27050if $ac_cs_silent; then
27051 exec 6>/dev/null
27052 ac_configure_extra_args="$ac_configure_extra_args --silent"
27053fi
27054
27055_ACEOF
5213506e 27056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 27057if \$ac_cs_recheck; then
5213506e
RW
27058 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27059 shift
27060 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27061 CONFIG_SHELL='$SHELL'
27062 export CONFIG_SHELL
27063 exec "\$@"
6de9cd9a
DN
27064fi
27065
1cf3d07d 27066_ACEOF
5213506e
RW
27067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27068exec 5>>config.log
27069{
27070 echo
27071 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27072## Running $as_me. ##
27073_ASBOX
27074 $as_echo "$ac_log"
27075} >&5
1cf3d07d 27076
5213506e
RW
27077_ACEOF
27078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 27079#
5213506e 27080# INIT-COMMANDS
1cf3d07d
SE
27081#
27082
1cf3d07d
SE
27083srcdir="$srcdir"
27084host="$host"
27085target="$target"
27086with_multisubdir="$with_multisubdir"
27087with_multisrctop="$with_multisrctop"
27088with_target_subdir="$with_target_subdir"
27089ac_configure_args="${multilib_arg} ${ac_configure_args}"
27090multi_basedir="$multi_basedir"
27091CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27092CC="$CC"
2017c370
JB
27093CXX="$CXX"
27094GFORTRAN="$GFORTRAN"
1cf3d07d
SE
27095AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27096
27097
27098# The HP-UX ksh and POSIX shell print the target directory to stdout
27099# if CDPATH is set.
27100(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27101
27102sed_quote_subst='$sed_quote_subst'
27103double_quote_subst='$double_quote_subst'
27104delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
27105macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27106macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27107enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27108enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27109pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27110enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27111SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27112ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27113host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27114host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27115host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27116build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27117build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27118build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27119SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27120Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27121GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27122EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27123FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27124LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27125NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27126LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27127max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27128ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27129exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27130lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27131lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27132lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27133reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27134reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27135OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27136deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27137file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27138AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27139AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27140STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27141RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27142old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27143old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27144old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27145lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27146CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27147CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27148compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27149GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27150lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27151lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27152lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27153lt_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"`'
27154objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27155MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27156lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27157lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27158lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27159lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27160lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27161need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27162DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27163NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27164LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27165OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27166OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27167libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27168shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27169extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27170archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27171enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27172export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27173whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27174compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27175old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27176old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27177archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27178archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27179module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27180module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27181with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27182allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27183no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27184hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27185hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27186hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27187hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27188hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27189hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27190hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27191hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27192inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27193link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27194fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27195always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27196export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27197exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27198include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27199prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27200file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27201variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27202need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27203need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27204version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27205runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27206shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27207shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27208libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27209library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27210soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27211install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27212postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27213postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27214finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27215finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27216hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27217sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27218sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27219hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27220enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27221enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27222enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27223old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27224striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27225compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27226predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27227postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27228predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27229postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27230compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27231LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27232reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27233reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27234old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27235compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27236GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27237lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27238lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27239lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27240lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27241lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27242archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27243enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27244export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27245whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27246compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27247old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27248old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27249archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27250archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27251module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27252module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27253with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27254allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27255no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27256hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27257hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27258hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27259hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27260hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27261hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27262hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27263hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27264inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27265link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27266fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27267always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27268export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27269exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27270include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27271prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27272file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27273hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27274compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27275predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27276postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27277predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27278postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27279compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
27280
27281LTCC='$LTCC'
27282LTCFLAGS='$LTCFLAGS'
27283compiler='$compiler_DEFAULT'
27284
43e02a8a
RW
27285# A function that is used when there is no print builtin or printf.
27286func_fallback_echo ()
27287{
27288 eval 'cat <<_LTECHO_EOF
27289\$1
27290_LTECHO_EOF'
27291}
27292
1cf3d07d 27293# Quote evaled strings.
43e02a8a
RW
27294for var in SHELL \
27295ECHO \
27296SED \
1cf3d07d
SE
27297GREP \
27298EGREP \
27299FGREP \
27300LD \
27301NM \
27302LN_S \
27303lt_SP2NL \
27304lt_NL2SP \
27305reload_flag \
d58dead8 27306OBJDUMP \
1cf3d07d
SE
27307deplibs_check_method \
27308file_magic_cmd \
27309AR \
27310AR_FLAGS \
27311STRIP \
27312RANLIB \
27313CC \
27314CFLAGS \
27315compiler \
27316lt_cv_sys_global_symbol_pipe \
27317lt_cv_sys_global_symbol_to_cdecl \
27318lt_cv_sys_global_symbol_to_c_name_address \
d58dead8 27319lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
27320lt_prog_compiler_no_builtin_flag \
27321lt_prog_compiler_wl \
27322lt_prog_compiler_pic \
27323lt_prog_compiler_static \
27324lt_cv_prog_compiler_c_o \
27325need_locks \
d58dead8
PG
27326DSYMUTIL \
27327NMEDIT \
27328LIPO \
27329OTOOL \
27330OTOOL64 \
1cf3d07d
SE
27331shrext_cmds \
27332export_dynamic_flag_spec \
27333whole_archive_flag_spec \
27334compiler_needs_object \
27335with_gnu_ld \
27336allow_undefined_flag \
27337no_undefined_flag \
27338hardcode_libdir_flag_spec \
27339hardcode_libdir_flag_spec_ld \
27340hardcode_libdir_separator \
27341fix_srcfile_path \
27342exclude_expsyms \
27343include_expsyms \
27344file_list_spec \
27345variables_saved_for_relink \
27346libname_spec \
27347library_names_spec \
27348soname_spec \
43e02a8a 27349install_override_mode \
1cf3d07d
SE
27350finish_eval \
27351old_striplib \
27352striplib \
d58dead8 27353compiler_lib_search_dirs \
1cf3d07d
SE
27354predep_objects \
27355postdep_objects \
27356predeps \
27357postdeps \
27358compiler_lib_search_path \
27359LD_FC \
43e02a8a 27360reload_flag_FC \
1cf3d07d
SE
27361compiler_FC \
27362lt_prog_compiler_no_builtin_flag_FC \
27363lt_prog_compiler_wl_FC \
27364lt_prog_compiler_pic_FC \
27365lt_prog_compiler_static_FC \
27366lt_cv_prog_compiler_c_o_FC \
27367export_dynamic_flag_spec_FC \
27368whole_archive_flag_spec_FC \
27369compiler_needs_object_FC \
27370with_gnu_ld_FC \
27371allow_undefined_flag_FC \
27372no_undefined_flag_FC \
27373hardcode_libdir_flag_spec_FC \
27374hardcode_libdir_flag_spec_ld_FC \
27375hardcode_libdir_separator_FC \
27376fix_srcfile_path_FC \
27377exclude_expsyms_FC \
27378include_expsyms_FC \
27379file_list_spec_FC \
d58dead8 27380compiler_lib_search_dirs_FC \
1cf3d07d
SE
27381predep_objects_FC \
27382postdep_objects_FC \
27383predeps_FC \
27384postdeps_FC \
27385compiler_lib_search_path_FC; do
43e02a8a 27386 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 27387 *[\\\\\\\`\\"\\\$]*)
43e02a8a 27388 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
27389 ;;
27390 *)
27391 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27392 ;;
27393 esac
27394done
27395
27396# Double-quote double-evaled strings.
27397for var in reload_cmds \
27398old_postinstall_cmds \
27399old_postuninstall_cmds \
27400old_archive_cmds \
27401extract_expsyms_cmds \
27402old_archive_from_new_cmds \
27403old_archive_from_expsyms_cmds \
27404archive_cmds \
27405archive_expsym_cmds \
27406module_cmds \
27407module_expsym_cmds \
27408export_symbols_cmds \
27409prelink_cmds \
27410postinstall_cmds \
27411postuninstall_cmds \
27412finish_cmds \
27413sys_lib_search_path_spec \
27414sys_lib_dlsearch_path_spec \
43e02a8a 27415reload_cmds_FC \
1cf3d07d
SE
27416old_archive_cmds_FC \
27417old_archive_from_new_cmds_FC \
27418old_archive_from_expsyms_cmds_FC \
27419archive_cmds_FC \
27420archive_expsym_cmds_FC \
27421module_cmds_FC \
27422module_expsym_cmds_FC \
27423export_symbols_cmds_FC \
27424prelink_cmds_FC; do
43e02a8a 27425 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 27426 *[\\\\\\\`\\"\\\$]*)
43e02a8a 27427 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
27428 ;;
27429 *)
27430 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27431 ;;
27432 esac
27433done
27434
1cf3d07d
SE
27435ac_aux_dir='$ac_aux_dir'
27436xsi_shell='$xsi_shell'
27437lt_shell_append='$lt_shell_append'
27438
27439# See if we are running on zsh, and set the options which allow our
27440# commands through without removal of \ escapes INIT.
27441if test -n "\${ZSH_VERSION+set}" ; then
27442 setopt NO_GLOB_SUBST
27443fi
27444
27445
27446 PACKAGE='$PACKAGE'
27447 VERSION='$VERSION'
27448 TIMESTAMP='$TIMESTAMP'
27449 RM='$RM'
27450 ofile='$ofile'
27451
27452
6de9cd9a 27453
6de9cd9a 27454
78511f8b 27455
6de9cd9a 27456
c13e029b
PB
27457GCC="$GCC"
27458CC="$CC"
27459acx_cv_header_stdint="$acx_cv_header_stdint"
27460acx_cv_type_int8_t="$acx_cv_type_int8_t"
27461acx_cv_type_int16_t="$acx_cv_type_int16_t"
27462acx_cv_type_int32_t="$acx_cv_type_int32_t"
27463acx_cv_type_int64_t="$acx_cv_type_int64_t"
27464acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27465ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27466ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27467ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27468ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27469ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
4c4b3eb0
PB
27470ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27471ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
c13e029b 27472ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
4c4b3eb0
PB
27473
27474
6de9cd9a
DN
27475_ACEOF
27476
5213506e 27477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f489fba1 27478
5213506e 27479# Handling of arguments.
6de9cd9a
DN
27480for ac_config_target in $ac_config_targets
27481do
5213506e
RW
27482 case $ac_config_target in
27483 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27484 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27485 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27486 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27487 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27488 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1ec601bf 27489 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
5213506e
RW
27490
27491 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6de9cd9a
DN
27492 esac
27493done
27494
5213506e 27495
6de9cd9a
DN
27496# If the user did not use the arguments to specify the items to instantiate,
27497# then the envvar interface is used. Set only those that are not.
27498# We use the long form for the default assignment because of an extremely
27499# bizarre bug on SunOS 4.1.3.
27500if $ac_need_defaults; then
27501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27504fi
27505
27506# Have a temporary directory for convenience. Make it in the build tree
5213506e 27507# simply because there is no reason against having it here, and in addition,
6de9cd9a 27508# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
27509# Hook for its removal unless debugging.
27510# Note that there is a small window in which the directory will not be cleaned:
27511# after its creation but before its name has been assigned to `$tmp'.
6de9cd9a
DN
27512$debug ||
27513{
5213506e
RW
27514 tmp=
27515 trap 'exit_status=$?
27516 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27517' 0
27518 trap 'as_fn_exit 1' 1 2 13 15
6de9cd9a 27519}
6de9cd9a
DN
27520# Create a (secure) tmp directory for tmp files.
27521
27522{
5213506e 27523 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6de9cd9a
DN
27524 test -n "$tmp" && test -d "$tmp"
27525} ||
27526{
5213506e
RW
27527 tmp=./conf$$-$RANDOM
27528 (umask 077 && mkdir "$tmp")
27529} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27530
27531# Set up the scripts for CONFIG_FILES section.
27532# No need to generate them if there are no CONFIG_FILES.
27533# This happens for instance with `./config.status config.h'.
27534if test -n "$CONFIG_FILES"; then
27535
27536
27537ac_cr=`echo X | tr X '\015'`
27538# On cygwin, bash can eat \r inside `` if the user requested igncr.
27539# But we know of no other shell where ac_cr would be empty at this
27540# point, so we can use a bashism as a fallback.
27541if test "x$ac_cr" = x; then
27542 eval ac_cr=\$\'\\r\'
27543fi
27544ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27545if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27546 ac_cs_awk_cr='\r'
27547else
27548 ac_cs_awk_cr=$ac_cr
27549fi
27550
27551echo 'BEGIN {' >"$tmp/subs1.awk" &&
27552_ACEOF
27553
27554
6de9cd9a 27555{
5213506e
RW
27556 echo "cat >conf$$subs.awk <<_ACEOF" &&
27557 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27558 echo "_ACEOF"
27559} >conf$$subs.sh ||
27560 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27561ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27562ac_delim='%!_!# '
27563for ac_last_try in false false false false false :; do
27564 . ./conf$$subs.sh ||
27565 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27566
27567 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27568 if test $ac_delim_n = $ac_delim_num; then
27569 break
27570 elif $ac_last_try; then
27571 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27572 else
27573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27574 fi
27575done
27576rm -f conf$$subs.sh
27577
27578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27579cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27580_ACEOF
27581sed -n '
27582h
27583s/^/S["/; s/!.*/"]=/
27584p
27585g
27586s/^[^!]*!//
27587:repl
27588t repl
27589s/'"$ac_delim"'$//
27590t delim
27591:nl
27592h
27593s/\(.\{148\}\).*/\1/
27594t more1
27595s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27596p
27597n
27598b repl
27599:more1
27600s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27601p
27602g
27603s/.\{148\}//
27604t nl
27605:delim
27606h
27607s/\(.\{148\}\).*/\1/
27608t more2
27609s/["\\]/\\&/g; s/^/"/; s/$/"/
27610p
27611b
27612:more2
27613s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27614p
27615g
27616s/.\{148\}//
27617t delim
27618' <conf$$subs.awk | sed '
27619/^[^""]/{
27620 N
27621 s/\n//
27622}
27623' >>$CONFIG_STATUS || ac_write_fail=1
27624rm -f conf$$subs.awk
27625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27626_ACAWK
27627cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27628 for (key in S) S_is_set[key] = 1
27629 FS = "\a"
27630
27631}
27632{
27633 line = $ 0
27634 nfields = split(line, field, "@")
27635 substed = 0
27636 len = length(field[1])
27637 for (i = 2; i < nfields; i++) {
27638 key = field[i]
27639 keylen = length(key)
27640 if (S_is_set[key]) {
27641 value = S[key]
27642 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27643 len += length(value) + length(field[++i])
27644 substed = 1
27645 } else
27646 len += 1 + keylen
27647 }
27648
27649 print line
6de9cd9a
DN
27650}
27651
5213506e
RW
27652_ACAWK
27653_ACEOF
27654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27655if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27656 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27657else
27658 cat
27659fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27660 || as_fn_error "could not setup config files machinery" "$LINENO" 5
38d24731
RW
27661_ACEOF
27662
5213506e
RW
27663# VPATH may cause trouble with some makes, so we remove $(srcdir),
27664# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27665# trailing colons and then remove the whole line if VPATH becomes empty
27666# (actually we leave an empty line to preserve line numbers).
27667if test "x$srcdir" = x.; then
27668 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27669s/:*\$(srcdir):*/:/
27670s/:*\${srcdir}:*/:/
27671s/:*@srcdir@:*/:/
27672s/^\([^=]*=[ ]*\):*/\1/
27673s/:*$//
27674s/^[^=]*=[ ]*$//
27675}'
27676fi
38d24731 27677
5213506e
RW
27678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27679fi # test -n "$CONFIG_FILES"
6de9cd9a 27680
5213506e
RW
27681# Set up the scripts for CONFIG_HEADERS section.
27682# No need to generate them if there are no CONFIG_HEADERS.
27683# This happens for instance with `./config.status Makefile'.
27684if test -n "$CONFIG_HEADERS"; then
27685cat >"$tmp/defines.awk" <<\_ACAWK ||
27686BEGIN {
27687_ACEOF
27688
27689# Transform confdefs.h into an awk script `defines.awk', embedded as
27690# here-document in config.status, that substitutes the proper values into
27691# config.h.in to produce config.h.
27692
27693# Create a delimiter string that does not exist in confdefs.h, to ease
27694# handling of long lines.
27695ac_delim='%!_!# '
27696for ac_last_try in false false :; do
27697 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27698 if test -z "$ac_t"; then
27699 break
27700 elif $ac_last_try; then
27701 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27702 else
27703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
f489fba1 27704 fi
5213506e 27705done
c0e7e2bf 27706
5213506e
RW
27707# For the awk script, D is an array of macro values keyed by name,
27708# likewise P contains macro parameters if any. Preserve backslash
27709# newline sequences.
27710
27711ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27712sed -n '
27713s/.\{148\}/&'"$ac_delim"'/g
27714t rset
27715:rset
27716s/^[ ]*#[ ]*define[ ][ ]*/ /
27717t def
27718d
27719:def
27720s/\\$//
27721t bsnl
27722s/["\\]/\\&/g
27723s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27724D["\1"]=" \3"/p
27725s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27726d
27727:bsnl
27728s/["\\]/\\&/g
27729s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27730D["\1"]=" \3\\\\\\n"\\/p
27731t cont
27732s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27733t cont
27734d
27735:cont
27736n
27737s/.\{148\}/&'"$ac_delim"'/g
27738t clear
27739:clear
27740s/\\$//
27741t bsnlc
27742s/["\\]/\\&/g; s/^/"/; s/$/"/p
27743d
27744:bsnlc
27745s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27746b cont
27747' <confdefs.h | sed '
27748s/'"$ac_delim"'/"\\\
27749"/g' >>$CONFIG_STATUS || ac_write_fail=1
27750
27751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27752 for (key in D) D_is_set[key] = 1
27753 FS = "\a"
27754}
27755/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27756 line = \$ 0
27757 split(line, arg, " ")
27758 if (arg[1] == "#") {
27759 defundef = arg[2]
27760 mac1 = arg[3]
27761 } else {
27762 defundef = substr(arg[1], 2)
27763 mac1 = arg[2]
27764 }
27765 split(mac1, mac2, "(") #)
27766 macro = mac2[1]
27767 prefix = substr(line, 1, index(line, defundef) - 1)
27768 if (D_is_set[macro]) {
27769 # Preserve the white space surrounding the "#".
27770 print prefix "define", macro P[macro] D[macro]
27771 next
27772 } else {
27773 # Replace #undef with comments. This is necessary, for example,
27774 # in the case of _POSIX_SOURCE, which is predefined and required
27775 # on some systems where configure will not decide to define it.
27776 if (defundef == "undef") {
27777 print "/*", prefix defundef, macro, "*/"
27778 next
27779 }
27780 }
27781}
27782{ print }
27783_ACAWK
6de9cd9a 27784_ACEOF
5213506e
RW
27785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27786 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27787fi # test -n "$CONFIG_HEADERS"
27788
27789
27790eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27791shift
27792for ac_tag
27793do
27794 case $ac_tag in
27795 :[FHLC]) ac_mode=$ac_tag; continue;;
27796 esac
27797 case $ac_mode$ac_tag in
27798 :[FHL]*:*);;
27799 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27800 :[FH]-) ac_tag=-:-;;
27801 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27802 esac
27803 ac_save_IFS=$IFS
27804 IFS=:
27805 set x $ac_tag
27806 IFS=$ac_save_IFS
27807 shift
27808 ac_file=$1
27809 shift
27810
27811 case $ac_mode in
27812 :L) ac_source=$1;;
27813 :[FH])
27814 ac_file_inputs=
27815 for ac_f
27816 do
27817 case $ac_f in
27818 -) ac_f="$tmp/stdin";;
27819 *) # Look for the file first in the build tree, then in the source tree
27820 # (if the path is not absolute). The absolute path cannot be DOS-style,
27821 # because $ac_f cannot contain `:'.
27822 test -f "$ac_f" ||
27823 case $ac_f in
27824 [\\/$]*) false;;
27825 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27826 esac ||
27827 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27828 esac
27829 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27830 as_fn_append ac_file_inputs " '$ac_f'"
27831 done
27832
27833 # Let's still pretend it is `configure' which instantiates (i.e., don't
27834 # use $as_me), people would be surprised to read:
27835 # /* config.h. Generated by config.status. */
27836 configure_input='Generated from '`
27837 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27838 `' by configure.'
27839 if test x"$ac_file" != x-; then
27840 configure_input="$ac_file. $configure_input"
27841 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27842$as_echo "$as_me: creating $ac_file" >&6;}
27843 fi
27844 # Neutralize special characters interpreted by sed in replacement strings.
27845 case $configure_input in #(
27846 *\&* | *\|* | *\\* )
27847 ac_sed_conf_input=`$as_echo "$configure_input" |
27848 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27849 *) ac_sed_conf_input=$configure_input;;
27850 esac
27851
27852 case $ac_tag in
27853 *:-:* | *:-) cat >"$tmp/stdin" \
27854 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27855 esac
27856 ;;
6de9cd9a
DN
27857 esac
27858
5213506e 27859 ac_dir=`$as_dirname -- "$ac_file" ||
6de9cd9a
DN
27860$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27861 X"$ac_file" : 'X\(//\)[^/]' \| \
27862 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
27863 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27864$as_echo X"$ac_file" |
27865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27866 s//\1/
27867 q
27868 }
27869 /^X\(\/\/\)[^/].*/{
27870 s//\1/
27871 q
27872 }
27873 /^X\(\/\/\)$/{
27874 s//\1/
27875 q
27876 }
27877 /^X\(\/\).*/{
27878 s//\1/
27879 q
27880 }
27881 s/.*/./; q'`
27882 as_dir="$ac_dir"; as_fn_mkdir_p
6de9cd9a
DN
27883 ac_builddir=.
27884
5213506e
RW
27885case "$ac_dir" in
27886.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27887*)
27888 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27889 # A ".." for each directory in $ac_dir_suffix.
27890 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27891 case $ac_top_builddir_sub in
27892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27894 esac ;;
27895esac
27896ac_abs_top_builddir=$ac_pwd
27897ac_abs_builddir=$ac_pwd$ac_dir_suffix
27898# for backward compatibility:
27899ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
27900
27901case $srcdir in
5213506e 27902 .) # We are building in place.
6de9cd9a 27903 ac_srcdir=.
5213506e
RW
27904 ac_top_srcdir=$ac_top_builddir_sub
27905 ac_abs_top_srcdir=$ac_pwd ;;
27906 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 27907 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
27908 ac_top_srcdir=$srcdir
27909 ac_abs_top_srcdir=$srcdir ;;
27910 *) # Relative name.
27911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27912 ac_top_srcdir=$ac_top_build_prefix$srcdir
27913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6de9cd9a 27914esac
5213506e 27915ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6de9cd9a 27916
6de9cd9a 27917
5213506e
RW
27918 case $ac_mode in
27919 :F)
27920 #
27921 # CONFIG_FILE
27922 #
6de9cd9a
DN
27923
27924 case $INSTALL in
27925 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
27926 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27927 esac
27928 ac_MKDIR_P=$MKDIR_P
27929 case $MKDIR_P in
27930 [\\/$]* | ?:[\\/]* ) ;;
27931 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6de9cd9a 27932 esac
5213506e 27933_ACEOF
6de9cd9a 27934
5213506e
RW
27935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27936# If the template does not know about datarootdir, expand it.
27937# FIXME: This hack should be removed a few years after 2.60.
27938ac_datarootdir_hack=; ac_datarootdir_seen=
27939ac_sed_dataroot='
27940/datarootdir/ {
27941 p
27942 q
27943}
27944/@datadir@/p
27945/@docdir@/p
27946/@infodir@/p
27947/@localedir@/p
27948/@mandir@/p'
27949case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27950*datarootdir*) ac_datarootdir_seen=yes;;
27951*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27953$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27954_ACEOF
27955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27956 ac_datarootdir_hack='
27957 s&@datadir@&$datadir&g
27958 s&@docdir@&$docdir&g
27959 s&@infodir@&$infodir&g
27960 s&@localedir@&$localedir&g
27961 s&@mandir@&$mandir&g
27962 s&\\\${datarootdir}&$datarootdir&g' ;;
27963esac
78511f8b 27964_ACEOF
5213506e
RW
27965
27966# Neutralize VPATH when `$srcdir' = `.'.
27967# Shell code in configure.ac might set extrasub.
27968# FIXME: do we really want to maintain this feature?
27969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27970ac_sed_extra="$ac_vpsub
6de9cd9a
DN
27971$extrasub
27972_ACEOF
5213506e 27973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a
DN
27974:t
27975/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
27976s|@configure_input@|$ac_sed_conf_input|;t t
27977s&@top_builddir@&$ac_top_builddir_sub&;t t
27978s&@top_build_prefix@&$ac_top_build_prefix&;t t
27979s&@srcdir@&$ac_srcdir&;t t
27980s&@abs_srcdir@&$ac_abs_srcdir&;t t
27981s&@top_srcdir@&$ac_top_srcdir&;t t
27982s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27983s&@builddir@&$ac_builddir&;t t
27984s&@abs_builddir@&$ac_abs_builddir&;t t
27985s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27986s&@INSTALL@&$ac_INSTALL&;t t
27987s&@MKDIR_P@&$ac_MKDIR_P&;t t
27988$ac_datarootdir_hack
27989"
27990eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27991 || as_fn_error "could not create $ac_file" "$LINENO" 5
27992
27993test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27994 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27995 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27997which seems to be undefined. Please make sure it is defined." >&5
27998$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27999which seems to be undefined. Please make sure it is defined." >&2;}
28000
28001 rm -f "$tmp/stdin"
6de9cd9a 28002 case $ac_file in
5213506e
RW
28003 -) cat "$tmp/out" && rm -f "$tmp/out";;
28004 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28005 esac \
28006 || as_fn_error "could not create $ac_file" "$LINENO" 5
28007 ;;
28008 :H)
28009 #
28010 # CONFIG_HEADER
28011 #
6de9cd9a 28012 if test x"$ac_file" != x-; then
5213506e
RW
28013 {
28014 $as_echo "/* $configure_input */" \
28015 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28016 } >"$tmp/config.h" \
28017 || as_fn_error "could not create $ac_file" "$LINENO" 5
28018 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28020$as_echo "$as_me: $ac_file is unchanged" >&6;}
6de9cd9a 28021 else
5213506e
RW
28022 rm -f "$ac_file"
28023 mv "$tmp/config.h" "$ac_file" \
28024 || as_fn_error "could not create $ac_file" "$LINENO" 5
6de9cd9a
DN
28025 fi
28026 else
5213506e
RW
28027 $as_echo "/* $configure_input */" \
28028 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28029 || as_fn_error "could not create -" "$LINENO" 5
6de9cd9a 28030 fi
5213506e
RW
28031# Compute "$ac_file"'s index in $config_headers.
28032_am_arg="$ac_file"
6de9cd9a
DN
28033_am_stamp_count=1
28034for _am_header in $config_headers :; do
28035 case $_am_header in
5213506e 28036 $_am_arg | $_am_arg:* )
6de9cd9a
DN
28037 break ;;
28038 * )
28039 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28040 esac
28041done
5213506e
RW
28042echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28043$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28044 X"$_am_arg" : 'X\(//\)[^/]' \| \
28045 X"$_am_arg" : 'X\(//\)$' \| \
28046 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28047$as_echo X"$_am_arg" |
28048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28049 s//\1/
28050 q
28051 }
28052 /^X\(\/\/\)[^/].*/{
28053 s//\1/
28054 q
28055 }
28056 /^X\(\/\/\)$/{
28057 s//\1/
28058 q
28059 }
28060 /^X\(\/\).*/{
28061 s//\1/
28062 q
28063 }
28064 s/.*/./; q'`/stamp-h$_am_stamp_count
28065 ;;
38d24731 28066
5213506e
RW
28067 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28068$as_echo "$as_me: executing $ac_file commands" >&6;}
28069 ;;
28070 esac
6de9cd9a
DN
28071
28072
5213506e
RW
28073 case $ac_file$ac_mode in
28074 "default-1":C)
96b8a615
AJ
28075# Only add multilib support code if we just rebuilt the top-level
28076# Makefile.
28077case " $CONFIG_FILES " in
28078 *" Makefile "*)
28079 ac_file=Makefile . ${multi_basedir}/config-ml.in
28080 ;;
28081esac ;;
5213506e
RW
28082 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28083 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28084 # are listed without --file. Let's play safe and only enable the eval
28085 # if we detect the quoting.
28086 case $CONFIG_FILES in
28087 *\'*) eval set x "$CONFIG_FILES" ;;
28088 *) set x $CONFIG_FILES ;;
28089 esac
28090 shift
28091 for mf
28092 do
28093 # Strip MF so we end up with the name of the file.
28094 mf=`echo "$mf" | sed -e 's/:.*$//'`
28095 # Check whether this is an Automake generated Makefile or not.
28096 # We used to match only the files named `Makefile.in', but
28097 # some people rename them; so instead we look at the file content.
28098 # Grep'ing the first line is not enough: some people post-process
28099 # each Makefile.in and add a new line on top of each file to say so.
28100 # Grep'ing the whole file is not good either: AIX grep has a line
28101 # limit of 2048, but all sed's we know have understand at least 4000.
28102 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28103 dirpart=`$as_dirname -- "$mf" ||
679c0f9a
TT
28104$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28105 X"$mf" : 'X\(//\)[^/]' \| \
28106 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
28107 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28108$as_echo X"$mf" |
28109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28110 s//\1/
28111 q
28112 }
28113 /^X\(\/\/\)[^/].*/{
28114 s//\1/
28115 q
28116 }
28117 /^X\(\/\/\)$/{
28118 s//\1/
28119 q
28120 }
28121 /^X\(\/\).*/{
28122 s//\1/
28123 q
28124 }
28125 s/.*/./; q'`
28126 else
28127 continue
28128 fi
28129 # Extract the definition of DEPDIR, am__include, and am__quote
28130 # from the Makefile without running `make'.
28131 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28132 test -z "$DEPDIR" && continue
28133 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28134 test -z "am__include" && continue
28135 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28136 # When using ansi2knr, U may be empty or an underscore; expand it
28137 U=`sed -n 's/^U = //p' < "$mf"`
28138 # Find all dependency output files, they are included files with
28139 # $(DEPDIR) in their names. We invoke sed twice because it is the
28140 # simplest approach to changing $(DEPDIR) to its actual value in the
28141 # expansion.
28142 for file in `sed -n "
28143 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28144 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28145 # Make sure the directory exists.
28146 test -f "$dirpart/$file" && continue
28147 fdir=`$as_dirname -- "$file" ||
679c0f9a
TT
28148$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28149 X"$file" : 'X\(//\)[^/]' \| \
28150 X"$file" : 'X\(//\)$' \| \
5213506e
RW
28151 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28152$as_echo X"$file" |
28153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28154 s//\1/
28155 q
28156 }
28157 /^X\(\/\/\)[^/].*/{
28158 s//\1/
28159 q
28160 }
28161 /^X\(\/\/\)$/{
28162 s//\1/
28163 q
28164 }
28165 /^X\(\/\).*/{
28166 s//\1/
28167 q
28168 }
28169 s/.*/./; q'`
28170 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28171 # echo "creating $dirpart/$file"
28172 echo '# dummy' > "$dirpart/$file"
679c0f9a 28173 done
679c0f9a 28174 done
5213506e 28175}
1cf3d07d 28176 ;;
5213506e 28177 "libtool":C)
1cf3d07d
SE
28178
28179 # See if we are running on zsh, and set the options which allow our
28180 # commands through without removal of \ escapes.
28181 if test -n "${ZSH_VERSION+set}" ; then
28182 setopt NO_GLOB_SUBST
28183 fi
28184
28185 cfgfile="${ofile}T"
28186 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28187 $RM "$cfgfile"
28188
28189 cat <<_LT_EOF >> "$cfgfile"
28190#! $SHELL
28191
28192# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
d58dead8 28193# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
28194# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28195# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28196#
d58dead8 28197# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 28198# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d58dead8 28199# Written by Gordon Matzigkeit, 1996
1cf3d07d 28200#
d58dead8 28201# This file is part of GNU Libtool.
1cf3d07d 28202#
d58dead8
PG
28203# GNU Libtool is free software; you can redistribute it and/or
28204# modify it under the terms of the GNU General Public License as
28205# published by the Free Software Foundation; either version 2 of
28206# the License, or (at your option) any later version.
1cf3d07d 28207#
d58dead8
PG
28208# As a special exception to the GNU General Public License,
28209# if you distribute this file as part of a program or library that
28210# is built using GNU Libtool, you may include this file under the
28211# same distribution terms that you use for the rest of that program.
1cf3d07d 28212#
d58dead8
PG
28213# GNU Libtool is distributed in the hope that it will be useful,
28214# but WITHOUT ANY WARRANTY; without even the implied warranty of
28215# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28216# GNU General Public License for more details.
1cf3d07d 28217#
d58dead8
PG
28218# You should have received a copy of the GNU General Public License
28219# along with GNU Libtool; see the file COPYING. If not, a copy
28220# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28221# obtained by writing to the Free Software Foundation, Inc.,
28222# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
28223
28224
28225# The names of the tagged configurations supported by this script.
28226available_tags="FC "
28227
28228# ### BEGIN LIBTOOL CONFIG
28229
28230# Which release of libtool.m4 was used?
28231macro_version=$macro_version
28232macro_revision=$macro_revision
28233
28234# Whether or not to build shared libraries.
28235build_libtool_libs=$enable_shared
28236
28237# Whether or not to build static libraries.
28238build_old_libs=$enable_static
28239
28240# What type of objects to build.
28241pic_mode=$pic_mode
28242
28243# Whether or not to optimize for fast installation.
28244fast_install=$enable_fast_install
28245
43e02a8a
RW
28246# Shell to use when invoking shell scripts.
28247SHELL=$lt_SHELL
28248
28249# An echo program that protects backslashes.
28250ECHO=$lt_ECHO
28251
1cf3d07d
SE
28252# The host system.
28253host_alias=$host_alias
28254host=$host
28255host_os=$host_os
28256
28257# The build system.
28258build_alias=$build_alias
28259build=$build
28260build_os=$build_os
28261
28262# A sed program that does not truncate output.
28263SED=$lt_SED
28264
28265# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28266Xsed="\$SED -e 1s/^X//"
28267
28268# A grep program that handles long lines.
28269GREP=$lt_GREP
28270
28271# An ERE matcher.
28272EGREP=$lt_EGREP
28273
28274# A literal string matcher.
28275FGREP=$lt_FGREP
28276
28277# A BSD- or MS-compatible name lister.
28278NM=$lt_NM
28279
28280# Whether we need soft or hard links.
28281LN_S=$lt_LN_S
28282
28283# What is the maximum length of a command?
28284max_cmd_len=$max_cmd_len
28285
28286# Object file suffix (normally "o").
28287objext=$ac_objext
28288
28289# Executable file suffix (normally "").
28290exeext=$exeext
28291
28292# whether the shell understands "unset".
28293lt_unset=$lt_unset
28294
28295# turn spaces into newlines.
28296SP2NL=$lt_lt_SP2NL
28297
28298# turn newlines into spaces.
28299NL2SP=$lt_lt_NL2SP
28300
d58dead8
PG
28301# An object symbol dumper.
28302OBJDUMP=$lt_OBJDUMP
28303
1cf3d07d
SE
28304# Method to check whether dependent libraries are shared objects.
28305deplibs_check_method=$lt_deplibs_check_method
28306
28307# Command to use when deplibs_check_method == "file_magic".
28308file_magic_cmd=$lt_file_magic_cmd
28309
28310# The archiver.
28311AR=$lt_AR
28312AR_FLAGS=$lt_AR_FLAGS
28313
28314# A symbol stripping program.
28315STRIP=$lt_STRIP
28316
28317# Commands used to install an old-style archive.
28318RANLIB=$lt_RANLIB
28319old_postinstall_cmds=$lt_old_postinstall_cmds
28320old_postuninstall_cmds=$lt_old_postuninstall_cmds
28321
43e02a8a
RW
28322# Whether to use a lock for old archive extraction.
28323lock_old_archive_extraction=$lock_old_archive_extraction
28324
1cf3d07d
SE
28325# A C compiler.
28326LTCC=$lt_CC
28327
28328# LTCC compiler flags.
28329LTCFLAGS=$lt_CFLAGS
28330
28331# Take the output of nm and produce a listing of raw symbols and C names.
28332global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28333
28334# Transform the output of nm in a proper C declaration.
28335global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28336
28337# Transform the output of nm in a C name address pair.
28338global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28339
d58dead8
PG
28340# Transform the output of nm in a C name address pair when lib prefix is needed.
28341global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28342
1cf3d07d
SE
28343# The name of the directory that contains temporary libtool files.
28344objdir=$objdir
28345
1cf3d07d
SE
28346# Used to examine libraries when file_magic_cmd begins with "file".
28347MAGIC_CMD=$MAGIC_CMD
28348
28349# Must we lock files when doing compilation?
28350need_locks=$lt_need_locks
28351
d58dead8
PG
28352# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28353DSYMUTIL=$lt_DSYMUTIL
28354
28355# Tool to change global to local symbols on Mac OS X.
28356NMEDIT=$lt_NMEDIT
28357
28358# Tool to manipulate fat objects and archives on Mac OS X.
28359LIPO=$lt_LIPO
28360
28361# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28362OTOOL=$lt_OTOOL
28363
28364# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28365OTOOL64=$lt_OTOOL64
28366
1cf3d07d
SE
28367# Old archive suffix (normally "a").
28368libext=$libext
28369
28370# Shared library suffix (normally ".so").
28371shrext_cmds=$lt_shrext_cmds
28372
28373# The commands to extract the exported symbol list from a shared archive.
28374extract_expsyms_cmds=$lt_extract_expsyms_cmds
28375
28376# Variables whose values should be saved in libtool wrapper scripts and
28377# restored at link time.
28378variables_saved_for_relink=$lt_variables_saved_for_relink
28379
28380# Do we need the "lib" prefix for modules?
28381need_lib_prefix=$need_lib_prefix
28382
28383# Do we need a version for libraries?
28384need_version=$need_version
28385
28386# Library versioning type.
28387version_type=$version_type
28388
28389# Shared library runtime path variable.
28390runpath_var=$runpath_var
28391
28392# Shared library path variable.
28393shlibpath_var=$shlibpath_var
28394
28395# Is shlibpath searched before the hard-coded library search path?
28396shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28397
28398# Format of library name prefix.
28399libname_spec=$lt_libname_spec
28400
28401# List of archive names. First name is the real one, the rest are links.
28402# The last name is the one that the linker finds with -lNAME
28403library_names_spec=$lt_library_names_spec
28404
28405# The coded name of the library, if different from the real name.
28406soname_spec=$lt_soname_spec
28407
43e02a8a
RW
28408# Permission mode override for installation of shared libraries.
28409install_override_mode=$lt_install_override_mode
28410
1cf3d07d
SE
28411# Command to use after installation of a shared archive.
28412postinstall_cmds=$lt_postinstall_cmds
28413
28414# Command to use after uninstallation of a shared archive.
28415postuninstall_cmds=$lt_postuninstall_cmds
28416
28417# Commands used to finish a libtool library installation in a directory.
28418finish_cmds=$lt_finish_cmds
28419
28420# As "finish_cmds", except a single script fragment to be evaled but
28421# not shown.
28422finish_eval=$lt_finish_eval
28423
28424# Whether we should hardcode library paths into libraries.
28425hardcode_into_libs=$hardcode_into_libs
28426
28427# Compile-time system search path for libraries.
28428sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28429
28430# Run-time system search path for libraries.
28431sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28432
28433# Whether dlopen is supported.
28434dlopen_support=$enable_dlopen
28435
28436# Whether dlopen of programs is supported.
28437dlopen_self=$enable_dlopen_self
28438
28439# Whether dlopen of statically linked programs is supported.
28440dlopen_self_static=$enable_dlopen_self_static
28441
28442# Commands to strip libraries.
28443old_striplib=$lt_old_striplib
28444striplib=$lt_striplib
28445
28446
28447# The linker used to build libraries.
28448LD=$lt_LD
28449
43e02a8a
RW
28450# How to create reloadable object files.
28451reload_flag=$lt_reload_flag
28452reload_cmds=$lt_reload_cmds
28453
1cf3d07d
SE
28454# Commands used to build an old-style archive.
28455old_archive_cmds=$lt_old_archive_cmds
28456
28457# A language specific compiler.
28458CC=$lt_compiler
28459
28460# Is the compiler the GNU compiler?
28461with_gcc=$GCC
28462
28463# Compiler flag to turn off builtin functions.
28464no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28465
28466# How to pass a linker flag through the compiler.
28467wl=$lt_lt_prog_compiler_wl
28468
28469# Additional compiler flags for building library objects.
28470pic_flag=$lt_lt_prog_compiler_pic
28471
28472# Compiler flag to prevent dynamic linking.
28473link_static_flag=$lt_lt_prog_compiler_static
28474
28475# Does compiler simultaneously support -c and -o options?
28476compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28477
28478# Whether or not to add -lc for building shared libraries.
28479build_libtool_need_lc=$archive_cmds_need_lc
28480
28481# Whether or not to disallow shared libs when runtime libs are static.
28482allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28483
28484# Compiler flag to allow reflexive dlopens.
28485export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28486
28487# Compiler flag to generate shared objects directly from archives.
28488whole_archive_flag_spec=$lt_whole_archive_flag_spec
28489
28490# Whether the compiler copes with passing no objects directly.
28491compiler_needs_object=$lt_compiler_needs_object
28492
28493# Create an old-style archive from a shared archive.
28494old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28495
28496# Create a temporary old-style archive to link instead of a shared archive.
28497old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28498
28499# Commands used to build a shared archive.
28500archive_cmds=$lt_archive_cmds
28501archive_expsym_cmds=$lt_archive_expsym_cmds
28502
28503# Commands used to build a loadable module if different from building
28504# a shared archive.
28505module_cmds=$lt_module_cmds
28506module_expsym_cmds=$lt_module_expsym_cmds
28507
28508# Whether we are building with GNU ld or not.
28509with_gnu_ld=$lt_with_gnu_ld
28510
28511# Flag that allows shared libraries with undefined symbols to be built.
28512allow_undefined_flag=$lt_allow_undefined_flag
28513
28514# Flag that enforces no undefined symbols.
28515no_undefined_flag=$lt_no_undefined_flag
28516
28517# Flag to hardcode \$libdir into a binary during linking.
28518# This must work even if \$libdir does not exist
28519hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28520
28521# If ld is used when linking, flag to hardcode \$libdir into a binary
28522# during linking. This must work even if \$libdir does not exist.
28523hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28524
28525# Whether we need a single "-rpath" flag with a separated argument.
28526hardcode_libdir_separator=$lt_hardcode_libdir_separator
28527
28528# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28529# DIR into the resulting binary.
28530hardcode_direct=$hardcode_direct
28531
28532# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28533# DIR into the resulting binary and the resulting library dependency is
28534# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28535# library is relocated.
28536hardcode_direct_absolute=$hardcode_direct_absolute
28537
28538# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28539# into the resulting binary.
28540hardcode_minus_L=$hardcode_minus_L
28541
28542# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28543# into the resulting binary.
28544hardcode_shlibpath_var=$hardcode_shlibpath_var
28545
28546# Set to "yes" if building a shared library automatically hardcodes DIR
28547# into the library and all subsequent libraries and executables linked
28548# against it.
28549hardcode_automatic=$hardcode_automatic
28550
28551# Set to yes if linker adds runtime paths of dependent libraries
28552# to runtime path list.
28553inherit_rpath=$inherit_rpath
28554
28555# Whether libtool must link a program against all its dependency libraries.
28556link_all_deplibs=$link_all_deplibs
28557
28558# Fix the shell variable \$srcfile for the compiler.
28559fix_srcfile_path=$lt_fix_srcfile_path
28560
28561# Set to "yes" if exported symbols are required.
28562always_export_symbols=$always_export_symbols
28563
28564# The commands to list exported symbols.
28565export_symbols_cmds=$lt_export_symbols_cmds
28566
28567# Symbols that should not be listed in the preloaded symbols.
28568exclude_expsyms=$lt_exclude_expsyms
28569
28570# Symbols that must always be exported.
28571include_expsyms=$lt_include_expsyms
28572
28573# Commands necessary for linking programs (against libraries) with templates.
28574prelink_cmds=$lt_prelink_cmds
28575
28576# Specify filename containing input files.
28577file_list_spec=$lt_file_list_spec
28578
28579# How to hardcode a shared library path into an executable.
28580hardcode_action=$hardcode_action
28581
d58dead8
PG
28582# The directories searched by this compiler when creating a shared library.
28583compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28584
1cf3d07d
SE
28585# Dependencies to place before and after the objects being linked to
28586# create a shared library.
28587predep_objects=$lt_predep_objects
28588postdep_objects=$lt_postdep_objects
28589predeps=$lt_predeps
28590postdeps=$lt_postdeps
28591
28592# The library search path used internally by the compiler when linking
28593# a shared library.
28594compiler_lib_search_path=$lt_compiler_lib_search_path
28595
28596# ### END LIBTOOL CONFIG
28597
28598_LT_EOF
28599
28600 case $host_os in
28601 aix3*)
28602 cat <<\_LT_EOF >> "$cfgfile"
28603# AIX sometimes has problems with the GCC collect2 program. For some
28604# reason, if we set the COLLECT_NAMES environment variable, the problems
28605# vanish in a puff of smoke.
28606if test "X${COLLECT_NAMES+set}" != Xset; then
28607 COLLECT_NAMES=
28608 export COLLECT_NAMES
28609fi
28610_LT_EOF
28611 ;;
28612 esac
28613
28614
28615ltmain="$ac_aux_dir/ltmain.sh"
28616
28617
28618 # We use sed instead of cat because bash on DJGPP gets confused if
28619 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28620 # text mode, it properly converts lines to CR/LF. This bash problem
28621 # is reportedly fixed, but why not run on old versions too?
28622 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28623 || (rm -f "$cfgfile"; exit 1)
28624
28625 case $xsi_shell in
28626 yes)
28627 cat << \_LT_EOF >> "$cfgfile"
d58dead8 28628
1cf3d07d
SE
28629# func_dirname file append nondir_replacement
28630# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28631# otherwise set result to NONDIR_REPLACEMENT.
28632func_dirname ()
28633{
28634 case ${1} in
28635 */*) func_dirname_result="${1%/*}${2}" ;;
28636 * ) func_dirname_result="${3}" ;;
28637 esac
28638}
28639
28640# func_basename file
28641func_basename ()
28642{
28643 func_basename_result="${1##*/}"
28644}
28645
d58dead8
PG
28646# func_dirname_and_basename file append nondir_replacement
28647# perform func_basename and func_dirname in a single function
28648# call:
28649# dirname: Compute the dirname of FILE. If nonempty,
28650# add APPEND to the result, otherwise set result
28651# to NONDIR_REPLACEMENT.
28652# value returned in "$func_dirname_result"
28653# basename: Compute filename of FILE.
28654# value retuned in "$func_basename_result"
28655# Implementation must be kept synchronized with func_dirname
28656# and func_basename. For efficiency, we do not delegate to
28657# those functions but instead duplicate the functionality here.
28658func_dirname_and_basename ()
28659{
28660 case ${1} in
28661 */*) func_dirname_result="${1%/*}${2}" ;;
28662 * ) func_dirname_result="${3}" ;;
28663 esac
28664 func_basename_result="${1##*/}"
28665}
28666
1cf3d07d
SE
28667# func_stripname prefix suffix name
28668# strip PREFIX and SUFFIX off of NAME.
28669# PREFIX and SUFFIX must not contain globbing or regex special
28670# characters, hashes, percent signs, but SUFFIX may contain a leading
28671# dot (in which case that matches only a dot).
28672func_stripname ()
28673{
28674 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28675 # positional parameters, so assign one to ordinary parameter first.
28676 func_stripname_result=${3}
28677 func_stripname_result=${func_stripname_result#"${1}"}
28678 func_stripname_result=${func_stripname_result%"${2}"}
28679}
28680
28681# func_opt_split
28682func_opt_split ()
28683{
28684 func_opt_split_opt=${1%%=*}
28685 func_opt_split_arg=${1#*=}
28686}
28687
28688# func_lo2o object
28689func_lo2o ()
28690{
28691 case ${1} in
28692 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28693 *) func_lo2o_result=${1} ;;
28694 esac
28695}
d58dead8
PG
28696
28697# func_xform libobj-or-source
28698func_xform ()
28699{
28700 func_xform_result=${1%.*}.lo
28701}
28702
28703# func_arith arithmetic-term...
28704func_arith ()
28705{
28706 func_arith_result=$(( $* ))
28707}
28708
28709# func_len string
28710# STRING may not start with a hyphen.
28711func_len ()
28712{
28713 func_len_result=${#1}
28714}
28715
1cf3d07d
SE
28716_LT_EOF
28717 ;;
28718 *) # Bourne compatible functions.
28719 cat << \_LT_EOF >> "$cfgfile"
d58dead8 28720
1cf3d07d
SE
28721# func_dirname file append nondir_replacement
28722# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28723# otherwise set result to NONDIR_REPLACEMENT.
28724func_dirname ()
28725{
28726 # Extract subdirectory from the argument.
43e02a8a 28727 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
28728 if test "X$func_dirname_result" = "X${1}"; then
28729 func_dirname_result="${3}"
28730 else
28731 func_dirname_result="$func_dirname_result${2}"
28732 fi
28733}
28734
28735# func_basename file
28736func_basename ()
28737{
43e02a8a 28738 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
28739}
28740
d58dead8 28741
1cf3d07d
SE
28742# func_stripname prefix suffix name
28743# strip PREFIX and SUFFIX off of NAME.
28744# PREFIX and SUFFIX must not contain globbing or regex special
28745# characters, hashes, percent signs, but SUFFIX may contain a leading
28746# dot (in which case that matches only a dot).
28747# func_strip_suffix prefix name
28748func_stripname ()
28749{
28750 case ${2} in
43e02a8a
RW
28751 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28752 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
28753 esac
28754}
28755
28756# sed scripts:
28757my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28758my_sed_long_arg='1s/^-[^=]*=//'
28759
28760# func_opt_split
28761func_opt_split ()
28762{
43e02a8a
RW
28763 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28764 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
28765}
28766
28767# func_lo2o object
28768func_lo2o ()
28769{
43e02a8a 28770 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 28771}
d58dead8
PG
28772
28773# func_xform libobj-or-source
28774func_xform ()
28775{
43e02a8a 28776 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d58dead8
PG
28777}
28778
28779# func_arith arithmetic-term...
28780func_arith ()
28781{
28782 func_arith_result=`expr "$@"`
28783}
28784
28785# func_len string
28786# STRING may not start with a hyphen.
28787func_len ()
28788{
28789 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28790}
28791
1cf3d07d
SE
28792_LT_EOF
28793esac
28794
28795case $lt_shell_append in
28796 yes)
28797 cat << \_LT_EOF >> "$cfgfile"
28798
28799# func_append var value
28800# Append VALUE to the end of shell variable VAR.
28801func_append ()
28802{
28803 eval "$1+=\$2"
28804}
28805_LT_EOF
28806 ;;
28807 *)
28808 cat << \_LT_EOF >> "$cfgfile"
28809
28810# func_append var value
28811# Append VALUE to the end of shell variable VAR.
28812func_append ()
28813{
28814 eval "$1=\$$1\$2"
28815}
d58dead8 28816
1cf3d07d
SE
28817_LT_EOF
28818 ;;
28819 esac
28820
28821
28822 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28823 || (rm -f "$cfgfile"; exit 1)
28824
28825 mv -f "$cfgfile" "$ofile" ||
28826 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28827 chmod +x "$ofile"
28828
28829
28830 cat <<_LT_EOF >> "$ofile"
28831
28832# ### BEGIN LIBTOOL TAG CONFIG: FC
28833
28834# The linker used to build libraries.
28835LD=$lt_LD_FC
28836
43e02a8a
RW
28837# How to create reloadable object files.
28838reload_flag=$lt_reload_flag_FC
28839reload_cmds=$lt_reload_cmds_FC
28840
1cf3d07d
SE
28841# Commands used to build an old-style archive.
28842old_archive_cmds=$lt_old_archive_cmds_FC
28843
28844# A language specific compiler.
28845CC=$lt_compiler_FC
28846
28847# Is the compiler the GNU compiler?
28848with_gcc=$GCC_FC
28849
28850# Compiler flag to turn off builtin functions.
28851no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
28852
28853# How to pass a linker flag through the compiler.
28854wl=$lt_lt_prog_compiler_wl_FC
28855
28856# Additional compiler flags for building library objects.
28857pic_flag=$lt_lt_prog_compiler_pic_FC
28858
28859# Compiler flag to prevent dynamic linking.
28860link_static_flag=$lt_lt_prog_compiler_static_FC
28861
28862# Does compiler simultaneously support -c and -o options?
28863compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
28864
28865# Whether or not to add -lc for building shared libraries.
28866build_libtool_need_lc=$archive_cmds_need_lc_FC
28867
28868# Whether or not to disallow shared libs when runtime libs are static.
28869allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
28870
28871# Compiler flag to allow reflexive dlopens.
28872export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
28873
28874# Compiler flag to generate shared objects directly from archives.
28875whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
28876
28877# Whether the compiler copes with passing no objects directly.
28878compiler_needs_object=$lt_compiler_needs_object_FC
28879
28880# Create an old-style archive from a shared archive.
28881old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
28882
28883# Create a temporary old-style archive to link instead of a shared archive.
28884old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
28885
28886# Commands used to build a shared archive.
28887archive_cmds=$lt_archive_cmds_FC
28888archive_expsym_cmds=$lt_archive_expsym_cmds_FC
28889
28890# Commands used to build a loadable module if different from building
28891# a shared archive.
28892module_cmds=$lt_module_cmds_FC
28893module_expsym_cmds=$lt_module_expsym_cmds_FC
28894
28895# Whether we are building with GNU ld or not.
28896with_gnu_ld=$lt_with_gnu_ld_FC
28897
28898# Flag that allows shared libraries with undefined symbols to be built.
28899allow_undefined_flag=$lt_allow_undefined_flag_FC
28900
28901# Flag that enforces no undefined symbols.
28902no_undefined_flag=$lt_no_undefined_flag_FC
28903
28904# Flag to hardcode \$libdir into a binary during linking.
28905# This must work even if \$libdir does not exist
28906hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
28907
28908# If ld is used when linking, flag to hardcode \$libdir into a binary
28909# during linking. This must work even if \$libdir does not exist.
28910hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
28911
28912# Whether we need a single "-rpath" flag with a separated argument.
28913hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
28914
28915# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28916# DIR into the resulting binary.
28917hardcode_direct=$hardcode_direct_FC
28918
28919# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28920# DIR into the resulting binary and the resulting library dependency is
28921# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28922# library is relocated.
28923hardcode_direct_absolute=$hardcode_direct_absolute_FC
28924
28925# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28926# into the resulting binary.
28927hardcode_minus_L=$hardcode_minus_L_FC
28928
28929# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28930# into the resulting binary.
28931hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
28932
28933# Set to "yes" if building a shared library automatically hardcodes DIR
28934# into the library and all subsequent libraries and executables linked
28935# against it.
28936hardcode_automatic=$hardcode_automatic_FC
28937
28938# Set to yes if linker adds runtime paths of dependent libraries
28939# to runtime path list.
28940inherit_rpath=$inherit_rpath_FC
28941
28942# Whether libtool must link a program against all its dependency libraries.
28943link_all_deplibs=$link_all_deplibs_FC
28944
28945# Fix the shell variable \$srcfile for the compiler.
28946fix_srcfile_path=$lt_fix_srcfile_path_FC
28947
28948# Set to "yes" if exported symbols are required.
28949always_export_symbols=$always_export_symbols_FC
28950
28951# The commands to list exported symbols.
28952export_symbols_cmds=$lt_export_symbols_cmds_FC
28953
28954# Symbols that should not be listed in the preloaded symbols.
28955exclude_expsyms=$lt_exclude_expsyms_FC
28956
28957# Symbols that must always be exported.
28958include_expsyms=$lt_include_expsyms_FC
28959
28960# Commands necessary for linking programs (against libraries) with templates.
28961prelink_cmds=$lt_prelink_cmds_FC
28962
28963# Specify filename containing input files.
28964file_list_spec=$lt_file_list_spec_FC
28965
28966# How to hardcode a shared library path into an executable.
28967hardcode_action=$hardcode_action_FC
28968
d58dead8
PG
28969# The directories searched by this compiler when creating a shared library.
28970compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
28971
1cf3d07d
SE
28972# Dependencies to place before and after the objects being linked to
28973# create a shared library.
28974predep_objects=$lt_predep_objects_FC
28975postdep_objects=$lt_postdep_objects_FC
28976predeps=$lt_predeps_FC
28977postdeps=$lt_postdeps_FC
28978
28979# The library search path used internally by the compiler when linking
28980# a shared library.
28981compiler_lib_search_path=$lt_compiler_lib_search_path_FC
28982
28983# ### END LIBTOOL TAG CONFIG: FC
28984_LT_EOF
28985
679c0f9a 28986 ;;
5213506e 28987 "gstdint.h":C)
c13e029b
PB
28988if test "$GCC" = yes; then
28989 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
28990else
28991 echo "/* generated for $CC */" > tmp-stdint.h
28992fi
4c4b3eb0 28993
c13e029b
PB
28994sed 's/^ *//' >> tmp-stdint.h <<EOF
28995
28996 #ifndef GCC_GENERATED_STDINT_H
28997 #define GCC_GENERATED_STDINT_H 1
28998
28999 #include <sys/types.h>
4c4b3eb0 29000EOF
4c4b3eb0 29001
c13e029b
PB
29002if test "$acx_cv_header_stdint" != stdint.h; then
29003 echo "#include <stddef.h>" >> tmp-stdint.h
29004fi
29005if test "$acx_cv_header_stdint" != stddef.h; then
29006 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29007fi
29008
29009sed 's/^ *//' >> tmp-stdint.h <<EOF
29010 /* glibc uses these symbols as guards to prevent redefinitions. */
29011 #ifdef __int8_t_defined
29012 #define _INT8_T
29013 #define _INT16_T
29014 #define _INT32_T
29015 #endif
29016 #ifdef __uint32_t_defined
29017 #define _UINT32_T
29018 #endif
29019
29020EOF
29021
29022# ----------------- done header, emit basic int types -------------
29023if test "$acx_cv_header_stdint" = stddef.h; then
29024 sed 's/^ *//' >> tmp-stdint.h <<EOF
29025
29026 #ifndef _UINT8_T
29027 #define _UINT8_T
29028 #ifndef __uint8_t_defined
29029 #define __uint8_t_defined
b9497ab5 29030 #ifndef uint8_t
c13e029b
PB
29031 typedef unsigned $acx_cv_type_int8_t uint8_t;
29032 #endif
29033 #endif
b9497ab5 29034 #endif
c13e029b
PB
29035
29036 #ifndef _UINT16_T
29037 #define _UINT16_T
29038 #ifndef __uint16_t_defined
29039 #define __uint16_t_defined
b9497ab5 29040 #ifndef uint16_t
c13e029b
PB
29041 typedef unsigned $acx_cv_type_int16_t uint16_t;
29042 #endif
29043 #endif
b9497ab5 29044 #endif
c13e029b
PB
29045
29046 #ifndef _UINT32_T
29047 #define _UINT32_T
29048 #ifndef __uint32_t_defined
29049 #define __uint32_t_defined
b9497ab5 29050 #ifndef uint32_t
c13e029b
PB
29051 typedef unsigned $acx_cv_type_int32_t uint32_t;
29052 #endif
29053 #endif
b9497ab5 29054 #endif
c13e029b
PB
29055
29056 #ifndef _INT8_T
29057 #define _INT8_T
29058 #ifndef __int8_t_defined
29059 #define __int8_t_defined
b9497ab5 29060 #ifndef int8_t
c13e029b
PB
29061 typedef $acx_cv_type_int8_t int8_t;
29062 #endif
29063 #endif
b9497ab5 29064 #endif
c13e029b
PB
29065
29066 #ifndef _INT16_T
29067 #define _INT16_T
29068 #ifndef __int16_t_defined
29069 #define __int16_t_defined
b9497ab5 29070 #ifndef int16_t
c13e029b
PB
29071 typedef $acx_cv_type_int16_t int16_t;
29072 #endif
29073 #endif
b9497ab5 29074 #endif
c13e029b
PB
29075
29076 #ifndef _INT32_T
29077 #define _INT32_T
29078 #ifndef __int32_t_defined
29079 #define __int32_t_defined
b9497ab5 29080 #ifndef int32_t
c13e029b
PB
29081 typedef $acx_cv_type_int32_t int32_t;
29082 #endif
29083 #endif
b9497ab5 29084 #endif
c13e029b
PB
29085EOF
29086elif test "$ac_cv_type_u_int32_t" = yes; then
29087 sed 's/^ *//' >> tmp-stdint.h <<EOF
29088
29089 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29090 #ifndef _INT8_T
29091 #define _INT8_T
29092 #endif
29093 #ifndef _INT16_T
29094 #define _INT16_T
29095 #endif
29096 #ifndef _INT32_T
29097 #define _INT32_T
29098 #endif
29099
29100 #ifndef _UINT8_T
29101 #define _UINT8_T
29102 #ifndef __uint8_t_defined
29103 #define __uint8_t_defined
b9497ab5 29104 #ifndef uint8_t
c13e029b
PB
29105 typedef u_int8_t uint8_t;
29106 #endif
29107 #endif
b9497ab5 29108 #endif
c13e029b
PB
29109
29110 #ifndef _UINT16_T
29111 #define _UINT16_T
29112 #ifndef __uint16_t_defined
29113 #define __uint16_t_defined
b9497ab5 29114 #ifndef uint16_t
c13e029b
PB
29115 typedef u_int16_t uint16_t;
29116 #endif
29117 #endif
b9497ab5 29118 #endif
c13e029b
PB
29119
29120 #ifndef _UINT32_T
29121 #define _UINT32_T
29122 #ifndef __uint32_t_defined
29123 #define __uint32_t_defined
b9497ab5 29124 #ifndef uint32_t
c13e029b
PB
29125 typedef u_int32_t uint32_t;
29126 #endif
29127 #endif
b9497ab5 29128 #endif
c13e029b
PB
29129EOF
29130else
29131 sed 's/^ *//' >> tmp-stdint.h <<EOF
29132
29133 /* Some systems have guard macros to prevent redefinitions, define them. */
29134 #ifndef _INT8_T
29135 #define _INT8_T
29136 #endif
29137 #ifndef _INT16_T
29138 #define _INT16_T
29139 #endif
29140 #ifndef _INT32_T
29141 #define _INT32_T
29142 #endif
29143 #ifndef _UINT8_T
29144 #define _UINT8_T
29145 #endif
29146 #ifndef _UINT16_T
29147 #define _UINT16_T
29148 #endif
29149 #ifndef _UINT32_T
29150 #define _UINT32_T
29151 #endif
29152EOF
29153fi
29154
29155# ------------- done basic int types, emit int64_t types ------------
29156if test "$ac_cv_type_uint64_t" = yes; then
29157 sed 's/^ *//' >> tmp-stdint.h <<EOF
29158
29159 /* system headers have good uint64_t and int64_t */
29160 #ifndef _INT64_T
29161 #define _INT64_T
29162 #endif
29163 #ifndef _UINT64_T
29164 #define _UINT64_T
29165 #endif
29166EOF
29167elif test "$ac_cv_type_u_int64_t" = yes; then
29168 sed 's/^ *//' >> tmp-stdint.h <<EOF
29169
29170 /* system headers have an u_int64_t (and int64_t) */
29171 #ifndef _INT64_T
29172 #define _INT64_T
29173 #endif
29174 #ifndef _UINT64_T
29175 #define _UINT64_T
29176 #ifndef __uint64_t_defined
29177 #define __uint64_t_defined
b9497ab5 29178 #ifndef uint64_t
c13e029b
PB
29179 typedef u_int64_t uint64_t;
29180 #endif
29181 #endif
b9497ab5 29182 #endif
c13e029b
PB
29183EOF
29184elif test -n "$acx_cv_type_int64_t"; then
29185 sed 's/^ *//' >> tmp-stdint.h <<EOF
29186
29187 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29188 #ifndef _INT64_T
29189 #define _INT64_T
b9497ab5 29190 #ifndef int64_t
c13e029b
PB
29191 typedef $acx_cv_type_int64_t int64_t;
29192 #endif
b9497ab5 29193 #endif
c13e029b
PB
29194 #ifndef _UINT64_T
29195 #define _UINT64_T
29196 #ifndef __uint64_t_defined
29197 #define __uint64_t_defined
b9497ab5 29198 #ifndef uint64_t
c13e029b
PB
29199 typedef unsigned $acx_cv_type_int64_t uint64_t;
29200 #endif
29201 #endif
b9497ab5 29202 #endif
c13e029b
PB
29203EOF
29204else
29205 sed 's/^ *//' >> tmp-stdint.h <<EOF
29206
29207 /* some common heuristics for int64_t, using compiler-specific tests */
29208 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29209 #ifndef _INT64_T
29210 #define _INT64_T
29211 #ifndef __int64_t_defined
b9497ab5 29212 #ifndef int64_t
c13e029b
PB
29213 typedef long long int64_t;
29214 #endif
29215 #endif
b9497ab5 29216 #endif
c13e029b
PB
29217 #ifndef _UINT64_T
29218 #define _UINT64_T
b9497ab5 29219 #ifndef uint64_t
c13e029b
PB
29220 typedef unsigned long long uint64_t;
29221 #endif
b9497ab5 29222 #endif
c13e029b
PB
29223
29224 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29225 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29226 does not implement __extension__. But that compiler doesn't define
29227 __GNUC_MINOR__. */
29228 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29229 # define __extension__
29230 # endif
29231
29232 # ifndef _INT64_T
29233 # define _INT64_T
b9497ab5 29234 # ifndef int64_t
c13e029b
PB
29235 __extension__ typedef long long int64_t;
29236 # endif
b9497ab5 29237 # endif
c13e029b
PB
29238 # ifndef _UINT64_T
29239 # define _UINT64_T
b9497ab5 29240 # ifndef uint64_t
c13e029b
PB
29241 __extension__ typedef unsigned long long uint64_t;
29242 # endif
b9497ab5 29243 # endif
c13e029b
PB
29244
29245 #elif !defined __STRICT_ANSI__
29246 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29247
29248 # ifndef _INT64_T
29249 # define _INT64_T
b9497ab5 29250 # ifndef int64_t
c13e029b
PB
29251 typedef __int64 int64_t;
29252 # endif
b9497ab5 29253 # endif
c13e029b
PB
29254 # ifndef _UINT64_T
29255 # define _UINT64_T
b9497ab5 29256 # ifndef uint64_t
c13e029b
PB
29257 typedef unsigned __int64 uint64_t;
29258 # endif
b9497ab5 29259 # endif
c13e029b
PB
29260 # endif /* compiler */
29261
29262 #endif /* ANSI version */
29263EOF
29264fi
29265
29266# ------------- done int64_t types, emit intptr types ------------
29267if test "$ac_cv_type_uintptr_t" != yes; then
29268 sed 's/^ *//' >> tmp-stdint.h <<EOF
29269
29270 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29271 #ifndef __uintptr_t_defined
b9497ab5 29272 #ifndef uintptr_t
c13e029b
PB
29273 typedef u$acx_cv_type_intptr_t uintptr_t;
29274 #endif
b9497ab5 29275 #endif
c13e029b 29276 #ifndef __intptr_t_defined
b9497ab5 29277 #ifndef intptr_t
c13e029b
PB
29278 typedef $acx_cv_type_intptr_t intptr_t;
29279 #endif
b9497ab5 29280 #endif
c13e029b
PB
29281EOF
29282fi
29283
29284# ------------- done intptr types, emit int_least types ------------
4c4b3eb0 29285if test "$ac_cv_type_int_least32_t" != yes; then
c13e029b 29286 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
29287
29288 /* Define int_least types */
29289 typedef int8_t int_least8_t;
29290 typedef int16_t int_least16_t;
29291 typedef int32_t int_least32_t;
c13e029b 29292 #ifdef _INT64_T
4c4b3eb0 29293 typedef int64_t int_least64_t;
c13e029b 29294 #endif
4c4b3eb0
PB
29295
29296 typedef uint8_t uint_least8_t;
29297 typedef uint16_t uint_least16_t;
29298 typedef uint32_t uint_least32_t;
c13e029b 29299 #ifdef _UINT64_T
4c4b3eb0 29300 typedef uint64_t uint_least64_t;
c13e029b 29301 #endif
4c4b3eb0
PB
29302EOF
29303fi
29304
c13e029b 29305# ------------- done intptr types, emit int_fast types ------------
4c4b3eb0 29306if test "$ac_cv_type_int_fast32_t" != yes; then
c13e029b 29307 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
29308
29309 /* Define int_fast types. short is often slow */
29310 typedef int8_t int_fast8_t;
29311 typedef int int_fast16_t;
29312 typedef int32_t int_fast32_t;
c13e029b 29313 #ifdef _INT64_T
4c4b3eb0 29314 typedef int64_t int_fast64_t;
c13e029b 29315 #endif
4c4b3eb0
PB
29316
29317 typedef uint8_t uint_fast8_t;
29318 typedef unsigned int uint_fast16_t;
29319 typedef uint32_t uint_fast32_t;
c13e029b 29320 #ifdef _UINT64_T
4c4b3eb0 29321 typedef uint64_t uint_fast64_t;
c13e029b
PB
29322 #endif
29323EOF
29324fi
29325
29326if test "$ac_cv_type_uintmax_t" != yes; then
29327 sed 's/^ *//' >> tmp-stdint.h <<EOF
29328
29329 /* Define intmax based on what we found */
b9497ab5 29330 #ifndef intmax_t
c13e029b
PB
29331 #ifdef _INT64_T
29332 typedef int64_t intmax_t;
29333 #else
29334 typedef long intmax_t;
29335 #endif
b9497ab5
RO
29336 #endif
29337 #ifndef uintmax_t
c13e029b
PB
29338 #ifdef _UINT64_T
29339 typedef uint64_t uintmax_t;
29340 #else
29341 typedef unsigned long uintmax_t;
29342 #endif
b9497ab5 29343 #endif
4c4b3eb0
PB
29344EOF
29345fi
29346
c13e029b
PB
29347sed 's/^ *//' >> tmp-stdint.h <<EOF
29348
29349 #endif /* GCC_GENERATED_STDINT_H */
29350EOF
4c4b3eb0 29351
c13e029b
PB
29352if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29353 rm -f tmp-stdint.h
4c4b3eb0 29354else
c13e029b 29355 mv -f tmp-stdint.h gstdint.h
4c4b3eb0
PB
29356fi
29357
29358 ;;
5213506e 29359
6de9cd9a 29360 esac
5213506e 29361done # for ac_tag
6de9cd9a 29362
6de9cd9a 29363
5213506e 29364as_fn_exit 0
6de9cd9a 29365_ACEOF
6de9cd9a
DN
29366ac_clean_files=$ac_clean_files_save
29367
5213506e
RW
29368test $ac_write_fail = 0 ||
29369 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29370
6de9cd9a
DN
29371
29372# configure is writing to config.log, and then calls config.status.
29373# config.status does its own redirection, appending to config.log.
29374# Unfortunately, on DOS this fails, as config.log is still kept open
29375# by configure, so config.status won't be able to write to it; its
29376# output is simply discarded. So we exec the FD to /dev/null,
29377# effectively closing config.log, so it can be properly (re)opened and
29378# appended to by config.status. When coming back to configure, we
29379# need to make the FD available again.
29380if test "$no_create" != yes; then
29381 ac_cs_success=:
29382 ac_config_status_args=
29383 test "$silent" = yes &&
29384 ac_config_status_args="$ac_config_status_args --quiet"
29385 exec 5>/dev/null
29386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29387 exec 5>>config.log
29388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29389 # would make configure fail if this is the last instruction.
5213506e
RW
29390 $ac_cs_success || as_fn_exit $?
29391fi
29392if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29394$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6de9cd9a
DN
29395fi
29396