]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
rs6000: Fix pr56605.c
[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
3c36aa6b 608get_gcc_base_ver
1d5cf7fc
TK
609HAVE_AVX128_FALSE
610HAVE_AVX128_TRUE
5213506e 611IEEE_FLAGS
8b198102
FXC
612IEEE_SUPPORT
613IEEE_SUPPORT_FALSE
614IEEE_SUPPORT_TRUE
5213506e 615FPU_HOST_HEADER
1ec601bf
FXC
616LIBGFOR_BUILD_QUAD_FALSE
617LIBGFOR_BUILD_QUAD_TRUE
618LIBQUADINCLUDE
619LIBQUADLIB_DEP
620LIBQUADLIB
621LIBQUADSPEC
5213506e
RW
622extra_ldflags_libgfortran
623ac_ct_FC
624FCFLAGS
625FC
626enable_static
627enable_shared
7de6ba7a 628lt_host_flags
5213506e
RW
629OTOOL64
630OTOOL
631LIPO
632NMEDIT
633DSYMUTIL
5213506e
RW
634OBJDUMP
635LN_S
636NM
637ac_ct_DUMPBIN
638DUMPBIN
5213506e
RW
639LIBTOOL
640RANLIB
641AR
642AS
66dbcf2d
RO
643HAVE_HWCAP_FALSE
644HAVE_HWCAP_TRUE
645HWCAP_LDFLAGS
646LD
647FGREP
648SED
5213506e 649SECTION_FLAGS
ee95f928
BS
650LIBGFOR_MINIMAL_FALSE
651LIBGFOR_MINIMAL_TRUE
49ea7a0e
RO
652LIBGFOR_USE_SYMVER_SUN_FALSE
653LIBGFOR_USE_SYMVER_SUN_TRUE
654LIBGFOR_USE_SYMVER_GNU_FALSE
655LIBGFOR_USE_SYMVER_GNU_TRUE
5213506e
RW
656LIBGFOR_USE_SYMVER_FALSE
657LIBGFOR_USE_SYMVER_TRUE
658AM_CFLAGS
659AM_FCFLAGS
21be0a5a
JB
660toolexeclibdir
661toolexecdir
662EGREP
663GREP
664CPP
5213506e
RW
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
c20fdb91 668am__nodep
5213506e
RW
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
675OBJEXT
676EXEEXT
677ac_ct_CC
678CPPFLAGS
679LDFLAGS
680CFLAGS
681CC
5213506e
RW
682multi_basedir
683MAINT
684MAINTAINER_MODE_FALSE
685MAINTAINER_MODE_TRUE
686am__untar
687am__tar
688AMTAR
689am__leading_dot
690SET_MAKE
691AWK
692mkdir_p
693MKDIR_P
694INSTALL_STRIP_PROGRAM
695STRIP
696install_sh
697MAKEINFO
698AUTOHEADER
699AUTOMAKE
700AUTOCONF
701ACLOCAL
702VERSION
703PACKAGE
704CYGPATH_W
705am__isrc
706INSTALL_DATA
707INSTALL_SCRIPT
708INSTALL_PROGRAM
60858d8a 709target_noncanonical
5213506e
RW
710target_os
711target_vendor
712target_cpu
713target
714host_os
715host_vendor
716host_cpu
717host
718onestep
719onestep_FALSE
720onestep_TRUE
721target_subdir
722host_subdir
723build_subdir
724build_libsubdir
725build_os
726build_vendor
727build_cpu
728build
729target_alias
730host_alias
731build_alias
732LIBS
733ECHO_T
734ECHO_N
735ECHO_C
736DEFS
737mandir
738localedir
739libdir
740psdir
741pdfdir
742dvidir
743htmldir
744infodir
745docdir
746oldincludedir
747includedir
748localstatedir
749sharedstatedir
750sysconfdir
751datadir
752datarootdir
753libexecdir
754sbindir
755bindir
756program_transform_name
757prefix
758exec_prefix
759PACKAGE_URL
760PACKAGE_BUGREPORT
761PACKAGE_STRING
762PACKAGE_VERSION
763PACKAGE_TARNAME
764PACKAGE_NAME
765PATH_SEPARATOR
766SHELL'
6de9cd9a 767ac_subst_files=''
5213506e
RW
768ac_user_opts='
769enable_option_checking
770with_build_libsubdir
771enable_version_specific_runtime_libs
772enable_intermodule
773enable_maintainer_mode
774enable_multilib
775enable_dependency_tracking
26724ef9 776enable_cet
bf382f5f 777enable_symvers
66dbcf2d 778with_gnu_ld
5213506e
RW
779enable_shared
780enable_static
781with_pic
782enable_fast_install
5213506e
RW
783enable_libtool_lock
784enable_largefile
87e6d9dc 785enable_libquadmath_support
3c36aa6b 786with_gcc_major_version_only
5213506e
RW
787'
788 ac_precious_vars='build_alias
789host_alias
790target_alias
21be0a5a
JB
791CC
792CFLAGS
793LDFLAGS
794LIBS
5213506e 795CPPFLAGS
21be0a5a 796CPP
5213506e 797FC
21be0a5a 798FCFLAGS'
5213506e 799
6de9cd9a
DN
800
801# Initialize some variables set by options.
802ac_init_help=
803ac_init_version=false
5213506e
RW
804ac_unrecognized_opts=
805ac_unrecognized_sep=
6de9cd9a
DN
806# The variables have the same names as the options, with
807# dashes changed to underlines.
808cache_file=/dev/null
809exec_prefix=NONE
810no_create=
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
819verbose=
820x_includes=NONE
821x_libraries=NONE
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 828# (The list follows the same order as the GNU Coding Standards.)
6de9cd9a
DN
829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
5213506e
RW
832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
6de9cd9a
DN
834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
6de9cd9a
DN
837includedir='${prefix}/include'
838oldincludedir='/usr/include'
5213506e
RW
839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
6de9cd9a
DN
848
849ac_prev=
5213506e 850ac_dashdash=
6de9cd9a
DN
851for ac_option
852do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
5213506e 855 eval $ac_prev=\$ac_option
6de9cd9a
DN
856 ac_prev=
857 continue
858 fi
859
5213506e
RW
860 case $ac_option in
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *) ac_optarg=yes ;;
863 esac
6de9cd9a
DN
864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
5213506e
RW
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
6de9cd9a
DN
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
5213506e 891 -datadir | --datadir | --datadi | --datad)
6de9cd9a 892 ac_prev=datadir ;;
5213506e 893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6de9cd9a
DN
894 datadir=$ac_optarg ;;
895
5213506e
RW
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
6de9cd9a 903 -disable-* | --disable-*)
5213506e 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6de9cd9a 905 # Reject names that are not valid shell variable names.
5213506e
RW
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912"enable_$ac_useropt"
913"*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
6de9cd9a
DN
928
929 -enable-* | --enable-*)
5213506e 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6de9cd9a 931 # Reject names that are not valid shell variable names.
5213506e
RW
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938"enable_$ac_useropt"
939"*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
38d24731 942 esac
5213506e 943 eval enable_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
5213506e
RW
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
6de9cd9a
DN
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
5213506e
RW
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
6de9cd9a 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1006 | --localstate | --localstat | --localsta | --localst | --locals)
6de9cd9a
DN
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6de9cd9a
DN
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
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 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
5213506e
RW
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
6de9cd9a
DN
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
5213506e 1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
6de9cd9a 1135 # Reject names that are not valid shell variable names.
5213506e
RW
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142"with_$ac_useropt"
1143"*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
38d24731 1146 esac
5213506e 1147 eval with_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
1148
1149 -without-* | --without-*)
5213506e 1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6de9cd9a 1151 # Reject names that are not valid shell variable names.
5213506e
RW
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158"with_$ac_useropt"
1159"*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
6de9cd9a
DN
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
5213506e
RW
1183 -*) as_fn_error "unrecognized option: \`$ac_option'
1184Try \`$0 --help' for more information."
6de9cd9a
DN
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
5213506e
RW
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
6de9cd9a
DN
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
5213506e 1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6de9cd9a 1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6de9cd9a
DN
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203 ;;
1204
1205 esac
1206done
1207
1208if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1210 as_fn_error "missing argument to $ac_option"
6de9cd9a
DN
1211fi
1212
5213506e
RW
1213if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
38d24731 1218 esac
5213506e 1219fi
38d24731 1220
5213506e
RW
1221# Check all directory arguments for consistency.
1222for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
38d24731 1226do
5213506e
RW
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
38d24731 1235 case $ac_val in
5213506e
RW
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6de9cd9a 1238 esac
5213506e 1239 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
6de9cd9a
DN
1240done
1241
1242# There might be people who depend on the old broken behavior: `$host'
1243# used to hold the argument of --host etc.
1244# FIXME: To remove some day.
1245build=$build_alias
1246host=$host_alias
1247target=$target_alias
1248
1249# FIXME: To remove some day.
1250if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
5213506e 1253 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
6de9cd9a
DN
1254 If a cross compiler is detected then cross compile mode will be used." >&2
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258fi
1259
1260ac_tool_prefix=
1261test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263test "$silent" = yes && exec 6>/dev/null
1264
1265
5213506e
RW
1266ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267ac_ls_di=`ls -di .` &&
1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error "working directory cannot be determined"
1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error "pwd does not report name of working directory"
1272
1273
6de9cd9a
DN
1274# Find the source files, if location was not specified.
1275if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
5213506e
RW
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283$as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
6de9cd9a 1301 srcdir=$ac_confdir
5213506e 1302 if test ! -r "$srcdir/$ac_unique_file"; then
6de9cd9a
DN
1303 srcdir=..
1304 fi
1305else
1306 ac_srcdir_defaulted=no
1307fi
5213506e
RW
1308if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1311fi
1312ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1315 pwd)`
1316# When building in place, set srcdir=.
1317if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319fi
1320# Remove unnecessary trailing slashes from srcdir.
1321# Double slashes in file names in object file debugging info
1322# mess up M-x gdb in Emacs.
1323case $srcdir in
1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325esac
1326for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331done
6de9cd9a
DN
1332
1333#
1334# Report the --help message.
1335#
1336if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
0dce3ca1 1340\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
6de9cd9a
DN
1341
1342Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347Defaults for the options are specified in brackets.
1348
1349Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
6de9cd9a
DN
1360Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1362 [$ac_default_prefix]
6de9cd9a 1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1364 [PREFIX]
6de9cd9a
DN
1365
1366By default, \`make install' will install all the files in
1367\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369for instance \`--prefix=\$HOME'.
1370
1371For better control, use the options below.
1372
1373Fine tuning of the installation directories:
5213506e
RW
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
6de9cd9a
DN
1393_ACEOF
1394
1395 cat <<\_ACEOF
1396
1397Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401
1402System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 1405 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
1406_ACEOF
1407fi
1408
1409if test -n "$ac_init_help"; then
1410 case $ac_init_help in
0dce3ca1 1411 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
6de9cd9a
DN
1412 esac
1413 cat <<\_ACEOF
1414
1415Optional Features:
5213506e 1416 --disable-option-checking ignore unrecognized --enable/--with options
6de9cd9a
DN
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87e6d9dc
TB
1419 --enable-version-specific-runtime-libs
1420 specify that runtime libraries should be installed
1421 in a compiler-specific directory
b808ac33 1422 --enable-intermodule build the library in one step
6de9cd9a
DN
1423 --enable-maintainer-mode enable make rules and dependencies not useful
1424 (and sometimes confusing) to the casual installer
96b8a615 1425 --enable-multilib build many library versions (default)
679c0f9a
TT
1426 --disable-dependency-tracking speeds up one-time build
1427 --enable-dependency-tracking do not reject slow dependency extractors
a0e1df88 1428 --enable-cet enable Intel CET in target libraries [default=no]
bf382f5f 1429 --disable-symvers disable symbol versioning for libgfortran
5213506e
RW
1430 --enable-shared[=PKGS] build shared libraries [default=yes]
1431 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
6de9cd9a 1434 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 1435 --disable-largefile omit support for large files
87e6d9dc
TB
1436 --disable-libquadmath-support
1437 disable libquadmath support for Fortran
6de9cd9a
DN
1438
1439Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1442 --with-build-libsubdir=DIR Directory where to find libraries for build system
66dbcf2d 1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1cf3d07d
SE
1444 --with-pic try to use only PIC/non-PIC objects [default=use
1445 both]
3c36aa6b
JJ
1446 --with-gcc-major-version-only
1447 use only GCC major number in filesystem paths
6de9cd9a
DN
1448
1449Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
5213506e
RW
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1cf3d07d 1457 CPP C preprocessor
c7a35fe9
AS
1458 FC Fortran compiler command
1459 FCFLAGS Fortran compiler flags
6de9cd9a
DN
1460
1461Use these variables to override the choices made by `configure' or to help
1462it to find libraries and programs with nonstandard names/locations.
1463
5213506e
RW
1464Report bugs to the package provider.
1465GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1466General help using GNU software: <http://www.gnu.org/gethelp/>.
6de9cd9a 1467_ACEOF
5213506e 1468ac_status=$?
6de9cd9a
DN
1469fi
1470
1471if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
6de9cd9a 1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1474 test -d "$ac_dir" ||
1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 continue
6de9cd9a
DN
1477 ac_builddir=.
1478
5213506e
RW
1479case "$ac_dir" in
1480.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481*)
1482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483 # A ".." for each directory in $ac_dir_suffix.
1484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485 case $ac_top_builddir_sub in
1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 esac ;;
1489esac
1490ac_abs_top_builddir=$ac_pwd
1491ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492# for backward compatibility:
1493ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
1494
1495case $srcdir in
5213506e 1496 .) # We are building in place.
6de9cd9a 1497 ac_srcdir=.
5213506e
RW
1498 ac_top_srcdir=$ac_top_builddir_sub
1499 ac_abs_top_srcdir=$ac_pwd ;;
1500 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 1501 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1502 ac_top_srcdir=$srcdir
1503 ac_abs_top_srcdir=$srcdir ;;
1504 *) # Relative name.
1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506 ac_top_srcdir=$ac_top_build_prefix$srcdir
1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
78511f8b 1508esac
5213506e
RW
1509ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
1511 cd "$ac_dir" || { ac_status=$?; continue; }
1512 # Check for guested configure.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure" --help=recursive
6de9cd9a 1519 else
5213506e
RW
1520 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 fi || ac_status=$?
1522 cd "$ac_pwd" || { ac_status=$?; break; }
6de9cd9a
DN
1523 done
1524fi
1525
5213506e 1526test -n "$ac_init_help" && exit $ac_status
6de9cd9a
DN
1527if $ac_init_version; then
1528 cat <<\_ACEOF
0dce3ca1 1529GNU Fortran Runtime Library configure 0.3
5213506e 1530generated by GNU Autoconf 2.64
6de9cd9a 1531
5213506e 1532Copyright (C) 2009 Free Software Foundation, Inc.
6de9cd9a
DN
1533This configure script is free software; the Free Software Foundation
1534gives unlimited permission to copy, distribute and modify it.
1535_ACEOF
5213506e 1536 exit
6de9cd9a 1537fi
6de9cd9a 1538
5213506e
RW
1539## ------------------------ ##
1540## Autoconf initialization. ##
1541## ------------------------ ##
6de9cd9a 1542
5213506e
RW
1543# ac_fn_c_try_compile LINENO
1544# --------------------------
1545# Try to compile conftest.$ac_ext, and return whether this succeeded.
1546ac_fn_c_try_compile ()
1547{
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554esac
1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556$as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570else
1571 $as_echo "$as_me: failed program was:" >&5
1572sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1573
5213506e
RW
1574 ac_retval=1
1575fi
1576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577 return $ac_retval
1578
1579} # ac_fn_c_try_compile
1580
21be0a5a
JB
1581# ac_fn_c_try_cpp LINENO
1582# ----------------------
1583# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584ac_fn_c_try_cpp ()
6de9cd9a 1585{
5213506e 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1587 if { { ac_try="$ac_cpp conftest.$ac_ext"
5213506e
RW
1588case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
21be0a5a 1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5213506e
RW
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21be0a5a
JB
1602 test $ac_status = 0; } >/dev/null && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5213506e 1604 test ! -s conftest.err
5213506e
RW
1605 }; then :
1606 ac_retval=0
1607else
1608 $as_echo "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1610
21be0a5a 1611 ac_retval=1
5213506e 1612fi
5213506e
RW
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 return $ac_retval
6de9cd9a 1615
21be0a5a 1616} # ac_fn_c_try_cpp
6de9cd9a 1617
21be0a5a 1618# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5213506e 1619# -------------------------------------------------------
21be0a5a
JB
1620# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1621# the include files in INCLUDES and setting the cache variable VAR
1622# accordingly.
1623ac_fn_c_check_header_mongrel ()
5213506e
RW
1624{
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1626 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
5213506e
RW
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628$as_echo_n "checking for $2... " >&6; }
1629if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1630 $as_echo_n "(cached) " >&6
21be0a5a
JB
1631fi
1632eval ac_res=\$$3
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634$as_echo "$ac_res" >&6; }
5213506e 1635else
21be0a5a
JB
1636 # Is the header compilable?
1637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1638$as_echo_n "checking $2 usability... " >&6; }
1639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e
RW
1640/* end confdefs.h. */
1641$4
1642#include <$2>
1643_ACEOF
1644if ac_fn_c_try_compile "$LINENO"; then :
21be0a5a 1645 ac_header_compiler=yes
5213506e 1646else
21be0a5a 1647 ac_header_compiler=no
5213506e
RW
1648fi
1649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21be0a5a
JB
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1651$as_echo "$ac_header_compiler" >&6; }
6de9cd9a 1652
21be0a5a
JB
1653# Is the header present?
1654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1655$as_echo_n "checking $2 presence... " >&6; }
1656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657/* end confdefs.h. */
1658#include <$2>
1659_ACEOF
1660if ac_fn_c_try_cpp "$LINENO"; then :
1661 ac_header_preproc=yes
1662else
1663 ac_header_preproc=no
1664fi
1665rm -f conftest.err conftest.$ac_ext
1666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1667$as_echo "$ac_header_preproc" >&6; }
6de9cd9a 1668
21be0a5a
JB
1669# So? What about this header?
1670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1671 yes:no: )
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1673$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1675$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1676 ;;
1677 no:yes:* )
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1679$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1681$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1683$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1685$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1688 ;;
5213506e 1689esac
21be0a5a
JB
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691$as_echo_n "checking for $2... " >&6; }
1692if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1693 $as_echo_n "(cached) " >&6
5213506e 1694else
21be0a5a
JB
1695 eval "$3=\$ac_header_compiler"
1696fi
1697eval ac_res=\$$3
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699$as_echo "$ac_res" >&6; }
5213506e
RW
1700fi
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 1702
21be0a5a 1703} # ac_fn_c_check_header_mongrel
6de9cd9a 1704
5213506e
RW
1705# ac_fn_c_try_run LINENO
1706# ----------------------
1707# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708# that executables *can* be run.
1709ac_fn_c_try_run ()
1710{
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1713case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1733 ac_retval=0
1734else
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1738
5213506e
RW
1739 ac_retval=$ac_status
1740fi
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 return $ac_retval
6de9cd9a 1744
5213506e 1745} # ac_fn_c_try_run
6de9cd9a 1746
21be0a5a
JB
1747# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748# -------------------------------------------------------
1749# Tests whether HEADER exists and can be compiled using the include files in
1750# INCLUDES, setting the cache variable VAR accordingly.
1751ac_fn_c_check_header_compile ()
1752{
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755$as_echo_n "checking for $2... " >&6; }
1756if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1757 $as_echo_n "(cached) " >&6
1758else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h. */
1761$4
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_compile "$LINENO"; then :
1765 eval "$3=yes"
1766else
1767 eval "$3=no"
1768fi
1769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770fi
1771eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773$as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775
1776} # ac_fn_c_check_header_compile
1777
1778# ac_fn_c_try_link LINENO
1779# -----------------------
1780# Try to link conftest.$ac_ext, and return whether this succeeded.
1781ac_fn_c_try_link ()
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext conftest$ac_exeext
1785 if { { ac_try="$ac_link"
1786case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1798 fi
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest$ac_exeext && {
1804 test "$cross_compiling" = yes ||
1805 $as_test_x conftest$ac_exeext
1806 }; then :
1807 ac_retval=0
1808else
1809 $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=1
1813fi
1814 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816 # interfere with the next link command; also delete a directory that is
1817 # left behind by Apple's compiler. We do this before executing the actions.
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 return $ac_retval
1821
1822} # ac_fn_c_try_link
1823
5213506e
RW
1824# ac_fn_c_check_func LINENO FUNC VAR
1825# ----------------------------------
1826# Tests whether FUNC exists, setting the cache variable VAR accordingly
1827ac_fn_c_check_func ()
1828{
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834else
1835 if test x$gcc_no_link = xyes; then
1836 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1837fi
1838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839/* end confdefs.h. */
1840/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842#define $2 innocuous_$2
6de9cd9a 1843
5213506e
RW
1844/* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $2 (); below.
1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847 <limits.h> exists even on freestanding compilers. */
6de9cd9a 1848
5213506e
RW
1849#ifdef __STDC__
1850# include <limits.h>
1851#else
1852# include <assert.h>
1853#endif
6de9cd9a 1854
5213506e
RW
1855#undef $2
1856
1857/* Override any GCC internal prototype to avoid an error.
1858 Use char because int might match the return type of a GCC
1859 builtin and then its argument prototype would still apply. */
1860#ifdef __cplusplus
1861extern "C"
1862#endif
1863char $2 ();
1864/* The GNU C library defines this for functions which it implements
1865 to always fail with ENOSYS. Some functions are actually named
1866 something starting with __ and the normal name is an alias. */
1867#if defined __stub_$2 || defined __stub___$2
1868choke me
1869#endif
1870
1871int
1872main ()
38d24731 1873{
5213506e
RW
1874return $2 ();
1875 ;
1876 return 0;
38d24731 1877}
5213506e
RW
1878_ACEOF
1879if ac_fn_c_try_link "$LINENO"; then :
1880 eval "$3=yes"
1881else
1882 eval "$3=no"
1883fi
1884rm -f core conftest.err conftest.$ac_objext \
1885 conftest$ac_exeext conftest.$ac_ext
1886fi
1887eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 1891
5213506e 1892} # ac_fn_c_check_func
6de9cd9a 1893
5213506e
RW
1894# ac_fn_fc_try_compile LINENO
1895# ---------------------------
1896# Try to compile conftest.$ac_ext, and return whether this succeeded.
1897ac_fn_fc_try_compile ()
1898{
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext
1901 if { { ac_try="$ac_compile"
1902case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905esac
1906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907$as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_compile") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1914 fi
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_fc_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest.$ac_objext; then :
1920 ac_retval=0
1921else
1922 $as_echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1924
5213506e
RW
1925 ac_retval=1
1926fi
1927 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928 return $ac_retval
6de9cd9a 1929
5213506e 1930} # ac_fn_fc_try_compile
6de9cd9a 1931
5213506e
RW
1932# ac_fn_fc_try_link LINENO
1933# ------------------------
1934# Try to link conftest.$ac_ext, and return whether this succeeded.
1935ac_fn_fc_try_link ()
1936{
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext conftest$ac_exeext
1939 if { { ac_try="$ac_link"
1940case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943esac
1944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945$as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>conftest.err
1947 ac_status=$?
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1952 fi
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_fc_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest$ac_exeext && {
1958 test "$cross_compiling" = yes ||
1959 $as_test_x conftest$ac_exeext
1960 }; then :
1961 ac_retval=0
1962else
1963 $as_echo "$as_me: failed program was:" >&5
1964sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1965
5213506e
RW
1966 ac_retval=1
1967fi
1968 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970 # interfere with the next link command; also delete a directory that is
1971 # left behind by Apple's compiler. We do this before executing the actions.
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 return $ac_retval
6de9cd9a 1975
5213506e 1976} # ac_fn_fc_try_link
6de9cd9a 1977
5213506e
RW
1978# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1979# -------------------------------------------
1980# Tests whether TYPE exists after having included INCLUDES, setting cache
1981# variable VAR accordingly.
1982ac_fn_c_check_type ()
1983{
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986$as_echo_n "checking for $2... " >&6; }
1987if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 $as_echo_n "(cached) " >&6
1989else
1990 eval "$3=no"
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h. */
1993$4
1994int
1995main ()
1996{
1997if (sizeof ($2))
1998 return 0;
1999 ;
2000 return 0;
2001}
6de9cd9a 2002_ACEOF
5213506e
RW
2003if ac_fn_c_try_compile "$LINENO"; then :
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h. */
2006$4
2007int
2008main ()
2009{
2010if (sizeof (($2)))
2011 return 0;
2012 ;
2013 return 0;
2014}
6de9cd9a 2015_ACEOF
5213506e 2016if ac_fn_c_try_compile "$LINENO"; then :
6de9cd9a 2017
5213506e
RW
2018else
2019 eval "$3=yes"
2020fi
2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022fi
2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024fi
2025eval ac_res=\$$3
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027$as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 2029
5213506e 2030} # ac_fn_c_check_type
6de9cd9a 2031
21be0a5a
JB
2032# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2033# --------------------------------------------
2034# Tries to find the compile-time value of EXPR in a program that includes
2035# INCLUDES, setting VAR accordingly. Returns whether the value could be
2036# computed
2037ac_fn_c_compute_int ()
5213506e
RW
2038{
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c13e029b
PB
2040 if test "$cross_compiling" = yes; then
2041 # Depending upon the size, compute the lo and hi bounds.
2042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2043/* end confdefs.h. */
c13e029b 2044$4
5213506e
RW
2045int
2046main ()
2047{
c13e029b 2048static int test_array [1 - 2 * !(($2) >= 0)];
5213506e 2049test_array [0] = 0
6de9cd9a 2050
5213506e
RW
2051 ;
2052 return 0;
2053}
2054_ACEOF
2055if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2056 ac_lo=0 ac_mid=0
2057 while :; do
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2059/* end confdefs.h. */
c13e029b 2060$4
5213506e
RW
2061int
2062main ()
2063{
c13e029b 2064static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5213506e 2065test_array [0] = 0
6de9cd9a 2066
5213506e
RW
2067 ;
2068 return 0;
2069}
2070_ACEOF
2071if ac_fn_c_try_compile "$LINENO"; then :
c13e029b 2072 ac_hi=$ac_mid; break
5213506e 2073else
c13e029b
PB
2074 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2075 if test $ac_lo -le $ac_mid; then
2076 ac_lo= ac_hi=
2077 break
2078 fi
2079 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5213506e
RW
2080fi
2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2082 done
2083else
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086$4
2087int
2088main ()
2089{
2090static int test_array [1 - 2 * !(($2) < 0)];
2091test_array [0] = 0
2092
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_hi=-1 ac_mid=-1
2099 while :; do
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h. */
2102$4
2103int
2104main ()
2105{
2106static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2107test_array [0] = 0
2108
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_lo=$ac_mid; break
2115else
2116 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2117 if test $ac_mid -le $ac_hi; then
2118 ac_lo= ac_hi=
2119 break
2120 fi
2121 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
5213506e
RW
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b 2124 done
d72a3ac1 2125else
c13e029b 2126 ac_lo= ac_hi=
5213506e 2127fi
c13e029b 2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d72a3ac1 2129fi
c13e029b
PB
2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131# Binary search between lo and hi bounds.
2132while test "x$ac_lo" != "x$ac_hi"; do
2133 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2135/* end confdefs.h. */
c13e029b 2136$4
5213506e
RW
2137int
2138main ()
2139{
c13e029b 2140static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5213506e 2141test_array [0] = 0
6de9cd9a 2142
5213506e
RW
2143 ;
2144 return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2148 ac_hi=$ac_mid
2149else
2150 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
5213506e
RW
2151fi
2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2153done
2154case $ac_lo in #((
2155?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2156'') ac_retval=1 ;;
2157esac
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160/* end confdefs.h. */
2161$4
2162static long int longval () { return $2; }
2163static unsigned long int ulongval () { return $2; }
2164#include <stdio.h>
2165#include <stdlib.h>
2166int
2167main ()
2168{
6de9cd9a 2169
c13e029b
PB
2170 FILE *f = fopen ("conftest.val", "w");
2171 if (! f)
2172 return 1;
2173 if (($2) < 0)
2174 {
2175 long int i = longval ();
2176 if (i != ($2))
2177 return 1;
2178 fprintf (f, "%ld", i);
2179 }
2180 else
2181 {
2182 unsigned long int i = ulongval ();
2183 if (i != ($2))
2184 return 1;
2185 fprintf (f, "%lu", i);
2186 }
2187 /* Do not output a trailing newline, as this causes \r\n confusion
2188 on some platforms. */
2189 return ferror (f) || fclose (f) != 0;
2190
2191 ;
2192 return 0;
2193}
2194_ACEOF
2195if ac_fn_c_try_run "$LINENO"; then :
2196 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
5213506e 2197else
c13e029b 2198 ac_retval=1
d72a3ac1 2199fi
c13e029b
PB
2200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2201 conftest.$ac_objext conftest.beam conftest.$ac_ext
2202rm -f conftest.val
2203
2204 fi
5213506e 2205 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
c13e029b 2206 return $ac_retval
6de9cd9a 2207
c13e029b 2208} # ac_fn_c_compute_int
6de9cd9a 2209
5213506e
RW
2210# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2211# ----------------------------------------------------
2212# Tries to find if the field MEMBER exists in type AGGR, after including
2213# INCLUDES, setting cache variable VAR accordingly.
2214ac_fn_c_check_member ()
2215{
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2218$as_echo_n "checking for $2.$3... " >&6; }
2219if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2220 $as_echo_n "(cached) " >&6
2221else
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223/* end confdefs.h. */
2224$5
2225int
2226main ()
2227{
2228static $2 ac_aggr;
2229if (ac_aggr.$3)
2230return 0;
2231 ;
2232 return 0;
2233}
2234_ACEOF
2235if ac_fn_c_try_compile "$LINENO"; then :
2236 eval "$4=yes"
2237else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239/* end confdefs.h. */
2240$5
2241int
2242main ()
2243{
2244static $2 ac_aggr;
2245if (sizeof ac_aggr.$3)
2246return 0;
2247 ;
2248 return 0;
2249}
2250_ACEOF
2251if ac_fn_c_try_compile "$LINENO"; then :
2252 eval "$4=yes"
2253else
2254 eval "$4=no"
2255fi
2256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257fi
2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259fi
2260eval ac_res=\$$4
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262$as_echo "$ac_res" >&6; }
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 2264
5213506e
RW
2265} # ac_fn_c_check_member
2266cat >config.log <<_ACEOF
2267This file contains any messages produced by compilers while
2268running configure, to aid debugging if configure makes a mistake.
6de9cd9a 2269
5213506e
RW
2270It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2271generated by GNU Autoconf 2.64. Invocation command line was
6de9cd9a 2272
5213506e 2273 $ $0 $@
6de9cd9a 2274
5213506e
RW
2275_ACEOF
2276exec 5>>config.log
2277{
2278cat <<_ASUNAME
2279## --------- ##
2280## Platform. ##
2281## --------- ##
6de9cd9a 2282
5213506e
RW
2283hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2284uname -m = `(uname -m) 2>/dev/null || echo unknown`
2285uname -r = `(uname -r) 2>/dev/null || echo unknown`
2286uname -s = `(uname -s) 2>/dev/null || echo unknown`
2287uname -v = `(uname -v) 2>/dev/null || echo unknown`
6de9cd9a 2288
5213506e
RW
2289/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2290/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
6de9cd9a 2291
5213506e
RW
2292/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2293/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2294/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2295/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2296/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2297/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2298/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
6de9cd9a 2299
5213506e 2300_ASUNAME
18c04407 2301
5213506e
RW
2302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303for as_dir in $PATH
2304do
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 $as_echo "PATH: $as_dir"
2308 done
2309IFS=$as_save_IFS
18c04407 2310
5213506e 2311} >&5
18c04407 2312
5213506e 2313cat >&5 <<_ACEOF
6de9cd9a
DN
2314
2315
5213506e
RW
2316## ----------- ##
2317## Core tests. ##
2318## ----------- ##
78511f8b 2319
5213506e 2320_ACEOF
38d24731 2321
96b8a615 2322
5213506e
RW
2323# Keep a trace of the command line.
2324# Strip out --no-create and --no-recursion so they do not pile up.
2325# Strip out --silent because we don't want to record it for future runs.
2326# Also quote any args containing shell meta-characters.
2327# Make two passes to allow for proper duplicate-argument suppression.
2328ac_configure_args=
2329ac_configure_args0=
2330ac_configure_args1=
2331ac_must_keep_next=false
2332for ac_pass in 1 2
2333do
2334 for ac_arg
2335 do
2336 case $ac_arg in
2337 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2339 | -silent | --silent | --silen | --sile | --sil)
2340 continue ;;
2341 *\'*)
2342 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2343 esac
2344 case $ac_pass in
2345 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2346 2)
2347 as_fn_append ac_configure_args1 " '$ac_arg'"
2348 if test $ac_must_keep_next = true; then
2349 ac_must_keep_next=false # Got value, back to normal.
2350 else
2351 case $ac_arg in
2352 *=* | --config-cache | -C | -disable-* | --disable-* \
2353 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2354 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2355 | -with-* | --with-* | -without-* | --without-* | --x)
2356 case "$ac_configure_args0 " in
2357 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2358 esac
2359 ;;
2360 -* ) ac_must_keep_next=true ;;
2361 esac
2362 fi
2363 as_fn_append ac_configure_args " '$ac_arg'"
2364 ;;
2365 esac
2366 done
6de9cd9a 2367done
5213506e
RW
2368{ ac_configure_args0=; unset ac_configure_args0;}
2369{ ac_configure_args1=; unset ac_configure_args1;}
96b8a615 2370
5213506e
RW
2371# When interrupted or exit'd, cleanup temporary files, and complete
2372# config.log. We remove comments because anyway the quotes in there
2373# would cause problems or look ugly.
2374# WARNING: Use '\'' to represent an apostrophe within the trap.
2375# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2376trap 'exit_status=$?
2377 # Save into config.log some information that might help in debugging.
2378 {
2379 echo
96b8a615 2380
5213506e
RW
2381 cat <<\_ASBOX
2382## ---------------- ##
2383## Cache variables. ##
2384## ---------------- ##
2385_ASBOX
2386 echo
2387 # The following way of writing the cache mishandles newlines in values,
2388(
2389 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2390 eval ac_val=\$$ac_var
2391 case $ac_val in #(
2392 *${as_nl}*)
2393 case $ac_var in #(
2394 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2395$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2396 esac
2397 case $ac_var in #(
2398 _ | IFS | as_nl) ;; #(
2399 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2400 *) { eval $ac_var=; unset $ac_var;} ;;
2401 esac ;;
2402 esac
2403 done
2404 (set) 2>&1 |
2405 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2406 *${as_nl}ac_space=\ *)
2407 sed -n \
2408 "s/'\''/'\''\\\\'\'''\''/g;
2409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2410 ;; #(
2411 *)
2412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2413 ;;
2414 esac |
2415 sort
2416)
2417 echo
2418
2419 cat <<\_ASBOX
2420## ----------------- ##
2421## Output variables. ##
2422## ----------------- ##
2423_ASBOX
2424 echo
2425 for ac_var in $ac_subst_vars
2426 do
2427 eval ac_val=\$$ac_var
2428 case $ac_val in
2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 esac
2431 $as_echo "$ac_var='\''$ac_val'\''"
2432 done | sort
2433 echo
2434
2435 if test -n "$ac_subst_files"; then
2436 cat <<\_ASBOX
2437## ------------------- ##
2438## File substitutions. ##
2439## ------------------- ##
2440_ASBOX
2441 echo
2442 for ac_var in $ac_subst_files
2443 do
2444 eval ac_val=\$$ac_var
2445 case $ac_val in
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447 esac
2448 $as_echo "$ac_var='\''$ac_val'\''"
2449 done | sort
2450 echo
2451 fi
2452
2453 if test -s confdefs.h; then
2454 cat <<\_ASBOX
2455## ----------- ##
2456## confdefs.h. ##
2457## ----------- ##
2458_ASBOX
2459 echo
2460 cat confdefs.h
2461 echo
2462 fi
2463 test "$ac_signal" != 0 &&
2464 $as_echo "$as_me: caught signal $ac_signal"
2465 $as_echo "$as_me: exit $exit_status"
2466 } >&5
2467 rm -f core *.core core.conftest.* &&
2468 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2469 exit $exit_status
2470' 0
2471for ac_signal in 1 2 13 15; do
2472 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2473done
2474ac_signal=0
2475
2476# confdefs.h avoids OS command line length limits that DEFS can exceed.
2477rm -f -r conftest* confdefs.h
2478
2479$as_echo "/* confdefs.h */" > confdefs.h
2480
2481# Predefined preprocessor variables.
2482
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_NAME "$PACKAGE_NAME"
2485_ACEOF
2486
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2489_ACEOF
2490
2491cat >>confdefs.h <<_ACEOF
2492#define PACKAGE_VERSION "$PACKAGE_VERSION"
2493_ACEOF
2494
2495cat >>confdefs.h <<_ACEOF
2496#define PACKAGE_STRING "$PACKAGE_STRING"
2497_ACEOF
2498
2499cat >>confdefs.h <<_ACEOF
2500#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2501_ACEOF
2502
2503cat >>confdefs.h <<_ACEOF
2504#define PACKAGE_URL "$PACKAGE_URL"
2505_ACEOF
2506
2507
2508# Let the site file select an alternate cache file if it wants to.
2509# Prefer an explicitly selected file to automatically selected ones.
2510ac_site_file1=NONE
2511ac_site_file2=NONE
2512if test -n "$CONFIG_SITE"; then
2513 ac_site_file1=$CONFIG_SITE
2514elif test "x$prefix" != xNONE; then
2515 ac_site_file1=$prefix/share/config.site
2516 ac_site_file2=$prefix/etc/config.site
2517else
2518 ac_site_file1=$ac_default_prefix/share/config.site
2519 ac_site_file2=$ac_default_prefix/etc/config.site
2520fi
2521for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2522do
2523 test "x$ac_site_file" = xNONE && continue
2524 if test -r "$ac_site_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2526$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2527 sed 's/^/| /' "$ac_site_file" >&5
2528 . "$ac_site_file"
2529 fi
2530done
2531
2532if test -r "$cache_file"; then
2533 # Some versions of bash will fail to source /dev/null (special
2534 # files actually), so we avoid doing that.
2535 if test -f "$cache_file"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2537$as_echo "$as_me: loading cache $cache_file" >&6;}
2538 case $cache_file in
2539 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2540 *) . "./$cache_file";;
2541 esac
2542 fi
2543else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2545$as_echo "$as_me: creating cache $cache_file" >&6;}
2546 >$cache_file
2547fi
2548
74544378
JB
2549as_fn_append ac_header_list " unistd.h"
2550as_fn_append ac_header_list " sys/time.h"
2551as_fn_append ac_header_list " sys/times.h"
2552as_fn_append ac_header_list " sys/resource.h"
2553as_fn_append ac_header_list " sys/types.h"
2554as_fn_append ac_header_list " sys/stat.h"
2555as_fn_append ac_header_list " sys/wait.h"
2556as_fn_append ac_header_list " floatingpoint.h"
2557as_fn_append ac_header_list " ieeefp.h"
2558as_fn_append ac_header_list " fenv.h"
2559as_fn_append ac_header_list " fptrap.h"
fa86f4f9 2560as_fn_append ac_header_list " fpxcp.h"
74544378
JB
2561as_fn_append ac_header_list " pwd.h"
2562as_fn_append ac_header_list " complex.h"
9cbecd06 2563as_fn_append ac_header_list " xlocale.h"
74544378
JB
2564as_fn_append ac_func_list " getrusage"
2565as_fn_append ac_func_list " times"
2566as_fn_append ac_func_list " mkstemp"
2567as_fn_append ac_func_list " strtof"
2568as_fn_append ac_func_list " strtold"
2569as_fn_append ac_func_list " snprintf"
2570as_fn_append ac_func_list " ftruncate"
2571as_fn_append ac_func_list " chsize"
2572as_fn_append ac_func_list " chdir"
2573as_fn_append ac_func_list " getlogin"
2574as_fn_append ac_func_list " gethostname"
2575as_fn_append ac_func_list " kill"
2576as_fn_append ac_func_list " link"
2577as_fn_append ac_func_list " symlink"
2578as_fn_append ac_func_list " sleep"
2579as_fn_append ac_func_list " ttyname"
2580as_fn_append ac_func_list " alarm"
2581as_fn_append ac_func_list " access"
2582as_fn_append ac_func_list " fork"
74544378 2583as_fn_append ac_func_list " setmode"
b5b58343 2584as_fn_append ac_func_list " fcntl"
74544378
JB
2585as_fn_append ac_func_list " gettimeofday"
2586as_fn_append ac_func_list " stat"
2587as_fn_append ac_func_list " fstat"
2588as_fn_append ac_func_list " lstat"
2589as_fn_append ac_func_list " getpwuid"
2590as_fn_append ac_func_list " vsnprintf"
2591as_fn_append ac_func_list " dup"
2592as_fn_append ac_func_list " getcwd"
2593as_fn_append ac_func_list " localtime_r"
2594as_fn_append ac_func_list " gmtime_r"
74544378
JB
2595as_fn_append ac_func_list " getpwuid_r"
2596as_fn_append ac_func_list " ttyname_r"
2597as_fn_append ac_func_list " clock_gettime"
74544378
JB
2598as_fn_append ac_func_list " getgid"
2599as_fn_append ac_func_list " getpid"
74544378
JB
2600as_fn_append ac_func_list " getuid"
2601as_fn_append ac_func_list " geteuid"
8ecd1c0d 2602as_fn_append ac_func_list " umask"
68ee9c08 2603as_fn_append ac_func_list " getegid"
227e441f 2604as_fn_append ac_func_list " secure_getenv"
68ee9c08 2605as_fn_append ac_func_list " __secure_getenv"
c20fdb91 2606as_fn_append ac_func_list " mkostemp"
4269f19c
JB
2607as_fn_append ac_func_list " strnlen"
2608as_fn_append ac_func_list " strndup"
9cbecd06
JB
2609as_fn_append ac_func_list " newlocale"
2610as_fn_append ac_func_list " freelocale"
2611as_fn_append ac_func_list " uselocale"
2612as_fn_append ac_func_list " strerror_l"
db9f46a9 2613as_fn_append ac_header_list " math.h"
5213506e
RW
2614# Check that the precious variables saved in the cache have kept the same
2615# value.
2616ac_cache_corrupted=false
2617for ac_var in $ac_precious_vars; do
2618 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2619 eval ac_new_set=\$ac_env_${ac_var}_set
2620 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2621 eval ac_new_val=\$ac_env_${ac_var}_value
2622 case $ac_old_set,$ac_new_set in
2623 set,)
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2625$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2626 ac_cache_corrupted=: ;;
2627 ,set)
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2629$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2630 ac_cache_corrupted=: ;;
2631 ,);;
2632 *)
2633 if test "x$ac_old_val" != "x$ac_new_val"; then
2634 # differences in whitespace do not lead to failure.
2635 ac_old_val_w=`echo x $ac_old_val`
2636 ac_new_val_w=`echo x $ac_new_val`
2637 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2639$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2640 ac_cache_corrupted=:
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2643$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2644 eval $ac_var=\$ac_old_val
2645 fi
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2647$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2649$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2650 fi;;
2651 esac
2652 # Pass precious variables to config.status.
2653 if test "$ac_new_set" = set; then
2654 case $ac_new_val in
2655 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2656 *) ac_arg=$ac_var=$ac_new_val ;;
2657 esac
2658 case " $ac_configure_args " in
2659 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2660 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2661 esac
2662 fi
2663done
2664if $ac_cache_corrupted; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2668$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2669 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2670fi
2671## -------------------- ##
2672## Main body of script. ##
2673## -------------------- ##
2674
2675ac_ext=c
2676ac_cpp='$CPP $CPPFLAGS'
2677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680
2681
2682
2683
2684
2685ac_config_headers="$ac_config_headers config.h"
2686
2687ac_aux_dir=
2688for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2689 for ac_t in install-sh install.sh shtool; do
2690 if test -f "$ac_dir/$ac_t"; then
2691 ac_aux_dir=$ac_dir
2692 ac_install_sh="$ac_aux_dir/$ac_t -c"
2693 break 2
2694 fi
2695 done
2696done
2697if test -z "$ac_aux_dir"; then
2698 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2699fi
2700
2701# These three variables are undocumented and unsupported,
2702# and are intended to be withdrawn in a future Autoconf release.
2703# They can cause serious problems if a builder's source tree is in a directory
2704# whose full name contains unusual characters.
2705ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2706ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2707ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2708
2709
2710# Make sure we can run config.sub.
2711$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2712 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2713
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2715$as_echo_n "checking build system type... " >&6; }
2716if test "${ac_cv_build+set}" = set; then :
2717 $as_echo_n "(cached) " >&6
2718else
2719 ac_build_alias=$build_alias
2720test "x$ac_build_alias" = x &&
2721 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2722test "x$ac_build_alias" = x &&
2723 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2724ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2725 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2726
2727fi
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2729$as_echo "$ac_cv_build" >&6; }
2730case $ac_cv_build in
2731*-*-*) ;;
2732*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2733esac
2734build=$ac_cv_build
2735ac_save_IFS=$IFS; IFS='-'
2736set x $ac_cv_build
2737shift
2738build_cpu=$1
2739build_vendor=$2
2740shift; shift
2741# Remember, the first character of IFS is used to create $*,
2742# except with old shells:
2743build_os=$*
2744IFS=$ac_save_IFS
2745case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2746
2747
2748 case ${build_alias} in
2749 "") build_noncanonical=${build} ;;
2750 *) build_noncanonical=${build_alias} ;;
2751esac
891c05b1
JJ
2752
2753 case ${host_alias} in
2754 "") host_noncanonical=${build_noncanonical} ;;
2755 *) host_noncanonical=${host_alias} ;;
2756esac
2757
2758 case ${target_alias} in
2759 "") target_noncanonical=${host_noncanonical} ;;
2760 *) target_noncanonical=${target_alias} ;;
2761esac
2762
57255173
PB
2763
2764# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2765# have matching libraries, they should use host libraries: Makefile.tpl
2766# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2767# However, they still use the build modules, because the corresponding
2768# host modules (e.g. bison) are only built for the host when bootstrap
2769# finishes. So:
2770# - build_subdir is where we find build modules, and never changes.
2771# - build_libsubdir is where we find build libraries, and can be overridden.
2772
2773# Prefix 'build-' so this never conflicts with target_subdir.
891c05b1 2774build_subdir="build-${build_noncanonical}"
57255173 2775
5213506e
RW
2776# Check whether --with-build-libsubdir was given.
2777if test "${with_build_libsubdir+set}" = set; then :
2778 withval=$with_build_libsubdir; build_libsubdir="$withval"
57255173
PB
2779else
2780 build_libsubdir="$build_subdir"
5213506e
RW
2781fi
2782
891c05b1
JJ
2783# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2784if ( test $srcdir = . && test -d gcc ) \
2785 || test -d $srcdir/../host-${host_noncanonical}; then
2786 host_subdir="host-${host_noncanonical}"
2787else
2788 host_subdir=.
2789fi
2790# No prefix.
2791target_subdir=${target_noncanonical}
2792
2793
2794# -------
2795# Options
2796# -------
2797
5213506e
RW
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2799$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2800# Check whether --enable-version-specific-runtime-libs was given.
2801if test "${enable_version_specific_runtime_libs+set}" = set; then :
2802 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
891c05b1
JJ
2803 yes) version_specific_libs=yes ;;
2804 no) version_specific_libs=no ;;
5213506e 2805 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
891c05b1
JJ
2806 esac
2807else
2808 version_specific_libs=no
5213506e
RW
2809fi
2810
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2812$as_echo "$version_specific_libs" >&6; }
891c05b1 2813
b808ac33 2814# Build with intermodule optimisations
5213506e
RW
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2816$as_echo_n "checking for --enable-intermodule... " >&6; }
2817# Check whether --enable-intermodule was given.
2818if test "${enable_intermodule+set}" = set; then :
2819 enableval=$enable_intermodule; case "$enable_intermodule" in
b808ac33
BF
2820 yes) onestep="-onestep";;
2821 *) onestep="";;
2822esac
2823else
2824 onestep=""
5213506e 2825fi
b808ac33 2826
5213506e
RW
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2828$as_echo "$enable_intermodule" >&6; }
2829 if test x$onestep = x-onestep; then
b808ac33
BF
2830 onestep_TRUE=
2831 onestep_FALSE='#'
2832else
2833 onestep_TRUE='#'
2834 onestep_FALSE=
2835fi
2836
2837
891c05b1
JJ
2838
2839# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2840#
2841# You will slowly go insane if you do not grok the following fact: when
2842# building this library, the top-level /target/ becomes the library's /host/.
2843#
2844# configure then causes --target to default to --host, exactly like any
2845# other package using autoconf. Therefore, 'target' and 'host' will
2846# always be the same. This makes sense both for native and cross compilers
2847# just think about it for a little while. :-)
2848#
2849# Also, if this library is being configured as part of a cross compiler, the
2850# top-level configure script will pass the "real" host as $with_cross_host.
2851#
2852# Do not delete or change the following two lines. For why, see
2853# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
5213506e
RW
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2855$as_echo_n "checking host system type... " >&6; }
2856if test "${ac_cv_host+set}" = set; then :
2857 $as_echo_n "(cached) " >&6
2858else
2859 if test "x$host_alias" = x; then
2860 ac_cv_host=$ac_cv_build
2861else
2862 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2863 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2864fi
2865
2866fi
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2868$as_echo "$ac_cv_host" >&6; }
2869case $ac_cv_host in
2870*-*-*) ;;
2871*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2872esac
96b8a615 2873host=$ac_cv_host
5213506e
RW
2874ac_save_IFS=$IFS; IFS='-'
2875set x $ac_cv_host
2876shift
2877host_cpu=$1
2878host_vendor=$2
2879shift; shift
2880# Remember, the first character of IFS is used to create $*,
2881# except with old shells:
2882host_os=$*
2883IFS=$ac_save_IFS
2884case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
38d24731
RW
2885
2886
5213506e
RW
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2888$as_echo_n "checking target system type... " >&6; }
2889if test "${ac_cv_target+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
96b8a615 2891else
5213506e
RW
2892 if test "x$target_alias" = x; then
2893 ac_cv_target=$ac_cv_host
2894else
2895 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2896 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2897fi
96b8a615
AJ
2898
2899fi
5213506e
RW
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2901$as_echo "$ac_cv_target" >&6; }
2902case $ac_cv_target in
2903*-*-*) ;;
2904*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2905esac
96b8a615 2906target=$ac_cv_target
5213506e
RW
2907ac_save_IFS=$IFS; IFS='-'
2908set x $ac_cv_target
2909shift
2910target_cpu=$1
2911target_vendor=$2
2912shift; shift
2913# Remember, the first character of IFS is used to create $*,
2914# except with old shells:
2915target_os=$*
2916IFS=$ac_save_IFS
2917case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
96b8a615
AJ
2918
2919
2920# The aliases save the names the user supplied, while $host etc.
2921# will get canonicalized.
2922test -n "$target_alias" &&
2923 test "$program_prefix$program_suffix$program_transform_name" = \
2924 NONENONEs,x,x, &&
2925 program_prefix=${target_alias}-
5213506e 2926
60858d8a
TB
2927
2928
2929
96b8a615
AJ
2930target_alias=${target_alias-$host_alias}
2931
60858d8a 2932
96b8a615
AJ
2933# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2934# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
679c0f9a 2935# 1.9.6: minimum required version
96b8a615
AJ
2936# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2937# of other PACKAGE_* variables will, however, and there's nothing
2938# we can do about that; they come from AC_INIT).
2939# foreign: we don't follow the normal rules for GNU packages (no COPYING
2940# file in the top srcdir, etc, etc), so stop complaining.
13917ae3 2941# no-dist: we don't want 'dist' and related rules.
96b8a615
AJ
2942# -Wall: turns on all automake warnings...
2943# -Wno-portability: ...except this one, since GNU make is required.
5213506e
RW
2944am__api_version='1.11'
2945
6de9cd9a
DN
2946# Find a good install program. We prefer a C program (faster),
2947# so one script is as good as another. But avoid the broken or
2948# incompatible versions:
2949# SysV /etc/install, /usr/sbin/install
2950# SunOS /usr/etc/install
2951# IRIX /sbin/install
2952# AIX /bin/install
2953# AmigaOS /C/install, which installs bootblocks on floppy discs
2954# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2955# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2956# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2957# OS/2's system install, which has a completely different semantic
2958# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2959# Reject install programs that cannot install multiple files.
5213506e
RW
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2961$as_echo_n "checking for a BSD-compatible install... " >&6; }
6de9cd9a 2962if test -z "$INSTALL"; then
5213506e
RW
2963if test "${ac_cv_path_install+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
6de9cd9a
DN
2965else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
5213506e
RW
2971 # Account for people who put trailing slashes in PATH elements.
2972case $as_dir/ in #((
2973 ./ | .// | /[cC]/* | \
6de9cd9a 2974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2975 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6de9cd9a
DN
2976 /usr/ucb/* ) ;;
2977 *)
2978 # OSF1 and SCO ODT 3.0 have their own names for install.
2979 # Don't use installbsd from OSF since it installs stuff as root
2980 # by default.
2981 for ac_prog in ginstall scoinst install; do
2982 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2983 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6de9cd9a
DN
2984 if test $ac_prog = install &&
2985 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2986 # AIX install. It has an incompatible calling convention.
2987 :
2988 elif test $ac_prog = install &&
2989 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2990 # program-specific install script used by HP pwplus--don't use.
2991 :
2992 else
38d24731
RW
2993 rm -rf conftest.one conftest.two conftest.dir
2994 echo one > conftest.one
2995 echo two > conftest.two
2996 mkdir conftest.dir
2997 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2998 test -s conftest.one && test -s conftest.two &&
2999 test -s conftest.dir/conftest.one &&
3000 test -s conftest.dir/conftest.two
3001 then
3002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3003 break 3
3004 fi
6de9cd9a
DN
3005 fi
3006 fi
3007 done
3008 done
3009 ;;
3010esac
5213506e
RW
3011
3012 done
3013IFS=$as_save_IFS
6de9cd9a 3014
38d24731 3015rm -rf conftest.one conftest.two conftest.dir
6de9cd9a
DN
3016
3017fi
3018 if test "${ac_cv_path_install+set}" = set; then
3019 INSTALL=$ac_cv_path_install
3020 else
f489fba1
FXC
3021 # As a last resort, use the slow shell script. Don't cache a
3022 # value for INSTALL within a source directory, because that will
6de9cd9a 3023 # break other packages using the cache if that directory is
f489fba1 3024 # removed, or if the value is a relative name.
6de9cd9a
DN
3025 INSTALL=$ac_install_sh
3026 fi
3027fi
5213506e
RW
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3029$as_echo "$INSTALL" >&6; }
6de9cd9a
DN
3030
3031# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3032# It thinks the first close brace ends the variable substitution.
3033test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3034
3035test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3036
3037test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3038
5213506e
RW
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3040$as_echo_n "checking whether build environment is sane... " >&6; }
6de9cd9a
DN
3041# Just in case
3042sleep 1
3043echo timestamp > conftest.file
5213506e
RW
3044# Reject unsafe characters in $srcdir or the absolute working directory
3045# name. Accept space and tab only in the latter.
3046am_lf='
3047'
3048case `pwd` in
3049 *[\\\"\#\$\&\'\`$am_lf]*)
3050 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3051esac
3052case $srcdir in
3053 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3054 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3055esac
3056
6de9cd9a
DN
3057# Do `set' in a subshell so we don't clobber the current shell's
3058# arguments. Must try -L first in case configure is actually a
3059# symlink; some systems play weird games with the mod time of symlinks
3060# (eg FreeBSD returns the mod time of the symlink's containing
3061# directory).
3062if (
5213506e 3063 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6de9cd9a
DN
3064 if test "$*" = "X"; then
3065 # -L didn't work.
5213506e 3066 set X `ls -t "$srcdir/configure" conftest.file`
6de9cd9a
DN
3067 fi
3068 rm -f conftest.file
3069 if test "$*" != "X $srcdir/configure conftest.file" \
3070 && test "$*" != "X conftest.file $srcdir/configure"; then
3071
3072 # If neither matched, then we have a broken ls. This can happen
3073 # if, for instance, CONFIG_SHELL is bash and it inherits a
3074 # broken ls alias from the environment. This has actually
3075 # happened. Such a system could not be considered "sane".
5213506e
RW
3076 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3077alias in your environment" "$LINENO" 5
6de9cd9a
DN
3078 fi
3079
3080 test "$2" = conftest.file
3081 )
3082then
3083 # Ok.
3084 :
3085else
5213506e
RW
3086 as_fn_error "newly created file is older than distributed files!
3087Check your system clock" "$LINENO" 5
6de9cd9a 3088fi
5213506e
RW
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090$as_echo "yes" >&6; }
6de9cd9a 3091test "$program_prefix" != NONE &&
5213506e 3092 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6de9cd9a
DN
3093# Use a double $ so make ignores it.
3094test "$program_suffix" != NONE &&
5213506e
RW
3095 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3096# Double any \ or $.
6de9cd9a 3097# By default was `s,x,x', remove it if useless.
5213506e
RW
3098ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3099program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6de9cd9a
DN
3100
3101# expand $ac_aux_dir to an absolute path
3102am_aux_dir=`cd $ac_aux_dir && pwd`
3103
5213506e
RW
3104if test x"${MISSING+set}" != xset; then
3105 case $am_aux_dir in
3106 *\ * | *\ *)
3107 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3108 *)
3109 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3110 esac
3111fi
6de9cd9a
DN
3112# Use eval to expand $SHELL
3113if eval "$MISSING --run true"; then
3114 am_missing_run="$MISSING --run "
3115else
3116 am_missing_run=
5213506e
RW
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3118$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6de9cd9a
DN
3119fi
3120
5213506e
RW
3121if test x"${install_sh}" != xset; then
3122 case $am_aux_dir in
3123 *\ * | *\ *)
3124 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3125 *)
3126 install_sh="\${SHELL} $am_aux_dir/install-sh"
3127 esac
3128fi
3129
3130# Installed binaries are usually stripped using `strip' when the user
3131# run `make install-strip'. However `strip' might not be the right
3132# tool to use in cross-compilation environments, therefore Automake
3133# will honor the `STRIP' environment variable to overrule this program.
3134if test "$cross_compiling" != no; then
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3137set dummy ${ac_tool_prefix}strip; ac_word=$2
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139$as_echo_n "checking for $ac_word... " >&6; }
3140if test "${ac_cv_prog_STRIP+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
6de9cd9a 3142else
5213506e
RW
3143 if test -n "$STRIP"; then
3144 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6de9cd9a
DN
3145else
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
5213506e
RW
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3155 break 2
3156 fi
3157done
5213506e
RW
3158 done
3159IFS=$as_save_IFS
6de9cd9a
DN
3160
3161fi
3162fi
5213506e
RW
3163STRIP=$ac_cv_prog_STRIP
3164if test -n "$STRIP"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3166$as_echo "$STRIP" >&6; }
6de9cd9a 3167else
5213506e
RW
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
6de9cd9a
DN
3170fi
3171
6de9cd9a 3172
5213506e
RW
3173fi
3174if test -z "$ac_cv_prog_STRIP"; then
3175 ac_ct_STRIP=$STRIP
3176 # Extract the first word of "strip", so it can be a program name with args.
3177set dummy strip; ac_word=$2
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179$as_echo_n "checking for $ac_word... " >&6; }
3180if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3181 $as_echo_n "(cached) " >&6
6de9cd9a 3182else
5213506e
RW
3183 if test -n "$ac_ct_STRIP"; then
3184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38d24731 3185else
5213506e
RW
3186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187for as_dir in $PATH
3188do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3193 ac_cv_prog_ac_ct_STRIP="strip"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197done
3198 done
3199IFS=$as_save_IFS
3200
38d24731 3201fi
6de9cd9a 3202fi
5213506e
RW
3203ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3204if test -n "$ac_ct_STRIP"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3206$as_echo "$ac_ct_STRIP" >&6; }
3207else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209$as_echo "no" >&6; }
3210fi
3211
3212 if test "x$ac_ct_STRIP" = x; then
3213 STRIP=":"
3214 else
3215 case $cross_compiling:$ac_tool_warned in
3216yes:)
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3219ac_tool_warned=yes ;;
3220esac
3221 STRIP=$ac_ct_STRIP
3222 fi
3223else
3224 STRIP="$ac_cv_prog_STRIP"
3225fi
3226
3227fi
3228INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3229
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3231$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3232if test -z "$MKDIR_P"; then
3233 if test "${ac_cv_path_mkdir+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3235else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3238do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_prog in mkdir gmkdir; do
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3244 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3245 'mkdir (GNU coreutils) '* | \
3246 'mkdir (coreutils) '* | \
3247 'mkdir (fileutils) '4.1*)
3248 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3249 break 3;;
3250 esac
3251 done
3252 done
3253 done
3254IFS=$as_save_IFS
3255
3256fi
3257
3258 if test "${ac_cv_path_mkdir+set}" = set; then
3259 MKDIR_P="$ac_cv_path_mkdir -p"
3260 else
3261 # As a last resort, use the slow shell script. Don't cache a
3262 # value for MKDIR_P within a source directory, because that will
3263 # break other packages using the cache if that directory is
3264 # removed, or if the value is a relative name.
3265 test -d ./--version && rmdir ./--version
3266 MKDIR_P="$ac_install_sh -d"
3267 fi
3268fi
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3270$as_echo "$MKDIR_P" >&6; }
3271
3272mkdir_p="$MKDIR_P"
3273case $mkdir_p in
3274 [\\/$]* | ?:[\\/]*) ;;
3275 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3276esac
3277
3278for ac_prog in gawk mawk nawk awk
3279do
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281set dummy $ac_prog; ac_word=$2
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283$as_echo_n "checking for $ac_word... " >&6; }
3284if test "${ac_cv_prog_AWK+set}" = set; then :
3285 $as_echo_n "(cached) " >&6
3286else
3287 if test -n "$AWK"; then
3288 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3289else
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_AWK="$ac_prog"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3300 fi
3301done
3302 done
3303IFS=$as_save_IFS
3304
3305fi
3306fi
3307AWK=$ac_cv_prog_AWK
3308if test -n "$AWK"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3310$as_echo "$AWK" >&6; }
3311else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313$as_echo "no" >&6; }
3314fi
3315
3316
3317 test -n "$AWK" && break
3318done
3319
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3321$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3322set x ${MAKE-make}
3323ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3324if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3325 $as_echo_n "(cached) " >&6
3326else
3327 cat >conftest.make <<\_ACEOF
3328SHELL = /bin/sh
3329all:
3330 @echo '@@@%%%=$(MAKE)=@@@%%%'
3331_ACEOF
3332# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3333case `${MAKE-make} -f conftest.make 2>/dev/null` in
3334 *@@@%%%=?*=@@@%%%*)
3335 eval ac_cv_prog_make_${ac_make}_set=yes;;
3336 *)
3337 eval ac_cv_prog_make_${ac_make}_set=no;;
3338esac
3339rm -f conftest.make
3340fi
3341if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343$as_echo "yes" >&6; }
6de9cd9a
DN
3344 SET_MAKE=
3345else
5213506e
RW
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347$as_echo "no" >&6; }
6de9cd9a
DN
3348 SET_MAKE="MAKE=${MAKE-make}"
3349fi
3350
3351rm -rf .tst 2>/dev/null
3352mkdir .tst 2>/dev/null
3353if test -d .tst; then
3354 am__leading_dot=.
3355else
3356 am__leading_dot=_
3357fi
3358rmdir .tst 2>/dev/null
3359
5213506e
RW
3360if test "`cd $srcdir && pwd`" != "`pwd`"; then
3361 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3362 # is not polluted with repeated "-I."
3363 am__isrc=' -I$(srcdir)'
3364 # test to see if srcdir already configured
3365 if test -f $srcdir/config.status; then
3366 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3367 fi
6de9cd9a
DN
3368fi
3369
3370# test whether we have cygpath
3371if test -z "$CYGPATH_W"; then
3372 if (cygpath --version) >/dev/null 2>/dev/null; then
3373 CYGPATH_W='cygpath -w'
3374 else
3375 CYGPATH_W=echo
3376 fi
3377fi
3378
3379
3380# Define the identity of the package.
3381 PACKAGE='libgfortran'
0dce3ca1 3382 VERSION='0.3'
6de9cd9a
DN
3383
3384
6de9cd9a
DN
3385# Some tools Automake needs.
3386
3387ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3388
3389
3390AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3391
3392
3393AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3394
3395
3396AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3397
3398
3399MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3400
6de9cd9a
DN
3401# We need awk for the "check" target. The system "awk" is bad on
3402# some platforms.
c20fdb91
JB
3403# Always define AMTAR for backward compatibility. Yes, it's still used
3404# in the wild :-( We should find a proper way to deprecate it ...
3405AMTAR='$${TAR-tar}'
d49ec2d1 3406
c20fdb91 3407am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d49ec2d1
KC
3408
3409
6de9cd9a
DN
3410
3411
3412
6de9cd9a 3413
5213506e
RW
3414
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3416$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3417 # Check whether --enable-maintainer-mode was given.
3418if test "${enable_maintainer_mode+set}" = set; then :
3419 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6de9cd9a
DN
3420else
3421 USE_MAINTAINER_MODE=no
5213506e 3422fi
6de9cd9a 3423
5213506e
RW
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3425$as_echo "$USE_MAINTAINER_MODE" >&6; }
3426 if test $USE_MAINTAINER_MODE = yes; then
6de9cd9a
DN
3427 MAINTAINER_MODE_TRUE=
3428 MAINTAINER_MODE_FALSE='#'
3429else
3430 MAINTAINER_MODE_TRUE='#'
3431 MAINTAINER_MODE_FALSE=
3432fi
3433
3434 MAINT=$MAINTAINER_MODE_TRUE
3435
3436
96b8a615 3437# Default to --enable-multilib
5213506e
RW
3438# Check whether --enable-multilib was given.
3439if test "${enable_multilib+set}" = set; then :
3440 enableval=$enable_multilib; case "$enableval" in
96b8a615
AJ
3441 yes) multilib=yes ;;
3442 no) multilib=no ;;
5213506e 3443 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
96b8a615
AJ
3444 esac
3445else
3446 multilib=yes
5213506e
RW
3447fi
3448
96b8a615
AJ
3449
3450# We may get other options which we leave undocumented:
3451# --with-target-subdir, --with-multisrctop, --with-multisubdir
3452# See config-ml.in if you want the gory details.
3453
3454if test "$srcdir" = "."; then
3455 if test "$with_target_subdir" != "."; then
3456 multi_basedir="$srcdir/$with_multisrctop../.."
3457 else
3458 multi_basedir="$srcdir/$with_multisrctop.."
3459 fi
3460else
3461 multi_basedir="$srcdir/.."
3462fi
3463
3464
9f9ef303
FXC
3465# Even if the default multilib is not a cross compilation,
3466# it may be that some of the other multilibs are.
3467if test $cross_compiling = no && test $multilib = yes \
3468 && test "x${with_multisubdir}" != x ; then
3469 cross_compiling=maybe
3470fi
3471
5213506e 3472ac_config_commands="$ac_config_commands default-1"
96b8a615
AJ
3473
3474
3475# Handy for debugging:
3476#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3477
3478# Are we being configured with some form of cross compiler?
3479# NB: We don't actually need to know this just now, but when, say, a test
3480# suite is included, we'll have to know.
3481if test "$build" != "$host"; then
3482 LIBGFOR_IS_NATIVE=false
f02d008e 3483
96b8a615
AJ
3484else
3485 LIBGFOR_IS_NATIVE=true
3486fi
3487
21be0a5a 3488DEPDIR="${am__leading_dot}deps"
96b8a615 3489
21be0a5a 3490ac_config_commands="$ac_config_commands depfiles"
96b8a615 3491
6de9cd9a 3492
21be0a5a
JB
3493am_make=${MAKE-make}
3494cat > confinc << 'END'
3495am__doit:
3496 @echo this is the am__doit target
3497.PHONY: am__doit
3498END
3499# If we don't find an include directive, just comment out the code.
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3501$as_echo_n "checking for style of include used by $am_make... " >&6; }
3502am__include="#"
3503am__quote=
3504_am_result=none
3505# First try GNU make style include.
3506echo "include confinc" > confmf
3507# Ignore all kinds of additional output from `make'.
3508case `$am_make -s -f confmf 2> /dev/null` in #(
3509*the\ am__doit\ target*)
3510 am__include=include
3511 am__quote=
3512 _am_result=GNU
3513 ;;
3514esac
3515# Now try BSD make style include.
3516if test "$am__include" = "#"; then
3517 echo '.include "confinc"' > confmf
3518 case `$am_make -s -f confmf 2> /dev/null` in #(
3519 *the\ am__doit\ target*)
3520 am__include=.include
3521 am__quote="\""
3522 _am_result=BSD
3523 ;;
3524 esac
3525fi
1ec601bf 3526
6de9cd9a 3527
21be0a5a
JB
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3529$as_echo "$_am_result" >&6; }
3530rm -f confinc confmf
3531
3532# Check whether --enable-dependency-tracking was given.
3533if test "${enable_dependency_tracking+set}" = set; then :
3534 enableval=$enable_dependency_tracking;
3535fi
3536
3537if test "x$enable_dependency_tracking" != xno; then
3538 am_depcomp="$ac_aux_dir/depcomp"
3539 AMDEPBACKSLASH='\'
c20fdb91 3540 am__nodep='_no'
21be0a5a
JB
3541fi
3542 if test "x$enable_dependency_tracking" != xno; then
3543 AMDEP_TRUE=
3544 AMDEP_FALSE='#'
3545else
3546 AMDEP_TRUE='#'
3547 AMDEP_FALSE=
3548fi
6de9cd9a
DN
3549
3550
6de9cd9a
DN
3551ac_ext=c
3552ac_cpp='$CPP $CPPFLAGS'
3553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3555ac_compiler_gnu=$ac_cv_c_compiler_gnu
3556if test -n "$ac_tool_prefix"; then
3557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3558set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560$as_echo_n "checking for $ac_word... " >&6; }
3561if test "${ac_cv_prog_CC+set}" = set; then :
3562 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3563else
3564 if test -n "$CC"; then
3565 ac_cv_prog_CC="$CC" # Let the user override the test.
3566else
3567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH
3569do
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
5213506e
RW
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3576 break 2
3577 fi
3578done
5213506e
RW
3579 done
3580IFS=$as_save_IFS
6de9cd9a
DN
3581
3582fi
3583fi
3584CC=$ac_cv_prog_CC
3585if test -n "$CC"; then
5213506e
RW
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3587$as_echo "$CC" >&6; }
6de9cd9a 3588else
5213506e
RW
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590$as_echo "no" >&6; }
6de9cd9a
DN
3591fi
3592
5213506e 3593
6de9cd9a
DN
3594fi
3595if test -z "$ac_cv_prog_CC"; then
3596 ac_ct_CC=$CC
3597 # Extract the first word of "gcc", so it can be a program name with args.
3598set dummy gcc; ac_word=$2
5213506e
RW
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600$as_echo_n "checking for $ac_word... " >&6; }
3601if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3603else
3604 if test -n "$ac_ct_CC"; then
3605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3606else
3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608for as_dir in $PATH
3609do
3610 IFS=$as_save_IFS
3611 test -z "$as_dir" && as_dir=.
5213506e
RW
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3614 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3616 break 2
3617 fi
3618done
5213506e
RW
3619 done
3620IFS=$as_save_IFS
6de9cd9a
DN
3621
3622fi
3623fi
3624ac_ct_CC=$ac_cv_prog_ac_ct_CC
3625if test -n "$ac_ct_CC"; then
5213506e
RW
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3627$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3628else
5213506e
RW
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630$as_echo "no" >&6; }
6de9cd9a
DN
3631fi
3632
5213506e
RW
3633 if test "x$ac_ct_CC" = x; then
3634 CC=""
3635 else
3636 case $cross_compiling:$ac_tool_warned in
3637yes:)
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3640ac_tool_warned=yes ;;
3641esac
3642 CC=$ac_ct_CC
3643 fi
6de9cd9a
DN
3644else
3645 CC="$ac_cv_prog_CC"
3646fi
3647
3648if test -z "$CC"; then
5213506e
RW
3649 if test -n "$ac_tool_prefix"; then
3650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6de9cd9a 3651set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653$as_echo_n "checking for $ac_word... " >&6; }
3654if test "${ac_cv_prog_CC+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3656else
3657 if test -n "$CC"; then
3658 ac_cv_prog_CC="$CC" # Let the user override the test.
3659else
3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661for as_dir in $PATH
3662do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
5213506e
RW
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3667 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3669 break 2
3670 fi
3671done
5213506e
RW
3672 done
3673IFS=$as_save_IFS
6de9cd9a
DN
3674
3675fi
3676fi
3677CC=$ac_cv_prog_CC
3678if test -n "$CC"; then
5213506e
RW
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680$as_echo "$CC" >&6; }
38d24731 3681else
5213506e
RW
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683$as_echo "no" >&6; }
38d24731
RW
3684fi
3685
38d24731 3686
5213506e 3687 fi
6de9cd9a
DN
3688fi
3689if test -z "$CC"; then
3690 # Extract the first word of "cc", so it can be a program name with args.
3691set dummy cc; ac_word=$2
5213506e
RW
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693$as_echo_n "checking for $ac_word... " >&6; }
3694if test "${ac_cv_prog_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3696else
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699else
3700 ac_prog_rejected=no
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
5213506e
RW
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a
DN
3708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3709 ac_prog_rejected=yes
3710 continue
3711 fi
3712 ac_cv_prog_CC="cc"
5213506e 3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3714 break 2
3715 fi
3716done
5213506e
RW
3717 done
3718IFS=$as_save_IFS
6de9cd9a
DN
3719
3720if test $ac_prog_rejected = yes; then
3721 # We found a bogon in the path, so make sure we never use it.
3722 set dummy $ac_cv_prog_CC
3723 shift
3724 if test $# != 0; then
3725 # We chose a different compiler from the bogus one.
3726 # However, it has the same basename, so the bogon will be chosen
3727 # first if we set CC to just the basename; use the full file name.
3728 shift
3729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3730 fi
3731fi
3732fi
3733fi
3734CC=$ac_cv_prog_CC
3735if test -n "$CC"; then
5213506e
RW
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737$as_echo "$CC" >&6; }
6de9cd9a 3738else
5213506e
RW
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740$as_echo "no" >&6; }
6de9cd9a
DN
3741fi
3742
5213506e 3743
6de9cd9a
DN
3744fi
3745if test -z "$CC"; then
3746 if test -n "$ac_tool_prefix"; then
5213506e 3747 for ac_prog in cl.exe
6de9cd9a
DN
3748 do
3749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3750set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752$as_echo_n "checking for $ac_word... " >&6; }
3753if test "${ac_cv_prog_CC+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3755else
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758else
3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760for as_dir in $PATH
3761do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
5213506e
RW
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3766 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3768 break 2
3769 fi
3770done
5213506e
RW
3771 done
3772IFS=$as_save_IFS
6de9cd9a
DN
3773
3774fi
3775fi
3776CC=$ac_cv_prog_CC
3777if test -n "$CC"; then
5213506e
RW
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3779$as_echo "$CC" >&6; }
6de9cd9a 3780else
5213506e
RW
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782$as_echo "no" >&6; }
6de9cd9a
DN
3783fi
3784
5213506e 3785
6de9cd9a
DN
3786 test -n "$CC" && break
3787 done
3788fi
3789if test -z "$CC"; then
3790 ac_ct_CC=$CC
5213506e 3791 for ac_prog in cl.exe
6de9cd9a
DN
3792do
3793 # Extract the first word of "$ac_prog", so it can be a program name with args.
3794set dummy $ac_prog; ac_word=$2
5213506e
RW
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796$as_echo_n "checking for $ac_word... " >&6; }
3797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3799else
3800 if test -n "$ac_ct_CC"; then
3801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3802else
3803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804for as_dir in $PATH
3805do
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
5213506e
RW
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3810 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3812 break 2
3813 fi
3814done
5213506e
RW
3815 done
3816IFS=$as_save_IFS
6de9cd9a
DN
3817
3818fi
3819fi
3820ac_ct_CC=$ac_cv_prog_ac_ct_CC
3821if test -n "$ac_ct_CC"; then
5213506e
RW
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3823$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3824else
5213506e
RW
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826$as_echo "no" >&6; }
6de9cd9a
DN
3827fi
3828
5213506e 3829
6de9cd9a
DN
3830 test -n "$ac_ct_CC" && break
3831done
3832
5213506e
RW
3833 if test "x$ac_ct_CC" = x; then
3834 CC=""
3835 else
3836 case $cross_compiling:$ac_tool_warned in
3837yes:)
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840ac_tool_warned=yes ;;
3841esac
3842 CC=$ac_ct_CC
3843 fi
6de9cd9a
DN
3844fi
3845
3846fi
3847
3848
5213506e
RW
3849test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851as_fn_error "no acceptable C compiler found in \$PATH
3852See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a
DN
3853
3854# Provide some information about the compiler.
5213506e
RW
3855$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3856set X $ac_compile
3857ac_compiler=$2
3858for ac_option in --version -v -V -qversion; do
3859 { { ac_try="$ac_compiler $ac_option >&5"
3860case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863esac
3864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865$as_echo "$ac_try_echo"; } >&5
3866 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6de9cd9a 3867 ac_status=$?
5213506e
RW
3868 if test -s conftest.err; then
3869 sed '10a\
3870... rest of stderr output deleted ...
3871 10q' conftest.err >conftest.er1
3872 cat conftest.er1 >&5
3873 rm -f conftest.er1 conftest.err
3874 fi
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }
3877done
6de9cd9a 3878
5213506e 3879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
3880/* end confdefs.h. */
3881
f02d008e
JD
3882int
3883main ()
3884{
3885
3886 ;
3887 return 0;
3888}
3889_ACEOF
3890# FIXME: Cleanup?
5213506e 3891if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
f02d008e
JD
3892 (eval $ac_link) 2>&5
3893 ac_status=$?
5213506e
RW
3894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }; then :
f02d008e
JD
3896 gcc_no_link=no
3897else
3898 gcc_no_link=yes
3899fi
f02d008e
JD
3900if test x$gcc_no_link = xyes; then
3901 # Setting cross_compile will disable run tests; it will
3902 # also disable AC_CHECK_FILE but that's generally
3903 # correct if we can't link.
3904 cross_compiling=yes
3905 EXEEXT=
3906else
5213506e 3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
3908/* end confdefs.h. */
3909
6de9cd9a
DN
3910int
3911main ()
3912{
3913
3914 ;
3915 return 0;
3916}
3917_ACEOF
3918ac_clean_files_save=$ac_clean_files
5213506e 3919ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6de9cd9a
DN
3920# Try to create an executable without -o first, disregard a.out.
3921# It will help us diagnose broken compilers, and finding out an intuition
3922# of exeext.
5213506e
RW
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3924$as_echo_n "checking for C compiler default output file name... " >&6; }
3925ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3926
3927# The possible output files:
3928ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3929
3930ac_rmfiles=
3931for ac_file in $ac_files
3932do
3933 case $ac_file in
3934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3935 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3936 esac
3937done
3938rm -f $ac_rmfiles
3939
3940if { { ac_try="$ac_link_default"
3941case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944esac
3945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946$as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link_default") 2>&5
3948 ac_status=$?
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }; then :
3951 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3952# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3953# in a Makefile. We should not override ac_cv_exeext if it was cached,
3954# so that the user can short-circuit this test for compilers unknown to
3955# Autoconf.
3956for ac_file in $ac_files ''
6de9cd9a
DN
3957do
3958 test -f "$ac_file" || continue
3959 case $ac_file in
5213506e 3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6de9cd9a
DN
3961 ;;
3962 [ab].out )
3963 # We found the default executable, but exeext='' is most
3964 # certainly right.
3965 break;;
3966 *.* )
5213506e
RW
3967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3968 then :; else
3969 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3970 fi
3971 # We set ac_cv_exeext here because the later test for it is not
3972 # safe: cross compilers may not add the suffix if given an `-o'
3973 # argument, so we may need to know it at that point already.
3974 # Even if this section looks crufty: it has the advantage of
3975 # actually working.
6de9cd9a
DN
3976 break;;
3977 * )
3978 break;;
3979 esac
3980done
5213506e
RW
3981test "$ac_cv_exeext" = no && ac_cv_exeext=
3982
6de9cd9a 3983else
5213506e
RW
3984 ac_file=''
3985fi
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3987$as_echo "$ac_file" >&6; }
3988if test -z "$ac_file"; then :
3989 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
3990sed 's/^/| /' conftest.$ac_ext >&5
3991
5213506e
RW
3992{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994{ as_fn_set_status 77
3995as_fn_error "C compiler cannot create executables
3996See \`config.log' for more details." "$LINENO" 5; }; }
6de9cd9a 3997fi
6de9cd9a 3998ac_exeext=$ac_cv_exeext
6de9cd9a 3999
5213506e 4000# Check that the compiler produces executables we can run. If not, either
6de9cd9a 4001# the compiler is broken, or we cross compile.
5213506e
RW
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4003$as_echo_n "checking whether the C compiler works... " >&6; }
6de9cd9a
DN
4004# If not cross compiling, check that we can run a simple program.
4005if test "$cross_compiling" != yes; then
4006 if { ac_try='./$ac_file'
5213506e
RW
4007 { { case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010esac
4011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012$as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_try") 2>&5
6de9cd9a 4014 ac_status=$?
5213506e
RW
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; }; then
6de9cd9a
DN
4017 cross_compiling=no
4018 else
4019 if test "$cross_compiling" = maybe; then
4020 cross_compiling=yes
4021 else
5213506e
RW
4022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024as_fn_error "cannot run C compiled programs.
6de9cd9a 4025If you meant to cross compile, use \`--host'.
5213506e 4026See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a
DN
4027 fi
4028 fi
4029fi
5213506e
RW
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4031$as_echo "yes" >&6; }
6de9cd9a 4032
5213506e 4033rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
6de9cd9a 4034ac_clean_files=$ac_clean_files_save
5213506e 4035# Check that the compiler produces executables we can run. If not, either
6de9cd9a 4036# the compiler is broken, or we cross compile.
5213506e
RW
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4038$as_echo_n "checking whether we are cross compiling... " >&6; }
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4040$as_echo "$cross_compiling" >&6; }
4041
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4043$as_echo_n "checking for suffix of executables... " >&6; }
4044if { { ac_try="$ac_link"
4045case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048esac
4049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050$as_echo "$ac_try_echo"; } >&5
4051 (eval "$ac_link") 2>&5
6de9cd9a 4052 ac_status=$?
5213506e
RW
4053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }; then :
6de9cd9a
DN
4055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4056# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4057# work properly (i.e., refer to `conftest.exe'), while it won't with
4058# `rm'.
4059for ac_file in conftest.exe conftest conftest.*; do
4060 test -f "$ac_file" || continue
4061 case $ac_file in
5213506e 4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6de9cd9a 4063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6de9cd9a
DN
4064 break;;
4065 * ) break;;
4066 esac
4067done
4068else
5213506e
RW
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071as_fn_error "cannot compute suffix of executables: cannot compile and link
4072See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a 4073fi
6de9cd9a 4074rm -f conftest$ac_cv_exeext
5213506e
RW
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4076$as_echo "$ac_cv_exeext" >&6; }
6de9cd9a
DN
4077
4078rm -f conftest.$ac_ext
4079EXEEXT=$ac_cv_exeext
4080ac_exeext=$EXEEXT
f02d008e 4081fi
5213506e
RW
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4083$as_echo_n "checking for suffix of object files... " >&6; }
4084if test "${ac_cv_objext+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
6de9cd9a 4086else
5213506e 4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
4088/* end confdefs.h. */
4089
4090int
4091main ()
4092{
4093
4094 ;
4095 return 0;
4096}
4097_ACEOF
4098rm -f conftest.o conftest.obj
5213506e
RW
4099if { { ac_try="$ac_compile"
4100case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103esac
4104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105$as_echo "$ac_try_echo"; } >&5
4106 (eval "$ac_compile") 2>&5
4107 ac_status=$?
4108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109 test $ac_status = 0; }; then :
4110 for ac_file in conftest.o conftest.obj conftest.*; do
4111 test -f "$ac_file" || continue;
6de9cd9a 4112 case $ac_file in
5213506e 4113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6de9cd9a
DN
4114 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4115 break;;
4116 esac
4117done
4118else
5213506e 4119 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4120sed 's/^/| /' conftest.$ac_ext >&5
4121
5213506e
RW
4122{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4124as_fn_error "cannot compute suffix of object files: cannot compile
4125See \`config.log' for more details." "$LINENO" 5; }
78511f8b 4126fi
78511f8b
JB
4127rm -f conftest.$ac_cv_objext conftest.$ac_ext
4128fi
5213506e
RW
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4130$as_echo "$ac_cv_objext" >&6; }
78511f8b
JB
4131OBJEXT=$ac_cv_objext
4132ac_objext=$OBJEXT
5213506e
RW
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4134$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4135if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
78511f8b 4137else
5213506e 4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4139/* end confdefs.h. */
6de9cd9a 4140
6de9cd9a
DN
4141int
4142main ()
4143{
78511f8b
JB
4144#ifndef __GNUC__
4145 choke me
4146#endif
c0e7e2bf 4147
6de9cd9a
DN
4148 ;
4149 return 0;
4150}
4151_ACEOF
5213506e 4152if ac_fn_c_try_compile "$LINENO"; then :
78511f8b 4153 ac_compiler_gnu=yes
6de9cd9a 4154else
5213506e 4155 ac_compiler_gnu=no
78511f8b 4156fi
5213506e 4157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78511f8b
JB
4158ac_cv_c_compiler_gnu=$ac_compiler_gnu
4159
4160fi
5213506e
RW
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4162$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4163if test $ac_compiler_gnu = yes; then
4164 GCC=yes
4165else
4166 GCC=
4167fi
78511f8b
JB
4168ac_test_CFLAGS=${CFLAGS+set}
4169ac_save_CFLAGS=$CFLAGS
5213506e
RW
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4171$as_echo_n "checking whether $CC accepts -g... " >&6; }
4172if test "${ac_cv_prog_cc_g+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
78511f8b 4174else
5213506e
RW
4175 ac_save_c_werror_flag=$ac_c_werror_flag
4176 ac_c_werror_flag=yes
4177 ac_cv_prog_cc_g=no
4178 CFLAGS="-g"
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4180/* end confdefs.h. */
c0e7e2bf 4181
6de9cd9a
DN
4182int
4183main ()
4184{
c0e7e2bf 4185
6de9cd9a
DN
4186 ;
4187 return 0;
4188}
4189_ACEOF
5213506e 4190if ac_fn_c_try_compile "$LINENO"; then :
f489fba1
FXC
4191 ac_cv_prog_cc_g=yes
4192else
5213506e
RW
4193 CFLAGS=""
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h. */
4196
4197int
4198main ()
4199{
4200
4201 ;
4202 return 0;
4203}
4204_ACEOF
4205if ac_fn_c_try_compile "$LINENO"; then :
4206
4207else
4208 ac_c_werror_flag=$ac_save_c_werror_flag
4209 CFLAGS="-g"
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h. */
f489fba1 4212
5213506e
RW
4213int
4214main ()
4215{
4216
4217 ;
4218 return 0;
4219}
4220_ACEOF
4221if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_g=yes
4223fi
4224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4225fi
5213506e 4226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4227fi
5213506e
RW
4228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 ac_c_werror_flag=$ac_save_c_werror_flag
4230fi
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4232$as_echo "$ac_cv_prog_cc_g" >&6; }
38d24731
RW
4233if test "$ac_test_CFLAGS" = set; then
4234 CFLAGS=$ac_save_CFLAGS
4235elif test $ac_cv_prog_cc_g = yes; then
4236 if test "$GCC" = yes; then
4237 CFLAGS="-g -O2"
4238 else
4239 CFLAGS="-g"
4240 fi
4241else
4242 if test "$GCC" = yes; then
4243 CFLAGS="-O2"
4244 else
4245 CFLAGS=
4246 fi
4247fi
5213506e
RW
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4249$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4250if test "${ac_cv_prog_cc_c89+set}" = set; then :
4251 $as_echo_n "(cached) " >&6
38d24731 4252else
5213506e 4253 ac_cv_prog_cc_c89=no
38d24731 4254ac_save_CC=$CC
5213506e 4255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f489fba1 4256/* end confdefs.h. */
38d24731
RW
4257#include <stdarg.h>
4258#include <stdio.h>
4259#include <sys/types.h>
4260#include <sys/stat.h>
4261/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4262struct buf { int x; };
4263FILE * (*rcsopen) (struct buf *, struct stat *, int);
4264static char *e (p, i)
4265 char **p;
4266 int i;
4267{
4268 return p[i];
4269}
4270static char *f (char * (*g) (char **, int), char **p, ...)
4271{
4272 char *s;
4273 va_list v;
4274 va_start (v,p);
4275 s = g (p, va_arg (v,int));
4276 va_end (v);
4277 return s;
4278}
f489fba1 4279
38d24731
RW
4280/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4281 function prototypes and stuff, but not '\xHH' hex character constants.
4282 These don't provoke an error unfortunately, instead are silently treated
5213506e 4283 as 'x'. The following induces an error, until -std is added to get
38d24731
RW
4284 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4285 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4286 that's true only with -std. */
38d24731
RW
4287int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4288
5213506e
RW
4289/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4290 inside strings and character constants. */
4291#define FOO(x) 'x'
4292int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4293
38d24731
RW
4294int test (int i, double x);
4295struct s1 {int (*f) (int a);};
4296struct s2 {int (*f) (double a);};
4297int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4298int argc;
4299char **argv;
f489fba1
FXC
4300int
4301main ()
4302{
38d24731 4303return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
f489fba1
FXC
4304 ;
4305 return 0;
4306}
4307_ACEOF
5213506e
RW
4308for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4309 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38d24731
RW
4310do
4311 CC="$ac_save_CC $ac_arg"
5213506e
RW
4312 if ac_fn_c_try_compile "$LINENO"; then :
4313 ac_cv_prog_cc_c89=$ac_arg
38d24731 4314fi
5213506e
RW
4315rm -f core conftest.err conftest.$ac_objext
4316 test "x$ac_cv_prog_cc_c89" != "xno" && break
38d24731 4317done
5213506e 4318rm -f conftest.$ac_ext
38d24731
RW
4319CC=$ac_save_CC
4320
4321fi
5213506e
RW
4322# AC_CACHE_VAL
4323case "x$ac_cv_prog_cc_c89" in
4324 x)
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4326$as_echo "none needed" >&6; } ;;
4327 xno)
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4329$as_echo "unsupported" >&6; } ;;
38d24731 4330 *)
5213506e
RW
4331 CC="$CC $ac_cv_prog_cc_c89"
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4333$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
38d24731 4334esac
5213506e 4335if test "x$ac_cv_prog_cc_c89" != xno; then :
6de9cd9a
DN
4336
4337fi
6de9cd9a 4338
6de9cd9a
DN
4339ac_ext=c
4340ac_cpp='$CPP $CPPFLAGS'
4341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343ac_compiler_gnu=$ac_cv_c_compiler_gnu
679c0f9a 4344
679c0f9a
TT
4345depcc="$CC" am_compiler_list=
4346
5213506e
RW
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4348$as_echo_n "checking dependency style of $depcc... " >&6; }
4349if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
679c0f9a
TT
4351else
4352 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4353 # We make a subdir and do the tests there. Otherwise we can end up
4354 # making bogus files that we don't know about and never remove. For
4355 # instance it was reported that on HP-UX the gcc test will end up
4356 # making a dummy file named `D' -- because `-MD' means `put the output
4357 # in D'.
c20fdb91 4358 rm -rf conftest.dir
679c0f9a
TT
4359 mkdir conftest.dir
4360 # Copy depcomp to subdir because otherwise we won't find it if we're
4361 # using a relative directory.
4362 cp "$am_depcomp" conftest.dir
4363 cd conftest.dir
4364 # We will build objects and dependencies in a subdirectory because
4365 # it helps to detect inapplicable dependency modes. For instance
4366 # both Tru64's cc and ICC support -MD to output dependencies as a
4367 # side effect of compilation, but ICC will put the dependencies in
4368 # the current directory while Tru64 will put them in the object
4369 # directory.
4370 mkdir sub
4371
4372 am_cv_CC_dependencies_compiler_type=none
4373 if test "$am_compiler_list" = ""; then
4374 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4375 fi
5213506e
RW
4376 am__universal=false
4377 case " $depcc " in #(
4378 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4379 esac
4380
679c0f9a
TT
4381 for depmode in $am_compiler_list; do
4382 # Setup a source with many dependencies, because some compilers
4383 # like to wrap large dependency lists on column 80 (with \), and
4384 # we should not choose a depcomp mode which is confused by this.
4385 #
4386 # We need to recreate these files for each test, as the compiler may
4387 # overwrite some of them when testing with obscure command lines.
4388 # This happens at least with the AIX C compiler.
4389 : > sub/conftest.c
4390 for i in 1 2 3 4 5 6; do
4391 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4392 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4393 # Solaris 8's {/usr,}/bin/sh.
4394 touch sub/conftst$i.h
4395 done
4396 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4397
5213506e
RW
4398 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4399 # mode. It turns out that the SunPro C++ compiler does not properly
4400 # handle `-M -o', and we need to detect this. Also, some Intel
4401 # versions had trouble with output in subdirs
4402 am__obj=sub/conftest.${OBJEXT-o}
4403 am__minus_obj="-o $am__obj"
679c0f9a 4404 case $depmode in
5213506e
RW
4405 gcc)
4406 # This depmode causes a compiler race in universal mode.
4407 test "$am__universal" = false || continue
4408 ;;
679c0f9a
TT
4409 nosideeffect)
4410 # after this tag, mechanisms are not by side-effect, so they'll
4411 # only be used when explicitly requested
4412 if test "x$enable_dependency_tracking" = xyes; then
4413 continue
4414 else
4415 break
4416 fi
4417 ;;
c20fdb91 4418 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5213506e
RW
4419 # This compiler won't grok `-c -o', but also, the minuso test has
4420 # not run yet. These depmodes are late enough in the game, and
4421 # so weak that their functioning should not be impacted.
4422 am__obj=conftest.${OBJEXT-o}
4423 am__minus_obj=
4424 ;;
679c0f9a
TT
4425 none) break ;;
4426 esac
679c0f9a 4427 if depmode=$depmode \
5213506e 4428 source=sub/conftest.c object=$am__obj \
679c0f9a 4429 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4430 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
679c0f9a 4431 >/dev/null 2>conftest.err &&
5213506e 4432 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a 4433 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4434 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a
TT
4435 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4436 # icc doesn't choke on unknown options, it will just issue warnings
4437 # or remarks (even with -Werror). So we grep stderr for any message
4438 # that says an option was ignored or not supported.
4439 # When given -MP, icc 7.0 and 7.1 complain thusly:
4440 # icc: Command line warning: ignoring option '-M'; no argument required
4441 # The diagnosis changed in icc 8.0:
4442 # icc: Command line remark: option '-MP' not supported
4443 if (grep 'ignoring option' conftest.err ||
4444 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4445 am_cv_CC_dependencies_compiler_type=$depmode
4446 break
4447 fi
4448 fi
4449 done
4450
4451 cd ..
4452 rm -rf conftest.dir
4453else
4454 am_cv_CC_dependencies_compiler_type=none
4455fi
4456
4457fi
5213506e
RW
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4459$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
679c0f9a
TT
4460CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4461
5213506e 4462 if
679c0f9a
TT
4463 test "x$enable_dependency_tracking" != xno \
4464 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4465 am__fastdepCC_TRUE=
4466 am__fastdepCC_FALSE='#'
4467else
4468 am__fastdepCC_TRUE='#'
4469 am__fastdepCC_FALSE=
4470fi
4471
6de9cd9a 4472
6de9cd9a 4473
21be0a5a
JB
4474ac_ext=c
4475ac_cpp='$CPP $CPPFLAGS'
4476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4480$as_echo_n "checking how to run the C preprocessor... " >&6; }
4481# On Suns, sometimes $CPP names a directory.
4482if test -n "$CPP" && test -d "$CPP"; then
4483 CPP=
6de9cd9a 4484fi
21be0a5a
JB
4485if test -z "$CPP"; then
4486 if test "${ac_cv_prog_CPP+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488else
4489 # Double quotes because CPP needs to be expanded
4490 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4491 do
4492 ac_preproc_ok=false
4493for ac_c_preproc_warn_flag in '' yes
4494do
4495 # Use a header file that comes with gcc, so configuring glibc
4496 # with a fresh cross-compiler works.
4497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4498 # <limits.h> exists even on freestanding compilers.
4499 # On the NeXT, cc -E runs the code through the compiler's parser,
4500 # not just through cpp. "Syntax error" is here to catch this case.
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c0e7e2bf 4502/* end confdefs.h. */
21be0a5a
JB
4503#ifdef __STDC__
4504# include <limits.h>
4505#else
4506# include <assert.h>
4507#endif
4508 Syntax error
c0e7e2bf 4509_ACEOF
21be0a5a
JB
4510if ac_fn_c_try_cpp "$LINENO"; then :
4511
49ea7a0e 4512else
21be0a5a
JB
4513 # Broken: fails on valid input.
4514continue
49ea7a0e 4515fi
21be0a5a 4516rm -f conftest.err conftest.$ac_ext
49ea7a0e 4517
21be0a5a
JB
4518 # OK, works on sane cases. Now check whether nonexistent headers
4519 # can be detected and how.
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521/* end confdefs.h. */
4522#include <ac_nonexistent.h>
49ea7a0e 4523_ACEOF
21be0a5a
JB
4524if ac_fn_c_try_cpp "$LINENO"; then :
4525 # Broken: success on invalid input.
4526continue
c0e7e2bf 4527else
21be0a5a
JB
4528 # Passes both tests.
4529ac_preproc_ok=:
4530break
49ea7a0e 4531fi
21be0a5a
JB
4532rm -f conftest.err conftest.$ac_ext
4533
4534done
4535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4536rm -f conftest.err conftest.$ac_ext
4537if $ac_preproc_ok; then :
4538 break
c0e7e2bf
JB
4539fi
4540
21be0a5a
JB
4541 done
4542 ac_cv_prog_CPP=$CPP
4543
4544fi
4545 CPP=$ac_cv_prog_CPP
49ea7a0e 4546else
21be0a5a 4547 ac_cv_prog_CPP=$CPP
49ea7a0e 4548fi
21be0a5a
JB
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4550$as_echo "$CPP" >&6; }
4551ac_preproc_ok=false
4552for ac_c_preproc_warn_flag in '' yes
4553do
4554 # Use a header file that comes with gcc, so configuring glibc
4555 # with a fresh cross-compiler works.
4556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557 # <limits.h> exists even on freestanding compilers.
4558 # On the NeXT, cc -E runs the code through the compiler's parser,
4559 # not just through cpp. "Syntax error" is here to catch this case.
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561/* end confdefs.h. */
4562#ifdef __STDC__
4563# include <limits.h>
4564#else
4565# include <assert.h>
4566#endif
4567 Syntax error
4568_ACEOF
4569if ac_fn_c_try_cpp "$LINENO"; then :
49ea7a0e 4570
49ea7a0e 4571else
21be0a5a
JB
4572 # Broken: fails on valid input.
4573continue
49ea7a0e 4574fi
21be0a5a 4575rm -f conftest.err conftest.$ac_ext
49ea7a0e 4576
21be0a5a
JB
4577 # OK, works on sane cases. Now check whether nonexistent headers
4578 # can be detected and how.
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c049309d 4580/* end confdefs.h. */
21be0a5a 4581#include <ac_nonexistent.h>
c049309d 4582_ACEOF
21be0a5a
JB
4583if ac_fn_c_try_cpp "$LINENO"; then :
4584 # Broken: success on invalid input.
4585continue
c049309d 4586else
21be0a5a
JB
4587 # Passes both tests.
4588ac_preproc_ok=:
4589break
c049309d 4590fi
21be0a5a
JB
4591rm -f conftest.err conftest.$ac_ext
4592
4593done
4594# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4595rm -f conftest.err conftest.$ac_ext
4596if $ac_preproc_ok; then :
4597
c049309d 4598else
21be0a5a
JB
4599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4601as_fn_error "C preprocessor \"$CPP\" fails sanity check
4602See \`config.log' for more details." "$LINENO" 5; }
c049309d 4603fi
c049309d 4604
21be0a5a
JB
4605ac_ext=c
4606ac_cpp='$CPP $CPPFLAGS'
4607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609ac_compiler_gnu=$ac_cv_c_compiler_gnu
c049309d 4610
21be0a5a
JB
4611
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4613$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4614if test "${ac_cv_path_GREP+set}" = set; then :
5213506e 4615 $as_echo_n "(cached) " >&6
6de9cd9a 4616else
21be0a5a
JB
4617 if test -z "$GREP"; then
4618 ac_path_GREP_found=false
4619 # Loop through the user's path and test for each of PROGNAME-LIST
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
96b8a615
AJ
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
21be0a5a 4625 for ac_prog in grep ggrep; do
5213506e 4626 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
4627 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4628 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4629# Check for GNU ac_path_GREP and select it if it is found.
4630 # Check for GNU $ac_path_GREP
4631case `"$ac_path_GREP" --version 2>&1` in
4632*GNU*)
4633 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4634*)
4635 ac_count=0
4636 $as_echo_n 0123456789 >"conftest.in"
4637 while :
4638 do
4639 cat "conftest.in" "conftest.in" >"conftest.tmp"
4640 mv "conftest.tmp" "conftest.in"
4641 cp "conftest.in" "conftest.nl"
4642 $as_echo 'GREP' >> "conftest.nl"
4643 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4645 as_fn_arith $ac_count + 1 && ac_count=$as_val
4646 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4647 # Best one so far, save it but keep looking for a better one
4648 ac_cv_path_GREP="$ac_path_GREP"
4649 ac_path_GREP_max=$ac_count
4650 fi
4651 # 10*(2^10) chars as input seems more than enough
4652 test $ac_count -gt 10 && break
5213506e 4653 done
21be0a5a
JB
4654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4655esac
6de9cd9a 4656
21be0a5a
JB
4657 $ac_path_GREP_found && break 3
4658 done
4659 done
4660 done
4661IFS=$as_save_IFS
4662 if test -z "$ac_cv_path_GREP"; then
4663 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4664 fi
6de9cd9a 4665else
21be0a5a 4666 ac_cv_path_GREP=$GREP
6de9cd9a
DN
4667fi
4668
6de9cd9a 4669fi
21be0a5a
JB
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4671$as_echo "$ac_cv_path_GREP" >&6; }
4672 GREP="$ac_cv_path_GREP"
6de9cd9a 4673
21be0a5a
JB
4674
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4676$as_echo_n "checking for egrep... " >&6; }
4677if test "${ac_cv_path_EGREP+set}" = set; then :
5213506e 4678 $as_echo_n "(cached) " >&6
6de9cd9a 4679else
21be0a5a
JB
4680 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4681 then ac_cv_path_EGREP="$GREP -E"
4682 else
4683 if test -z "$EGREP"; then
4684 ac_path_EGREP_found=false
4685 # Loop through the user's path and test for each of PROGNAME-LIST
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6de9cd9a
DN
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
21be0a5a 4691 for ac_prog in egrep; do
5213506e 4692 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
4693 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4694 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4695# Check for GNU ac_path_EGREP and select it if it is found.
4696 # Check for GNU $ac_path_EGREP
4697case `"$ac_path_EGREP" --version 2>&1` in
4698*GNU*)
4699 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4700*)
4701 ac_count=0
4702 $as_echo_n 0123456789 >"conftest.in"
4703 while :
4704 do
4705 cat "conftest.in" "conftest.in" >"conftest.tmp"
4706 mv "conftest.tmp" "conftest.in"
4707 cp "conftest.in" "conftest.nl"
4708 $as_echo 'EGREP' >> "conftest.nl"
4709 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4711 as_fn_arith $ac_count + 1 && ac_count=$as_val
4712 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4713 # Best one so far, save it but keep looking for a better one
4714 ac_cv_path_EGREP="$ac_path_EGREP"
4715 ac_path_EGREP_max=$ac_count
4716 fi
4717 # 10*(2^10) chars as input seems more than enough
4718 test $ac_count -gt 10 && break
5213506e 4719 done
21be0a5a
JB
4720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4721esac
6de9cd9a 4722
21be0a5a
JB
4723 $ac_path_EGREP_found && break 3
4724 done
4725 done
4726 done
4727IFS=$as_save_IFS
4728 if test -z "$ac_cv_path_EGREP"; then
4729 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4730 fi
6de9cd9a 4731else
21be0a5a 4732 ac_cv_path_EGREP=$EGREP
6de9cd9a
DN
4733fi
4734
21be0a5a 4735 fi
6de9cd9a 4736fi
21be0a5a
JB
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4738$as_echo "$ac_cv_path_EGREP" >&6; }
4739 EGREP="$ac_cv_path_EGREP"
4740
4741
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4743$as_echo_n "checking for ANSI C header files... " >&6; }
4744if test "${ac_cv_header_stdc+set}" = set; then :
5213506e 4745 $as_echo_n "(cached) " >&6
6de9cd9a 4746else
21be0a5a
JB
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748/* end confdefs.h. */
4749#include <stdlib.h>
4750#include <stdarg.h>
4751#include <string.h>
4752#include <float.h>
4753
4754int
4755main ()
4756{
4757
4758 ;
4759 return 0;
4760}
4761_ACEOF
4762if ac_fn_c_try_compile "$LINENO"; then :
4763 ac_cv_header_stdc=yes
6de9cd9a 4764else
21be0a5a
JB
4765 ac_cv_header_stdc=no
4766fi
4767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4768
21be0a5a
JB
4769if test $ac_cv_header_stdc = yes; then
4770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h. */
4773#include <string.h>
4774
4775_ACEOF
4776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4777 $EGREP "memchr" >/dev/null 2>&1; then :
4778
4779else
4780 ac_cv_header_stdc=no
6de9cd9a 4781fi
21be0a5a
JB
4782rm -f conftest*
4783
6de9cd9a 4784fi
21be0a5a
JB
4785
4786if test $ac_cv_header_stdc = yes; then
4787 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789/* end confdefs.h. */
4790#include <stdlib.h>
4791
4792_ACEOF
4793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794 $EGREP "free" >/dev/null 2>&1; then :
4795
6de9cd9a 4796else
21be0a5a 4797 ac_cv_header_stdc=no
6de9cd9a 4798fi
21be0a5a 4799rm -f conftest*
6de9cd9a 4800
6de9cd9a
DN
4801fi
4802
21be0a5a
JB
4803if test $ac_cv_header_stdc = yes; then
4804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4805 if test "$cross_compiling" = yes; then :
4806 :
4807else
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809/* end confdefs.h. */
4810#include <ctype.h>
4811#include <stdlib.h>
4812#if ((' ' & 0x0FF) == 0x020)
4813# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4814# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4815#else
4816# define ISLOWER(c) \
4817 (('a' <= (c) && (c) <= 'i') \
4818 || ('j' <= (c) && (c) <= 'r') \
4819 || ('s' <= (c) && (c) <= 'z'))
4820# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4821#endif
4822
4823#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4824int
4825main ()
4826{
4827 int i;
4828 for (i = 0; i < 256; i++)
4829 if (XOR (islower (i), ISLOWER (i))
4830 || toupper (i) != TOUPPER (i))
4831 return 2;
4832 return 0;
4833}
4834_ACEOF
4835if ac_fn_c_try_run "$LINENO"; then :
4836
4837else
4838 ac_cv_header_stdc=no
4839fi
4840rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4841 conftest.$ac_objext conftest.beam conftest.$ac_ext
4842fi
4843
4844fi
4845fi
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4847$as_echo "$ac_cv_header_stdc" >&6; }
4848if test $ac_cv_header_stdc = yes; then
4849
4850$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4851
4852fi
4853
4854# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4855for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4856 inttypes.h stdint.h unistd.h
4857do :
4858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4859ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4860"
4861eval as_val=\$$as_ac_Header
4862 if test "x$as_val" = x""yes; then :
4863 cat >>confdefs.h <<_ACEOF
4864#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4865_ACEOF
4866
4867fi
4868
4869done
4870
4871
4872
4873 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4874if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4875 MINIX=yes
4876else
4877 MINIX=
4878fi
4879
4880
4881 if test "$MINIX" = yes; then
4882
4883$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4884
4885
4886$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4887
4888
4889$as_echo "#define _MINIX 1" >>confdefs.h
4890
4891 fi
4892
4893
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4895$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4896if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4897 $as_echo_n "(cached) " >&6
4898else
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h. */
4901
4902# define __EXTENSIONS__ 1
4903 $ac_includes_default
4904int
4905main ()
4906{
4907
4908 ;
4909 return 0;
4910}
4911_ACEOF
4912if ac_fn_c_try_compile "$LINENO"; then :
4913 ac_cv_safe_to_define___extensions__=yes
4914else
4915 ac_cv_safe_to_define___extensions__=no
4916fi
4917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918fi
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4920$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4921 test $ac_cv_safe_to_define___extensions__ = yes &&
4922 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4923
4924 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4925
4926 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4927
4928 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4929
4930 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4931
4932
4933
4934# Calculate toolexeclibdir
4935# Also toolexecdir, though it's only used in toolexeclibdir
4936case ${version_specific_libs} in
4937 yes)
4938 # Need the gcc compiler version to know where to install libraries
4939 # and header files if --enable-version-specific-runtime-libs option
4940 # is selected.
4941 toolexecdir='$(libdir)/gcc/$(target_alias)'
4942 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4943 ;;
4944 no)
4945 if test -n "$with_cross_host" &&
4946 test x"$with_cross_host" != x"no"; then
4947 # Install a library built with a cross compiler in tooldir, not libdir.
4948 toolexecdir='$(exec_prefix)/$(target_alias)'
4949 toolexeclibdir='$(toolexecdir)/lib'
4950 else
4951 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4952 toolexeclibdir='$(libdir)'
4953 fi
4954 multi_os_directory=`$CC -print-multi-os-directory`
4955 case $multi_os_directory in
4956 .) ;; # Avoid trailing /.
4957 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4958 esac
4959 ;;
4960esac
4961
4962
4963
4964# Create a spec file, so that compile/link tests don't fail
4965test -f libgfortran.spec || touch libgfortran.spec
4966
60858d8a
TB
4967ac_ext=c
4968ac_cpp='$CPP $CPPFLAGS'
4969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972
21be0a5a
JB
4973# Check the compiler.
4974# The same as in boehm-gc and libstdc++. Have to borrow it from there.
4975# We must force CC to /not/ be precious variables; otherwise
4976# the wrong, non-multilib-adjusted value will be used in multilibs.
4977# As a side effect, we have to subst CFLAGS ourselves.
4978
4979
4980
4981ac_ext=c
4982ac_cpp='$CPP $CPPFLAGS'
4983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986if test -n "$ac_tool_prefix"; then
4987 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4988set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 4991if test "${ac_cv_prog_CC+set}" = set; then :
5213506e 4992 $as_echo_n "(cached) " >&6
6de9cd9a 4993else
21be0a5a
JB
4994 if test -n "$CC"; then
4995 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 4996else
96b8a615
AJ
4997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998for as_dir in $PATH
4999do
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5213506e
RW
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 5004 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5006 break 2
5007 fi
5008done
5213506e
RW
5009 done
5010IFS=$as_save_IFS
6de9cd9a 5011
6de9cd9a 5012fi
96b8a615 5013fi
21be0a5a
JB
5014CC=$ac_cv_prog_CC
5015if test -n "$CC"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5017$as_echo "$CC" >&6; }
96b8a615 5018else
5213506e
RW
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020$as_echo "no" >&6; }
96b8a615 5021fi
6de9cd9a 5022
5213506e 5023
6de9cd9a 5024fi
21be0a5a
JB
5025if test -z "$ac_cv_prog_CC"; then
5026 ac_ct_CC=$CC
5027 # Extract the first word of "gcc", so it can be a program name with args.
5028set dummy gcc; ac_word=$2
5213506e
RW
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 5031if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5213506e 5032 $as_echo_n "(cached) " >&6
6de9cd9a 5033else
21be0a5a
JB
5034 if test -n "$ac_ct_CC"; then
5035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6de9cd9a 5036else
96b8a615
AJ
5037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5213506e
RW
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 5044 ac_cv_prog_ac_ct_CC="gcc"
5213506e 5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5046 break 2
5047 fi
5048done
5213506e
RW
5049 done
5050IFS=$as_save_IFS
6de9cd9a 5051
6de9cd9a 5052fi
6de9cd9a 5053fi
21be0a5a
JB
5054ac_ct_CC=$ac_cv_prog_ac_ct_CC
5055if test -n "$ac_ct_CC"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5057$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 5058else
5213506e
RW
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060$as_echo "no" >&6; }
6de9cd9a
DN
5061fi
5062
21be0a5a
JB
5063 if test "x$ac_ct_CC" = x; then
5064 CC=""
5213506e
RW
5065 else
5066 case $cross_compiling:$ac_tool_warned in
5067yes:)
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5070ac_tool_warned=yes ;;
5071esac
21be0a5a 5072 CC=$ac_ct_CC
5213506e 5073 fi
96b8a615 5074else
21be0a5a 5075 CC="$ac_cv_prog_CC"
6de9cd9a 5076fi
96b8a615 5077
21be0a5a
JB
5078if test -z "$CC"; then
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5081set dummy ${ac_tool_prefix}cc; ac_word=$2
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083$as_echo_n "checking for $ac_word... " >&6; }
5084if test "${ac_cv_prog_CC+set}" = set; then :
5213506e 5085 $as_echo_n "(cached) " >&6
6de9cd9a 5086else
21be0a5a
JB
5087 if test -n "$CC"; then
5088 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 5089else
21be0a5a
JB
5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
5092do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_CC="${ac_tool_prefix}cc"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5100 fi
5101done
5102 done
5103IFS=$as_save_IFS
5104
5105fi
5106fi
5107CC=$ac_cv_prog_CC
5108if test -n "$CC"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5110$as_echo "$CC" >&6; }
5111else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113$as_echo "no" >&6; }
5114fi
5115
5116
5117 fi
5118fi
5119if test -z "$CC"; then
5120 # Extract the first word of "cc", so it can be a program name with args.
5121set dummy cc; ac_word=$2
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123$as_echo_n "checking for $ac_word... " >&6; }
5124if test "${ac_cv_prog_CC+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126else
5127 if test -n "$CC"; then
5128 ac_cv_prog_CC="$CC" # Let the user override the test.
5129else
5130 ac_prog_rejected=no
5131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132for as_dir in $PATH
5133do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5139 ac_prog_rejected=yes
5140 continue
5141 fi
5142 ac_cv_prog_CC="cc"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5145 fi
5146done
5147 done
5148IFS=$as_save_IFS
5149
5150if test $ac_prog_rejected = yes; then
5151 # We found a bogon in the path, so make sure we never use it.
5152 set dummy $ac_cv_prog_CC
5153 shift
5154 if test $# != 0; then
5155 # We chose a different compiler from the bogus one.
5156 # However, it has the same basename, so the bogon will be chosen
5157 # first if we set CC to just the basename; use the full file name.
5158 shift
5159 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5160 fi
5161fi
5162fi
5163fi
5164CC=$ac_cv_prog_CC
5165if test -n "$CC"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5167$as_echo "$CC" >&6; }
5168else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }
5171fi
5172
5173
5174fi
5175if test -z "$CC"; then
5176 if test -n "$ac_tool_prefix"; then
5177 for ac_prog in cl.exe
5178 do
5179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182$as_echo_n "checking for $ac_word... " >&6; }
5183if test "${ac_cv_prog_CC+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185else
5186 if test -n "$CC"; then
5187 ac_cv_prog_CC="$CC" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200done
5201 done
5202IFS=$as_save_IFS
5203
5204fi
5205fi
5206CC=$ac_cv_prog_CC
5207if test -n "$CC"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5209$as_echo "$CC" >&6; }
5210else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212$as_echo "no" >&6; }
5213fi
5214
5215
5216 test -n "$CC" && break
5217 done
5218fi
5219if test -z "$CC"; then
5220 ac_ct_CC=$CC
5221 for ac_prog in cl.exe
5222do
5223 # Extract the first word of "$ac_prog", so it can be a program name with args.
5224set dummy $ac_prog; ac_word=$2
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226$as_echo_n "checking for $ac_word... " >&6; }
5227if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229else
5230 if test -n "$ac_ct_CC"; then
5231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5232else
5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234for as_dir in $PATH
5235do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_ac_ct_CC="$ac_prog"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244done
5245 done
5246IFS=$as_save_IFS
5247
5248fi
5249fi
5250ac_ct_CC=$ac_cv_prog_ac_ct_CC
5251if test -n "$ac_ct_CC"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5253$as_echo "$ac_ct_CC" >&6; }
5254else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256$as_echo "no" >&6; }
5257fi
5258
5259
5260 test -n "$ac_ct_CC" && break
5261done
5262
5263 if test "x$ac_ct_CC" = x; then
5264 CC=""
5265 else
5266 case $cross_compiling:$ac_tool_warned in
5267yes:)
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270ac_tool_warned=yes ;;
5271esac
5272 CC=$ac_ct_CC
5273 fi
5274fi
5275
5276fi
5277
5278
5279test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5281as_fn_error "no acceptable C compiler found in \$PATH
5282See \`config.log' for more details." "$LINENO" 5; }
5283
5284# Provide some information about the compiler.
5285$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5286set X $ac_compile
5287ac_compiler=$2
5288for ac_option in --version -v -V -qversion; do
5289 { { ac_try="$ac_compiler $ac_option >&5"
5290case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293esac
5294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5295$as_echo "$ac_try_echo"; } >&5
5296 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5297 ac_status=$?
5298 if test -s conftest.err; then
5299 sed '10a\
5300... rest of stderr output deleted ...
5301 10q' conftest.err >conftest.er1
5302 cat conftest.er1 >&5
5303 rm -f conftest.er1 conftest.err
5304 fi
5305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5306 test $ac_status = 0; }
5307done
5308
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5310$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5311if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5313else
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h. */
5316
5317int
5318main ()
5319{
5320#ifndef __GNUC__
5321 choke me
5322#endif
5323
5324 ;
5325 return 0;
5326}
5327_ACEOF
5328if ac_fn_c_try_compile "$LINENO"; then :
5329 ac_compiler_gnu=yes
5330else
5331 ac_compiler_gnu=no
5332fi
5333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334ac_cv_c_compiler_gnu=$ac_compiler_gnu
5335
5336fi
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5338$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5339if test $ac_compiler_gnu = yes; then
5340 GCC=yes
5341else
5342 GCC=
5343fi
5344ac_test_CFLAGS=${CFLAGS+set}
5345ac_save_CFLAGS=$CFLAGS
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5347$as_echo_n "checking whether $CC accepts -g... " >&6; }
5348if test "${ac_cv_prog_cc_g+set}" = set; then :
5349 $as_echo_n "(cached) " >&6
5350else
5351 ac_save_c_werror_flag=$ac_c_werror_flag
5352 ac_c_werror_flag=yes
5353 ac_cv_prog_cc_g=no
5354 CFLAGS="-g"
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356/* end confdefs.h. */
5357
5358int
5359main ()
5360{
5361
5362 ;
5363 return 0;
5364}
5365_ACEOF
5366if ac_fn_c_try_compile "$LINENO"; then :
5367 ac_cv_prog_cc_g=yes
5368else
5369 CFLAGS=""
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371/* end confdefs.h. */
5372
5373int
5374main ()
5375{
5376
5377 ;
5378 return 0;
5379}
5380_ACEOF
5381if ac_fn_c_try_compile "$LINENO"; then :
5382
5383else
5384 ac_c_werror_flag=$ac_save_c_werror_flag
5385 CFLAGS="-g"
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387/* end confdefs.h. */
5388
5389int
5390main ()
5391{
5392
5393 ;
5394 return 0;
5395}
5396_ACEOF
5397if ac_fn_c_try_compile "$LINENO"; then :
5398 ac_cv_prog_cc_g=yes
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401fi
5402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403fi
5404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 ac_c_werror_flag=$ac_save_c_werror_flag
5406fi
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5408$as_echo "$ac_cv_prog_cc_g" >&6; }
5409if test "$ac_test_CFLAGS" = set; then
5410 CFLAGS=$ac_save_CFLAGS
5411elif test $ac_cv_prog_cc_g = yes; then
5412 if test "$GCC" = yes; then
5413 CFLAGS="-g -O2"
5414 else
5415 CFLAGS="-g"
5416 fi
5417else
5418 if test "$GCC" = yes; then
5419 CFLAGS="-O2"
5420 else
5421 CFLAGS=
5422 fi
5423fi
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5425$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5426if test "${ac_cv_prog_cc_c89+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5428else
5429 ac_cv_prog_cc_c89=no
5430ac_save_CC=$CC
5431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h. */
5433#include <stdarg.h>
5434#include <stdio.h>
5435#include <sys/types.h>
5436#include <sys/stat.h>
5437/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5438struct buf { int x; };
5439FILE * (*rcsopen) (struct buf *, struct stat *, int);
5440static char *e (p, i)
5441 char **p;
5442 int i;
5443{
5444 return p[i];
5445}
5446static char *f (char * (*g) (char **, int), char **p, ...)
5447{
5448 char *s;
5449 va_list v;
5450 va_start (v,p);
5451 s = g (p, va_arg (v,int));
5452 va_end (v);
5453 return s;
5454}
5455
5456/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5457 function prototypes and stuff, but not '\xHH' hex character constants.
5458 These don't provoke an error unfortunately, instead are silently treated
5459 as 'x'. The following induces an error, until -std is added to get
5460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5461 array size at least. It's necessary to write '\x00'==0 to get something
5462 that's true only with -std. */
5463int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5464
5465/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5466 inside strings and character constants. */
5467#define FOO(x) 'x'
5468int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5469
5470int test (int i, double x);
5471struct s1 {int (*f) (int a);};
5472struct s2 {int (*f) (double a);};
5473int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5474int argc;
5475char **argv;
5476int
5477main ()
5478{
5479return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5480 ;
5481 return 0;
5482}
5483_ACEOF
5484for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5486do
5487 CC="$ac_save_CC $ac_arg"
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489 ac_cv_prog_cc_c89=$ac_arg
5490fi
5491rm -f core conftest.err conftest.$ac_objext
5492 test "x$ac_cv_prog_cc_c89" != "xno" && break
5493done
5494rm -f conftest.$ac_ext
5495CC=$ac_save_CC
5496
5497fi
5498# AC_CACHE_VAL
5499case "x$ac_cv_prog_cc_c89" in
5500 x)
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5502$as_echo "none needed" >&6; } ;;
5503 xno)
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5505$as_echo "unsupported" >&6; } ;;
5506 *)
5507 CC="$CC $ac_cv_prog_cc_c89"
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5509$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5510esac
5511if test "x$ac_cv_prog_cc_c89" != xno; then :
5512
5513fi
5514
5515ac_ext=c
5516ac_cpp='$CPP $CPPFLAGS'
5517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519ac_compiler_gnu=$ac_cv_c_compiler_gnu
5520
5521depcc="$CC" am_compiler_list=
5522
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5524$as_echo_n "checking dependency style of $depcc... " >&6; }
5525if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5527else
5528 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5529 # We make a subdir and do the tests there. Otherwise we can end up
5530 # making bogus files that we don't know about and never remove. For
5531 # instance it was reported that on HP-UX the gcc test will end up
5532 # making a dummy file named `D' -- because `-MD' means `put the output
5533 # in D'.
c20fdb91 5534 rm -rf conftest.dir
21be0a5a
JB
5535 mkdir conftest.dir
5536 # Copy depcomp to subdir because otherwise we won't find it if we're
5537 # using a relative directory.
5538 cp "$am_depcomp" conftest.dir
5539 cd conftest.dir
5540 # We will build objects and dependencies in a subdirectory because
5541 # it helps to detect inapplicable dependency modes. For instance
5542 # both Tru64's cc and ICC support -MD to output dependencies as a
5543 # side effect of compilation, but ICC will put the dependencies in
5544 # the current directory while Tru64 will put them in the object
5545 # directory.
5546 mkdir sub
5547
5548 am_cv_CC_dependencies_compiler_type=none
5549 if test "$am_compiler_list" = ""; then
5550 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5551 fi
5552 am__universal=false
5553 case " $depcc " in #(
5554 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5555 esac
5556
5557 for depmode in $am_compiler_list; do
5558 # Setup a source with many dependencies, because some compilers
5559 # like to wrap large dependency lists on column 80 (with \), and
5560 # we should not choose a depcomp mode which is confused by this.
5561 #
5562 # We need to recreate these files for each test, as the compiler may
5563 # overwrite some of them when testing with obscure command lines.
5564 # This happens at least with the AIX C compiler.
5565 : > sub/conftest.c
5566 for i in 1 2 3 4 5 6; do
5567 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5568 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5569 # Solaris 8's {/usr,}/bin/sh.
5570 touch sub/conftst$i.h
5571 done
5572 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5573
5574 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5575 # mode. It turns out that the SunPro C++ compiler does not properly
5576 # handle `-M -o', and we need to detect this. Also, some Intel
5577 # versions had trouble with output in subdirs
5578 am__obj=sub/conftest.${OBJEXT-o}
5579 am__minus_obj="-o $am__obj"
5580 case $depmode in
5581 gcc)
5582 # This depmode causes a compiler race in universal mode.
5583 test "$am__universal" = false || continue
5584 ;;
5585 nosideeffect)
5586 # after this tag, mechanisms are not by side-effect, so they'll
5587 # only be used when explicitly requested
5588 if test "x$enable_dependency_tracking" = xyes; then
5589 continue
5590 else
5591 break
5592 fi
5593 ;;
c20fdb91 5594 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
21be0a5a
JB
5595 # This compiler won't grok `-c -o', but also, the minuso test has
5596 # not run yet. These depmodes are late enough in the game, and
5597 # so weak that their functioning should not be impacted.
5598 am__obj=conftest.${OBJEXT-o}
5599 am__minus_obj=
5600 ;;
5601 none) break ;;
5602 esac
5603 if depmode=$depmode \
5604 source=sub/conftest.c object=$am__obj \
5605 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5606 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5607 >/dev/null 2>conftest.err &&
5608 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5609 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5610 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5611 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5612 # icc doesn't choke on unknown options, it will just issue warnings
5613 # or remarks (even with -Werror). So we grep stderr for any message
5614 # that says an option was ignored or not supported.
5615 # When given -MP, icc 7.0 and 7.1 complain thusly:
5616 # icc: Command line warning: ignoring option '-M'; no argument required
5617 # The diagnosis changed in icc 8.0:
5618 # icc: Command line remark: option '-MP' not supported
5619 if (grep 'ignoring option' conftest.err ||
5620 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5621 am_cv_CC_dependencies_compiler_type=$depmode
5622 break
5623 fi
5624 fi
5625 done
5626
5627 cd ..
5628 rm -rf conftest.dir
5629else
5630 am_cv_CC_dependencies_compiler_type=none
5631fi
5632
5633fi
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5635$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5636CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5637
5638 if
5639 test "x$enable_dependency_tracking" != xno \
5640 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5641 am__fastdepCC_TRUE=
5642 am__fastdepCC_FALSE='#'
5643else
5644 am__fastdepCC_TRUE='#'
5645 am__fastdepCC_FALSE=
5646fi
5647
5648
5649
5650
60858d8a
TB
5651
5652
5653if test "x$CC" != xcc; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5655$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5656else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5658$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5659fi
5660set dummy $CC; ac_cc=`$as_echo "$2" |
5661 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5662if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5663 $as_echo_n "(cached) " >&6
5664else
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666/* end confdefs.h. */
5667
5668int
5669main ()
5670{
5671
5672 ;
5673 return 0;
5674}
5675_ACEOF
5676# Make sure it works both with $CC and with simple cc.
5677# We do the test twice because some compilers refuse to overwrite an
5678# existing .o file with -o, though they will create one.
5679ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5680rm -f conftest2.*
5681if { { case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684esac
5685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5686$as_echo "$ac_try_echo"; } >&5
5687 (eval "$ac_try") 2>&5
5688 ac_status=$?
5689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5690 test $ac_status = 0; } &&
5691 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5694esac
5695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5696$as_echo "$ac_try_echo"; } >&5
5697 (eval "$ac_try") 2>&5
5698 ac_status=$?
5699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5700 test $ac_status = 0; };
5701then
5702 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5703 if test "x$CC" != xcc; then
5704 # Test first that cc exists at all.
5705 if { ac_try='cc -c conftest.$ac_ext >&5'
5706 { { case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709esac
5710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5711$as_echo "$ac_try_echo"; } >&5
5712 (eval "$ac_try") 2>&5
5713 ac_status=$?
5714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5715 test $ac_status = 0; }; }; then
5716 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5717 rm -f conftest2.*
5718 if { { case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721esac
5722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5723$as_echo "$ac_try_echo"; } >&5
5724 (eval "$ac_try") 2>&5
5725 ac_status=$?
5726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5727 test $ac_status = 0; } &&
5728 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731esac
5732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5733$as_echo "$ac_try_echo"; } >&5
5734 (eval "$ac_try") 2>&5
5735 ac_status=$?
5736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5737 test $ac_status = 0; };
5738 then
5739 # cc works too.
5740 :
5741 else
5742 # cc exists but doesn't like -o.
5743 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5744 fi
5745 fi
5746 fi
5747else
5748 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5749fi
5750rm -f core conftest*
5751
5752fi
5753if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5755$as_echo "yes" >&6; }
5756else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758$as_echo "no" >&6; }
5759
5760$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5761
5762fi
5763
5764# FIXME: we rely on the cache variable name because
5765# there is no other way.
5766set dummy $CC
5767am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5768eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5769if test "$am_t" != yes; then
5770 # Losing compiler, so override with the script.
5771 # FIXME: It is wrong to rewrite CC.
5772 # But if we don't then we get into trouble of one sort or another.
5773 # A longer-term fix would be to have automake use am__CC in this case,
5774 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5775 CC="$am_aux_dir/compile $CC"
5776fi
5777
5778
5779
21be0a5a
JB
5780# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5781if test "x$GCC" = "xyes"; then
5782 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
f7b6856f
JB
5783 ## We like to use C11 and C99 routines when available. This makes
5784 ## sure that
21be0a5a 5785 ## __STDC_VERSION__ is set such that libc includes make them available.
581d2326 5786 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
21be0a5a
JB
5787 ## Compile the following tests with the same system header contents
5788 ## that we'll encounter when compiling our own source files.
f7b6856f 5789 CFLAGS="-std=gnu11 $CFLAGS"
21be0a5a
JB
5790fi
5791
26724ef9
IT
5792# Add CET specific flags if CET is enabled
5793 # Check whether --enable-cet was given.
5794if test "${enable_cet+set}" = set; then :
5795 enableval=$enable_cet;
5796 case "$enableval" in
a0e1df88 5797 yes|no|auto) ;;
26724ef9
IT
5798 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5799 esac
5800
5801else
a0e1df88 5802 enable_cet=no
26724ef9
IT
5803fi
5804
5805
14e335ed
IT
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5807$as_echo_n "checking for CET support... " >&6; }
5808
26724ef9
IT
5809case "$host" in
5810 i[34567]86-*-linux* | x86_64-*-linux*)
5811 case "$enable_cet" in
a0e1df88 5812 auto)
14e335ed
IT
5813 # Check if target supports multi-byte NOPs
5814 # and if assembler supports CET insn.
26724ef9
IT
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816/* end confdefs.h. */
5817
5818int
5819main ()
5820{
14e335ed
IT
5821
5822#if !defined(__SSE2__)
5823#error target does not support multi-byte NOPs
5824#else
26724ef9 5825asm ("setssbsy");
14e335ed
IT
5826#endif
5827
26724ef9
IT
5828 ;
5829 return 0;
5830}
5831_ACEOF
5832if ac_fn_c_try_compile "$LINENO"; then :
5833 enable_cet=yes
5834else
5835 enable_cet=no
5836fi
5837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 ;;
5839 yes)
5840 # Check if assembler supports CET.
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h. */
5843
5844int
5845main ()
5846{
5847asm ("setssbsy");
5848 ;
5849 return 0;
5850}
5851_ACEOF
5852if ac_fn_c_try_compile "$LINENO"; then :
5853
5854else
5855 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
5856fi
5857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 ;;
5859 esac
5860 ;;
5861 *)
5862 enable_cet=no
5863 ;;
5864esac
5865if test x$enable_cet = xyes; then
7b47ecf2 5866 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5868$as_echo "yes" >&6; }
5869else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871$as_echo "no" >&6; }
26724ef9
IT
5872fi
5873
5874AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
5875AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
5876CFLAGS="$CFLAGS $CET_FLAGS"
5877
5878
21be0a5a
JB
5879
5880
5881
5882# Check for symbol versioning (copied from libssp).
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5884$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bf382f5f
RO
5885# Check whether --enable-symvers was given.
5886if test "${enable_symvers+set}" = set; then :
5887 enableval=$enable_symvers; gfortran_use_symver=$enableval
5888else
5889 gfortran_use_symver=yes
5890fi
5891
19af62db 5892if test "x$gfortran_use_symver" != xno; then
bf382f5f
RO
5893 save_LDFLAGS="$LDFLAGS"
5894 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5895 cat > conftest.map <<EOF
21be0a5a
JB
5896FOO_1.0 {
5897 global: *foo*; bar; local: *;
5898};
5899EOF
bf382f5f 5900 if test x$gcc_no_link = xyes; then
21be0a5a
JB
5901 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5902fi
5903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904/* end confdefs.h. */
5905int foo;
5906int
5907main ()
5908{
5909
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914if ac_fn_c_try_link "$LINENO"; then :
5915 gfortran_use_symver=gnu
5916else
5917 gfortran_use_symver=no
5918fi
5919rm -f core conftest.err conftest.$ac_objext \
5920 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
5921 if test x$gfortran_use_symver = xno; then
5922 case "$target_os" in
5923 solaris2*)
5924 LDFLAGS="$save_LDFLAGS"
5925 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5926 # Sun ld cannot handle wildcards and treats all entries as undefined.
5927 cat > conftest.map <<EOF
21be0a5a
JB
5928FOO_1.0 {
5929 global: foo; local: *;
5930};
5931EOF
bf382f5f 5932 if test x$gcc_no_link = xyes; then
21be0a5a
JB
5933 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5934fi
5935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936/* end confdefs.h. */
5937int foo;
5938int
5939main ()
5940{
5941
5942 ;
5943 return 0;
5944}
5945_ACEOF
5946if ac_fn_c_try_link "$LINENO"; then :
5947 gfortran_use_symver=sun
5948else
5949 gfortran_use_symver=no
5950fi
5951rm -f core conftest.err conftest.$ac_objext \
5952 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
5953 ;;
5954 esac
5955 fi
5956 LDFLAGS="$save_LDFLAGS"
21be0a5a 5957fi
21be0a5a
JB
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5959$as_echo "$gfortran_use_symver" >&6; }
5960 if test "x$gfortran_use_symver" != xno; then
5961 LIBGFOR_USE_SYMVER_TRUE=
5962 LIBGFOR_USE_SYMVER_FALSE='#'
5963else
5964 LIBGFOR_USE_SYMVER_TRUE='#'
5965 LIBGFOR_USE_SYMVER_FALSE=
5966fi
5967
5968 if test "x$gfortran_use_symver" = xgnu; then
5969 LIBGFOR_USE_SYMVER_GNU_TRUE=
5970 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5971else
5972 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5973 LIBGFOR_USE_SYMVER_GNU_FALSE=
5974fi
5975
5976 if test "x$gfortran_use_symver" = xsun; then
5977 LIBGFOR_USE_SYMVER_SUN_TRUE=
5978 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5979else
5980 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5981 LIBGFOR_USE_SYMVER_SUN_FALSE=
5982fi
5983
5984
ee95f928
BS
5985# For GPU offloading, not everything in libfortran can be supported.
5986# Currently, the only target that has this problem is nvptx. The
5987# following is a (partial) list of features that are unsupportable on
5988# this particular target:
5989# * Constructors
5990# * alloca
5991# * C library support for I/O, with printf as the one notable exception
5992# * C library support for other features such as signal, environment
5993# variables, time functions
5994
5995 if test "x${target_cpu}" = xnvptx; then
5996 LIBGFOR_MINIMAL_TRUE=
5997 LIBGFOR_MINIMAL_FALSE='#'
5998else
5999 LIBGFOR_MINIMAL_TRUE='#'
6000 LIBGFOR_MINIMAL_FALSE=
6001fi
6002
6003
21be0a5a
JB
6004# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6005# similarly to how libstdc++ does it
6006ac_test_CFLAGS="${CFLAGS+set}"
6007ac_save_CFLAGS="$CFLAGS"
6008
6009# Check for -ffunction-sections -fdata-sections
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6011$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6012CFLAGS='-Werror -ffunction-sections -fdata-sections'
6013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014/* end confdefs.h. */
6015
6016int
6017main ()
6018{
6019int foo;
6020 ;
6021 return 0;
6022}
6023_ACEOF
6024if ac_fn_c_try_compile "$LINENO"; then :
6025 ac_fdsections=yes
6026else
6027 ac_fdsections=no
6028fi
6029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030if test "$ac_test_CFLAGS" = set; then
6031 CFLAGS="$ac_save_CFLAGS"
6032else
6033 # this is the suspicious part
6034 CFLAGS=""
6035fi
6036if test x"$ac_fdsections" = x"yes"; then
6037 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6038fi
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6040$as_echo "$ac_fdsections" >&6; }
6041
6042
66dbcf2d
RO
6043# Check linker hardware capability support.
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6045$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6046if test "${ac_cv_path_SED+set}" = set; then :
21be0a5a
JB
6047 $as_echo_n "(cached) " >&6
6048else
66dbcf2d
RO
6049 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6050 for ac_i in 1 2 3 4 5 6 7; do
6051 ac_script="$ac_script$as_nl$ac_script"
6052 done
6053 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6054 { ac_script=; unset ac_script;}
6055 if test -z "$SED"; then
6056 ac_path_SED_found=false
6057 # Loop through the user's path and test for each of PROGNAME-LIST
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21be0a5a
JB
6059for as_dir in $PATH
6060do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
66dbcf2d 6063 for ac_prog in sed gsed; do
21be0a5a 6064 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d
RO
6065 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6066 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6067# Check for GNU ac_path_SED and select it if it is found.
6068 # Check for GNU $ac_path_SED
6069case `"$ac_path_SED" --version 2>&1` in
6070*GNU*)
6071 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6072*)
6073 ac_count=0
6074 $as_echo_n 0123456789 >"conftest.in"
6075 while :
6076 do
6077 cat "conftest.in" "conftest.in" >"conftest.tmp"
6078 mv "conftest.tmp" "conftest.in"
6079 cp "conftest.in" "conftest.nl"
6080 $as_echo '' >> "conftest.nl"
6081 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6083 as_fn_arith $ac_count + 1 && ac_count=$as_val
6084 if test $ac_count -gt ${ac_path_SED_max-0}; then
6085 # Best one so far, save it but keep looking for a better one
6086 ac_cv_path_SED="$ac_path_SED"
6087 ac_path_SED_max=$ac_count
6088 fi
6089 # 10*(2^10) chars as input seems more than enough
6090 test $ac_count -gt 10 && break
21be0a5a 6091 done
66dbcf2d
RO
6092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6093esac
21be0a5a 6094
66dbcf2d
RO
6095 $ac_path_SED_found && break 3
6096 done
6097 done
21be0a5a
JB
6098 done
6099IFS=$as_save_IFS
66dbcf2d
RO
6100 if test -z "$ac_cv_path_SED"; then
6101 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6102 fi
21be0a5a 6103else
66dbcf2d 6104 ac_cv_path_SED=$SED
21be0a5a
JB
6105fi
6106
21be0a5a 6107fi
66dbcf2d
RO
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6109$as_echo "$ac_cv_path_SED" >&6; }
6110 SED="$ac_cv_path_SED"
6111 rm -f conftest.sed
21be0a5a 6112
66dbcf2d
RO
6113test -z "$SED" && SED=sed
6114Xsed="$SED -e 1s/^X//"
21be0a5a 6115
21be0a5a
JB
6116
6117
66dbcf2d
RO
6118
6119
6120
6121
6122
6123
6124
6125
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6127$as_echo_n "checking for fgrep... " >&6; }
6128if test "${ac_cv_path_FGREP+set}" = set; then :
21be0a5a
JB
6129 $as_echo_n "(cached) " >&6
6130else
66dbcf2d
RO
6131 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6132 then ac_cv_path_FGREP="$GREP -F"
6133 else
6134 if test -z "$FGREP"; then
6135 ac_path_FGREP_found=false
6136 # Loop through the user's path and test for each of PROGNAME-LIST
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
21be0a5a
JB
6139do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
66dbcf2d 6142 for ac_prog in fgrep; do
21be0a5a 6143 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d
RO
6144 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6145 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6146# Check for GNU ac_path_FGREP and select it if it is found.
6147 # Check for GNU $ac_path_FGREP
6148case `"$ac_path_FGREP" --version 2>&1` in
6149*GNU*)
6150 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6151*)
6152 ac_count=0
6153 $as_echo_n 0123456789 >"conftest.in"
6154 while :
6155 do
6156 cat "conftest.in" "conftest.in" >"conftest.tmp"
6157 mv "conftest.tmp" "conftest.in"
6158 cp "conftest.in" "conftest.nl"
6159 $as_echo 'FGREP' >> "conftest.nl"
6160 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6162 as_fn_arith $ac_count + 1 && ac_count=$as_val
6163 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6164 # Best one so far, save it but keep looking for a better one
6165 ac_cv_path_FGREP="$ac_path_FGREP"
6166 ac_path_FGREP_max=$ac_count
6167 fi
6168 # 10*(2^10) chars as input seems more than enough
6169 test $ac_count -gt 10 && break
6170 done
6171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6172esac
6173
6174 $ac_path_FGREP_found && break 3
6175 done
6176 done
21be0a5a
JB
6177 done
6178IFS=$as_save_IFS
66dbcf2d
RO
6179 if test -z "$ac_cv_path_FGREP"; then
6180 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6181 fi
6182else
6183 ac_cv_path_FGREP=$FGREP
6184fi
21be0a5a 6185
66dbcf2d 6186 fi
21be0a5a 6187fi
66dbcf2d
RO
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6189$as_echo "$ac_cv_path_FGREP" >&6; }
6190 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
6191
6192
66dbcf2d 6193test -z "$GREP" && GREP=grep
1cf3d07d
SE
6194
6195
6196
6197
6de9cd9a 6198
1cf3d07d
SE
6199
6200
6201
6202
6203
6204
6205
43e02a8a 6206
43e02a8a 6207
43e02a8a 6208
43e02a8a 6209
43e02a8a
RW
6210
6211ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6212ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6213ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6214
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6216$as_echo_n "checking how to print strings... " >&6; }
6217# Test print first, because it will be a builtin if present.
6218if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6219 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6220 ECHO='print -r --'
6221elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6222 ECHO='printf %s\n'
6223else
6224 # Use this function as a fallback that always works.
6225 func_fallback_echo ()
6226 {
6227 eval 'cat <<_LTECHO_EOF
6228$1
6229_LTECHO_EOF'
6230 }
6231 ECHO='func_fallback_echo'
6232fi
6233
6234# func_echo_all arg...
6235# Invoke $ECHO with all args, space-separated.
6236func_echo_all ()
6237{
6238 $ECHO ""
6239}
6240
6241case "$ECHO" in
6242 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6243$as_echo "printf" >&6; } ;;
6244 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6245$as_echo "print -r" >&6; } ;;
6246 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6247$as_echo "cat" >&6; } ;;
6248esac
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
21be0a5a
JB
6261
6262
5213506e 6263
5213506e 6264
66dbcf2d
RO
6265# Check whether --with-gnu-ld was given.
6266if test "${with_gnu_ld+set}" = set; then :
6267 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6268else
6269 with_gnu_ld=no
1cf3d07d 6270fi
21be0a5a 6271
66dbcf2d
RO
6272ac_prog=ld
6273if test "$GCC" = yes; then
6274 # Check if gcc -print-prog-name=ld gives a path.
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6276$as_echo_n "checking for ld used by $CC... " >&6; }
6277 case $host in
6278 *-*-mingw*)
6279 # gcc leaves a trailing carriage return which upsets mingw
6280 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6281 *)
6282 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6283 esac
6284 case $ac_prog in
6285 # Accept absolute paths.
6286 [\\/]* | ?:[\\/]*)
6287 re_direlt='/[^/][^/]*/\.\./'
6288 # Canonicalize the pathname of ld
6289 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6290 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6291 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6292 done
6293 test -z "$LD" && LD="$ac_prog"
6294 ;;
6295 "")
6296 # If it fails, then pretend we aren't using GCC.
6297 ac_prog=ld
6298 ;;
6299 *)
6300 # If it is relative, then search for the first ld in PATH.
6301 with_gnu_ld=unknown
6302 ;;
6303 esac
6304elif test "$with_gnu_ld" = yes; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6306$as_echo_n "checking for GNU ld... " >&6; }
6307else
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6309$as_echo_n "checking for non-GNU ld... " >&6; }
6310fi
6311if test "${lt_cv_path_LD+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313else
6314 if test -z "$LD"; then
6315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6316 for ac_dir in $PATH; do
6317 IFS="$lt_save_ifs"
6318 test -z "$ac_dir" && ac_dir=.
6319 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6320 lt_cv_path_LD="$ac_dir/$ac_prog"
6321 # Check to see if the program is GNU ld. I'd rather use --version,
6322 # but apparently some variants of GNU ld only accept -v.
6323 # Break only if it was the GNU/non-GNU ld that we prefer.
6324 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6325 *GNU* | *'with BFD'*)
6326 test "$with_gnu_ld" != no && break
6327 ;;
6328 *)
6329 test "$with_gnu_ld" != yes && break
6330 ;;
6331 esac
6332 fi
6333 done
6334 IFS="$lt_save_ifs"
6335else
6336 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6337fi
6338fi
6339
6340LD="$lt_cv_path_LD"
6341if test -n "$LD"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6343$as_echo "$LD" >&6; }
6344else
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346$as_echo "no" >&6; }
6347fi
6348test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6350$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6351if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6352 $as_echo_n "(cached) " >&6
6353else
6354 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6355case `$LD -v 2>&1 </dev/null` in
6356*GNU* | *'with BFD'*)
6357 lt_cv_prog_gnu_ld=yes
6358 ;;
6359*)
6360 lt_cv_prog_gnu_ld=no
6361 ;;
6362esac
6363fi
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6365$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6366with_gnu_ld=$lt_cv_prog_gnu_ld
21be0a5a
JB
6367
6368
6369
6370
6371
6372
6373
6374
1cf3d07d
SE
6375
6376
66dbcf2d
RO
6377 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6378
6379
6380 ac_save_LDFLAGS="$LDFLAGS"
6381 LDFLAGS="$LFLAGS -mclear-hwcap"
6382
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6384$as_echo_n "checking for -mclear-hwcap... " >&6; }
6385 if test x$gcc_no_link = xyes; then
6386 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6387fi
6388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389/* end confdefs.h. */
6390
6391int
6392main ()
6393{
6394return 0;
6395 ;
6396 return 0;
6397}
6398_ACEOF
6399if ac_fn_c_try_link "$LINENO"; then :
6400 ac_hwcap_ldflags=yes
6401else
6402 ac_hwcap_ldflags=no
6403fi
6404rm -f core conftest.err conftest.$ac_objext \
6405 conftest$ac_exeext conftest.$ac_ext
6406 if test "$ac_hwcap_ldflags" = "yes"; then
6407 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6408 fi
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6410$as_echo "$ac_hwcap_ldflags" >&6; }
6411
6412 LDFLAGS="$ac_save_LDFLAGS"
6413
6414
6415
6416 if test $ac_hwcap_ldflags != no; then
6417 HAVE_HWCAP_TRUE=
6418 HAVE_HWCAP_FALSE='#'
6419else
6420 HAVE_HWCAP_TRUE='#'
6421 HAVE_HWCAP_FALSE=
6422fi
6423
6424
6425
6426# Find other programs we need.
6427if test -n "$ac_tool_prefix"; then
6428 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6429set dummy ${ac_tool_prefix}as; ac_word=$2
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431$as_echo_n "checking for $ac_word... " >&6; }
6432if test "${ac_cv_prog_AS+set}" = set; then :
5213506e 6433 $as_echo_n "(cached) " >&6
38d24731 6434else
66dbcf2d
RO
6435 if test -n "$AS"; then
6436 ac_cv_prog_AS="$AS" # Let the user override the test.
6437else
6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
5213506e
RW
6440do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
5213506e 6443 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d
RO
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_AS="${ac_tool_prefix}as"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449done
5213506e 6450 done
66dbcf2d
RO
6451IFS=$as_save_IFS
6452
6453fi
6454fi
6455AS=$ac_cv_prog_AS
6456if test -n "$AS"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6458$as_echo "$AS" >&6; }
6459else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461$as_echo "no" >&6; }
6462fi
6463
6464
6465fi
6466if test -z "$ac_cv_prog_AS"; then
6467 ac_ct_AS=$AS
6468 # Extract the first word of "as", so it can be a program name with args.
6469set dummy as; ac_word=$2
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471$as_echo_n "checking for $ac_word... " >&6; }
6472if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6473 $as_echo_n "(cached) " >&6
6474else
6475 if test -n "$ac_ct_AS"; then
6476 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6477else
6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_ac_ct_AS="as"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489done
6490 done
6491IFS=$as_save_IFS
6492
6493fi
6494fi
6495ac_ct_AS=$ac_cv_prog_ac_ct_AS
6496if test -n "$ac_ct_AS"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6498$as_echo "$ac_ct_AS" >&6; }
6499else
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501$as_echo "no" >&6; }
6502fi
6503
6504 if test "x$ac_ct_AS" = x; then
6505 AS=""
6506 else
6507 case $cross_compiling:$ac_tool_warned in
6508yes:)
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6511ac_tool_warned=yes ;;
5213506e 6512esac
66dbcf2d
RO
6513 AS=$ac_ct_AS
6514 fi
6515else
6516 AS="$ac_cv_prog_AS"
6517fi
5213506e 6518
66dbcf2d
RO
6519if test -n "$ac_tool_prefix"; then
6520 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6521set dummy ${ac_tool_prefix}ar; ac_word=$2
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523$as_echo_n "checking for $ac_word... " >&6; }
6524if test "${ac_cv_prog_AR+set}" = set; then :
6525 $as_echo_n "(cached) " >&6
6526else
6527 if test -n "$AR"; then
6528 ac_cv_prog_AR="$AR" # Let the user override the test.
6529else
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537 ac_cv_prog_AR="${ac_tool_prefix}ar"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541done
5213506e 6542 done
66dbcf2d
RO
6543IFS=$as_save_IFS
6544
6545fi
6546fi
6547AR=$ac_cv_prog_AR
6548if test -n "$AR"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6550$as_echo "$AR" >&6; }
6551else
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553$as_echo "no" >&6; }
6554fi
6555
6556
6557fi
6558if test -z "$ac_cv_prog_AR"; then
6559 ac_ct_AR=$AR
6560 # Extract the first word of "ar", so it can be a program name with args.
6561set dummy ar; ac_word=$2
6562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563$as_echo_n "checking for $ac_word... " >&6; }
6564if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6565 $as_echo_n "(cached) " >&6
6566else
6567 if test -n "$ac_ct_AR"; then
6568 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6569else
6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6577 ac_cv_prog_ac_ct_AR="ar"
6578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6580 fi
6581done
6582 done
6583IFS=$as_save_IFS
6584
6585fi
6586fi
6587ac_ct_AR=$ac_cv_prog_ac_ct_AR
6588if test -n "$ac_ct_AR"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6590$as_echo "$ac_ct_AR" >&6; }
6591else
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593$as_echo "no" >&6; }
6594fi
6595
6596 if test "x$ac_ct_AR" = x; then
6597 AR=""
6598 else
6599 case $cross_compiling:$ac_tool_warned in
6600yes:)
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6603ac_tool_warned=yes ;;
6604esac
6605 AR=$ac_ct_AR
6606 fi
6607else
6608 AR="$ac_cv_prog_AR"
6609fi
6610
6611if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6613set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
6616if test "${ac_cv_prog_RANLIB+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
6618else
6619 if test -n "$RANLIB"; then
6620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6621else
6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633done
6634 done
6635IFS=$as_save_IFS
6636
6637fi
6638fi
6639RANLIB=$ac_cv_prog_RANLIB
6640if test -n "$RANLIB"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6642$as_echo "$RANLIB" >&6; }
6643else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
6646fi
6647
6648
6649fi
6650if test -z "$ac_cv_prog_RANLIB"; then
6651 ac_ct_RANLIB=$RANLIB
6652 # Extract the first word of "ranlib", so it can be a program name with args.
6653set dummy ranlib; ac_word=$2
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655$as_echo_n "checking for $ac_word... " >&6; }
6656if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6657 $as_echo_n "(cached) " >&6
6658else
6659 if test -n "$ac_ct_RANLIB"; then
6660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6661else
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6669 ac_cv_prog_ac_ct_RANLIB="ranlib"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673done
5213506e
RW
6674 done
6675IFS=$as_save_IFS
66dbcf2d
RO
6676
6677fi
6678fi
6679ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6680if test -n "$ac_ct_RANLIB"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6682$as_echo "$ac_ct_RANLIB" >&6; }
5213506e 6683else
66dbcf2d
RO
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685$as_echo "no" >&6; }
1cf3d07d 6686fi
5213506e 6687
66dbcf2d
RO
6688 if test "x$ac_ct_RANLIB" = x; then
6689 RANLIB="ranlib-not-found-in-path-error"
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692yes:)
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695ac_tool_warned=yes ;;
6696esac
6697 RANLIB=$ac_ct_RANLIB
6698 fi
6699else
6700 RANLIB="$ac_cv_prog_RANLIB"
5213506e 6701fi
1cf3d07d 6702
66dbcf2d
RO
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6704$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6705set x ${MAKE-make}
6706ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6707if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6708 $as_echo_n "(cached) " >&6
6709else
6710 cat >conftest.make <<\_ACEOF
6711SHELL = /bin/sh
6712all:
6713 @echo '@@@%%%=$(MAKE)=@@@%%%'
6714_ACEOF
6715# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6716case `${MAKE-make} -f conftest.make 2>/dev/null` in
6717 *@@@%%%=?*=@@@%%%*)
6718 eval ac_cv_prog_make_${ac_make}_set=yes;;
6719 *)
6720 eval ac_cv_prog_make_${ac_make}_set=no;;
6721esac
6722rm -f conftest.make
6723fi
6724if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6726$as_echo "yes" >&6; }
6727 SET_MAKE=
6728else
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730$as_echo "no" >&6; }
6731 SET_MAKE="MAKE=${MAKE-make}"
6732fi
1cf3d07d
SE
6733
6734
6735
66dbcf2d
RO
6736# Configure libtool
6737#AC_MSG_NOTICE([====== Starting libtool configuration])
6738enable_dlopen=yes
1cf3d07d
SE
6739
6740
6741
66dbcf2d
RO
6742case `pwd` in
6743 *\ * | *\ *)
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6745$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6746esac
1cf3d07d
SE
6747
6748
6749
66dbcf2d
RO
6750macro_version='2.2.7a'
6751macro_revision='1.3134'
1cf3d07d
SE
6752
6753
6754
6755
6756
6757
6758
6759
5213506e 6760
96b8a615 6761
96b8a615
AJ
6762
6763
96b8a615 6764
66dbcf2d 6765ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 6766
66dbcf2d
RO
6767# Backslashify metacharacters that are still active within
6768# double-quoted strings.
6769sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1cf3d07d 6770
66dbcf2d
RO
6771# Same as above, but do not quote variable references.
6772double_quote_subst='s/\(["`\\]\)/\\\1/g'
1cf3d07d 6773
66dbcf2d
RO
6774# Sed substitution to delay expansion of an escaped shell variable in a
6775# double_quote_subst'ed string.
6776delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1cf3d07d 6777
66dbcf2d
RO
6778# Sed substitution to delay expansion of an escaped single quote.
6779delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1cf3d07d 6780
66dbcf2d
RO
6781# Sed substitution to avoid accidental globbing in evaled expressions
6782no_glob_subst='s/\*/\\\*/g'
1cf3d07d 6783
5213506e
RW
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6785$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6786if test "${lt_cv_path_NM+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
96b8a615
AJ
6788else
6789 if test -n "$NM"; then
6790 # Let the user override the test.
6791 lt_cv_path_NM="$NM"
6792else
1cf3d07d
SE
6793 lt_nm_to_check="${ac_tool_prefix}nm"
6794 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6795 lt_nm_to_check="$lt_nm_to_check nm"
6796 fi
6797 for lt_tmp_nm in $lt_nm_to_check; do
6798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6799 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6800 IFS="$lt_save_ifs"
6801 test -z "$ac_dir" && ac_dir=.
6802 tmp_nm="$ac_dir/$lt_tmp_nm"
6803 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6804 # Check to see if the nm accepts a BSD-compat flag.
6805 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6806 # nm: unknown option "B" ignored
6807 # Tru64's nm complains that /dev/null is an invalid object file
6808 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6809 */dev/null* | *'Invalid file or object type'*)
6810 lt_cv_path_NM="$tmp_nm -B"
6811 break
6812 ;;
6813 *)
6814 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6815 */dev/null*)
6816 lt_cv_path_NM="$tmp_nm -p"
6817 break
6818 ;;
6819 *)
6820 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6821 continue # so that we can try to find one that supports BSD flags
6822 ;;
6823 esac
6824 ;;
6825 esac
6826 fi
6827 done
6828 IFS="$lt_save_ifs"
6829 done
6830 : ${lt_cv_path_NM=no}
6831fi
6832fi
5213506e
RW
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6834$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
6835if test "$lt_cv_path_NM" != "no"; then
6836 NM="$lt_cv_path_NM"
6837else
6838 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
6839 if test -n "$DUMPBIN"; then :
6840 # Let the user override the test.
6841 else
6842 if test -n "$ac_tool_prefix"; then
6843 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
6844 do
6845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6846set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848$as_echo_n "checking for $ac_word... " >&6; }
6849if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6850 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6851else
6852 if test -n "$DUMPBIN"; then
6853 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6854else
6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856for as_dir in $PATH
6857do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
5213506e
RW
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6862 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6864 break 2
6865 fi
6866done
5213506e
RW
6867 done
6868IFS=$as_save_IFS
1cf3d07d
SE
6869
6870fi
6871fi
6872DUMPBIN=$ac_cv_prog_DUMPBIN
6873if test -n "$DUMPBIN"; then
5213506e
RW
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6875$as_echo "$DUMPBIN" >&6; }
1cf3d07d 6876else
5213506e
RW
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878$as_echo "no" >&6; }
1cf3d07d
SE
6879fi
6880
5213506e 6881
1cf3d07d
SE
6882 test -n "$DUMPBIN" && break
6883 done
6884fi
6885if test -z "$DUMPBIN"; then
6886 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 6887 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
6888do
6889 # Extract the first word of "$ac_prog", so it can be a program name with args.
6890set dummy $ac_prog; ac_word=$2
5213506e
RW
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892$as_echo_n "checking for $ac_word... " >&6; }
6893if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6895else
6896 if test -n "$ac_ct_DUMPBIN"; then
6897 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6898else
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
5213506e
RW
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6906 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6908 break 2
6909 fi
6910done
5213506e
RW
6911 done
6912IFS=$as_save_IFS
1cf3d07d
SE
6913
6914fi
6915fi
6916ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6917if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6919$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 6920else
5213506e
RW
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922$as_echo "no" >&6; }
1cf3d07d
SE
6923fi
6924
5213506e 6925
1cf3d07d
SE
6926 test -n "$ac_ct_DUMPBIN" && break
6927done
1cf3d07d 6928
5213506e
RW
6929 if test "x$ac_ct_DUMPBIN" = x; then
6930 DUMPBIN=":"
6931 else
6932 case $cross_compiling:$ac_tool_warned in
6933yes:)
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6936ac_tool_warned=yes ;;
6937esac
6938 DUMPBIN=$ac_ct_DUMPBIN
6939 fi
96b8a615 6940fi
1cf3d07d 6941
43e02a8a
RW
6942 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6943 *COFF*)
6944 DUMPBIN="$DUMPBIN -symbols"
6945 ;;
6946 *)
6947 DUMPBIN=:
6948 ;;
6949 esac
6950 fi
1cf3d07d
SE
6951
6952 if test "$DUMPBIN" != ":"; then
6953 NM="$DUMPBIN"
6954 fi
96b8a615 6955fi
1cf3d07d
SE
6956test -z "$NM" && NM=nm
6957
6958
96b8a615 6959
1cf3d07d
SE
6960
6961
6962
5213506e
RW
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6964$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6965if test "${lt_cv_nm_interface+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6967else
6968 lt_cv_nm_interface="BSD nm"
6969 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 6970 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
6971 (eval "$ac_compile" 2>conftest.err)
6972 cat conftest.err >&5
43e02a8a 6973 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
6974 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6975 cat conftest.err >&5
43e02a8a 6976 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
6977 cat conftest.out >&5
6978 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6979 lt_cv_nm_interface="MS dumpbin"
6980 fi
6981 rm -f conftest*
6982fi
5213506e
RW
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6984$as_echo "$lt_cv_nm_interface" >&6; }
96b8a615 6985
5213506e
RW
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6987$as_echo_n "checking whether ln -s works... " >&6; }
96b8a615
AJ
6988LN_S=$as_ln_s
6989if test "$LN_S" = "ln -s"; then
5213506e
RW
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6991$as_echo "yes" >&6; }
96b8a615 6992else
5213506e
RW
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6994$as_echo "no, using $LN_S" >&6; }
96b8a615
AJ
6995fi
6996
1cf3d07d 6997# find the maximum length of command line arguments
5213506e
RW
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6999$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7000if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7001 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7002else
7003 i=0
7004 teststring="ABCD"
7005
7006 case $build_os in
7007 msdosdjgpp*)
7008 # On DJGPP, this test can blow up pretty badly due to problems in libc
7009 # (any single argument exceeding 2000 bytes causes a buffer overrun
7010 # during glob expansion). Even if it were fixed, the result of this
7011 # check would be larger than it should be.
7012 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7013 ;;
7014
7015 gnu*)
7016 # Under GNU Hurd, this test is not required because there is
7017 # no limit to the length of command line arguments.
7018 # Libtool will interpret -1 as no limit whatsoever
7019 lt_cv_sys_max_cmd_len=-1;
7020 ;;
7021
d58dead8 7022 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
7023 # On Win9x/ME, this test blows up -- it succeeds, but takes
7024 # about 5 minutes as the teststring grows exponentially.
7025 # Worse, since 9x/ME are not pre-emptively multitasking,
7026 # you end up with a "frozen" computer, even though with patience
7027 # the test eventually succeeds (with a max line length of 256k).
7028 # Instead, let's just punt: use the minimum linelength reported by
7029 # all of the supported platforms: 8192 (on NT/2K/XP).
7030 lt_cv_sys_max_cmd_len=8192;
7031 ;;
7032
43e02a8a
RW
7033 mint*)
7034 # On MiNT this can take a long time and run out of memory.
7035 lt_cv_sys_max_cmd_len=8192;
7036 ;;
7037
1cf3d07d
SE
7038 amigaos*)
7039 # On AmigaOS with pdksh, this test takes hours, literally.
7040 # So we just punt and use a minimum line length of 8192.
7041 lt_cv_sys_max_cmd_len=8192;
7042 ;;
7043
7044 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7045 # This has been around since 386BSD, at least. Likely further.
7046 if test -x /sbin/sysctl; then
7047 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7048 elif test -x /usr/sbin/sysctl; then
7049 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7050 else
7051 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7052 fi
7053 # And add a safety zone
7054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7056 ;;
7057
7058 interix*)
7059 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7060 lt_cv_sys_max_cmd_len=196608
7061 ;;
7062
7063 osf*)
7064 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7065 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7066 # nice to cause kernel panics so lets avoid the loop below.
7067 # First set a reasonable default.
7068 lt_cv_sys_max_cmd_len=16384
7069 #
7070 if test -x /sbin/sysconfig; then
7071 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7072 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7073 esac
7074 fi
7075 ;;
7076 sco3.2v5*)
7077 lt_cv_sys_max_cmd_len=102400
7078 ;;
7079 sysv5* | sco5v6* | sysv4.2uw2*)
7080 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7081 if test -n "$kargmax"; then
7082 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7083 else
7084 lt_cv_sys_max_cmd_len=32768
7085 fi
7086 ;;
7087 *)
d58dead8
PG
7088 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7089 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
7090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7092 else
7093 # Make teststring a little bigger before we do anything with it.
7094 # a 1K string should be a reasonable start.
7095 for i in 1 2 3 4 5 6 7 8 ; do
7096 teststring=$teststring$teststring
7097 done
7098 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7099 # If test is not a shell built-in, we'll probably end up computing a
7100 # maximum length that is only half of the actual maximum length, but
7101 # we can't tell.
43e02a8a
RW
7102 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7103 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
7104 test $i != 17 # 1/2 MB should be enough
7105 do
7106 i=`expr $i + 1`
7107 teststring=$teststring$teststring
7108 done
7109 # Only check the string length outside the loop.
7110 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7111 teststring=
7112 # Add a significant safety factor because C++ compilers can tack on
7113 # massive amounts of additional arguments before passing them to the
7114 # linker. It appears as though 1/2 is a usable value.
7115 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7116 fi
1cf3d07d
SE
7117 ;;
7118 esac
7119
7120fi
7121
7122if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7124$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 7125else
5213506e
RW
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7127$as_echo "none" >&6; }
1cf3d07d
SE
7128fi
7129max_cmd_len=$lt_cv_sys_max_cmd_len
7130
7131
7132
7133
7134
7135
1cf3d07d
SE
7136: ${CP="cp -f"}
7137: ${MV="mv -f"}
7138: ${RM="rm -f"}
7139
5213506e
RW
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7141$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
7142# Try some XSI features
7143xsi_shell=no
7144( _lt_dummy="a/b/c"
7145 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
d58dead8
PG
7146 = c,a/b,, \
7147 && eval 'test $(( 1 + 1 )) -eq 2 \
7148 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 7149 && xsi_shell=yes
5213506e
RW
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7151$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
7152
7153
5213506e
RW
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7155$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
7156lt_shell_append=no
7157( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7158 >/dev/null 2>&1 \
7159 && lt_shell_append=yes
5213506e
RW
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7161$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
7162
7163
7164if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7165 lt_unset=unset
7166else
7167 lt_unset=false
7168fi
7169
7170
7171
7172
7173
7174# test EBCDIC or ASCII
7175case `echo X|tr X '\101'` in
7176 A) # ASCII based system
7177 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7178 lt_SP2NL='tr \040 \012'
7179 lt_NL2SP='tr \015\012 \040\040'
7180 ;;
7181 *) # EBCDIC based system
7182 lt_SP2NL='tr \100 \n'
7183 lt_NL2SP='tr \r\n \100\100'
7184 ;;
7185esac
7186
7187
7188
7189
7190
7191
7192
7193
7194
5213506e
RW
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7196$as_echo_n "checking for $LD option to reload object files... " >&6; }
7197if test "${lt_cv_ld_reload_flag+set}" = set; then :
7198 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7199else
7200 lt_cv_ld_reload_flag='-r'
7201fi
5213506e
RW
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7203$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
7204reload_flag=$lt_cv_ld_reload_flag
7205case $reload_flag in
7206"" | " "*) ;;
7207*) reload_flag=" $reload_flag" ;;
7208esac
7209reload_cmds='$LD$reload_flag -o $output$reload_objs'
7210case $host_os in
7211 darwin*)
7212 if test "$GCC" = yes; then
7213 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7214 else
7215 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7216 fi
7217 ;;
7218esac
7219
7220
7221
7222
7223
7224
7225
7226
7227
d58dead8
PG
7228if test -n "$ac_tool_prefix"; then
7229 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7230set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232$as_echo_n "checking for $ac_word... " >&6; }
7233if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7234 $as_echo_n "(cached) " >&6
d58dead8
PG
7235else
7236 if test -n "$OBJDUMP"; then
7237 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
5213506e
RW
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 7246 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7248 break 2
7249 fi
7250done
5213506e
RW
7251 done
7252IFS=$as_save_IFS
d58dead8
PG
7253
7254fi
7255fi
7256OBJDUMP=$ac_cv_prog_OBJDUMP
7257if test -n "$OBJDUMP"; then
5213506e
RW
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7259$as_echo "$OBJDUMP" >&6; }
d58dead8 7260else
5213506e
RW
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262$as_echo "no" >&6; }
d58dead8
PG
7263fi
7264
5213506e 7265
d58dead8
PG
7266fi
7267if test -z "$ac_cv_prog_OBJDUMP"; then
7268 ac_ct_OBJDUMP=$OBJDUMP
7269 # Extract the first word of "objdump", so it can be a program name with args.
7270set dummy objdump; ac_word=$2
5213506e
RW
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272$as_echo_n "checking for $ac_word... " >&6; }
7273if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7274 $as_echo_n "(cached) " >&6
d58dead8
PG
7275else
7276 if test -n "$ac_ct_OBJDUMP"; then
7277 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7278else
7279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280for as_dir in $PATH
7281do
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
5213506e
RW
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 7286 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7288 break 2
7289 fi
7290done
5213506e
RW
7291 done
7292IFS=$as_save_IFS
d58dead8 7293
d58dead8
PG
7294fi
7295fi
7296ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7297if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7299$as_echo "$ac_ct_OBJDUMP" >&6; }
d58dead8 7300else
5213506e
RW
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302$as_echo "no" >&6; }
d58dead8
PG
7303fi
7304
5213506e
RW
7305 if test "x$ac_ct_OBJDUMP" = x; then
7306 OBJDUMP="false"
7307 else
7308 case $cross_compiling:$ac_tool_warned in
7309yes:)
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7312ac_tool_warned=yes ;;
7313esac
7314 OBJDUMP=$ac_ct_OBJDUMP
7315 fi
d58dead8
PG
7316else
7317 OBJDUMP="$ac_cv_prog_OBJDUMP"
7318fi
7319
7320test -z "$OBJDUMP" && OBJDUMP=objdump
7321
7322
7323
7324
7325
7326
7327
7328
1cf3d07d 7329
5213506e
RW
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7331$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7332if test "${lt_cv_deplibs_check_method+set}" = set; then :
7333 $as_echo_n "(cached) " >&6
96b8a615
AJ
7334else
7335 lt_cv_file_magic_cmd='$MAGIC_CMD'
7336lt_cv_file_magic_test_file=
7337lt_cv_deplibs_check_method='unknown'
7338# Need to set the preceding variable on all platforms that support
7339# interlibrary dependencies.
7340# 'none' -- dependencies not supported.
7341# `unknown' -- same as none, but documents that we really don't know.
7342# 'pass_all' -- all dependencies passed with no checks.
7343# 'test_compile' -- check by making test program.
1cf3d07d
SE
7344# 'file_magic [[regex]]' -- check by looking for files in library path
7345# which responds to the $file_magic_cmd with a given extended regex.
96b8a615
AJ
7346# If you have `file' or equivalent on your system and you're not sure
7347# whether `pass_all' will *always* work, you probably want this one.
7348
7349case $host_os in
4f6bebc3 7350aix[4-9]*)
96b8a615
AJ
7351 lt_cv_deplibs_check_method=pass_all
7352 ;;
7353
7354beos*)
7355 lt_cv_deplibs_check_method=pass_all
7356 ;;
7357
1cf3d07d 7358bsdi[45]*)
96b8a615
AJ
7359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7360 lt_cv_file_magic_cmd='/usr/bin/file -L'
7361 lt_cv_file_magic_test_file=/shlib/libc.so
7362 ;;
7363
1cf3d07d
SE
7364cygwin*)
7365 # func_win32_libid is a shell function defined in ltmain.sh
7366 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7367 lt_cv_file_magic_cmd='func_win32_libid'
7368 ;;
7369
7370mingw* | pw32*)
7371 # Base MSYS/MinGW do not provide the 'file' command needed by
7372 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7373 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
7374 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7375 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
7376 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7377 lt_cv_file_magic_cmd='func_win32_libid'
7378 else
7379 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7380 lt_cv_file_magic_cmd='$OBJDUMP -f'
7381 fi
96b8a615
AJ
7382 ;;
7383
43e02a8a 7384cegcc*)
d58dead8
PG
7385 # use the weaker test based on 'objdump'. See mingw*.
7386 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7387 lt_cv_file_magic_cmd='$OBJDUMP -f'
7388 ;;
7389
96b8a615 7390darwin* | rhapsody*)
96b8a615
AJ
7391 lt_cv_deplibs_check_method=pass_all
7392 ;;
7393
1cf3d07d
SE
7394freebsd* | dragonfly*)
7395 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
96b8a615
AJ
7396 case $host_cpu in
7397 i*86 )
7398 # Not sure whether the presence of OpenBSD here was a mistake.
7399 # Let's accept both of them until this is cleared up.
1cf3d07d 7400 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
96b8a615
AJ
7401 lt_cv_file_magic_cmd=/usr/bin/file
7402 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7403 ;;
7404 esac
7405 else
7406 lt_cv_deplibs_check_method=pass_all
7407 fi
7408 ;;
7409
7410gnu*)
7411 lt_cv_deplibs_check_method=pass_all
7412 ;;
7413
43e02a8a
RW
7414haiku*)
7415 lt_cv_deplibs_check_method=pass_all
7416 ;;
7417
1cf3d07d
SE
7418hpux10.20* | hpux11*)
7419 lt_cv_file_magic_cmd=/usr/bin/file
96b8a615 7420 case $host_cpu in
96b8a615
AJ
7421 ia64*)
7422 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
7423 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7424 ;;
1cf3d07d 7425 hppa*64*)
43e02a8a 7426 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 7427 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
96b8a615
AJ
7428 ;;
7429 *)
43e02a8a 7430 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d 7431 lt_cv_file_magic_test_file=/usr/lib/libc.sl
96b8a615
AJ
7432 ;;
7433 esac
1cf3d07d
SE
7434 ;;
7435
7436interix[3-9]*)
7437 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7439 ;;
7440
7441irix5* | irix6* | nonstopux*)
7442 case $LD in
7443 *-32|*"-32 ") libmagic=32-bit;;
7444 *-n32|*"-n32 ") libmagic=N32;;
7445 *-64|*"-64 ") libmagic=64-bit;;
7446 *) libmagic=never-match;;
7447 esac
96b8a615
AJ
7448 lt_cv_deplibs_check_method=pass_all
7449 ;;
7450
7451# This must be Linux ELF.
7a9d3fe8 7452linux* | k*bsd*-gnu | kopensolaris*-gnu)
2c92e90f 7453 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7454 ;;
7455
1cf3d07d
SE
7456netbsd*)
7457 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
96b8a615 7459 else
1cf3d07d 7460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
96b8a615
AJ
7461 fi
7462 ;;
7463
1cf3d07d 7464newos6*)
96b8a615
AJ
7465 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7466 lt_cv_file_magic_cmd=/usr/bin/file
7467 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7468 ;;
7469
1cf3d07d
SE
7470*nto* | *qnx*)
7471 lt_cv_deplibs_check_method=pass_all
7472 ;;
7473
7474openbsd*)
7475 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7477 else
7478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7479 fi
7480 ;;
7481
96b8a615 7482osf3* | osf4* | osf5*)
96b8a615
AJ
7483 lt_cv_deplibs_check_method=pass_all
7484 ;;
7485
1cf3d07d 7486rdos*)
96b8a615
AJ
7487 lt_cv_deplibs_check_method=pass_all
7488 ;;
7489
7490solaris*)
7491 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7492 ;;
7493
1cf3d07d 7494sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
96b8a615
AJ
7495 lt_cv_deplibs_check_method=pass_all
7496 ;;
7497
1cf3d07d 7498sysv4 | sysv4.3*)
96b8a615 7499 case $host_vendor in
96b8a615
AJ
7500 motorola)
7501 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]'
7502 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7503 ;;
1cf3d07d
SE
7504 ncr)
7505 lt_cv_deplibs_check_method=pass_all
7506 ;;
7507 sequent)
7508 lt_cv_file_magic_cmd='/bin/file'
7509 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7510 ;;
7511 sni)
7512 lt_cv_file_magic_cmd='/bin/file'
7513 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7514 lt_cv_file_magic_test_file=/lib/libc.so
7515 ;;
7516 siemens)
7517 lt_cv_deplibs_check_method=pass_all
7518 ;;
7519 pc)
7520 lt_cv_deplibs_check_method=pass_all
7521 ;;
96b8a615
AJ
7522 esac
7523 ;;
1cf3d07d
SE
7524
7525tpf*)
7526 lt_cv_deplibs_check_method=pass_all
7527 ;;
96b8a615
AJ
7528esac
7529
7530fi
5213506e
RW
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7532$as_echo "$lt_cv_deplibs_check_method" >&6; }
96b8a615
AJ
7533file_magic_cmd=$lt_cv_file_magic_cmd
7534deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 7535test -z "$deplibs_check_method" && deplibs_check_method=unknown
96b8a615
AJ
7536
7537
7538
7539
96b8a615 7540
96b8a615 7541
96b8a615 7542
96b8a615 7543
6de9cd9a 7544
6de9cd9a 7545
6de9cd9a 7546
6de9cd9a 7547
96b8a615 7548if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
7549 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7550set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552$as_echo_n "checking for $ac_word... " >&6; }
7553if test "${ac_cv_prog_AR+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
6de9cd9a 7555else
1cf3d07d
SE
7556 if test -n "$AR"; then
7557 ac_cv_prog_AR="$AR" # Let the user override the test.
96b8a615
AJ
7558else
7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
5213506e
RW
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7566 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7568 break 2
7569 fi
7570done
5213506e
RW
7571 done
7572IFS=$as_save_IFS
6de9cd9a 7573
96b8a615
AJ
7574fi
7575fi
1cf3d07d
SE
7576AR=$ac_cv_prog_AR
7577if test -n "$AR"; then
5213506e
RW
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7579$as_echo "$AR" >&6; }
96b8a615 7580else
5213506e
RW
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582$as_echo "no" >&6; }
6de9cd9a
DN
7583fi
7584
5213506e 7585
96b8a615 7586fi
1cf3d07d
SE
7587if test -z "$ac_cv_prog_AR"; then
7588 ac_ct_AR=$AR
7589 # Extract the first word of "ar", so it can be a program name with args.
7590set dummy ar; ac_word=$2
5213506e
RW
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592$as_echo_n "checking for $ac_word... " >&6; }
7593if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
96b8a615 7595else
1cf3d07d
SE
7596 if test -n "$ac_ct_AR"; then
7597 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
96b8a615
AJ
7598else
7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
5213506e
RW
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7606 ac_cv_prog_ac_ct_AR="ar"
5213506e 7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7608 break 2
7609 fi
7610done
5213506e
RW
7611 done
7612IFS=$as_save_IFS
6de9cd9a 7613
96b8a615
AJ
7614fi
7615fi
1cf3d07d
SE
7616ac_ct_AR=$ac_cv_prog_ac_ct_AR
7617if test -n "$ac_ct_AR"; then
5213506e
RW
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7619$as_echo "$ac_ct_AR" >&6; }
6de9cd9a 7620else
5213506e
RW
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622$as_echo "no" >&6; }
6de9cd9a 7623fi
6de9cd9a 7624
5213506e
RW
7625 if test "x$ac_ct_AR" = x; then
7626 AR="false"
7627 else
7628 case $cross_compiling:$ac_tool_warned in
7629yes:)
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632ac_tool_warned=yes ;;
7633esac
7634 AR=$ac_ct_AR
7635 fi
96b8a615 7636else
1cf3d07d 7637 AR="$ac_cv_prog_AR"
6de9cd9a
DN
7638fi
7639
1cf3d07d
SE
7640test -z "$AR" && AR=ar
7641test -z "$AR_FLAGS" && AR_FLAGS=cru
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
96b8a615
AJ
7653if test -n "$ac_tool_prefix"; then
7654 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7655set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657$as_echo_n "checking for $ac_word... " >&6; }
7658if test "${ac_cv_prog_STRIP+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
6de9cd9a 7660else
96b8a615
AJ
7661 if test -n "$STRIP"; then
7662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7663else
7664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665for as_dir in $PATH
7666do
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
5213506e
RW
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
96b8a615 7671 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7673 break 2
7674 fi
7675done
5213506e
RW
7676 done
7677IFS=$as_save_IFS
6de9cd9a 7678
96b8a615
AJ
7679fi
7680fi
7681STRIP=$ac_cv_prog_STRIP
7682if test -n "$STRIP"; then
5213506e
RW
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7684$as_echo "$STRIP" >&6; }
6de9cd9a 7685else
5213506e
RW
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687$as_echo "no" >&6; }
96b8a615 7688fi
6de9cd9a 7689
5213506e 7690
6de9cd9a 7691fi
96b8a615
AJ
7692if test -z "$ac_cv_prog_STRIP"; then
7693 ac_ct_STRIP=$STRIP
7694 # Extract the first word of "strip", so it can be a program name with args.
7695set dummy strip; ac_word=$2
5213506e
RW
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697$as_echo_n "checking for $ac_word... " >&6; }
7698if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7699 $as_echo_n "(cached) " >&6
96b8a615
AJ
7700else
7701 if test -n "$ac_ct_STRIP"; then
7702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7703else
7704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705for as_dir in $PATH
7706do
7707 IFS=$as_save_IFS
7708 test -z "$as_dir" && as_dir=.
5213506e
RW
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
96b8a615 7711 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7713 break 2
7714 fi
7715done
5213506e
RW
7716 done
7717IFS=$as_save_IFS
96b8a615 7718
6de9cd9a
DN
7719fi
7720fi
96b8a615
AJ
7721ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7722if test -n "$ac_ct_STRIP"; then
5213506e
RW
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7724$as_echo "$ac_ct_STRIP" >&6; }
96b8a615 7725else
5213506e
RW
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727$as_echo "no" >&6; }
6de9cd9a 7728fi
6de9cd9a 7729
5213506e
RW
7730 if test "x$ac_ct_STRIP" = x; then
7731 STRIP=":"
7732 else
7733 case $cross_compiling:$ac_tool_warned in
7734yes:)
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7737ac_tool_warned=yes ;;
7738esac
7739 STRIP=$ac_ct_STRIP
7740 fi
96b8a615
AJ
7741else
7742 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
7743fi
7744
1cf3d07d 7745test -z "$STRIP" && STRIP=:
6de9cd9a
DN
7746
7747
7748
7749
7750
7751
1cf3d07d
SE
7752if test -n "$ac_tool_prefix"; then
7753 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7754set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756$as_echo_n "checking for $ac_word... " >&6; }
7757if test "${ac_cv_prog_RANLIB+set}" = set; then :
7758 $as_echo_n "(cached) " >&6
6de9cd9a 7759else
1cf3d07d
SE
7760 if test -n "$RANLIB"; then
7761 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7762else
7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764for as_dir in $PATH
7765do
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
5213506e
RW
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7770 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7772 break 2
7773 fi
7774done
5213506e
RW
7775 done
7776IFS=$as_save_IFS
1cf3d07d
SE
7777
7778fi
7779fi
7780RANLIB=$ac_cv_prog_RANLIB
7781if test -n "$RANLIB"; then
5213506e
RW
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7783$as_echo "$RANLIB" >&6; }
1cf3d07d 7784else
5213506e
RW
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786$as_echo "no" >&6; }
1cf3d07d
SE
7787fi
7788
5213506e 7789
1cf3d07d
SE
7790fi
7791if test -z "$ac_cv_prog_RANLIB"; then
7792 ac_ct_RANLIB=$RANLIB
7793 # Extract the first word of "ranlib", so it can be a program name with args.
7794set dummy ranlib; ac_word=$2
5213506e
RW
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796$as_echo_n "checking for $ac_word... " >&6; }
7797if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7798 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7799else
7800 if test -n "$ac_ct_RANLIB"; then
7801 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7802else
7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
5213506e
RW
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7810 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7812 break 2
7813 fi
7814done
5213506e
RW
7815 done
7816IFS=$as_save_IFS
1cf3d07d 7817
1cf3d07d
SE
7818fi
7819fi
7820ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7821if test -n "$ac_ct_RANLIB"; then
5213506e
RW
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7823$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 7824else
5213506e
RW
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826$as_echo "no" >&6; }
1cf3d07d
SE
7827fi
7828
5213506e
RW
7829 if test "x$ac_ct_RANLIB" = x; then
7830 RANLIB=":"
7831 else
7832 case $cross_compiling:$ac_tool_warned in
7833yes:)
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7836ac_tool_warned=yes ;;
7837esac
7838 RANLIB=$ac_ct_RANLIB
7839 fi
1cf3d07d
SE
7840else
7841 RANLIB="$ac_cv_prog_RANLIB"
7842fi
7843
7844test -z "$RANLIB" && RANLIB=:
7845
7846
7847
7848
7849
7850
7851# Determine commands to create old-style static archives.
d58dead8 7852old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
7853old_postinstall_cmds='chmod 644 $oldlib'
7854old_postuninstall_cmds=
7855
7856if test -n "$RANLIB"; then
7857 case $host_os in
7858 openbsd*)
7859 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7860 ;;
7861 *)
7862 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7863 ;;
7864 esac
7865 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7866fi
7867
43e02a8a
RW
7868case $host_os in
7869 darwin*)
7870 lock_old_archive_extraction=yes ;;
7871 *)
7872 lock_old_archive_extraction=no ;;
7873esac
7874
7875
7876
7877
7878
7879
1cf3d07d
SE
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913# If no C compiler was specified, use CC.
7914LTCC=${LTCC-"$CC"}
7915
7916# If no C compiler flags were specified, use CFLAGS.
7917LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7918
7919# Allow CC to be a program name with arguments.
7920compiler=$CC
7921
7922
7923# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7925$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7926if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7928else
7929
7930# These are sane defaults that work on at least a few old systems.
7931# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7932
7933# Character class describing NM global symbol codes.
7934symcode='[BCDEGRST]'
7935
7936# Regexp to match symbols that can be accessed directly from C.
7937sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7938
7939# Define system-specific variables.
7940case $host_os in
7941aix*)
7942 symcode='[BCDT]'
7943 ;;
d58dead8 7944cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7945 symcode='[ABCDGISTW]'
7946 ;;
7947hpux*)
7948 if test "$host_cpu" = ia64; then
7949 symcode='[ABCDEGRST]'
7950 fi
7951 ;;
7952irix* | nonstopux*)
7953 symcode='[BCDEGRST]'
7954 ;;
7955osf*)
7956 symcode='[BCDEGQRST]'
7957 ;;
7958solaris*)
7959 symcode='[BDRT]'
7960 ;;
7961sco3.2v5*)
7962 symcode='[DT]'
7963 ;;
7964sysv4.2uw2*)
7965 symcode='[DT]'
7966 ;;
7967sysv5* | sco5v6* | unixware* | OpenUNIX*)
7968 symcode='[ABDT]'
7969 ;;
7970sysv4)
7971 symcode='[DFNSTU]'
7972 ;;
7973esac
7974
7975# If we're using GNU nm, then use its standard symbol codes.
7976case `$NM -V 2>&1` in
7977*GNU* | *'with BFD'*)
7978 symcode='[ABCDGIRSTW]' ;;
7979esac
7980
7981# Transform an extracted symbol line into a proper C declaration.
7982# Some systems (esp. on ia64) link data and code symbols differently,
7983# so use this general approach.
7984lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7985
7986# Transform an extracted symbol line into symbol name and symbol address
7987lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d58dead8 7988lt_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
7989
7990# Handle CRLF in mingw tool chain
7991opt_cr=
7992case $build_os in
7993mingw*)
7994 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7995 ;;
7996esac
7997
7998# Try without a prefix underscore, then with it.
7999for ac_symprfx in "" "_"; do
8000
8001 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8002 symxfrm="\\1 $ac_symprfx\\2 \\2"
8003
8004 # Write the raw and C identifiers.
8005 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8006 # Fake it for dumpbin and say T for any non-static function
8007 # and D for any global variable.
8008 # Also find C++ and __fastcall symbols from MSVC++,
8009 # which start with @ or ?.
8010 lt_cv_sys_global_symbol_pipe="$AWK '"\
8011" {last_section=section; section=\$ 3};"\
8012" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8013" \$ 0!~/External *\|/{next};"\
8014" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8015" {if(hide[section]) next};"\
8016" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8017" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8018" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8019" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8020" ' prfx=^$ac_symprfx"
8021 else
8022 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8023 fi
8024
8025 # Check to see that the pipe works correctly.
8026 pipe_works=no
8027
8028 rm -f conftest*
8029 cat > conftest.$ac_ext <<_LT_EOF
8030#ifdef __cplusplus
8031extern "C" {
8032#endif
8033char nm_test_var;
8034void nm_test_func(void);
8035void nm_test_func(void){}
8036#ifdef __cplusplus
8037}
8038#endif
8039int main(){nm_test_var='a';nm_test_func();return(0);}
8040_LT_EOF
8041
5213506e 8042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8043 (eval $ac_compile) 2>&5
8044 ac_status=$?
5213506e
RW
8045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8046 test $ac_status = 0; }; then
1cf3d07d
SE
8047 # Now try to grab the symbols.
8048 nlist=conftest.nm
43e02a8a
RW
8049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8050 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 8051 ac_status=$?
5213506e
RW
8052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8053 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
8054 # Try sorting and uniquifying the output.
8055 if sort "$nlist" | uniq > "$nlist"T; then
8056 mv -f "$nlist"T "$nlist"
8057 else
8058 rm -f "$nlist"T
8059 fi
8060
8061 # Make sure that we snagged all the symbols we need.
8062 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8063 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8064 cat <<_LT_EOF > conftest.$ac_ext
8065#ifdef __cplusplus
8066extern "C" {
8067#endif
8068
8069_LT_EOF
8070 # Now generate the symbol file.
8071 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8072
8073 cat <<_LT_EOF >> conftest.$ac_ext
8074
8075/* The mapping between symbol names and symbols. */
8076const struct {
8077 const char *name;
8078 void *address;
8079}
8080lt__PROGRAM__LTX_preloaded_symbols[] =
8081{
8082 { "@PROGRAM@", (void *) 0 },
8083_LT_EOF
8084 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8085 cat <<\_LT_EOF >> conftest.$ac_ext
8086 {0, (void *) 0}
8087};
8088
8089/* This works around a problem in FreeBSD linker */
8090#ifdef FREEBSD_WORKAROUND
8091static const void *lt_preloaded_setup() {
8092 return lt__PROGRAM__LTX_preloaded_symbols;
8093}
8094#endif
8095
8096#ifdef __cplusplus
8097}
8098#endif
8099_LT_EOF
8100 # Now try linking the two files.
8101 mv conftest.$ac_objext conftstm.$ac_objext
8102 lt_save_LIBS="$LIBS"
8103 lt_save_CFLAGS="$CFLAGS"
8104 LIBS="conftstm.$ac_objext"
8105 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 8106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
8107 (eval $ac_link) 2>&5
8108 ac_status=$?
5213506e
RW
8109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8110 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
8111 pipe_works=yes
8112 fi
8113 LIBS="$lt_save_LIBS"
8114 CFLAGS="$lt_save_CFLAGS"
8115 else
8116 echo "cannot find nm_test_func in $nlist" >&5
8117 fi
8118 else
8119 echo "cannot find nm_test_var in $nlist" >&5
8120 fi
8121 else
8122 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8123 fi
8124 else
8125 echo "$progname: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8127 fi
d58dead8 8128 rm -rf conftest* conftst*
1cf3d07d
SE
8129
8130 # Do not use the global_symbol_pipe unless it works.
8131 if test "$pipe_works" = yes; then
8132 break
8133 else
8134 lt_cv_sys_global_symbol_pipe=
8135 fi
8136done
8137
8138fi
8139
8140if test -z "$lt_cv_sys_global_symbol_pipe"; then
8141 lt_cv_sys_global_symbol_to_cdecl=
8142fi
8143if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8145$as_echo "failed" >&6; }
1cf3d07d 8146else
5213506e
RW
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8148$as_echo "ok" >&6; }
1cf3d07d
SE
8149fi
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
d58dead8
PG
8165
8166
8167
8168
8169
1cf3d07d
SE
8170
8171
5213506e
RW
8172# Check whether --enable-libtool-lock was given.
8173if test "${enable_libtool_lock+set}" = set; then :
8174 enableval=$enable_libtool_lock;
8175fi
1cf3d07d 8176
1cf3d07d 8177test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6de9cd9a 8178
96b8a615
AJ
8179# Some flags need to be propagated to the compiler or linker for good
8180# libtool support.
8181case $host in
1cf3d07d 8182ia64-*-hpux*)
96b8a615 8183 # Find out which ABI we are using.
1cf3d07d 8184 echo 'int i;' > conftest.$ac_ext
5213506e 8185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8186 (eval $ac_compile) 2>&5
6de9cd9a 8187 ac_status=$?
5213506e
RW
8188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8189 test $ac_status = 0; }; then
96b8a615 8190 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
8191 *ELF-32*)
8192 HPUX_IA64_MODE="32"
8193 ;;
8194 *ELF-64*)
8195 HPUX_IA64_MODE="64"
8196 ;;
96b8a615 8197 esac
96b8a615
AJ
8198 fi
8199 rm -rf conftest*
8200 ;;
1cf3d07d 8201*-*-irix6*)
96b8a615 8202 # Find out which ABI we are using.
43e02a8a 8203 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 8204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8205 (eval $ac_compile) 2>&5
6de9cd9a 8206 ac_status=$?
5213506e
RW
8207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8208 test $ac_status = 0; }; then
1cf3d07d
SE
8209 if test "$lt_cv_prog_gnu_ld" = yes; then
8210 case `/usr/bin/file conftest.$ac_objext` in
8211 *32-bit*)
8212 LD="${LD-ld} -melf32bsmip"
8213 ;;
8214 *N32*)
8215 LD="${LD-ld} -melf32bmipn32"
8216 ;;
8217 *64-bit*)
8218 LD="${LD-ld} -melf64bmip"
8219 ;;
8220 esac
8221 else
8222 case `/usr/bin/file conftest.$ac_objext` in
8223 *32-bit*)
8224 LD="${LD-ld} -32"
8225 ;;
8226 *N32*)
8227 LD="${LD-ld} -n32"
8228 ;;
8229 *64-bit*)
8230 LD="${LD-ld} -64"
8231 ;;
8232 esac
8233 fi
96b8a615
AJ
8234 fi
8235 rm -rf conftest*
8236 ;;
6de9cd9a 8237
3cbe17f7 8238x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d 8239s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
96b8a615
AJ
8240 # Find out which ABI we are using.
8241 echo 'int i;' > conftest.$ac_ext
5213506e 8242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8243 (eval $ac_compile) 2>&5
6de9cd9a 8244 ac_status=$?
5213506e
RW
8245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8246 test $ac_status = 0; }; then
1cf3d07d
SE
8247 case `/usr/bin/file conftest.o` in
8248 *32-bit*)
8249 case $host in
8250 x86_64-*kfreebsd*-gnu)
8251 LD="${LD-ld} -m elf_i386_fbsd"
8252 ;;
8253 x86_64-*linux*)
e6d5f8c9
L
8254 case `/usr/bin/file conftest.o` in
8255 *x86-64*)
8256 LD="${LD-ld} -m elf32_x86_64"
8257 ;;
8258 *)
8259 LD="${LD-ld} -m elf_i386"
8260 ;;
8261 esac
1cf3d07d 8262 ;;
3cbe17f7
AM
8263 powerpc64le-*linux*)
8264 LD="${LD-ld} -m elf32lppclinux"
8265 ;;
8266 powerpc64-*linux*)
1cf3d07d
SE
8267 LD="${LD-ld} -m elf32ppclinux"
8268 ;;
8269 s390x-*linux*)
8270 LD="${LD-ld} -m elf_s390"
8271 ;;
8272 sparc64-*linux*)
8273 LD="${LD-ld} -m elf32_sparc"
8274 ;;
8275 esac
8276 ;;
8277 *64-bit*)
8278 case $host in
8279 x86_64-*kfreebsd*-gnu)
8280 LD="${LD-ld} -m elf_x86_64_fbsd"
8281 ;;
8282 x86_64-*linux*)
8283 LD="${LD-ld} -m elf_x86_64"
8284 ;;
3cbe17f7
AM
8285 powerpcle-*linux*)
8286 LD="${LD-ld} -m elf64lppc"
8287 ;;
8288 powerpc-*linux*)
1cf3d07d
SE
8289 LD="${LD-ld} -m elf64ppc"
8290 ;;
8291 s390*-*linux*|s390*-*tpf*)
8292 LD="${LD-ld} -m elf64_s390"
8293 ;;
8294 sparc*-*linux*)
8295 LD="${LD-ld} -m elf64_sparc"
8296 ;;
8297 esac
8298 ;;
96b8a615 8299 esac
6de9cd9a 8300 fi
96b8a615
AJ
8301 rm -rf conftest*
8302 ;;
6de9cd9a 8303
96b8a615
AJ
8304*-*-sco3.2v5*)
8305 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8306 SAVE_CFLAGS="$CFLAGS"
8307 CFLAGS="$CFLAGS -belf"
5213506e
RW
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8309$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8310if test "${lt_cv_cc_needs_belf+set}" = set; then :
8311 $as_echo_n "(cached) " >&6
6de9cd9a 8312else
1cf3d07d 8313 ac_ext=c
96b8a615
AJ
8314ac_cpp='$CPP $CPPFLAGS'
8315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8317ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 8318
f02d008e 8319 if test x$gcc_no_link = xyes; then
5213506e 8320 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 8321fi
5213506e 8322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 8323/* end confdefs.h. */
6de9cd9a
DN
8324
8325int
8326main ()
8327{
96b8a615 8328
6de9cd9a
DN
8329 ;
8330 return 0;
8331}
8332_ACEOF
5213506e 8333if ac_fn_c_try_link "$LINENO"; then :
96b8a615 8334 lt_cv_cc_needs_belf=yes
6de9cd9a 8335else
5213506e 8336 lt_cv_cc_needs_belf=no
6de9cd9a 8337fi
5213506e
RW
8338rm -f core conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
8340 ac_ext=c
8341ac_cpp='$CPP $CPPFLAGS'
8342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8344ac_compiler_gnu=$ac_cv_c_compiler_gnu
8345
6de9cd9a 8346fi
5213506e
RW
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8348$as_echo "$lt_cv_cc_needs_belf" >&6; }
96b8a615
AJ
8349 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8350 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8351 CFLAGS="$SAVE_CFLAGS"
8352 fi
8353 ;;
1cf3d07d
SE
8354sparc*-*solaris*)
8355 # Find out which ABI we are using.
8356 echo 'int i;' > conftest.$ac_ext
5213506e 8357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8358 (eval $ac_compile) 2>&5
8359 ac_status=$?
5213506e
RW
8360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8361 test $ac_status = 0; }; then
1cf3d07d
SE
8362 case `/usr/bin/file conftest.o` in
8363 *64-bit*)
8364 case $lt_cv_prog_gnu_ld in
8365 yes*) LD="${LD-ld} -m elf64_sparc" ;;
d58dead8
PG
8366 *)
8367 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8368 LD="${LD-ld} -64"
8369 fi
8370 ;;
1cf3d07d
SE
8371 esac
8372 ;;
8373 esac
8374 fi
8375 rm -rf conftest*
8376 ;;
96b8a615
AJ
8377esac
8378
1cf3d07d 8379need_locks="$enable_libtool_lock"
96b8a615 8380
d58dead8
PG
8381
8382 case $host_os in
8383 rhapsody* | darwin*)
8384 if test -n "$ac_tool_prefix"; then
8385 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8386set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
8387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388$as_echo_n "checking for $ac_word... " >&6; }
8389if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8390 $as_echo_n "(cached) " >&6
d58dead8
PG
8391else
8392 if test -n "$DSYMUTIL"; then
8393 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8394else
8395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396for as_dir in $PATH
8397do
8398 IFS=$as_save_IFS
8399 test -z "$as_dir" && as_dir=.
5213506e
RW
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 8402 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8404 break 2
8405 fi
8406done
5213506e
RW
8407 done
8408IFS=$as_save_IFS
d58dead8
PG
8409
8410fi
8411fi
8412DSYMUTIL=$ac_cv_prog_DSYMUTIL
8413if test -n "$DSYMUTIL"; then
5213506e
RW
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8415$as_echo "$DSYMUTIL" >&6; }
d58dead8 8416else
5213506e
RW
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418$as_echo "no" >&6; }
d58dead8
PG
8419fi
8420
5213506e 8421
d58dead8
PG
8422fi
8423if test -z "$ac_cv_prog_DSYMUTIL"; then
8424 ac_ct_DSYMUTIL=$DSYMUTIL
8425 # Extract the first word of "dsymutil", so it can be a program name with args.
8426set dummy dsymutil; ac_word=$2
5213506e
RW
8427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428$as_echo_n "checking for $ac_word... " >&6; }
8429if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8430 $as_echo_n "(cached) " >&6
d58dead8 8431else
21be0a5a
JB
8432 if test -n "$ac_ct_DSYMUTIL"; then
8433 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d58dead8
PG
8434else
8435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436for as_dir in $PATH
8437do
8438 IFS=$as_save_IFS
8439 test -z "$as_dir" && as_dir=.
5213506e
RW
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8442 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8444 break 2
8445 fi
8446done
5213506e
RW
8447 done
8448IFS=$as_save_IFS
d58dead8 8449
d58dead8
PG
8450fi
8451fi
21be0a5a
JB
8452ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8453if test -n "$ac_ct_DSYMUTIL"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8455$as_echo "$ac_ct_DSYMUTIL" >&6; }
d58dead8 8456else
5213506e
RW
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458$as_echo "no" >&6; }
d58dead8
PG
8459fi
8460
21be0a5a
JB
8461 if test "x$ac_ct_DSYMUTIL" = x; then
8462 DSYMUTIL=":"
5213506e
RW
8463 else
8464 case $cross_compiling:$ac_tool_warned in
8465yes:)
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8468ac_tool_warned=yes ;;
8469esac
21be0a5a 8470 DSYMUTIL=$ac_ct_DSYMUTIL
5213506e 8471 fi
d58dead8 8472else
21be0a5a 8473 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d58dead8
PG
8474fi
8475
8476 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8477 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8478set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8481if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5213506e 8482 $as_echo_n "(cached) " >&6
d58dead8 8483else
21be0a5a
JB
8484 if test -n "$NMEDIT"; then
8485 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d58dead8
PG
8486else
8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
5213506e
RW
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8494 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8496 break 2
8497 fi
8498done
5213506e
RW
8499 done
8500IFS=$as_save_IFS
d58dead8
PG
8501
8502fi
8503fi
21be0a5a
JB
8504NMEDIT=$ac_cv_prog_NMEDIT
8505if test -n "$NMEDIT"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8507$as_echo "$NMEDIT" >&6; }
d58dead8 8508else
5213506e
RW
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510$as_echo "no" >&6; }
d58dead8
PG
8511fi
8512
5213506e 8513
d58dead8 8514fi
21be0a5a
JB
8515if test -z "$ac_cv_prog_NMEDIT"; then
8516 ac_ct_NMEDIT=$NMEDIT
8517 # Extract the first word of "nmedit", so it can be a program name with args.
8518set dummy nmedit; ac_word=$2
5213506e
RW
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8521if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5213506e 8522 $as_echo_n "(cached) " >&6
d58dead8 8523else
21be0a5a
JB
8524 if test -n "$ac_ct_NMEDIT"; then
8525 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d58dead8
PG
8526else
8527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528for as_dir in $PATH
8529do
8530 IFS=$as_save_IFS
8531 test -z "$as_dir" && as_dir=.
5213506e
RW
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8534 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8536 break 2
8537 fi
8538done
5213506e
RW
8539 done
8540IFS=$as_save_IFS
d58dead8 8541
d58dead8
PG
8542fi
8543fi
21be0a5a
JB
8544ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8545if test -n "$ac_ct_NMEDIT"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8547$as_echo "$ac_ct_NMEDIT" >&6; }
d58dead8 8548else
5213506e
RW
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550$as_echo "no" >&6; }
d58dead8
PG
8551fi
8552
21be0a5a
JB
8553 if test "x$ac_ct_NMEDIT" = x; then
8554 NMEDIT=":"
5213506e
RW
8555 else
8556 case $cross_compiling:$ac_tool_warned in
8557yes:)
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8560ac_tool_warned=yes ;;
8561esac
21be0a5a 8562 NMEDIT=$ac_ct_NMEDIT
5213506e 8563 fi
d58dead8 8564else
21be0a5a 8565 NMEDIT="$ac_cv_prog_NMEDIT"
d58dead8
PG
8566fi
8567
8568 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8569 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8570set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
8571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8573if test "${ac_cv_prog_LIPO+set}" = set; then :
5213506e 8574 $as_echo_n "(cached) " >&6
d58dead8 8575else
21be0a5a
JB
8576 if test -n "$LIPO"; then
8577 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d58dead8
PG
8578else
8579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580for as_dir in $PATH
8581do
8582 IFS=$as_save_IFS
8583 test -z "$as_dir" && as_dir=.
5213506e
RW
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8586 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 8587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8588 break 2
8589 fi
8590done
5213506e
RW
8591 done
8592IFS=$as_save_IFS
d58dead8
PG
8593
8594fi
8595fi
21be0a5a
JB
8596LIPO=$ac_cv_prog_LIPO
8597if test -n "$LIPO"; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8599$as_echo "$LIPO" >&6; }
d58dead8 8600else
5213506e
RW
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602$as_echo "no" >&6; }
d58dead8
PG
8603fi
8604
5213506e 8605
d58dead8 8606fi
21be0a5a
JB
8607if test -z "$ac_cv_prog_LIPO"; then
8608 ac_ct_LIPO=$LIPO
8609 # Extract the first word of "lipo", so it can be a program name with args.
8610set dummy lipo; ac_word=$2
5213506e
RW
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8613if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5213506e 8614 $as_echo_n "(cached) " >&6
d58dead8 8615else
21be0a5a
JB
8616 if test -n "$ac_ct_LIPO"; then
8617 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d58dead8
PG
8618else
8619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620for as_dir in $PATH
8621do
8622 IFS=$as_save_IFS
8623 test -z "$as_dir" && as_dir=.
5213506e
RW
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8626 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 8627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8628 break 2
8629 fi
8630done
5213506e
RW
8631 done
8632IFS=$as_save_IFS
d58dead8 8633
d58dead8
PG
8634fi
8635fi
21be0a5a
JB
8636ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8637if test -n "$ac_ct_LIPO"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8639$as_echo "$ac_ct_LIPO" >&6; }
d58dead8 8640else
5213506e
RW
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642$as_echo "no" >&6; }
d58dead8
PG
8643fi
8644
21be0a5a
JB
8645 if test "x$ac_ct_LIPO" = x; then
8646 LIPO=":"
5213506e
RW
8647 else
8648 case $cross_compiling:$ac_tool_warned in
8649yes:)
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8652ac_tool_warned=yes ;;
8653esac
21be0a5a 8654 LIPO=$ac_ct_LIPO
5213506e 8655 fi
d58dead8 8656else
21be0a5a 8657 LIPO="$ac_cv_prog_LIPO"
d58dead8
PG
8658fi
8659
21be0a5a
JB
8660 if test -n "$ac_tool_prefix"; then
8661 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8662set dummy ${ac_tool_prefix}otool; ac_word=$2
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664$as_echo_n "checking for $ac_word... " >&6; }
8665if test "${ac_cv_prog_OTOOL+set}" = set; then :
5213506e 8666 $as_echo_n "(cached) " >&6
d58dead8 8667else
21be0a5a
JB
8668 if test -n "$OTOOL"; then
8669 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
43e02a8a 8670else
21be0a5a
JB
8671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672for as_dir in $PATH
8673do
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8678 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 break 2
8681 fi
8682done
8683 done
8684IFS=$as_save_IFS
43e02a8a
RW
8685
8686fi
21be0a5a
JB
8687fi
8688OTOOL=$ac_cv_prog_OTOOL
8689if test -n "$OTOOL"; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8691$as_echo "$OTOOL" >&6; }
8692else
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694$as_echo "no" >&6; }
8695fi
8696
d58dead8 8697
1cf3d07d 8698fi
21be0a5a
JB
8699if test -z "$ac_cv_prog_OTOOL"; then
8700 ac_ct_OTOOL=$OTOOL
8701 # Extract the first word of "otool", so it can be a program name with args.
8702set dummy otool; ac_word=$2
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704$as_echo_n "checking for $ac_word... " >&6; }
8705if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5213506e 8706 $as_echo_n "(cached) " >&6
1cf3d07d 8707else
21be0a5a
JB
8708 if test -n "$ac_ct_OTOOL"; then
8709 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8710else
8711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712for as_dir in $PATH
1cf3d07d 8713do
21be0a5a
JB
8714 IFS=$as_save_IFS
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
8717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8718 ac_cv_prog_ac_ct_OTOOL="otool"
8719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 break 2
8721 fi
8722done
8723 done
8724IFS=$as_save_IFS
6de9cd9a 8725
21be0a5a
JB
8726fi
8727fi
8728ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8729if test -n "$ac_ct_OTOOL"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8731$as_echo "$ac_ct_OTOOL" >&6; }
5213506e 8732else
21be0a5a
JB
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734$as_echo "no" >&6; }
1cf3d07d 8735fi
96b8a615 8736
21be0a5a
JB
8737 if test "x$ac_ct_OTOOL" = x; then
8738 OTOOL=":"
8739 else
8740 case $cross_compiling:$ac_tool_warned in
8741yes:)
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8744ac_tool_warned=yes ;;
8745esac
8746 OTOOL=$ac_ct_OTOOL
8747 fi
1cf3d07d 8748else
21be0a5a 8749 OTOOL="$ac_cv_prog_OTOOL"
1cf3d07d 8750fi
6de9cd9a 8751
21be0a5a
JB
8752 if test -n "$ac_tool_prefix"; then
8753 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8754set dummy ${ac_tool_prefix}otool64; ac_word=$2
8755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8756$as_echo_n "checking for $ac_word... " >&6; }
8757if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8758 $as_echo_n "(cached) " >&6
8759else
8760 if test -n "$OTOOL64"; then
8761 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8762else
8763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764for as_dir in $PATH
8765do
8766 IFS=$as_save_IFS
8767 test -z "$as_dir" && as_dir=.
8768 for ac_exec_ext in '' $ac_executable_extensions; do
8769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8770 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8772 break 2
8773 fi
1cf3d07d 8774done
21be0a5a
JB
8775 done
8776IFS=$as_save_IFS
8777
8778fi
8779fi
8780OTOOL64=$ac_cv_prog_OTOOL64
8781if test -n "$OTOOL64"; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8783$as_echo "$OTOOL64" >&6; }
8784else
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8786$as_echo "no" >&6; }
1cf3d07d 8787fi
6de9cd9a 8788
96b8a615 8789
1cf3d07d 8790fi
21be0a5a
JB
8791if test -z "$ac_cv_prog_OTOOL64"; then
8792 ac_ct_OTOOL64=$OTOOL64
8793 # Extract the first word of "otool64", so it can be a program name with args.
8794set dummy otool64; ac_word=$2
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796$as_echo_n "checking for $ac_word... " >&6; }
8797if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
96b8a615 8799else
21be0a5a
JB
8800 if test -n "$ac_ct_OTOOL64"; then
8801 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8802else
8803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804for as_dir in $PATH
96b8a615 8805do
21be0a5a
JB
8806 IFS=$as_save_IFS
8807 test -z "$as_dir" && as_dir=.
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8810 ac_cv_prog_ac_ct_OTOOL64="otool64"
8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8812 break 2
8813 fi
8814done
8815 done
8816IFS=$as_save_IFS
96b8a615 8817
21be0a5a
JB
8818fi
8819fi
8820ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8821if test -n "$ac_ct_OTOOL64"; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8823$as_echo "$ac_ct_OTOOL64" >&6; }
5213506e 8824else
21be0a5a
JB
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826$as_echo "no" >&6; }
96b8a615
AJ
8827fi
8828
21be0a5a
JB
8829 if test "x$ac_ct_OTOOL64" = x; then
8830 OTOOL64=":"
8831 else
8832 case $cross_compiling:$ac_tool_warned in
8833yes:)
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8836ac_tool_warned=yes ;;
8837esac
8838 OTOOL64=$ac_ct_OTOOL64
8839 fi
6de9cd9a 8840else
21be0a5a 8841 OTOOL64="$ac_cv_prog_OTOOL64"
6de9cd9a 8842fi
6de9cd9a 8843
5213506e 8844
1cf3d07d 8845
1cf3d07d
SE
8846
8847
6de9cd9a 8848
1cf3d07d 8849
6de9cd9a 8850
1cf3d07d 8851
5213506e 8852
6de9cd9a 8853
e87045f3 8854
15e92535 8855
5213506e 8856
15e92535 8857
15e92535 8858
21be0a5a
JB
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8871$as_echo_n "checking for -single_module linker flag... " >&6; }
8872if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8873 $as_echo_n "(cached) " >&6
1cf3d07d 8874else
21be0a5a
JB
8875 lt_cv_apple_cc_single_mod=no
8876 if test -z "${LT_MULTI_MODULE}"; then
8877 # By default we will add the -single_module flag. You can override
8878 # by either setting the environment variable LT_MULTI_MODULE
8879 # non-empty at configure time, or by adding -multi_module to the
8880 # link flags.
8881 rm -rf libconftest.dylib*
8882 echo "int foo(void){return 1;}" > conftest.c
8883 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8884-dynamiclib -Wl,-single_module conftest.c" >&5
8885 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8886 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8887 _lt_result=$?
8888 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8889 lt_cv_apple_cc_single_mod=yes
8890 else
8891 cat conftest.err >&5
8892 fi
8893 rm -rf libconftest.dylib*
8894 rm -f conftest.*
8895 fi
8896fi
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8898$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8900$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8901if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8902 $as_echo_n "(cached) " >&6
8903else
8904 lt_cv_ld_exported_symbols_list=no
8905 save_LDFLAGS=$LDFLAGS
8906 echo "_main" > conftest.sym
8907 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8908 if test x$gcc_no_link = xyes; then
8909 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8910fi
8911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 8912/* end confdefs.h. */
15e92535 8913
1cf3d07d
SE
8914int
8915main ()
8916{
21be0a5a
JB
8917
8918 ;
5213506e 8919 return 0;
1cf3d07d 8920}
15e92535 8921_ACEOF
21be0a5a
JB
8922if ac_fn_c_try_link "$LINENO"; then :
8923 lt_cv_ld_exported_symbols_list=yes
5213506e 8924else
21be0a5a 8925 lt_cv_ld_exported_symbols_list=no
1cf3d07d 8926fi
21be0a5a
JB
8927rm -f core conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
8929 LDFLAGS="$save_LDFLAGS"
15e92535
FXC
8930
8931fi
21be0a5a
JB
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8933$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8935$as_echo_n "checking for -force_load linker flag... " >&6; }
8936if test "${lt_cv_ld_force_load+set}" = set; then :
8937 $as_echo_n "(cached) " >&6
8938else
8939 lt_cv_ld_force_load=no
8940 cat > conftest.c << _LT_EOF
8941int forced_loaded() { return 2;}
8942_LT_EOF
8943 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8944 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8945 echo "$AR cru libconftest.a conftest.o" >&5
8946 $AR cru libconftest.a conftest.o 2>&5
8947 cat > conftest.c << _LT_EOF
8948int main() { return 0;}
8949_LT_EOF
8950 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8951 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8952 _lt_result=$?
8953 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8954 lt_cv_ld_force_load=yes
8955 else
8956 cat conftest.err >&5
8957 fi
8958 rm -f conftest.err libconftest.a conftest conftest.c
8959 rm -rf conftest.dSYM
1cf3d07d
SE
8960
8961fi
21be0a5a
JB
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8963$as_echo "$lt_cv_ld_force_load" >&6; }
8964 case $host_os in
8965 rhapsody* | darwin1.[012])
8966 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8967 darwin1.*)
8968 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8969 darwin*) # darwin 5.x on
8970 # if running on 10.5 or later, the deployment target defaults
8971 # to the OS version, if on x86, and 10.4, the deployment
8972 # target defaults to 10.4. Don't you love it?
8973 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8974 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8975 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 8976 10.[012][,.]*)
21be0a5a
JB
8977 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8978 10.*)
8979 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8980 esac
8981 ;;
8982 esac
8983 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8984 _lt_dar_single_mod='$single_module'
8985 fi
8986 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8987 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8988 else
8989 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8990 fi
8991 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8992 _lt_dsymutil='~$DSYMUTIL $lib || :'
8993 else
8994 _lt_dsymutil=
8995 fi
8996 ;;
8997 esac
1cf3d07d 8998
1cf3d07d 8999for ac_header in dlfcn.h
5213506e
RW
9000do :
9001 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9002"
9003if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
1cf3d07d 9004 cat >>confdefs.h <<_ACEOF
5213506e 9005#define HAVE_DLFCN_H 1
9cdc381b 9006_ACEOF
9cdc381b 9007
1cf3d07d
SE
9008fi
9009
9010done
9011
9012
9013
43e02a8a
RW
9014
9015
d58dead8
PG
9016# Set options
9017
9018
9019
9020
9021 enable_win32_dll=no
9022
9023
5213506e
RW
9024 # Check whether --enable-shared was given.
9025if test "${enable_shared+set}" = set; then :
9026 enableval=$enable_shared; p=${PACKAGE-default}
d58dead8
PG
9027 case $enableval in
9028 yes) enable_shared=yes ;;
9029 no) enable_shared=no ;;
9030 *)
9031 enable_shared=no
9032 # Look at the argument we got. We use all the common list separators.
9033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9034 for pkg in $enableval; do
9035 IFS="$lt_save_ifs"
9036 if test "X$pkg" = "X$p"; then
9037 enable_shared=yes
9038 fi
9039 done
9040 IFS="$lt_save_ifs"
9041 ;;
9042 esac
9043else
9044 enable_shared=yes
5213506e
RW
9045fi
9046
d58dead8
PG
9047
9048
9049
9050
9051
9052
9053
9054
5213506e
RW
9055 # Check whether --enable-static was given.
9056if test "${enable_static+set}" = set; then :
9057 enableval=$enable_static; p=${PACKAGE-default}
d58dead8
PG
9058 case $enableval in
9059 yes) enable_static=yes ;;
9060 no) enable_static=no ;;
9061 *)
9062 enable_static=no
9063 # Look at the argument we got. We use all the common list separators.
9064 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9065 for pkg in $enableval; do
9066 IFS="$lt_save_ifs"
9067 if test "X$pkg" = "X$p"; then
9068 enable_static=yes
9069 fi
9070 done
9071 IFS="$lt_save_ifs"
9072 ;;
9073 esac
9074else
9075 enable_static=yes
5213506e
RW
9076fi
9077
d58dead8
PG
9078
9079
9080
9081
9082
9083
9084
9085
9086
5213506e
RW
9087# Check whether --with-pic was given.
9088if test "${with_pic+set}" = set; then :
9089 withval=$with_pic; pic_mode="$withval"
d58dead8
PG
9090else
9091 pic_mode=default
5213506e
RW
9092fi
9093
d58dead8
PG
9094
9095test -z "$pic_mode" && pic_mode=default
9096
9097
9098
9099
9100
9101
9102
5213506e
RW
9103 # Check whether --enable-fast-install was given.
9104if test "${enable_fast_install+set}" = set; then :
9105 enableval=$enable_fast_install; p=${PACKAGE-default}
d58dead8
PG
9106 case $enableval in
9107 yes) enable_fast_install=yes ;;
9108 no) enable_fast_install=no ;;
9109 *)
9110 enable_fast_install=no
9111 # Look at the argument we got. We use all the common list separators.
9112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9113 for pkg in $enableval; do
9114 IFS="$lt_save_ifs"
9115 if test "X$pkg" = "X$p"; then
9116 enable_fast_install=yes
9117 fi
9118 done
9119 IFS="$lt_save_ifs"
9120 ;;
9121 esac
9122else
9123 enable_fast_install=yes
5213506e
RW
9124fi
9125
d58dead8
PG
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
1cf3d07d
SE
9136# This can be used to rebuild libtool when needed
9137LIBTOOL_DEPS="$ltmain"
9138
9139# Always use our own libtool.
9140LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
43e02a8a 9164
1cf3d07d
SE
9165
9166
9167test -z "$LN_S" && LN_S="ln -s"
9168
9169
9170
9171
9172
9cdc381b 9173
1cf3d07d
SE
9174
9175
9176
9177
9178
9179
9180
9181
9182if test -n "${ZSH_VERSION+set}" ; then
9183 setopt NO_GLOB_SUBST
9cdc381b 9184fi
9cdc381b 9185
5213506e
RW
9186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9187$as_echo_n "checking for objdir... " >&6; }
9188if test "${lt_cv_objdir+set}" = set; then :
9189 $as_echo_n "(cached) " >&6
9cdc381b 9190else
1cf3d07d
SE
9191 rm -f .libs 2>/dev/null
9192mkdir .libs 2>/dev/null
9193if test -d .libs; then
9194 lt_cv_objdir=.libs
9195else
9196 # MS-DOS does not allow filenames that begin with a dot.
9197 lt_cv_objdir=_libs
9cdc381b 9198fi
1cf3d07d 9199rmdir .libs 2>/dev/null
9cdc381b 9200fi
5213506e
RW
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9202$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
9203objdir=$lt_cv_objdir
9204
9205
9206
9207
9cdc381b
BD
9208
9209cat >>confdefs.h <<_ACEOF
1cf3d07d 9210#define LT_OBJDIR "$lt_cv_objdir/"
9cdc381b
BD
9211_ACEOF
9212
1cf3d07d
SE
9213
9214
9215
1cf3d07d
SE
9216case $host_os in
9217aix3*)
9218 # AIX sometimes has problems with the GCC collect2 program. For some
9219 # reason, if we set the COLLECT_NAMES environment variable, the problems
9220 # vanish in a puff of smoke.
9221 if test "X${COLLECT_NAMES+set}" != Xset; then
9222 COLLECT_NAMES=
9223 export COLLECT_NAMES
9224 fi
9225 ;;
9226esac
9227
1cf3d07d
SE
9228# Global variables:
9229ofile=libtool
9230can_build_shared=yes
9231
9232# All known linkers require a `.a' archive for static linking (except MSVC,
9233# which needs '.lib').
9234libext=a
9235
9236with_gnu_ld="$lt_cv_prog_gnu_ld"
9237
9238old_CC="$CC"
9239old_CFLAGS="$CFLAGS"
9240
9241# Set sane defaults for various variables
9242test -z "$CC" && CC=cc
9243test -z "$LTCC" && LTCC=$CC
9244test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9245test -z "$LD" && LD=ld
9246test -z "$ac_objext" && ac_objext=o
9247
9248for cc_temp in $compiler""; do
9249 case $cc_temp in
9250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9252 \-*) ;;
9253 *) break;;
9254 esac
9255done
43e02a8a 9256cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
9257
9258
9259# Only perform the check for file, if the check method requires it
9260test -z "$MAGIC_CMD" && MAGIC_CMD=file
9261case $deplibs_check_method in
9262file_magic*)
9263 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9265$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9266if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
9cdc381b 9268else
1cf3d07d
SE
9269 case $MAGIC_CMD in
9270[\\/*] | ?:[\\/]*)
9271 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9272 ;;
9273*)
9274 lt_save_MAGIC_CMD="$MAGIC_CMD"
9275 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9276 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9277 for ac_dir in $ac_dummy; do
9278 IFS="$lt_save_ifs"
9279 test -z "$ac_dir" && ac_dir=.
9280 if test -f $ac_dir/${ac_tool_prefix}file; then
9281 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9282 if test -n "$file_magic_test_file"; then
9283 case $deplibs_check_method in
9284 "file_magic "*)
9285 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9287 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9288 $EGREP "$file_magic_regex" > /dev/null; then
9289 :
9290 else
9291 cat <<_LT_EOF 1>&2
9cdc381b 9292
1cf3d07d
SE
9293*** Warning: the command libtool uses to detect shared libraries,
9294*** $file_magic_cmd, produces output that libtool cannot recognize.
9295*** The result is that libtool may fail to recognize shared libraries
9296*** as such. This will affect the creation of libtool libraries that
9297*** depend on shared libraries, but programs linked with such libtool
9298*** libraries will work regardless of this problem. Nevertheless, you
9299*** may want to report the problem to your system manager and/or to
9300*** bug-libtool@gnu.org
9301
9302_LT_EOF
9303 fi ;;
9304 esac
9305 fi
9306 break
9307 fi
9308 done
9309 IFS="$lt_save_ifs"
9310 MAGIC_CMD="$lt_save_MAGIC_CMD"
9311 ;;
9312esac
9313fi
9314
9315MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9316if test -n "$MAGIC_CMD"; then
5213506e
RW
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9318$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9319else
5213506e
RW
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321$as_echo "no" >&6; }
1cf3d07d
SE
9322fi
9323
9324
9325
9326
9327
9328if test -z "$lt_cv_path_MAGIC_CMD"; then
9329 if test -n "$ac_tool_prefix"; then
5213506e
RW
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9331$as_echo_n "checking for file... " >&6; }
9332if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9333 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9334else
9335 case $MAGIC_CMD in
9336[\\/*] | ?:[\\/]*)
9337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9338 ;;
9339*)
9340 lt_save_MAGIC_CMD="$MAGIC_CMD"
9341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9342 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9343 for ac_dir in $ac_dummy; do
9344 IFS="$lt_save_ifs"
9345 test -z "$ac_dir" && ac_dir=.
9346 if test -f $ac_dir/file; then
9347 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9348 if test -n "$file_magic_test_file"; then
9349 case $deplibs_check_method in
9350 "file_magic "*)
9351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9354 $EGREP "$file_magic_regex" > /dev/null; then
9355 :
9356 else
9357 cat <<_LT_EOF 1>&2
9358
9359*** Warning: the command libtool uses to detect shared libraries,
9360*** $file_magic_cmd, produces output that libtool cannot recognize.
9361*** The result is that libtool may fail to recognize shared libraries
9362*** as such. This will affect the creation of libtool libraries that
9363*** depend on shared libraries, but programs linked with such libtool
9364*** libraries will work regardless of this problem. Nevertheless, you
9365*** may want to report the problem to your system manager and/or to
9366*** bug-libtool@gnu.org
9367
9368_LT_EOF
9369 fi ;;
9370 esac
9371 fi
9372 break
9373 fi
9374 done
9375 IFS="$lt_save_ifs"
9376 MAGIC_CMD="$lt_save_MAGIC_CMD"
9377 ;;
9378esac
9379fi
9380
9381MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9382if test -n "$MAGIC_CMD"; then
5213506e
RW
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9384$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9385else
5213506e
RW
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387$as_echo "no" >&6; }
1cf3d07d
SE
9388fi
9389
9390
9391 else
9392 MAGIC_CMD=:
9393 fi
9394fi
9395
9396 fi
9397 ;;
9398esac
9399
9400# Use C for the default configuration in the libtool script
9401
9402lt_save_CC="$CC"
9403ac_ext=c
9404ac_cpp='$CPP $CPPFLAGS'
9405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9407ac_compiler_gnu=$ac_cv_c_compiler_gnu
9408
9409
9410# Source file extension for C test sources.
9411ac_ext=c
9412
9413# Object file extension for compiled C test sources.
9414objext=o
9415objext=$objext
9416
9417# Code to be used in simple compile tests
9418lt_simple_compile_test_code="int some_variable = 0;"
9419
9420# Code to be used in simple link tests
9421lt_simple_link_test_code='int main(){return(0);}'
9422
9423
9424
9425
9426
9427
9428
9429# If no C compiler was specified, use CC.
9430LTCC=${LTCC-"$CC"}
9431
9432# If no C compiler flags were specified, use CFLAGS.
9433LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9434
9435# Allow CC to be a program name with arguments.
9436compiler=$CC
9437
9438# Save the default compiler, since it gets overwritten when the other
9439# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9440compiler_DEFAULT=$CC
9441
9442# save warnings/boilerplate of simple test code
9443ac_outfile=conftest.$ac_objext
9444echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9445eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9446_lt_compiler_boilerplate=`cat conftest.err`
9447$RM conftest*
9448
9449ac_outfile=conftest.$ac_objext
9450echo "$lt_simple_link_test_code" >conftest.$ac_ext
9451eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9452_lt_linker_boilerplate=`cat conftest.err`
d58dead8 9453$RM -r conftest*
1cf3d07d
SE
9454
9455
9456## CAVEAT EMPTOR:
9457## There is no encapsulation within the following macros, do not change
9458## the running order or otherwise move them around unless you know exactly
9459## what you are doing...
9460if test -n "$compiler"; then
9461
9462lt_prog_compiler_no_builtin_flag=
9463
9464if test "$GCC" = yes; then
43e02a8a
RW
9465 case $cc_basename in
9466 nvcc*)
9467 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9468 *)
9469 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9470 esac
1cf3d07d 9471
5213506e
RW
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9473$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9474if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9476else
9477 lt_cv_prog_compiler_rtti_exceptions=no
9478 ac_outfile=conftest.$ac_objext
9479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9480 lt_compiler_flag="-fno-rtti -fno-exceptions"
9481 # Insert the option either (1) after the last *FLAGS variable, or
9482 # (2) before a word containing "conftest.", or (3) at the end.
9483 # Note that $ac_compile itself does not contain backslashes and begins
9484 # with a dollar sign (not a hyphen), so the echo should work correctly.
9485 # The option is referenced via a variable to avoid confusing sed.
9486 lt_compile=`echo "$ac_compile" | $SED \
9487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9489 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9491 (eval "$lt_compile" 2>conftest.err)
9492 ac_status=$?
9493 cat conftest.err >&5
43e02a8a 9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9495 if (exit $ac_status) && test -s "$ac_outfile"; then
9496 # The compiler can only warn and ignore the option if not recognized
9497 # So say no if there are warnings other than the usual output.
43e02a8a 9498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9501 lt_cv_prog_compiler_rtti_exceptions=yes
9502 fi
9503 fi
9504 $RM conftest*
9505
9506fi
5213506e
RW
9507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9508$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
9509
9510if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9511 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9512else
9513 :
9514fi
9515
9516fi
9517
9518
9519
9520
9521
9522
9523 lt_prog_compiler_wl=
9524lt_prog_compiler_pic=
9525lt_prog_compiler_static=
9526
5213506e
RW
9527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9528$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
9529
9530 if test "$GCC" = yes; then
9531 lt_prog_compiler_wl='-Wl,'
9532 lt_prog_compiler_static='-static'
9533
9534 case $host_os in
9535 aix*)
9536 # All AIX code is PIC.
9537 if test "$host_cpu" = ia64; then
9538 # AIX 5 now supports IA64 processor
9539 lt_prog_compiler_static='-Bstatic'
9540 fi
bad8a4a7 9541 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
9542 ;;
9543
9544 amigaos*)
d58dead8
PG
9545 case $host_cpu in
9546 powerpc)
9547 # see comment about AmigaOS4 .so support
9548 lt_prog_compiler_pic='-fPIC'
9549 ;;
9550 m68k)
9551 # FIXME: we need at least 68020 code to build shared libraries, but
9552 # adding the `-m68020' flag to GCC prevents building anything better,
9553 # like `-m68040'.
9554 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9555 ;;
9556 esac
1cf3d07d
SE
9557 ;;
9558
9559 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9560 # PIC is the default for these OSes.
9561 ;;
9562
d58dead8 9563 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9564 # This hack is so that the source file can tell whether it is being
9565 # built for inclusion in a dll (and should export symbols for example).
9566 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9567 # (--disable-auto-import) libraries
9568 lt_prog_compiler_pic='-DDLL_EXPORT'
9569 ;;
9570
9571 darwin* | rhapsody*)
9572 # PIC is the default on this platform
9573 # Common symbols not allowed in MH_DYLIB files
9574 lt_prog_compiler_pic='-fno-common'
9575 ;;
9576
43e02a8a
RW
9577 haiku*)
9578 # PIC is the default for Haiku.
9579 # The "-static" flag exists, but is broken.
9580 lt_prog_compiler_static=
9581 ;;
9582
1cf3d07d 9583 hpux*)
d58dead8
PG
9584 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9585 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9586 # sets the default TLS model and affects inlining.
1cf3d07d 9587 case $host_cpu in
d58dead8 9588 hppa*64*)
1cf3d07d
SE
9589 # +Z the default
9590 ;;
9591 *)
9592 lt_prog_compiler_pic='-fPIC'
9593 ;;
9594 esac
9595 ;;
9596
9597 interix[3-9]*)
9598 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9599 # Instead, we relocate shared libraries at runtime.
9600 ;;
9601
9602 msdosdjgpp*)
9603 # Just because we use GCC doesn't mean we suddenly get shared libraries
9604 # on systems that don't support them.
9605 lt_prog_compiler_can_build_shared=no
9606 enable_shared=no
9607 ;;
9608
9609 *nto* | *qnx*)
9610 # QNX uses GNU C++, but need to define -shared option too, otherwise
9611 # it will coredump.
9612 lt_prog_compiler_pic='-fPIC -shared'
9613 ;;
9614
9615 sysv4*MP*)
9616 if test -d /usr/nec; then
9617 lt_prog_compiler_pic=-Kconform_pic
9618 fi
9619 ;;
9620
9621 *)
9622 lt_prog_compiler_pic='-fPIC'
9623 ;;
9624 esac
43e02a8a
RW
9625
9626 case $cc_basename in
9627 nvcc*) # Cuda Compiler Driver 2.2
9628 lt_prog_compiler_wl='-Xlinker '
9629 lt_prog_compiler_pic='-Xcompiler -fPIC'
9630 ;;
9631 esac
1cf3d07d
SE
9632 else
9633 # PORTME Check for flag to pass linker flags through the system compiler.
9634 case $host_os in
9635 aix*)
9636 lt_prog_compiler_wl='-Wl,'
9637 if test "$host_cpu" = ia64; then
9638 # AIX 5 now supports IA64 processor
9639 lt_prog_compiler_static='-Bstatic'
9640 else
9641 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9642 fi
9643 ;;
1cf3d07d 9644
d58dead8 9645 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9646 # This hack is so that the source file can tell whether it is being
9647 # built for inclusion in a dll (and should export symbols for example).
9648 lt_prog_compiler_pic='-DDLL_EXPORT'
9649 ;;
9650
9651 hpux9* | hpux10* | hpux11*)
9652 lt_prog_compiler_wl='-Wl,'
9653 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9654 # not for PA HP-UX.
9655 case $host_cpu in
9656 hppa*64*|ia64*)
9657 # +Z the default
9658 ;;
9659 *)
9660 lt_prog_compiler_pic='+Z'
9661 ;;
9662 esac
9663 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9664 lt_prog_compiler_static='${wl}-a ${wl}archive'
9665 ;;
9666
9667 irix5* | irix6* | nonstopux*)
9668 lt_prog_compiler_wl='-Wl,'
9669 # PIC (with -KPIC) is the default.
9670 lt_prog_compiler_static='-non_shared'
9671 ;;
9672
7a9d3fe8 9673 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 9674 case $cc_basename in
d58dead8
PG
9675 # old Intel for x86_64 which still supported -KPIC.
9676 ecc*)
1cf3d07d
SE
9677 lt_prog_compiler_wl='-Wl,'
9678 lt_prog_compiler_pic='-KPIC'
9679 lt_prog_compiler_static='-static'
9680 ;;
d58dead8
PG
9681 # icc used to be incompatible with GCC.
9682 # ICC 10 doesn't accept -KPIC any more.
9683 icc* | ifort*)
9684 lt_prog_compiler_wl='-Wl,'
9685 lt_prog_compiler_pic='-fPIC'
9686 lt_prog_compiler_static='-static'
9687 ;;
9688 # Lahey Fortran 8.1.
9689 lf95*)
9690 lt_prog_compiler_wl='-Wl,'
9691 lt_prog_compiler_pic='--shared'
9692 lt_prog_compiler_static='--static'
9693 ;;
43e02a8a 9694 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
9695 # Portland Group compilers (*not* the Pentium gcc compiler,
9696 # which looks to be a dead project)
9697 lt_prog_compiler_wl='-Wl,'
9698 lt_prog_compiler_pic='-fpic'
9699 lt_prog_compiler_static='-Bstatic'
9700 ;;
9701 ccc*)
9702 lt_prog_compiler_wl='-Wl,'
9703 # All Alpha code is PIC.
9704 lt_prog_compiler_static='-non_shared'
9705 ;;
43e02a8a
RW
9706 xl* | bgxl* | bgf* | mpixl*)
9707 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
9708 lt_prog_compiler_wl='-Wl,'
9709 lt_prog_compiler_pic='-qpic'
9710 lt_prog_compiler_static='-qstaticlink'
9711 ;;
1cf3d07d
SE
9712 *)
9713 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
9714 *Sun\ F* | *Sun*Fortran*)
9715 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
9716 lt_prog_compiler_pic='-KPIC'
9717 lt_prog_compiler_static='-Bstatic'
43e02a8a 9718 lt_prog_compiler_wl=''
1cf3d07d 9719 ;;
43e02a8a
RW
9720 *Sun\ C*)
9721 # Sun C 5.9
1cf3d07d
SE
9722 lt_prog_compiler_pic='-KPIC'
9723 lt_prog_compiler_static='-Bstatic'
43e02a8a 9724 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
9725 ;;
9726 esac
9727 ;;
9728 esac
9729 ;;
9730
9731 newsos6)
9732 lt_prog_compiler_pic='-KPIC'
9733 lt_prog_compiler_static='-Bstatic'
9734 ;;
9735
9736 *nto* | *qnx*)
9737 # QNX uses GNU C++, but need to define -shared option too, otherwise
9738 # it will coredump.
9739 lt_prog_compiler_pic='-fPIC -shared'
9740 ;;
9741
9742 osf3* | osf4* | osf5*)
9743 lt_prog_compiler_wl='-Wl,'
9744 # All OSF/1 code is PIC.
9745 lt_prog_compiler_static='-non_shared'
9746 ;;
9747
9748 rdos*)
9749 lt_prog_compiler_static='-non_shared'
9750 ;;
9751
9752 solaris*)
9753 lt_prog_compiler_pic='-KPIC'
9754 lt_prog_compiler_static='-Bstatic'
9755 case $cc_basename in
9756 f77* | f90* | f95*)
9757 lt_prog_compiler_wl='-Qoption ld ';;
9758 *)
9759 lt_prog_compiler_wl='-Wl,';;
9760 esac
9761 ;;
9762
9763 sunos4*)
9764 lt_prog_compiler_wl='-Qoption ld '
9765 lt_prog_compiler_pic='-PIC'
9766 lt_prog_compiler_static='-Bstatic'
9767 ;;
9768
9769 sysv4 | sysv4.2uw2* | sysv4.3*)
9770 lt_prog_compiler_wl='-Wl,'
9771 lt_prog_compiler_pic='-KPIC'
9772 lt_prog_compiler_static='-Bstatic'
9773 ;;
9774
9775 sysv4*MP*)
9776 if test -d /usr/nec ;then
9777 lt_prog_compiler_pic='-Kconform_pic'
9778 lt_prog_compiler_static='-Bstatic'
9779 fi
9780 ;;
9781
9782 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9783 lt_prog_compiler_wl='-Wl,'
9784 lt_prog_compiler_pic='-KPIC'
9785 lt_prog_compiler_static='-Bstatic'
9786 ;;
9787
9788 unicos*)
9789 lt_prog_compiler_wl='-Wl,'
9790 lt_prog_compiler_can_build_shared=no
9791 ;;
9792
9793 uts4*)
9794 lt_prog_compiler_pic='-pic'
9795 lt_prog_compiler_static='-Bstatic'
9796 ;;
9797
9798 *)
9799 lt_prog_compiler_can_build_shared=no
9800 ;;
9801 esac
9802 fi
9803
9804case $host_os in
9805 # For platforms which do not support PIC, -DPIC is meaningless:
9806 *djgpp*)
9807 lt_prog_compiler_pic=
9808 ;;
9809 *)
9810 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9811 ;;
9812esac
5213506e
RW
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9814$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
9815
9816
9817
9818
9819
9820
9821#
9822# Check to make sure the PIC flag actually works.
9823#
9824if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9826$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9827if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9828 $as_echo_n "(cached) " >&6
1cf3d07d 9829else
d58dead8 9830 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
9831 ac_outfile=conftest.$ac_objext
9832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9833 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9834 # Insert the option either (1) after the last *FLAGS variable, or
9835 # (2) before a word containing "conftest.", or (3) at the end.
9836 # Note that $ac_compile itself does not contain backslashes and begins
9837 # with a dollar sign (not a hyphen), so the echo should work correctly.
9838 # The option is referenced via a variable to avoid confusing sed.
9839 lt_compile=`echo "$ac_compile" | $SED \
9840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9842 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9844 (eval "$lt_compile" 2>conftest.err)
9845 ac_status=$?
9846 cat conftest.err >&5
43e02a8a 9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9848 if (exit $ac_status) && test -s "$ac_outfile"; then
9849 # The compiler can only warn and ignore the option if not recognized
9850 # So say no if there are warnings other than the usual output.
43e02a8a 9851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 9854 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
9855 fi
9856 fi
9857 $RM conftest*
9858
9859fi
5213506e
RW
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9861$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 9862
d58dead8 9863if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
9864 case $lt_prog_compiler_pic in
9865 "" | " "*) ;;
9866 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9867 esac
9868else
9869 lt_prog_compiler_pic=
9870 lt_prog_compiler_can_build_shared=no
9871fi
9872
9873fi
9874
9875
9876
9877
9878
9879
9880#
9881# Check to make sure the static flag actually works.
9882#
9883wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9885$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9886if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
1cf3d07d 9888else
d58dead8 9889 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
9890 save_LDFLAGS="$LDFLAGS"
9891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9894 # The linker can only warn and ignore the option if not recognized
9895 # So say no if there are warnings
9896 if test -s conftest.err; then
9897 # Append any errors to the config.log.
9898 cat conftest.err 1>&5
43e02a8a 9899 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
9900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9901 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 9902 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9903 fi
9904 else
d58dead8 9905 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9906 fi
9907 fi
d58dead8 9908 $RM -r conftest*
1cf3d07d
SE
9909 LDFLAGS="$save_LDFLAGS"
9910
9911fi
5213506e
RW
9912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9913$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 9914
d58dead8 9915if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
9916 :
9917else
9918 lt_prog_compiler_static=
9919fi
9920
9921
9922
9923
9924
9925
9926
5213506e
RW
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9928$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9929if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9930 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9931else
9932 lt_cv_prog_compiler_c_o=no
9933 $RM -r conftest 2>/dev/null
9934 mkdir conftest
9935 cd conftest
9936 mkdir out
9937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9938
9939 lt_compiler_flag="-o out/conftest2.$ac_objext"
9940 # Insert the option either (1) after the last *FLAGS variable, or
9941 # (2) before a word containing "conftest.", or (3) at the end.
9942 # Note that $ac_compile itself does not contain backslashes and begins
9943 # with a dollar sign (not a hyphen), so the echo should work correctly.
9944 lt_compile=`echo "$ac_compile" | $SED \
9945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9947 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9949 (eval "$lt_compile" 2>out/conftest.err)
9950 ac_status=$?
9951 cat out/conftest.err >&5
43e02a8a 9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9954 then
9955 # The compiler can only warn and ignore the option if not recognized
9956 # So say no if there are warnings
43e02a8a 9957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
9958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9960 lt_cv_prog_compiler_c_o=yes
9961 fi
9962 fi
9963 chmod u+w . 2>&5
9964 $RM conftest*
9965 # SGI C++ compiler will create directory out/ii_files/ for
9966 # template instantiation
9967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9968 $RM out/* && rmdir out
9969 cd ..
9970 $RM -r conftest
9971 $RM conftest*
9972
9973fi
5213506e
RW
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9975$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9976
9977
9978
9979
9980
9981
5213506e
RW
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9983$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9984if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9985 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9986else
9987 lt_cv_prog_compiler_c_o=no
9988 $RM -r conftest 2>/dev/null
9989 mkdir conftest
9990 cd conftest
9991 mkdir out
9992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9993
9994 lt_compiler_flag="-o out/conftest2.$ac_objext"
9995 # Insert the option either (1) after the last *FLAGS variable, or
9996 # (2) before a word containing "conftest.", or (3) at the end.
9997 # Note that $ac_compile itself does not contain backslashes and begins
9998 # with a dollar sign (not a hyphen), so the echo should work correctly.
9999 lt_compile=`echo "$ac_compile" | $SED \
10000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10002 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10003 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10004 (eval "$lt_compile" 2>out/conftest.err)
10005 ac_status=$?
10006 cat out/conftest.err >&5
43e02a8a 10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10009 then
10010 # The compiler can only warn and ignore the option if not recognized
10011 # So say no if there are warnings
43e02a8a 10012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
10013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10015 lt_cv_prog_compiler_c_o=yes
10016 fi
10017 fi
10018 chmod u+w . 2>&5
10019 $RM conftest*
10020 # SGI C++ compiler will create directory out/ii_files/ for
10021 # template instantiation
10022 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10023 $RM out/* && rmdir out
10024 cd ..
10025 $RM -r conftest
10026 $RM conftest*
10027
10028fi
5213506e
RW
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10030$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
10031
10032
10033
10034
10035hard_links="nottested"
10036if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10037 # do not overwrite the value of need_locks provided by the user
5213506e
RW
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10039$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
10040 hard_links=yes
10041 $RM conftest*
10042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10043 touch conftest.a
10044 ln conftest.a conftest.b 2>&5 || hard_links=no
10045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10047$as_echo "$hard_links" >&6; }
1cf3d07d 10048 if test "$hard_links" = no; then
5213506e
RW
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10050$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
10051 need_locks=warn
10052 fi
10053else
10054 need_locks=no
10055fi
10056
10057
10058
10059
10060
10061
5213506e
RW
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10063$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
10064
10065 runpath_var=
10066 allow_undefined_flag=
10067 always_export_symbols=no
10068 archive_cmds=
10069 archive_expsym_cmds=
10070 compiler_needs_object=no
10071 enable_shared_with_static_runtimes=no
10072 export_dynamic_flag_spec=
10073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10074 hardcode_automatic=no
10075 hardcode_direct=no
10076 hardcode_direct_absolute=no
10077 hardcode_libdir_flag_spec=
10078 hardcode_libdir_flag_spec_ld=
10079 hardcode_libdir_separator=
10080 hardcode_minus_L=no
10081 hardcode_shlibpath_var=unsupported
10082 inherit_rpath=no
10083 link_all_deplibs=unknown
10084 module_cmds=
10085 module_expsym_cmds=
10086 old_archive_from_new_cmds=
10087 old_archive_from_expsyms_cmds=
10088 thread_safe_flag_spec=
10089 whole_archive_flag_spec=
10090 # include_expsyms should be a list of space-separated symbols to be *always*
10091 # included in the symbol list
10092 include_expsyms=
10093 # exclude_expsyms can be an extended regexp of symbols to exclude
10094 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10095 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10096 # as well as any symbol that contains `d'.
d58dead8 10097 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
10098 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10099 # platforms (ab)use it in PIC code, but their linkers get confused if
10100 # the symbol is explicitly referenced. Since portable code cannot
10101 # rely on this symbol name, it's probably fine to never include it in
10102 # preloaded symbol tables.
d58dead8 10103 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
10104 extract_expsyms_cmds=
10105
10106 case $host_os in
d58dead8 10107 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10108 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10109 # When not using gcc, we currently assume that we are using
10110 # Microsoft Visual C++.
10111 if test "$GCC" != yes; then
10112 with_gnu_ld=no
10113 fi
10114 ;;
10115 interix*)
10116 # we just hope/assume this is gcc and not c89 (= MSVC++)
10117 with_gnu_ld=yes
10118 ;;
10119 openbsd*)
10120 with_gnu_ld=no
10121 ;;
10122 esac
10123
10124 ld_shlibs=yes
43e02a8a
RW
10125
10126 # On some targets, GNU ld is compatible enough with the native linker
10127 # that we're better off using the native interface for both.
10128 lt_use_gnu_ld_interface=no
1cf3d07d 10129 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
10130 case $host_os in
10131 aix*)
10132 # The AIX port of GNU ld has always aspired to compatibility
10133 # with the native linker. However, as the warning in the GNU ld
10134 # block says, versions before 2.19.5* couldn't really create working
10135 # shared libraries, regardless of the interface used.
10136 case `$LD -v 2>&1` in
10137 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10138 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10139 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10140 *)
10141 lt_use_gnu_ld_interface=yes
10142 ;;
10143 esac
10144 ;;
10145 *)
10146 lt_use_gnu_ld_interface=yes
10147 ;;
10148 esac
10149 fi
10150
10151 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
10152 # If archive_cmds runs LD, not CC, wlarc should be empty
10153 wlarc='${wl}'
10154
10155 # Set some defaults for GNU ld with shared library support. These
10156 # are reset later if shared libraries are not supported. Putting them
10157 # here allows them to be overridden if necessary.
10158 runpath_var=LD_RUN_PATH
10159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10160 export_dynamic_flag_spec='${wl}--export-dynamic'
10161 # ancient GNU ld didn't support --whole-archive et. al.
10162 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10163 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10164 else
10165 whole_archive_flag_spec=
10166 fi
10167 supports_anon_versioning=no
10168 case `$LD -v 2>&1` in
43e02a8a 10169 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
10170 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10173 *\ 2.11.*) ;; # other 2.11 versions
10174 *) supports_anon_versioning=yes ;;
10175 esac
10176
10177 # See if GNU ld supports shared libraries.
10178 case $host_os in
4f6bebc3 10179 aix[3-9]*)
1cf3d07d
SE
10180 # On AIX/PPC, the GNU linker is very broken
10181 if test "$host_cpu" != ia64; then
10182 ld_shlibs=no
10183 cat <<_LT_EOF 1>&2
10184
43e02a8a 10185*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
10186*** to be unable to reliably create shared libraries on AIX.
10187*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
10188*** really care for shared libraries, you may want to install binutils
10189*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10190*** You will then need to restart the configuration process.
1cf3d07d
SE
10191
10192_LT_EOF
10193 fi
10194 ;;
10195
10196 amigaos*)
d58dead8
PG
10197 case $host_cpu in
10198 powerpc)
10199 # see comment about AmigaOS4 .so support
10200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10201 archive_expsym_cmds=''
10202 ;;
10203 m68k)
10204 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)'
10205 hardcode_libdir_flag_spec='-L$libdir'
10206 hardcode_minus_L=yes
10207 ;;
10208 esac
1cf3d07d
SE
10209 ;;
10210
10211 beos*)
10212 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10213 allow_undefined_flag=unsupported
10214 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10215 # support --undefined. This deserves some investigation. FIXME
10216 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10217 else
10218 ld_shlibs=no
10219 fi
10220 ;;
10221
d58dead8 10222 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10223 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10224 # as there is no search path for DLLs.
10225 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 10226 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
10227 allow_undefined_flag=unsupported
10228 always_export_symbols=no
10229 enable_shared_with_static_runtimes=yes
10230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10231
10232 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10234 # If the export-symbols file already is a .def file (1st line
10235 # is EXPORTS), use it as is; otherwise, prepend...
10236 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10237 cp $export_symbols $output_objdir/$soname.def;
10238 else
10239 echo EXPORTS > $output_objdir/$soname.def;
10240 cat $export_symbols >> $output_objdir/$soname.def;
10241 fi~
10242 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10243 else
10244 ld_shlibs=no
10245 fi
10246 ;;
10247
43e02a8a
RW
10248 haiku*)
10249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10250 link_all_deplibs=yes
10251 ;;
10252
1cf3d07d
SE
10253 interix[3-9]*)
10254 hardcode_direct=no
10255 hardcode_shlibpath_var=no
10256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10257 export_dynamic_flag_spec='${wl}-E'
10258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10259 # Instead, shared libraries are loaded at an image base (0x10000000 by
10260 # default) and relocated if they conflict, which is a slow very memory
10261 # consuming and fragmenting process. To avoid this, we pick a random,
10262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10263 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10265 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'
10266 ;;
10267
7a9d3fe8 10268 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
10269 tmp_diet=no
10270 if test "$host_os" = linux-dietlibc; then
10271 case $cc_basename in
10272 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10273 esac
10274 fi
10275 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10276 && test "$tmp_diet" = no
10277 then
a699d672 10278 tmp_addflag=' $pic_flag'
d58dead8 10279 tmp_sharedflag='-shared'
1cf3d07d
SE
10280 case $cc_basename,$host_cpu in
10281 pgcc*) # Portland Group C compiler
43e02a8a 10282 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
10283 tmp_addflag=' $pic_flag'
10284 ;;
43e02a8a
RW
10285 pgf77* | pgf90* | pgf95* | pgfortran*)
10286 # Portland Group f77 and f90 compilers
10287 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
10288 tmp_addflag=' $pic_flag -Mnomain' ;;
10289 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10290 tmp_addflag=' -i_dynamic' ;;
10291 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10292 tmp_addflag=' -i_dynamic -nofor_main' ;;
10293 ifc* | ifort*) # Intel Fortran compiler
10294 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
10295 lf95*) # Lahey Fortran 8.1
10296 whole_archive_flag_spec=
10297 tmp_sharedflag='--shared' ;;
43e02a8a 10298 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
10299 tmp_sharedflag='-qmkshrobj'
10300 tmp_addflag= ;;
43e02a8a
RW
10301 nvcc*) # Cuda Compiler Driver 2.2
10302 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'
10303 compiler_needs_object=yes
10304 ;;
1cf3d07d
SE
10305 esac
10306 case `$CC -V 2>&1 | sed 5q` in
10307 *Sun\ C*) # Sun C 5.9
43e02a8a 10308 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
10309 compiler_needs_object=yes
10310 tmp_sharedflag='-G' ;;
10311 *Sun\ F*) # Sun Fortran 8.3
10312 tmp_sharedflag='-G' ;;
1cf3d07d
SE
10313 esac
10314 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10315
10316 if test "x$supports_anon_versioning" = xyes; then
10317 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10318 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10319 echo "local: *; };" >> $output_objdir/$libname.ver~
10320 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10321 fi
d58dead8
PG
10322
10323 case $cc_basename in
43e02a8a 10324 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
10325 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10326 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10327 hardcode_libdir_flag_spec=
10328 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10329 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10330 if test "x$supports_anon_versioning" = xyes; then
10331 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10333 echo "local: *; };" >> $output_objdir/$libname.ver~
10334 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10335 fi
10336 ;;
10337 esac
1cf3d07d
SE
10338 else
10339 ld_shlibs=no
10340 fi
10341 ;;
10342
10343 netbsd*)
10344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10345 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10346 wlarc=
10347 else
10348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10349 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10350 fi
10351 ;;
10352
10353 solaris*)
10354 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10355 ld_shlibs=no
10356 cat <<_LT_EOF 1>&2
10357
10358*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10359*** create shared libraries on Solaris systems. Therefore, libtool
10360*** is disabling shared libraries support. We urge you to upgrade GNU
10361*** binutils to release 2.9.1 or newer. Another option is to modify
10362*** your PATH or compiler configuration so that the native linker is
10363*** used, and then restart.
10364
10365_LT_EOF
10366 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10369 else
10370 ld_shlibs=no
10371 fi
10372 ;;
10373
10374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10375 case `$LD -v 2>&1` in
10376 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10377 ld_shlibs=no
10378 cat <<_LT_EOF 1>&2
10379
10380*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10381*** reliably create shared libraries on SCO systems. Therefore, libtool
10382*** is disabling shared libraries support. We urge you to upgrade GNU
10383*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10384*** your PATH or compiler configuration so that the native linker is
10385*** used, and then restart.
10386
10387_LT_EOF
10388 ;;
10389 *)
10390 # For security reasons, it is highly recommended that you always
10391 # use absolute paths for naming shared libraries, and exclude the
10392 # DT_RUNPATH tag from executables and libraries. But doing so
10393 # requires that you compile everything twice, which is a pain.
10394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10398 else
10399 ld_shlibs=no
10400 fi
10401 ;;
10402 esac
10403 ;;
10404
10405 sunos4*)
10406 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10407 wlarc=
10408 hardcode_direct=yes
10409 hardcode_shlibpath_var=no
10410 ;;
10411
10412 *)
10413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10415 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10416 else
10417 ld_shlibs=no
10418 fi
10419 ;;
10420 esac
10421
10422 if test "$ld_shlibs" = no; then
10423 runpath_var=
10424 hardcode_libdir_flag_spec=
10425 export_dynamic_flag_spec=
10426 whole_archive_flag_spec=
10427 fi
10428 else
10429 # PORTME fill in a description of your system's linker (not GNU ld)
10430 case $host_os in
10431 aix3*)
10432 allow_undefined_flag=unsupported
10433 always_export_symbols=yes
10434 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'
10435 # Note: this linker hardcodes the directories in LIBPATH if there
10436 # are no directories specified by -L.
10437 hardcode_minus_L=yes
10438 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10439 # Neither direct hardcoding nor static linking is supported with a
10440 # broken collect2.
10441 hardcode_direct=unsupported
10442 fi
10443 ;;
10444
4f6bebc3 10445 aix[4-9]*)
1cf3d07d
SE
10446 if test "$host_cpu" = ia64; then
10447 # On IA64, the linker does run time linking by default, so we don't
10448 # have to do anything special.
10449 aix_use_runtimelinking=no
10450 exp_sym_flag='-Bexport'
10451 no_entry_flag=""
10452 else
10453 # If we're using GNU nm, then we don't want the "-C" option.
10454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
10455 # Also, AIX nm treats weak defined symbols like other global
10456 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 10457 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 10458 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 10459 else
d3ca2257 10460 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
10461 fi
10462 aix_use_runtimelinking=no
10463
10464 # Test if we are trying to use run time linking or normal
10465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10466 # need to do runtime linking.
4f6bebc3 10467 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
10468 for ld_flag in $LDFLAGS; do
10469 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10470 aix_use_runtimelinking=yes
10471 break
10472 fi
10473 done
10474 ;;
10475 esac
10476
10477 exp_sym_flag='-bexport'
10478 no_entry_flag='-bnoentry'
10479 fi
10480
10481 # When large executables or shared objects are built, AIX ld can
10482 # have problems creating the table of contents. If linking a library
10483 # or program results in "error TOC overflow" add -mminimal-toc to
10484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10486
10487 archive_cmds=''
10488 hardcode_direct=yes
10489 hardcode_direct_absolute=yes
10490 hardcode_libdir_separator=':'
10491 link_all_deplibs=yes
10492 file_list_spec='${wl}-f,'
10493
10494 if test "$GCC" = yes; then
10495 case $host_os in aix4.[012]|aix4.[012].*)
10496 # We only want to do this on AIX 4.2 and lower, the check
10497 # below for broken collect2 doesn't work under 4.3+
10498 collect2name=`${CC} -print-prog-name=collect2`
10499 if test -f "$collect2name" &&
10500 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10501 then
10502 # We have reworked collect2
10503 :
10504 else
10505 # We have old collect2
10506 hardcode_direct=unsupported
10507 # It fails to find uninstalled libraries when the uninstalled
10508 # path is not listed in the libpath. Setting hardcode_minus_L
10509 # to unsupported forces relinking
10510 hardcode_minus_L=yes
10511 hardcode_libdir_flag_spec='-L$libdir'
10512 hardcode_libdir_separator=
10513 fi
10514 ;;
10515 esac
10516 shared_flag='-shared'
10517 if test "$aix_use_runtimelinking" = yes; then
10518 shared_flag="$shared_flag "'${wl}-G'
10519 fi
10520 else
10521 # not using gcc
10522 if test "$host_cpu" = ia64; then
10523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10524 # chokes on -Wl,-G. The following line is correct:
10525 shared_flag='-G'
10526 else
10527 if test "$aix_use_runtimelinking" = yes; then
10528 shared_flag='${wl}-G'
10529 else
10530 shared_flag='${wl}-bM:SRE'
10531 fi
10532 fi
10533 fi
10534
d58dead8 10535 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
10536 # It seems that -bexpall does not export symbols beginning with
10537 # underscore (_), so it is better to generate a list of symbols to export.
10538 always_export_symbols=yes
10539 if test "$aix_use_runtimelinking" = yes; then
10540 # Warning - without using the other runtime loading flags (-brtl),
10541 # -berok will link without error, but may produce a broken library.
10542 allow_undefined_flag='-berok'
10543 # Determine the default libpath from the value encoded in an
10544 # empty executable.
10545 if test x$gcc_no_link = xyes; then
5213506e 10546 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10547fi
5213506e 10548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10549/* end confdefs.h. */
10550
10551int
10552main ()
10553{
10554
10555 ;
10556 return 0;
10557}
10558_ACEOF
5213506e 10559if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10560
10561lt_aix_libpath_sed='
10562 /Import File Strings/,/^$/ {
10563 /^0/ {
10564 s/^0 *\(.*\)$/\1/
10565 p
10566 }
10567 }'
10568aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10569# Check for a 64-bit object if we didn't find anything.
10570if test -z "$aix_libpath"; then
10571 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10572fi
1cf3d07d 10573fi
5213506e
RW
10574rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10577
10578 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 10579 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
10580 else
10581 if test "$host_cpu" = ia64; then
10582 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10583 allow_undefined_flag="-z nodefs"
10584 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"
10585 else
10586 # Determine the default libpath from the value encoded in an
10587 # empty executable.
10588 if test x$gcc_no_link = xyes; then
5213506e 10589 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10590fi
5213506e 10591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10592/* end confdefs.h. */
10593
10594int
10595main ()
10596{
10597
10598 ;
10599 return 0;
10600}
10601_ACEOF
5213506e 10602if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10603
10604lt_aix_libpath_sed='
10605 /Import File Strings/,/^$/ {
10606 /^0/ {
10607 s/^0 *\(.*\)$/\1/
10608 p
10609 }
10610 }'
10611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10612# Check for a 64-bit object if we didn't find anything.
10613if test -z "$aix_libpath"; then
10614 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10615fi
1cf3d07d 10616fi
5213506e
RW
10617rm -f core conftest.err conftest.$ac_objext \
10618 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10619if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10620
10621 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10622 # Warning - without using the other run time loading flags,
10623 # -berok will link without error, but may produce a broken library.
10624 no_undefined_flag=' ${wl}-bernotok'
10625 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
10626 if test "$with_gnu_ld" = yes; then
10627 # We only use this code for GNU lds that support --whole-archive.
10628 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10629 else
10630 # Exported symbols can be pulled into shared objects from archives
10631 whole_archive_flag_spec='$convenience'
10632 fi
1cf3d07d
SE
10633 archive_cmds_need_lc=yes
10634 # This is similar to how AIX traditionally builds its shared libraries.
10635 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'
10636 fi
10637 fi
10638 ;;
10639
10640 amigaos*)
d58dead8
PG
10641 case $host_cpu in
10642 powerpc)
10643 # see comment about AmigaOS4 .so support
10644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10645 archive_expsym_cmds=''
10646 ;;
10647 m68k)
10648 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)'
10649 hardcode_libdir_flag_spec='-L$libdir'
10650 hardcode_minus_L=yes
10651 ;;
10652 esac
1cf3d07d
SE
10653 ;;
10654
10655 bsdi[45]*)
10656 export_dynamic_flag_spec=-rdynamic
10657 ;;
10658
d58dead8 10659 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10660 # When not using gcc, we currently assume that we are using
10661 # Microsoft Visual C++.
10662 # hardcode_libdir_flag_spec is actually meaningless, as there is
10663 # no search path for DLLs.
10664 hardcode_libdir_flag_spec=' '
10665 allow_undefined_flag=unsupported
10666 # Tell ltmain to make .lib files, not .a files.
10667 libext=lib
10668 # Tell ltmain to make .dll files, not .so files.
10669 shrext_cmds=".dll"
10670 # FIXME: Setting linknames here is a bad hack.
43e02a8a 10671 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
10672 # The linker will automatically build a .lib file if we build a DLL.
10673 old_archive_from_new_cmds='true'
10674 # FIXME: Should let the user specify the lib program.
10675 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10676 fix_srcfile_path='`cygpath -w "$srcfile"`'
10677 enable_shared_with_static_runtimes=yes
10678 ;;
10679
10680 darwin* | rhapsody*)
1cf3d07d 10681
d58dead8
PG
10682
10683 archive_cmds_need_lc=no
10684 hardcode_direct=no
10685 hardcode_automatic=yes
10686 hardcode_shlibpath_var=unsupported
43e02a8a
RW
10687 if test "$lt_cv_ld_force_load" = "yes"; then
10688 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\"`'
10689 else
10690 whole_archive_flag_spec=''
10691 fi
d58dead8
PG
10692 link_all_deplibs=yes
10693 allow_undefined_flag="$_lt_dar_allow_undefined"
10694 case $cc_basename in
10695 ifort*) _lt_dar_can_shared=yes ;;
10696 *) _lt_dar_can_shared=$GCC ;;
10697 esac
10698 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 10699 output_verbose_link_cmd=func_echo_all
d58dead8
PG
10700 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10701 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10702 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}"
10703 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}"
10704
10705 else
10706 ld_shlibs=no
10707 fi
10708
1cf3d07d
SE
10709 ;;
10710
10711 dgux*)
10712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10713 hardcode_libdir_flag_spec='-L$libdir'
10714 hardcode_shlibpath_var=no
10715 ;;
10716
1cf3d07d
SE
10717 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10718 # support. Future versions do this automatically, but an explicit c++rt0.o
10719 # does not break anything, and helps significantly (at the cost of a little
10720 # extra space).
10721 freebsd2.2*)
10722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10723 hardcode_libdir_flag_spec='-R$libdir'
10724 hardcode_direct=yes
10725 hardcode_shlibpath_var=no
10726 ;;
10727
10728 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10729 freebsd2.*)
1cf3d07d
SE
10730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10731 hardcode_direct=yes
10732 hardcode_minus_L=yes
10733 hardcode_shlibpath_var=no
10734 ;;
10735
10736 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10737 freebsd* | dragonfly*)
10738 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10739 hardcode_libdir_flag_spec='-R$libdir'
10740 hardcode_direct=yes
10741 hardcode_shlibpath_var=no
10742 ;;
10743
10744 hpux9*)
10745 if test "$GCC" = yes; then
10746 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'
10747 else
10748 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'
10749 fi
10750 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10751 hardcode_libdir_separator=:
10752 hardcode_direct=yes
10753
10754 # hardcode_minus_L: Not really in the search PATH,
10755 # but as the default location of the library.
10756 hardcode_minus_L=yes
10757 export_dynamic_flag_spec='${wl}-E'
10758 ;;
10759
10760 hpux10*)
43e02a8a 10761 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
10762 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10763 else
10764 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10765 fi
10766 if test "$with_gnu_ld" = no; then
10767 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10768 hardcode_libdir_flag_spec_ld='+b $libdir'
10769 hardcode_libdir_separator=:
10770 hardcode_direct=yes
10771 hardcode_direct_absolute=yes
10772 export_dynamic_flag_spec='${wl}-E'
10773 # hardcode_minus_L: Not really in the search PATH,
10774 # but as the default location of the library.
10775 hardcode_minus_L=yes
10776 fi
10777 ;;
10778
10779 hpux11*)
43e02a8a 10780 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
10781 case $host_cpu in
10782 hppa*64*)
10783 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10784 ;;
10785 ia64*)
d58dead8 10786 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
10787 ;;
10788 *)
10789 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10790 ;;
10791 esac
10792 else
10793 case $host_cpu in
10794 hppa*64*)
10795 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10796 ;;
10797 ia64*)
10798 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10799 ;;
10800 *)
43e02a8a
RW
10801
10802 # Older versions of the 11.00 compiler do not understand -b yet
10803 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10805$as_echo_n "checking if $CC understands -b... " >&6; }
10806if test "${lt_cv_prog_compiler__b+set}" = set; then :
10807 $as_echo_n "(cached) " >&6
10808else
10809 lt_cv_prog_compiler__b=no
10810 save_LDFLAGS="$LDFLAGS"
10811 LDFLAGS="$LDFLAGS -b"
10812 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10813 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10814 # The linker can only warn and ignore the option if not recognized
10815 # So say no if there are warnings
10816 if test -s conftest.err; then
10817 # Append any errors to the config.log.
10818 cat conftest.err 1>&5
10819 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10821 if diff conftest.exp conftest.er2 >/dev/null; then
10822 lt_cv_prog_compiler__b=yes
10823 fi
10824 else
10825 lt_cv_prog_compiler__b=yes
10826 fi
10827 fi
10828 $RM -r conftest*
10829 LDFLAGS="$save_LDFLAGS"
10830
10831fi
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10833$as_echo "$lt_cv_prog_compiler__b" >&6; }
10834
10835if test x"$lt_cv_prog_compiler__b" = xyes; then
10836 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10837else
10838 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10839fi
10840
1cf3d07d
SE
10841 ;;
10842 esac
10843 fi
10844 if test "$with_gnu_ld" = no; then
10845 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10846 hardcode_libdir_separator=:
10847
10848 case $host_cpu in
10849 hppa*64*|ia64*)
10850 hardcode_direct=no
10851 hardcode_shlibpath_var=no
10852 ;;
10853 *)
10854 hardcode_direct=yes
10855 hardcode_direct_absolute=yes
10856 export_dynamic_flag_spec='${wl}-E'
10857
10858 # hardcode_minus_L: Not really in the search PATH,
10859 # but as the default location of the library.
10860 hardcode_minus_L=yes
10861 ;;
10862 esac
10863 fi
10864 ;;
10865
10866 irix5* | irix6* | nonstopux*)
10867 if test "$GCC" = yes; then
43e02a8a 10868 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
10869 # Try to use the -exported_symbol ld option, if it does not
10870 # work, assume that -exports_file does not work either and
10871 # implicitly export all symbols.
10872 save_LDFLAGS="$LDFLAGS"
10873 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10874 if test x$gcc_no_link = xyes; then
5213506e 10875 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10876fi
5213506e
RW
10877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878/* end confdefs.h. */
1cf3d07d
SE
10879int foo(void) {}
10880_ACEOF
5213506e 10881if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 10882 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 10883
1cf3d07d 10884fi
5213506e
RW
10885rm -f core conftest.err conftest.$ac_objext \
10886 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10887 LDFLAGS="$save_LDFLAGS"
10888 else
43e02a8a
RW
10889 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'
10890 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
10891 fi
10892 archive_cmds_need_lc='no'
10893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10894 hardcode_libdir_separator=:
10895 inherit_rpath=yes
10896 link_all_deplibs=yes
10897 ;;
10898
10899 netbsd*)
10900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10902 else
10903 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10904 fi
10905 hardcode_libdir_flag_spec='-R$libdir'
10906 hardcode_direct=yes
10907 hardcode_shlibpath_var=no
10908 ;;
10909
10910 newsos6)
10911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912 hardcode_direct=yes
10913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10914 hardcode_libdir_separator=:
10915 hardcode_shlibpath_var=no
10916 ;;
10917
10918 *nto* | *qnx*)
10919 ;;
10920
10921 openbsd*)
d58dead8
PG
10922 if test -f /usr/libexec/ld.so; then
10923 hardcode_direct=yes
10924 hardcode_shlibpath_var=no
10925 hardcode_direct_absolute=yes
10926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 10927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 10928 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 10929 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
d58dead8
PG
10930 export_dynamic_flag_spec='${wl}-E'
10931 else
10932 case $host_os in
10933 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10935 hardcode_libdir_flag_spec='-R$libdir'
10936 ;;
10937 *)
10938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10939 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10940 ;;
10941 esac
10942 fi
10943 else
10944 ld_shlibs=no
1cf3d07d
SE
10945 fi
10946 ;;
10947
10948 os2*)
10949 hardcode_libdir_flag_spec='-L$libdir'
10950 hardcode_minus_L=yes
10951 allow_undefined_flag=unsupported
43e02a8a 10952 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
10953 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10954 ;;
10955
10956 osf3*)
10957 if test "$GCC" = yes; then
10958 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10959 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
10960 else
10961 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10962 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
10963 fi
10964 archive_cmds_need_lc='no'
10965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10966 hardcode_libdir_separator=:
10967 ;;
10968
10969 osf4* | osf5*) # as osf3* with the addition of -msym flag
10970 if test "$GCC" = yes; then
10971 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10972 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
10973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10974 else
10975 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10976 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 10977 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 10978 $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
10979
10980 # Both c and cxx compiler support -rpath directly
10981 hardcode_libdir_flag_spec='-rpath $libdir'
10982 fi
10983 archive_cmds_need_lc='no'
10984 hardcode_libdir_separator=:
10985 ;;
10986
10987 solaris*)
10988 no_undefined_flag=' -z defs'
10989 if test "$GCC" = yes; then
10990 wlarc='${wl}'
10991 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10992 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10993 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10994 else
10995 case `$CC -V 2>&1` in
10996 *"Compilers 5.0"*)
10997 wlarc=''
10998 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11000 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11001 ;;
11002 *)
11003 wlarc='${wl}'
11004 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11005 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11006 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11007 ;;
11008 esac
11009 fi
11010 hardcode_libdir_flag_spec='-R$libdir'
11011 hardcode_shlibpath_var=no
11012 case $host_os in
11013 solaris2.[0-5] | solaris2.[0-5].*) ;;
11014 *)
11015 # The compiler driver will combine and reorder linker options,
11016 # but understands `-z linker_flag'. GCC discards it without `$wl',
11017 # but is careful enough not to reorder.
11018 # Supported since Solaris 2.6 (maybe 2.5.1?)
11019 if test "$GCC" = yes; then
11020 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11021 else
11022 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11023 fi
11024 ;;
11025 esac
11026 link_all_deplibs=yes
11027 ;;
11028
11029 sunos4*)
11030 if test "x$host_vendor" = xsequent; then
11031 # Use $CC to link under sequent, because it throws in some extra .o
11032 # files that make .init and .fini sections work.
11033 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11034 else
11035 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11036 fi
11037 hardcode_libdir_flag_spec='-L$libdir'
11038 hardcode_direct=yes
11039 hardcode_minus_L=yes
11040 hardcode_shlibpath_var=no
11041 ;;
11042
11043 sysv4)
11044 case $host_vendor in
11045 sni)
11046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11047 hardcode_direct=yes # is this really true???
11048 ;;
11049 siemens)
11050 ## LD is ld it makes a PLAMLIB
11051 ## CC just makes a GrossModule.
11052 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11053 reload_cmds='$CC -r -o $output$reload_objs'
11054 hardcode_direct=no
11055 ;;
11056 motorola)
11057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11058 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11059 ;;
11060 esac
11061 runpath_var='LD_RUN_PATH'
11062 hardcode_shlibpath_var=no
11063 ;;
11064
11065 sysv4.3*)
11066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11067 hardcode_shlibpath_var=no
11068 export_dynamic_flag_spec='-Bexport'
11069 ;;
11070
11071 sysv4*MP*)
11072 if test -d /usr/nec; then
11073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11074 hardcode_shlibpath_var=no
11075 runpath_var=LD_RUN_PATH
11076 hardcode_runpath_var=yes
11077 ld_shlibs=yes
11078 fi
11079 ;;
11080
11081 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11082 no_undefined_flag='${wl}-z,text'
11083 archive_cmds_need_lc=no
11084 hardcode_shlibpath_var=no
11085 runpath_var='LD_RUN_PATH'
11086
11087 if test "$GCC" = yes; then
11088 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11089 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11090 else
11091 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11092 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11093 fi
11094 ;;
11095
11096 sysv5* | sco3.2v5* | sco5v6*)
11097 # Note: We can NOT use -z defs as we might desire, because we do not
11098 # link with -lc, and that would cause any symbols used from libc to
11099 # always be unresolved, which means just about no library would
11100 # ever link correctly. If we're not using GNU ld we use -z text
11101 # though, which does catch some bad symbols but isn't as heavy-handed
11102 # as -z defs.
11103 no_undefined_flag='${wl}-z,text'
11104 allow_undefined_flag='${wl}-z,nodefs'
11105 archive_cmds_need_lc=no
11106 hardcode_shlibpath_var=no
11107 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11108 hardcode_libdir_separator=':'
11109 link_all_deplibs=yes
11110 export_dynamic_flag_spec='${wl}-Bexport'
11111 runpath_var='LD_RUN_PATH'
11112
11113 if test "$GCC" = yes; then
11114 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11115 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11116 else
11117 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11118 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11119 fi
11120 ;;
11121
11122 uts4*)
11123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11124 hardcode_libdir_flag_spec='-L$libdir'
11125 hardcode_shlibpath_var=no
11126 ;;
11127
11128 *)
11129 ld_shlibs=no
11130 ;;
11131 esac
11132
11133 if test x$host_vendor = xsni; then
11134 case $host in
11135 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11136 export_dynamic_flag_spec='${wl}-Blargedynsym'
11137 ;;
11138 esac
11139 fi
11140 fi
11141
5213506e
RW
11142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11143$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
11144test "$ld_shlibs" = no && can_build_shared=no
11145
11146with_gnu_ld=$with_gnu_ld
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162#
11163# Do we need to explicitly link libc?
11164#
11165case "x$archive_cmds_need_lc" in
11166x|xyes)
11167 # Assume -lc should be added
11168 archive_cmds_need_lc=yes
11169
11170 if test "$enable_shared" = yes && test "$GCC" = yes; then
11171 case $archive_cmds in
11172 *'~'*)
11173 # FIXME: we may have to deal with multi-command sequences.
11174 ;;
11175 '$CC '*)
11176 # Test whether the compiler implicitly links with -lc since on some
11177 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11178 # to ld, don't add -lc before -lgcc.
5213506e
RW
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11180$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11181if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11182 $as_echo_n "(cached) " >&6
baafc534
RW
11183else
11184 $RM conftest*
11185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 11186
5213506e 11187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
11188 (eval $ac_compile) 2>&5
11189 ac_status=$?
5213506e
RW
11190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11191 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
11192 soname=conftest
11193 lib=conftest
11194 libobjs=conftest.$ac_objext
11195 deplibs=
11196 wl=$lt_prog_compiler_wl
11197 pic_flag=$lt_prog_compiler_pic
11198 compiler_flags=-v
11199 linker_flags=-v
11200 verstring=
11201 output_objdir=.
11202 libname=conftest
11203 lt_save_allow_undefined_flag=$allow_undefined_flag
11204 allow_undefined_flag=
5213506e 11205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
11206 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11207 ac_status=$?
5213506e
RW
11208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11209 test $ac_status = 0; }
baafc534
RW
11210 then
11211 lt_cv_archive_cmds_need_lc=no
11212 else
11213 lt_cv_archive_cmds_need_lc=yes
11214 fi
11215 allow_undefined_flag=$lt_save_allow_undefined_flag
11216 else
11217 cat conftest.err 1>&5
11218 fi
11219 $RM conftest*
11220
11221fi
5213506e
RW
11222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11223$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 11224 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
11225 ;;
11226 esac
11227 fi
11228 ;;
11229esac
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
5213506e
RW
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11388$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8
PG
11389
11390if test "$GCC" = yes; then
1cf3d07d
SE
11391 case $host_os in
11392 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11393 *) lt_awk_arg="/^libraries:/" ;;
11394 esac
43e02a8a
RW
11395 case $host_os in
11396 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11397 *) lt_sed_strip_eq="s,=/,/,g" ;;
11398 esac
11399 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11400 case $lt_search_path_spec in
11401 *\;*)
1cf3d07d
SE
11402 # if the path contains ";" then we assume it to be the separator
11403 # otherwise default to the standard path separator (i.e. ":") - it is
11404 # assumed that no part of a normal pathname contains ";" but that should
11405 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
11406 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11407 ;;
11408 *)
11409 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11410 ;;
11411 esac
1cf3d07d
SE
11412 # Ok, now we have the path, separated by spaces, we can step through it
11413 # and add multilib dir if necessary.
11414 lt_tmp_lt_search_path_spec=
11415 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11416 for lt_sys_path in $lt_search_path_spec; do
11417 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11418 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11419 else
11420 test -d "$lt_sys_path" && \
11421 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11422 fi
11423 done
43e02a8a 11424 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
11425BEGIN {RS=" "; FS="/|\n";} {
11426 lt_foo="";
11427 lt_count=0;
11428 for (lt_i = NF; lt_i > 0; lt_i--) {
11429 if ($lt_i != "" && $lt_i != ".") {
11430 if ($lt_i == "..") {
11431 lt_count++;
11432 } else {
11433 if (lt_count == 0) {
11434 lt_foo="/" $lt_i lt_foo;
11435 } else {
11436 lt_count--;
11437 }
11438 }
11439 }
11440 }
11441 if (lt_foo != "") { lt_freq[lt_foo]++; }
11442 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11443}'`
43e02a8a
RW
11444 # AWK program above erroneously prepends '/' to C:/dos/paths
11445 # for these hosts.
11446 case $host_os in
11447 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11448 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11449 esac
11450 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
11451else
11452 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11453fi
11454library_names_spec=
11455libname_spec='lib$name'
11456soname_spec=
11457shrext_cmds=".so"
11458postinstall_cmds=
11459postuninstall_cmds=
11460finish_cmds=
11461finish_eval=
11462shlibpath_var=
11463shlibpath_overrides_runpath=unknown
11464version_type=none
11465dynamic_linker="$host_os ld.so"
11466sys_lib_dlsearch_path_spec="/lib /usr/lib"
11467need_lib_prefix=unknown
11468hardcode_into_libs=no
11469
11470# when you set need_version to no, make sure it does not cause -set_version
11471# flags to be left without arguments
11472need_version=unknown
11473
11474case $host_os in
11475aix3*)
11476 version_type=linux
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11478 shlibpath_var=LIBPATH
11479
11480 # AIX 3 has no versioning support, so we append a major version to the name.
11481 soname_spec='${libname}${release}${shared_ext}$major'
11482 ;;
11483
4f6bebc3 11484aix[4-9]*)
1cf3d07d
SE
11485 version_type=linux
11486 need_lib_prefix=no
11487 need_version=no
11488 hardcode_into_libs=yes
11489 if test "$host_cpu" = ia64; then
11490 # AIX 5 supports IA64
11491 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 else
11494 # With GCC up to 2.95.x, collect2 would create an import file
11495 # for dependence libraries. The import file would start with
11496 # the line `#! .'. This would cause the generated library to
11497 # depend on `.', always an invalid library. This was fixed in
11498 # development snapshots of GCC prior to 3.0.
11499 case $host_os in
11500 aix4 | aix4.[01] | aix4.[01].*)
11501 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11502 echo ' yes '
11503 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11504 :
11505 else
11506 can_build_shared=no
11507 fi
11508 ;;
11509 esac
11510 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11511 # soname into executable. Probably we can add versioning support to
11512 # collect2, so additional links can be useful in future.
11513 if test "$aix_use_runtimelinking" = yes; then
11514 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11515 # instead of lib<name>.a to let people know that these are not
11516 # typical AIX shared libraries.
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518 else
11519 # We preserve .a as extension for shared libraries through AIX4.2
11520 # and later when we are not doing run time linking.
11521 library_names_spec='${libname}${release}.a $libname.a'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 fi
11524 shlibpath_var=LIBPATH
11525 fi
11526 ;;
11527
11528amigaos*)
d58dead8
PG
11529 case $host_cpu in
11530 powerpc)
11531 # Since July 2007 AmigaOS4 officially supports .so libraries.
11532 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 ;;
11535 m68k)
1cf3d07d
SE
11536 library_names_spec='$libname.ixlibrary $libname.a'
11537 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 11538 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
11539 ;;
11540 esac
1cf3d07d
SE
11541 ;;
11542
11543beos*)
11544 library_names_spec='${libname}${shared_ext}'
11545 dynamic_linker="$host_os ld.so"
11546 shlibpath_var=LIBRARY_PATH
11547 ;;
11548
11549bsdi[45]*)
11550 version_type=linux
11551 need_version=no
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11557 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11558 # the default ld.so.conf also contains /usr/contrib/lib and
11559 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11560 # libtool to hard-code these into programs
11561 ;;
11562
d58dead8 11563cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11564 version_type=windows
11565 shrext_cmds=".dll"
11566 need_version=no
11567 need_lib_prefix=no
11568
d58dead8
PG
11569 case $GCC,$host_os in
11570 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
11571 library_names_spec='$libname.dll.a'
11572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11573 postinstall_cmds='base_file=`basename \${file}`~
11574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11575 dldir=$destdir/`dirname \$dlpath`~
11576 test -d \$dldir || mkdir -p \$dldir~
11577 $install_prog $dir/$dlname \$dldir/$dlname~
11578 chmod a+x \$dldir/$dlname~
11579 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11580 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11581 fi'
11582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11583 dlpath=$dir/\$dldll~
11584 $RM \$dlpath'
11585 shlibpath_overrides_runpath=yes
11586
11587 case $host_os in
11588 cygwin*)
11589 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11590 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
11591
11592 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 11593 ;;
d58dead8 11594 mingw* | cegcc*)
1cf3d07d
SE
11595 # MinGW DLLs use traditional 'lib' prefix
11596 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
11597 ;;
11598 pw32*)
11599 # pw32 DLLs use 'pw' prefix rather than 'lib'
11600 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11601 ;;
11602 esac
11603 ;;
11604
11605 *)
11606 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11607 ;;
11608 esac
11609 dynamic_linker='Win32 ld.exe'
11610 # FIXME: first we should search . and the directory the executable is in
11611 shlibpath_var=PATH
11612 ;;
11613
11614darwin* | rhapsody*)
11615 dynamic_linker="$host_os dyld"
11616 version_type=darwin
11617 need_lib_prefix=no
11618 need_version=no
11619 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11620 soname_spec='${libname}${release}${major}$shared_ext'
11621 shlibpath_overrides_runpath=yes
11622 shlibpath_var=DYLD_LIBRARY_PATH
11623 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11624
11625 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11626 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11627 ;;
11628
11629dgux*)
11630 version_type=linux
11631 need_lib_prefix=no
11632 need_version=no
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 shlibpath_var=LD_LIBRARY_PATH
11636 ;;
11637
1cf3d07d
SE
11638freebsd* | dragonfly*)
11639 # DragonFly does not have aout. When/if they implement a new
11640 # versioning mechanism, adjust this.
11641 if test -x /usr/bin/objformat; then
11642 objformat=`/usr/bin/objformat`
11643 else
11644 case $host_os in
c6084f68 11645 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
11646 *) objformat=elf ;;
11647 esac
11648 fi
11649 version_type=freebsd-$objformat
11650 case $version_type in
11651 freebsd-elf*)
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11653 need_version=no
11654 need_lib_prefix=no
11655 ;;
11656 freebsd-*)
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11658 need_version=yes
11659 ;;
11660 esac
11661 shlibpath_var=LD_LIBRARY_PATH
11662 case $host_os in
c6084f68 11663 freebsd2.*)
1cf3d07d
SE
11664 shlibpath_overrides_runpath=yes
11665 ;;
11666 freebsd3.[01]* | freebsdelf3.[01]*)
11667 shlibpath_overrides_runpath=yes
11668 hardcode_into_libs=yes
11669 ;;
11670 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11671 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11672 shlibpath_overrides_runpath=no
11673 hardcode_into_libs=yes
11674 ;;
11675 *) # from 4.6 on, and DragonFly
11676 shlibpath_overrides_runpath=yes
11677 hardcode_into_libs=yes
11678 ;;
11679 esac
11680 ;;
11681
11682gnu*)
11683 version_type=linux
11684 need_lib_prefix=no
11685 need_version=no
11686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11687 soname_spec='${libname}${release}${shared_ext}$major'
11688 shlibpath_var=LD_LIBRARY_PATH
11689 hardcode_into_libs=yes
11690 ;;
11691
43e02a8a
RW
11692haiku*)
11693 version_type=linux
11694 need_lib_prefix=no
11695 need_version=no
11696 dynamic_linker="$host_os runtime_loader"
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11698 soname_spec='${libname}${release}${shared_ext}$major'
11699 shlibpath_var=LIBRARY_PATH
11700 shlibpath_overrides_runpath=yes
11701 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11702 hardcode_into_libs=yes
11703 ;;
11704
1cf3d07d
SE
11705hpux9* | hpux10* | hpux11*)
11706 # Give a soname corresponding to the major version so that dld.sl refuses to
11707 # link against other versions.
11708 version_type=sunos
11709 need_lib_prefix=no
11710 need_version=no
11711 case $host_cpu in
11712 ia64*)
11713 shrext_cmds='.so'
11714 hardcode_into_libs=yes
11715 dynamic_linker="$host_os dld.so"
11716 shlibpath_var=LD_LIBRARY_PATH
11717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11719 soname_spec='${libname}${release}${shared_ext}$major'
11720 if test "X$HPUX_IA64_MODE" = X32; then
11721 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11722 else
11723 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11724 fi
11725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11726 ;;
11727 hppa*64*)
11728 shrext_cmds='.sl'
11729 hardcode_into_libs=yes
11730 dynamic_linker="$host_os dld.sl"
11731 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11734 soname_spec='${libname}${release}${shared_ext}$major'
11735 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11737 ;;
11738 *)
11739 shrext_cmds='.sl'
11740 dynamic_linker="$host_os dld.sl"
11741 shlibpath_var=SHLIB_PATH
11742 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11744 soname_spec='${libname}${release}${shared_ext}$major'
11745 ;;
11746 esac
43e02a8a 11747 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 11748 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
11749 # or fails outright, so override atomically:
11750 install_override_mode=555
1cf3d07d
SE
11751 ;;
11752
11753interix[3-9]*)
11754 version_type=linux
11755 need_lib_prefix=no
11756 need_version=no
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11758 soname_spec='${libname}${release}${shared_ext}$major'
11759 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=no
11762 hardcode_into_libs=yes
11763 ;;
11764
11765irix5* | irix6* | nonstopux*)
11766 case $host_os in
11767 nonstopux*) version_type=nonstopux ;;
11768 *)
11769 if test "$lt_cv_prog_gnu_ld" = yes; then
11770 version_type=linux
11771 else
11772 version_type=irix
11773 fi ;;
11774 esac
11775 need_lib_prefix=no
11776 need_version=no
11777 soname_spec='${libname}${release}${shared_ext}$major'
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11779 case $host_os in
11780 irix5* | nonstopux*)
11781 libsuff= shlibsuff=
11782 ;;
11783 *)
11784 case $LD in # libtool.m4 will add one of these switches to LD
11785 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11786 libsuff= shlibsuff= libmagic=32-bit;;
11787 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11788 libsuff=32 shlibsuff=N32 libmagic=N32;;
11789 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11790 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11791 *) libsuff= shlibsuff= libmagic=never-match;;
11792 esac
11793 ;;
11794 esac
11795 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11796 shlibpath_overrides_runpath=no
11797 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11798 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11799 hardcode_into_libs=yes
11800 ;;
11801
11802# No shared lib support for Linux oldld, aout, or coff.
11803linux*oldld* | linux*aout* | linux*coff*)
11804 dynamic_linker=no
11805 ;;
11806
11807# This must be Linux ELF.
7a9d3fe8 11808linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
11809 version_type=linux
11810 need_lib_prefix=no
11811 need_version=no
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813 soname_spec='${libname}${release}${shared_ext}$major'
11814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 shlibpath_overrides_runpath=no
baafc534 11817
1cf3d07d 11818 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
11819 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11820 $as_echo_n "(cached) " >&6
baafc534
RW
11821else
11822 lt_cv_shlibpath_overrides_runpath=no
11823 save_LDFLAGS=$LDFLAGS
11824 save_libdir=$libdir
11825 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11826 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11827 if test x$gcc_no_link = xyes; then
5213506e 11828 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11829fi
5213506e 11830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11831/* end confdefs.h. */
11832
11833int
11834main ()
11835{
11836
11837 ;
11838 return 0;
11839}
11840_ACEOF
5213506e
RW
11841if ac_fn_c_try_link "$LINENO"; then :
11842 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 11843 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 11844fi
1cf3d07d 11845fi
5213506e
RW
11846rm -f core conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
11848 LDFLAGS=$save_LDFLAGS
11849 libdir=$save_libdir
11850
11851fi
11852
11853 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
11854
11855 # This implies no fast_install, which is unacceptable.
11856 # Some rework will be needed to allow for fast_install
11857 # before this can be enabled.
11858 hardcode_into_libs=yes
11859
11860 # Append ld.so.conf contents to the search path
11861 if test -f /etc/ld.so.conf; then
43e02a8a 11862 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
11863 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11864 fi
11865
11866 # We used to test for /lib/ld.so.1 and disable shared libraries on
11867 # powerpc, because MkLinux only supported shared libraries with the
11868 # GNU dynamic linker. Since this was broken with cross compilers,
11869 # most powerpc-linux boxes support dynamic linking these days and
11870 # people can always --disable-shared, the test was removed, and we
11871 # assume the GNU/Linux dynamic linker is in use.
11872 dynamic_linker='GNU/Linux ld.so'
11873 ;;
11874
11875netbsd*)
11876 version_type=sunos
11877 need_lib_prefix=no
11878 need_version=no
11879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11882 dynamic_linker='NetBSD (a.out) ld.so'
11883 else
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11885 soname_spec='${libname}${release}${shared_ext}$major'
11886 dynamic_linker='NetBSD ld.elf_so'
11887 fi
11888 shlibpath_var=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath=yes
11890 hardcode_into_libs=yes
11891 ;;
11892
11893newsos6)
11894 version_type=linux
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 shlibpath_overrides_runpath=yes
11898 ;;
11899
11900*nto* | *qnx*)
11901 version_type=qnx
11902 need_lib_prefix=no
11903 need_version=no
11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11905 soname_spec='${libname}${release}${shared_ext}$major'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 shlibpath_overrides_runpath=no
11908 hardcode_into_libs=yes
11909 dynamic_linker='ldqnx.so'
11910 ;;
11911
11912openbsd*)
11913 version_type=sunos
11914 sys_lib_dlsearch_path_spec="/usr/lib"
11915 need_lib_prefix=no
11916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11917 case $host_os in
11918 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11919 *) need_version=no ;;
11920 esac
11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11923 shlibpath_var=LD_LIBRARY_PATH
11924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11925 case $host_os in
11926 openbsd2.[89] | openbsd2.[89].*)
11927 shlibpath_overrides_runpath=no
11928 ;;
11929 *)
11930 shlibpath_overrides_runpath=yes
11931 ;;
11932 esac
11933 else
11934 shlibpath_overrides_runpath=yes
11935 fi
11936 ;;
11937
11938os2*)
11939 libname_spec='$name'
11940 shrext_cmds=".dll"
11941 need_lib_prefix=no
11942 library_names_spec='$libname${shared_ext} $libname.a'
11943 dynamic_linker='OS/2 ld.exe'
11944 shlibpath_var=LIBPATH
11945 ;;
11946
11947osf3* | osf4* | osf5*)
11948 version_type=osf
11949 need_lib_prefix=no
11950 need_version=no
11951 soname_spec='${libname}${release}${shared_ext}$major'
11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11953 shlibpath_var=LD_LIBRARY_PATH
11954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11956 ;;
11957
11958rdos*)
11959 dynamic_linker=no
11960 ;;
11961
11962solaris*)
11963 version_type=linux
11964 need_lib_prefix=no
11965 need_version=no
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967 soname_spec='${libname}${release}${shared_ext}$major'
11968 shlibpath_var=LD_LIBRARY_PATH
11969 shlibpath_overrides_runpath=yes
11970 hardcode_into_libs=yes
11971 # ldd complains unless libraries are executable
11972 postinstall_cmds='chmod +x $lib'
11973 ;;
11974
11975sunos4*)
11976 version_type=sunos
11977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11979 shlibpath_var=LD_LIBRARY_PATH
11980 shlibpath_overrides_runpath=yes
11981 if test "$with_gnu_ld" = yes; then
11982 need_lib_prefix=no
11983 fi
11984 need_version=yes
11985 ;;
11986
11987sysv4 | sysv4.3*)
11988 version_type=linux
11989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11990 soname_spec='${libname}${release}${shared_ext}$major'
11991 shlibpath_var=LD_LIBRARY_PATH
11992 case $host_vendor in
11993 sni)
11994 shlibpath_overrides_runpath=no
11995 need_lib_prefix=no
11996 runpath_var=LD_RUN_PATH
11997 ;;
11998 siemens)
11999 need_lib_prefix=no
12000 ;;
12001 motorola)
12002 need_lib_prefix=no
12003 need_version=no
12004 shlibpath_overrides_runpath=no
12005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12006 ;;
12007 esac
12008 ;;
12009
12010sysv4*MP*)
12011 if test -d /usr/nec ;then
12012 version_type=linux
12013 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12014 soname_spec='$libname${shared_ext}.$major'
12015 shlibpath_var=LD_LIBRARY_PATH
12016 fi
12017 ;;
12018
12019sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12020 version_type=freebsd-elf
12021 need_lib_prefix=no
12022 need_version=no
12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12024 soname_spec='${libname}${release}${shared_ext}$major'
12025 shlibpath_var=LD_LIBRARY_PATH
12026 shlibpath_overrides_runpath=yes
12027 hardcode_into_libs=yes
12028 if test "$with_gnu_ld" = yes; then
12029 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12030 else
12031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12032 case $host_os in
12033 sco3.2v5*)
12034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12035 ;;
12036 esac
12037 fi
12038 sys_lib_dlsearch_path_spec='/usr/lib'
12039 ;;
12040
12041tpf*)
12042 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12043 version_type=linux
12044 need_lib_prefix=no
12045 need_version=no
d58dead8 12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
12047 shlibpath_var=LD_LIBRARY_PATH
12048 shlibpath_overrides_runpath=no
12049 hardcode_into_libs=yes
12050 ;;
12051
12052uts4*)
12053 version_type=linux
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055 soname_spec='${libname}${release}${shared_ext}$major'
12056 shlibpath_var=LD_LIBRARY_PATH
12057 ;;
12058
12059*)
12060 dynamic_linker=no
12061 ;;
12062esac
5213506e
RW
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12064$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
12065test "$dynamic_linker" = no && can_build_shared=no
12066
12067variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12068if test "$GCC" = yes; then
12069 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12070fi
12071
d58dead8
PG
12072if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12073 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12074fi
12075if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12076 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12077fi
12078
1cf3d07d
SE
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
43e02a8a
RW
12159
12160
12161
12162
12163
1cf3d07d
SE
12164
12165
12166
12167
12168
12169
5213506e
RW
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12171$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
12172hardcode_action=
12173if test -n "$hardcode_libdir_flag_spec" ||
12174 test -n "$runpath_var" ||
12175 test "X$hardcode_automatic" = "Xyes" ; then
12176
12177 # We can hardcode non-existent directories.
12178 if test "$hardcode_direct" != no &&
12179 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12180 # have to relink, otherwise we might link with an installed library
12181 # when we should be linking with a yet-to-be-installed one
12182 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12183 test "$hardcode_minus_L" != no; then
12184 # Linking always hardcodes the temporary library directory.
12185 hardcode_action=relink
12186 else
12187 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12188 hardcode_action=immediate
12189 fi
12190else
12191 # We cannot hardcode anything, or else we can only hardcode existing
12192 # directories.
12193 hardcode_action=unsupported
12194fi
5213506e
RW
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12196$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
12197
12198if test "$hardcode_action" = relink ||
12199 test "$inherit_rpath" = yes; then
12200 # Fast installation is not supported
12201 enable_fast_install=no
12202elif test "$shlibpath_overrides_runpath" = yes ||
12203 test "$enable_shared" = no; then
12204 # Fast installation is not necessary
12205 enable_fast_install=needless
12206fi
12207
12208
12209
12210
12211
12212
12213 if test "x$enable_dlopen" != xyes; then
12214 enable_dlopen=unknown
12215 enable_dlopen_self=unknown
12216 enable_dlopen_self_static=unknown
12217else
12218 lt_cv_dlopen=no
12219 lt_cv_dlopen_libs=
12220
12221 case $host_os in
12222 beos*)
12223 lt_cv_dlopen="load_add_on"
12224 lt_cv_dlopen_libs=
12225 lt_cv_dlopen_self=yes
12226 ;;
12227
d58dead8 12228 mingw* | pw32* | cegcc*)
1cf3d07d
SE
12229 lt_cv_dlopen="LoadLibrary"
12230 lt_cv_dlopen_libs=
12231 ;;
12232
12233 cygwin*)
12234 lt_cv_dlopen="dlopen"
12235 lt_cv_dlopen_libs=
12236 ;;
12237
12238 darwin*)
12239 # if libdl is installed we need to link against it
5213506e
RW
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12241$as_echo_n "checking for dlopen in -ldl... " >&6; }
12242if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12244else
12245 ac_check_lib_save_LIBS=$LIBS
12246LIBS="-ldl $LIBS"
12247if test x$gcc_no_link = xyes; then
5213506e 12248 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12249fi
5213506e 12250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12251/* end confdefs.h. */
12252
5213506e
RW
12253/* Override any GCC internal prototype to avoid an error.
12254 Use char because int might match the return type of a GCC
12255 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12256#ifdef __cplusplus
12257extern "C"
12258#endif
1cf3d07d
SE
12259char dlopen ();
12260int
12261main ()
12262{
5213506e 12263return dlopen ();
1cf3d07d
SE
12264 ;
12265 return 0;
12266}
12267_ACEOF
5213506e 12268if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12269 ac_cv_lib_dl_dlopen=yes
12270else
5213506e 12271 ac_cv_lib_dl_dlopen=no
1cf3d07d 12272fi
5213506e
RW
12273rm -f core conftest.err conftest.$ac_objext \
12274 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12275LIBS=$ac_check_lib_save_LIBS
12276fi
5213506e
RW
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12278$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12279if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
12280 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12281else
12282
12283 lt_cv_dlopen="dyld"
12284 lt_cv_dlopen_libs=
12285 lt_cv_dlopen_self=yes
12286
12287fi
12288
12289 ;;
12290
12291 *)
5213506e
RW
12292 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12293if test "x$ac_cv_func_shl_load" = x""yes; then :
1cf3d07d
SE
12294 lt_cv_dlopen="shl_load"
12295else
5213506e
RW
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12297$as_echo_n "checking for shl_load in -ldld... " >&6; }
12298if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12299 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12300else
12301 ac_check_lib_save_LIBS=$LIBS
12302LIBS="-ldld $LIBS"
12303if test x$gcc_no_link = xyes; then
5213506e 12304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12305fi
5213506e 12306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12307/* end confdefs.h. */
12308
5213506e
RW
12309/* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12312#ifdef __cplusplus
12313extern "C"
12314#endif
1cf3d07d
SE
12315char shl_load ();
12316int
12317main ()
12318{
5213506e 12319return shl_load ();
1cf3d07d
SE
12320 ;
12321 return 0;
12322}
12323_ACEOF
5213506e 12324if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12325 ac_cv_lib_dld_shl_load=yes
12326else
5213506e 12327 ac_cv_lib_dld_shl_load=no
1cf3d07d 12328fi
5213506e
RW
12329rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12331LIBS=$ac_check_lib_save_LIBS
12332fi
5213506e
RW
12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12334$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12335if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
d58dead8 12336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 12337else
5213506e
RW
12338 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12339if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
12340 lt_cv_dlopen="dlopen"
12341else
5213506e
RW
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12343$as_echo_n "checking for dlopen in -ldl... " >&6; }
12344if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12345 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12346else
12347 ac_check_lib_save_LIBS=$LIBS
12348LIBS="-ldl $LIBS"
12349if test x$gcc_no_link = xyes; then
5213506e 12350 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12351fi
5213506e 12352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12353/* end confdefs.h. */
12354
5213506e
RW
12355/* Override any GCC internal prototype to avoid an error.
12356 Use char because int might match the return type of a GCC
12357 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12358#ifdef __cplusplus
12359extern "C"
12360#endif
1cf3d07d
SE
12361char dlopen ();
12362int
12363main ()
12364{
5213506e 12365return dlopen ();
1cf3d07d
SE
12366 ;
12367 return 0;
12368}
12369_ACEOF
5213506e 12370if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12371 ac_cv_lib_dl_dlopen=yes
12372else
5213506e 12373 ac_cv_lib_dl_dlopen=no
1cf3d07d 12374fi
5213506e
RW
12375rm -f core conftest.err conftest.$ac_objext \
12376 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12377LIBS=$ac_check_lib_save_LIBS
12378fi
5213506e
RW
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12380$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12381if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
12382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12383else
5213506e
RW
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12385$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12386if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12387 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12388else
12389 ac_check_lib_save_LIBS=$LIBS
12390LIBS="-lsvld $LIBS"
12391if test x$gcc_no_link = xyes; then
5213506e 12392 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12393fi
5213506e 12394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12395/* end confdefs.h. */
12396
5213506e
RW
12397/* Override any GCC internal prototype to avoid an error.
12398 Use char because int might match the return type of a GCC
12399 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12400#ifdef __cplusplus
12401extern "C"
12402#endif
1cf3d07d
SE
12403char dlopen ();
12404int
12405main ()
12406{
5213506e 12407return dlopen ();
1cf3d07d
SE
12408 ;
12409 return 0;
12410}
12411_ACEOF
5213506e 12412if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12413 ac_cv_lib_svld_dlopen=yes
12414else
5213506e 12415 ac_cv_lib_svld_dlopen=no
1cf3d07d 12416fi
5213506e
RW
12417rm -f core conftest.err conftest.$ac_objext \
12418 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12419LIBS=$ac_check_lib_save_LIBS
12420fi
5213506e
RW
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12422$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12423if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d
SE
12424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12425else
5213506e
RW
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12427$as_echo_n "checking for dld_link in -ldld... " >&6; }
12428if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12430else
12431 ac_check_lib_save_LIBS=$LIBS
12432LIBS="-ldld $LIBS"
12433if test x$gcc_no_link = xyes; then
5213506e 12434 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12435fi
5213506e 12436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12437/* end confdefs.h. */
12438
5213506e
RW
12439/* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12442#ifdef __cplusplus
12443extern "C"
12444#endif
1cf3d07d
SE
12445char dld_link ();
12446int
12447main ()
12448{
5213506e 12449return dld_link ();
1cf3d07d
SE
12450 ;
12451 return 0;
12452}
12453_ACEOF
5213506e 12454if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12455 ac_cv_lib_dld_dld_link=yes
12456else
5213506e 12457 ac_cv_lib_dld_dld_link=no
1cf3d07d 12458fi
5213506e
RW
12459rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12461LIBS=$ac_check_lib_save_LIBS
12462fi
5213506e
RW
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12464$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12465if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
d58dead8 12466 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
12467fi
12468
12469
12470fi
12471
12472
12473fi
12474
12475
12476fi
12477
12478
12479fi
12480
12481
12482fi
12483
12484 ;;
12485 esac
12486
12487 if test "x$lt_cv_dlopen" != xno; then
12488 enable_dlopen=yes
12489 else
12490 enable_dlopen=no
12491 fi
12492
12493 case $lt_cv_dlopen in
12494 dlopen)
12495 save_CPPFLAGS="$CPPFLAGS"
12496 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12497
12498 save_LDFLAGS="$LDFLAGS"
12499 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12500
12501 save_LIBS="$LIBS"
12502 LIBS="$lt_cv_dlopen_libs $LIBS"
12503
5213506e
RW
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12505$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12506if test "${lt_cv_dlopen_self+set}" = set; then :
12507 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12508else
12509 if test "$cross_compiling" = yes; then :
12510 lt_cv_dlopen_self=cross
12511else
12512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12513 lt_status=$lt_dlunknown
12514 cat > conftest.$ac_ext <<_LT_EOF
a0e1df88 12515#line 12515 "configure"
1cf3d07d
SE
12516#include "confdefs.h"
12517
12518#if HAVE_DLFCN_H
12519#include <dlfcn.h>
12520#endif
12521
12522#include <stdio.h>
12523
12524#ifdef RTLD_GLOBAL
12525# define LT_DLGLOBAL RTLD_GLOBAL
12526#else
12527# ifdef DL_GLOBAL
12528# define LT_DLGLOBAL DL_GLOBAL
12529# else
12530# define LT_DLGLOBAL 0
12531# endif
12532#endif
12533
12534/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12535 find out it does not work in some platform. */
12536#ifndef LT_DLLAZY_OR_NOW
12537# ifdef RTLD_LAZY
12538# define LT_DLLAZY_OR_NOW RTLD_LAZY
12539# else
12540# ifdef DL_LAZY
12541# define LT_DLLAZY_OR_NOW DL_LAZY
12542# else
12543# ifdef RTLD_NOW
12544# define LT_DLLAZY_OR_NOW RTLD_NOW
12545# else
12546# ifdef DL_NOW
12547# define LT_DLLAZY_OR_NOW DL_NOW
12548# else
12549# define LT_DLLAZY_OR_NOW 0
12550# endif
12551# endif
12552# endif
12553# endif
12554#endif
12555
43e02a8a
RW
12556/* When -fvisbility=hidden is used, assume the code has been annotated
12557 correspondingly for the symbols needed. */
12558#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12559void fnord () __attribute__((visibility("default")));
12560#endif
12561
12562void fnord () { int i=42; }
1cf3d07d
SE
12563int main ()
12564{
12565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12566 int status = $lt_dlunknown;
12567
12568 if (self)
12569 {
12570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12571 else
12572 {
12573 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12574 else puts (dlerror ());
12575 }
1cf3d07d
SE
12576 /* dlclose (self); */
12577 }
12578 else
12579 puts (dlerror ());
12580
d58dead8 12581 return status;
1cf3d07d
SE
12582}
12583_LT_EOF
5213506e 12584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12585 (eval $ac_link) 2>&5
12586 ac_status=$?
5213506e
RW
12587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12588 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12589 (./conftest; exit; ) >&5 2>/dev/null
12590 lt_status=$?
12591 case x$lt_status in
12592 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12593 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12594 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12595 esac
12596 else :
12597 # compilation failed
12598 lt_cv_dlopen_self=no
12599 fi
12600fi
12601rm -fr conftest*
12602
12603
12604fi
5213506e
RW
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12606$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
12607
12608 if test "x$lt_cv_dlopen_self" = xyes; then
12609 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12611$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12612if test "${lt_cv_dlopen_self_static+set}" = set; then :
12613 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12614else
12615 if test "$cross_compiling" = yes; then :
12616 lt_cv_dlopen_self_static=cross
12617else
12618 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12619 lt_status=$lt_dlunknown
12620 cat > conftest.$ac_ext <<_LT_EOF
a0e1df88 12621#line 12621 "configure"
1cf3d07d
SE
12622#include "confdefs.h"
12623
12624#if HAVE_DLFCN_H
12625#include <dlfcn.h>
12626#endif
12627
12628#include <stdio.h>
12629
12630#ifdef RTLD_GLOBAL
12631# define LT_DLGLOBAL RTLD_GLOBAL
12632#else
12633# ifdef DL_GLOBAL
12634# define LT_DLGLOBAL DL_GLOBAL
12635# else
12636# define LT_DLGLOBAL 0
12637# endif
12638#endif
12639
12640/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12641 find out it does not work in some platform. */
12642#ifndef LT_DLLAZY_OR_NOW
12643# ifdef RTLD_LAZY
12644# define LT_DLLAZY_OR_NOW RTLD_LAZY
12645# else
12646# ifdef DL_LAZY
12647# define LT_DLLAZY_OR_NOW DL_LAZY
12648# else
12649# ifdef RTLD_NOW
12650# define LT_DLLAZY_OR_NOW RTLD_NOW
12651# else
12652# ifdef DL_NOW
12653# define LT_DLLAZY_OR_NOW DL_NOW
12654# else
12655# define LT_DLLAZY_OR_NOW 0
12656# endif
12657# endif
12658# endif
12659# endif
12660#endif
12661
43e02a8a
RW
12662/* When -fvisbility=hidden is used, assume the code has been annotated
12663 correspondingly for the symbols needed. */
12664#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12665void fnord () __attribute__((visibility("default")));
12666#endif
12667
12668void fnord () { int i=42; }
1cf3d07d
SE
12669int main ()
12670{
12671 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12672 int status = $lt_dlunknown;
12673
12674 if (self)
12675 {
12676 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12677 else
12678 {
12679 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12680 else puts (dlerror ());
12681 }
1cf3d07d
SE
12682 /* dlclose (self); */
12683 }
12684 else
12685 puts (dlerror ());
12686
d58dead8 12687 return status;
1cf3d07d
SE
12688}
12689_LT_EOF
5213506e 12690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12691 (eval $ac_link) 2>&5
12692 ac_status=$?
5213506e
RW
12693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12694 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12695 (./conftest; exit; ) >&5 2>/dev/null
12696 lt_status=$?
12697 case x$lt_status in
12698 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12699 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12700 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12701 esac
12702 else :
12703 # compilation failed
12704 lt_cv_dlopen_self_static=no
12705 fi
12706fi
12707rm -fr conftest*
12708
12709
12710fi
5213506e
RW
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12712$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
12713 fi
12714
12715 CPPFLAGS="$save_CPPFLAGS"
12716 LDFLAGS="$save_LDFLAGS"
12717 LIBS="$save_LIBS"
12718 ;;
12719 esac
12720
12721 case $lt_cv_dlopen_self in
12722 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12723 *) enable_dlopen_self=unknown ;;
12724 esac
12725
12726 case $lt_cv_dlopen_self_static in
12727 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12728 *) enable_dlopen_self_static=unknown ;;
12729 esac
12730fi
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748striplib=
12749old_striplib=
5213506e
RW
12750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12751$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
12752if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12753 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12754 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12756$as_echo "yes" >&6; }
1cf3d07d
SE
12757else
12758# FIXME - insert some real tests, host_os isn't really good enough
12759 case $host_os in
12760 darwin*)
12761 if test -n "$STRIP" ; then
12762 striplib="$STRIP -x"
12763 old_striplib="$STRIP -S"
5213506e
RW
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12765$as_echo "yes" >&6; }
1cf3d07d 12766 else
5213506e
RW
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768$as_echo "no" >&6; }
1cf3d07d
SE
12769 fi
12770 ;;
12771 *)
5213506e
RW
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773$as_echo "no" >&6; }
1cf3d07d
SE
12774 ;;
12775 esac
12776fi
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
43e02a8a
RW
12789 # Report which library types will actually be built
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12791$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12793$as_echo "$can_build_shared" >&6; }
1cf3d07d 12794
43e02a8a
RW
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12796$as_echo_n "checking whether to build shared libraries... " >&6; }
12797 test "$can_build_shared" = "no" && enable_shared=no
1cf3d07d 12798
43e02a8a
RW
12799 # On AIX, shared libraries and static libraries use the same namespace, and
12800 # are all built from PIC.
12801 case $host_os in
12802 aix3*)
12803 test "$enable_shared" = yes && enable_static=no
12804 if test -n "$RANLIB"; then
12805 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12806 postinstall_cmds='$RANLIB $lib'
12807 fi
12808 ;;
1cf3d07d 12809
43e02a8a
RW
12810 aix[4-9]*)
12811 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12812 test "$enable_shared" = yes && enable_static=no
12813 fi
12814 ;;
12815 esac
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12817$as_echo "$enable_shared" >&6; }
1cf3d07d 12818
43e02a8a
RW
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12820$as_echo_n "checking whether to build static libraries... " >&6; }
12821 # Make sure either enable_shared or enable_static is yes.
12822 test "$enable_shared" = yes || enable_static=yes
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12824$as_echo "$enable_static" >&6; }
1cf3d07d 12825
1cf3d07d 12826
1cf3d07d 12827
1cf3d07d
SE
12828
12829fi
1cf3d07d
SE
12830ac_ext=c
12831ac_cpp='$CPP $CPPFLAGS'
12832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12834ac_compiler_gnu=$ac_cv_c_compiler_gnu
12835
43e02a8a
RW
12836CC="$lt_save_CC"
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850 ac_config_commands="$ac_config_commands libtool"
12851
12852
12853
12854
12855# Only expand once:
12856
12857
12858
12859
7de6ba7a
DK
12860
12861case $host in
12862 *-cygwin* | *-mingw*)
12863 # 'host' will be top-level target in the case of a target lib,
12864 # we must compare to with_cross_host to decide if this is a native
12865 # or cross-compiler and select where to install dlls appropriately.
12866 if test -n "$with_cross_host" &&
12867 test x"$with_cross_host" != x"no"; then
12868 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12869 else
12870 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12871 fi
12872 ;;
12873 *)
12874 lt_host_flags=
12875 ;;
12876esac
12877
12878
12879
12880
12881
43e02a8a 12882#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
1cf3d07d 12883
43e02a8a
RW
12884# We need gfortran to compile parts of the library
12885#AC_PROG_FC(gfortran)
12886FC="$GFORTRAN"
5213506e
RW
12887ac_ext=${ac_fc_srcext-f}
12888ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12889ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
12890ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12891if test -n "$ac_tool_prefix"; then
43e02a8a 12892 for ac_prog in gfortran
1cf3d07d
SE
12893 do
12894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12895set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
12896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897$as_echo_n "checking for $ac_word... " >&6; }
12898if test "${ac_cv_prog_FC+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12900else
12901 if test -n "$FC"; then
12902 ac_cv_prog_FC="$FC" # Let the user override the test.
12903else
12904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905for as_dir in $PATH
12906do
12907 IFS=$as_save_IFS
12908 test -z "$as_dir" && as_dir=.
5213506e
RW
12909 for ac_exec_ext in '' $ac_executable_extensions; do
12910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 12911 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5213506e 12912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
12913 break 2
12914 fi
12915done
5213506e
RW
12916 done
12917IFS=$as_save_IFS
1cf3d07d
SE
12918
12919fi
12920fi
12921FC=$ac_cv_prog_FC
12922if test -n "$FC"; then
5213506e
RW
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12924$as_echo "$FC" >&6; }
1cf3d07d 12925else
5213506e
RW
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927$as_echo "no" >&6; }
1cf3d07d
SE
12928fi
12929
5213506e 12930
1cf3d07d
SE
12931 test -n "$FC" && break
12932 done
12933fi
12934if test -z "$FC"; then
12935 ac_ct_FC=$FC
43e02a8a 12936 for ac_prog in gfortran
1cf3d07d
SE
12937do
12938 # Extract the first word of "$ac_prog", so it can be a program name with args.
12939set dummy $ac_prog; ac_word=$2
5213506e
RW
12940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941$as_echo_n "checking for $ac_word... " >&6; }
12942if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12944else
12945 if test -n "$ac_ct_FC"; then
12946 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12947else
12948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949for as_dir in $PATH
12950do
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
5213506e
RW
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 12955 ac_cv_prog_ac_ct_FC="$ac_prog"
5213506e 12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
12957 break 2
12958 fi
12959done
5213506e
RW
12960 done
12961IFS=$as_save_IFS
1cf3d07d
SE
12962
12963fi
12964fi
12965ac_ct_FC=$ac_cv_prog_ac_ct_FC
12966if test -n "$ac_ct_FC"; then
5213506e
RW
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12968$as_echo "$ac_ct_FC" >&6; }
1cf3d07d 12969else
5213506e
RW
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971$as_echo "no" >&6; }
1cf3d07d
SE
12972fi
12973
5213506e 12974
1cf3d07d 12975 test -n "$ac_ct_FC" && break
38d24731
RW
12976done
12977
5213506e
RW
12978 if test "x$ac_ct_FC" = x; then
12979 FC=""
12980 else
12981 case $cross_compiling:$ac_tool_warned in
12982yes:)
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12985ac_tool_warned=yes ;;
12986esac
12987 FC=$ac_ct_FC
12988 fi
1cf3d07d
SE
12989fi
12990
12991
12992# Provide some information about the compiler.
5213506e
RW
12993$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12994set X $ac_compile
12995ac_compiler=$2
12996for ac_option in --version -v -V -qversion; do
12997 { { ac_try="$ac_compiler $ac_option >&5"
12998case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001esac
13002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13003$as_echo "$ac_try_echo"; } >&5
13004 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 13005 ac_status=$?
5213506e
RW
13006 if test -s conftest.err; then
13007 sed '10a\
13008... rest of stderr output deleted ...
13009 10q' conftest.err >conftest.er1
13010 cat conftest.er1 >&5
13011 rm -f conftest.er1 conftest.err
13012 fi
13013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13014 test $ac_status = 0; }
13015done
1cf3d07d
SE
13016rm -f a.out
13017
13018# If we don't use `.F' as extension, the preprocessor is not run on the
13019# input file. (Note that this only needs to work for GNU compilers.)
13020ac_save_ext=$ac_ext
13021ac_ext=F
5213506e
RW
13022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13023$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
13024if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
1cf3d07d 13026else
5213506e 13027 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13028 program main
13029#ifndef __GNUC__
13030 choke me
13031#endif
13032
13033 end
13034_ACEOF
5213506e 13035if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
13036 ac_compiler_gnu=yes
13037else
5213506e 13038 ac_compiler_gnu=no
1cf3d07d 13039fi
5213506e 13040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
13041ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13042
13043fi
5213506e
RW
13044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13045$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
1cf3d07d 13046ac_ext=$ac_save_ext
5213506e
RW
13047ac_test_FCFLAGS=${FCFLAGS+set}
13048ac_save_FCFLAGS=$FCFLAGS
1cf3d07d 13049FCFLAGS=
5213506e
RW
13050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13051$as_echo_n "checking whether $FC accepts -g... " >&6; }
13052if test "${ac_cv_prog_fc_g+set}" = set; then :
13053 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13054else
13055 FCFLAGS=-g
5213506e 13056cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13057 program main
13058
13059 end
13060_ACEOF
5213506e 13061if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
13062 ac_cv_prog_fc_g=yes
13063else
5213506e 13064 ac_cv_prog_fc_g=no
1cf3d07d 13065fi
5213506e 13066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
13067
13068fi
5213506e
RW
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13070$as_echo "$ac_cv_prog_fc_g" >&6; }
13071if test "$ac_test_FCFLAGS" = set; then
13072 FCFLAGS=$ac_save_FCFLAGS
1cf3d07d
SE
13073elif test $ac_cv_prog_fc_g = yes; then
13074 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13075 FCFLAGS="-g -O2"
13076 else
13077 FCFLAGS="-g"
13078 fi
13079else
13080 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13081 FCFLAGS="-O2"
13082 else
13083 FCFLAGS=
13084 fi
13085fi
13086
13087ac_ext=c
13088ac_cpp='$CPP $CPPFLAGS'
13089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13091ac_compiler_gnu=$ac_cv_c_compiler_gnu
13092
5213506e
RW
13093 ac_ext=${ac_fc_srcext-f}
13094ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13095ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
13096ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13097
13098
43e02a8a
RW
13099if test -z "$FC" || test "X$FC" = "Xno"; then
13100 _lt_disable_FC=yes
13101fi
13102
1cf3d07d
SE
13103archive_cmds_need_lc_FC=no
13104allow_undefined_flag_FC=
13105always_export_symbols_FC=no
13106archive_expsym_cmds_FC=
13107export_dynamic_flag_spec_FC=
13108hardcode_direct_FC=no
13109hardcode_direct_absolute_FC=no
13110hardcode_libdir_flag_spec_FC=
13111hardcode_libdir_flag_spec_ld_FC=
13112hardcode_libdir_separator_FC=
13113hardcode_minus_L_FC=no
13114hardcode_automatic_FC=no
13115inherit_rpath_FC=no
13116module_cmds_FC=
13117module_expsym_cmds_FC=
13118link_all_deplibs_FC=unknown
13119old_archive_cmds_FC=$old_archive_cmds
43e02a8a
RW
13120reload_flag_FC=$reload_flag
13121reload_cmds_FC=$reload_cmds
1cf3d07d
SE
13122no_undefined_flag_FC=
13123whole_archive_flag_spec_FC=
13124enable_shared_with_static_runtimes_FC=no
13125
13126# Source file extension for fc test sources.
13127ac_ext=${ac_fc_srcext-f}
13128
13129# Object file extension for compiled fc test sources.
13130objext=o
13131objext_FC=$objext
13132
13133# No sense in running all these tests if we already determined that
13134# the FC compiler isn't working. Some variables (like enable_shared)
13135# are currently assumed to apply to all compilers on this platform,
13136# and will be corrupted by setting them based on a non-working compiler.
13137if test "$_lt_disable_FC" != yes; then
13138 # Code to be used in simple compile tests
13139 lt_simple_compile_test_code="\
13140 subroutine t
13141 return
13142 end
13143"
13144
13145 # Code to be used in simple link tests
13146 lt_simple_link_test_code="\
13147 program t
13148 end
13149"
13150
13151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13152
13153
13154
13155
13156
13157
13158# If no C compiler was specified, use CC.
13159LTCC=${LTCC-"$CC"}
13160
13161# If no C compiler flags were specified, use CFLAGS.
13162LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13163
13164# Allow CC to be a program name with arguments.
13165compiler=$CC
13166
13167
13168 # save warnings/boilerplate of simple test code
13169 ac_outfile=conftest.$ac_objext
13170echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13171eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13172_lt_compiler_boilerplate=`cat conftest.err`
13173$RM conftest*
13174
13175 ac_outfile=conftest.$ac_objext
13176echo "$lt_simple_link_test_code" >conftest.$ac_ext
13177eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13178_lt_linker_boilerplate=`cat conftest.err`
d58dead8 13179$RM -r conftest*
1cf3d07d
SE
13180
13181
13182 # Allow CC to be a program name with arguments.
13183 lt_save_CC="$CC"
d58dead8 13184 lt_save_GCC=$GCC
1cf3d07d
SE
13185 CC=${FC-"f95"}
13186 compiler=$CC
d58dead8
PG
13187 GCC=$ac_cv_fc_compiler_gnu
13188
1cf3d07d
SE
13189 compiler_FC=$CC
13190 for cc_temp in $compiler""; do
13191 case $cc_temp in
13192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13194 \-*) ;;
13195 *) break;;
13196 esac
13197done
43e02a8a 13198cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
13199
13200
13201 if test -n "$compiler"; then
5213506e
RW
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13203$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13205$as_echo "$can_build_shared" >&6; }
1cf3d07d 13206
5213506e
RW
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13208$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
13209 test "$can_build_shared" = "no" && enable_shared=no
13210
13211 # On AIX, shared libraries and static libraries use the same namespace, and
13212 # are all built from PIC.
13213 case $host_os in
13214 aix3*)
13215 test "$enable_shared" = yes && enable_static=no
13216 if test -n "$RANLIB"; then
13217 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13218 postinstall_cmds='$RANLIB $lib'
13219 fi
13220 ;;
4f6bebc3 13221 aix[4-9]*)
1cf3d07d
SE
13222 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13223 test "$enable_shared" = yes && enable_static=no
13224 fi
13225 ;;
13226 esac
5213506e
RW
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13228$as_echo "$enable_shared" >&6; }
1cf3d07d 13229
5213506e
RW
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13231$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
13232 # Make sure either enable_shared or enable_static is yes.
13233 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13235$as_echo "$enable_static" >&6; }
1cf3d07d
SE
13236
13237 GCC_FC="$ac_cv_fc_compiler_gnu"
13238 LD_FC="$LD"
13239
13240 ## CAVEAT EMPTOR:
13241 ## There is no encapsulation within the following macros, do not change
13242 ## the running order or otherwise move them around unless you know exactly
13243 ## what you are doing...
13244 # Dependencies to place before and after the object being linked:
13245predep_objects_FC=
13246postdep_objects_FC=
13247predeps_FC=
13248postdeps_FC=
13249compiler_lib_search_path_FC=
13250
13251cat > conftest.$ac_ext <<_LT_EOF
13252 subroutine foo
13253 implicit none
13254 integer a
13255 a=0
13256 return
13257 end
13258_LT_EOF
13259
5213506e 13260if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
13261 (eval $ac_compile) 2>&5
13262 ac_status=$?
5213506e
RW
13263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13264 test $ac_status = 0; }; then
1cf3d07d
SE
13265 # Parse the compiler output and extract the necessary
13266 # objects, libraries and library flags.
13267
13268 # Sentinel used to keep track of whether or not we are before
13269 # the conftest object file.
13270 pre_test_object_deps_done=no
13271
d58dead8 13272 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
13273 case $p in
13274
13275 -L* | -R* | -l*)
13276 # Some compilers place space between "-{L,R}" and the path.
13277 # Remove the space.
13278 if test $p = "-L" ||
13279 test $p = "-R"; then
13280 prev=$p
13281 continue
13282 else
13283 prev=
13284 fi
13285
13286 if test "$pre_test_object_deps_done" = no; then
13287 case $p in
13288 -L* | -R*)
13289 # Internal compiler library paths should come after those
13290 # provided the user. The postdeps already come after the
13291 # user supplied libs so there is no need to process them.
13292 if test -z "$compiler_lib_search_path_FC"; then
13293 compiler_lib_search_path_FC="${prev}${p}"
13294 else
13295 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13296 fi
13297 ;;
13298 # The "-l" case would never come before the object being
13299 # linked, so don't bother handling this case.
13300 esac
13301 else
13302 if test -z "$postdeps_FC"; then
13303 postdeps_FC="${prev}${p}"
13304 else
13305 postdeps_FC="${postdeps_FC} ${prev}${p}"
13306 fi
13307 fi
13308 ;;
13309
13310 *.$objext)
13311 # This assumes that the test object file only shows up
13312 # once in the compiler output.
13313 if test "$p" = "conftest.$objext"; then
13314 pre_test_object_deps_done=yes
13315 continue
13316 fi
13317
13318 if test "$pre_test_object_deps_done" = no; then
13319 if test -z "$predep_objects_FC"; then
13320 predep_objects_FC="$p"
13321 else
13322 predep_objects_FC="$predep_objects_FC $p"
13323 fi
13324 else
13325 if test -z "$postdep_objects_FC"; then
13326 postdep_objects_FC="$p"
13327 else
13328 postdep_objects_FC="$postdep_objects_FC $p"
13329 fi
13330 fi
13331 ;;
13332
13333 *) ;; # Ignore the rest.
13334
13335 esac
13336 done
13337
13338 # Clean up.
13339 rm -f a.out a.exe
13340else
13341 echo "libtool.m4: error: problem compiling FC test program"
13342fi
13343
13344$RM -f confest.$objext
13345
13346# PORTME: override above test on systems where it is broken
13347
13348
13349case " $postdeps_FC " in
13350*" -lc "*) archive_cmds_need_lc_FC=no ;;
13351esac
d58dead8
PG
13352 compiler_lib_search_dirs_FC=
13353if test -n "${compiler_lib_search_path_FC}"; then
13354 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13355fi
13356
13357
13358
13359
13360
1cf3d07d
SE
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387 lt_prog_compiler_wl_FC=
13388lt_prog_compiler_pic_FC=
13389lt_prog_compiler_static_FC=
13390
5213506e
RW
13391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13392$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
13393
13394 if test "$GCC" = yes; then
13395 lt_prog_compiler_wl_FC='-Wl,'
13396 lt_prog_compiler_static_FC='-static'
13397
13398 case $host_os in
13399 aix*)
13400 # All AIX code is PIC.
13401 if test "$host_cpu" = ia64; then
13402 # AIX 5 now supports IA64 processor
13403 lt_prog_compiler_static_FC='-Bstatic'
13404 fi
bad8a4a7 13405 lt_prog_compiler_pic_FC='-fPIC'
1cf3d07d
SE
13406 ;;
13407
13408 amigaos*)
d58dead8
PG
13409 case $host_cpu in
13410 powerpc)
13411 # see comment about AmigaOS4 .so support
13412 lt_prog_compiler_pic_FC='-fPIC'
13413 ;;
13414 m68k)
13415 # FIXME: we need at least 68020 code to build shared libraries, but
13416 # adding the `-m68020' flag to GCC prevents building anything better,
13417 # like `-m68040'.
13418 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13419 ;;
13420 esac
1cf3d07d
SE
13421 ;;
13422
13423 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13424 # PIC is the default for these OSes.
13425 ;;
13426
d58dead8 13427 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13428 # This hack is so that the source file can tell whether it is being
13429 # built for inclusion in a dll (and should export symbols for example).
13430 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13431 # (--disable-auto-import) libraries
13432 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13433 ;;
13434
13435 darwin* | rhapsody*)
13436 # PIC is the default on this platform
13437 # Common symbols not allowed in MH_DYLIB files
13438 lt_prog_compiler_pic_FC='-fno-common'
13439 ;;
13440
43e02a8a
RW
13441 haiku*)
13442 # PIC is the default for Haiku.
13443 # The "-static" flag exists, but is broken.
13444 lt_prog_compiler_static_FC=
13445 ;;
13446
1cf3d07d 13447 hpux*)
d58dead8
PG
13448 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13449 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13450 # sets the default TLS model and affects inlining.
1cf3d07d 13451 case $host_cpu in
d58dead8 13452 hppa*64*)
1cf3d07d
SE
13453 # +Z the default
13454 ;;
13455 *)
13456 lt_prog_compiler_pic_FC='-fPIC'
13457 ;;
13458 esac
13459 ;;
13460
13461 interix[3-9]*)
13462 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13463 # Instead, we relocate shared libraries at runtime.
13464 ;;
13465
13466 msdosdjgpp*)
13467 # Just because we use GCC doesn't mean we suddenly get shared libraries
13468 # on systems that don't support them.
13469 lt_prog_compiler_can_build_shared_FC=no
13470 enable_shared=no
13471 ;;
13472
13473 *nto* | *qnx*)
13474 # QNX uses GNU C++, but need to define -shared option too, otherwise
13475 # it will coredump.
13476 lt_prog_compiler_pic_FC='-fPIC -shared'
13477 ;;
13478
13479 sysv4*MP*)
13480 if test -d /usr/nec; then
13481 lt_prog_compiler_pic_FC=-Kconform_pic
13482 fi
13483 ;;
13484
13485 *)
13486 lt_prog_compiler_pic_FC='-fPIC'
13487 ;;
13488 esac
43e02a8a
RW
13489
13490 case $cc_basename in
13491 nvcc*) # Cuda Compiler Driver 2.2
13492 lt_prog_compiler_wl_FC='-Xlinker '
13493 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13494 ;;
13495 esac
1cf3d07d
SE
13496 else
13497 # PORTME Check for flag to pass linker flags through the system compiler.
13498 case $host_os in
13499 aix*)
13500 lt_prog_compiler_wl_FC='-Wl,'
13501 if test "$host_cpu" = ia64; then
13502 # AIX 5 now supports IA64 processor
13503 lt_prog_compiler_static_FC='-Bstatic'
13504 else
13505 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13506 fi
13507 ;;
1cf3d07d 13508
d58dead8 13509 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13510 # This hack is so that the source file can tell whether it is being
13511 # built for inclusion in a dll (and should export symbols for example).
13512 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13513 ;;
13514
13515 hpux9* | hpux10* | hpux11*)
13516 lt_prog_compiler_wl_FC='-Wl,'
13517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13518 # not for PA HP-UX.
13519 case $host_cpu in
13520 hppa*64*|ia64*)
13521 # +Z the default
13522 ;;
13523 *)
13524 lt_prog_compiler_pic_FC='+Z'
13525 ;;
13526 esac
13527 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13528 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13529 ;;
13530
13531 irix5* | irix6* | nonstopux*)
13532 lt_prog_compiler_wl_FC='-Wl,'
13533 # PIC (with -KPIC) is the default.
13534 lt_prog_compiler_static_FC='-non_shared'
13535 ;;
13536
7a9d3fe8 13537 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 13538 case $cc_basename in
d58dead8
PG
13539 # old Intel for x86_64 which still supported -KPIC.
13540 ecc*)
1cf3d07d
SE
13541 lt_prog_compiler_wl_FC='-Wl,'
13542 lt_prog_compiler_pic_FC='-KPIC'
13543 lt_prog_compiler_static_FC='-static'
13544 ;;
d58dead8
PG
13545 # icc used to be incompatible with GCC.
13546 # ICC 10 doesn't accept -KPIC any more.
13547 icc* | ifort*)
13548 lt_prog_compiler_wl_FC='-Wl,'
13549 lt_prog_compiler_pic_FC='-fPIC'
13550 lt_prog_compiler_static_FC='-static'
13551 ;;
13552 # Lahey Fortran 8.1.
13553 lf95*)
13554 lt_prog_compiler_wl_FC='-Wl,'
13555 lt_prog_compiler_pic_FC='--shared'
13556 lt_prog_compiler_static_FC='--static'
13557 ;;
43e02a8a 13558 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
13559 # Portland Group compilers (*not* the Pentium gcc compiler,
13560 # which looks to be a dead project)
13561 lt_prog_compiler_wl_FC='-Wl,'
13562 lt_prog_compiler_pic_FC='-fpic'
13563 lt_prog_compiler_static_FC='-Bstatic'
13564 ;;
13565 ccc*)
13566 lt_prog_compiler_wl_FC='-Wl,'
13567 # All Alpha code is PIC.
13568 lt_prog_compiler_static_FC='-non_shared'
13569 ;;
43e02a8a
RW
13570 xl* | bgxl* | bgf* | mpixl*)
13571 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
13572 lt_prog_compiler_wl_FC='-Wl,'
13573 lt_prog_compiler_pic_FC='-qpic'
13574 lt_prog_compiler_static_FC='-qstaticlink'
13575 ;;
1cf3d07d
SE
13576 *)
13577 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
13578 *Sun\ F* | *Sun*Fortran*)
13579 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
13580 lt_prog_compiler_pic_FC='-KPIC'
13581 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13582 lt_prog_compiler_wl_FC=''
1cf3d07d 13583 ;;
43e02a8a
RW
13584 *Sun\ C*)
13585 # Sun C 5.9
1cf3d07d
SE
13586 lt_prog_compiler_pic_FC='-KPIC'
13587 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13588 lt_prog_compiler_wl_FC='-Wl,'
1cf3d07d
SE
13589 ;;
13590 esac
13591 ;;
13592 esac
13593 ;;
13594
13595 newsos6)
13596 lt_prog_compiler_pic_FC='-KPIC'
13597 lt_prog_compiler_static_FC='-Bstatic'
13598 ;;
13599
13600 *nto* | *qnx*)
13601 # QNX uses GNU C++, but need to define -shared option too, otherwise
13602 # it will coredump.
13603 lt_prog_compiler_pic_FC='-fPIC -shared'
13604 ;;
13605
13606 osf3* | osf4* | osf5*)
13607 lt_prog_compiler_wl_FC='-Wl,'
13608 # All OSF/1 code is PIC.
13609 lt_prog_compiler_static_FC='-non_shared'
13610 ;;
13611
13612 rdos*)
13613 lt_prog_compiler_static_FC='-non_shared'
13614 ;;
13615
13616 solaris*)
13617 lt_prog_compiler_pic_FC='-KPIC'
13618 lt_prog_compiler_static_FC='-Bstatic'
13619 case $cc_basename in
13620 f77* | f90* | f95*)
13621 lt_prog_compiler_wl_FC='-Qoption ld ';;
13622 *)
13623 lt_prog_compiler_wl_FC='-Wl,';;
13624 esac
13625 ;;
13626
13627 sunos4*)
13628 lt_prog_compiler_wl_FC='-Qoption ld '
13629 lt_prog_compiler_pic_FC='-PIC'
13630 lt_prog_compiler_static_FC='-Bstatic'
13631 ;;
13632
13633 sysv4 | sysv4.2uw2* | sysv4.3*)
13634 lt_prog_compiler_wl_FC='-Wl,'
13635 lt_prog_compiler_pic_FC='-KPIC'
13636 lt_prog_compiler_static_FC='-Bstatic'
13637 ;;
13638
13639 sysv4*MP*)
13640 if test -d /usr/nec ;then
13641 lt_prog_compiler_pic_FC='-Kconform_pic'
13642 lt_prog_compiler_static_FC='-Bstatic'
13643 fi
13644 ;;
13645
13646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13647 lt_prog_compiler_wl_FC='-Wl,'
13648 lt_prog_compiler_pic_FC='-KPIC'
13649 lt_prog_compiler_static_FC='-Bstatic'
13650 ;;
13651
13652 unicos*)
13653 lt_prog_compiler_wl_FC='-Wl,'
13654 lt_prog_compiler_can_build_shared_FC=no
13655 ;;
13656
13657 uts4*)
13658 lt_prog_compiler_pic_FC='-pic'
13659 lt_prog_compiler_static_FC='-Bstatic'
13660 ;;
13661
13662 *)
13663 lt_prog_compiler_can_build_shared_FC=no
13664 ;;
13665 esac
13666 fi
13667
13668case $host_os in
13669 # For platforms which do not support PIC, -DPIC is meaningless:
13670 *djgpp*)
13671 lt_prog_compiler_pic_FC=
13672 ;;
13673 *)
13674 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13675 ;;
13676esac
5213506e
RW
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13678$as_echo "$lt_prog_compiler_pic_FC" >&6; }
1cf3d07d
SE
13679
13680
13681
13682#
13683# Check to make sure the PIC flag actually works.
13684#
13685if test -n "$lt_prog_compiler_pic_FC"; then
5213506e
RW
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13687$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13688if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13689 $as_echo_n "(cached) " >&6
1cf3d07d 13690else
d58dead8 13691 lt_cv_prog_compiler_pic_works_FC=no
1cf3d07d
SE
13692 ac_outfile=conftest.$ac_objext
13693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13694 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13695 # Insert the option either (1) after the last *FLAGS variable, or
13696 # (2) before a word containing "conftest.", or (3) at the end.
13697 # Note that $ac_compile itself does not contain backslashes and begins
13698 # with a dollar sign (not a hyphen), so the echo should work correctly.
13699 # The option is referenced via a variable to avoid confusing sed.
13700 lt_compile=`echo "$ac_compile" | $SED \
13701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13703 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13704 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13705 (eval "$lt_compile" 2>conftest.err)
13706 ac_status=$?
13707 cat conftest.err >&5
43e02a8a 13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13709 if (exit $ac_status) && test -s "$ac_outfile"; then
13710 # The compiler can only warn and ignore the option if not recognized
13711 # So say no if there are warnings other than the usual output.
43e02a8a 13712 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
13713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13714 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 13715 lt_cv_prog_compiler_pic_works_FC=yes
1cf3d07d
SE
13716 fi
13717 fi
13718 $RM conftest*
13719
13720fi
5213506e
RW
13721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13722$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
1cf3d07d 13723
d58dead8 13724if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
1cf3d07d
SE
13725 case $lt_prog_compiler_pic_FC in
13726 "" | " "*) ;;
13727 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13728 esac
13729else
13730 lt_prog_compiler_pic_FC=
13731 lt_prog_compiler_can_build_shared_FC=no
13732fi
13733
13734fi
13735
13736
13737
13738#
13739# Check to make sure the static flag actually works.
13740#
13741wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
5213506e
RW
13742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13743$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13744if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13745 $as_echo_n "(cached) " >&6
1cf3d07d 13746else
d58dead8 13747 lt_cv_prog_compiler_static_works_FC=no
1cf3d07d
SE
13748 save_LDFLAGS="$LDFLAGS"
13749 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13750 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13751 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13752 # The linker can only warn and ignore the option if not recognized
13753 # So say no if there are warnings
13754 if test -s conftest.err; then
13755 # Append any errors to the config.log.
13756 cat conftest.err 1>&5
43e02a8a 13757 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
13758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13759 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 13760 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
13761 fi
13762 else
d58dead8 13763 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
13764 fi
13765 fi
d58dead8 13766 $RM -r conftest*
1cf3d07d
SE
13767 LDFLAGS="$save_LDFLAGS"
13768
13769fi
5213506e
RW
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13771$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
1cf3d07d 13772
d58dead8 13773if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
1cf3d07d
SE
13774 :
13775else
13776 lt_prog_compiler_static_FC=
13777fi
13778
13779
13780
13781
5213506e
RW
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13783$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13784if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13785 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13786else
13787 lt_cv_prog_compiler_c_o_FC=no
13788 $RM -r conftest 2>/dev/null
13789 mkdir conftest
13790 cd conftest
13791 mkdir out
13792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13793
13794 lt_compiler_flag="-o out/conftest2.$ac_objext"
13795 # Insert the option either (1) after the last *FLAGS variable, or
13796 # (2) before a word containing "conftest.", or (3) at the end.
13797 # Note that $ac_compile itself does not contain backslashes and begins
13798 # with a dollar sign (not a hyphen), so the echo should work correctly.
13799 lt_compile=`echo "$ac_compile" | $SED \
13800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13802 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13803 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13804 (eval "$lt_compile" 2>out/conftest.err)
13805 ac_status=$?
13806 cat out/conftest.err >&5
43e02a8a 13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13808 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13809 then
13810 # The compiler can only warn and ignore the option if not recognized
13811 # So say no if there are warnings
43e02a8a 13812 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13813 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13814 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13815 lt_cv_prog_compiler_c_o_FC=yes
13816 fi
13817 fi
13818 chmod u+w . 2>&5
13819 $RM conftest*
13820 # SGI C++ compiler will create directory out/ii_files/ for
13821 # template instantiation
13822 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13823 $RM out/* && rmdir out
13824 cd ..
13825 $RM -r conftest
13826 $RM conftest*
13827
13828fi
5213506e
RW
13829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13830$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
13831
13832
13833
5213506e
RW
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13835$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13836if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13837 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13838else
13839 lt_cv_prog_compiler_c_o_FC=no
13840 $RM -r conftest 2>/dev/null
13841 mkdir conftest
13842 cd conftest
13843 mkdir out
13844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13845
13846 lt_compiler_flag="-o out/conftest2.$ac_objext"
13847 # Insert the option either (1) after the last *FLAGS variable, or
13848 # (2) before a word containing "conftest.", or (3) at the end.
13849 # Note that $ac_compile itself does not contain backslashes and begins
13850 # with a dollar sign (not a hyphen), so the echo should work correctly.
13851 lt_compile=`echo "$ac_compile" | $SED \
13852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13854 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13856 (eval "$lt_compile" 2>out/conftest.err)
13857 ac_status=$?
13858 cat out/conftest.err >&5
43e02a8a 13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13860 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13861 then
13862 # The compiler can only warn and ignore the option if not recognized
13863 # So say no if there are warnings
43e02a8a 13864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13865 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13866 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13867 lt_cv_prog_compiler_c_o_FC=yes
13868 fi
13869 fi
13870 chmod u+w . 2>&5
13871 $RM conftest*
13872 # SGI C++ compiler will create directory out/ii_files/ for
13873 # template instantiation
13874 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13875 $RM out/* && rmdir out
13876 cd ..
13877 $RM -r conftest
13878 $RM conftest*
13879
13880fi
5213506e
RW
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13882$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
13883
13884
13885
13886
13887hard_links="nottested"
13888if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13889 # do not overwrite the value of need_locks provided by the user
5213506e
RW
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13891$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
13892 hard_links=yes
13893 $RM conftest*
13894 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13895 touch conftest.a
13896 ln conftest.a conftest.b 2>&5 || hard_links=no
13897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13899$as_echo "$hard_links" >&6; }
1cf3d07d 13900 if test "$hard_links" = no; then
5213506e
RW
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13902$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
13903 need_locks=warn
13904 fi
13905else
13906 need_locks=no
13907fi
13908
13909
13910
5213506e
RW
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13912$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
13913
13914 runpath_var=
13915 allow_undefined_flag_FC=
13916 always_export_symbols_FC=no
13917 archive_cmds_FC=
13918 archive_expsym_cmds_FC=
13919 compiler_needs_object_FC=no
13920 enable_shared_with_static_runtimes_FC=no
13921 export_dynamic_flag_spec_FC=
13922 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13923 hardcode_automatic_FC=no
13924 hardcode_direct_FC=no
13925 hardcode_direct_absolute_FC=no
13926 hardcode_libdir_flag_spec_FC=
13927 hardcode_libdir_flag_spec_ld_FC=
13928 hardcode_libdir_separator_FC=
13929 hardcode_minus_L_FC=no
13930 hardcode_shlibpath_var_FC=unsupported
13931 inherit_rpath_FC=no
13932 link_all_deplibs_FC=unknown
13933 module_cmds_FC=
13934 module_expsym_cmds_FC=
13935 old_archive_from_new_cmds_FC=
13936 old_archive_from_expsyms_cmds_FC=
13937 thread_safe_flag_spec_FC=
13938 whole_archive_flag_spec_FC=
13939 # include_expsyms should be a list of space-separated symbols to be *always*
13940 # included in the symbol list
13941 include_expsyms_FC=
13942 # exclude_expsyms can be an extended regexp of symbols to exclude
13943 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13944 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13945 # as well as any symbol that contains `d'.
d58dead8 13946 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
13947 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13948 # platforms (ab)use it in PIC code, but their linkers get confused if
13949 # the symbol is explicitly referenced. Since portable code cannot
13950 # rely on this symbol name, it's probably fine to never include it in
13951 # preloaded symbol tables.
d58dead8 13952 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
13953 extract_expsyms_cmds=
13954
13955 case $host_os in
d58dead8 13956 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13957 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13958 # When not using gcc, we currently assume that we are using
13959 # Microsoft Visual C++.
13960 if test "$GCC" != yes; then
13961 with_gnu_ld=no
13962 fi
13963 ;;
13964 interix*)
13965 # we just hope/assume this is gcc and not c89 (= MSVC++)
13966 with_gnu_ld=yes
13967 ;;
13968 openbsd*)
13969 with_gnu_ld=no
13970 ;;
13971 esac
13972
13973 ld_shlibs_FC=yes
43e02a8a
RW
13974
13975 # On some targets, GNU ld is compatible enough with the native linker
13976 # that we're better off using the native interface for both.
13977 lt_use_gnu_ld_interface=no
1cf3d07d 13978 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
13979 case $host_os in
13980 aix*)
13981 # The AIX port of GNU ld has always aspired to compatibility
13982 # with the native linker. However, as the warning in the GNU ld
13983 # block says, versions before 2.19.5* couldn't really create working
13984 # shared libraries, regardless of the interface used.
13985 case `$LD -v 2>&1` in
13986 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13987 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13988 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13989 *)
13990 lt_use_gnu_ld_interface=yes
13991 ;;
13992 esac
13993 ;;
13994 *)
13995 lt_use_gnu_ld_interface=yes
13996 ;;
13997 esac
13998 fi
13999
14000 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
14001 # If archive_cmds runs LD, not CC, wlarc should be empty
14002 wlarc='${wl}'
14003
14004 # Set some defaults for GNU ld with shared library support. These
14005 # are reset later if shared libraries are not supported. Putting them
14006 # here allows them to be overridden if necessary.
14007 runpath_var=LD_RUN_PATH
14008 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14009 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14010 # ancient GNU ld didn't support --whole-archive et. al.
14011 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14012 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14013 else
14014 whole_archive_flag_spec_FC=
14015 fi
14016 supports_anon_versioning=no
14017 case `$LD -v 2>&1` in
43e02a8a 14018 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
14019 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14020 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14021 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14022 *\ 2.11.*) ;; # other 2.11 versions
14023 *) supports_anon_versioning=yes ;;
14024 esac
14025
14026 # See if GNU ld supports shared libraries.
14027 case $host_os in
4f6bebc3 14028 aix[3-9]*)
1cf3d07d
SE
14029 # On AIX/PPC, the GNU linker is very broken
14030 if test "$host_cpu" != ia64; then
14031 ld_shlibs_FC=no
14032 cat <<_LT_EOF 1>&2
14033
43e02a8a 14034*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
14035*** to be unable to reliably create shared libraries on AIX.
14036*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
14037*** really care for shared libraries, you may want to install binutils
14038*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14039*** You will then need to restart the configuration process.
1cf3d07d
SE
14040
14041_LT_EOF
14042 fi
14043 ;;
14044
14045 amigaos*)
d58dead8
PG
14046 case $host_cpu in
14047 powerpc)
14048 # see comment about AmigaOS4 .so support
14049 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14050 archive_expsym_cmds_FC=''
14051 ;;
14052 m68k)
14053 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)'
14054 hardcode_libdir_flag_spec_FC='-L$libdir'
14055 hardcode_minus_L_FC=yes
14056 ;;
14057 esac
1cf3d07d
SE
14058 ;;
14059
14060 beos*)
14061 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14062 allow_undefined_flag_FC=unsupported
14063 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14064 # support --undefined. This deserves some investigation. FIXME
14065 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14066 else
14067 ld_shlibs_FC=no
14068 fi
14069 ;;
14070
d58dead8 14071 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14072 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14073 # as there is no search path for DLLs.
14074 hardcode_libdir_flag_spec_FC='-L$libdir'
43e02a8a 14075 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
1cf3d07d
SE
14076 allow_undefined_flag_FC=unsupported
14077 always_export_symbols_FC=no
14078 enable_shared_with_static_runtimes_FC=yes
14079 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14080
14081 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14082 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14083 # If the export-symbols file already is a .def file (1st line
14084 # is EXPORTS), use it as is; otherwise, prepend...
14085 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14086 cp $export_symbols $output_objdir/$soname.def;
14087 else
14088 echo EXPORTS > $output_objdir/$soname.def;
14089 cat $export_symbols >> $output_objdir/$soname.def;
14090 fi~
14091 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14092 else
14093 ld_shlibs_FC=no
14094 fi
14095 ;;
14096
43e02a8a
RW
14097 haiku*)
14098 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14099 link_all_deplibs_FC=yes
14100 ;;
14101
1cf3d07d
SE
14102 interix[3-9]*)
14103 hardcode_direct_FC=no
14104 hardcode_shlibpath_var_FC=no
14105 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14106 export_dynamic_flag_spec_FC='${wl}-E'
14107 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14108 # Instead, shared libraries are loaded at an image base (0x10000000 by
14109 # default) and relocated if they conflict, which is a slow very memory
14110 # consuming and fragmenting process. To avoid this, we pick a random,
14111 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14112 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14113 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'
14114 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'
14115 ;;
14116
7a9d3fe8 14117 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
14118 tmp_diet=no
14119 if test "$host_os" = linux-dietlibc; then
14120 case $cc_basename in
14121 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14122 esac
14123 fi
14124 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14125 && test "$tmp_diet" = no
14126 then
a699d672 14127 tmp_addflag=' $pic_flag'
d58dead8 14128 tmp_sharedflag='-shared'
1cf3d07d
SE
14129 case $cc_basename,$host_cpu in
14130 pgcc*) # Portland Group C compiler
43e02a8a 14131 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
14132 tmp_addflag=' $pic_flag'
14133 ;;
43e02a8a
RW
14134 pgf77* | pgf90* | pgf95* | pgfortran*)
14135 # Portland Group f77 and f90 compilers
14136 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
14137 tmp_addflag=' $pic_flag -Mnomain' ;;
14138 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14139 tmp_addflag=' -i_dynamic' ;;
14140 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14141 tmp_addflag=' -i_dynamic -nofor_main' ;;
14142 ifc* | ifort*) # Intel Fortran compiler
14143 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
14144 lf95*) # Lahey Fortran 8.1
14145 whole_archive_flag_spec_FC=
14146 tmp_sharedflag='--shared' ;;
43e02a8a 14147 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
14148 tmp_sharedflag='-qmkshrobj'
14149 tmp_addflag= ;;
43e02a8a
RW
14150 nvcc*) # Cuda Compiler Driver 2.2
14151 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'
14152 compiler_needs_object_FC=yes
14153 ;;
1cf3d07d
SE
14154 esac
14155 case `$CC -V 2>&1 | sed 5q` in
14156 *Sun\ C*) # Sun C 5.9
43e02a8a 14157 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
14158 compiler_needs_object_FC=yes
14159 tmp_sharedflag='-G' ;;
14160 *Sun\ F*) # Sun Fortran 8.3
14161 tmp_sharedflag='-G' ;;
1cf3d07d
SE
14162 esac
14163 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14164
14165 if test "x$supports_anon_versioning" = xyes; then
14166 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14168 echo "local: *; };" >> $output_objdir/$libname.ver~
14169 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14170 fi
d58dead8
PG
14171
14172 case $cc_basename in
43e02a8a 14173 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
14174 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14175 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14176 hardcode_libdir_flag_spec_FC=
14177 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14178 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14179 if test "x$supports_anon_versioning" = xyes; then
14180 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14181 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14182 echo "local: *; };" >> $output_objdir/$libname.ver~
14183 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14184 fi
14185 ;;
14186 esac
1cf3d07d
SE
14187 else
14188 ld_shlibs_FC=no
14189 fi
14190 ;;
14191
14192 netbsd*)
14193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14194 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14195 wlarc=
14196 else
14197 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14198 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14199 fi
14200 ;;
14201
14202 solaris*)
14203 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14204 ld_shlibs_FC=no
14205 cat <<_LT_EOF 1>&2
14206
14207*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14208*** create shared libraries on Solaris systems. Therefore, libtool
14209*** is disabling shared libraries support. We urge you to upgrade GNU
14210*** binutils to release 2.9.1 or newer. Another option is to modify
14211*** your PATH or compiler configuration so that the native linker is
14212*** used, and then restart.
14213
14214_LT_EOF
14215 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14216 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14217 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14218 else
14219 ld_shlibs_FC=no
14220 fi
14221 ;;
14222
14223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14224 case `$LD -v 2>&1` in
14225 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14226 ld_shlibs_FC=no
14227 cat <<_LT_EOF 1>&2
14228
14229*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14230*** reliably create shared libraries on SCO systems. Therefore, libtool
14231*** is disabling shared libraries support. We urge you to upgrade GNU
14232*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14233*** your PATH or compiler configuration so that the native linker is
14234*** used, and then restart.
14235
14236_LT_EOF
14237 ;;
14238 *)
14239 # For security reasons, it is highly recommended that you always
14240 # use absolute paths for naming shared libraries, and exclude the
14241 # DT_RUNPATH tag from executables and libraries. But doing so
14242 # requires that you compile everything twice, which is a pain.
14243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14244 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14245 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14246 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14247 else
14248 ld_shlibs_FC=no
14249 fi
14250 ;;
14251 esac
14252 ;;
14253
14254 sunos4*)
14255 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14256 wlarc=
14257 hardcode_direct_FC=yes
14258 hardcode_shlibpath_var_FC=no
14259 ;;
14260
14261 *)
14262 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14263 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14264 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14265 else
14266 ld_shlibs_FC=no
14267 fi
14268 ;;
14269 esac
14270
14271 if test "$ld_shlibs_FC" = no; then
14272 runpath_var=
14273 hardcode_libdir_flag_spec_FC=
14274 export_dynamic_flag_spec_FC=
14275 whole_archive_flag_spec_FC=
14276 fi
14277 else
14278 # PORTME fill in a description of your system's linker (not GNU ld)
14279 case $host_os in
14280 aix3*)
14281 allow_undefined_flag_FC=unsupported
14282 always_export_symbols_FC=yes
14283 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'
14284 # Note: this linker hardcodes the directories in LIBPATH if there
14285 # are no directories specified by -L.
14286 hardcode_minus_L_FC=yes
14287 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14288 # Neither direct hardcoding nor static linking is supported with a
14289 # broken collect2.
14290 hardcode_direct_FC=unsupported
14291 fi
14292 ;;
14293
4f6bebc3 14294 aix[4-9]*)
1cf3d07d
SE
14295 if test "$host_cpu" = ia64; then
14296 # On IA64, the linker does run time linking by default, so we don't
14297 # have to do anything special.
14298 aix_use_runtimelinking=no
14299 exp_sym_flag='-Bexport'
14300 no_entry_flag=""
14301 else
14302 # If we're using GNU nm, then we don't want the "-C" option.
14303 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
14304 # Also, AIX nm treats weak defined symbols like other global
14305 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 14306 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 14307 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 14308 else
d3ca2257 14309 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
14310 fi
14311 aix_use_runtimelinking=no
14312
14313 # Test if we are trying to use run time linking or normal
14314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14315 # need to do runtime linking.
4f6bebc3 14316 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
14317 for ld_flag in $LDFLAGS; do
14318 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14319 aix_use_runtimelinking=yes
14320 break
14321 fi
14322 done
14323 ;;
14324 esac
14325
14326 exp_sym_flag='-bexport'
14327 no_entry_flag='-bnoentry'
14328 fi
14329
14330 # When large executables or shared objects are built, AIX ld can
14331 # have problems creating the table of contents. If linking a library
14332 # or program results in "error TOC overflow" add -mminimal-toc to
14333 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14334 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14335
14336 archive_cmds_FC=''
14337 hardcode_direct_FC=yes
14338 hardcode_direct_absolute_FC=yes
14339 hardcode_libdir_separator_FC=':'
14340 link_all_deplibs_FC=yes
14341 file_list_spec_FC='${wl}-f,'
14342
14343 if test "$GCC" = yes; then
14344 case $host_os in aix4.[012]|aix4.[012].*)
14345 # We only want to do this on AIX 4.2 and lower, the check
14346 # below for broken collect2 doesn't work under 4.3+
14347 collect2name=`${CC} -print-prog-name=collect2`
14348 if test -f "$collect2name" &&
14349 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14350 then
14351 # We have reworked collect2
14352 :
14353 else
14354 # We have old collect2
14355 hardcode_direct_FC=unsupported
14356 # It fails to find uninstalled libraries when the uninstalled
14357 # path is not listed in the libpath. Setting hardcode_minus_L
14358 # to unsupported forces relinking
14359 hardcode_minus_L_FC=yes
14360 hardcode_libdir_flag_spec_FC='-L$libdir'
14361 hardcode_libdir_separator_FC=
14362 fi
14363 ;;
14364 esac
14365 shared_flag='-shared'
14366 if test "$aix_use_runtimelinking" = yes; then
14367 shared_flag="$shared_flag "'${wl}-G'
14368 fi
14369 else
14370 # not using gcc
14371 if test "$host_cpu" = ia64; then
14372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14373 # chokes on -Wl,-G. The following line is correct:
14374 shared_flag='-G'
14375 else
14376 if test "$aix_use_runtimelinking" = yes; then
14377 shared_flag='${wl}-G'
14378 else
14379 shared_flag='${wl}-bM:SRE'
14380 fi
14381 fi
14382 fi
14383
d58dead8 14384 export_dynamic_flag_spec_FC='${wl}-bexpall'
1cf3d07d
SE
14385 # It seems that -bexpall does not export symbols beginning with
14386 # underscore (_), so it is better to generate a list of symbols to export.
14387 always_export_symbols_FC=yes
14388 if test "$aix_use_runtimelinking" = yes; then
14389 # Warning - without using the other runtime loading flags (-brtl),
14390 # -berok will link without error, but may produce a broken library.
14391 allow_undefined_flag_FC='-berok'
14392 # Determine the default libpath from the value encoded in an
14393 # empty executable.
14394 if test x$gcc_no_link = xyes; then
5213506e 14395 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14396fi
5213506e 14397cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14398 program main
14399
14400 end
14401_ACEOF
5213506e 14402if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14403
14404lt_aix_libpath_sed='
14405 /Import File Strings/,/^$/ {
14406 /^0/ {
14407 s/^0 *\(.*\)$/\1/
14408 p
14409 }
14410 }'
14411aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14412# Check for a 64-bit object if we didn't find anything.
14413if test -z "$aix_libpath"; then
14414 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14415fi
1cf3d07d 14416fi
5213506e
RW
14417rm -f core conftest.err conftest.$ac_objext \
14418 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14419if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14420
14421 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 14422 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
14423 else
14424 if test "$host_cpu" = ia64; then
14425 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14426 allow_undefined_flag_FC="-z nodefs"
14427 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"
14428 else
14429 # Determine the default libpath from the value encoded in an
14430 # empty executable.
14431 if test x$gcc_no_link = xyes; then
5213506e 14432 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14433fi
5213506e 14434cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14435 program main
14436
14437 end
14438_ACEOF
5213506e 14439if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14440
14441lt_aix_libpath_sed='
14442 /Import File Strings/,/^$/ {
14443 /^0/ {
14444 s/^0 *\(.*\)$/\1/
14445 p
14446 }
14447 }'
14448aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14449# Check for a 64-bit object if we didn't find anything.
14450if test -z "$aix_libpath"; then
14451 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14452fi
1cf3d07d 14453fi
5213506e
RW
14454rm -f core conftest.err conftest.$ac_objext \
14455 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14457
14458 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14459 # Warning - without using the other run time loading flags,
14460 # -berok will link without error, but may produce a broken library.
14461 no_undefined_flag_FC=' ${wl}-bernotok'
14462 allow_undefined_flag_FC=' ${wl}-berok'
43e02a8a
RW
14463 if test "$with_gnu_ld" = yes; then
14464 # We only use this code for GNU lds that support --whole-archive.
14465 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14466 else
14467 # Exported symbols can be pulled into shared objects from archives
14468 whole_archive_flag_spec_FC='$convenience'
14469 fi
1cf3d07d
SE
14470 archive_cmds_need_lc_FC=yes
14471 # This is similar to how AIX traditionally builds its shared libraries.
14472 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'
14473 fi
14474 fi
14475 ;;
14476
14477 amigaos*)
d58dead8
PG
14478 case $host_cpu in
14479 powerpc)
14480 # see comment about AmigaOS4 .so support
14481 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14482 archive_expsym_cmds_FC=''
14483 ;;
14484 m68k)
14485 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)'
14486 hardcode_libdir_flag_spec_FC='-L$libdir'
14487 hardcode_minus_L_FC=yes
14488 ;;
14489 esac
1cf3d07d
SE
14490 ;;
14491
14492 bsdi[45]*)
14493 export_dynamic_flag_spec_FC=-rdynamic
14494 ;;
14495
d58dead8 14496 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14497 # When not using gcc, we currently assume that we are using
14498 # Microsoft Visual C++.
14499 # hardcode_libdir_flag_spec is actually meaningless, as there is
14500 # no search path for DLLs.
14501 hardcode_libdir_flag_spec_FC=' '
14502 allow_undefined_flag_FC=unsupported
14503 # Tell ltmain to make .lib files, not .a files.
14504 libext=lib
14505 # Tell ltmain to make .dll files, not .so files.
14506 shrext_cmds=".dll"
14507 # FIXME: Setting linknames here is a bad hack.
43e02a8a 14508 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
14509 # The linker will automatically build a .lib file if we build a DLL.
14510 old_archive_from_new_cmds_FC='true'
14511 # FIXME: Should let the user specify the lib program.
14512 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14513 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14514 enable_shared_with_static_runtimes_FC=yes
14515 ;;
14516
14517 darwin* | rhapsody*)
1cf3d07d 14518
d58dead8
PG
14519
14520 archive_cmds_need_lc_FC=no
14521 hardcode_direct_FC=no
14522 hardcode_automatic_FC=yes
14523 hardcode_shlibpath_var_FC=unsupported
43e02a8a
RW
14524 if test "$lt_cv_ld_force_load" = "yes"; then
14525 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\"`'
14526 else
14527 whole_archive_flag_spec_FC=''
14528 fi
d58dead8
PG
14529 link_all_deplibs_FC=yes
14530 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14531 case $cc_basename in
14532 ifort*) _lt_dar_can_shared=yes ;;
14533 *) _lt_dar_can_shared=$GCC ;;
14534 esac
14535 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 14536 output_verbose_link_cmd=func_echo_all
d58dead8
PG
14537 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}"
14538 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14539 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}"
14540 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}"
14541
14542 else
14543 ld_shlibs_FC=no
14544 fi
14545
1cf3d07d
SE
14546 ;;
14547
14548 dgux*)
14549 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550 hardcode_libdir_flag_spec_FC='-L$libdir'
14551 hardcode_shlibpath_var_FC=no
14552 ;;
14553
1cf3d07d
SE
14554 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14555 # support. Future versions do this automatically, but an explicit c++rt0.o
14556 # does not break anything, and helps significantly (at the cost of a little
14557 # extra space).
14558 freebsd2.2*)
14559 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14560 hardcode_libdir_flag_spec_FC='-R$libdir'
14561 hardcode_direct_FC=yes
14562 hardcode_shlibpath_var_FC=no
14563 ;;
14564
14565 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 14566 freebsd2.*)
1cf3d07d
SE
14567 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14568 hardcode_direct_FC=yes
14569 hardcode_minus_L_FC=yes
14570 hardcode_shlibpath_var_FC=no
14571 ;;
14572
14573 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14574 freebsd* | dragonfly*)
14575 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14576 hardcode_libdir_flag_spec_FC='-R$libdir'
14577 hardcode_direct_FC=yes
14578 hardcode_shlibpath_var_FC=no
14579 ;;
14580
14581 hpux9*)
14582 if test "$GCC" = yes; then
14583 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'
14584 else
14585 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'
14586 fi
14587 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14588 hardcode_libdir_separator_FC=:
14589 hardcode_direct_FC=yes
14590
14591 # hardcode_minus_L: Not really in the search PATH,
14592 # but as the default location of the library.
14593 hardcode_minus_L_FC=yes
14594 export_dynamic_flag_spec_FC='${wl}-E'
14595 ;;
14596
14597 hpux10*)
43e02a8a 14598 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14599 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14600 else
14601 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14602 fi
14603 if test "$with_gnu_ld" = no; then
14604 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14605 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14606 hardcode_libdir_separator_FC=:
14607 hardcode_direct_FC=yes
14608 hardcode_direct_absolute_FC=yes
14609 export_dynamic_flag_spec_FC='${wl}-E'
14610 # hardcode_minus_L: Not really in the search PATH,
14611 # but as the default location of the library.
14612 hardcode_minus_L_FC=yes
14613 fi
14614 ;;
14615
14616 hpux11*)
43e02a8a 14617 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14618 case $host_cpu in
14619 hppa*64*)
14620 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14621 ;;
14622 ia64*)
d58dead8 14623 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14624 ;;
14625 *)
14626 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14627 ;;
14628 esac
14629 else
14630 case $host_cpu in
14631 hppa*64*)
14632 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14633 ;;
14634 ia64*)
14635 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14636 ;;
14637 *)
43e02a8a 14638 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14639 ;;
14640 esac
14641 fi
14642 if test "$with_gnu_ld" = no; then
14643 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14644 hardcode_libdir_separator_FC=:
14645
14646 case $host_cpu in
14647 hppa*64*|ia64*)
14648 hardcode_direct_FC=no
14649 hardcode_shlibpath_var_FC=no
14650 ;;
14651 *)
14652 hardcode_direct_FC=yes
14653 hardcode_direct_absolute_FC=yes
14654 export_dynamic_flag_spec_FC='${wl}-E'
14655
14656 # hardcode_minus_L: Not really in the search PATH,
14657 # but as the default location of the library.
14658 hardcode_minus_L_FC=yes
14659 ;;
14660 esac
14661 fi
14662 ;;
14663
14664 irix5* | irix6* | nonstopux*)
14665 if test "$GCC" = yes; then
43e02a8a 14666 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
14667 # Try to use the -exported_symbol ld option, if it does not
14668 # work, assume that -exports_file does not work either and
14669 # implicitly export all symbols.
14670 save_LDFLAGS="$LDFLAGS"
14671 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14672 if test x$gcc_no_link = xyes; then
5213506e 14673 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14674fi
5213506e 14675cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14676int foo(void) {}
14677_ACEOF
5213506e 14678if ac_fn_fc_try_link "$LINENO"; then :
43e02a8a 14679 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 14680
1cf3d07d 14681fi
5213506e
RW
14682rm -f core conftest.err conftest.$ac_objext \
14683 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14684 LDFLAGS="$save_LDFLAGS"
14685 else
43e02a8a
RW
14686 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'
14687 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
14688 fi
14689 archive_cmds_need_lc_FC='no'
14690 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14691 hardcode_libdir_separator_FC=:
14692 inherit_rpath_FC=yes
14693 link_all_deplibs_FC=yes
14694 ;;
14695
14696 netbsd*)
14697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14698 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14699 else
14700 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14701 fi
14702 hardcode_libdir_flag_spec_FC='-R$libdir'
14703 hardcode_direct_FC=yes
14704 hardcode_shlibpath_var_FC=no
14705 ;;
14706
14707 newsos6)
14708 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14709 hardcode_direct_FC=yes
14710 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14711 hardcode_libdir_separator_FC=:
14712 hardcode_shlibpath_var_FC=no
14713 ;;
14714
14715 *nto* | *qnx*)
14716 ;;
14717
14718 openbsd*)
d58dead8
PG
14719 if test -f /usr/libexec/ld.so; then
14720 hardcode_direct_FC=yes
14721 hardcode_shlibpath_var_FC=no
14722 hardcode_direct_absolute_FC=yes
14723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 14724 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 14725 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 14726 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
d58dead8
PG
14727 export_dynamic_flag_spec_FC='${wl}-E'
14728 else
14729 case $host_os in
14730 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14731 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14732 hardcode_libdir_flag_spec_FC='-R$libdir'
14733 ;;
14734 *)
14735 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14736 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14737 ;;
14738 esac
14739 fi
14740 else
14741 ld_shlibs_FC=no
1cf3d07d
SE
14742 fi
14743 ;;
14744
14745 os2*)
14746 hardcode_libdir_flag_spec_FC='-L$libdir'
14747 hardcode_minus_L_FC=yes
14748 allow_undefined_flag_FC=unsupported
43e02a8a 14749 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
14750 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14751 ;;
14752
14753 osf3*)
14754 if test "$GCC" = yes; then
14755 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14756 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
14757 else
14758 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 14759 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
14760 fi
14761 archive_cmds_need_lc_FC='no'
14762 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14763 hardcode_libdir_separator_FC=:
14764 ;;
14765
14766 osf4* | osf5*) # as osf3* with the addition of -msym flag
14767 if test "$GCC" = yes; then
14768 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14769 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
14770 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14771 else
14772 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 14773 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 14774 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 14775 $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
14776
14777 # Both c and cxx compiler support -rpath directly
14778 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14779 fi
14780 archive_cmds_need_lc_FC='no'
14781 hardcode_libdir_separator_FC=:
14782 ;;
14783
14784 solaris*)
14785 no_undefined_flag_FC=' -z defs'
14786 if test "$GCC" = yes; then
14787 wlarc='${wl}'
14788 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14789 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14790 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14791 else
14792 case `$CC -V 2>&1` in
14793 *"Compilers 5.0"*)
14794 wlarc=''
14795 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14796 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14798 ;;
14799 *)
14800 wlarc='${wl}'
14801 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14802 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14803 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14804 ;;
14805 esac
14806 fi
14807 hardcode_libdir_flag_spec_FC='-R$libdir'
14808 hardcode_shlibpath_var_FC=no
14809 case $host_os in
14810 solaris2.[0-5] | solaris2.[0-5].*) ;;
14811 *)
14812 # The compiler driver will combine and reorder linker options,
14813 # but understands `-z linker_flag'. GCC discards it without `$wl',
14814 # but is careful enough not to reorder.
14815 # Supported since Solaris 2.6 (maybe 2.5.1?)
14816 if test "$GCC" = yes; then
14817 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14818 else
14819 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14820 fi
14821 ;;
14822 esac
14823 link_all_deplibs_FC=yes
14824 ;;
14825
14826 sunos4*)
14827 if test "x$host_vendor" = xsequent; then
14828 # Use $CC to link under sequent, because it throws in some extra .o
14829 # files that make .init and .fini sections work.
14830 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14831 else
14832 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14833 fi
14834 hardcode_libdir_flag_spec_FC='-L$libdir'
14835 hardcode_direct_FC=yes
14836 hardcode_minus_L_FC=yes
14837 hardcode_shlibpath_var_FC=no
14838 ;;
14839
14840 sysv4)
14841 case $host_vendor in
14842 sni)
14843 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14844 hardcode_direct_FC=yes # is this really true???
14845 ;;
14846 siemens)
14847 ## LD is ld it makes a PLAMLIB
14848 ## CC just makes a GrossModule.
14849 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14850 reload_cmds_FC='$CC -r -o $output$reload_objs'
14851 hardcode_direct_FC=no
14852 ;;
14853 motorola)
14854 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14855 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14856 ;;
14857 esac
14858 runpath_var='LD_RUN_PATH'
14859 hardcode_shlibpath_var_FC=no
14860 ;;
14861
14862 sysv4.3*)
14863 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14864 hardcode_shlibpath_var_FC=no
14865 export_dynamic_flag_spec_FC='-Bexport'
14866 ;;
14867
14868 sysv4*MP*)
14869 if test -d /usr/nec; then
14870 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14871 hardcode_shlibpath_var_FC=no
14872 runpath_var=LD_RUN_PATH
14873 hardcode_runpath_var=yes
14874 ld_shlibs_FC=yes
14875 fi
14876 ;;
14877
14878 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14879 no_undefined_flag_FC='${wl}-z,text'
14880 archive_cmds_need_lc_FC=no
14881 hardcode_shlibpath_var_FC=no
14882 runpath_var='LD_RUN_PATH'
14883
14884 if test "$GCC" = yes; then
14885 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14886 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14887 else
14888 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14889 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14890 fi
14891 ;;
14892
14893 sysv5* | sco3.2v5* | sco5v6*)
14894 # Note: We can NOT use -z defs as we might desire, because we do not
14895 # link with -lc, and that would cause any symbols used from libc to
14896 # always be unresolved, which means just about no library would
14897 # ever link correctly. If we're not using GNU ld we use -z text
14898 # though, which does catch some bad symbols but isn't as heavy-handed
14899 # as -z defs.
14900 no_undefined_flag_FC='${wl}-z,text'
14901 allow_undefined_flag_FC='${wl}-z,nodefs'
14902 archive_cmds_need_lc_FC=no
14903 hardcode_shlibpath_var_FC=no
14904 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14905 hardcode_libdir_separator_FC=':'
14906 link_all_deplibs_FC=yes
14907 export_dynamic_flag_spec_FC='${wl}-Bexport'
14908 runpath_var='LD_RUN_PATH'
14909
14910 if test "$GCC" = yes; then
14911 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14912 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14913 else
14914 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14915 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916 fi
14917 ;;
14918
14919 uts4*)
14920 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14921 hardcode_libdir_flag_spec_FC='-L$libdir'
14922 hardcode_shlibpath_var_FC=no
14923 ;;
14924
14925 *)
14926 ld_shlibs_FC=no
14927 ;;
14928 esac
14929
14930 if test x$host_vendor = xsni; then
14931 case $host in
14932 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14933 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14934 ;;
14935 esac
14936 fi
14937 fi
14938
5213506e
RW
14939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14940$as_echo "$ld_shlibs_FC" >&6; }
1cf3d07d
SE
14941test "$ld_shlibs_FC" = no && can_build_shared=no
14942
14943with_gnu_ld_FC=$with_gnu_ld
14944
14945
14946
14947
14948
14949
14950#
14951# Do we need to explicitly link libc?
14952#
14953case "x$archive_cmds_need_lc_FC" in
14954x|xyes)
14955 # Assume -lc should be added
14956 archive_cmds_need_lc_FC=yes
14957
14958 if test "$enable_shared" = yes && test "$GCC" = yes; then
14959 case $archive_cmds_FC in
14960 *'~'*)
14961 # FIXME: we may have to deal with multi-command sequences.
14962 ;;
14963 '$CC '*)
14964 # Test whether the compiler implicitly links with -lc since on some
14965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14966 # to ld, don't add -lc before -lgcc.
5213506e
RW
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14968$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14969if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14970 $as_echo_n "(cached) " >&6
baafc534
RW
14971else
14972 $RM conftest*
14973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 14974
5213506e 14975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
14976 (eval $ac_compile) 2>&5
14977 ac_status=$?
5213506e
RW
14978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14979 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
14980 soname=conftest
14981 lib=conftest
14982 libobjs=conftest.$ac_objext
14983 deplibs=
14984 wl=$lt_prog_compiler_wl_FC
14985 pic_flag=$lt_prog_compiler_pic_FC
14986 compiler_flags=-v
14987 linker_flags=-v
14988 verstring=
14989 output_objdir=.
14990 libname=conftest
14991 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14992 allow_undefined_flag_FC=
5213506e 14993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 14994 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9cdc381b 14995 ac_status=$?
5213506e
RW
14996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14997 test $ac_status = 0; }
baafc534
RW
14998 then
14999 lt_cv_archive_cmds_need_lc_FC=no
15000 else
15001 lt_cv_archive_cmds_need_lc_FC=yes
15002 fi
15003 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15004 else
15005 cat conftest.err 1>&5
15006 fi
15007 $RM conftest*
15008
15009fi
5213506e
RW
15010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15011$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
baafc534 15012 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
1cf3d07d
SE
15013 ;;
15014 esac
15015 fi
15016 ;;
15017esac
9cdc381b 15018
9cdc381b 15019
1cf3d07d
SE
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
5213506e
RW
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15083$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8 15084
1cf3d07d
SE
15085library_names_spec=
15086libname_spec='lib$name'
15087soname_spec=
15088shrext_cmds=".so"
15089postinstall_cmds=
15090postuninstall_cmds=
15091finish_cmds=
15092finish_eval=
15093shlibpath_var=
15094shlibpath_overrides_runpath=unknown
15095version_type=none
15096dynamic_linker="$host_os ld.so"
15097sys_lib_dlsearch_path_spec="/lib /usr/lib"
15098need_lib_prefix=unknown
15099hardcode_into_libs=no
15100
15101# when you set need_version to no, make sure it does not cause -set_version
15102# flags to be left without arguments
15103need_version=unknown
15104
15105case $host_os in
15106aix3*)
15107 version_type=linux
15108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15109 shlibpath_var=LIBPATH
15110
15111 # AIX 3 has no versioning support, so we append a major version to the name.
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 ;;
15114
4f6bebc3 15115aix[4-9]*)
1cf3d07d
SE
15116 version_type=linux
15117 need_lib_prefix=no
15118 need_version=no
15119 hardcode_into_libs=yes
15120 if test "$host_cpu" = ia64; then
15121 # AIX 5 supports IA64
15122 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 else
15125 # With GCC up to 2.95.x, collect2 would create an import file
15126 # for dependence libraries. The import file would start with
15127 # the line `#! .'. This would cause the generated library to
15128 # depend on `.', always an invalid library. This was fixed in
15129 # development snapshots of GCC prior to 3.0.
15130 case $host_os in
15131 aix4 | aix4.[01] | aix4.[01].*)
15132 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15133 echo ' yes '
15134 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15135 :
15136 else
15137 can_build_shared=no
15138 fi
15139 ;;
15140 esac
15141 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15142 # soname into executable. Probably we can add versioning support to
15143 # collect2, so additional links can be useful in future.
15144 if test "$aix_use_runtimelinking" = yes; then
15145 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15146 # instead of lib<name>.a to let people know that these are not
15147 # typical AIX shared libraries.
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 else
15150 # We preserve .a as extension for shared libraries through AIX4.2
15151 # and later when we are not doing run time linking.
15152 library_names_spec='${libname}${release}.a $libname.a'
15153 soname_spec='${libname}${release}${shared_ext}$major'
15154 fi
15155 shlibpath_var=LIBPATH
15156 fi
15157 ;;
15158
15159amigaos*)
d58dead8
PG
15160 case $host_cpu in
15161 powerpc)
15162 # Since July 2007 AmigaOS4 officially supports .so libraries.
15163 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165 ;;
15166 m68k)
1cf3d07d
SE
15167 library_names_spec='$libname.ixlibrary $libname.a'
15168 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 15169 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
15170 ;;
15171 esac
1cf3d07d
SE
15172 ;;
15173
15174beos*)
15175 library_names_spec='${libname}${shared_ext}'
15176 dynamic_linker="$host_os ld.so"
15177 shlibpath_var=LIBRARY_PATH
15178 ;;
15179
15180bsdi[45]*)
15181 version_type=linux
15182 need_version=no
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15186 shlibpath_var=LD_LIBRARY_PATH
15187 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15188 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15189 # the default ld.so.conf also contains /usr/contrib/lib and
15190 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15191 # libtool to hard-code these into programs
15192 ;;
15193
d58dead8 15194cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
15195 version_type=windows
15196 shrext_cmds=".dll"
15197 need_version=no
15198 need_lib_prefix=no
15199
d58dead8
PG
15200 case $GCC,$host_os in
15201 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
15202 library_names_spec='$libname.dll.a'
15203 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15204 postinstall_cmds='base_file=`basename \${file}`~
15205 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15206 dldir=$destdir/`dirname \$dlpath`~
15207 test -d \$dldir || mkdir -p \$dldir~
15208 $install_prog $dir/$dlname \$dldir/$dlname~
15209 chmod a+x \$dldir/$dlname~
15210 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15211 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15212 fi'
15213 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15214 dlpath=$dir/\$dldll~
15215 $RM \$dlpath'
15216 shlibpath_overrides_runpath=yes
15217
15218 case $host_os in
15219 cygwin*)
15220 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15221 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 15222
1cf3d07d 15223 ;;
d58dead8 15224 mingw* | cegcc*)
1cf3d07d
SE
15225 # MinGW DLLs use traditional 'lib' prefix
15226 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
15227 ;;
15228 pw32*)
15229 # pw32 DLLs use 'pw' prefix rather than 'lib'
15230 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15231 ;;
15232 esac
15233 ;;
15234
15235 *)
15236 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15237 ;;
15238 esac
15239 dynamic_linker='Win32 ld.exe'
15240 # FIXME: first we should search . and the directory the executable is in
15241 shlibpath_var=PATH
15242 ;;
15243
15244darwin* | rhapsody*)
15245 dynamic_linker="$host_os dyld"
15246 version_type=darwin
15247 need_lib_prefix=no
15248 need_version=no
15249 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15250 soname_spec='${libname}${release}${major}$shared_ext'
15251 shlibpath_overrides_runpath=yes
15252 shlibpath_var=DYLD_LIBRARY_PATH
15253 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15254
15255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15256 ;;
15257
15258dgux*)
15259 version_type=linux
15260 need_lib_prefix=no
15261 need_version=no
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 ;;
15266
1cf3d07d
SE
15267freebsd* | dragonfly*)
15268 # DragonFly does not have aout. When/if they implement a new
15269 # versioning mechanism, adjust this.
15270 if test -x /usr/bin/objformat; then
15271 objformat=`/usr/bin/objformat`
15272 else
15273 case $host_os in
c6084f68 15274 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
15275 *) objformat=elf ;;
15276 esac
15277 fi
15278 version_type=freebsd-$objformat
15279 case $version_type in
15280 freebsd-elf*)
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15282 need_version=no
15283 need_lib_prefix=no
15284 ;;
15285 freebsd-*)
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15287 need_version=yes
15288 ;;
15289 esac
15290 shlibpath_var=LD_LIBRARY_PATH
15291 case $host_os in
c6084f68 15292 freebsd2.*)
1cf3d07d
SE
15293 shlibpath_overrides_runpath=yes
15294 ;;
15295 freebsd3.[01]* | freebsdelf3.[01]*)
15296 shlibpath_overrides_runpath=yes
15297 hardcode_into_libs=yes
15298 ;;
15299 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15300 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15301 shlibpath_overrides_runpath=no
15302 hardcode_into_libs=yes
15303 ;;
15304 *) # from 4.6 on, and DragonFly
15305 shlibpath_overrides_runpath=yes
15306 hardcode_into_libs=yes
15307 ;;
15308 esac
15309 ;;
15310
15311gnu*)
15312 version_type=linux
15313 need_lib_prefix=no
15314 need_version=no
15315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15316 soname_spec='${libname}${release}${shared_ext}$major'
15317 shlibpath_var=LD_LIBRARY_PATH
15318 hardcode_into_libs=yes
15319 ;;
15320
43e02a8a
RW
15321haiku*)
15322 version_type=linux
15323 need_lib_prefix=no
15324 need_version=no
15325 dynamic_linker="$host_os runtime_loader"
15326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15327 soname_spec='${libname}${release}${shared_ext}$major'
15328 shlibpath_var=LIBRARY_PATH
15329 shlibpath_overrides_runpath=yes
15330 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15331 hardcode_into_libs=yes
15332 ;;
15333
1cf3d07d
SE
15334hpux9* | hpux10* | hpux11*)
15335 # Give a soname corresponding to the major version so that dld.sl refuses to
15336 # link against other versions.
15337 version_type=sunos
15338 need_lib_prefix=no
15339 need_version=no
15340 case $host_cpu in
15341 ia64*)
15342 shrext_cmds='.so'
15343 hardcode_into_libs=yes
15344 dynamic_linker="$host_os dld.so"
15345 shlibpath_var=LD_LIBRARY_PATH
15346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348 soname_spec='${libname}${release}${shared_ext}$major'
15349 if test "X$HPUX_IA64_MODE" = X32; then
15350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15351 else
15352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15353 fi
15354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15355 ;;
15356 hppa*64*)
15357 shrext_cmds='.sl'
15358 hardcode_into_libs=yes
15359 dynamic_linker="$host_os dld.sl"
15360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15363 soname_spec='${libname}${release}${shared_ext}$major'
15364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15366 ;;
15367 *)
15368 shrext_cmds='.sl'
15369 dynamic_linker="$host_os dld.sl"
15370 shlibpath_var=SHLIB_PATH
15371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 ;;
15375 esac
43e02a8a 15376 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 15377 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
15378 # or fails outright, so override atomically:
15379 install_override_mode=555
1cf3d07d
SE
15380 ;;
15381
15382interix[3-9]*)
15383 version_type=linux
15384 need_lib_prefix=no
15385 need_version=no
15386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15387 soname_spec='${libname}${release}${shared_ext}$major'
15388 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15389 shlibpath_var=LD_LIBRARY_PATH
15390 shlibpath_overrides_runpath=no
15391 hardcode_into_libs=yes
15392 ;;
15393
15394irix5* | irix6* | nonstopux*)
15395 case $host_os in
15396 nonstopux*) version_type=nonstopux ;;
15397 *)
15398 if test "$lt_cv_prog_gnu_ld" = yes; then
15399 version_type=linux
15400 else
15401 version_type=irix
15402 fi ;;
15403 esac
15404 need_lib_prefix=no
15405 need_version=no
15406 soname_spec='${libname}${release}${shared_ext}$major'
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15408 case $host_os in
15409 irix5* | nonstopux*)
15410 libsuff= shlibsuff=
15411 ;;
15412 *)
15413 case $LD in # libtool.m4 will add one of these switches to LD
15414 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15415 libsuff= shlibsuff= libmagic=32-bit;;
15416 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15417 libsuff=32 shlibsuff=N32 libmagic=N32;;
15418 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15419 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15420 *) libsuff= shlibsuff= libmagic=never-match;;
15421 esac
15422 ;;
15423 esac
15424 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15425 shlibpath_overrides_runpath=no
15426 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15427 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15428 hardcode_into_libs=yes
15429 ;;
15430
15431# No shared lib support for Linux oldld, aout, or coff.
15432linux*oldld* | linux*aout* | linux*coff*)
15433 dynamic_linker=no
15434 ;;
15435
15436# This must be Linux ELF.
7a9d3fe8 15437linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
15438 version_type=linux
15439 need_lib_prefix=no
15440 need_version=no
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442 soname_spec='${libname}${release}${shared_ext}$major'
15443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15444 shlibpath_var=LD_LIBRARY_PATH
15445 shlibpath_overrides_runpath=no
baafc534 15446
1cf3d07d 15447 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
15448 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15449 $as_echo_n "(cached) " >&6
baafc534
RW
15450else
15451 lt_cv_shlibpath_overrides_runpath=no
15452 save_LDFLAGS=$LDFLAGS
15453 save_libdir=$libdir
15454 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15455 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15456 if test x$gcc_no_link = xyes; then
5213506e 15457 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15458fi
5213506e 15459cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15460 program main
15461
15462 end
9cdc381b 15463_ACEOF
5213506e
RW
15464if ac_fn_fc_try_link "$LINENO"; then :
15465 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 15466 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 15467fi
9cdc381b 15468fi
5213506e
RW
15469rm -f core conftest.err conftest.$ac_objext \
15470 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
15471 LDFLAGS=$save_LDFLAGS
15472 libdir=$save_libdir
15473
15474fi
15475
15476 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
15477
15478 # This implies no fast_install, which is unacceptable.
15479 # Some rework will be needed to allow for fast_install
15480 # before this can be enabled.
15481 hardcode_into_libs=yes
15482
15483 # Append ld.so.conf contents to the search path
15484 if test -f /etc/ld.so.conf; then
43e02a8a 15485 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
15486 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15487 fi
15488
15489 # We used to test for /lib/ld.so.1 and disable shared libraries on
15490 # powerpc, because MkLinux only supported shared libraries with the
15491 # GNU dynamic linker. Since this was broken with cross compilers,
15492 # most powerpc-linux boxes support dynamic linking these days and
15493 # people can always --disable-shared, the test was removed, and we
15494 # assume the GNU/Linux dynamic linker is in use.
15495 dynamic_linker='GNU/Linux ld.so'
15496 ;;
15497
15498netbsd*)
15499 version_type=sunos
15500 need_lib_prefix=no
15501 need_version=no
15502 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15505 dynamic_linker='NetBSD (a.out) ld.so'
15506 else
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15508 soname_spec='${libname}${release}${shared_ext}$major'
15509 dynamic_linker='NetBSD ld.elf_so'
15510 fi
15511 shlibpath_var=LD_LIBRARY_PATH
15512 shlibpath_overrides_runpath=yes
15513 hardcode_into_libs=yes
15514 ;;
15515
15516newsos6)
15517 version_type=linux
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519 shlibpath_var=LD_LIBRARY_PATH
15520 shlibpath_overrides_runpath=yes
15521 ;;
15522
15523*nto* | *qnx*)
15524 version_type=qnx
15525 need_lib_prefix=no
15526 need_version=no
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528 soname_spec='${libname}${release}${shared_ext}$major'
15529 shlibpath_var=LD_LIBRARY_PATH
15530 shlibpath_overrides_runpath=no
15531 hardcode_into_libs=yes
15532 dynamic_linker='ldqnx.so'
15533 ;;
15534
15535openbsd*)
15536 version_type=sunos
15537 sys_lib_dlsearch_path_spec="/usr/lib"
15538 need_lib_prefix=no
15539 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15540 case $host_os in
15541 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15542 *) need_version=no ;;
15543 esac
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15548 case $host_os in
15549 openbsd2.[89] | openbsd2.[89].*)
15550 shlibpath_overrides_runpath=no
15551 ;;
15552 *)
15553 shlibpath_overrides_runpath=yes
15554 ;;
15555 esac
15556 else
15557 shlibpath_overrides_runpath=yes
15558 fi
15559 ;;
15560
15561os2*)
15562 libname_spec='$name'
15563 shrext_cmds=".dll"
15564 need_lib_prefix=no
15565 library_names_spec='$libname${shared_ext} $libname.a'
15566 dynamic_linker='OS/2 ld.exe'
15567 shlibpath_var=LIBPATH
15568 ;;
15569
15570osf3* | osf4* | osf5*)
15571 version_type=osf
15572 need_lib_prefix=no
15573 need_version=no
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576 shlibpath_var=LD_LIBRARY_PATH
15577 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15578 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15579 ;;
15580
15581rdos*)
15582 dynamic_linker=no
15583 ;;
15584
15585solaris*)
15586 version_type=linux
15587 need_lib_prefix=no
15588 need_version=no
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590 soname_spec='${libname}${release}${shared_ext}$major'
15591 shlibpath_var=LD_LIBRARY_PATH
15592 shlibpath_overrides_runpath=yes
15593 hardcode_into_libs=yes
15594 # ldd complains unless libraries are executable
15595 postinstall_cmds='chmod +x $lib'
15596 ;;
15597
15598sunos4*)
15599 version_type=sunos
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15601 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15602 shlibpath_var=LD_LIBRARY_PATH
15603 shlibpath_overrides_runpath=yes
15604 if test "$with_gnu_ld" = yes; then
15605 need_lib_prefix=no
15606 fi
15607 need_version=yes
15608 ;;
15609
15610sysv4 | sysv4.3*)
15611 version_type=linux
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 soname_spec='${libname}${release}${shared_ext}$major'
15614 shlibpath_var=LD_LIBRARY_PATH
15615 case $host_vendor in
15616 sni)
15617 shlibpath_overrides_runpath=no
15618 need_lib_prefix=no
15619 runpath_var=LD_RUN_PATH
15620 ;;
15621 siemens)
15622 need_lib_prefix=no
15623 ;;
15624 motorola)
15625 need_lib_prefix=no
15626 need_version=no
15627 shlibpath_overrides_runpath=no
15628 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15629 ;;
15630 esac
15631 ;;
15632
15633sysv4*MP*)
15634 if test -d /usr/nec ;then
15635 version_type=linux
15636 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15637 soname_spec='$libname${shared_ext}.$major'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 fi
15640 ;;
15641
15642sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15643 version_type=freebsd-elf
15644 need_lib_prefix=no
15645 need_version=no
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15647 soname_spec='${libname}${release}${shared_ext}$major'
15648 shlibpath_var=LD_LIBRARY_PATH
15649 shlibpath_overrides_runpath=yes
15650 hardcode_into_libs=yes
15651 if test "$with_gnu_ld" = yes; then
15652 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15653 else
15654 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15655 case $host_os in
15656 sco3.2v5*)
15657 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15658 ;;
15659 esac
15660 fi
15661 sys_lib_dlsearch_path_spec='/usr/lib'
15662 ;;
15663
15664tpf*)
15665 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15666 version_type=linux
15667 need_lib_prefix=no
15668 need_version=no
d58dead8 15669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
15670 shlibpath_var=LD_LIBRARY_PATH
15671 shlibpath_overrides_runpath=no
15672 hardcode_into_libs=yes
15673 ;;
15674
15675uts4*)
15676 version_type=linux
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678 soname_spec='${libname}${release}${shared_ext}$major'
15679 shlibpath_var=LD_LIBRARY_PATH
15680 ;;
15681
15682*)
15683 dynamic_linker=no
15684 ;;
15685esac
5213506e
RW
15686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15687$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
15688test "$dynamic_linker" = no && can_build_shared=no
15689
15690variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15691if test "$GCC" = yes; then
15692 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9cdc381b 15693fi
9cdc381b 15694
d58dead8
PG
15695if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15696 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15697fi
15698if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15699 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15700fi
15701
9cdc381b 15702
1cf3d07d
SE
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
43e02a8a
RW
15734
15735
1cf3d07d
SE
15736
15737
15738
5213506e
RW
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15740$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
15741hardcode_action_FC=
15742if test -n "$hardcode_libdir_flag_spec_FC" ||
15743 test -n "$runpath_var_FC" ||
15744 test "X$hardcode_automatic_FC" = "Xyes" ; then
15745
15746 # We can hardcode non-existent directories.
15747 if test "$hardcode_direct_FC" != no &&
15748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15749 # have to relink, otherwise we might link with an installed library
15750 # when we should be linking with a yet-to-be-installed one
15751 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15752 test "$hardcode_minus_L_FC" != no; then
15753 # Linking always hardcodes the temporary library directory.
15754 hardcode_action_FC=relink
15755 else
15756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15757 hardcode_action_FC=immediate
15758 fi
15759else
15760 # We cannot hardcode anything, or else we can only hardcode existing
15761 # directories.
15762 hardcode_action_FC=unsupported
9cdc381b 15763fi
5213506e
RW
15764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15765$as_echo "$hardcode_action_FC" >&6; }
1cf3d07d
SE
15766
15767if test "$hardcode_action_FC" = relink ||
15768 test "$inherit_rpath_FC" = yes; then
15769 # Fast installation is not supported
15770 enable_fast_install=no
15771elif test "$shlibpath_overrides_runpath" = yes ||
15772 test "$enable_shared" = no; then
15773 # Fast installation is not necessary
15774 enable_fast_install=needless
9cdc381b
BD
15775fi
15776
1cf3d07d
SE
15777
15778
15779
15780
15781
15782
15783 fi # test -n "$compiler"
15784
d58dead8 15785 GCC=$lt_save_GCC
1cf3d07d
SE
15786 CC="$lt_save_CC"
15787fi # test "$_lt_disable_FC" != yes
15788
dd46a4de 15789ac_ext=c
96b8a615
AJ
15790ac_cpp='$CPP $CPPFLAGS'
15791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15793ac_compiler_gnu=$ac_cv_c_compiler_gnu
1cf3d07d
SE
15794
15795
15796
15797# extra LD Flags which are required for targets
15798case "${host}" in
15799 *-darwin*)
15800 # Darwin needs -single_module when linking libgfortran
15801 extra_ldflags_libgfortran=-Wl,-single_module
15802 ;;
15803esac
15804
15805
15806# We need a working compiler at that point, otherwise give a clear
15807# error message and bail out.
15808
5213506e
RW
15809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15810$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15811ac_ext=${ac_fc_srcext-f}
15812ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15813ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
15814ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15815
5213506e 15816cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15817
15818 program foo
15819 real, parameter :: bar = sin (12.34 / 2.5)
15820 end program foo
6de9cd9a 15821_ACEOF
5213506e
RW
15822if ac_fn_fc_try_compile "$LINENO"; then :
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15824$as_echo "yes" >&6; }
6de9cd9a 15825else
5213506e
RW
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15827$as_echo "no" >&6; }
15828 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 15829
96b8a615 15830fi
5213506e 15831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
15832ac_ext=c
15833ac_cpp='$CPP $CPPFLAGS'
15834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15836ac_compiler_gnu=$ac_cv_c_compiler_gnu
96b8a615 15837
96b8a615 15838
1cf3d07d 15839
5213506e
RW
15840# Check whether --enable-largefile was given.
15841if test "${enable_largefile+set}" = set; then :
15842 enableval=$enable_largefile;
15843fi
1cf3d07d 15844
1cf3d07d
SE
15845if test "$enable_largefile" != no; then
15846
5213506e
RW
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15848$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15849if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15850 $as_echo_n "(cached) " >&6
96b8a615 15851else
1cf3d07d
SE
15852 ac_cv_sys_largefile_CC=no
15853 if test "$GCC" != yes; then
15854 ac_save_CC=$CC
15855 while :; do
5213506e
RW
15856 # IRIX 6.2 and later do not support large files by default,
15857 # so use the C compiler's -n32 option if that helps.
15858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96b8a615 15859/* end confdefs.h. */
1cf3d07d
SE
15860#include <sys/types.h>
15861 /* Check that off_t can represent 2**63 - 1 correctly.
15862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15863 since some C++ compilers masquerading as C compilers
15864 incorrectly reject 9223372036854775807. */
15865#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
15866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15867 && LARGE_OFF_T % 2147483647 == 1)
15868 ? 1 : -1];
4c4b3eb0
PB
15869int
15870main ()
15871{
4c4b3eb0
PB
15872
15873 ;
15874 return 0;
15875}
15876_ACEOF
5213506e
RW
15877 if ac_fn_c_try_compile "$LINENO"; then :
15878 break
4c4b3eb0 15879fi
5213506e
RW
15880rm -f core conftest.err conftest.$ac_objext
15881 CC="$CC -n32"
15882 if ac_fn_c_try_compile "$LINENO"; then :
15883 ac_cv_sys_largefile_CC=' -n32'; break
15884fi
15885rm -f core conftest.err conftest.$ac_objext
15886 break
15887 done
15888 CC=$ac_save_CC
15889 rm -f conftest.$ac_ext
15890 fi
15891fi
15892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15893$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15894 if test "$ac_cv_sys_largefile_CC" != no; then
15895 CC=$CC$ac_cv_sys_largefile_CC
15896 fi
4c4b3eb0 15897
5213506e
RW
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15899$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15900if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15901 $as_echo_n "(cached) " >&6
15902else
15903 while :; do
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15905/* end confdefs.h. */
5213506e
RW
15906#include <sys/types.h>
15907 /* Check that off_t can represent 2**63 - 1 correctly.
15908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15909 since some C++ compilers masquerading as C compilers
15910 incorrectly reject 9223372036854775807. */
15911#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15913 && LARGE_OFF_T % 2147483647 == 1)
15914 ? 1 : -1];
4c4b3eb0
PB
15915int
15916main ()
15917{
4c4b3eb0
PB
15918
15919 ;
15920 return 0;
15921}
15922_ACEOF
5213506e
RW
15923if ac_fn_c_try_compile "$LINENO"; then :
15924 ac_cv_sys_file_offset_bits=no; break
15925fi
15926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15928/* end confdefs.h. */
5213506e
RW
15929#define _FILE_OFFSET_BITS 64
15930#include <sys/types.h>
15931 /* Check that off_t can represent 2**63 - 1 correctly.
15932 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15933 since some C++ compilers masquerading as C compilers
15934 incorrectly reject 9223372036854775807. */
15935#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15936 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15937 && LARGE_OFF_T % 2147483647 == 1)
15938 ? 1 : -1];
4c4b3eb0
PB
15939int
15940main ()
15941{
4c4b3eb0
PB
15942
15943 ;
15944 return 0;
15945}
15946_ACEOF
5213506e
RW
15947if ac_fn_c_try_compile "$LINENO"; then :
15948 ac_cv_sys_file_offset_bits=64; break
4c4b3eb0 15949fi
5213506e
RW
15950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15951 ac_cv_sys_file_offset_bits=unknown
15952 break
15953done
4c4b3eb0 15954fi
5213506e
RW
15955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15956$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15957case $ac_cv_sys_file_offset_bits in #(
15958 no | unknown) ;;
15959 *)
15960cat >>confdefs.h <<_ACEOF
15961#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4c4b3eb0 15962_ACEOF
5213506e
RW
15963;;
15964esac
15965rm -rf conftest*
15966 if test $ac_cv_sys_file_offset_bits = unknown; then
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15968$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15969if test "${ac_cv_sys_large_files+set}" = set; then :
15970 $as_echo_n "(cached) " >&6
15971else
15972 while :; do
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15974/* end confdefs.h. */
5213506e
RW
15975#include <sys/types.h>
15976 /* Check that off_t can represent 2**63 - 1 correctly.
15977 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15978 since some C++ compilers masquerading as C compilers
15979 incorrectly reject 9223372036854775807. */
15980#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15981 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15982 && LARGE_OFF_T % 2147483647 == 1)
15983 ? 1 : -1];
4c4b3eb0
PB
15984int
15985main ()
15986{
4c4b3eb0
PB
15987
15988 ;
15989 return 0;
15990}
15991_ACEOF
5213506e
RW
15992if ac_fn_c_try_compile "$LINENO"; then :
15993 ac_cv_sys_large_files=no; break
4c4b3eb0 15994fi
5213506e
RW
15995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15997/* end confdefs.h. */
5213506e
RW
15998#define _LARGE_FILES 1
15999#include <sys/types.h>
16000 /* Check that off_t can represent 2**63 - 1 correctly.
16001 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16002 since some C++ compilers masquerading as C compilers
16003 incorrectly reject 9223372036854775807. */
16004#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16005 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16006 && LARGE_OFF_T % 2147483647 == 1)
16007 ? 1 : -1];
4c4b3eb0
PB
16008int
16009main ()
16010{
16011
4c4b3eb0
PB
16012 ;
16013 return 0;
16014}
16015_ACEOF
5213506e
RW
16016if ac_fn_c_try_compile "$LINENO"; then :
16017 ac_cv_sys_large_files=1; break
4c4b3eb0 16018fi
5213506e
RW
16019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020 ac_cv_sys_large_files=unknown
16021 break
16022done
38d24731 16023fi
5213506e
RW
16024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16025$as_echo "$ac_cv_sys_large_files" >&6; }
16026case $ac_cv_sys_large_files in #(
16027 no | unknown) ;;
16028 *)
4c4b3eb0 16029cat >>confdefs.h <<_ACEOF
5213506e 16030#define _LARGE_FILES $ac_cv_sys_large_files
4c4b3eb0 16031_ACEOF
5213506e
RW
16032;;
16033esac
16034rm -rf conftest*
16035 fi
4c4b3eb0
PB
16036fi
16037
44720bef
JB
16038
16039# Types
5213506e
RW
16040ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16041if test "x$ac_cv_type_off_t" = x""yes; then :
4c4b3eb0 16042
5213506e 16043else
4c4b3eb0 16044
5213506e
RW
16045cat >>confdefs.h <<_ACEOF
16046#define off_t long int
16047_ACEOF
4c4b3eb0 16048
44720bef
JB
16049fi
16050
16051
16052 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16053if test "x$ac_cv_type_intptr_t" = x""yes; then :
16054
16055$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16056
16057else
16058 for ac_type in 'int' 'long int' 'long long int'; do
16059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060/* end confdefs.h. */
16061$ac_includes_default
16062int
16063main ()
16064{
16065static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16066test_array [0] = 0
16067
16068 ;
16069 return 0;
16070}
16071_ACEOF
16072if ac_fn_c_try_compile "$LINENO"; then :
16073
16074cat >>confdefs.h <<_ACEOF
16075#define intptr_t $ac_type
16076_ACEOF
16077
16078 ac_type=
16079fi
16080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081 test -z "$ac_type" && break
16082 done
16083fi
16084
16085
16086
16087 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16088if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16089
16090$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16091
16092else
16093 for ac_type in 'unsigned int' 'unsigned long int' \
16094 'unsigned long long int'; do
16095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16096/* end confdefs.h. */
16097$ac_includes_default
16098int
16099main ()
16100{
16101static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16102test_array [0] = 0
16103
16104 ;
16105 return 0;
16106}
16107_ACEOF
16108if ac_fn_c_try_compile "$LINENO"; then :
16109
16110cat >>confdefs.h <<_ACEOF
16111#define uintptr_t $ac_type
16112_ACEOF
16113
16114 ac_type=
16115fi
16116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117 test -z "$ac_type" && break
16118 done
16119fi
16120
16121
16122ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16123if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
16124
16125cat >>confdefs.h <<_ACEOF
16126#define HAVE_PTRDIFF_T 1
16127_ACEOF
16128
16129
4c4b3eb0
PB
16130fi
16131
4c4b3eb0 16132
74544378 16133# check header files (we assume C89 is available, so don't check for that)
df65f093 16134
5213506e 16135
df65f093 16136
74544378
JB
16137 for ac_header in $ac_header_list
16138do :
16139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16140ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16141"
16142eval as_val=\$$as_ac_Header
16143 if test "x$as_val" = x""yes; then :
16144 cat >>confdefs.h <<_ACEOF
16145#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
df65f093
SK
16146_ACEOF
16147
5213506e 16148fi
df65f093 16149
74544378 16150done
df65f093 16151
5213506e 16152
5213506e 16153
df65f093 16154
5213506e 16155
5213506e 16156
df65f093 16157
df65f093 16158
df65f093
SK
16159
16160
df65f093 16161
df65f093 16162
df65f093
SK
16163
16164
df65f093
SK
16165
16166
41724e6a 16167
2cbcdeba 16168
3969c39f 16169
1fb2002d
FXC
16170
16171
32aa3bff 16172
f77b6ca3 16173
f77b6ca3 16174
f77b6ca3 16175
f77b6ca3 16176
f77b6ca3 16177
f77b6ca3 16178
fa86f4f9
TB
16179
16180
9cbecd06
JB
16181
16182
f77b6ca3 16183
f77b6ca3 16184
6de9cd9a 16185
c13e029b 16186inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
6de9cd9a 16187
c13e029b
PB
16188acx_cv_header_stdint=stddef.h
16189acx_cv_header_stdint_kind="(already complete)"
16190for i in stdint.h $inttype_headers; do
16191 unset ac_cv_type_uintptr_t
16192 unset ac_cv_type_uintmax_t
16193 unset ac_cv_type_int_least32_t
16194 unset ac_cv_type_int_fast32_t
16195 unset ac_cv_type_uint64_t
16196 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16197 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16198#include <$i>
16199"
16200if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16201 acx_cv_header_stdint=$i
5213506e 16202else
c13e029b 16203 continue
5213506e 16204fi
6de9cd9a 16205
c13e029b
PB
16206 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16207#include <$i>
16208"
16209if test "x$ac_cv_type_uintptr_t" = x""yes; then :
96b8a615 16210
5213506e 16211else
c13e029b 16212 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16213fi
96b8a615 16214
c13e029b
PB
16215 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16216#include <$i>
16217"
16218if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16219
f77b6ca3 16220else
c13e029b 16221 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16222fi
5213506e 16223
c13e029b
PB
16224 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16225#include <$i>
16226"
16227if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
f77b6ca3 16228
c13e029b
PB
16229else
16230 acx_cv_header_stdint_kind="(mostly complete)"
16231fi
d72a3ac1 16232
c13e029b
PB
16233 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16234#include <$i>
16235"
16236if test "x$ac_cv_type_uint64_t" = x""yes; then :
d72a3ac1 16237
5213506e 16238else
c13e029b
PB
16239 acx_cv_header_stdint_kind="(lacks uint64_t)"
16240fi
f77b6ca3 16241
c13e029b
PB
16242 break
16243done
16244if test "$acx_cv_header_stdint" = stddef.h; then
16245 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16246 for i in stdint.h $inttype_headers; do
16247 unset ac_cv_type_uintptr_t
16248 unset ac_cv_type_uint32_t
16249 unset ac_cv_type_uint64_t
16250 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16251 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16252#include <$i>
16253"
16254if test "x$ac_cv_type_uint32_t" = x""yes; then :
16255 acx_cv_header_stdint=$i
16256else
16257 continue
5213506e 16258fi
f77b6ca3 16259
c13e029b
PB
16260 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16261#include <$i>
16262"
16263if test "x$ac_cv_type_uint64_t" = x""yes; then :
8845001b 16264
c13e029b 16265fi
185d7d97 16266
c13e029b
PB
16267 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16268#include <$i>
16269"
16270if test "x$ac_cv_type_uintptr_t" = x""yes; then :
185d7d97 16271
c13e029b 16272fi
35059811 16273
c13e029b
PB
16274 break
16275 done
16276fi
16277if test "$acx_cv_header_stdint" = stddef.h; then
16278 acx_cv_header_stdint_kind="(u_intXX_t style)"
16279 for i in sys/types.h $inttype_headers; do
16280 unset ac_cv_type_u_int32_t
16281 unset ac_cv_type_u_int64_t
16282 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16283 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16284#include <$i>
16285"
16286if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16287 acx_cv_header_stdint=$i
d72a3ac1 16288else
c13e029b
PB
16289 continue
16290fi
a119fc1c 16291
c13e029b
PB
16292 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16293#include <$i>
16294"
16295if test "x$ac_cv_type_u_int64_t" = x""yes; then :
a119fc1c 16296
c13e029b 16297fi
a119fc1c 16298
c13e029b
PB
16299 break
16300 done
a119fc1c 16301fi
c13e029b
PB
16302if test "$acx_cv_header_stdint" = stddef.h; then
16303 acx_cv_header_stdint_kind="(using manual detection)"
5213506e 16304fi
a119fc1c 16305
c13e029b
PB
16306test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16307test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16308test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16309test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16310test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
a119fc1c 16311
c13e029b 16312# ----------------- Summarize what we found so far
5213506e 16313
c13e029b
PB
16314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16315$as_echo_n "checking what to include in gstdint.h... " >&6; }
a119fc1c 16316
c13e029b
PB
16317case `$as_basename -- gstdint.h ||
16318$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16319 Xgstdint.h : 'X\(//\)$' \| \
16320 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16321$as_echo X/gstdint.h |
16322 sed '/^.*\/\([^/][^/]*\)\/*$/{
16323 s//\1/
16324 q
16325 }
16326 /^X\/\(\/\/\)$/{
16327 s//\1/
16328 q
16329 }
16330 /^X\/\(\/\).*/{
16331 s//\1/
16332 q
16333 }
16334 s/.*/./; q'` in
16335 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16336$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16337 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16338$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16339 *) ;;
16340esac
a119fc1c 16341
c13e029b
PB
16342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16343$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
a63a0959 16344
c13e029b 16345# ----------------- done included file, check C basic types --------
868d75db 16346
c13e029b
PB
16347# Lacking an uintptr_t? Test size of void *
16348case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16349 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16350# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16351# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16352# This bug is HP SR number 8606223364.
16353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16354$as_echo_n "checking size of void *... " >&6; }
16355if test "${ac_cv_sizeof_void_p+set}" = set; then :
16356 $as_echo_n "(cached) " >&6
16357else
16358 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
868d75db 16359
c13e029b
PB
16360else
16361 if test "$ac_cv_type_void_p" = yes; then
16362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16364{ as_fn_set_status 77
16365as_fn_error "cannot compute sizeof (void *)
16366See \`config.log' for more details." "$LINENO" 5; }; }
16367 else
16368 ac_cv_sizeof_void_p=0
16369 fi
16370fi
d72a3ac1 16371
c13e029b
PB
16372fi
16373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16374$as_echo "$ac_cv_sizeof_void_p" >&6; }
d72a3ac1 16375
868d75db
FXC
16376
16377
d72a3ac1 16378cat >>confdefs.h <<_ACEOF
c13e029b 16379#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
d72a3ac1 16380_ACEOF
d72a3ac1 16381
c13e029b
PB
16382 ;;
16383esac
d72a3ac1 16384
c13e029b
PB
16385# Lacking an uint64_t? Test size of long
16386case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16387 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16388# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16389# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16390# This bug is HP SR number 8606223364.
16391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16392$as_echo_n "checking size of long... " >&6; }
16393if test "${ac_cv_sizeof_long+set}" = set; then :
5213506e
RW
16394 $as_echo_n "(cached) " >&6
16395else
c13e029b 16396 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
d72a3ac1 16397
7f483eec 16398else
c13e029b
PB
16399 if test "$ac_cv_type_long" = yes; then
16400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16402{ as_fn_set_status 77
16403as_fn_error "cannot compute sizeof (long)
16404See \`config.log' for more details." "$LINENO" 5; }; }
16405 else
16406 ac_cv_sizeof_long=0
16407 fi
5213506e 16408fi
7f483eec 16409
c13e029b
PB
16410fi
16411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16412$as_echo "$ac_cv_sizeof_long" >&6; }
d72a3ac1 16413
7f483eec 16414
d72a3ac1
PB
16415
16416cat >>confdefs.h <<_ACEOF
c13e029b 16417#define SIZEOF_LONG $ac_cv_sizeof_long
d72a3ac1 16418_ACEOF
7f483eec 16419
c13e029b
PB
16420 ;;
16421esac
29e86cb0 16422
c13e029b
PB
16423if test $acx_cv_header_stdint = stddef.h; then
16424 # Lacking a good header? Test size of everything and deduce all types.
16425 # The cast to long int works around a bug in the HP C Compiler
16426# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16427# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16428# This bug is HP SR number 8606223364.
16429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16430$as_echo_n "checking size of int... " >&6; }
16431if test "${ac_cv_sizeof_int+set}" = set; then :
16432 $as_echo_n "(cached) " >&6
16433else
16434 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6422c112 16435
c13e029b
PB
16436else
16437 if test "$ac_cv_type_int" = yes; then
16438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16440{ as_fn_set_status 77
16441as_fn_error "cannot compute sizeof (int)
16442See \`config.log' for more details." "$LINENO" 5; }; }
16443 else
16444 ac_cv_sizeof_int=0
16445 fi
16446fi
d8163f5c 16447
c13e029b
PB
16448fi
16449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16450$as_echo "$ac_cv_sizeof_int" >&6; }
2515e5a7
FXC
16451
16452
868d75db 16453
d72a3ac1 16454cat >>confdefs.h <<_ACEOF
c13e029b 16455#define SIZEOF_INT $ac_cv_sizeof_int
d72a3ac1
PB
16456_ACEOF
16457
d72a3ac1 16458
c13e029b
PB
16459 # The cast to long int works around a bug in the HP C Compiler
16460# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16461# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16462# This bug is HP SR number 8606223364.
16463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16464$as_echo_n "checking size of short... " >&6; }
16465if test "${ac_cv_sizeof_short+set}" = set; then :
16466 $as_echo_n "(cached) " >&6
16467else
16468 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
d72a3ac1 16469
c13e029b
PB
16470else
16471 if test "$ac_cv_type_short" = yes; then
16472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16474{ as_fn_set_status 77
16475as_fn_error "cannot compute sizeof (short)
16476See \`config.log' for more details." "$LINENO" 5; }; }
16477 else
16478 ac_cv_sizeof_short=0
16479 fi
16480fi
d72a3ac1 16481
c13e029b
PB
16482fi
16483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16484$as_echo "$ac_cv_sizeof_short" >&6; }
d72a3ac1
PB
16485
16486
16487
c13e029b
PB
16488cat >>confdefs.h <<_ACEOF
16489#define SIZEOF_SHORT $ac_cv_sizeof_short
16490_ACEOF
d72a3ac1
PB
16491
16492
c13e029b
PB
16493 # The cast to long int works around a bug in the HP C Compiler
16494# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16495# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16496# This bug is HP SR number 8606223364.
16497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16498$as_echo_n "checking size of char... " >&6; }
16499if test "${ac_cv_sizeof_char+set}" = set; then :
16500 $as_echo_n "(cached) " >&6
16501else
16502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
d72a3ac1 16503
c13e029b
PB
16504else
16505 if test "$ac_cv_type_char" = yes; then
16506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16508{ as_fn_set_status 77
16509as_fn_error "cannot compute sizeof (char)
16510See \`config.log' for more details." "$LINENO" 5; }; }
16511 else
16512 ac_cv_sizeof_char=0
16513 fi
16514fi
d72a3ac1 16515
c13e029b
PB
16516fi
16517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16518$as_echo "$ac_cv_sizeof_char" >&6; }
d72a3ac1
PB
16519
16520
d72a3ac1 16521
5213506e 16522cat >>confdefs.h <<_ACEOF
c13e029b 16523#define SIZEOF_CHAR $ac_cv_sizeof_char
868d75db 16524_ACEOF
868d75db 16525
868d75db 16526
2017c370 16527
c13e029b
PB
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16529$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16530 case "$ac_cv_sizeof_char" in
16531 1) acx_cv_type_int8_t=char ;;
75bc9e5e 16532 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16533 esac
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16535$as_echo "$acx_cv_type_int8_t" >&6; }
16536
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16538$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16539 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16540 2:*) acx_cv_type_int16_t=int ;;
16541 *:2) acx_cv_type_int16_t=short ;;
75bc9e5e 16542 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16543 esac
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16545$as_echo "$acx_cv_type_int16_t" >&6; }
16546
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16548$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16549 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16550 4:*) acx_cv_type_int32_t=int ;;
16551 *:4) acx_cv_type_int32_t=long ;;
75bc9e5e 16552 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16553 esac
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16555$as_echo "$acx_cv_type_int32_t" >&6; }
5213506e
RW
16556fi
16557
c13e029b 16558# These tests are here to make the output prettier
d72a3ac1 16559
c13e029b
PB
16560if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16561 case "$ac_cv_sizeof_long" in
16562 8) acx_cv_type_int64_t=long ;;
16563 esac
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16565$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16567$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16568fi
16569
16570# Now we can use the above types
16571
16572if test "$ac_cv_type_uintptr_t" != yes; then
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16574$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16575 case $ac_cv_sizeof_void_p in
16576 2) acx_cv_type_intptr_t=int16_t ;;
16577 4) acx_cv_type_intptr_t=int32_t ;;
16578 8) acx_cv_type_intptr_t=int64_t ;;
75bc9e5e 16579 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c13e029b
PB
16580 esac
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16582$as_echo "$acx_cv_type_intptr_t" >&6; }
16583fi
d72a3ac1 16584
c13e029b 16585# ----------------- done all checks, emit header -------------
5213506e 16586ac_config_commands="$ac_config_commands gstdint.h"
2017c370 16587
2017c370 16588
5213506e
RW
16589
16590
16591ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16592if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16593
16594cat >>confdefs.h <<_ACEOF
16595#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
2017c370 16596_ACEOF
2017c370 16597
5213506e 16598
2017c370 16599fi
5213506e
RW
16600ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16601if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16602
16603cat >>confdefs.h <<_ACEOF
16604#define HAVE_STRUCT_STAT_ST_BLOCKS 1
2017c370
JB
16605_ACEOF
16606
5213506e 16607
2017c370 16608fi
5213506e
RW
16609ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16610if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
2017c370 16611
5213506e
RW
16612cat >>confdefs.h <<_ACEOF
16613#define HAVE_STRUCT_STAT_ST_RDEV 1
16614_ACEOF
868d75db
FXC
16615
16616
f02d008e 16617fi
5213506e
RW
16618
16619
bd459d0b
JG
16620case "${host}--x${with_newlib}" in
16621 mips*--xyes)
16622 hardwire_newlib=1;;
d3ca2257
NS
16623 nvptx*--xyes)
16624 hardwire_newlib=1;;
bd459d0b
JG
16625esac
16626
5213506e 16627# Check for library functions.
bd459d0b 16628if test "${hardwire_newlib:-0}" -eq 1; then
b4005c71
SE
16629 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16630 # may not work correctly, because the compiler may not be able to
16631 # link executables.
16632
16633$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16634
16635
16636$as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16637
16638
b4005c71
SE
16639$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16640
16641
b4005c71
SE
16642$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16643
16644
16645$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16646
16647
16648$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16649
cb83df66 16650
ebfedee6
HPN
16651$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16652
16653
16654$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16655
16656
cb83df66
SE
16657 # At some point, we should differentiate between architectures
16658 # like x86, which have long double versions, and alpha/powerpc/etc.,
16659 # which don't. For the time being, punt.
16660 if test x"long_double_math_on_this_cpu" = x"yes"; then
16661
16662$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16663
16664 fi
b4005c71 16665else
f77b6ca3 16666
f77b6ca3 16667
74544378
JB
16668
16669 for ac_func in $ac_func_list
5213506e
RW
16670do :
16671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16672ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16673eval as_val=\$$as_ac_var
16674 if test "x$as_val" = x""yes; then :
16675 cat >>confdefs.h <<_ACEOF
16676#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16677_ACEOF
f77b6ca3 16678
5213506e
RW
16679fi
16680done
f77b6ca3 16681
f77b6ca3 16682
5213506e 16683
96b8a615 16684
5213506e 16685
5213506e 16686
5213506e 16687
6de9cd9a 16688
6de9cd9a 16689
b6e7a3d1 16690
b6e7a3d1 16691
6de9cd9a 16692
4c0c6b9f 16693
4c0c6b9f 16694
4c0c6b9f 16695
4c0c6b9f 16696
4c0c6b9f 16697
4c0c6b9f 16698
4c0c6b9f 16699
4c0c6b9f 16700
868d75db 16701
868d75db 16702
868d75db 16703
868d75db 16704
4c0c6b9f 16705
4c0c6b9f 16706
4c0c6b9f 16707
4c0c6b9f 16708
6422c112 16709
6422c112 16710
6422c112 16711
74544378
JB
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
68ee9c08 16768
227e441f 16769
9cbecd06
JB
16770
16771
4269f19c
JB
16772
16773
b5b58343
UW
16774
16775
70480968
JB
16776
16777
227e441f 16778
8ecd1c0d
TB
16779
16780
b4005c71 16781fi
74544378 16782
4179e59a
TB
16783# Check strerror_r, cannot be above as versions with two and three arguments exist
16784
16785 ac_save_CFLAGS="$CFLAGS"
16786 CFLAGS="-Wimplicit-function-declaration -Werror"
16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788/* end confdefs.h. */
16789#define _GNU_SOURCE 1
16790 #include <string.h>
16791 #include <locale.h>
16792int
16793main ()
16794{
16795char s[128]; strerror_r(5, s, 128);
16796 ;
16797 return 0;
16798}
16799_ACEOF
16800if ac_fn_c_try_compile "$LINENO"; then :
16801
16802$as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16803
16804fi
16805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16806 CFLAGS="$ac_save_CFLAGS"
16807
16808 ac_save_CFLAGS="$CFLAGS"
16809 CFLAGS="-Wimplicit-function-declaration -Werror"
16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811/* end confdefs.h. */
16812#define _GNU_SOURCE 1
16813 #include <string.h>
16814 #include <locale.h>
16815int
16816main ()
16817{
16818char s[128]; strerror_r(5, s);
16819 ;
16820 return 0;
16821}
16822_ACEOF
16823if ac_fn_c_try_compile "$LINENO"; then :
16824
16825$as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16826
16827fi
16828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16829 CFLAGS="$ac_save_CFLAGS"
6422c112 16830
4c0c6b9f 16831
453310d8 16832# Check for C99 (and other IEEE) math functions
db9f46a9
TG
16833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16834$as_echo_n "checking for sin in -lm... " >&6; }
16835if test "${ac_cv_lib_m_sin+set}" = set; then :
5213506e 16836 $as_echo_n "(cached) " >&6
453310d8
RS
16837else
16838 ac_check_lib_save_LIBS=$LIBS
16839LIBS="-lm $LIBS"
f02d008e 16840if test x$gcc_no_link = xyes; then
5213506e 16841 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16842fi
5213506e 16843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16844/* end confdefs.h. */
16845
5213506e
RW
16846/* Override any GCC internal prototype to avoid an error.
16847 Use char because int might match the return type of a GCC
16848 builtin and then its argument prototype would still apply. */
453310d8
RS
16849#ifdef __cplusplus
16850extern "C"
16851#endif
db9f46a9 16852char sin ();
453310d8
RS
16853int
16854main ()
16855{
db9f46a9 16856return sin ();
453310d8
RS
16857 ;
16858 return 0;
16859}
16860_ACEOF
5213506e 16861if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16862 ac_cv_lib_m_sin=yes
453310d8 16863else
db9f46a9 16864 ac_cv_lib_m_sin=no
453310d8 16865fi
5213506e
RW
16866rm -f core conftest.err conftest.$ac_objext \
16867 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
16868LIBS=$ac_check_lib_save_LIBS
16869fi
db9f46a9
TG
16870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16871$as_echo "$ac_cv_lib_m_sin" >&6; }
16872if test "x$ac_cv_lib_m_sin" = x""yes; then :
16873 cat >>confdefs.h <<_ACEOF
16874#define HAVE_LIBM 1
16875_ACEOF
453310d8 16876
db9f46a9 16877 LIBS="-lm $LIBS"
453310d8
RS
16878
16879fi
16880
db9f46a9
TG
16881
16882
16883
16884
16885
16886
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16888$as_echo_n "checking for acosf... " >&6; }
16889if test "${gcc_cv_math_func_acosf+set}" = set; then :
5213506e 16890 $as_echo_n "(cached) " >&6
f02d008e 16891else
db9f46a9 16892 if test x$gcc_no_link = xyes; then
5213506e 16893 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16894fi
5213506e 16895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16896/* end confdefs.h. */
16897
db9f46a9
TG
16898#ifdef HAVE_COMPLEX_H
16899#include <complex.h>
16900#endif
16901#ifdef HAVE_MATH_H
16902#include <math.h>
f02d008e 16903#endif
db9f46a9
TG
16904
16905int (*ptr)() = (int (*)())acosf;
16906
f02d008e
JD
16907int
16908main ()
16909{
f02d008e
JD
16910 return 0;
16911}
db9f46a9 16912
f02d008e 16913_ACEOF
5213506e 16914if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16915 gcc_cv_math_func_acosf=yes
f02d008e 16916else
db9f46a9 16917 gcc_cv_math_func_acosf=no
f02d008e 16918fi
5213506e
RW
16919rm -f core conftest.err conftest.$ac_objext \
16920 conftest$ac_exeext conftest.$ac_ext
f02d008e 16921fi
db9f46a9
TG
16922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16923$as_echo "$gcc_cv_math_func_acosf" >&6; }
16924 if test $gcc_cv_math_func_acosf = yes; then
f1cdfa01 16925
f38a14ca
TG
16926cat >>confdefs.h <<_ACEOF
16927#define HAVE_ACOSF 1
16928_ACEOF
db9f46a9
TG
16929
16930 fi
f02d008e 16931
f02d008e 16932
f02d008e 16933
db9f46a9
TG
16934
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16936$as_echo_n "checking for acos... " >&6; }
16937if test "${gcc_cv_math_func_acos+set}" = set; then :
5213506e 16938 $as_echo_n "(cached) " >&6
453310d8 16939else
db9f46a9 16940 if test x$gcc_no_link = xyes; then
5213506e 16941 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16942fi
5213506e 16943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16944/* end confdefs.h. */
16945
db9f46a9
TG
16946#ifdef HAVE_COMPLEX_H
16947#include <complex.h>
453310d8 16948#endif
db9f46a9
TG
16949#ifdef HAVE_MATH_H
16950#include <math.h>
16951#endif
16952
16953int (*ptr)() = (int (*)())acos;
16954
453310d8
RS
16955int
16956main ()
16957{
453310d8
RS
16958 return 0;
16959}
db9f46a9 16960
453310d8 16961_ACEOF
5213506e 16962if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16963 gcc_cv_math_func_acos=yes
453310d8 16964else
db9f46a9 16965 gcc_cv_math_func_acos=no
453310d8 16966fi
5213506e
RW
16967rm -f core conftest.err conftest.$ac_objext \
16968 conftest$ac_exeext conftest.$ac_ext
453310d8 16969fi
db9f46a9
TG
16970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16971$as_echo "$gcc_cv_math_func_acos" >&6; }
16972 if test $gcc_cv_math_func_acos = yes; then
f1cdfa01 16973
f38a14ca
TG
16974cat >>confdefs.h <<_ACEOF
16975#define HAVE_ACOS 1
16976_ACEOF
db9f46a9
TG
16977
16978 fi
16979
453310d8 16980
453310d8 16981
453310d8 16982
db9f46a9
TG
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16984$as_echo_n "checking for acosl... " >&6; }
16985if test "${gcc_cv_math_func_acosl+set}" = set; then :
5213506e 16986 $as_echo_n "(cached) " >&6
f02d008e 16987else
db9f46a9 16988 if test x$gcc_no_link = xyes; then
5213506e 16989 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16990fi
5213506e 16991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16992/* end confdefs.h. */
16993
db9f46a9
TG
16994#ifdef HAVE_COMPLEX_H
16995#include <complex.h>
16996#endif
16997#ifdef HAVE_MATH_H
16998#include <math.h>
f02d008e 16999#endif
db9f46a9
TG
17000
17001int (*ptr)() = (int (*)())acosl;
17002
f02d008e
JD
17003int
17004main ()
17005{
f02d008e
JD
17006 return 0;
17007}
db9f46a9 17008
f02d008e 17009_ACEOF
5213506e 17010if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17011 gcc_cv_math_func_acosl=yes
f02d008e 17012else
db9f46a9 17013 gcc_cv_math_func_acosl=no
f02d008e 17014fi
5213506e
RW
17015rm -f core conftest.err conftest.$ac_objext \
17016 conftest$ac_exeext conftest.$ac_ext
f02d008e 17017fi
db9f46a9
TG
17018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17019$as_echo "$gcc_cv_math_func_acosl" >&6; }
17020 if test $gcc_cv_math_func_acosl = yes; then
f1cdfa01 17021
f38a14ca
TG
17022cat >>confdefs.h <<_ACEOF
17023#define HAVE_ACOSL 1
17024_ACEOF
db9f46a9
TG
17025
17026 fi
f02d008e 17027
f02d008e 17028
f02d008e 17029
db9f46a9
TG
17030
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17032$as_echo_n "checking for acoshf... " >&6; }
17033if test "${gcc_cv_math_func_acoshf+set}" = set; then :
5213506e 17034 $as_echo_n "(cached) " >&6
453310d8 17035else
db9f46a9 17036 if test x$gcc_no_link = xyes; then
5213506e 17037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17038fi
5213506e 17039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17040/* end confdefs.h. */
17041
db9f46a9
TG
17042#ifdef HAVE_COMPLEX_H
17043#include <complex.h>
453310d8 17044#endif
db9f46a9
TG
17045#ifdef HAVE_MATH_H
17046#include <math.h>
17047#endif
17048
17049int (*ptr)() = (int (*)())acoshf;
17050
453310d8
RS
17051int
17052main ()
17053{
453310d8
RS
17054 return 0;
17055}
db9f46a9 17056
453310d8 17057_ACEOF
5213506e 17058if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17059 gcc_cv_math_func_acoshf=yes
453310d8 17060else
db9f46a9 17061 gcc_cv_math_func_acoshf=no
453310d8 17062fi
5213506e
RW
17063rm -f core conftest.err conftest.$ac_objext \
17064 conftest$ac_exeext conftest.$ac_ext
453310d8 17065fi
db9f46a9
TG
17066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17067$as_echo "$gcc_cv_math_func_acoshf" >&6; }
17068 if test $gcc_cv_math_func_acoshf = yes; then
f1cdfa01 17069
f38a14ca
TG
17070cat >>confdefs.h <<_ACEOF
17071#define HAVE_ACOSHF 1
17072_ACEOF
453310d8 17073
db9f46a9 17074 fi
453310d8 17075
453310d8 17076
db9f46a9
TG
17077
17078
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17080$as_echo_n "checking for acosh... " >&6; }
17081if test "${gcc_cv_math_func_acosh+set}" = set; then :
5213506e 17082 $as_echo_n "(cached) " >&6
453310d8 17083else
db9f46a9 17084 if test x$gcc_no_link = xyes; then
5213506e 17085 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17086fi
5213506e 17087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17088/* end confdefs.h. */
17089
db9f46a9
TG
17090#ifdef HAVE_COMPLEX_H
17091#include <complex.h>
17092#endif
17093#ifdef HAVE_MATH_H
17094#include <math.h>
453310d8 17095#endif
db9f46a9
TG
17096
17097int (*ptr)() = (int (*)())acosh;
17098
453310d8
RS
17099int
17100main ()
17101{
5213506e
RW
17102 return 0;
17103}
db9f46a9 17104
5213506e
RW
17105_ACEOF
17106if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17107 gcc_cv_math_func_acosh=yes
453310d8 17108else
db9f46a9 17109 gcc_cv_math_func_acosh=no
453310d8 17110fi
5213506e
RW
17111rm -f core conftest.err conftest.$ac_objext \
17112 conftest$ac_exeext conftest.$ac_ext
453310d8 17113fi
db9f46a9
TG
17114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17115$as_echo "$gcc_cv_math_func_acosh" >&6; }
17116 if test $gcc_cv_math_func_acosh = yes; then
f1cdfa01 17117
f38a14ca
TG
17118cat >>confdefs.h <<_ACEOF
17119#define HAVE_ACOSH 1
17120_ACEOF
db9f46a9
TG
17121
17122 fi
453310d8 17123
453310d8 17124
453310d8 17125
db9f46a9
TG
17126
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17128$as_echo_n "checking for acoshl... " >&6; }
17129if test "${gcc_cv_math_func_acoshl+set}" = set; then :
5213506e 17130 $as_echo_n "(cached) " >&6
f02d008e 17131else
db9f46a9 17132 if test x$gcc_no_link = xyes; then
5213506e 17133 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17134fi
5213506e 17135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17136/* end confdefs.h. */
17137
db9f46a9
TG
17138#ifdef HAVE_COMPLEX_H
17139#include <complex.h>
f02d008e 17140#endif
db9f46a9
TG
17141#ifdef HAVE_MATH_H
17142#include <math.h>
17143#endif
17144
17145int (*ptr)() = (int (*)())acoshl;
17146
f02d008e
JD
17147int
17148main ()
17149{
f02d008e
JD
17150 return 0;
17151}
db9f46a9 17152
f02d008e 17153_ACEOF
5213506e 17154if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17155 gcc_cv_math_func_acoshl=yes
f02d008e 17156else
db9f46a9 17157 gcc_cv_math_func_acoshl=no
f02d008e 17158fi
5213506e
RW
17159rm -f core conftest.err conftest.$ac_objext \
17160 conftest$ac_exeext conftest.$ac_ext
f02d008e 17161fi
db9f46a9
TG
17162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17163$as_echo "$gcc_cv_math_func_acoshl" >&6; }
17164 if test $gcc_cv_math_func_acoshl = yes; then
f1cdfa01 17165
f38a14ca
TG
17166cat >>confdefs.h <<_ACEOF
17167#define HAVE_ACOSHL 1
17168_ACEOF
db9f46a9
TG
17169
17170 fi
17171
f02d008e 17172
f02d008e 17173
f02d008e 17174
db9f46a9
TG
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17176$as_echo_n "checking for asinf... " >&6; }
17177if test "${gcc_cv_math_func_asinf+set}" = set; then :
5213506e 17178 $as_echo_n "(cached) " >&6
453310d8 17179else
db9f46a9 17180 if test x$gcc_no_link = xyes; then
5213506e 17181 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17182fi
5213506e 17183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17184/* end confdefs.h. */
17185
db9f46a9
TG
17186#ifdef HAVE_COMPLEX_H
17187#include <complex.h>
17188#endif
17189#ifdef HAVE_MATH_H
17190#include <math.h>
453310d8 17191#endif
db9f46a9
TG
17192
17193int (*ptr)() = (int (*)())asinf;
17194
453310d8
RS
17195int
17196main ()
17197{
453310d8
RS
17198 return 0;
17199}
db9f46a9 17200
453310d8 17201_ACEOF
5213506e 17202if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17203 gcc_cv_math_func_asinf=yes
453310d8 17204else
db9f46a9 17205 gcc_cv_math_func_asinf=no
453310d8 17206fi
5213506e
RW
17207rm -f core conftest.err conftest.$ac_objext \
17208 conftest$ac_exeext conftest.$ac_ext
453310d8 17209fi
db9f46a9
TG
17210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17211$as_echo "$gcc_cv_math_func_asinf" >&6; }
17212 if test $gcc_cv_math_func_asinf = yes; then
f1cdfa01 17213
f38a14ca
TG
17214cat >>confdefs.h <<_ACEOF
17215#define HAVE_ASINF 1
17216_ACEOF
db9f46a9
TG
17217
17218 fi
453310d8 17219
453310d8 17220
453310d8 17221
db9f46a9
TG
17222
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17224$as_echo_n "checking for asin... " >&6; }
17225if test "${gcc_cv_math_func_asin+set}" = set; then :
5213506e 17226 $as_echo_n "(cached) " >&6
453310d8 17227else
db9f46a9 17228 if test x$gcc_no_link = xyes; then
5213506e 17229 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17230fi
5213506e 17231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17232/* end confdefs.h. */
17233
db9f46a9
TG
17234#ifdef HAVE_COMPLEX_H
17235#include <complex.h>
453310d8 17236#endif
db9f46a9
TG
17237#ifdef HAVE_MATH_H
17238#include <math.h>
17239#endif
17240
17241int (*ptr)() = (int (*)())asin;
17242
453310d8
RS
17243int
17244main ()
17245{
453310d8
RS
17246 return 0;
17247}
db9f46a9 17248
453310d8 17249_ACEOF
5213506e 17250if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17251 gcc_cv_math_func_asin=yes
453310d8 17252else
db9f46a9 17253 gcc_cv_math_func_asin=no
453310d8 17254fi
5213506e
RW
17255rm -f core conftest.err conftest.$ac_objext \
17256 conftest$ac_exeext conftest.$ac_ext
453310d8 17257fi
db9f46a9
TG
17258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17259$as_echo "$gcc_cv_math_func_asin" >&6; }
17260 if test $gcc_cv_math_func_asin = yes; then
f1cdfa01 17261
f38a14ca
TG
17262cat >>confdefs.h <<_ACEOF
17263#define HAVE_ASIN 1
17264_ACEOF
453310d8 17265
db9f46a9 17266 fi
453310d8 17267
453310d8 17268
db9f46a9
TG
17269
17270
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17272$as_echo_n "checking for asinl... " >&6; }
17273if test "${gcc_cv_math_func_asinl+set}" = set; then :
5213506e 17274 $as_echo_n "(cached) " >&6
453310d8 17275else
db9f46a9 17276 if test x$gcc_no_link = xyes; then
5213506e 17277 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17278fi
5213506e 17279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17280/* end confdefs.h. */
17281
db9f46a9
TG
17282#ifdef HAVE_COMPLEX_H
17283#include <complex.h>
17284#endif
17285#ifdef HAVE_MATH_H
17286#include <math.h>
453310d8 17287#endif
db9f46a9
TG
17288
17289int (*ptr)() = (int (*)())asinl;
17290
453310d8
RS
17291int
17292main ()
17293{
453310d8
RS
17294 return 0;
17295}
db9f46a9 17296
453310d8 17297_ACEOF
5213506e 17298if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17299 gcc_cv_math_func_asinl=yes
453310d8 17300else
db9f46a9 17301 gcc_cv_math_func_asinl=no
453310d8 17302fi
5213506e
RW
17303rm -f core conftest.err conftest.$ac_objext \
17304 conftest$ac_exeext conftest.$ac_ext
453310d8 17305fi
db9f46a9
TG
17306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17307$as_echo "$gcc_cv_math_func_asinl" >&6; }
17308 if test $gcc_cv_math_func_asinl = yes; then
f1cdfa01 17309
f38a14ca
TG
17310cat >>confdefs.h <<_ACEOF
17311#define HAVE_ASINL 1
17312_ACEOF
db9f46a9
TG
17313
17314 fi
453310d8 17315
453310d8 17316
453310d8 17317
db9f46a9
TG
17318
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17320$as_echo_n "checking for asinhf... " >&6; }
17321if test "${gcc_cv_math_func_asinhf+set}" = set; then :
5213506e 17322 $as_echo_n "(cached) " >&6
453310d8 17323else
db9f46a9 17324 if test x$gcc_no_link = xyes; then
5213506e 17325 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17326fi
5213506e 17327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17328/* end confdefs.h. */
17329
db9f46a9
TG
17330#ifdef HAVE_COMPLEX_H
17331#include <complex.h>
453310d8 17332#endif
db9f46a9
TG
17333#ifdef HAVE_MATH_H
17334#include <math.h>
17335#endif
17336
17337int (*ptr)() = (int (*)())asinhf;
17338
453310d8
RS
17339int
17340main ()
17341{
453310d8
RS
17342 return 0;
17343}
db9f46a9 17344
453310d8 17345_ACEOF
5213506e 17346if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17347 gcc_cv_math_func_asinhf=yes
453310d8 17348else
db9f46a9 17349 gcc_cv_math_func_asinhf=no
453310d8 17350fi
5213506e
RW
17351rm -f core conftest.err conftest.$ac_objext \
17352 conftest$ac_exeext conftest.$ac_ext
453310d8 17353fi
db9f46a9
TG
17354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17355$as_echo "$gcc_cv_math_func_asinhf" >&6; }
17356 if test $gcc_cv_math_func_asinhf = yes; then
f1cdfa01 17357
f38a14ca
TG
17358cat >>confdefs.h <<_ACEOF
17359#define HAVE_ASINHF 1
17360_ACEOF
db9f46a9
TG
17361
17362 fi
17363
453310d8 17364
453310d8 17365
453310d8 17366
db9f46a9
TG
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17368$as_echo_n "checking for asinh... " >&6; }
17369if test "${gcc_cv_math_func_asinh+set}" = set; then :
5213506e 17370 $as_echo_n "(cached) " >&6
453310d8 17371else
db9f46a9 17372 if test x$gcc_no_link = xyes; then
5213506e 17373 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17374fi
5213506e 17375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17376/* end confdefs.h. */
17377
db9f46a9
TG
17378#ifdef HAVE_COMPLEX_H
17379#include <complex.h>
17380#endif
17381#ifdef HAVE_MATH_H
17382#include <math.h>
453310d8 17383#endif
db9f46a9
TG
17384
17385int (*ptr)() = (int (*)())asinh;
17386
453310d8
RS
17387int
17388main ()
17389{
453310d8
RS
17390 return 0;
17391}
db9f46a9 17392
453310d8 17393_ACEOF
5213506e 17394if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17395 gcc_cv_math_func_asinh=yes
453310d8 17396else
db9f46a9 17397 gcc_cv_math_func_asinh=no
453310d8 17398fi
5213506e
RW
17399rm -f core conftest.err conftest.$ac_objext \
17400 conftest$ac_exeext conftest.$ac_ext
453310d8 17401fi
db9f46a9
TG
17402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17403$as_echo "$gcc_cv_math_func_asinh" >&6; }
17404 if test $gcc_cv_math_func_asinh = yes; then
f1cdfa01 17405
f38a14ca
TG
17406cat >>confdefs.h <<_ACEOF
17407#define HAVE_ASINH 1
17408_ACEOF
db9f46a9
TG
17409
17410 fi
453310d8 17411
453310d8 17412
453310d8 17413
db9f46a9
TG
17414
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17416$as_echo_n "checking for asinhl... " >&6; }
17417if test "${gcc_cv_math_func_asinhl+set}" = set; then :
5213506e 17418 $as_echo_n "(cached) " >&6
6e4d9244 17419else
db9f46a9 17420 if test x$gcc_no_link = xyes; then
5213506e 17421 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17422fi
5213506e 17423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6e4d9244
EB
17424/* end confdefs.h. */
17425
db9f46a9
TG
17426#ifdef HAVE_COMPLEX_H
17427#include <complex.h>
6e4d9244 17428#endif
db9f46a9
TG
17429#ifdef HAVE_MATH_H
17430#include <math.h>
17431#endif
17432
17433int (*ptr)() = (int (*)())asinhl;
17434
6e4d9244
EB
17435int
17436main ()
17437{
6e4d9244
EB
17438 return 0;
17439}
db9f46a9 17440
6e4d9244 17441_ACEOF
5213506e 17442if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17443 gcc_cv_math_func_asinhl=yes
6e4d9244 17444else
db9f46a9 17445 gcc_cv_math_func_asinhl=no
6e4d9244 17446fi
5213506e
RW
17447rm -f core conftest.err conftest.$ac_objext \
17448 conftest$ac_exeext conftest.$ac_ext
6e4d9244 17449fi
db9f46a9
TG
17450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17451$as_echo "$gcc_cv_math_func_asinhl" >&6; }
17452 if test $gcc_cv_math_func_asinhl = yes; then
f1cdfa01 17453
f38a14ca
TG
17454cat >>confdefs.h <<_ACEOF
17455#define HAVE_ASINHL 1
17456_ACEOF
6e4d9244 17457
db9f46a9 17458 fi
6e4d9244 17459
6e4d9244 17460
db9f46a9
TG
17461
17462
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17464$as_echo_n "checking for atan2f... " >&6; }
17465if test "${gcc_cv_math_func_atan2f+set}" = set; then :
5213506e 17466 $as_echo_n "(cached) " >&6
453310d8 17467else
db9f46a9 17468 if test x$gcc_no_link = xyes; then
5213506e 17469 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17470fi
5213506e 17471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17472/* end confdefs.h. */
17473
db9f46a9
TG
17474#ifdef HAVE_COMPLEX_H
17475#include <complex.h>
453310d8 17476#endif
db9f46a9
TG
17477#ifdef HAVE_MATH_H
17478#include <math.h>
17479#endif
17480
17481int (*ptr)() = (int (*)())atan2f;
17482
17483int
453310d8
RS
17484main ()
17485{
453310d8
RS
17486 return 0;
17487}
db9f46a9 17488
453310d8 17489_ACEOF
5213506e 17490if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17491 gcc_cv_math_func_atan2f=yes
453310d8 17492else
db9f46a9 17493 gcc_cv_math_func_atan2f=no
453310d8 17494fi
5213506e
RW
17495rm -f core conftest.err conftest.$ac_objext \
17496 conftest$ac_exeext conftest.$ac_ext
453310d8 17497fi
db9f46a9
TG
17498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17499$as_echo "$gcc_cv_math_func_atan2f" >&6; }
17500 if test $gcc_cv_math_func_atan2f = yes; then
f1cdfa01 17501
f38a14ca
TG
17502cat >>confdefs.h <<_ACEOF
17503#define HAVE_ATAN2F 1
17504_ACEOF
db9f46a9
TG
17505
17506 fi
453310d8 17507
453310d8 17508
453310d8 17509
db9f46a9
TG
17510
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17512$as_echo_n "checking for atan2... " >&6; }
17513if test "${gcc_cv_math_func_atan2+set}" = set; then :
5213506e 17514 $as_echo_n "(cached) " >&6
453310d8 17515else
db9f46a9 17516 if test x$gcc_no_link = xyes; then
5213506e 17517 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17518fi
5213506e 17519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17520/* end confdefs.h. */
17521
db9f46a9
TG
17522#ifdef HAVE_COMPLEX_H
17523#include <complex.h>
453310d8 17524#endif
db9f46a9
TG
17525#ifdef HAVE_MATH_H
17526#include <math.h>
17527#endif
17528
17529int (*ptr)() = (int (*)())atan2;
17530
453310d8
RS
17531int
17532main ()
17533{
453310d8
RS
17534 return 0;
17535}
db9f46a9 17536
453310d8 17537_ACEOF
5213506e 17538if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17539 gcc_cv_math_func_atan2=yes
453310d8 17540else
db9f46a9 17541 gcc_cv_math_func_atan2=no
453310d8 17542fi
5213506e
RW
17543rm -f core conftest.err conftest.$ac_objext \
17544 conftest$ac_exeext conftest.$ac_ext
453310d8 17545fi
db9f46a9
TG
17546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17547$as_echo "$gcc_cv_math_func_atan2" >&6; }
17548 if test $gcc_cv_math_func_atan2 = yes; then
f1cdfa01 17549
f38a14ca
TG
17550cat >>confdefs.h <<_ACEOF
17551#define HAVE_ATAN2 1
17552_ACEOF
453310d8 17553
db9f46a9 17554 fi
453310d8 17555
453310d8 17556
db9f46a9
TG
17557
17558
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17560$as_echo_n "checking for atan2l... " >&6; }
17561if test "${gcc_cv_math_func_atan2l+set}" = set; then :
5213506e 17562 $as_echo_n "(cached) " >&6
453310d8 17563else
db9f46a9 17564 if test x$gcc_no_link = xyes; then
5213506e 17565 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17566fi
5213506e 17567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17568/* end confdefs.h. */
17569
db9f46a9
TG
17570#ifdef HAVE_COMPLEX_H
17571#include <complex.h>
17572#endif
17573#ifdef HAVE_MATH_H
17574#include <math.h>
453310d8 17575#endif
db9f46a9
TG
17576
17577int (*ptr)() = (int (*)())atan2l;
17578
453310d8
RS
17579int
17580main ()
17581{
453310d8
RS
17582 return 0;
17583}
db9f46a9 17584
453310d8 17585_ACEOF
5213506e 17586if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17587 gcc_cv_math_func_atan2l=yes
453310d8 17588else
db9f46a9 17589 gcc_cv_math_func_atan2l=no
453310d8 17590fi
5213506e
RW
17591rm -f core conftest.err conftest.$ac_objext \
17592 conftest$ac_exeext conftest.$ac_ext
453310d8 17593fi
db9f46a9
TG
17594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17595$as_echo "$gcc_cv_math_func_atan2l" >&6; }
17596 if test $gcc_cv_math_func_atan2l = yes; then
f1cdfa01 17597
f38a14ca
TG
17598cat >>confdefs.h <<_ACEOF
17599#define HAVE_ATAN2L 1
17600_ACEOF
db9f46a9
TG
17601
17602 fi
453310d8 17603
453310d8 17604
453310d8 17605
db9f46a9
TG
17606
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17608$as_echo_n "checking for atanf... " >&6; }
17609if test "${gcc_cv_math_func_atanf+set}" = set; then :
5213506e 17610 $as_echo_n "(cached) " >&6
453310d8 17611else
db9f46a9 17612 if test x$gcc_no_link = xyes; then
5213506e 17613 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17614fi
5213506e 17615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17616/* end confdefs.h. */
17617
db9f46a9
TG
17618#ifdef HAVE_COMPLEX_H
17619#include <complex.h>
453310d8 17620#endif
db9f46a9
TG
17621#ifdef HAVE_MATH_H
17622#include <math.h>
17623#endif
17624
17625int (*ptr)() = (int (*)())atanf;
17626
453310d8
RS
17627int
17628main ()
17629{
453310d8
RS
17630 return 0;
17631}
db9f46a9 17632
453310d8 17633_ACEOF
5213506e 17634if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17635 gcc_cv_math_func_atanf=yes
453310d8 17636else
db9f46a9 17637 gcc_cv_math_func_atanf=no
453310d8 17638fi
5213506e
RW
17639rm -f core conftest.err conftest.$ac_objext \
17640 conftest$ac_exeext conftest.$ac_ext
453310d8 17641fi
db9f46a9
TG
17642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17643$as_echo "$gcc_cv_math_func_atanf" >&6; }
17644 if test $gcc_cv_math_func_atanf = yes; then
f1cdfa01 17645
f38a14ca
TG
17646cat >>confdefs.h <<_ACEOF
17647#define HAVE_ATANF 1
17648_ACEOF
db9f46a9
TG
17649
17650 fi
17651
453310d8 17652
453310d8 17653
453310d8 17654
db9f46a9
TG
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17656$as_echo_n "checking for atan... " >&6; }
17657if test "${gcc_cv_math_func_atan+set}" = set; then :
5213506e 17658 $as_echo_n "(cached) " >&6
453310d8 17659else
db9f46a9 17660 if test x$gcc_no_link = xyes; then
5213506e 17661 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17662fi
5213506e 17663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17664/* end confdefs.h. */
17665
db9f46a9
TG
17666#ifdef HAVE_COMPLEX_H
17667#include <complex.h>
17668#endif
17669#ifdef HAVE_MATH_H
17670#include <math.h>
453310d8 17671#endif
db9f46a9
TG
17672
17673int (*ptr)() = (int (*)())atan;
17674
453310d8
RS
17675int
17676main ()
17677{
453310d8
RS
17678 return 0;
17679}
db9f46a9 17680
453310d8 17681_ACEOF
5213506e 17682if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17683 gcc_cv_math_func_atan=yes
453310d8 17684else
db9f46a9 17685 gcc_cv_math_func_atan=no
453310d8 17686fi
5213506e
RW
17687rm -f core conftest.err conftest.$ac_objext \
17688 conftest$ac_exeext conftest.$ac_ext
453310d8 17689fi
db9f46a9
TG
17690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17691$as_echo "$gcc_cv_math_func_atan" >&6; }
17692 if test $gcc_cv_math_func_atan = yes; then
f1cdfa01 17693
f38a14ca
TG
17694cat >>confdefs.h <<_ACEOF
17695#define HAVE_ATAN 1
17696_ACEOF
db9f46a9
TG
17697
17698 fi
453310d8 17699
453310d8 17700
453310d8 17701
db9f46a9
TG
17702
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17704$as_echo_n "checking for atanl... " >&6; }
17705if test "${gcc_cv_math_func_atanl+set}" = set; then :
5213506e 17706 $as_echo_n "(cached) " >&6
32aa3bff 17707else
db9f46a9 17708 if test x$gcc_no_link = xyes; then
5213506e 17709 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17710fi
5213506e 17711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32aa3bff
FXC
17712/* end confdefs.h. */
17713
db9f46a9
TG
17714#ifdef HAVE_COMPLEX_H
17715#include <complex.h>
32aa3bff 17716#endif
db9f46a9
TG
17717#ifdef HAVE_MATH_H
17718#include <math.h>
17719#endif
17720
17721int (*ptr)() = (int (*)())atanl;
17722
32aa3bff
FXC
17723int
17724main ()
17725{
32aa3bff
FXC
17726 return 0;
17727}
db9f46a9 17728
32aa3bff 17729_ACEOF
5213506e 17730if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17731 gcc_cv_math_func_atanl=yes
32aa3bff 17732else
db9f46a9 17733 gcc_cv_math_func_atanl=no
32aa3bff 17734fi
5213506e
RW
17735rm -f core conftest.err conftest.$ac_objext \
17736 conftest$ac_exeext conftest.$ac_ext
32aa3bff 17737fi
db9f46a9
TG
17738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17739$as_echo "$gcc_cv_math_func_atanl" >&6; }
17740 if test $gcc_cv_math_func_atanl = yes; then
f1cdfa01 17741
f38a14ca
TG
17742cat >>confdefs.h <<_ACEOF
17743#define HAVE_ATANL 1
17744_ACEOF
32aa3bff 17745
db9f46a9 17746 fi
32aa3bff 17747
32aa3bff 17748
db9f46a9
TG
17749
17750
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17752$as_echo_n "checking for atanhf... " >&6; }
17753if test "${gcc_cv_math_func_atanhf+set}" = set; then :
5213506e 17754 $as_echo_n "(cached) " >&6
453310d8 17755else
db9f46a9 17756 if test x$gcc_no_link = xyes; then
5213506e 17757 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17758fi
5213506e 17759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17760/* end confdefs.h. */
17761
db9f46a9
TG
17762#ifdef HAVE_COMPLEX_H
17763#include <complex.h>
17764#endif
17765#ifdef HAVE_MATH_H
17766#include <math.h>
453310d8 17767#endif
db9f46a9
TG
17768
17769int (*ptr)() = (int (*)())atanhf;
17770
453310d8
RS
17771int
17772main ()
17773{
453310d8
RS
17774 return 0;
17775}
db9f46a9 17776
453310d8 17777_ACEOF
5213506e 17778if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17779 gcc_cv_math_func_atanhf=yes
453310d8 17780else
db9f46a9 17781 gcc_cv_math_func_atanhf=no
453310d8 17782fi
5213506e
RW
17783rm -f core conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
453310d8 17785fi
db9f46a9
TG
17786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17787$as_echo "$gcc_cv_math_func_atanhf" >&6; }
17788 if test $gcc_cv_math_func_atanhf = yes; then
f1cdfa01 17789
f38a14ca
TG
17790cat >>confdefs.h <<_ACEOF
17791#define HAVE_ATANHF 1
17792_ACEOF
db9f46a9
TG
17793
17794 fi
453310d8 17795
453310d8 17796
453310d8 17797
db9f46a9
TG
17798
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17800$as_echo_n "checking for atanh... " >&6; }
17801if test "${gcc_cv_math_func_atanh+set}" = set; then :
5213506e 17802 $as_echo_n "(cached) " >&6
453310d8 17803else
db9f46a9 17804 if test x$gcc_no_link = xyes; then
5213506e 17805 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17806fi
5213506e 17807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17808/* end confdefs.h. */
17809
db9f46a9
TG
17810#ifdef HAVE_COMPLEX_H
17811#include <complex.h>
453310d8 17812#endif
db9f46a9
TG
17813#ifdef HAVE_MATH_H
17814#include <math.h>
17815#endif
17816
17817int (*ptr)() = (int (*)())atanh;
17818
453310d8
RS
17819int
17820main ()
17821{
453310d8
RS
17822 return 0;
17823}
db9f46a9 17824
453310d8 17825_ACEOF
5213506e 17826if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17827 gcc_cv_math_func_atanh=yes
453310d8 17828else
db9f46a9 17829 gcc_cv_math_func_atanh=no
453310d8 17830fi
5213506e
RW
17831rm -f core conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
453310d8 17833fi
db9f46a9
TG
17834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17835$as_echo "$gcc_cv_math_func_atanh" >&6; }
17836 if test $gcc_cv_math_func_atanh = yes; then
f1cdfa01 17837
f38a14ca
TG
17838cat >>confdefs.h <<_ACEOF
17839#define HAVE_ATANH 1
17840_ACEOF
db9f46a9
TG
17841
17842 fi
17843
453310d8 17844
453310d8 17845
453310d8 17846
db9f46a9
TG
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17848$as_echo_n "checking for atanhl... " >&6; }
17849if test "${gcc_cv_math_func_atanhl+set}" = set; then :
5213506e 17850 $as_echo_n "(cached) " >&6
bf4d99cf 17851else
db9f46a9 17852 if test x$gcc_no_link = xyes; then
5213506e 17853 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17854fi
5213506e 17855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bf4d99cf
TS
17856/* end confdefs.h. */
17857
db9f46a9
TG
17858#ifdef HAVE_COMPLEX_H
17859#include <complex.h>
17860#endif
17861#ifdef HAVE_MATH_H
17862#include <math.h>
bf4d99cf 17863#endif
db9f46a9
TG
17864
17865int (*ptr)() = (int (*)())atanhl;
17866
bf4d99cf
TS
17867int
17868main ()
17869{
bf4d99cf
TS
17870 return 0;
17871}
db9f46a9 17872
bf4d99cf 17873_ACEOF
5213506e 17874if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17875 gcc_cv_math_func_atanhl=yes
bf4d99cf 17876else
db9f46a9 17877 gcc_cv_math_func_atanhl=no
bf4d99cf 17878fi
5213506e
RW
17879rm -f core conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
bf4d99cf 17881fi
db9f46a9
TG
17882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17883$as_echo "$gcc_cv_math_func_atanhl" >&6; }
17884 if test $gcc_cv_math_func_atanhl = yes; then
f1cdfa01 17885
f38a14ca
TG
17886cat >>confdefs.h <<_ACEOF
17887#define HAVE_ATANHL 1
17888_ACEOF
db9f46a9
TG
17889
17890 fi
bf4d99cf 17891
bf4d99cf 17892
bf4d99cf 17893
db9f46a9
TG
17894
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17896$as_echo_n "checking for cargf... " >&6; }
17897if test "${gcc_cv_math_func_cargf+set}" = set; then :
5213506e 17898 $as_echo_n "(cached) " >&6
a2a2059f 17899else
db9f46a9 17900 if test x$gcc_no_link = xyes; then
5213506e 17901 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17902fi
5213506e 17903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
17904/* end confdefs.h. */
17905
db9f46a9
TG
17906#ifdef HAVE_COMPLEX_H
17907#include <complex.h>
a2a2059f 17908#endif
db9f46a9
TG
17909#ifdef HAVE_MATH_H
17910#include <math.h>
17911#endif
17912
17913int (*ptr)() = (int (*)())cargf;
17914
453310d8
RS
17915int
17916main ()
17917{
453310d8
RS
17918 return 0;
17919}
db9f46a9 17920
453310d8 17921_ACEOF
5213506e 17922if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17923 gcc_cv_math_func_cargf=yes
453310d8 17924else
db9f46a9 17925 gcc_cv_math_func_cargf=no
453310d8 17926fi
5213506e
RW
17927rm -f core conftest.err conftest.$ac_objext \
17928 conftest$ac_exeext conftest.$ac_ext
453310d8 17929fi
db9f46a9
TG
17930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17931$as_echo "$gcc_cv_math_func_cargf" >&6; }
17932 if test $gcc_cv_math_func_cargf = yes; then
f1cdfa01 17933
f38a14ca
TG
17934cat >>confdefs.h <<_ACEOF
17935#define HAVE_CARGF 1
17936_ACEOF
453310d8 17937
db9f46a9 17938 fi
453310d8 17939
453310d8 17940
db9f46a9
TG
17941
17942
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17944$as_echo_n "checking for carg... " >&6; }
17945if test "${gcc_cv_math_func_carg+set}" = set; then :
5213506e 17946 $as_echo_n "(cached) " >&6
453310d8 17947else
db9f46a9 17948 if test x$gcc_no_link = xyes; then
5213506e 17949 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17950fi
5213506e 17951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17952/* end confdefs.h. */
17953
db9f46a9
TG
17954#ifdef HAVE_COMPLEX_H
17955#include <complex.h>
17956#endif
17957#ifdef HAVE_MATH_H
17958#include <math.h>
453310d8 17959#endif
db9f46a9
TG
17960
17961int (*ptr)() = (int (*)())carg;
17962
a2a2059f
BD
17963int
17964main ()
17965{
a2a2059f
BD
17966 return 0;
17967}
db9f46a9 17968
a2a2059f 17969_ACEOF
5213506e 17970if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17971 gcc_cv_math_func_carg=yes
a2a2059f 17972else
db9f46a9 17973 gcc_cv_math_func_carg=no
a2a2059f 17974fi
5213506e
RW
17975rm -f core conftest.err conftest.$ac_objext \
17976 conftest$ac_exeext conftest.$ac_ext
a2a2059f 17977fi
db9f46a9
TG
17978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17979$as_echo "$gcc_cv_math_func_carg" >&6; }
17980 if test $gcc_cv_math_func_carg = yes; then
f1cdfa01 17981
f38a14ca
TG
17982cat >>confdefs.h <<_ACEOF
17983#define HAVE_CARG 1
17984_ACEOF
db9f46a9
TG
17985
17986 fi
a2a2059f 17987
a2a2059f 17988
a2a2059f 17989
db9f46a9
TG
17990
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17992$as_echo_n "checking for cargl... " >&6; }
17993if test "${gcc_cv_math_func_cargl+set}" = set; then :
5213506e 17994 $as_echo_n "(cached) " >&6
a2a2059f 17995else
db9f46a9 17996 if test x$gcc_no_link = xyes; then
5213506e 17997 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17998fi
5213506e 17999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
18000/* end confdefs.h. */
18001
db9f46a9
TG
18002#ifdef HAVE_COMPLEX_H
18003#include <complex.h>
a2a2059f 18004#endif
db9f46a9
TG
18005#ifdef HAVE_MATH_H
18006#include <math.h>
18007#endif
18008
18009int (*ptr)() = (int (*)())cargl;
18010
a2a2059f
BD
18011int
18012main ()
18013{
a2a2059f
BD
18014 return 0;
18015}
db9f46a9 18016
a2a2059f 18017_ACEOF
5213506e 18018if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18019 gcc_cv_math_func_cargl=yes
a2a2059f 18020else
db9f46a9 18021 gcc_cv_math_func_cargl=no
a2a2059f 18022fi
5213506e
RW
18023rm -f core conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
a2a2059f 18025fi
db9f46a9
TG
18026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18027$as_echo "$gcc_cv_math_func_cargl" >&6; }
18028 if test $gcc_cv_math_func_cargl = yes; then
f1cdfa01 18029
f38a14ca
TG
18030cat >>confdefs.h <<_ACEOF
18031#define HAVE_CARGL 1
18032_ACEOF
db9f46a9
TG
18033
18034 fi
18035
a2a2059f 18036
a2a2059f 18037
a2a2059f 18038
db9f46a9
TG
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18040$as_echo_n "checking for ceilf... " >&6; }
18041if test "${gcc_cv_math_func_ceilf+set}" = set; then :
5213506e 18042 $as_echo_n "(cached) " >&6
ae973d6a 18043else
db9f46a9 18044 if test x$gcc_no_link = xyes; then
5213506e 18045 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18046fi
5213506e 18047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae973d6a
FXC
18048/* end confdefs.h. */
18049
db9f46a9
TG
18050#ifdef HAVE_COMPLEX_H
18051#include <complex.h>
18052#endif
18053#ifdef HAVE_MATH_H
18054#include <math.h>
ae973d6a 18055#endif
db9f46a9
TG
18056
18057int (*ptr)() = (int (*)())ceilf;
18058
ae973d6a
FXC
18059int
18060main ()
18061{
ae973d6a
FXC
18062 return 0;
18063}
db9f46a9 18064
ae973d6a 18065_ACEOF
5213506e 18066if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18067 gcc_cv_math_func_ceilf=yes
ae973d6a 18068else
db9f46a9 18069 gcc_cv_math_func_ceilf=no
ae973d6a 18070fi
5213506e
RW
18071rm -f core conftest.err conftest.$ac_objext \
18072 conftest$ac_exeext conftest.$ac_ext
ae973d6a 18073fi
db9f46a9
TG
18074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18075$as_echo "$gcc_cv_math_func_ceilf" >&6; }
18076 if test $gcc_cv_math_func_ceilf = yes; then
f1cdfa01 18077
f38a14ca
TG
18078cat >>confdefs.h <<_ACEOF
18079#define HAVE_CEILF 1
18080_ACEOF
db9f46a9
TG
18081
18082 fi
ae973d6a 18083
ae973d6a 18084
ae973d6a 18085
db9f46a9
TG
18086
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18088$as_echo_n "checking for ceil... " >&6; }
18089if test "${gcc_cv_math_func_ceil+set}" = set; then :
5213506e 18090 $as_echo_n "(cached) " >&6
a9e7b9d3 18091else
db9f46a9 18092 if test x$gcc_no_link = xyes; then
5213506e 18093 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18094fi
5213506e 18095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
18096/* end confdefs.h. */
18097
db9f46a9
TG
18098#ifdef HAVE_COMPLEX_H
18099#include <complex.h>
a9e7b9d3 18100#endif
db9f46a9
TG
18101#ifdef HAVE_MATH_H
18102#include <math.h>
18103#endif
18104
18105int (*ptr)() = (int (*)())ceil;
18106
a9e7b9d3
PB
18107int
18108main ()
18109{
a9e7b9d3
PB
18110 return 0;
18111}
db9f46a9 18112
a9e7b9d3 18113_ACEOF
5213506e 18114if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18115 gcc_cv_math_func_ceil=yes
a9e7b9d3 18116else
db9f46a9 18117 gcc_cv_math_func_ceil=no
a9e7b9d3 18118fi
5213506e
RW
18119rm -f core conftest.err conftest.$ac_objext \
18120 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 18121fi
db9f46a9
TG
18122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18123$as_echo "$gcc_cv_math_func_ceil" >&6; }
18124 if test $gcc_cv_math_func_ceil = yes; then
f1cdfa01 18125
f38a14ca
TG
18126cat >>confdefs.h <<_ACEOF
18127#define HAVE_CEIL 1
18128_ACEOF
a9e7b9d3 18129
db9f46a9 18130 fi
a9e7b9d3 18131
a9e7b9d3 18132
db9f46a9
TG
18133
18134
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18136$as_echo_n "checking for ceill... " >&6; }
18137if test "${gcc_cv_math_func_ceill+set}" = set; then :
5213506e 18138 $as_echo_n "(cached) " >&6
a9e7b9d3 18139else
db9f46a9 18140 if test x$gcc_no_link = xyes; then
5213506e 18141 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18142fi
5213506e 18143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
18144/* end confdefs.h. */
18145
db9f46a9
TG
18146#ifdef HAVE_COMPLEX_H
18147#include <complex.h>
18148#endif
18149#ifdef HAVE_MATH_H
18150#include <math.h>
a9e7b9d3 18151#endif
db9f46a9
TG
18152
18153int (*ptr)() = (int (*)())ceill;
18154
a9e7b9d3
PB
18155int
18156main ()
18157{
a9e7b9d3
PB
18158 return 0;
18159}
db9f46a9 18160
a9e7b9d3 18161_ACEOF
5213506e 18162if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18163 gcc_cv_math_func_ceill=yes
a9e7b9d3 18164else
db9f46a9 18165 gcc_cv_math_func_ceill=no
a9e7b9d3 18166fi
5213506e
RW
18167rm -f core conftest.err conftest.$ac_objext \
18168 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 18169fi
db9f46a9
TG
18170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18171$as_echo "$gcc_cv_math_func_ceill" >&6; }
18172 if test $gcc_cv_math_func_ceill = yes; then
f1cdfa01 18173
f38a14ca
TG
18174cat >>confdefs.h <<_ACEOF
18175#define HAVE_CEILL 1
18176_ACEOF
db9f46a9
TG
18177
18178 fi
a9e7b9d3 18179
453310d8 18180
453310d8 18181
db9f46a9
TG
18182
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18184$as_echo_n "checking for copysignf... " >&6; }
18185if test "${gcc_cv_math_func_copysignf+set}" = set; then :
5213506e 18186 $as_echo_n "(cached) " >&6
453310d8 18187else
db9f46a9 18188 if test x$gcc_no_link = xyes; then
5213506e 18189 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18190fi
5213506e 18191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18192/* end confdefs.h. */
18193
db9f46a9
TG
18194#ifdef HAVE_COMPLEX_H
18195#include <complex.h>
453310d8 18196#endif
db9f46a9
TG
18197#ifdef HAVE_MATH_H
18198#include <math.h>
18199#endif
18200
18201int (*ptr)() = (int (*)())copysignf;
18202
453310d8
RS
18203int
18204main ()
18205{
453310d8
RS
18206 return 0;
18207}
db9f46a9 18208
453310d8 18209_ACEOF
5213506e 18210if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18211 gcc_cv_math_func_copysignf=yes
453310d8 18212else
db9f46a9 18213 gcc_cv_math_func_copysignf=no
453310d8 18214fi
5213506e
RW
18215rm -f core conftest.err conftest.$ac_objext \
18216 conftest$ac_exeext conftest.$ac_ext
453310d8 18217fi
db9f46a9
TG
18218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18219$as_echo "$gcc_cv_math_func_copysignf" >&6; }
18220 if test $gcc_cv_math_func_copysignf = yes; then
f1cdfa01 18221
f38a14ca
TG
18222cat >>confdefs.h <<_ACEOF
18223#define HAVE_COPYSIGNF 1
18224_ACEOF
db9f46a9
TG
18225
18226 fi
18227
453310d8 18228
453310d8 18229
453310d8 18230
db9f46a9
TG
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18232$as_echo_n "checking for copysign... " >&6; }
18233if test "${gcc_cv_math_func_copysign+set}" = set; then :
5213506e 18234 $as_echo_n "(cached) " >&6
453310d8 18235else
db9f46a9 18236 if test x$gcc_no_link = xyes; then
5213506e 18237 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18238fi
5213506e 18239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18240/* end confdefs.h. */
18241
db9f46a9
TG
18242#ifdef HAVE_COMPLEX_H
18243#include <complex.h>
18244#endif
18245#ifdef HAVE_MATH_H
18246#include <math.h>
453310d8 18247#endif
db9f46a9
TG
18248
18249int (*ptr)() = (int (*)())copysign;
18250
453310d8
RS
18251int
18252main ()
18253{
453310d8
RS
18254 return 0;
18255}
db9f46a9 18256
453310d8 18257_ACEOF
5213506e 18258if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18259 gcc_cv_math_func_copysign=yes
453310d8 18260else
db9f46a9 18261 gcc_cv_math_func_copysign=no
453310d8 18262fi
5213506e
RW
18263rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
453310d8 18265fi
db9f46a9
TG
18266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18267$as_echo "$gcc_cv_math_func_copysign" >&6; }
18268 if test $gcc_cv_math_func_copysign = yes; then
f1cdfa01 18269
f38a14ca
TG
18270cat >>confdefs.h <<_ACEOF
18271#define HAVE_COPYSIGN 1
18272_ACEOF
db9f46a9
TG
18273
18274 fi
453310d8 18275
453310d8 18276
453310d8 18277
db9f46a9
TG
18278
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18280$as_echo_n "checking for copysignl... " >&6; }
18281if test "${gcc_cv_math_func_copysignl+set}" = set; then :
5213506e 18282 $as_echo_n "(cached) " >&6
453310d8 18283else
db9f46a9 18284 if test x$gcc_no_link = xyes; then
5213506e 18285 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18286fi
5213506e 18287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18288/* end confdefs.h. */
18289
db9f46a9
TG
18290#ifdef HAVE_COMPLEX_H
18291#include <complex.h>
453310d8 18292#endif
db9f46a9
TG
18293#ifdef HAVE_MATH_H
18294#include <math.h>
18295#endif
18296
18297int (*ptr)() = (int (*)())copysignl;
18298
453310d8
RS
18299int
18300main ()
18301{
5213506e
RW
18302 return 0;
18303}
db9f46a9 18304
5213506e
RW
18305_ACEOF
18306if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18307 gcc_cv_math_func_copysignl=yes
453310d8 18308else
db9f46a9 18309 gcc_cv_math_func_copysignl=no
453310d8 18310fi
5213506e
RW
18311rm -f core conftest.err conftest.$ac_objext \
18312 conftest$ac_exeext conftest.$ac_ext
453310d8 18313fi
db9f46a9
TG
18314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18315$as_echo "$gcc_cv_math_func_copysignl" >&6; }
18316 if test $gcc_cv_math_func_copysignl = yes; then
f1cdfa01 18317
f38a14ca
TG
18318cat >>confdefs.h <<_ACEOF
18319#define HAVE_COPYSIGNL 1
18320_ACEOF
453310d8 18321
db9f46a9 18322 fi
a9e7b9d3 18323
a9e7b9d3 18324
db9f46a9
TG
18325
18326
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18328$as_echo_n "checking for cosf... " >&6; }
18329if test "${gcc_cv_math_func_cosf+set}" = set; then :
5213506e 18330 $as_echo_n "(cached) " >&6
69a2d125 18331else
db9f46a9 18332 if test x$gcc_no_link = xyes; then
5213506e 18333 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18334fi
5213506e 18335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
18336/* end confdefs.h. */
18337
db9f46a9
TG
18338#ifdef HAVE_COMPLEX_H
18339#include <complex.h>
18340#endif
18341#ifdef HAVE_MATH_H
18342#include <math.h>
69a2d125 18343#endif
db9f46a9
TG
18344
18345int (*ptr)() = (int (*)())cosf;
18346
69a2d125
EB
18347int
18348main ()
18349{
69a2d125
EB
18350 return 0;
18351}
db9f46a9 18352
69a2d125 18353_ACEOF
5213506e 18354if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18355 gcc_cv_math_func_cosf=yes
69a2d125 18356else
db9f46a9 18357 gcc_cv_math_func_cosf=no
69a2d125 18358fi
5213506e
RW
18359rm -f core conftest.err conftest.$ac_objext \
18360 conftest$ac_exeext conftest.$ac_ext
69a2d125 18361fi
db9f46a9
TG
18362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18363$as_echo "$gcc_cv_math_func_cosf" >&6; }
18364 if test $gcc_cv_math_func_cosf = yes; then
f1cdfa01 18365
f38a14ca
TG
18366cat >>confdefs.h <<_ACEOF
18367#define HAVE_COSF 1
18368_ACEOF
db9f46a9
TG
18369
18370 fi
69a2d125 18371
1409cd0b 18372
1409cd0b 18373
db9f46a9
TG
18374
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18376$as_echo_n "checking for cos... " >&6; }
18377if test "${gcc_cv_math_func_cos+set}" = set; then :
5213506e 18378 $as_echo_n "(cached) " >&6
1409cd0b 18379else
db9f46a9 18380 if test x$gcc_no_link = xyes; then
5213506e 18381 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18382fi
5213506e 18383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18384/* end confdefs.h. */
18385
db9f46a9
TG
18386#ifdef HAVE_COMPLEX_H
18387#include <complex.h>
1409cd0b 18388#endif
db9f46a9
TG
18389#ifdef HAVE_MATH_H
18390#include <math.h>
18391#endif
18392
18393int (*ptr)() = (int (*)())cos;
18394
1409cd0b
FXC
18395int
18396main ()
18397{
1409cd0b
FXC
18398 return 0;
18399}
db9f46a9 18400
1409cd0b 18401_ACEOF
5213506e 18402if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18403 gcc_cv_math_func_cos=yes
1409cd0b 18404else
db9f46a9 18405 gcc_cv_math_func_cos=no
1409cd0b 18406fi
5213506e
RW
18407rm -f core conftest.err conftest.$ac_objext \
18408 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18409fi
db9f46a9
TG
18410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18411$as_echo "$gcc_cv_math_func_cos" >&6; }
18412 if test $gcc_cv_math_func_cos = yes; then
f1cdfa01 18413
f38a14ca
TG
18414cat >>confdefs.h <<_ACEOF
18415#define HAVE_COS 1
18416_ACEOF
db9f46a9
TG
18417
18418 fi
18419
1409cd0b 18420
1409cd0b 18421
1409cd0b 18422
db9f46a9
TG
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18424$as_echo_n "checking for cosl... " >&6; }
18425if test "${gcc_cv_math_func_cosl+set}" = set; then :
5213506e 18426 $as_echo_n "(cached) " >&6
1409cd0b 18427else
db9f46a9 18428 if test x$gcc_no_link = xyes; then
5213506e 18429 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18430fi
5213506e 18431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18432/* end confdefs.h. */
18433
db9f46a9
TG
18434#ifdef HAVE_COMPLEX_H
18435#include <complex.h>
18436#endif
18437#ifdef HAVE_MATH_H
18438#include <math.h>
1409cd0b 18439#endif
db9f46a9
TG
18440
18441int (*ptr)() = (int (*)())cosl;
18442
1409cd0b
FXC
18443int
18444main ()
18445{
1409cd0b
FXC
18446 return 0;
18447}
db9f46a9 18448
1409cd0b 18449_ACEOF
5213506e 18450if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18451 gcc_cv_math_func_cosl=yes
1409cd0b 18452else
db9f46a9 18453 gcc_cv_math_func_cosl=no
1409cd0b 18454fi
5213506e
RW
18455rm -f core conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18457fi
db9f46a9
TG
18458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18459$as_echo "$gcc_cv_math_func_cosl" >&6; }
18460 if test $gcc_cv_math_func_cosl = yes; then
f1cdfa01 18461
f38a14ca
TG
18462cat >>confdefs.h <<_ACEOF
18463#define HAVE_COSL 1
18464_ACEOF
db9f46a9
TG
18465
18466 fi
1409cd0b 18467
1409cd0b 18468
1409cd0b 18469
db9f46a9
TG
18470
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18472$as_echo_n "checking for ccosf... " >&6; }
18473if test "${gcc_cv_math_func_ccosf+set}" = set; then :
5213506e 18474 $as_echo_n "(cached) " >&6
1409cd0b 18475else
db9f46a9 18476 if test x$gcc_no_link = xyes; then
5213506e 18477 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18478fi
5213506e 18479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18480/* end confdefs.h. */
18481
db9f46a9
TG
18482#ifdef HAVE_COMPLEX_H
18483#include <complex.h>
1409cd0b 18484#endif
db9f46a9
TG
18485#ifdef HAVE_MATH_H
18486#include <math.h>
18487#endif
18488
18489int (*ptr)() = (int (*)())ccosf;
18490
1409cd0b
FXC
18491int
18492main ()
18493{
1409cd0b
FXC
18494 return 0;
18495}
db9f46a9 18496
1409cd0b 18497_ACEOF
5213506e 18498if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18499 gcc_cv_math_func_ccosf=yes
1409cd0b 18500else
db9f46a9 18501 gcc_cv_math_func_ccosf=no
1409cd0b 18502fi
5213506e
RW
18503rm -f core conftest.err conftest.$ac_objext \
18504 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18505fi
db9f46a9
TG
18506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18507$as_echo "$gcc_cv_math_func_ccosf" >&6; }
18508 if test $gcc_cv_math_func_ccosf = yes; then
f1cdfa01 18509
f38a14ca
TG
18510cat >>confdefs.h <<_ACEOF
18511#define HAVE_CCOSF 1
18512_ACEOF
1409cd0b 18513
db9f46a9 18514 fi
1409cd0b 18515
1409cd0b 18516
db9f46a9
TG
18517
18518
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18520$as_echo_n "checking for ccos... " >&6; }
18521if test "${gcc_cv_math_func_ccos+set}" = set; then :
5213506e 18522 $as_echo_n "(cached) " >&6
1409cd0b 18523else
db9f46a9 18524 if test x$gcc_no_link = xyes; then
5213506e 18525 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18526fi
5213506e 18527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18528/* end confdefs.h. */
18529
db9f46a9
TG
18530#ifdef HAVE_COMPLEX_H
18531#include <complex.h>
18532#endif
18533#ifdef HAVE_MATH_H
18534#include <math.h>
1409cd0b 18535#endif
db9f46a9
TG
18536
18537int (*ptr)() = (int (*)())ccos;
18538
1409cd0b
FXC
18539int
18540main ()
18541{
1409cd0b
FXC
18542 return 0;
18543}
db9f46a9 18544
1409cd0b 18545_ACEOF
5213506e 18546if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18547 gcc_cv_math_func_ccos=yes
1409cd0b 18548else
db9f46a9 18549 gcc_cv_math_func_ccos=no
1409cd0b 18550fi
5213506e
RW
18551rm -f core conftest.err conftest.$ac_objext \
18552 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18553fi
db9f46a9
TG
18554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18555$as_echo "$gcc_cv_math_func_ccos" >&6; }
18556 if test $gcc_cv_math_func_ccos = yes; then
f1cdfa01 18557
f38a14ca
TG
18558cat >>confdefs.h <<_ACEOF
18559#define HAVE_CCOS 1
18560_ACEOF
db9f46a9
TG
18561
18562 fi
1409cd0b 18563
1409cd0b 18564
1409cd0b 18565
db9f46a9
TG
18566
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18568$as_echo_n "checking for ccosl... " >&6; }
18569if test "${gcc_cv_math_func_ccosl+set}" = set; then :
5213506e 18570 $as_echo_n "(cached) " >&6
1409cd0b 18571else
db9f46a9 18572 if test x$gcc_no_link = xyes; then
5213506e 18573 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18574fi
5213506e 18575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18576/* end confdefs.h. */
18577
db9f46a9
TG
18578#ifdef HAVE_COMPLEX_H
18579#include <complex.h>
1409cd0b 18580#endif
db9f46a9
TG
18581#ifdef HAVE_MATH_H
18582#include <math.h>
18583#endif
18584
18585int (*ptr)() = (int (*)())ccosl;
18586
1409cd0b
FXC
18587int
18588main ()
18589{
1409cd0b
FXC
18590 return 0;
18591}
db9f46a9 18592
1409cd0b 18593_ACEOF
5213506e 18594if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18595 gcc_cv_math_func_ccosl=yes
1409cd0b 18596else
db9f46a9 18597 gcc_cv_math_func_ccosl=no
1409cd0b 18598fi
5213506e
RW
18599rm -f core conftest.err conftest.$ac_objext \
18600 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18601fi
db9f46a9
TG
18602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18603$as_echo "$gcc_cv_math_func_ccosl" >&6; }
18604 if test $gcc_cv_math_func_ccosl = yes; then
f1cdfa01 18605
f38a14ca
TG
18606cat >>confdefs.h <<_ACEOF
18607#define HAVE_CCOSL 1
18608_ACEOF
db9f46a9
TG
18609
18610 fi
18611
1409cd0b 18612
1409cd0b 18613
1409cd0b 18614
db9f46a9
TG
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18616$as_echo_n "checking for coshf... " >&6; }
18617if test "${gcc_cv_math_func_coshf+set}" = set; then :
5213506e 18618 $as_echo_n "(cached) " >&6
1409cd0b 18619else
db9f46a9 18620 if test x$gcc_no_link = xyes; then
5213506e 18621 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18622fi
5213506e 18623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18624/* end confdefs.h. */
18625
db9f46a9
TG
18626#ifdef HAVE_COMPLEX_H
18627#include <complex.h>
18628#endif
18629#ifdef HAVE_MATH_H
18630#include <math.h>
1409cd0b 18631#endif
db9f46a9
TG
18632
18633int (*ptr)() = (int (*)())coshf;
18634
1409cd0b
FXC
18635int
18636main ()
18637{
1409cd0b
FXC
18638 return 0;
18639}
db9f46a9 18640
1409cd0b 18641_ACEOF
5213506e 18642if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18643 gcc_cv_math_func_coshf=yes
1409cd0b 18644else
db9f46a9 18645 gcc_cv_math_func_coshf=no
1409cd0b 18646fi
5213506e
RW
18647rm -f core conftest.err conftest.$ac_objext \
18648 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18649fi
db9f46a9
TG
18650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18651$as_echo "$gcc_cv_math_func_coshf" >&6; }
18652 if test $gcc_cv_math_func_coshf = yes; then
f1cdfa01 18653
f38a14ca
TG
18654cat >>confdefs.h <<_ACEOF
18655#define HAVE_COSHF 1
18656_ACEOF
db9f46a9
TG
18657
18658 fi
1409cd0b 18659
1409cd0b 18660
1409cd0b 18661
db9f46a9
TG
18662
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18664$as_echo_n "checking for cosh... " >&6; }
18665if test "${gcc_cv_math_func_cosh+set}" = set; then :
5213506e 18666 $as_echo_n "(cached) " >&6
1409cd0b 18667else
db9f46a9 18668 if test x$gcc_no_link = xyes; then
5213506e 18669 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18670fi
5213506e 18671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18672/* end confdefs.h. */
18673
db9f46a9
TG
18674#ifdef HAVE_COMPLEX_H
18675#include <complex.h>
1409cd0b 18676#endif
db9f46a9
TG
18677#ifdef HAVE_MATH_H
18678#include <math.h>
18679#endif
18680
18681int (*ptr)() = (int (*)())cosh;
18682
1409cd0b
FXC
18683int
18684main ()
18685{
1409cd0b
FXC
18686 return 0;
18687}
db9f46a9 18688
1409cd0b 18689_ACEOF
5213506e 18690if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18691 gcc_cv_math_func_cosh=yes
1409cd0b 18692else
db9f46a9 18693 gcc_cv_math_func_cosh=no
1409cd0b 18694fi
5213506e
RW
18695rm -f core conftest.err conftest.$ac_objext \
18696 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18697fi
db9f46a9
TG
18698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18699$as_echo "$gcc_cv_math_func_cosh" >&6; }
18700 if test $gcc_cv_math_func_cosh = yes; then
f1cdfa01 18701
f38a14ca
TG
18702cat >>confdefs.h <<_ACEOF
18703#define HAVE_COSH 1
18704_ACEOF
1409cd0b 18705
db9f46a9 18706 fi
1409cd0b 18707
1409cd0b 18708
db9f46a9
TG
18709
18710
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18712$as_echo_n "checking for coshl... " >&6; }
18713if test "${gcc_cv_math_func_coshl+set}" = set; then :
5213506e 18714 $as_echo_n "(cached) " >&6
1409cd0b 18715else
db9f46a9 18716 if test x$gcc_no_link = xyes; then
5213506e 18717 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18718fi
5213506e 18719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18720/* end confdefs.h. */
18721
db9f46a9
TG
18722#ifdef HAVE_COMPLEX_H
18723#include <complex.h>
18724#endif
18725#ifdef HAVE_MATH_H
18726#include <math.h>
1409cd0b 18727#endif
db9f46a9
TG
18728
18729int (*ptr)() = (int (*)())coshl;
18730
1409cd0b
FXC
18731int
18732main ()
18733{
1409cd0b
FXC
18734 return 0;
18735}
db9f46a9 18736
1409cd0b 18737_ACEOF
5213506e 18738if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18739 gcc_cv_math_func_coshl=yes
1409cd0b 18740else
db9f46a9 18741 gcc_cv_math_func_coshl=no
1409cd0b 18742fi
5213506e
RW
18743rm -f core conftest.err conftest.$ac_objext \
18744 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18745fi
db9f46a9
TG
18746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18747$as_echo "$gcc_cv_math_func_coshl" >&6; }
18748 if test $gcc_cv_math_func_coshl = yes; then
f1cdfa01 18749
f38a14ca
TG
18750cat >>confdefs.h <<_ACEOF
18751#define HAVE_COSHL 1
18752_ACEOF
db9f46a9
TG
18753
18754 fi
1409cd0b 18755
1409cd0b 18756
1409cd0b 18757
db9f46a9
TG
18758
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18760$as_echo_n "checking for ccoshf... " >&6; }
18761if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
5213506e 18762 $as_echo_n "(cached) " >&6
1409cd0b 18763else
db9f46a9 18764 if test x$gcc_no_link = xyes; then
5213506e 18765 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18766fi
5213506e 18767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18768/* end confdefs.h. */
18769
db9f46a9
TG
18770#ifdef HAVE_COMPLEX_H
18771#include <complex.h>
1409cd0b 18772#endif
db9f46a9
TG
18773#ifdef HAVE_MATH_H
18774#include <math.h>
18775#endif
18776
18777int (*ptr)() = (int (*)())ccoshf;
18778
1409cd0b
FXC
18779int
18780main ()
18781{
1409cd0b
FXC
18782 return 0;
18783}
db9f46a9 18784
1409cd0b 18785_ACEOF
5213506e 18786if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18787 gcc_cv_math_func_ccoshf=yes
1409cd0b 18788else
db9f46a9 18789 gcc_cv_math_func_ccoshf=no
1409cd0b 18790fi
5213506e
RW
18791rm -f core conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18793fi
db9f46a9
TG
18794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18795$as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18796 if test $gcc_cv_math_func_ccoshf = yes; then
f1cdfa01 18797
f38a14ca
TG
18798cat >>confdefs.h <<_ACEOF
18799#define HAVE_CCOSHF 1
18800_ACEOF
db9f46a9
TG
18801
18802 fi
18803
1409cd0b 18804
1409cd0b 18805
1409cd0b 18806
db9f46a9
TG
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18808$as_echo_n "checking for ccosh... " >&6; }
18809if test "${gcc_cv_math_func_ccosh+set}" = set; then :
5213506e 18810 $as_echo_n "(cached) " >&6
1409cd0b 18811else
db9f46a9 18812 if test x$gcc_no_link = xyes; then
5213506e 18813 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18814fi
5213506e 18815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18816/* end confdefs.h. */
18817
db9f46a9
TG
18818#ifdef HAVE_COMPLEX_H
18819#include <complex.h>
18820#endif
18821#ifdef HAVE_MATH_H
18822#include <math.h>
1409cd0b 18823#endif
db9f46a9
TG
18824
18825int (*ptr)() = (int (*)())ccosh;
18826
1409cd0b
FXC
18827int
18828main ()
18829{
1409cd0b
FXC
18830 return 0;
18831}
db9f46a9 18832
1409cd0b 18833_ACEOF
5213506e 18834if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18835 gcc_cv_math_func_ccosh=yes
1409cd0b 18836else
db9f46a9 18837 gcc_cv_math_func_ccosh=no
1409cd0b 18838fi
5213506e
RW
18839rm -f core conftest.err conftest.$ac_objext \
18840 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18841fi
db9f46a9
TG
18842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18843$as_echo "$gcc_cv_math_func_ccosh" >&6; }
18844 if test $gcc_cv_math_func_ccosh = yes; then
f1cdfa01 18845
f38a14ca
TG
18846cat >>confdefs.h <<_ACEOF
18847#define HAVE_CCOSH 1
18848_ACEOF
db9f46a9
TG
18849
18850 fi
1409cd0b 18851
1409cd0b 18852
1409cd0b 18853
db9f46a9
TG
18854
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18856$as_echo_n "checking for ccoshl... " >&6; }
18857if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
5213506e 18858 $as_echo_n "(cached) " >&6
1409cd0b 18859else
db9f46a9 18860 if test x$gcc_no_link = xyes; then
5213506e 18861 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18862fi
5213506e 18863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18864/* end confdefs.h. */
18865
db9f46a9
TG
18866#ifdef HAVE_COMPLEX_H
18867#include <complex.h>
1409cd0b 18868#endif
db9f46a9
TG
18869#ifdef HAVE_MATH_H
18870#include <math.h>
18871#endif
18872
18873int (*ptr)() = (int (*)())ccoshl;
18874
1409cd0b
FXC
18875int
18876main ()
18877{
1409cd0b
FXC
18878 return 0;
18879}
db9f46a9 18880
1409cd0b 18881_ACEOF
5213506e 18882if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18883 gcc_cv_math_func_ccoshl=yes
1409cd0b 18884else
db9f46a9 18885 gcc_cv_math_func_ccoshl=no
1409cd0b 18886fi
5213506e
RW
18887rm -f core conftest.err conftest.$ac_objext \
18888 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18889fi
db9f46a9
TG
18890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18891$as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18892 if test $gcc_cv_math_func_ccoshl = yes; then
f1cdfa01 18893
f38a14ca
TG
18894cat >>confdefs.h <<_ACEOF
18895#define HAVE_CCOSHL 1
18896_ACEOF
1409cd0b 18897
db9f46a9 18898 fi
1409cd0b 18899
1409cd0b 18900
db9f46a9
TG
18901
18902
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18904$as_echo_n "checking for expf... " >&6; }
18905if test "${gcc_cv_math_func_expf+set}" = set; then :
5213506e 18906 $as_echo_n "(cached) " >&6
1409cd0b 18907else
db9f46a9 18908 if test x$gcc_no_link = xyes; then
5213506e 18909 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18910fi
5213506e 18911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18912/* end confdefs.h. */
18913
db9f46a9
TG
18914#ifdef HAVE_COMPLEX_H
18915#include <complex.h>
18916#endif
18917#ifdef HAVE_MATH_H
18918#include <math.h>
1409cd0b 18919#endif
db9f46a9
TG
18920
18921int (*ptr)() = (int (*)())expf;
18922
1409cd0b
FXC
18923int
18924main ()
18925{
1409cd0b
FXC
18926 return 0;
18927}
db9f46a9 18928
1409cd0b 18929_ACEOF
5213506e 18930if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18931 gcc_cv_math_func_expf=yes
1409cd0b 18932else
db9f46a9 18933 gcc_cv_math_func_expf=no
1409cd0b 18934fi
5213506e
RW
18935rm -f core conftest.err conftest.$ac_objext \
18936 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18937fi
db9f46a9
TG
18938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18939$as_echo "$gcc_cv_math_func_expf" >&6; }
18940 if test $gcc_cv_math_func_expf = yes; then
f1cdfa01 18941
f38a14ca
TG
18942cat >>confdefs.h <<_ACEOF
18943#define HAVE_EXPF 1
18944_ACEOF
db9f46a9
TG
18945
18946 fi
1409cd0b 18947
1409cd0b 18948
1409cd0b 18949
db9f46a9
TG
18950
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18952$as_echo_n "checking for exp... " >&6; }
18953if test "${gcc_cv_math_func_exp+set}" = set; then :
5213506e 18954 $as_echo_n "(cached) " >&6
1409cd0b 18955else
db9f46a9 18956 if test x$gcc_no_link = xyes; then
5213506e 18957 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18958fi
5213506e 18959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18960/* end confdefs.h. */
18961
db9f46a9
TG
18962#ifdef HAVE_COMPLEX_H
18963#include <complex.h>
1409cd0b 18964#endif
db9f46a9
TG
18965#ifdef HAVE_MATH_H
18966#include <math.h>
18967#endif
18968
18969int (*ptr)() = (int (*)())exp;
18970
1409cd0b
FXC
18971int
18972main ()
18973{
1409cd0b
FXC
18974 return 0;
18975}
db9f46a9 18976
1409cd0b 18977_ACEOF
5213506e 18978if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18979 gcc_cv_math_func_exp=yes
1409cd0b 18980else
db9f46a9 18981 gcc_cv_math_func_exp=no
1409cd0b 18982fi
5213506e
RW
18983rm -f core conftest.err conftest.$ac_objext \
18984 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18985fi
db9f46a9
TG
18986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18987$as_echo "$gcc_cv_math_func_exp" >&6; }
18988 if test $gcc_cv_math_func_exp = yes; then
f1cdfa01 18989
f38a14ca
TG
18990cat >>confdefs.h <<_ACEOF
18991#define HAVE_EXP 1
18992_ACEOF
db9f46a9
TG
18993
18994 fi
18995
1409cd0b 18996
1409cd0b 18997
1409cd0b 18998
db9f46a9
TG
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19000$as_echo_n "checking for expl... " >&6; }
19001if test "${gcc_cv_math_func_expl+set}" = set; then :
5213506e 19002 $as_echo_n "(cached) " >&6
1409cd0b 19003else
db9f46a9 19004 if test x$gcc_no_link = xyes; then
5213506e 19005 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19006fi
5213506e 19007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19008/* end confdefs.h. */
19009
db9f46a9
TG
19010#ifdef HAVE_COMPLEX_H
19011#include <complex.h>
19012#endif
19013#ifdef HAVE_MATH_H
19014#include <math.h>
1409cd0b 19015#endif
db9f46a9
TG
19016
19017int (*ptr)() = (int (*)())expl;
19018
1409cd0b
FXC
19019int
19020main ()
19021{
1409cd0b
FXC
19022 return 0;
19023}
db9f46a9 19024
1409cd0b 19025_ACEOF
5213506e 19026if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19027 gcc_cv_math_func_expl=yes
1409cd0b 19028else
db9f46a9 19029 gcc_cv_math_func_expl=no
1409cd0b 19030fi
5213506e
RW
19031rm -f core conftest.err conftest.$ac_objext \
19032 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19033fi
db9f46a9
TG
19034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19035$as_echo "$gcc_cv_math_func_expl" >&6; }
19036 if test $gcc_cv_math_func_expl = yes; then
f1cdfa01 19037
f38a14ca
TG
19038cat >>confdefs.h <<_ACEOF
19039#define HAVE_EXPL 1
19040_ACEOF
db9f46a9
TG
19041
19042 fi
1409cd0b 19043
1409cd0b 19044
1409cd0b 19045
db9f46a9
TG
19046
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19048$as_echo_n "checking for cexpf... " >&6; }
19049if test "${gcc_cv_math_func_cexpf+set}" = set; then :
5213506e 19050 $as_echo_n "(cached) " >&6
1409cd0b 19051else
db9f46a9 19052 if test x$gcc_no_link = xyes; then
5213506e 19053 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19054fi
5213506e 19055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19056/* end confdefs.h. */
19057
db9f46a9
TG
19058#ifdef HAVE_COMPLEX_H
19059#include <complex.h>
1409cd0b 19060#endif
db9f46a9
TG
19061#ifdef HAVE_MATH_H
19062#include <math.h>
19063#endif
19064
19065int (*ptr)() = (int (*)())cexpf;
19066
1409cd0b
FXC
19067int
19068main ()
19069{
1409cd0b
FXC
19070 return 0;
19071}
db9f46a9 19072
1409cd0b 19073_ACEOF
5213506e 19074if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19075 gcc_cv_math_func_cexpf=yes
1409cd0b 19076else
db9f46a9 19077 gcc_cv_math_func_cexpf=no
1409cd0b 19078fi
5213506e
RW
19079rm -f core conftest.err conftest.$ac_objext \
19080 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19081fi
db9f46a9
TG
19082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19083$as_echo "$gcc_cv_math_func_cexpf" >&6; }
19084 if test $gcc_cv_math_func_cexpf = yes; then
f1cdfa01 19085
f38a14ca
TG
19086cat >>confdefs.h <<_ACEOF
19087#define HAVE_CEXPF 1
19088_ACEOF
1409cd0b 19089
db9f46a9 19090 fi
1409cd0b 19091
1409cd0b 19092
db9f46a9
TG
19093
19094
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19096$as_echo_n "checking for cexp... " >&6; }
19097if test "${gcc_cv_math_func_cexp+set}" = set; then :
5213506e 19098 $as_echo_n "(cached) " >&6
1409cd0b 19099else
db9f46a9 19100 if test x$gcc_no_link = xyes; then
5213506e 19101 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19102fi
5213506e 19103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19104/* end confdefs.h. */
19105
db9f46a9
TG
19106#ifdef HAVE_COMPLEX_H
19107#include <complex.h>
19108#endif
19109#ifdef HAVE_MATH_H
19110#include <math.h>
1409cd0b 19111#endif
db9f46a9
TG
19112
19113int (*ptr)() = (int (*)())cexp;
19114
1409cd0b
FXC
19115int
19116main ()
19117{
1409cd0b
FXC
19118 return 0;
19119}
db9f46a9 19120
1409cd0b 19121_ACEOF
5213506e 19122if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19123 gcc_cv_math_func_cexp=yes
1409cd0b 19124else
db9f46a9 19125 gcc_cv_math_func_cexp=no
1409cd0b 19126fi
5213506e
RW
19127rm -f core conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19129fi
db9f46a9
TG
19130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19131$as_echo "$gcc_cv_math_func_cexp" >&6; }
19132 if test $gcc_cv_math_func_cexp = yes; then
f1cdfa01 19133
f38a14ca
TG
19134cat >>confdefs.h <<_ACEOF
19135#define HAVE_CEXP 1
19136_ACEOF
db9f46a9
TG
19137
19138 fi
1409cd0b 19139
1409cd0b 19140
1409cd0b 19141
db9f46a9
TG
19142
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19144$as_echo_n "checking for cexpl... " >&6; }
19145if test "${gcc_cv_math_func_cexpl+set}" = set; then :
5213506e 19146 $as_echo_n "(cached) " >&6
1409cd0b 19147else
db9f46a9 19148 if test x$gcc_no_link = xyes; then
5213506e 19149 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19150fi
5213506e 19151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19152/* end confdefs.h. */
19153
db9f46a9
TG
19154#ifdef HAVE_COMPLEX_H
19155#include <complex.h>
1409cd0b 19156#endif
db9f46a9
TG
19157#ifdef HAVE_MATH_H
19158#include <math.h>
19159#endif
19160
19161int (*ptr)() = (int (*)())cexpl;
19162
1409cd0b
FXC
19163int
19164main ()
19165{
1409cd0b
FXC
19166 return 0;
19167}
db9f46a9 19168
1409cd0b 19169_ACEOF
5213506e 19170if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19171 gcc_cv_math_func_cexpl=yes
1409cd0b 19172else
db9f46a9 19173 gcc_cv_math_func_cexpl=no
1409cd0b 19174fi
5213506e
RW
19175rm -f core conftest.err conftest.$ac_objext \
19176 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19177fi
db9f46a9
TG
19178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19179$as_echo "$gcc_cv_math_func_cexpl" >&6; }
19180 if test $gcc_cv_math_func_cexpl = yes; then
f1cdfa01 19181
f38a14ca
TG
19182cat >>confdefs.h <<_ACEOF
19183#define HAVE_CEXPL 1
19184_ACEOF
db9f46a9
TG
19185
19186 fi
19187
1409cd0b 19188
1409cd0b 19189
1409cd0b 19190
db9f46a9
TG
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19192$as_echo_n "checking for fabsf... " >&6; }
19193if test "${gcc_cv_math_func_fabsf+set}" = set; then :
5213506e 19194 $as_echo_n "(cached) " >&6
1409cd0b 19195else
db9f46a9 19196 if test x$gcc_no_link = xyes; then
5213506e 19197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19198fi
5213506e 19199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19200/* end confdefs.h. */
19201
db9f46a9
TG
19202#ifdef HAVE_COMPLEX_H
19203#include <complex.h>
19204#endif
19205#ifdef HAVE_MATH_H
19206#include <math.h>
1409cd0b 19207#endif
db9f46a9
TG
19208
19209int (*ptr)() = (int (*)())fabsf;
19210
1409cd0b
FXC
19211int
19212main ()
19213{
1409cd0b
FXC
19214 return 0;
19215}
db9f46a9 19216
1409cd0b 19217_ACEOF
5213506e 19218if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19219 gcc_cv_math_func_fabsf=yes
1409cd0b 19220else
db9f46a9 19221 gcc_cv_math_func_fabsf=no
1409cd0b 19222fi
5213506e
RW
19223rm -f core conftest.err conftest.$ac_objext \
19224 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19225fi
db9f46a9
TG
19226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19227$as_echo "$gcc_cv_math_func_fabsf" >&6; }
19228 if test $gcc_cv_math_func_fabsf = yes; then
f1cdfa01 19229
f38a14ca
TG
19230cat >>confdefs.h <<_ACEOF
19231#define HAVE_FABSF 1
19232_ACEOF
db9f46a9
TG
19233
19234 fi
1409cd0b 19235
1409cd0b 19236
1409cd0b 19237
db9f46a9
TG
19238
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19240$as_echo_n "checking for fabs... " >&6; }
19241if test "${gcc_cv_math_func_fabs+set}" = set; then :
5213506e 19242 $as_echo_n "(cached) " >&6
1409cd0b 19243else
db9f46a9 19244 if test x$gcc_no_link = xyes; then
5213506e 19245 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19246fi
5213506e 19247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19248/* end confdefs.h. */
19249
db9f46a9
TG
19250#ifdef HAVE_COMPLEX_H
19251#include <complex.h>
1409cd0b 19252#endif
db9f46a9
TG
19253#ifdef HAVE_MATH_H
19254#include <math.h>
19255#endif
19256
19257int (*ptr)() = (int (*)())fabs;
19258
1409cd0b
FXC
19259int
19260main ()
19261{
1409cd0b
FXC
19262 return 0;
19263}
db9f46a9 19264
1409cd0b 19265_ACEOF
5213506e 19266if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19267 gcc_cv_math_func_fabs=yes
1409cd0b 19268else
db9f46a9 19269 gcc_cv_math_func_fabs=no
1409cd0b 19270fi
5213506e
RW
19271rm -f core conftest.err conftest.$ac_objext \
19272 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19273fi
db9f46a9
TG
19274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19275$as_echo "$gcc_cv_math_func_fabs" >&6; }
19276 if test $gcc_cv_math_func_fabs = yes; then
f1cdfa01 19277
f38a14ca
TG
19278cat >>confdefs.h <<_ACEOF
19279#define HAVE_FABS 1
19280_ACEOF
1409cd0b 19281
db9f46a9 19282 fi
1409cd0b 19283
1409cd0b 19284
db9f46a9
TG
19285
19286
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19288$as_echo_n "checking for fabsl... " >&6; }
19289if test "${gcc_cv_math_func_fabsl+set}" = set; then :
5213506e 19290 $as_echo_n "(cached) " >&6
1409cd0b 19291else
db9f46a9 19292 if test x$gcc_no_link = xyes; then
5213506e 19293 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19294fi
5213506e 19295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19296/* end confdefs.h. */
19297
db9f46a9
TG
19298#ifdef HAVE_COMPLEX_H
19299#include <complex.h>
19300#endif
19301#ifdef HAVE_MATH_H
19302#include <math.h>
1409cd0b 19303#endif
db9f46a9
TG
19304
19305int (*ptr)() = (int (*)())fabsl;
19306
1409cd0b
FXC
19307int
19308main ()
19309{
1409cd0b
FXC
19310 return 0;
19311}
db9f46a9 19312
1409cd0b 19313_ACEOF
5213506e 19314if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19315 gcc_cv_math_func_fabsl=yes
1409cd0b 19316else
db9f46a9 19317 gcc_cv_math_func_fabsl=no
1409cd0b 19318fi
5213506e
RW
19319rm -f core conftest.err conftest.$ac_objext \
19320 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19321fi
db9f46a9
TG
19322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19323$as_echo "$gcc_cv_math_func_fabsl" >&6; }
19324 if test $gcc_cv_math_func_fabsl = yes; then
f1cdfa01 19325
f38a14ca
TG
19326cat >>confdefs.h <<_ACEOF
19327#define HAVE_FABSL 1
19328_ACEOF
db9f46a9
TG
19329
19330 fi
1409cd0b 19331
1409cd0b 19332
1409cd0b 19333
db9f46a9
TG
19334
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19336$as_echo_n "checking for cabsf... " >&6; }
19337if test "${gcc_cv_math_func_cabsf+set}" = set; then :
5213506e 19338 $as_echo_n "(cached) " >&6
1409cd0b 19339else
db9f46a9 19340 if test x$gcc_no_link = xyes; then
5213506e 19341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19342fi
5213506e 19343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19344/* end confdefs.h. */
19345
db9f46a9
TG
19346#ifdef HAVE_COMPLEX_H
19347#include <complex.h>
1409cd0b 19348#endif
db9f46a9
TG
19349#ifdef HAVE_MATH_H
19350#include <math.h>
19351#endif
19352
19353int (*ptr)() = (int (*)())cabsf;
19354
1409cd0b
FXC
19355int
19356main ()
19357{
1409cd0b
FXC
19358 return 0;
19359}
db9f46a9 19360
1409cd0b 19361_ACEOF
5213506e 19362if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19363 gcc_cv_math_func_cabsf=yes
1409cd0b 19364else
db9f46a9 19365 gcc_cv_math_func_cabsf=no
1409cd0b 19366fi
5213506e
RW
19367rm -f core conftest.err conftest.$ac_objext \
19368 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19369fi
db9f46a9
TG
19370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19371$as_echo "$gcc_cv_math_func_cabsf" >&6; }
19372 if test $gcc_cv_math_func_cabsf = yes; then
f1cdfa01 19373
f38a14ca
TG
19374cat >>confdefs.h <<_ACEOF
19375#define HAVE_CABSF 1
19376_ACEOF
db9f46a9
TG
19377
19378 fi
19379
1409cd0b 19380
1409cd0b 19381
1409cd0b 19382
db9f46a9
TG
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19384$as_echo_n "checking for cabs... " >&6; }
19385if test "${gcc_cv_math_func_cabs+set}" = set; then :
5213506e 19386 $as_echo_n "(cached) " >&6
1409cd0b 19387else
db9f46a9 19388 if test x$gcc_no_link = xyes; then
5213506e 19389 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19390fi
5213506e 19391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19392/* end confdefs.h. */
19393
db9f46a9
TG
19394#ifdef HAVE_COMPLEX_H
19395#include <complex.h>
19396#endif
19397#ifdef HAVE_MATH_H
19398#include <math.h>
1409cd0b 19399#endif
db9f46a9
TG
19400
19401int (*ptr)() = (int (*)())cabs;
19402
1409cd0b
FXC
19403int
19404main ()
19405{
1409cd0b
FXC
19406 return 0;
19407}
db9f46a9 19408
1409cd0b 19409_ACEOF
5213506e 19410if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19411 gcc_cv_math_func_cabs=yes
1409cd0b 19412else
db9f46a9 19413 gcc_cv_math_func_cabs=no
1409cd0b 19414fi
5213506e
RW
19415rm -f core conftest.err conftest.$ac_objext \
19416 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19417fi
db9f46a9
TG
19418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19419$as_echo "$gcc_cv_math_func_cabs" >&6; }
19420 if test $gcc_cv_math_func_cabs = yes; then
f1cdfa01 19421
f38a14ca
TG
19422cat >>confdefs.h <<_ACEOF
19423#define HAVE_CABS 1
19424_ACEOF
db9f46a9
TG
19425
19426 fi
1409cd0b 19427
1409cd0b 19428
1409cd0b 19429
db9f46a9
TG
19430
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19432$as_echo_n "checking for cabsl... " >&6; }
19433if test "${gcc_cv_math_func_cabsl+set}" = set; then :
5213506e 19434 $as_echo_n "(cached) " >&6
1409cd0b 19435else
db9f46a9 19436 if test x$gcc_no_link = xyes; then
5213506e 19437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19438fi
5213506e 19439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19440/* end confdefs.h. */
19441
db9f46a9
TG
19442#ifdef HAVE_COMPLEX_H
19443#include <complex.h>
1409cd0b 19444#endif
db9f46a9
TG
19445#ifdef HAVE_MATH_H
19446#include <math.h>
19447#endif
19448
19449int (*ptr)() = (int (*)())cabsl;
19450
1409cd0b
FXC
19451int
19452main ()
19453{
1409cd0b
FXC
19454 return 0;
19455}
db9f46a9 19456
1409cd0b 19457_ACEOF
5213506e 19458if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19459 gcc_cv_math_func_cabsl=yes
1409cd0b 19460else
db9f46a9 19461 gcc_cv_math_func_cabsl=no
1409cd0b 19462fi
5213506e
RW
19463rm -f core conftest.err conftest.$ac_objext \
19464 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19465fi
db9f46a9
TG
19466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19467$as_echo "$gcc_cv_math_func_cabsl" >&6; }
19468 if test $gcc_cv_math_func_cabsl = yes; then
f1cdfa01 19469
f38a14ca
TG
19470cat >>confdefs.h <<_ACEOF
19471#define HAVE_CABSL 1
19472_ACEOF
1409cd0b 19473
db9f46a9 19474 fi
1409cd0b 19475
1409cd0b 19476
db9f46a9
TG
19477
19478
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19480$as_echo_n "checking for floorf... " >&6; }
19481if test "${gcc_cv_math_func_floorf+set}" = set; then :
5213506e 19482 $as_echo_n "(cached) " >&6
1409cd0b 19483else
db9f46a9 19484 if test x$gcc_no_link = xyes; then
5213506e 19485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19486fi
5213506e 19487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19488/* end confdefs.h. */
19489
db9f46a9
TG
19490#ifdef HAVE_COMPLEX_H
19491#include <complex.h>
19492#endif
19493#ifdef HAVE_MATH_H
19494#include <math.h>
1409cd0b 19495#endif
db9f46a9
TG
19496
19497int (*ptr)() = (int (*)())floorf;
19498
1409cd0b
FXC
19499int
19500main ()
19501{
5213506e
RW
19502 return 0;
19503}
db9f46a9 19504
5213506e
RW
19505_ACEOF
19506if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19507 gcc_cv_math_func_floorf=yes
1409cd0b 19508else
db9f46a9 19509 gcc_cv_math_func_floorf=no
1409cd0b 19510fi
5213506e
RW
19511rm -f core conftest.err conftest.$ac_objext \
19512 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19513fi
db9f46a9
TG
19514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19515$as_echo "$gcc_cv_math_func_floorf" >&6; }
19516 if test $gcc_cv_math_func_floorf = yes; then
f1cdfa01 19517
f38a14ca
TG
19518cat >>confdefs.h <<_ACEOF
19519#define HAVE_FLOORF 1
19520_ACEOF
db9f46a9
TG
19521
19522 fi
1409cd0b 19523
1409cd0b 19524
1409cd0b 19525
db9f46a9
TG
19526
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19528$as_echo_n "checking for floor... " >&6; }
19529if test "${gcc_cv_math_func_floor+set}" = set; then :
5213506e 19530 $as_echo_n "(cached) " >&6
1409cd0b 19531else
db9f46a9 19532 if test x$gcc_no_link = xyes; then
5213506e 19533 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19534fi
5213506e 19535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19536/* end confdefs.h. */
19537
db9f46a9
TG
19538#ifdef HAVE_COMPLEX_H
19539#include <complex.h>
1409cd0b 19540#endif
db9f46a9
TG
19541#ifdef HAVE_MATH_H
19542#include <math.h>
19543#endif
19544
19545int (*ptr)() = (int (*)())floor;
19546
1409cd0b
FXC
19547int
19548main ()
19549{
1409cd0b
FXC
19550 return 0;
19551}
db9f46a9 19552
1409cd0b 19553_ACEOF
5213506e 19554if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19555 gcc_cv_math_func_floor=yes
1409cd0b 19556else
db9f46a9 19557 gcc_cv_math_func_floor=no
1409cd0b 19558fi
5213506e
RW
19559rm -f core conftest.err conftest.$ac_objext \
19560 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19561fi
db9f46a9
TG
19562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19563$as_echo "$gcc_cv_math_func_floor" >&6; }
19564 if test $gcc_cv_math_func_floor = yes; then
f1cdfa01 19565
f38a14ca
TG
19566cat >>confdefs.h <<_ACEOF
19567#define HAVE_FLOOR 1
19568_ACEOF
db9f46a9
TG
19569
19570 fi
19571
1409cd0b 19572
1409cd0b 19573
1409cd0b 19574
db9f46a9
TG
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19576$as_echo_n "checking for floorl... " >&6; }
19577if test "${gcc_cv_math_func_floorl+set}" = set; then :
5213506e 19578 $as_echo_n "(cached) " >&6
eb647f7d 19579else
db9f46a9 19580 if test x$gcc_no_link = xyes; then
5213506e 19581 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19582fi
5213506e 19583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19584/* end confdefs.h. */
19585
db9f46a9
TG
19586#ifdef HAVE_COMPLEX_H
19587#include <complex.h>
19588#endif
19589#ifdef HAVE_MATH_H
19590#include <math.h>
eb647f7d 19591#endif
db9f46a9
TG
19592
19593int (*ptr)() = (int (*)())floorl;
19594
eb647f7d
FXC
19595int
19596main ()
19597{
eb647f7d
FXC
19598 return 0;
19599}
db9f46a9 19600
eb647f7d 19601_ACEOF
5213506e 19602if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19603 gcc_cv_math_func_floorl=yes
eb647f7d 19604else
db9f46a9 19605 gcc_cv_math_func_floorl=no
eb647f7d 19606fi
5213506e
RW
19607rm -f core conftest.err conftest.$ac_objext \
19608 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19609fi
db9f46a9
TG
19610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19611$as_echo "$gcc_cv_math_func_floorl" >&6; }
19612 if test $gcc_cv_math_func_floorl = yes; then
f1cdfa01 19613
f38a14ca
TG
19614cat >>confdefs.h <<_ACEOF
19615#define HAVE_FLOORL 1
19616_ACEOF
db9f46a9
TG
19617
19618 fi
eb647f7d 19619
eb647f7d 19620
eb647f7d 19621
db9f46a9
TG
19622
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19624$as_echo_n "checking for fmodf... " >&6; }
19625if test "${gcc_cv_math_func_fmodf+set}" = set; then :
5213506e 19626 $as_echo_n "(cached) " >&6
eb647f7d 19627else
db9f46a9 19628 if test x$gcc_no_link = xyes; then
5213506e 19629 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19630fi
5213506e 19631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19632/* end confdefs.h. */
19633
db9f46a9
TG
19634#ifdef HAVE_COMPLEX_H
19635#include <complex.h>
eb647f7d 19636#endif
db9f46a9
TG
19637#ifdef HAVE_MATH_H
19638#include <math.h>
19639#endif
19640
19641int (*ptr)() = (int (*)())fmodf;
19642
eb647f7d
FXC
19643int
19644main ()
19645{
eb647f7d
FXC
19646 return 0;
19647}
db9f46a9 19648
eb647f7d 19649_ACEOF
5213506e 19650if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19651 gcc_cv_math_func_fmodf=yes
eb647f7d 19652else
db9f46a9 19653 gcc_cv_math_func_fmodf=no
eb647f7d 19654fi
5213506e
RW
19655rm -f core conftest.err conftest.$ac_objext \
19656 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19657fi
db9f46a9
TG
19658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19659$as_echo "$gcc_cv_math_func_fmodf" >&6; }
19660 if test $gcc_cv_math_func_fmodf = yes; then
f1cdfa01 19661
f38a14ca
TG
19662cat >>confdefs.h <<_ACEOF
19663#define HAVE_FMODF 1
19664_ACEOF
eb647f7d 19665
db9f46a9 19666 fi
eb647f7d 19667
eb647f7d 19668
db9f46a9
TG
19669
19670
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19672$as_echo_n "checking for fmod... " >&6; }
19673if test "${gcc_cv_math_func_fmod+set}" = set; then :
5213506e 19674 $as_echo_n "(cached) " >&6
eb647f7d 19675else
db9f46a9 19676 if test x$gcc_no_link = xyes; then
5213506e 19677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19678fi
5213506e 19679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19680/* end confdefs.h. */
19681
db9f46a9
TG
19682#ifdef HAVE_COMPLEX_H
19683#include <complex.h>
19684#endif
19685#ifdef HAVE_MATH_H
19686#include <math.h>
eb647f7d 19687#endif
db9f46a9
TG
19688
19689int (*ptr)() = (int (*)())fmod;
19690
eb647f7d
FXC
19691int
19692main ()
19693{
eb647f7d
FXC
19694 return 0;
19695}
db9f46a9 19696
eb647f7d 19697_ACEOF
5213506e 19698if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19699 gcc_cv_math_func_fmod=yes
eb647f7d 19700else
db9f46a9 19701 gcc_cv_math_func_fmod=no
eb647f7d 19702fi
5213506e
RW
19703rm -f core conftest.err conftest.$ac_objext \
19704 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19705fi
db9f46a9
TG
19706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19707$as_echo "$gcc_cv_math_func_fmod" >&6; }
19708 if test $gcc_cv_math_func_fmod = yes; then
f1cdfa01 19709
f38a14ca
TG
19710cat >>confdefs.h <<_ACEOF
19711#define HAVE_FMOD 1
19712_ACEOF
db9f46a9
TG
19713
19714 fi
eb647f7d 19715
eb647f7d 19716
eb647f7d 19717
db9f46a9
TG
19718
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19720$as_echo_n "checking for fmodl... " >&6; }
19721if test "${gcc_cv_math_func_fmodl+set}" = set; then :
5213506e 19722 $as_echo_n "(cached) " >&6
1409cd0b 19723else
db9f46a9 19724 if test x$gcc_no_link = xyes; then
5213506e 19725 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19726fi
5213506e 19727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19728/* end confdefs.h. */
19729
db9f46a9
TG
19730#ifdef HAVE_COMPLEX_H
19731#include <complex.h>
1409cd0b 19732#endif
db9f46a9
TG
19733#ifdef HAVE_MATH_H
19734#include <math.h>
19735#endif
19736
19737int (*ptr)() = (int (*)())fmodl;
19738
1409cd0b
FXC
19739int
19740main ()
19741{
1409cd0b
FXC
19742 return 0;
19743}
db9f46a9 19744
1409cd0b 19745_ACEOF
5213506e 19746if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19747 gcc_cv_math_func_fmodl=yes
1409cd0b 19748else
db9f46a9 19749 gcc_cv_math_func_fmodl=no
1409cd0b 19750fi
5213506e
RW
19751rm -f core conftest.err conftest.$ac_objext \
19752 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19753fi
db9f46a9
TG
19754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19755$as_echo "$gcc_cv_math_func_fmodl" >&6; }
19756 if test $gcc_cv_math_func_fmodl = yes; then
f1cdfa01 19757
f38a14ca
TG
19758cat >>confdefs.h <<_ACEOF
19759#define HAVE_FMODL 1
19760_ACEOF
db9f46a9
TG
19761
19762 fi
19763
1409cd0b 19764
1409cd0b 19765
1409cd0b 19766
db9f46a9
TG
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19768$as_echo_n "checking for frexpf... " >&6; }
19769if test "${gcc_cv_math_func_frexpf+set}" = set; then :
5213506e 19770 $as_echo_n "(cached) " >&6
1409cd0b 19771else
db9f46a9 19772 if test x$gcc_no_link = xyes; then
5213506e 19773 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19774fi
5213506e 19775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19776/* end confdefs.h. */
19777
db9f46a9
TG
19778#ifdef HAVE_COMPLEX_H
19779#include <complex.h>
19780#endif
19781#ifdef HAVE_MATH_H
19782#include <math.h>
1409cd0b 19783#endif
db9f46a9
TG
19784
19785int (*ptr)() = (int (*)())frexpf;
19786
1409cd0b
FXC
19787int
19788main ()
19789{
1409cd0b
FXC
19790 return 0;
19791}
db9f46a9 19792
1409cd0b 19793_ACEOF
5213506e 19794if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19795 gcc_cv_math_func_frexpf=yes
1409cd0b 19796else
db9f46a9 19797 gcc_cv_math_func_frexpf=no
1409cd0b 19798fi
5213506e
RW
19799rm -f core conftest.err conftest.$ac_objext \
19800 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19801fi
db9f46a9
TG
19802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19803$as_echo "$gcc_cv_math_func_frexpf" >&6; }
19804 if test $gcc_cv_math_func_frexpf = yes; then
f1cdfa01 19805
f38a14ca
TG
19806cat >>confdefs.h <<_ACEOF
19807#define HAVE_FREXPF 1
19808_ACEOF
db9f46a9
TG
19809
19810 fi
1409cd0b 19811
1409cd0b 19812
1409cd0b 19813
db9f46a9
TG
19814
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19816$as_echo_n "checking for frexp... " >&6; }
19817if test "${gcc_cv_math_func_frexp+set}" = set; then :
5213506e 19818 $as_echo_n "(cached) " >&6
1409cd0b 19819else
db9f46a9 19820 if test x$gcc_no_link = xyes; then
5213506e 19821 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19822fi
5213506e 19823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19824/* end confdefs.h. */
19825
db9f46a9
TG
19826#ifdef HAVE_COMPLEX_H
19827#include <complex.h>
1409cd0b 19828#endif
db9f46a9
TG
19829#ifdef HAVE_MATH_H
19830#include <math.h>
19831#endif
19832
19833int (*ptr)() = (int (*)())frexp;
19834
1409cd0b
FXC
19835int
19836main ()
19837{
1409cd0b
FXC
19838 return 0;
19839}
db9f46a9 19840
1409cd0b 19841_ACEOF
5213506e 19842if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19843 gcc_cv_math_func_frexp=yes
1409cd0b 19844else
db9f46a9 19845 gcc_cv_math_func_frexp=no
1409cd0b 19846fi
5213506e
RW
19847rm -f core conftest.err conftest.$ac_objext \
19848 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19849fi
db9f46a9
TG
19850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19851$as_echo "$gcc_cv_math_func_frexp" >&6; }
19852 if test $gcc_cv_math_func_frexp = yes; then
f1cdfa01 19853
f38a14ca
TG
19854cat >>confdefs.h <<_ACEOF
19855#define HAVE_FREXP 1
19856_ACEOF
1409cd0b 19857
db9f46a9 19858 fi
1409cd0b 19859
1409cd0b 19860
db9f46a9
TG
19861
19862
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19864$as_echo_n "checking for frexpl... " >&6; }
19865if test "${gcc_cv_math_func_frexpl+set}" = set; then :
5213506e 19866 $as_echo_n "(cached) " >&6
1409cd0b 19867else
db9f46a9 19868 if test x$gcc_no_link = xyes; then
5213506e 19869 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19870fi
5213506e 19871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19872/* end confdefs.h. */
19873
db9f46a9
TG
19874#ifdef HAVE_COMPLEX_H
19875#include <complex.h>
19876#endif
19877#ifdef HAVE_MATH_H
19878#include <math.h>
1409cd0b 19879#endif
db9f46a9
TG
19880
19881int (*ptr)() = (int (*)())frexpl;
19882
1409cd0b
FXC
19883int
19884main ()
19885{
1409cd0b
FXC
19886 return 0;
19887}
db9f46a9 19888
1409cd0b 19889_ACEOF
5213506e 19890if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19891 gcc_cv_math_func_frexpl=yes
1409cd0b 19892else
db9f46a9 19893 gcc_cv_math_func_frexpl=no
1409cd0b 19894fi
5213506e
RW
19895rm -f core conftest.err conftest.$ac_objext \
19896 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19897fi
db9f46a9
TG
19898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19899$as_echo "$gcc_cv_math_func_frexpl" >&6; }
19900 if test $gcc_cv_math_func_frexpl = yes; then
f1cdfa01 19901
f38a14ca
TG
19902cat >>confdefs.h <<_ACEOF
19903#define HAVE_FREXPL 1
19904_ACEOF
db9f46a9
TG
19905
19906 fi
1409cd0b 19907
1409cd0b 19908
1409cd0b 19909
db9f46a9
TG
19910
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19912$as_echo_n "checking for hypotf... " >&6; }
19913if test "${gcc_cv_math_func_hypotf+set}" = set; then :
5213506e 19914 $as_echo_n "(cached) " >&6
1409cd0b 19915else
db9f46a9 19916 if test x$gcc_no_link = xyes; then
5213506e 19917 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19918fi
5213506e 19919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19920/* end confdefs.h. */
19921
db9f46a9
TG
19922#ifdef HAVE_COMPLEX_H
19923#include <complex.h>
1409cd0b 19924#endif
db9f46a9
TG
19925#ifdef HAVE_MATH_H
19926#include <math.h>
19927#endif
19928
19929int (*ptr)() = (int (*)())hypotf;
19930
1409cd0b
FXC
19931int
19932main ()
19933{
1409cd0b
FXC
19934 return 0;
19935}
db9f46a9 19936
1409cd0b 19937_ACEOF
5213506e 19938if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19939 gcc_cv_math_func_hypotf=yes
1409cd0b 19940else
db9f46a9 19941 gcc_cv_math_func_hypotf=no
1409cd0b 19942fi
5213506e
RW
19943rm -f core conftest.err conftest.$ac_objext \
19944 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19945fi
db9f46a9
TG
19946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19947$as_echo "$gcc_cv_math_func_hypotf" >&6; }
19948 if test $gcc_cv_math_func_hypotf = yes; then
f1cdfa01 19949
f38a14ca
TG
19950cat >>confdefs.h <<_ACEOF
19951#define HAVE_HYPOTF 1
19952_ACEOF
db9f46a9
TG
19953
19954 fi
19955
1409cd0b 19956
1409cd0b 19957
1409cd0b 19958
db9f46a9
TG
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19960$as_echo_n "checking for hypot... " >&6; }
19961if test "${gcc_cv_math_func_hypot+set}" = set; then :
5213506e 19962 $as_echo_n "(cached) " >&6
1409cd0b 19963else
db9f46a9 19964 if test x$gcc_no_link = xyes; then
5213506e 19965 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19966fi
5213506e 19967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19968/* end confdefs.h. */
19969
db9f46a9
TG
19970#ifdef HAVE_COMPLEX_H
19971#include <complex.h>
19972#endif
19973#ifdef HAVE_MATH_H
19974#include <math.h>
1409cd0b 19975#endif
db9f46a9
TG
19976
19977int (*ptr)() = (int (*)())hypot;
19978
1409cd0b
FXC
19979int
19980main ()
19981{
1409cd0b
FXC
19982 return 0;
19983}
db9f46a9 19984
1409cd0b 19985_ACEOF
5213506e 19986if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19987 gcc_cv_math_func_hypot=yes
1409cd0b 19988else
db9f46a9 19989 gcc_cv_math_func_hypot=no
1409cd0b 19990fi
5213506e
RW
19991rm -f core conftest.err conftest.$ac_objext \
19992 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19993fi
db9f46a9
TG
19994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19995$as_echo "$gcc_cv_math_func_hypot" >&6; }
19996 if test $gcc_cv_math_func_hypot = yes; then
f1cdfa01 19997
f38a14ca
TG
19998cat >>confdefs.h <<_ACEOF
19999#define HAVE_HYPOT 1
20000_ACEOF
db9f46a9
TG
20001
20002 fi
1409cd0b 20003
1409cd0b 20004
1409cd0b 20005
db9f46a9
TG
20006
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20008$as_echo_n "checking for hypotl... " >&6; }
20009if test "${gcc_cv_math_func_hypotl+set}" = set; then :
5213506e 20010 $as_echo_n "(cached) " >&6
cc6d3bde 20011else
db9f46a9 20012 if test x$gcc_no_link = xyes; then
5213506e 20013 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20014fi
5213506e 20015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20016/* end confdefs.h. */
20017
db9f46a9
TG
20018#ifdef HAVE_COMPLEX_H
20019#include <complex.h>
cc6d3bde 20020#endif
db9f46a9
TG
20021#ifdef HAVE_MATH_H
20022#include <math.h>
20023#endif
20024
20025int (*ptr)() = (int (*)())hypotl;
20026
cc6d3bde
SK
20027int
20028main ()
20029{
cc6d3bde
SK
20030 return 0;
20031}
db9f46a9 20032
cc6d3bde 20033_ACEOF
5213506e 20034if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20035 gcc_cv_math_func_hypotl=yes
cc6d3bde 20036else
db9f46a9 20037 gcc_cv_math_func_hypotl=no
cc6d3bde 20038fi
5213506e
RW
20039rm -f core conftest.err conftest.$ac_objext \
20040 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20041fi
db9f46a9
TG
20042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20043$as_echo "$gcc_cv_math_func_hypotl" >&6; }
20044 if test $gcc_cv_math_func_hypotl = yes; then
f1cdfa01 20045
f38a14ca
TG
20046cat >>confdefs.h <<_ACEOF
20047#define HAVE_HYPOTL 1
20048_ACEOF
cc6d3bde 20049
db9f46a9 20050 fi
cc6d3bde 20051
cc6d3bde 20052
db9f46a9
TG
20053
20054
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20056$as_echo_n "checking for ldexpf... " >&6; }
20057if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
5213506e 20058 $as_echo_n "(cached) " >&6
cc6d3bde 20059else
db9f46a9 20060 if test x$gcc_no_link = xyes; then
5213506e 20061 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20062fi
5213506e 20063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20064/* end confdefs.h. */
20065
db9f46a9
TG
20066#ifdef HAVE_COMPLEX_H
20067#include <complex.h>
20068#endif
20069#ifdef HAVE_MATH_H
20070#include <math.h>
cc6d3bde 20071#endif
db9f46a9
TG
20072
20073int (*ptr)() = (int (*)())ldexpf;
20074
cc6d3bde
SK
20075int
20076main ()
20077{
cc6d3bde
SK
20078 return 0;
20079}
db9f46a9 20080
cc6d3bde 20081_ACEOF
5213506e 20082if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20083 gcc_cv_math_func_ldexpf=yes
cc6d3bde 20084else
db9f46a9 20085 gcc_cv_math_func_ldexpf=no
cc6d3bde 20086fi
5213506e
RW
20087rm -f core conftest.err conftest.$ac_objext \
20088 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20089fi
db9f46a9
TG
20090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20091$as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20092 if test $gcc_cv_math_func_ldexpf = yes; then
f1cdfa01 20093
f38a14ca
TG
20094cat >>confdefs.h <<_ACEOF
20095#define HAVE_LDEXPF 1
20096_ACEOF
db9f46a9
TG
20097
20098 fi
cc6d3bde 20099
cc6d3bde 20100
cc6d3bde 20101
db9f46a9
TG
20102
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20104$as_echo_n "checking for ldexp... " >&6; }
20105if test "${gcc_cv_math_func_ldexp+set}" = set; then :
5213506e 20106 $as_echo_n "(cached) " >&6
cc6d3bde 20107else
db9f46a9 20108 if test x$gcc_no_link = xyes; then
5213506e 20109 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20110fi
5213506e 20111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20112/* end confdefs.h. */
20113
db9f46a9
TG
20114#ifdef HAVE_COMPLEX_H
20115#include <complex.h>
cc6d3bde 20116#endif
db9f46a9
TG
20117#ifdef HAVE_MATH_H
20118#include <math.h>
20119#endif
20120
20121int (*ptr)() = (int (*)())ldexp;
20122
cc6d3bde
SK
20123int
20124main ()
20125{
cc6d3bde
SK
20126 return 0;
20127}
db9f46a9 20128
cc6d3bde 20129_ACEOF
5213506e 20130if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20131 gcc_cv_math_func_ldexp=yes
cc6d3bde 20132else
db9f46a9 20133 gcc_cv_math_func_ldexp=no
cc6d3bde 20134fi
5213506e
RW
20135rm -f core conftest.err conftest.$ac_objext \
20136 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20137fi
db9f46a9
TG
20138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20139$as_echo "$gcc_cv_math_func_ldexp" >&6; }
20140 if test $gcc_cv_math_func_ldexp = yes; then
f1cdfa01 20141
f38a14ca
TG
20142cat >>confdefs.h <<_ACEOF
20143#define HAVE_LDEXP 1
20144_ACEOF
db9f46a9
TG
20145
20146 fi
20147
cc6d3bde 20148
cc6d3bde 20149
cc6d3bde 20150
db9f46a9
TG
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20152$as_echo_n "checking for ldexpl... " >&6; }
20153if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
5213506e 20154 $as_echo_n "(cached) " >&6
1409cd0b 20155else
db9f46a9 20156 if test x$gcc_no_link = xyes; then
5213506e 20157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20158fi
5213506e 20159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20160/* end confdefs.h. */
20161
db9f46a9
TG
20162#ifdef HAVE_COMPLEX_H
20163#include <complex.h>
20164#endif
20165#ifdef HAVE_MATH_H
20166#include <math.h>
1409cd0b 20167#endif
db9f46a9
TG
20168
20169int (*ptr)() = (int (*)())ldexpl;
20170
1409cd0b
FXC
20171int
20172main ()
20173{
1409cd0b
FXC
20174 return 0;
20175}
db9f46a9 20176
1409cd0b 20177_ACEOF
5213506e 20178if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20179 gcc_cv_math_func_ldexpl=yes
1409cd0b 20180else
db9f46a9 20181 gcc_cv_math_func_ldexpl=no
1409cd0b 20182fi
5213506e
RW
20183rm -f core conftest.err conftest.$ac_objext \
20184 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20185fi
db9f46a9
TG
20186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20187$as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20188 if test $gcc_cv_math_func_ldexpl = yes; then
f1cdfa01 20189
f38a14ca
TG
20190cat >>confdefs.h <<_ACEOF
20191#define HAVE_LDEXPL 1
20192_ACEOF
db9f46a9
TG
20193
20194 fi
1409cd0b 20195
1409cd0b 20196
1409cd0b 20197
db9f46a9
TG
20198
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20200$as_echo_n "checking for logf... " >&6; }
20201if test "${gcc_cv_math_func_logf+set}" = set; then :
5213506e 20202 $as_echo_n "(cached) " >&6
1409cd0b 20203else
db9f46a9 20204 if test x$gcc_no_link = xyes; then
5213506e 20205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20206fi
5213506e 20207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20208/* end confdefs.h. */
20209
db9f46a9
TG
20210#ifdef HAVE_COMPLEX_H
20211#include <complex.h>
1409cd0b 20212#endif
db9f46a9
TG
20213#ifdef HAVE_MATH_H
20214#include <math.h>
20215#endif
20216
20217int (*ptr)() = (int (*)())logf;
20218
1409cd0b
FXC
20219int
20220main ()
20221{
1409cd0b
FXC
20222 return 0;
20223}
db9f46a9 20224
1409cd0b 20225_ACEOF
5213506e 20226if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20227 gcc_cv_math_func_logf=yes
1409cd0b 20228else
db9f46a9 20229 gcc_cv_math_func_logf=no
1409cd0b 20230fi
5213506e
RW
20231rm -f core conftest.err conftest.$ac_objext \
20232 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20233fi
db9f46a9
TG
20234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20235$as_echo "$gcc_cv_math_func_logf" >&6; }
20236 if test $gcc_cv_math_func_logf = yes; then
f1cdfa01 20237
f38a14ca
TG
20238cat >>confdefs.h <<_ACEOF
20239#define HAVE_LOGF 1
20240_ACEOF
1409cd0b 20241
db9f46a9 20242 fi
1409cd0b 20243
1409cd0b 20244
db9f46a9
TG
20245
20246
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20248$as_echo_n "checking for log... " >&6; }
20249if test "${gcc_cv_math_func_log+set}" = set; then :
5213506e 20250 $as_echo_n "(cached) " >&6
1409cd0b 20251else
db9f46a9 20252 if test x$gcc_no_link = xyes; then
5213506e 20253 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20254fi
5213506e 20255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20256/* end confdefs.h. */
20257
db9f46a9
TG
20258#ifdef HAVE_COMPLEX_H
20259#include <complex.h>
20260#endif
20261#ifdef HAVE_MATH_H
20262#include <math.h>
1409cd0b 20263#endif
db9f46a9
TG
20264
20265int (*ptr)() = (int (*)())log;
20266
1409cd0b
FXC
20267int
20268main ()
20269{
1409cd0b
FXC
20270 return 0;
20271}
db9f46a9 20272
1409cd0b 20273_ACEOF
5213506e 20274if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20275 gcc_cv_math_func_log=yes
1409cd0b 20276else
db9f46a9 20277 gcc_cv_math_func_log=no
1409cd0b 20278fi
5213506e
RW
20279rm -f core conftest.err conftest.$ac_objext \
20280 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20281fi
db9f46a9
TG
20282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20283$as_echo "$gcc_cv_math_func_log" >&6; }
20284 if test $gcc_cv_math_func_log = yes; then
f1cdfa01 20285
f38a14ca
TG
20286cat >>confdefs.h <<_ACEOF
20287#define HAVE_LOG 1
20288_ACEOF
db9f46a9
TG
20289
20290 fi
1409cd0b 20291
1409cd0b 20292
1409cd0b 20293
db9f46a9
TG
20294
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20296$as_echo_n "checking for logl... " >&6; }
20297if test "${gcc_cv_math_func_logl+set}" = set; then :
5213506e 20298 $as_echo_n "(cached) " >&6
1409cd0b 20299else
db9f46a9 20300 if test x$gcc_no_link = xyes; then
5213506e 20301 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20302fi
5213506e 20303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20304/* end confdefs.h. */
20305
db9f46a9
TG
20306#ifdef HAVE_COMPLEX_H
20307#include <complex.h>
1409cd0b 20308#endif
db9f46a9
TG
20309#ifdef HAVE_MATH_H
20310#include <math.h>
20311#endif
20312
20313int (*ptr)() = (int (*)())logl;
20314
1409cd0b
FXC
20315int
20316main ()
20317{
1409cd0b
FXC
20318 return 0;
20319}
db9f46a9 20320
1409cd0b 20321_ACEOF
5213506e 20322if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20323 gcc_cv_math_func_logl=yes
1409cd0b 20324else
db9f46a9 20325 gcc_cv_math_func_logl=no
1409cd0b 20326fi
5213506e
RW
20327rm -f core conftest.err conftest.$ac_objext \
20328 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20329fi
db9f46a9
TG
20330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20331$as_echo "$gcc_cv_math_func_logl" >&6; }
20332 if test $gcc_cv_math_func_logl = yes; then
f1cdfa01 20333
f38a14ca
TG
20334cat >>confdefs.h <<_ACEOF
20335#define HAVE_LOGL 1
20336_ACEOF
db9f46a9
TG
20337
20338 fi
20339
1409cd0b 20340
1409cd0b 20341
1409cd0b 20342
db9f46a9
TG
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20344$as_echo_n "checking for clogf... " >&6; }
20345if test "${gcc_cv_math_func_clogf+set}" = set; then :
5213506e 20346 $as_echo_n "(cached) " >&6
1409cd0b 20347else
db9f46a9 20348 if test x$gcc_no_link = xyes; then
5213506e 20349 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20350fi
5213506e 20351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20352/* end confdefs.h. */
20353
db9f46a9
TG
20354#ifdef HAVE_COMPLEX_H
20355#include <complex.h>
20356#endif
20357#ifdef HAVE_MATH_H
20358#include <math.h>
1409cd0b 20359#endif
db9f46a9
TG
20360
20361int (*ptr)() = (int (*)())clogf;
20362
1409cd0b
FXC
20363int
20364main ()
20365{
1409cd0b
FXC
20366 return 0;
20367}
db9f46a9 20368
1409cd0b 20369_ACEOF
5213506e 20370if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20371 gcc_cv_math_func_clogf=yes
1409cd0b 20372else
db9f46a9 20373 gcc_cv_math_func_clogf=no
1409cd0b 20374fi
5213506e
RW
20375rm -f core conftest.err conftest.$ac_objext \
20376 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20377fi
db9f46a9
TG
20378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20379$as_echo "$gcc_cv_math_func_clogf" >&6; }
20380 if test $gcc_cv_math_func_clogf = yes; then
f1cdfa01 20381
f38a14ca
TG
20382cat >>confdefs.h <<_ACEOF
20383#define HAVE_CLOGF 1
20384_ACEOF
db9f46a9
TG
20385
20386 fi
1409cd0b 20387
1409cd0b 20388
1409cd0b 20389
db9f46a9
TG
20390
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20392$as_echo_n "checking for clog... " >&6; }
20393if test "${gcc_cv_math_func_clog+set}" = set; then :
5213506e 20394 $as_echo_n "(cached) " >&6
1409cd0b 20395else
db9f46a9 20396 if test x$gcc_no_link = xyes; then
5213506e 20397 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20398fi
5213506e 20399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20400/* end confdefs.h. */
20401
db9f46a9
TG
20402#ifdef HAVE_COMPLEX_H
20403#include <complex.h>
1409cd0b 20404#endif
db9f46a9
TG
20405#ifdef HAVE_MATH_H
20406#include <math.h>
20407#endif
20408
20409int (*ptr)() = (int (*)())clog;
20410
1409cd0b
FXC
20411int
20412main ()
20413{
1409cd0b
FXC
20414 return 0;
20415}
db9f46a9 20416
1409cd0b 20417_ACEOF
5213506e 20418if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20419 gcc_cv_math_func_clog=yes
1409cd0b 20420else
db9f46a9 20421 gcc_cv_math_func_clog=no
1409cd0b 20422fi
5213506e
RW
20423rm -f core conftest.err conftest.$ac_objext \
20424 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20425fi
db9f46a9
TG
20426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20427$as_echo "$gcc_cv_math_func_clog" >&6; }
20428 if test $gcc_cv_math_func_clog = yes; then
f1cdfa01 20429
f38a14ca
TG
20430cat >>confdefs.h <<_ACEOF
20431#define HAVE_CLOG 1
20432_ACEOF
1409cd0b 20433
db9f46a9 20434 fi
1409cd0b 20435
1409cd0b 20436
db9f46a9
TG
20437
20438
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20440$as_echo_n "checking for clogl... " >&6; }
20441if test "${gcc_cv_math_func_clogl+set}" = set; then :
5213506e 20442 $as_echo_n "(cached) " >&6
1409cd0b 20443else
db9f46a9 20444 if test x$gcc_no_link = xyes; then
5213506e 20445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20446fi
5213506e 20447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20448/* end confdefs.h. */
20449
db9f46a9
TG
20450#ifdef HAVE_COMPLEX_H
20451#include <complex.h>
20452#endif
20453#ifdef HAVE_MATH_H
20454#include <math.h>
1409cd0b 20455#endif
db9f46a9
TG
20456
20457int (*ptr)() = (int (*)())clogl;
20458
1409cd0b
FXC
20459int
20460main ()
20461{
1409cd0b
FXC
20462 return 0;
20463}
db9f46a9 20464
1409cd0b 20465_ACEOF
5213506e 20466if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20467 gcc_cv_math_func_clogl=yes
1409cd0b 20468else
db9f46a9 20469 gcc_cv_math_func_clogl=no
1409cd0b 20470fi
5213506e
RW
20471rm -f core conftest.err conftest.$ac_objext \
20472 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20473fi
db9f46a9
TG
20474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20475$as_echo "$gcc_cv_math_func_clogl" >&6; }
20476 if test $gcc_cv_math_func_clogl = yes; then
f1cdfa01 20477
f38a14ca
TG
20478cat >>confdefs.h <<_ACEOF
20479#define HAVE_CLOGL 1
20480_ACEOF
db9f46a9
TG
20481
20482 fi
1409cd0b 20483
1409cd0b 20484
1409cd0b 20485
db9f46a9
TG
20486
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20488$as_echo_n "checking for log10f... " >&6; }
20489if test "${gcc_cv_math_func_log10f+set}" = set; then :
5213506e 20490 $as_echo_n "(cached) " >&6
1409cd0b 20491else
db9f46a9 20492 if test x$gcc_no_link = xyes; then
5213506e 20493 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20494fi
5213506e 20495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20496/* end confdefs.h. */
20497
db9f46a9
TG
20498#ifdef HAVE_COMPLEX_H
20499#include <complex.h>
1409cd0b 20500#endif
db9f46a9
TG
20501#ifdef HAVE_MATH_H
20502#include <math.h>
20503#endif
20504
20505int (*ptr)() = (int (*)())log10f;
20506
1409cd0b
FXC
20507int
20508main ()
20509{
1409cd0b
FXC
20510 return 0;
20511}
db9f46a9 20512
1409cd0b 20513_ACEOF
5213506e 20514if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20515 gcc_cv_math_func_log10f=yes
1409cd0b 20516else
db9f46a9 20517 gcc_cv_math_func_log10f=no
1409cd0b 20518fi
5213506e
RW
20519rm -f core conftest.err conftest.$ac_objext \
20520 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20521fi
db9f46a9
TG
20522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20523$as_echo "$gcc_cv_math_func_log10f" >&6; }
20524 if test $gcc_cv_math_func_log10f = yes; then
f1cdfa01 20525
f38a14ca
TG
20526cat >>confdefs.h <<_ACEOF
20527#define HAVE_LOG10F 1
20528_ACEOF
db9f46a9
TG
20529
20530 fi
20531
1409cd0b 20532
1409cd0b 20533
1409cd0b 20534
db9f46a9
TG
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20536$as_echo_n "checking for log10... " >&6; }
20537if test "${gcc_cv_math_func_log10+set}" = set; then :
5213506e 20538 $as_echo_n "(cached) " >&6
1409cd0b 20539else
db9f46a9 20540 if test x$gcc_no_link = xyes; then
5213506e 20541 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20542fi
5213506e 20543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20544/* end confdefs.h. */
20545
db9f46a9
TG
20546#ifdef HAVE_COMPLEX_H
20547#include <complex.h>
20548#endif
20549#ifdef HAVE_MATH_H
20550#include <math.h>
1409cd0b 20551#endif
db9f46a9
TG
20552
20553int (*ptr)() = (int (*)())log10;
20554
1409cd0b
FXC
20555int
20556main ()
20557{
1409cd0b
FXC
20558 return 0;
20559}
db9f46a9 20560
1409cd0b 20561_ACEOF
5213506e 20562if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20563 gcc_cv_math_func_log10=yes
1409cd0b 20564else
db9f46a9 20565 gcc_cv_math_func_log10=no
1409cd0b 20566fi
5213506e
RW
20567rm -f core conftest.err conftest.$ac_objext \
20568 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20569fi
db9f46a9
TG
20570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20571$as_echo "$gcc_cv_math_func_log10" >&6; }
20572 if test $gcc_cv_math_func_log10 = yes; then
f1cdfa01 20573
f38a14ca
TG
20574cat >>confdefs.h <<_ACEOF
20575#define HAVE_LOG10 1
20576_ACEOF
db9f46a9
TG
20577
20578 fi
1409cd0b 20579
1409cd0b 20580
1409cd0b 20581
db9f46a9
TG
20582
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20584$as_echo_n "checking for log10l... " >&6; }
20585if test "${gcc_cv_math_func_log10l+set}" = set; then :
5213506e 20586 $as_echo_n "(cached) " >&6
1409cd0b 20587else
db9f46a9 20588 if test x$gcc_no_link = xyes; then
5213506e 20589 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20590fi
5213506e 20591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20592/* end confdefs.h. */
20593
db9f46a9
TG
20594#ifdef HAVE_COMPLEX_H
20595#include <complex.h>
1409cd0b 20596#endif
db9f46a9
TG
20597#ifdef HAVE_MATH_H
20598#include <math.h>
20599#endif
20600
20601int (*ptr)() = (int (*)())log10l;
20602
1409cd0b
FXC
20603int
20604main ()
20605{
1409cd0b
FXC
20606 return 0;
20607}
db9f46a9 20608
1409cd0b 20609_ACEOF
5213506e 20610if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20611 gcc_cv_math_func_log10l=yes
1409cd0b 20612else
db9f46a9 20613 gcc_cv_math_func_log10l=no
1409cd0b 20614fi
5213506e
RW
20615rm -f core conftest.err conftest.$ac_objext \
20616 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20617fi
db9f46a9
TG
20618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20619$as_echo "$gcc_cv_math_func_log10l" >&6; }
20620 if test $gcc_cv_math_func_log10l = yes; then
f1cdfa01 20621
f38a14ca
TG
20622cat >>confdefs.h <<_ACEOF
20623#define HAVE_LOG10L 1
20624_ACEOF
1409cd0b 20625
db9f46a9 20626 fi
1409cd0b 20627
1409cd0b 20628
db9f46a9
TG
20629
20630
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20632$as_echo_n "checking for clog10f... " >&6; }
20633if test "${gcc_cv_math_func_clog10f+set}" = set; then :
5213506e 20634 $as_echo_n "(cached) " >&6
1409cd0b 20635else
db9f46a9 20636 if test x$gcc_no_link = xyes; then
5213506e 20637 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20638fi
5213506e 20639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20640/* end confdefs.h. */
20641
db9f46a9
TG
20642#ifdef HAVE_COMPLEX_H
20643#include <complex.h>
20644#endif
20645#ifdef HAVE_MATH_H
20646#include <math.h>
1409cd0b 20647#endif
db9f46a9
TG
20648
20649int (*ptr)() = (int (*)())clog10f;
20650
1409cd0b
FXC
20651int
20652main ()
20653{
1409cd0b
FXC
20654 return 0;
20655}
db9f46a9 20656
1409cd0b 20657_ACEOF
5213506e 20658if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20659 gcc_cv_math_func_clog10f=yes
1409cd0b 20660else
db9f46a9 20661 gcc_cv_math_func_clog10f=no
1409cd0b 20662fi
5213506e
RW
20663rm -f core conftest.err conftest.$ac_objext \
20664 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20665fi
db9f46a9
TG
20666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20667$as_echo "$gcc_cv_math_func_clog10f" >&6; }
20668 if test $gcc_cv_math_func_clog10f = yes; then
f1cdfa01 20669
f38a14ca
TG
20670cat >>confdefs.h <<_ACEOF
20671#define HAVE_CLOG10F 1
20672_ACEOF
db9f46a9
TG
20673
20674 fi
1409cd0b 20675
1409cd0b 20676
1409cd0b 20677
db9f46a9
TG
20678
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20680$as_echo_n "checking for clog10... " >&6; }
20681if test "${gcc_cv_math_func_clog10+set}" = set; then :
5213506e 20682 $as_echo_n "(cached) " >&6
1409cd0b 20683else
db9f46a9 20684 if test x$gcc_no_link = xyes; then
5213506e 20685 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20686fi
5213506e 20687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20688/* end confdefs.h. */
20689
db9f46a9
TG
20690#ifdef HAVE_COMPLEX_H
20691#include <complex.h>
1409cd0b 20692#endif
db9f46a9
TG
20693#ifdef HAVE_MATH_H
20694#include <math.h>
20695#endif
20696
20697int (*ptr)() = (int (*)())clog10;
20698
1409cd0b
FXC
20699int
20700main ()
20701{
5213506e
RW
20702 return 0;
20703}
db9f46a9 20704
5213506e
RW
20705_ACEOF
20706if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20707 gcc_cv_math_func_clog10=yes
1409cd0b 20708else
db9f46a9 20709 gcc_cv_math_func_clog10=no
1409cd0b 20710fi
5213506e
RW
20711rm -f core conftest.err conftest.$ac_objext \
20712 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20713fi
db9f46a9
TG
20714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20715$as_echo "$gcc_cv_math_func_clog10" >&6; }
20716 if test $gcc_cv_math_func_clog10 = yes; then
f1cdfa01 20717
f38a14ca
TG
20718cat >>confdefs.h <<_ACEOF
20719#define HAVE_CLOG10 1
20720_ACEOF
db9f46a9
TG
20721
20722 fi
20723
1409cd0b 20724
1409cd0b 20725
1409cd0b 20726
db9f46a9
TG
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20728$as_echo_n "checking for clog10l... " >&6; }
20729if test "${gcc_cv_math_func_clog10l+set}" = set; then :
5213506e 20730 $as_echo_n "(cached) " >&6
1409cd0b 20731else
db9f46a9 20732 if test x$gcc_no_link = xyes; then
5213506e 20733 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20734fi
5213506e 20735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20736/* end confdefs.h. */
20737
db9f46a9
TG
20738#ifdef HAVE_COMPLEX_H
20739#include <complex.h>
20740#endif
20741#ifdef HAVE_MATH_H
20742#include <math.h>
1409cd0b 20743#endif
db9f46a9
TG
20744
20745int (*ptr)() = (int (*)())clog10l;
20746
1409cd0b
FXC
20747int
20748main ()
20749{
1409cd0b
FXC
20750 return 0;
20751}
db9f46a9 20752
1409cd0b 20753_ACEOF
5213506e 20754if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20755 gcc_cv_math_func_clog10l=yes
1409cd0b 20756else
db9f46a9 20757 gcc_cv_math_func_clog10l=no
1409cd0b 20758fi
5213506e
RW
20759rm -f core conftest.err conftest.$ac_objext \
20760 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20761fi
db9f46a9
TG
20762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20763$as_echo "$gcc_cv_math_func_clog10l" >&6; }
20764 if test $gcc_cv_math_func_clog10l = yes; then
f1cdfa01 20765
f38a14ca
TG
20766cat >>confdefs.h <<_ACEOF
20767#define HAVE_CLOG10L 1
20768_ACEOF
db9f46a9
TG
20769
20770 fi
1409cd0b 20771
1409cd0b 20772
1409cd0b 20773
db9f46a9
TG
20774
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20776$as_echo_n "checking for nextafterf... " >&6; }
20777if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
5213506e 20778 $as_echo_n "(cached) " >&6
1409cd0b 20779else
db9f46a9 20780 if test x$gcc_no_link = xyes; then
5213506e 20781 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20782fi
5213506e 20783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20784/* end confdefs.h. */
20785
db9f46a9
TG
20786#ifdef HAVE_COMPLEX_H
20787#include <complex.h>
1409cd0b 20788#endif
db9f46a9
TG
20789#ifdef HAVE_MATH_H
20790#include <math.h>
20791#endif
20792
20793int (*ptr)() = (int (*)())nextafterf;
20794
1409cd0b
FXC
20795int
20796main ()
20797{
1409cd0b
FXC
20798 return 0;
20799}
db9f46a9 20800
1409cd0b 20801_ACEOF
5213506e 20802if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20803 gcc_cv_math_func_nextafterf=yes
1409cd0b 20804else
db9f46a9 20805 gcc_cv_math_func_nextafterf=no
1409cd0b 20806fi
5213506e
RW
20807rm -f core conftest.err conftest.$ac_objext \
20808 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20809fi
db9f46a9
TG
20810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20811$as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20812 if test $gcc_cv_math_func_nextafterf = yes; then
f1cdfa01 20813
f38a14ca
TG
20814cat >>confdefs.h <<_ACEOF
20815#define HAVE_NEXTAFTERF 1
20816_ACEOF
1409cd0b 20817
db9f46a9 20818 fi
1409cd0b 20819
1409cd0b 20820
db9f46a9
TG
20821
20822
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20824$as_echo_n "checking for nextafter... " >&6; }
20825if test "${gcc_cv_math_func_nextafter+set}" = set; then :
5213506e 20826 $as_echo_n "(cached) " >&6
1409cd0b 20827else
db9f46a9 20828 if test x$gcc_no_link = xyes; then
5213506e 20829 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20830fi
5213506e 20831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20832/* end confdefs.h. */
20833
db9f46a9
TG
20834#ifdef HAVE_COMPLEX_H
20835#include <complex.h>
20836#endif
20837#ifdef HAVE_MATH_H
20838#include <math.h>
1409cd0b 20839#endif
db9f46a9
TG
20840
20841int (*ptr)() = (int (*)())nextafter;
20842
1409cd0b
FXC
20843int
20844main ()
20845{
1409cd0b
FXC
20846 return 0;
20847}
db9f46a9 20848
1409cd0b 20849_ACEOF
5213506e 20850if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20851 gcc_cv_math_func_nextafter=yes
1409cd0b 20852else
db9f46a9 20853 gcc_cv_math_func_nextafter=no
1409cd0b 20854fi
5213506e
RW
20855rm -f core conftest.err conftest.$ac_objext \
20856 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20857fi
db9f46a9
TG
20858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20859$as_echo "$gcc_cv_math_func_nextafter" >&6; }
20860 if test $gcc_cv_math_func_nextafter = yes; then
f1cdfa01 20861
f38a14ca
TG
20862cat >>confdefs.h <<_ACEOF
20863#define HAVE_NEXTAFTER 1
20864_ACEOF
db9f46a9
TG
20865
20866 fi
1409cd0b 20867
1409cd0b 20868
1409cd0b 20869
db9f46a9
TG
20870
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20872$as_echo_n "checking for nextafterl... " >&6; }
20873if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
5213506e 20874 $as_echo_n "(cached) " >&6
1409cd0b 20875else
db9f46a9 20876 if test x$gcc_no_link = xyes; then
5213506e 20877 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20878fi
5213506e 20879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20880/* end confdefs.h. */
20881
db9f46a9
TG
20882#ifdef HAVE_COMPLEX_H
20883#include <complex.h>
1409cd0b 20884#endif
db9f46a9
TG
20885#ifdef HAVE_MATH_H
20886#include <math.h>
20887#endif
20888
20889int (*ptr)() = (int (*)())nextafterl;
20890
1409cd0b
FXC
20891int
20892main ()
20893{
1409cd0b
FXC
20894 return 0;
20895}
db9f46a9 20896
1409cd0b 20897_ACEOF
5213506e 20898if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20899 gcc_cv_math_func_nextafterl=yes
1409cd0b 20900else
db9f46a9 20901 gcc_cv_math_func_nextafterl=no
1409cd0b 20902fi
5213506e
RW
20903rm -f core conftest.err conftest.$ac_objext \
20904 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20905fi
db9f46a9
TG
20906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20907$as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20908 if test $gcc_cv_math_func_nextafterl = yes; then
f1cdfa01 20909
f38a14ca
TG
20910cat >>confdefs.h <<_ACEOF
20911#define HAVE_NEXTAFTERL 1
20912_ACEOF
db9f46a9
TG
20913
20914 fi
20915
1409cd0b 20916
1409cd0b 20917
1409cd0b 20918
db9f46a9
TG
20919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20920$as_echo_n "checking for powf... " >&6; }
20921if test "${gcc_cv_math_func_powf+set}" = set; then :
5213506e 20922 $as_echo_n "(cached) " >&6
1409cd0b 20923else
db9f46a9 20924 if test x$gcc_no_link = xyes; then
5213506e 20925 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20926fi
5213506e 20927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20928/* end confdefs.h. */
20929
db9f46a9
TG
20930#ifdef HAVE_COMPLEX_H
20931#include <complex.h>
20932#endif
20933#ifdef HAVE_MATH_H
20934#include <math.h>
1409cd0b 20935#endif
db9f46a9
TG
20936
20937int (*ptr)() = (int (*)())powf;
20938
1409cd0b
FXC
20939int
20940main ()
20941{
1409cd0b
FXC
20942 return 0;
20943}
db9f46a9 20944
1409cd0b 20945_ACEOF
5213506e 20946if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20947 gcc_cv_math_func_powf=yes
1409cd0b 20948else
db9f46a9 20949 gcc_cv_math_func_powf=no
1409cd0b 20950fi
5213506e
RW
20951rm -f core conftest.err conftest.$ac_objext \
20952 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20953fi
db9f46a9
TG
20954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20955$as_echo "$gcc_cv_math_func_powf" >&6; }
20956 if test $gcc_cv_math_func_powf = yes; then
f1cdfa01 20957
f38a14ca
TG
20958cat >>confdefs.h <<_ACEOF
20959#define HAVE_POWF 1
20960_ACEOF
db9f46a9
TG
20961
20962 fi
1409cd0b 20963
1409cd0b 20964
1409cd0b 20965
db9f46a9
TG
20966
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20968$as_echo_n "checking for pow... " >&6; }
20969if test "${gcc_cv_math_func_pow+set}" = set; then :
5213506e 20970 $as_echo_n "(cached) " >&6
1409cd0b 20971else
db9f46a9 20972 if test x$gcc_no_link = xyes; then
5213506e 20973 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20974fi
5213506e 20975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20976/* end confdefs.h. */
20977
db9f46a9
TG
20978#ifdef HAVE_COMPLEX_H
20979#include <complex.h>
1409cd0b 20980#endif
db9f46a9
TG
20981#ifdef HAVE_MATH_H
20982#include <math.h>
20983#endif
20984
20985int (*ptr)() = (int (*)())pow;
20986
1409cd0b
FXC
20987int
20988main ()
20989{
1409cd0b
FXC
20990 return 0;
20991}
db9f46a9 20992
1409cd0b 20993_ACEOF
5213506e 20994if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20995 gcc_cv_math_func_pow=yes
1409cd0b 20996else
db9f46a9 20997 gcc_cv_math_func_pow=no
1409cd0b 20998fi
5213506e
RW
20999rm -f core conftest.err conftest.$ac_objext \
21000 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21001fi
db9f46a9
TG
21002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21003$as_echo "$gcc_cv_math_func_pow" >&6; }
21004 if test $gcc_cv_math_func_pow = yes; then
f1cdfa01 21005
f38a14ca
TG
21006cat >>confdefs.h <<_ACEOF
21007#define HAVE_POW 1
21008_ACEOF
1409cd0b 21009
db9f46a9 21010 fi
1409cd0b 21011
1409cd0b 21012
db9f46a9
TG
21013
21014
db9f46a9
TG
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21016$as_echo_n "checking for cpowf... " >&6; }
21017if test "${gcc_cv_math_func_cpowf+set}" = set; then :
5213506e 21018 $as_echo_n "(cached) " >&6
1409cd0b 21019else
db9f46a9 21020 if test x$gcc_no_link = xyes; then
5213506e 21021 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21022fi
5213506e 21023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21024/* end confdefs.h. */
21025
db9f46a9
TG
21026#ifdef HAVE_COMPLEX_H
21027#include <complex.h>
1409cd0b 21028#endif
db9f46a9
TG
21029#ifdef HAVE_MATH_H
21030#include <math.h>
21031#endif
21032
21033int (*ptr)() = (int (*)())cpowf;
21034
1409cd0b
FXC
21035int
21036main ()
21037{
1409cd0b
FXC
21038 return 0;
21039}
db9f46a9 21040
1409cd0b 21041_ACEOF
5213506e 21042if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21043 gcc_cv_math_func_cpowf=yes
1409cd0b 21044else
db9f46a9 21045 gcc_cv_math_func_cpowf=no
1409cd0b 21046fi
5213506e
RW
21047rm -f core conftest.err conftest.$ac_objext \
21048 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21049fi
db9f46a9
TG
21050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21051$as_echo "$gcc_cv_math_func_cpowf" >&6; }
21052 if test $gcc_cv_math_func_cpowf = yes; then
f1cdfa01 21053
f38a14ca
TG
21054cat >>confdefs.h <<_ACEOF
21055#define HAVE_CPOWF 1
21056_ACEOF
db9f46a9
TG
21057
21058 fi
21059
1409cd0b 21060
1409cd0b 21061
1409cd0b 21062
db9f46a9
TG
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21064$as_echo_n "checking for cpow... " >&6; }
21065if test "${gcc_cv_math_func_cpow+set}" = set; then :
5213506e 21066 $as_echo_n "(cached) " >&6
1409cd0b 21067else
db9f46a9 21068 if test x$gcc_no_link = xyes; then
5213506e 21069 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21070fi
5213506e 21071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21072/* end confdefs.h. */
21073
db9f46a9
TG
21074#ifdef HAVE_COMPLEX_H
21075#include <complex.h>
21076#endif
21077#ifdef HAVE_MATH_H
21078#include <math.h>
1409cd0b 21079#endif
db9f46a9
TG
21080
21081int (*ptr)() = (int (*)())cpow;
21082
1409cd0b
FXC
21083int
21084main ()
21085{
1409cd0b
FXC
21086 return 0;
21087}
db9f46a9 21088
1409cd0b 21089_ACEOF
5213506e 21090if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21091 gcc_cv_math_func_cpow=yes
1409cd0b 21092else
db9f46a9 21093 gcc_cv_math_func_cpow=no
1409cd0b 21094fi
5213506e
RW
21095rm -f core conftest.err conftest.$ac_objext \
21096 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21097fi
db9f46a9
TG
21098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21099$as_echo "$gcc_cv_math_func_cpow" >&6; }
21100 if test $gcc_cv_math_func_cpow = yes; then
f1cdfa01 21101
f38a14ca
TG
21102cat >>confdefs.h <<_ACEOF
21103#define HAVE_CPOW 1
21104_ACEOF
db9f46a9
TG
21105
21106 fi
1409cd0b 21107
1409cd0b 21108
1409cd0b 21109
db9f46a9
TG
21110
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21112$as_echo_n "checking for cpowl... " >&6; }
21113if test "${gcc_cv_math_func_cpowl+set}" = set; then :
5213506e 21114 $as_echo_n "(cached) " >&6
1409cd0b 21115else
db9f46a9 21116 if test x$gcc_no_link = xyes; then
5213506e 21117 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21118fi
5213506e 21119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21120/* end confdefs.h. */
21121
db9f46a9
TG
21122#ifdef HAVE_COMPLEX_H
21123#include <complex.h>
1409cd0b 21124#endif
db9f46a9
TG
21125#ifdef HAVE_MATH_H
21126#include <math.h>
21127#endif
21128
21129int (*ptr)() = (int (*)())cpowl;
21130
1409cd0b
FXC
21131int
21132main ()
21133{
1409cd0b
FXC
21134 return 0;
21135}
db9f46a9 21136
1409cd0b 21137_ACEOF
5213506e 21138if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21139 gcc_cv_math_func_cpowl=yes
1409cd0b 21140else
db9f46a9 21141 gcc_cv_math_func_cpowl=no
1409cd0b 21142fi
5213506e
RW
21143rm -f core conftest.err conftest.$ac_objext \
21144 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21145fi
db9f46a9
TG
21146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21147$as_echo "$gcc_cv_math_func_cpowl" >&6; }
21148 if test $gcc_cv_math_func_cpowl = yes; then
f1cdfa01 21149
f38a14ca
TG
21150cat >>confdefs.h <<_ACEOF
21151#define HAVE_CPOWL 1
21152_ACEOF
1409cd0b 21153
db9f46a9 21154 fi
1409cd0b 21155
1409cd0b 21156
db9f46a9
TG
21157
21158
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21160$as_echo_n "checking for roundf... " >&6; }
21161if test "${gcc_cv_math_func_roundf+set}" = set; then :
5213506e 21162 $as_echo_n "(cached) " >&6
1409cd0b 21163else
db9f46a9 21164 if test x$gcc_no_link = xyes; then
5213506e 21165 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21166fi
5213506e 21167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21168/* end confdefs.h. */
21169
db9f46a9
TG
21170#ifdef HAVE_COMPLEX_H
21171#include <complex.h>
21172#endif
21173#ifdef HAVE_MATH_H
21174#include <math.h>
1409cd0b 21175#endif
db9f46a9
TG
21176
21177int (*ptr)() = (int (*)())roundf;
21178
1409cd0b
FXC
21179int
21180main ()
21181{
1409cd0b
FXC
21182 return 0;
21183}
db9f46a9 21184
1409cd0b 21185_ACEOF
5213506e 21186if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21187 gcc_cv_math_func_roundf=yes
1409cd0b 21188else
db9f46a9 21189 gcc_cv_math_func_roundf=no
1409cd0b 21190fi
5213506e
RW
21191rm -f core conftest.err conftest.$ac_objext \
21192 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21193fi
db9f46a9
TG
21194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21195$as_echo "$gcc_cv_math_func_roundf" >&6; }
21196 if test $gcc_cv_math_func_roundf = yes; then
f1cdfa01 21197
f38a14ca
TG
21198cat >>confdefs.h <<_ACEOF
21199#define HAVE_ROUNDF 1
21200_ACEOF
db9f46a9
TG
21201
21202 fi
1409cd0b 21203
1409cd0b 21204
1409cd0b 21205
db9f46a9
TG
21206
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21208$as_echo_n "checking for round... " >&6; }
21209if test "${gcc_cv_math_func_round+set}" = set; then :
5213506e 21210 $as_echo_n "(cached) " >&6
1409cd0b 21211else
db9f46a9 21212 if test x$gcc_no_link = xyes; then
5213506e 21213 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21214fi
5213506e 21215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21216/* end confdefs.h. */
21217
db9f46a9
TG
21218#ifdef HAVE_COMPLEX_H
21219#include <complex.h>
1409cd0b 21220#endif
db9f46a9
TG
21221#ifdef HAVE_MATH_H
21222#include <math.h>
21223#endif
21224
21225int (*ptr)() = (int (*)())round;
21226
1409cd0b
FXC
21227int
21228main ()
21229{
1409cd0b
FXC
21230 return 0;
21231}
db9f46a9 21232
1409cd0b 21233_ACEOF
5213506e 21234if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21235 gcc_cv_math_func_round=yes
1409cd0b 21236else
db9f46a9 21237 gcc_cv_math_func_round=no
1409cd0b 21238fi
5213506e
RW
21239rm -f core conftest.err conftest.$ac_objext \
21240 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21241fi
db9f46a9
TG
21242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21243$as_echo "$gcc_cv_math_func_round" >&6; }
21244 if test $gcc_cv_math_func_round = yes; then
f1cdfa01 21245
f38a14ca
TG
21246cat >>confdefs.h <<_ACEOF
21247#define HAVE_ROUND 1
21248_ACEOF
db9f46a9
TG
21249
21250 fi
21251
1409cd0b 21252
1409cd0b 21253
1409cd0b 21254
db9f46a9
TG
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21256$as_echo_n "checking for roundl... " >&6; }
21257if test "${gcc_cv_math_func_roundl+set}" = set; then :
5213506e 21258 $as_echo_n "(cached) " >&6
94f548c2 21259else
db9f46a9 21260 if test x$gcc_no_link = xyes; then
5213506e 21261 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21262fi
5213506e 21263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21264/* end confdefs.h. */
21265
db9f46a9
TG
21266#ifdef HAVE_COMPLEX_H
21267#include <complex.h>
21268#endif
21269#ifdef HAVE_MATH_H
21270#include <math.h>
94f548c2 21271#endif
db9f46a9
TG
21272
21273int (*ptr)() = (int (*)())roundl;
21274
94f548c2
FXC
21275int
21276main ()
21277{
94f548c2
FXC
21278 return 0;
21279}
db9f46a9 21280
94f548c2 21281_ACEOF
5213506e 21282if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21283 gcc_cv_math_func_roundl=yes
94f548c2 21284else
db9f46a9 21285 gcc_cv_math_func_roundl=no
94f548c2 21286fi
5213506e
RW
21287rm -f core conftest.err conftest.$ac_objext \
21288 conftest$ac_exeext conftest.$ac_ext
94f548c2 21289fi
db9f46a9
TG
21290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21291$as_echo "$gcc_cv_math_func_roundl" >&6; }
21292 if test $gcc_cv_math_func_roundl = yes; then
f1cdfa01 21293
f38a14ca
TG
21294cat >>confdefs.h <<_ACEOF
21295#define HAVE_ROUNDL 1
21296_ACEOF
db9f46a9
TG
21297
21298 fi
94f548c2 21299
94f548c2 21300
94f548c2 21301
db9f46a9
TG
21302
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21304$as_echo_n "checking for lroundf... " >&6; }
21305if test "${gcc_cv_math_func_lroundf+set}" = set; then :
5213506e 21306 $as_echo_n "(cached) " >&6
94f548c2 21307else
db9f46a9 21308 if test x$gcc_no_link = xyes; then
5213506e 21309 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21310fi
5213506e 21311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21312/* end confdefs.h. */
21313
db9f46a9
TG
21314#ifdef HAVE_COMPLEX_H
21315#include <complex.h>
94f548c2 21316#endif
db9f46a9
TG
21317#ifdef HAVE_MATH_H
21318#include <math.h>
21319#endif
21320
21321int (*ptr)() = (int (*)())lroundf;
21322
94f548c2
FXC
21323int
21324main ()
21325{
94f548c2
FXC
21326 return 0;
21327}
db9f46a9 21328
94f548c2 21329_ACEOF
5213506e 21330if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21331 gcc_cv_math_func_lroundf=yes
94f548c2 21332else
db9f46a9 21333 gcc_cv_math_func_lroundf=no
94f548c2 21334fi
5213506e
RW
21335rm -f core conftest.err conftest.$ac_objext \
21336 conftest$ac_exeext conftest.$ac_ext
94f548c2 21337fi
db9f46a9
TG
21338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21339$as_echo "$gcc_cv_math_func_lroundf" >&6; }
21340 if test $gcc_cv_math_func_lroundf = yes; then
f1cdfa01 21341
f38a14ca
TG
21342cat >>confdefs.h <<_ACEOF
21343#define HAVE_LROUNDF 1
21344_ACEOF
94f548c2 21345
db9f46a9 21346 fi
94f548c2 21347
94f548c2 21348
db9f46a9
TG
21349
21350
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21352$as_echo_n "checking for lround... " >&6; }
21353if test "${gcc_cv_math_func_lround+set}" = set; then :
5213506e 21354 $as_echo_n "(cached) " >&6
94f548c2 21355else
db9f46a9 21356 if test x$gcc_no_link = xyes; then
5213506e 21357 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21358fi
5213506e 21359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21360/* end confdefs.h. */
21361
db9f46a9
TG
21362#ifdef HAVE_COMPLEX_H
21363#include <complex.h>
21364#endif
21365#ifdef HAVE_MATH_H
21366#include <math.h>
94f548c2 21367#endif
db9f46a9
TG
21368
21369int (*ptr)() = (int (*)())lround;
21370
94f548c2
FXC
21371int
21372main ()
21373{
94f548c2
FXC
21374 return 0;
21375}
db9f46a9 21376
94f548c2 21377_ACEOF
5213506e 21378if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21379 gcc_cv_math_func_lround=yes
94f548c2 21380else
db9f46a9 21381 gcc_cv_math_func_lround=no
94f548c2 21382fi
5213506e
RW
21383rm -f core conftest.err conftest.$ac_objext \
21384 conftest$ac_exeext conftest.$ac_ext
94f548c2 21385fi
db9f46a9
TG
21386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21387$as_echo "$gcc_cv_math_func_lround" >&6; }
21388 if test $gcc_cv_math_func_lround = yes; then
f1cdfa01 21389
f38a14ca
TG
21390cat >>confdefs.h <<_ACEOF
21391#define HAVE_LROUND 1
21392_ACEOF
db9f46a9
TG
21393
21394 fi
21395
94f548c2 21396
94f548c2 21397
94f548c2 21398
db9f46a9
TG
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21400$as_echo_n "checking for lroundl... " >&6; }
21401if test "${gcc_cv_math_func_lroundl+set}" = set; then :
5213506e 21402 $as_echo_n "(cached) " >&6
94f548c2 21403else
db9f46a9 21404 if test x$gcc_no_link = xyes; then
5213506e 21405 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21406fi
5213506e 21407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21408/* end confdefs.h. */
21409
db9f46a9
TG
21410#ifdef HAVE_COMPLEX_H
21411#include <complex.h>
21412#endif
21413#ifdef HAVE_MATH_H
21414#include <math.h>
94f548c2 21415#endif
db9f46a9
TG
21416
21417int (*ptr)() = (int (*)())lroundl;
21418
94f548c2
FXC
21419int
21420main ()
21421{
94f548c2
FXC
21422 return 0;
21423}
db9f46a9 21424
94f548c2 21425_ACEOF
5213506e 21426if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21427 gcc_cv_math_func_lroundl=yes
94f548c2 21428else
db9f46a9 21429 gcc_cv_math_func_lroundl=no
94f548c2 21430fi
5213506e
RW
21431rm -f core conftest.err conftest.$ac_objext \
21432 conftest$ac_exeext conftest.$ac_ext
94f548c2 21433fi
db9f46a9
TG
21434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21435$as_echo "$gcc_cv_math_func_lroundl" >&6; }
21436 if test $gcc_cv_math_func_lroundl = yes; then
f1cdfa01 21437
f38a14ca
TG
21438cat >>confdefs.h <<_ACEOF
21439#define HAVE_LROUNDL 1
21440_ACEOF
94f548c2 21441
db9f46a9 21442 fi
94f548c2 21443
94f548c2 21444
db9f46a9
TG
21445
21446
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21448$as_echo_n "checking for llroundf... " >&6; }
21449if test "${gcc_cv_math_func_llroundf+set}" = set; then :
5213506e 21450 $as_echo_n "(cached) " >&6
94f548c2 21451else
db9f46a9 21452 if test x$gcc_no_link = xyes; then
5213506e 21453 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21454fi
5213506e 21455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21456/* end confdefs.h. */
21457
db9f46a9
TG
21458#ifdef HAVE_COMPLEX_H
21459#include <complex.h>
94f548c2 21460#endif
db9f46a9
TG
21461#ifdef HAVE_MATH_H
21462#include <math.h>
21463#endif
21464
21465int (*ptr)() = (int (*)())llroundf;
21466
94f548c2
FXC
21467int
21468main ()
21469{
94f548c2
FXC
21470 return 0;
21471}
db9f46a9 21472
94f548c2 21473_ACEOF
5213506e 21474if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21475 gcc_cv_math_func_llroundf=yes
94f548c2 21476else
db9f46a9 21477 gcc_cv_math_func_llroundf=no
94f548c2 21478fi
5213506e
RW
21479rm -f core conftest.err conftest.$ac_objext \
21480 conftest$ac_exeext conftest.$ac_ext
94f548c2 21481fi
db9f46a9
TG
21482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21483$as_echo "$gcc_cv_math_func_llroundf" >&6; }
21484 if test $gcc_cv_math_func_llroundf = yes; then
f1cdfa01 21485
f38a14ca
TG
21486cat >>confdefs.h <<_ACEOF
21487#define HAVE_LLROUNDF 1
21488_ACEOF
94f548c2 21489
db9f46a9 21490 fi
94f548c2 21491
94f548c2 21492
db9f46a9
TG
21493
21494
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21496$as_echo_n "checking for llround... " >&6; }
21497if test "${gcc_cv_math_func_llround+set}" = set; then :
5213506e 21498 $as_echo_n "(cached) " >&6
94f548c2 21499else
db9f46a9 21500 if test x$gcc_no_link = xyes; then
5213506e 21501 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21502fi
5213506e 21503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21504/* end confdefs.h. */
21505
db9f46a9
TG
21506#ifdef HAVE_COMPLEX_H
21507#include <complex.h>
21508#endif
21509#ifdef HAVE_MATH_H
21510#include <math.h>
94f548c2 21511#endif
db9f46a9
TG
21512
21513int (*ptr)() = (int (*)())llround;
21514
94f548c2
FXC
21515int
21516main ()
21517{
94f548c2
FXC
21518 return 0;
21519}
db9f46a9 21520
94f548c2 21521_ACEOF
5213506e 21522if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21523 gcc_cv_math_func_llround=yes
94f548c2 21524else
db9f46a9 21525 gcc_cv_math_func_llround=no
94f548c2 21526fi
5213506e
RW
21527rm -f core conftest.err conftest.$ac_objext \
21528 conftest$ac_exeext conftest.$ac_ext
94f548c2 21529fi
db9f46a9
TG
21530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21531$as_echo "$gcc_cv_math_func_llround" >&6; }
21532 if test $gcc_cv_math_func_llround = yes; then
f1cdfa01 21533
f38a14ca
TG
21534cat >>confdefs.h <<_ACEOF
21535#define HAVE_LLROUND 1
21536_ACEOF
db9f46a9
TG
21537
21538 fi
21539
94f548c2 21540
94f548c2 21541
94f548c2 21542
db9f46a9
TG
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21544$as_echo_n "checking for llroundl... " >&6; }
21545if test "${gcc_cv_math_func_llroundl+set}" = set; then :
5213506e 21546 $as_echo_n "(cached) " >&6
1409cd0b 21547else
db9f46a9 21548 if test x$gcc_no_link = xyes; then
5213506e 21549 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21550fi
5213506e 21551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21552/* end confdefs.h. */
21553
db9f46a9
TG
21554#ifdef HAVE_COMPLEX_H
21555#include <complex.h>
21556#endif
21557#ifdef HAVE_MATH_H
21558#include <math.h>
1409cd0b 21559#endif
db9f46a9
TG
21560
21561int (*ptr)() = (int (*)())llroundl;
21562
1409cd0b
FXC
21563int
21564main ()
21565{
1409cd0b
FXC
21566 return 0;
21567}
db9f46a9 21568
1409cd0b 21569_ACEOF
5213506e 21570if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21571 gcc_cv_math_func_llroundl=yes
1409cd0b 21572else
db9f46a9 21573 gcc_cv_math_func_llroundl=no
1409cd0b 21574fi
5213506e
RW
21575rm -f core conftest.err conftest.$ac_objext \
21576 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21577fi
db9f46a9
TG
21578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21579$as_echo "$gcc_cv_math_func_llroundl" >&6; }
21580 if test $gcc_cv_math_func_llroundl = yes; then
f1cdfa01 21581
f38a14ca
TG
21582cat >>confdefs.h <<_ACEOF
21583#define HAVE_LLROUNDL 1
21584_ACEOF
1409cd0b 21585
db9f46a9 21586 fi
1409cd0b 21587
1409cd0b 21588
db9f46a9
TG
21589
21590
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21592$as_echo_n "checking for scalbnf... " >&6; }
21593if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
5213506e 21594 $as_echo_n "(cached) " >&6
1409cd0b 21595else
db9f46a9 21596 if test x$gcc_no_link = xyes; then
5213506e 21597 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21598fi
5213506e 21599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21600/* end confdefs.h. */
21601
db9f46a9
TG
21602#ifdef HAVE_COMPLEX_H
21603#include <complex.h>
1409cd0b 21604#endif
db9f46a9
TG
21605#ifdef HAVE_MATH_H
21606#include <math.h>
21607#endif
21608
21609int (*ptr)() = (int (*)())scalbnf;
21610
1409cd0b
FXC
21611int
21612main ()
21613{
1409cd0b
FXC
21614 return 0;
21615}
db9f46a9 21616
1409cd0b 21617_ACEOF
5213506e 21618if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21619 gcc_cv_math_func_scalbnf=yes
1409cd0b 21620else
db9f46a9 21621 gcc_cv_math_func_scalbnf=no
1409cd0b 21622fi
5213506e
RW
21623rm -f core conftest.err conftest.$ac_objext \
21624 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21625fi
db9f46a9
TG
21626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21627$as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21628 if test $gcc_cv_math_func_scalbnf = yes; then
f1cdfa01 21629
f38a14ca
TG
21630cat >>confdefs.h <<_ACEOF
21631#define HAVE_SCALBNF 1
21632_ACEOF
1409cd0b 21633
db9f46a9 21634 fi
1409cd0b 21635
1409cd0b 21636
db9f46a9
TG
21637
21638
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21640$as_echo_n "checking for scalbn... " >&6; }
21641if test "${gcc_cv_math_func_scalbn+set}" = set; then :
5213506e 21642 $as_echo_n "(cached) " >&6
1409cd0b 21643else
db9f46a9 21644 if test x$gcc_no_link = xyes; then
5213506e 21645 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21646fi
5213506e 21647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21648/* end confdefs.h. */
21649
db9f46a9
TG
21650#ifdef HAVE_COMPLEX_H
21651#include <complex.h>
21652#endif
21653#ifdef HAVE_MATH_H
21654#include <math.h>
1409cd0b 21655#endif
db9f46a9
TG
21656
21657int (*ptr)() = (int (*)())scalbn;
21658
1409cd0b
FXC
21659int
21660main ()
21661{
1409cd0b
FXC
21662 return 0;
21663}
db9f46a9 21664
1409cd0b 21665_ACEOF
5213506e 21666if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21667 gcc_cv_math_func_scalbn=yes
1409cd0b 21668else
db9f46a9 21669 gcc_cv_math_func_scalbn=no
1409cd0b 21670fi
5213506e
RW
21671rm -f core conftest.err conftest.$ac_objext \
21672 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21673fi
db9f46a9
TG
21674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21675$as_echo "$gcc_cv_math_func_scalbn" >&6; }
21676 if test $gcc_cv_math_func_scalbn = yes; then
f1cdfa01 21677
f38a14ca
TG
21678cat >>confdefs.h <<_ACEOF
21679#define HAVE_SCALBN 1
21680_ACEOF
db9f46a9
TG
21681
21682 fi
21683
1409cd0b 21684
1409cd0b 21685
1409cd0b 21686
db9f46a9
TG
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21688$as_echo_n "checking for scalbnl... " >&6; }
21689if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
5213506e 21690 $as_echo_n "(cached) " >&6
1409cd0b 21691else
db9f46a9 21692 if test x$gcc_no_link = xyes; then
5213506e 21693 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21694fi
5213506e 21695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21696/* end confdefs.h. */
21697
db9f46a9
TG
21698#ifdef HAVE_COMPLEX_H
21699#include <complex.h>
21700#endif
21701#ifdef HAVE_MATH_H
21702#include <math.h>
1409cd0b 21703#endif
db9f46a9
TG
21704
21705int (*ptr)() = (int (*)())scalbnl;
21706
1409cd0b
FXC
21707int
21708main ()
21709{
1409cd0b
FXC
21710 return 0;
21711}
db9f46a9 21712
1409cd0b 21713_ACEOF
5213506e 21714if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21715 gcc_cv_math_func_scalbnl=yes
1409cd0b 21716else
db9f46a9 21717 gcc_cv_math_func_scalbnl=no
1409cd0b 21718fi
5213506e
RW
21719rm -f core conftest.err conftest.$ac_objext \
21720 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21721fi
db9f46a9
TG
21722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21723$as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21724 if test $gcc_cv_math_func_scalbnl = yes; then
f1cdfa01 21725
f38a14ca
TG
21726cat >>confdefs.h <<_ACEOF
21727#define HAVE_SCALBNL 1
21728_ACEOF
1409cd0b 21729
db9f46a9 21730 fi
1409cd0b 21731
1409cd0b 21732
db9f46a9
TG
21733
21734
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21736$as_echo_n "checking for sinf... " >&6; }
21737if test "${gcc_cv_math_func_sinf+set}" = set; then :
5213506e 21738 $as_echo_n "(cached) " >&6
1409cd0b 21739else
db9f46a9 21740 if test x$gcc_no_link = xyes; then
5213506e 21741 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21742fi
5213506e 21743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21744/* end confdefs.h. */
21745
db9f46a9
TG
21746#ifdef HAVE_COMPLEX_H
21747#include <complex.h>
1409cd0b 21748#endif
db9f46a9
TG
21749#ifdef HAVE_MATH_H
21750#include <math.h>
21751#endif
21752
21753int (*ptr)() = (int (*)())sinf;
21754
1409cd0b
FXC
21755int
21756main ()
21757{
1409cd0b
FXC
21758 return 0;
21759}
db9f46a9 21760
1409cd0b 21761_ACEOF
5213506e 21762if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21763 gcc_cv_math_func_sinf=yes
1409cd0b 21764else
db9f46a9 21765 gcc_cv_math_func_sinf=no
1409cd0b 21766fi
5213506e
RW
21767rm -f core conftest.err conftest.$ac_objext \
21768 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21769fi
db9f46a9
TG
21770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21771$as_echo "$gcc_cv_math_func_sinf" >&6; }
21772 if test $gcc_cv_math_func_sinf = yes; then
f1cdfa01 21773
f38a14ca
TG
21774cat >>confdefs.h <<_ACEOF
21775#define HAVE_SINF 1
21776_ACEOF
1409cd0b 21777
db9f46a9 21778 fi
1409cd0b 21779
1409cd0b 21780
db9f46a9
TG
21781
21782
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21784$as_echo_n "checking for sin... " >&6; }
21785if test "${gcc_cv_math_func_sin+set}" = set; then :
5213506e 21786 $as_echo_n "(cached) " >&6
1409cd0b 21787else
db9f46a9 21788 if test x$gcc_no_link = xyes; then
5213506e 21789 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21790fi
5213506e 21791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21792/* end confdefs.h. */
21793
db9f46a9
TG
21794#ifdef HAVE_COMPLEX_H
21795#include <complex.h>
1409cd0b 21796#endif
db9f46a9
TG
21797#ifdef HAVE_MATH_H
21798#include <math.h>
21799#endif
21800
21801int (*ptr)() = (int (*)())sin;
21802
1409cd0b
FXC
21803int
21804main ()
21805{
1409cd0b
FXC
21806 return 0;
21807}
db9f46a9 21808
1409cd0b 21809_ACEOF
5213506e 21810if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21811 gcc_cv_math_func_sin=yes
1409cd0b 21812else
db9f46a9 21813 gcc_cv_math_func_sin=no
1409cd0b 21814fi
5213506e
RW
21815rm -f core conftest.err conftest.$ac_objext \
21816 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21817fi
db9f46a9
TG
21818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21819$as_echo "$gcc_cv_math_func_sin" >&6; }
21820 if test $gcc_cv_math_func_sin = yes; then
f1cdfa01 21821
f38a14ca
TG
21822cat >>confdefs.h <<_ACEOF
21823#define HAVE_SIN 1
21824_ACEOF
db9f46a9
TG
21825
21826 fi
21827
1409cd0b 21828
1409cd0b 21829
1409cd0b 21830
db9f46a9
TG
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21832$as_echo_n "checking for sinl... " >&6; }
21833if test "${gcc_cv_math_func_sinl+set}" = set; then :
5213506e 21834 $as_echo_n "(cached) " >&6
1409cd0b 21835else
db9f46a9 21836 if test x$gcc_no_link = xyes; then
5213506e 21837 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21838fi
5213506e 21839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21840/* end confdefs.h. */
21841
db9f46a9
TG
21842#ifdef HAVE_COMPLEX_H
21843#include <complex.h>
1409cd0b 21844#endif
db9f46a9
TG
21845#ifdef HAVE_MATH_H
21846#include <math.h>
21847#endif
21848
21849int (*ptr)() = (int (*)())sinl;
21850
1409cd0b
FXC
21851int
21852main ()
21853{
5213506e
RW
21854 return 0;
21855}
db9f46a9 21856
5213506e
RW
21857_ACEOF
21858if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21859 gcc_cv_math_func_sinl=yes
1409cd0b 21860else
db9f46a9 21861 gcc_cv_math_func_sinl=no
1409cd0b 21862fi
5213506e
RW
21863rm -f core conftest.err conftest.$ac_objext \
21864 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21865fi
db9f46a9
TG
21866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21867$as_echo "$gcc_cv_math_func_sinl" >&6; }
21868 if test $gcc_cv_math_func_sinl = yes; then
f1cdfa01 21869
f38a14ca
TG
21870cat >>confdefs.h <<_ACEOF
21871#define HAVE_SINL 1
21872_ACEOF
db9f46a9
TG
21873
21874 fi
1409cd0b 21875
1409cd0b 21876
1409cd0b 21877
db9f46a9
TG
21878
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21880$as_echo_n "checking for csinf... " >&6; }
21881if test "${gcc_cv_math_func_csinf+set}" = set; then :
5213506e 21882 $as_echo_n "(cached) " >&6
1409cd0b 21883else
db9f46a9 21884 if test x$gcc_no_link = xyes; then
5213506e 21885 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21886fi
5213506e 21887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21888/* end confdefs.h. */
21889
db9f46a9
TG
21890#ifdef HAVE_COMPLEX_H
21891#include <complex.h>
21892#endif
21893#ifdef HAVE_MATH_H
21894#include <math.h>
1409cd0b 21895#endif
db9f46a9
TG
21896
21897int (*ptr)() = (int (*)())csinf;
21898
1409cd0b
FXC
21899int
21900main ()
21901{
1409cd0b
FXC
21902 return 0;
21903}
db9f46a9 21904
1409cd0b 21905_ACEOF
5213506e 21906if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21907 gcc_cv_math_func_csinf=yes
1409cd0b 21908else
db9f46a9 21909 gcc_cv_math_func_csinf=no
1409cd0b 21910fi
5213506e
RW
21911rm -f core conftest.err conftest.$ac_objext \
21912 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21913fi
db9f46a9
TG
21914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21915$as_echo "$gcc_cv_math_func_csinf" >&6; }
21916 if test $gcc_cv_math_func_csinf = yes; then
f1cdfa01 21917
f38a14ca
TG
21918cat >>confdefs.h <<_ACEOF
21919#define HAVE_CSINF 1
21920_ACEOF
1409cd0b 21921
db9f46a9 21922 fi
1409cd0b 21923
1409cd0b 21924
db9f46a9
TG
21925
21926
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21928$as_echo_n "checking for csin... " >&6; }
21929if test "${gcc_cv_math_func_csin+set}" = set; then :
5213506e 21930 $as_echo_n "(cached) " >&6
1409cd0b 21931else
db9f46a9 21932 if test x$gcc_no_link = xyes; then
5213506e 21933 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21934fi
5213506e 21935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21936/* end confdefs.h. */
21937
db9f46a9
TG
21938#ifdef HAVE_COMPLEX_H
21939#include <complex.h>
1409cd0b 21940#endif
db9f46a9
TG
21941#ifdef HAVE_MATH_H
21942#include <math.h>
21943#endif
21944
21945int (*ptr)() = (int (*)())csin;
21946
1409cd0b
FXC
21947int
21948main ()
21949{
1409cd0b
FXC
21950 return 0;
21951}
db9f46a9 21952
1409cd0b 21953_ACEOF
5213506e 21954if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21955 gcc_cv_math_func_csin=yes
1409cd0b 21956else
db9f46a9 21957 gcc_cv_math_func_csin=no
1409cd0b 21958fi
5213506e
RW
21959rm -f core conftest.err conftest.$ac_objext \
21960 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21961fi
db9f46a9
TG
21962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21963$as_echo "$gcc_cv_math_func_csin" >&6; }
21964 if test $gcc_cv_math_func_csin = yes; then
f1cdfa01 21965
f38a14ca
TG
21966cat >>confdefs.h <<_ACEOF
21967#define HAVE_CSIN 1
21968_ACEOF
db9f46a9
TG
21969
21970 fi
21971
1409cd0b 21972
1409cd0b 21973
1409cd0b 21974
db9f46a9
TG
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21976$as_echo_n "checking for csinl... " >&6; }
21977if test "${gcc_cv_math_func_csinl+set}" = set; then :
5213506e 21978 $as_echo_n "(cached) " >&6
1409cd0b 21979else
db9f46a9 21980 if test x$gcc_no_link = xyes; then
5213506e 21981 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21982fi
5213506e 21983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21984/* end confdefs.h. */
21985
db9f46a9
TG
21986#ifdef HAVE_COMPLEX_H
21987#include <complex.h>
1409cd0b 21988#endif
db9f46a9
TG
21989#ifdef HAVE_MATH_H
21990#include <math.h>
21991#endif
21992
21993int (*ptr)() = (int (*)())csinl;
21994
1409cd0b
FXC
21995int
21996main ()
21997{
1409cd0b
FXC
21998 return 0;
21999}
db9f46a9 22000
1409cd0b 22001_ACEOF
5213506e 22002if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22003 gcc_cv_math_func_csinl=yes
1409cd0b 22004else
db9f46a9 22005 gcc_cv_math_func_csinl=no
1409cd0b 22006fi
5213506e
RW
22007rm -f core conftest.err conftest.$ac_objext \
22008 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22009fi
db9f46a9
TG
22010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22011$as_echo "$gcc_cv_math_func_csinl" >&6; }
22012 if test $gcc_cv_math_func_csinl = yes; then
f1cdfa01 22013
f38a14ca
TG
22014cat >>confdefs.h <<_ACEOF
22015#define HAVE_CSINL 1
22016_ACEOF
db9f46a9
TG
22017
22018 fi
1409cd0b 22019
1409cd0b 22020
1409cd0b 22021
db9f46a9
TG
22022
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22024$as_echo_n "checking for sinhf... " >&6; }
22025if test "${gcc_cv_math_func_sinhf+set}" = set; then :
5213506e 22026 $as_echo_n "(cached) " >&6
1409cd0b 22027else
db9f46a9 22028 if test x$gcc_no_link = xyes; then
5213506e 22029 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22030fi
5213506e 22031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22032/* end confdefs.h. */
22033
db9f46a9
TG
22034#ifdef HAVE_COMPLEX_H
22035#include <complex.h>
22036#endif
22037#ifdef HAVE_MATH_H
22038#include <math.h>
1409cd0b 22039#endif
db9f46a9
TG
22040
22041int (*ptr)() = (int (*)())sinhf;
22042
1409cd0b
FXC
22043int
22044main ()
22045{
1409cd0b
FXC
22046 return 0;
22047}
db9f46a9 22048
1409cd0b 22049_ACEOF
5213506e 22050if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22051 gcc_cv_math_func_sinhf=yes
1409cd0b 22052else
db9f46a9 22053 gcc_cv_math_func_sinhf=no
1409cd0b 22054fi
5213506e
RW
22055rm -f core conftest.err conftest.$ac_objext \
22056 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22057fi
db9f46a9
TG
22058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22059$as_echo "$gcc_cv_math_func_sinhf" >&6; }
22060 if test $gcc_cv_math_func_sinhf = yes; then
f1cdfa01 22061
f38a14ca
TG
22062cat >>confdefs.h <<_ACEOF
22063#define HAVE_SINHF 1
22064_ACEOF
1409cd0b 22065
db9f46a9 22066 fi
1409cd0b 22067
1409cd0b 22068
db9f46a9
TG
22069
22070
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22072$as_echo_n "checking for sinh... " >&6; }
22073if test "${gcc_cv_math_func_sinh+set}" = set; then :
5213506e 22074 $as_echo_n "(cached) " >&6
1409cd0b 22075else
db9f46a9 22076 if test x$gcc_no_link = xyes; then
5213506e 22077 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22078fi
5213506e 22079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22080/* end confdefs.h. */
22081
db9f46a9
TG
22082#ifdef HAVE_COMPLEX_H
22083#include <complex.h>
1409cd0b 22084#endif
db9f46a9
TG
22085#ifdef HAVE_MATH_H
22086#include <math.h>
22087#endif
22088
22089int (*ptr)() = (int (*)())sinh;
22090
1409cd0b
FXC
22091int
22092main ()
22093{
1409cd0b
FXC
22094 return 0;
22095}
db9f46a9 22096
1409cd0b 22097_ACEOF
5213506e 22098if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22099 gcc_cv_math_func_sinh=yes
1409cd0b 22100else
db9f46a9 22101 gcc_cv_math_func_sinh=no
1409cd0b 22102fi
5213506e
RW
22103rm -f core conftest.err conftest.$ac_objext \
22104 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22105fi
db9f46a9
TG
22106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22107$as_echo "$gcc_cv_math_func_sinh" >&6; }
22108 if test $gcc_cv_math_func_sinh = yes; then
f1cdfa01 22109
f38a14ca
TG
22110cat >>confdefs.h <<_ACEOF
22111#define HAVE_SINH 1
22112_ACEOF
db9f46a9
TG
22113
22114 fi
22115
1409cd0b 22116
1409cd0b 22117
1409cd0b 22118
db9f46a9
TG
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22120$as_echo_n "checking for sinhl... " >&6; }
22121if test "${gcc_cv_math_func_sinhl+set}" = set; then :
5213506e 22122 $as_echo_n "(cached) " >&6
1409cd0b 22123else
db9f46a9 22124 if test x$gcc_no_link = xyes; then
5213506e 22125 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22126fi
5213506e 22127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22128/* end confdefs.h. */
22129
db9f46a9
TG
22130#ifdef HAVE_COMPLEX_H
22131#include <complex.h>
1409cd0b 22132#endif
db9f46a9
TG
22133#ifdef HAVE_MATH_H
22134#include <math.h>
22135#endif
22136
22137int (*ptr)() = (int (*)())sinhl;
22138
1409cd0b
FXC
22139int
22140main ()
22141{
1409cd0b
FXC
22142 return 0;
22143}
db9f46a9 22144
1409cd0b 22145_ACEOF
5213506e 22146if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22147 gcc_cv_math_func_sinhl=yes
1409cd0b 22148else
db9f46a9 22149 gcc_cv_math_func_sinhl=no
1409cd0b 22150fi
5213506e
RW
22151rm -f core conftest.err conftest.$ac_objext \
22152 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22153fi
db9f46a9
TG
22154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22155$as_echo "$gcc_cv_math_func_sinhl" >&6; }
22156 if test $gcc_cv_math_func_sinhl = yes; then
f1cdfa01 22157
f38a14ca
TG
22158cat >>confdefs.h <<_ACEOF
22159#define HAVE_SINHL 1
22160_ACEOF
db9f46a9
TG
22161
22162 fi
1409cd0b 22163
1409cd0b 22164
1409cd0b 22165
db9f46a9
TG
22166
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22168$as_echo_n "checking for csinhf... " >&6; }
22169if test "${gcc_cv_math_func_csinhf+set}" = set; then :
5213506e 22170 $as_echo_n "(cached) " >&6
1409cd0b 22171else
db9f46a9 22172 if test x$gcc_no_link = xyes; then
5213506e 22173 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22174fi
5213506e 22175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22176/* end confdefs.h. */
22177
db9f46a9
TG
22178#ifdef HAVE_COMPLEX_H
22179#include <complex.h>
22180#endif
22181#ifdef HAVE_MATH_H
22182#include <math.h>
1409cd0b 22183#endif
db9f46a9
TG
22184
22185int (*ptr)() = (int (*)())csinhf;
22186
1409cd0b
FXC
22187int
22188main ()
22189{
1409cd0b
FXC
22190 return 0;
22191}
db9f46a9 22192
1409cd0b 22193_ACEOF
5213506e 22194if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22195 gcc_cv_math_func_csinhf=yes
1409cd0b 22196else
db9f46a9 22197 gcc_cv_math_func_csinhf=no
1409cd0b 22198fi
5213506e
RW
22199rm -f core conftest.err conftest.$ac_objext \
22200 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22201fi
db9f46a9
TG
22202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22203$as_echo "$gcc_cv_math_func_csinhf" >&6; }
22204 if test $gcc_cv_math_func_csinhf = yes; then
f1cdfa01 22205
f38a14ca
TG
22206cat >>confdefs.h <<_ACEOF
22207#define HAVE_CSINHF 1
22208_ACEOF
1409cd0b 22209
db9f46a9 22210 fi
1409cd0b 22211
1409cd0b 22212
db9f46a9
TG
22213
22214
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22216$as_echo_n "checking for csinh... " >&6; }
22217if test "${gcc_cv_math_func_csinh+set}" = set; then :
5213506e 22218 $as_echo_n "(cached) " >&6
1409cd0b 22219else
db9f46a9 22220 if test x$gcc_no_link = xyes; then
5213506e 22221 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22222fi
5213506e 22223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22224/* end confdefs.h. */
22225
db9f46a9
TG
22226#ifdef HAVE_COMPLEX_H
22227#include <complex.h>
1409cd0b 22228#endif
db9f46a9
TG
22229#ifdef HAVE_MATH_H
22230#include <math.h>
22231#endif
22232
22233int (*ptr)() = (int (*)())csinh;
22234
1409cd0b
FXC
22235int
22236main ()
22237{
1409cd0b
FXC
22238 return 0;
22239}
db9f46a9 22240
1409cd0b 22241_ACEOF
5213506e 22242if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22243 gcc_cv_math_func_csinh=yes
1409cd0b 22244else
db9f46a9 22245 gcc_cv_math_func_csinh=no
1409cd0b 22246fi
5213506e
RW
22247rm -f core conftest.err conftest.$ac_objext \
22248 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22249fi
db9f46a9
TG
22250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22251$as_echo "$gcc_cv_math_func_csinh" >&6; }
22252 if test $gcc_cv_math_func_csinh = yes; then
f1cdfa01 22253
f38a14ca
TG
22254cat >>confdefs.h <<_ACEOF
22255#define HAVE_CSINH 1
22256_ACEOF
db9f46a9
TG
22257
22258 fi
22259
1409cd0b 22260
1409cd0b 22261
1409cd0b 22262
db9f46a9
TG
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22264$as_echo_n "checking for csinhl... " >&6; }
22265if test "${gcc_cv_math_func_csinhl+set}" = set; then :
5213506e 22266 $as_echo_n "(cached) " >&6
1409cd0b 22267else
db9f46a9 22268 if test x$gcc_no_link = xyes; then
5213506e 22269 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22270fi
5213506e 22271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22272/* end confdefs.h. */
22273
db9f46a9
TG
22274#ifdef HAVE_COMPLEX_H
22275#include <complex.h>
1409cd0b 22276#endif
db9f46a9
TG
22277#ifdef HAVE_MATH_H
22278#include <math.h>
22279#endif
22280
22281int (*ptr)() = (int (*)())csinhl;
22282
1409cd0b
FXC
22283int
22284main ()
22285{
1409cd0b
FXC
22286 return 0;
22287}
db9f46a9 22288
1409cd0b 22289_ACEOF
5213506e 22290if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22291 gcc_cv_math_func_csinhl=yes
1409cd0b 22292else
db9f46a9 22293 gcc_cv_math_func_csinhl=no
1409cd0b 22294fi
5213506e
RW
22295rm -f core conftest.err conftest.$ac_objext \
22296 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22297fi
db9f46a9
TG
22298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22299$as_echo "$gcc_cv_math_func_csinhl" >&6; }
22300 if test $gcc_cv_math_func_csinhl = yes; then
f1cdfa01 22301
f38a14ca
TG
22302cat >>confdefs.h <<_ACEOF
22303#define HAVE_CSINHL 1
22304_ACEOF
db9f46a9
TG
22305
22306 fi
1409cd0b 22307
1409cd0b 22308
1409cd0b 22309
db9f46a9
TG
22310
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22312$as_echo_n "checking for sqrtf... " >&6; }
22313if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
5213506e 22314 $as_echo_n "(cached) " >&6
1409cd0b 22315else
db9f46a9 22316 if test x$gcc_no_link = xyes; then
5213506e 22317 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22318fi
5213506e 22319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22320/* end confdefs.h. */
22321
db9f46a9
TG
22322#ifdef HAVE_COMPLEX_H
22323#include <complex.h>
22324#endif
22325#ifdef HAVE_MATH_H
22326#include <math.h>
1409cd0b 22327#endif
db9f46a9
TG
22328
22329int (*ptr)() = (int (*)())sqrtf;
22330
1409cd0b
FXC
22331int
22332main ()
22333{
1409cd0b
FXC
22334 return 0;
22335}
db9f46a9 22336
1409cd0b 22337_ACEOF
5213506e 22338if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22339 gcc_cv_math_func_sqrtf=yes
1409cd0b 22340else
db9f46a9 22341 gcc_cv_math_func_sqrtf=no
1409cd0b 22342fi
5213506e
RW
22343rm -f core conftest.err conftest.$ac_objext \
22344 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22345fi
db9f46a9
TG
22346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22347$as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22348 if test $gcc_cv_math_func_sqrtf = yes; then
f1cdfa01 22349
f38a14ca
TG
22350cat >>confdefs.h <<_ACEOF
22351#define HAVE_SQRTF 1
22352_ACEOF
db9f46a9
TG
22353
22354 fi
1409cd0b 22355
1409cd0b 22356
db9f46a9
TG
22357
22358
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22360$as_echo_n "checking for sqrt... " >&6; }
22361if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22362 $as_echo_n "(cached) " >&6
22363else
22364 if test x$gcc_no_link = xyes; then
22365 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22366fi
db9f46a9
TG
22367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22368/* end confdefs.h. */
22369
22370#ifdef HAVE_COMPLEX_H
22371#include <complex.h>
22372#endif
22373#ifdef HAVE_MATH_H
22374#include <math.h>
22375#endif
22376
22377int (*ptr)() = (int (*)())sqrt;
22378
22379int
22380main ()
22381{
22382 return 0;
22383}
22384
22385_ACEOF
22386if ac_fn_c_try_link "$LINENO"; then :
22387 gcc_cv_math_func_sqrt=yes
22388else
22389 gcc_cv_math_func_sqrt=no
22390fi
22391rm -f core conftest.err conftest.$ac_objext \
22392 conftest$ac_exeext conftest.$ac_ext
22393fi
22394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22395$as_echo "$gcc_cv_math_func_sqrt" >&6; }
22396 if test $gcc_cv_math_func_sqrt = yes; then
f1cdfa01 22397
f38a14ca
TG
22398cat >>confdefs.h <<_ACEOF
22399#define HAVE_SQRT 1
22400_ACEOF
db9f46a9
TG
22401
22402 fi
1409cd0b 22403
db9f46a9
TG
22404
22405
22406
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22408$as_echo_n "checking for sqrtl... " >&6; }
22409if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
5213506e 22410 $as_echo_n "(cached) " >&6
1409cd0b 22411else
db9f46a9 22412 if test x$gcc_no_link = xyes; then
5213506e 22413 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22414fi
5213506e 22415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22416/* end confdefs.h. */
22417
db9f46a9
TG
22418#ifdef HAVE_COMPLEX_H
22419#include <complex.h>
22420#endif
22421#ifdef HAVE_MATH_H
22422#include <math.h>
1409cd0b 22423#endif
db9f46a9
TG
22424
22425int (*ptr)() = (int (*)())sqrtl;
22426
1409cd0b
FXC
22427int
22428main ()
22429{
1409cd0b
FXC
22430 return 0;
22431}
db9f46a9 22432
1409cd0b 22433_ACEOF
5213506e 22434if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22435 gcc_cv_math_func_sqrtl=yes
1409cd0b 22436else
db9f46a9 22437 gcc_cv_math_func_sqrtl=no
1409cd0b 22438fi
5213506e
RW
22439rm -f core conftest.err conftest.$ac_objext \
22440 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22441fi
db9f46a9
TG
22442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22443$as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22444 if test $gcc_cv_math_func_sqrtl = yes; then
f1cdfa01 22445
f38a14ca
TG
22446cat >>confdefs.h <<_ACEOF
22447#define HAVE_SQRTL 1
22448_ACEOF
db9f46a9
TG
22449
22450 fi
1409cd0b 22451
1409cd0b 22452
1409cd0b 22453
db9f46a9
TG
22454
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22456$as_echo_n "checking for csqrtf... " >&6; }
22457if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
5213506e 22458 $as_echo_n "(cached) " >&6
1409cd0b 22459else
db9f46a9 22460 if test x$gcc_no_link = xyes; then
5213506e 22461 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22462fi
5213506e 22463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22464/* end confdefs.h. */
22465
db9f46a9
TG
22466#ifdef HAVE_COMPLEX_H
22467#include <complex.h>
1409cd0b 22468#endif
db9f46a9
TG
22469#ifdef HAVE_MATH_H
22470#include <math.h>
22471#endif
22472
22473int (*ptr)() = (int (*)())csqrtf;
22474
1409cd0b
FXC
22475int
22476main ()
22477{
1409cd0b
FXC
22478 return 0;
22479}
db9f46a9 22480
1409cd0b 22481_ACEOF
5213506e 22482if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22483 gcc_cv_math_func_csqrtf=yes
1409cd0b 22484else
db9f46a9 22485 gcc_cv_math_func_csqrtf=no
1409cd0b 22486fi
5213506e
RW
22487rm -f core conftest.err conftest.$ac_objext \
22488 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22489fi
db9f46a9
TG
22490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22491$as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22492 if test $gcc_cv_math_func_csqrtf = yes; then
f1cdfa01 22493
f38a14ca
TG
22494cat >>confdefs.h <<_ACEOF
22495#define HAVE_CSQRTF 1
22496_ACEOF
1409cd0b 22497
db9f46a9 22498 fi
1409cd0b 22499
1409cd0b 22500
db9f46a9
TG
22501
22502
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22504$as_echo_n "checking for csqrt... " >&6; }
22505if test "${gcc_cv_math_func_csqrt+set}" = set; then :
5213506e 22506 $as_echo_n "(cached) " >&6
1409cd0b 22507else
db9f46a9 22508 if test x$gcc_no_link = xyes; then
5213506e 22509 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22510fi
5213506e 22511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22512/* end confdefs.h. */
22513
db9f46a9
TG
22514#ifdef HAVE_COMPLEX_H
22515#include <complex.h>
22516#endif
22517#ifdef HAVE_MATH_H
22518#include <math.h>
1409cd0b 22519#endif
db9f46a9
TG
22520
22521int (*ptr)() = (int (*)())csqrt;
22522
1409cd0b
FXC
22523int
22524main ()
22525{
1409cd0b
FXC
22526 return 0;
22527}
db9f46a9 22528
1409cd0b 22529_ACEOF
5213506e 22530if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22531 gcc_cv_math_func_csqrt=yes
1409cd0b 22532else
db9f46a9 22533 gcc_cv_math_func_csqrt=no
1409cd0b 22534fi
5213506e
RW
22535rm -f core conftest.err conftest.$ac_objext \
22536 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22537fi
db9f46a9
TG
22538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22539$as_echo "$gcc_cv_math_func_csqrt" >&6; }
22540 if test $gcc_cv_math_func_csqrt = yes; then
f1cdfa01 22541
f38a14ca
TG
22542cat >>confdefs.h <<_ACEOF
22543#define HAVE_CSQRT 1
22544_ACEOF
db9f46a9
TG
22545
22546 fi
1409cd0b 22547
1409cd0b 22548
1409cd0b 22549
db9f46a9
TG
22550
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22552$as_echo_n "checking for csqrtl... " >&6; }
22553if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
5213506e 22554 $as_echo_n "(cached) " >&6
1409cd0b 22555else
db9f46a9 22556 if test x$gcc_no_link = xyes; then
5213506e 22557 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22558fi
5213506e 22559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22560/* end confdefs.h. */
22561
db9f46a9
TG
22562#ifdef HAVE_COMPLEX_H
22563#include <complex.h>
1409cd0b 22564#endif
db9f46a9
TG
22565#ifdef HAVE_MATH_H
22566#include <math.h>
22567#endif
22568
22569int (*ptr)() = (int (*)())csqrtl;
22570
1409cd0b
FXC
22571int
22572main ()
22573{
1409cd0b
FXC
22574 return 0;
22575}
db9f46a9 22576
1409cd0b 22577_ACEOF
5213506e 22578if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22579 gcc_cv_math_func_csqrtl=yes
1409cd0b 22580else
db9f46a9 22581 gcc_cv_math_func_csqrtl=no
1409cd0b 22582fi
5213506e
RW
22583rm -f core conftest.err conftest.$ac_objext \
22584 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22585fi
db9f46a9
TG
22586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22587$as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22588 if test $gcc_cv_math_func_csqrtl = yes; then
f1cdfa01 22589
f38a14ca
TG
22590cat >>confdefs.h <<_ACEOF
22591#define HAVE_CSQRTL 1
22592_ACEOF
db9f46a9
TG
22593
22594 fi
22595
1409cd0b 22596
1409cd0b 22597
1409cd0b 22598
db9f46a9
TG
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22600$as_echo_n "checking for tanf... " >&6; }
22601if test "${gcc_cv_math_func_tanf+set}" = set; then :
5213506e 22602 $as_echo_n "(cached) " >&6
1409cd0b 22603else
db9f46a9 22604 if test x$gcc_no_link = xyes; then
5213506e 22605 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22606fi
5213506e 22607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22608/* end confdefs.h. */
22609
db9f46a9
TG
22610#ifdef HAVE_COMPLEX_H
22611#include <complex.h>
22612#endif
22613#ifdef HAVE_MATH_H
22614#include <math.h>
1409cd0b 22615#endif
db9f46a9
TG
22616
22617int (*ptr)() = (int (*)())tanf;
22618
1409cd0b
FXC
22619int
22620main ()
22621{
1409cd0b
FXC
22622 return 0;
22623}
db9f46a9 22624
1409cd0b 22625_ACEOF
5213506e 22626if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22627 gcc_cv_math_func_tanf=yes
1409cd0b 22628else
db9f46a9 22629 gcc_cv_math_func_tanf=no
1409cd0b 22630fi
5213506e
RW
22631rm -f core conftest.err conftest.$ac_objext \
22632 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22633fi
db9f46a9
TG
22634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22635$as_echo "$gcc_cv_math_func_tanf" >&6; }
22636 if test $gcc_cv_math_func_tanf = yes; then
f1cdfa01 22637
f38a14ca
TG
22638cat >>confdefs.h <<_ACEOF
22639#define HAVE_TANF 1
22640_ACEOF
db9f46a9
TG
22641
22642 fi
1409cd0b 22643
1409cd0b 22644
1409cd0b 22645
db9f46a9
TG
22646
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22648$as_echo_n "checking for tan... " >&6; }
22649if test "${gcc_cv_math_func_tan+set}" = set; then :
5213506e 22650 $as_echo_n "(cached) " >&6
1409cd0b 22651else
db9f46a9 22652 if test x$gcc_no_link = xyes; then
5213506e 22653 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22654fi
5213506e 22655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22656/* end confdefs.h. */
22657
db9f46a9
TG
22658#ifdef HAVE_COMPLEX_H
22659#include <complex.h>
1409cd0b 22660#endif
db9f46a9
TG
22661#ifdef HAVE_MATH_H
22662#include <math.h>
22663#endif
22664
22665int (*ptr)() = (int (*)())tan;
22666
1409cd0b
FXC
22667int
22668main ()
22669{
1409cd0b
FXC
22670 return 0;
22671}
db9f46a9 22672
1409cd0b 22673_ACEOF
5213506e 22674if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22675 gcc_cv_math_func_tan=yes
1409cd0b 22676else
db9f46a9 22677 gcc_cv_math_func_tan=no
1409cd0b 22678fi
5213506e
RW
22679rm -f core conftest.err conftest.$ac_objext \
22680 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22681fi
db9f46a9
TG
22682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22683$as_echo "$gcc_cv_math_func_tan" >&6; }
22684 if test $gcc_cv_math_func_tan = yes; then
f1cdfa01 22685
f38a14ca
TG
22686cat >>confdefs.h <<_ACEOF
22687#define HAVE_TAN 1
22688_ACEOF
1409cd0b 22689
db9f46a9 22690 fi
1409cd0b 22691
1409cd0b 22692
db9f46a9
TG
22693
22694
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22696$as_echo_n "checking for tanl... " >&6; }
22697if test "${gcc_cv_math_func_tanl+set}" = set; then :
5213506e 22698 $as_echo_n "(cached) " >&6
1409cd0b 22699else
db9f46a9 22700 if test x$gcc_no_link = xyes; then
5213506e 22701 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22702fi
5213506e 22703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22704/* end confdefs.h. */
22705
db9f46a9
TG
22706#ifdef HAVE_COMPLEX_H
22707#include <complex.h>
22708#endif
22709#ifdef HAVE_MATH_H
22710#include <math.h>
1409cd0b 22711#endif
db9f46a9
TG
22712
22713int (*ptr)() = (int (*)())tanl;
22714
1409cd0b
FXC
22715int
22716main ()
22717{
1409cd0b
FXC
22718 return 0;
22719}
db9f46a9 22720
1409cd0b 22721_ACEOF
5213506e 22722if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22723 gcc_cv_math_func_tanl=yes
1409cd0b 22724else
db9f46a9 22725 gcc_cv_math_func_tanl=no
1409cd0b 22726fi
5213506e
RW
22727rm -f core conftest.err conftest.$ac_objext \
22728 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22729fi
db9f46a9
TG
22730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22731$as_echo "$gcc_cv_math_func_tanl" >&6; }
22732 if test $gcc_cv_math_func_tanl = yes; then
f1cdfa01 22733
f38a14ca
TG
22734cat >>confdefs.h <<_ACEOF
22735#define HAVE_TANL 1
22736_ACEOF
db9f46a9
TG
22737
22738 fi
1409cd0b 22739
1409cd0b 22740
1409cd0b 22741
db9f46a9
TG
22742
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22744$as_echo_n "checking for ctanf... " >&6; }
22745if test "${gcc_cv_math_func_ctanf+set}" = set; then :
5213506e 22746 $as_echo_n "(cached) " >&6
1409cd0b 22747else
db9f46a9 22748 if test x$gcc_no_link = xyes; then
5213506e 22749 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22750fi
5213506e 22751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22752/* end confdefs.h. */
22753
db9f46a9
TG
22754#ifdef HAVE_COMPLEX_H
22755#include <complex.h>
1409cd0b 22756#endif
db9f46a9
TG
22757#ifdef HAVE_MATH_H
22758#include <math.h>
22759#endif
22760
22761int (*ptr)() = (int (*)())ctanf;
22762
1409cd0b
FXC
22763int
22764main ()
22765{
1409cd0b
FXC
22766 return 0;
22767}
db9f46a9 22768
1409cd0b 22769_ACEOF
5213506e 22770if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22771 gcc_cv_math_func_ctanf=yes
1409cd0b 22772else
db9f46a9 22773 gcc_cv_math_func_ctanf=no
1409cd0b 22774fi
5213506e
RW
22775rm -f core conftest.err conftest.$ac_objext \
22776 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22777fi
db9f46a9
TG
22778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22779$as_echo "$gcc_cv_math_func_ctanf" >&6; }
22780 if test $gcc_cv_math_func_ctanf = yes; then
f1cdfa01 22781
f38a14ca
TG
22782cat >>confdefs.h <<_ACEOF
22783#define HAVE_CTANF 1
22784_ACEOF
db9f46a9
TG
22785
22786 fi
22787
1409cd0b 22788
1409cd0b 22789
1409cd0b 22790
db9f46a9
TG
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22792$as_echo_n "checking for ctan... " >&6; }
22793if test "${gcc_cv_math_func_ctan+set}" = set; then :
5213506e 22794 $as_echo_n "(cached) " >&6
1409cd0b 22795else
db9f46a9 22796 if test x$gcc_no_link = xyes; then
5213506e 22797 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22798fi
5213506e 22799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22800/* end confdefs.h. */
22801
db9f46a9
TG
22802#ifdef HAVE_COMPLEX_H
22803#include <complex.h>
22804#endif
22805#ifdef HAVE_MATH_H
22806#include <math.h>
1409cd0b 22807#endif
db9f46a9
TG
22808
22809int (*ptr)() = (int (*)())ctan;
22810
1409cd0b
FXC
22811int
22812main ()
22813{
1409cd0b
FXC
22814 return 0;
22815}
db9f46a9 22816
1409cd0b 22817_ACEOF
5213506e 22818if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22819 gcc_cv_math_func_ctan=yes
1409cd0b 22820else
db9f46a9 22821 gcc_cv_math_func_ctan=no
1409cd0b 22822fi
5213506e
RW
22823rm -f core conftest.err conftest.$ac_objext \
22824 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22825fi
db9f46a9
TG
22826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22827$as_echo "$gcc_cv_math_func_ctan" >&6; }
22828 if test $gcc_cv_math_func_ctan = yes; then
f1cdfa01 22829
f38a14ca
TG
22830cat >>confdefs.h <<_ACEOF
22831#define HAVE_CTAN 1
22832_ACEOF
db9f46a9
TG
22833
22834 fi
1409cd0b 22835
1409cd0b 22836
1409cd0b 22837
db9f46a9
TG
22838
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22840$as_echo_n "checking for ctanl... " >&6; }
22841if test "${gcc_cv_math_func_ctanl+set}" = set; then :
5213506e 22842 $as_echo_n "(cached) " >&6
1409cd0b 22843else
db9f46a9 22844 if test x$gcc_no_link = xyes; then
5213506e 22845 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22846fi
5213506e 22847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22848/* end confdefs.h. */
22849
db9f46a9
TG
22850#ifdef HAVE_COMPLEX_H
22851#include <complex.h>
1409cd0b 22852#endif
db9f46a9
TG
22853#ifdef HAVE_MATH_H
22854#include <math.h>
22855#endif
22856
22857int (*ptr)() = (int (*)())ctanl;
22858
1409cd0b
FXC
22859int
22860main ()
22861{
1409cd0b
FXC
22862 return 0;
22863}
db9f46a9 22864
1409cd0b 22865_ACEOF
5213506e 22866if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22867 gcc_cv_math_func_ctanl=yes
1409cd0b 22868else
db9f46a9 22869 gcc_cv_math_func_ctanl=no
1409cd0b 22870fi
5213506e
RW
22871rm -f core conftest.err conftest.$ac_objext \
22872 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22873fi
db9f46a9
TG
22874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22875$as_echo "$gcc_cv_math_func_ctanl" >&6; }
22876 if test $gcc_cv_math_func_ctanl = yes; then
f1cdfa01 22877
f38a14ca
TG
22878cat >>confdefs.h <<_ACEOF
22879#define HAVE_CTANL 1
22880_ACEOF
1409cd0b 22881
db9f46a9 22882 fi
1409cd0b 22883
1409cd0b 22884
db9f46a9
TG
22885
22886
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22888$as_echo_n "checking for tanhf... " >&6; }
22889if test "${gcc_cv_math_func_tanhf+set}" = set; then :
5213506e 22890 $as_echo_n "(cached) " >&6
1409cd0b 22891else
db9f46a9 22892 if test x$gcc_no_link = xyes; then
5213506e 22893 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22894fi
5213506e 22895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22896/* end confdefs.h. */
22897
db9f46a9
TG
22898#ifdef HAVE_COMPLEX_H
22899#include <complex.h>
22900#endif
22901#ifdef HAVE_MATH_H
22902#include <math.h>
1409cd0b 22903#endif
db9f46a9
TG
22904
22905int (*ptr)() = (int (*)())tanhf;
22906
1409cd0b
FXC
22907int
22908main ()
22909{
1409cd0b
FXC
22910 return 0;
22911}
db9f46a9 22912
1409cd0b 22913_ACEOF
5213506e 22914if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22915 gcc_cv_math_func_tanhf=yes
1409cd0b 22916else
db9f46a9 22917 gcc_cv_math_func_tanhf=no
1409cd0b 22918fi
5213506e
RW
22919rm -f core conftest.err conftest.$ac_objext \
22920 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22921fi
db9f46a9
TG
22922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22923$as_echo "$gcc_cv_math_func_tanhf" >&6; }
22924 if test $gcc_cv_math_func_tanhf = yes; then
f1cdfa01 22925
f38a14ca
TG
22926cat >>confdefs.h <<_ACEOF
22927#define HAVE_TANHF 1
22928_ACEOF
db9f46a9
TG
22929
22930 fi
1409cd0b 22931
1409cd0b 22932
1409cd0b 22933
db9f46a9
TG
22934
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22936$as_echo_n "checking for tanh... " >&6; }
22937if test "${gcc_cv_math_func_tanh+set}" = set; then :
5213506e 22938 $as_echo_n "(cached) " >&6
1409cd0b 22939else
db9f46a9 22940 if test x$gcc_no_link = xyes; then
5213506e 22941 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22942fi
5213506e 22943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22944/* end confdefs.h. */
22945
db9f46a9
TG
22946#ifdef HAVE_COMPLEX_H
22947#include <complex.h>
1409cd0b 22948#endif
db9f46a9
TG
22949#ifdef HAVE_MATH_H
22950#include <math.h>
22951#endif
22952
22953int (*ptr)() = (int (*)())tanh;
22954
1409cd0b
FXC
22955int
22956main ()
22957{
1409cd0b
FXC
22958 return 0;
22959}
db9f46a9 22960
1409cd0b 22961_ACEOF
5213506e 22962if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22963 gcc_cv_math_func_tanh=yes
1409cd0b 22964else
db9f46a9 22965 gcc_cv_math_func_tanh=no
1409cd0b 22966fi
5213506e
RW
22967rm -f core conftest.err conftest.$ac_objext \
22968 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22969fi
db9f46a9
TG
22970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22971$as_echo "$gcc_cv_math_func_tanh" >&6; }
22972 if test $gcc_cv_math_func_tanh = yes; then
f1cdfa01 22973
f38a14ca
TG
22974cat >>confdefs.h <<_ACEOF
22975#define HAVE_TANH 1
22976_ACEOF
db9f46a9
TG
22977
22978 fi
22979
1409cd0b 22980
1409cd0b 22981
1409cd0b 22982
db9f46a9
TG
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22984$as_echo_n "checking for tanhl... " >&6; }
22985if test "${gcc_cv_math_func_tanhl+set}" = set; then :
5213506e 22986 $as_echo_n "(cached) " >&6
1409cd0b 22987else
db9f46a9 22988 if test x$gcc_no_link = xyes; then
5213506e 22989 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22990fi
5213506e 22991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22992/* end confdefs.h. */
22993
db9f46a9
TG
22994#ifdef HAVE_COMPLEX_H
22995#include <complex.h>
22996#endif
22997#ifdef HAVE_MATH_H
22998#include <math.h>
1409cd0b 22999#endif
db9f46a9
TG
23000
23001int (*ptr)() = (int (*)())tanhl;
23002
1409cd0b
FXC
23003int
23004main ()
23005{
1409cd0b
FXC
23006 return 0;
23007}
db9f46a9 23008
1409cd0b 23009_ACEOF
5213506e 23010if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23011 gcc_cv_math_func_tanhl=yes
1409cd0b 23012else
db9f46a9 23013 gcc_cv_math_func_tanhl=no
1409cd0b 23014fi
5213506e
RW
23015rm -f core conftest.err conftest.$ac_objext \
23016 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23017fi
db9f46a9
TG
23018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23019$as_echo "$gcc_cv_math_func_tanhl" >&6; }
23020 if test $gcc_cv_math_func_tanhl = yes; then
f1cdfa01 23021
f38a14ca
TG
23022cat >>confdefs.h <<_ACEOF
23023#define HAVE_TANHL 1
23024_ACEOF
db9f46a9
TG
23025
23026 fi
1409cd0b 23027
1409cd0b 23028
1409cd0b 23029
db9f46a9
TG
23030
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23032$as_echo_n "checking for ctanhf... " >&6; }
23033if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
5213506e 23034 $as_echo_n "(cached) " >&6
1409cd0b 23035else
db9f46a9 23036 if test x$gcc_no_link = xyes; then
5213506e 23037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db9f46a9
TG
23038fi
23039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23040/* end confdefs.h. */
23041
23042#ifdef HAVE_COMPLEX_H
23043#include <complex.h>
1409cd0b 23044#endif
db9f46a9
TG
23045#ifdef HAVE_MATH_H
23046#include <math.h>
23047#endif
23048
23049int (*ptr)() = (int (*)())ctanhf;
23050
1409cd0b
FXC
23051int
23052main ()
23053{
1409cd0b
FXC
23054 return 0;
23055}
db9f46a9 23056
1409cd0b 23057_ACEOF
5213506e 23058if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23059 gcc_cv_math_func_ctanhf=yes
1409cd0b 23060else
db9f46a9 23061 gcc_cv_math_func_ctanhf=no
1409cd0b 23062fi
5213506e
RW
23063rm -f core conftest.err conftest.$ac_objext \
23064 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23065fi
db9f46a9
TG
23066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23067$as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23068 if test $gcc_cv_math_func_ctanhf = yes; then
f1cdfa01 23069
f38a14ca
TG
23070cat >>confdefs.h <<_ACEOF
23071#define HAVE_CTANHF 1
23072_ACEOF
1409cd0b 23073
db9f46a9 23074 fi
1409cd0b 23075
1409cd0b 23076
db9f46a9
TG
23077
23078
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23080$as_echo_n "checking for ctanh... " >&6; }
23081if test "${gcc_cv_math_func_ctanh+set}" = set; then :
5213506e 23082 $as_echo_n "(cached) " >&6
1409cd0b 23083else
db9f46a9 23084 if test x$gcc_no_link = xyes; then
5213506e 23085 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23086fi
5213506e 23087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23088/* end confdefs.h. */
23089
db9f46a9
TG
23090#ifdef HAVE_COMPLEX_H
23091#include <complex.h>
23092#endif
23093#ifdef HAVE_MATH_H
23094#include <math.h>
1409cd0b 23095#endif
db9f46a9
TG
23096
23097int (*ptr)() = (int (*)())ctanh;
23098
1409cd0b
FXC
23099int
23100main ()
23101{
5213506e
RW
23102 return 0;
23103}
db9f46a9 23104
5213506e
RW
23105_ACEOF
23106if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23107 gcc_cv_math_func_ctanh=yes
1409cd0b 23108else
db9f46a9 23109 gcc_cv_math_func_ctanh=no
1409cd0b 23110fi
5213506e
RW
23111rm -f core conftest.err conftest.$ac_objext \
23112 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23113fi
db9f46a9
TG
23114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23115$as_echo "$gcc_cv_math_func_ctanh" >&6; }
23116 if test $gcc_cv_math_func_ctanh = yes; then
f1cdfa01 23117
f38a14ca
TG
23118cat >>confdefs.h <<_ACEOF
23119#define HAVE_CTANH 1
23120_ACEOF
db9f46a9
TG
23121
23122 fi
1409cd0b 23123
1409cd0b 23124
1409cd0b 23125
db9f46a9
TG
23126
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23128$as_echo_n "checking for ctanhl... " >&6; }
23129if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
5213506e 23130 $as_echo_n "(cached) " >&6
1409cd0b 23131else
db9f46a9 23132 if test x$gcc_no_link = xyes; then
5213506e 23133 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23134fi
5213506e 23135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23136/* end confdefs.h. */
23137
db9f46a9
TG
23138#ifdef HAVE_COMPLEX_H
23139#include <complex.h>
1409cd0b 23140#endif
db9f46a9
TG
23141#ifdef HAVE_MATH_H
23142#include <math.h>
23143#endif
23144
23145int (*ptr)() = (int (*)())ctanhl;
23146
1409cd0b
FXC
23147int
23148main ()
23149{
1409cd0b
FXC
23150 return 0;
23151}
db9f46a9 23152
1409cd0b 23153_ACEOF
5213506e 23154if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23155 gcc_cv_math_func_ctanhl=yes
1409cd0b 23156else
db9f46a9 23157 gcc_cv_math_func_ctanhl=no
1409cd0b 23158fi
5213506e
RW
23159rm -f core conftest.err conftest.$ac_objext \
23160 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23161fi
db9f46a9
TG
23162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23163$as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23164 if test $gcc_cv_math_func_ctanhl = yes; then
f1cdfa01 23165
f38a14ca
TG
23166cat >>confdefs.h <<_ACEOF
23167#define HAVE_CTANHL 1
23168_ACEOF
db9f46a9
TG
23169
23170 fi
23171
1409cd0b 23172
69a2d125 23173
69a2d125 23174
db9f46a9
TG
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23176$as_echo_n "checking for truncf... " >&6; }
23177if test "${gcc_cv_math_func_truncf+set}" = set; then :
5213506e 23178 $as_echo_n "(cached) " >&6
69a2d125 23179else
db9f46a9 23180 if test x$gcc_no_link = xyes; then
5213506e 23181 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23182fi
5213506e 23183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
23184/* end confdefs.h. */
23185
db9f46a9
TG
23186#ifdef HAVE_COMPLEX_H
23187#include <complex.h>
23188#endif
23189#ifdef HAVE_MATH_H
23190#include <math.h>
69a2d125 23191#endif
db9f46a9
TG
23192
23193int (*ptr)() = (int (*)())truncf;
23194
1409cd0b
FXC
23195int
23196main ()
23197{
1409cd0b
FXC
23198 return 0;
23199}
db9f46a9 23200
1409cd0b 23201_ACEOF
5213506e 23202if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23203 gcc_cv_math_func_truncf=yes
1409cd0b 23204else
db9f46a9 23205 gcc_cv_math_func_truncf=no
1409cd0b 23206fi
5213506e
RW
23207rm -f core conftest.err conftest.$ac_objext \
23208 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23209fi
db9f46a9
TG
23210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23211$as_echo "$gcc_cv_math_func_truncf" >&6; }
23212 if test $gcc_cv_math_func_truncf = yes; then
f1cdfa01 23213
f38a14ca
TG
23214cat >>confdefs.h <<_ACEOF
23215#define HAVE_TRUNCF 1
23216_ACEOF
db9f46a9
TG
23217
23218 fi
1409cd0b 23219
1409cd0b 23220
1409cd0b 23221
db9f46a9
TG
23222
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23224$as_echo_n "checking for trunc... " >&6; }
23225if test "${gcc_cv_math_func_trunc+set}" = set; then :
5213506e 23226 $as_echo_n "(cached) " >&6
1409cd0b 23227else
db9f46a9 23228 if test x$gcc_no_link = xyes; then
5213506e 23229 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23230fi
5213506e 23231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23232/* end confdefs.h. */
23233
db9f46a9
TG
23234#ifdef HAVE_COMPLEX_H
23235#include <complex.h>
1409cd0b 23236#endif
db9f46a9
TG
23237#ifdef HAVE_MATH_H
23238#include <math.h>
23239#endif
23240
23241int (*ptr)() = (int (*)())trunc;
23242
1409cd0b
FXC
23243int
23244main ()
23245{
1409cd0b
FXC
23246 return 0;
23247}
db9f46a9 23248
1409cd0b 23249_ACEOF
5213506e 23250if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23251 gcc_cv_math_func_trunc=yes
1409cd0b 23252else
db9f46a9 23253 gcc_cv_math_func_trunc=no
1409cd0b 23254fi
5213506e
RW
23255rm -f core conftest.err conftest.$ac_objext \
23256 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23257fi
db9f46a9
TG
23258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23259$as_echo "$gcc_cv_math_func_trunc" >&6; }
23260 if test $gcc_cv_math_func_trunc = yes; then
f1cdfa01 23261
f38a14ca
TG
23262cat >>confdefs.h <<_ACEOF
23263#define HAVE_TRUNC 1
23264_ACEOF
1409cd0b 23265
db9f46a9 23266 fi
1409cd0b 23267
1409cd0b 23268
db9f46a9
TG
23269
23270
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23272$as_echo_n "checking for truncl... " >&6; }
23273if test "${gcc_cv_math_func_truncl+set}" = set; then :
5213506e 23274 $as_echo_n "(cached) " >&6
1409cd0b 23275else
db9f46a9 23276 if test x$gcc_no_link = xyes; then
5213506e 23277 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23278fi
5213506e 23279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23280/* end confdefs.h. */
23281
db9f46a9
TG
23282#ifdef HAVE_COMPLEX_H
23283#include <complex.h>
23284#endif
23285#ifdef HAVE_MATH_H
23286#include <math.h>
1409cd0b 23287#endif
db9f46a9
TG
23288
23289int (*ptr)() = (int (*)())truncl;
23290
1409cd0b
FXC
23291int
23292main ()
23293{
1409cd0b
FXC
23294 return 0;
23295}
db9f46a9 23296
1409cd0b 23297_ACEOF
5213506e 23298if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23299 gcc_cv_math_func_truncl=yes
1409cd0b 23300else
db9f46a9 23301 gcc_cv_math_func_truncl=no
1409cd0b 23302fi
5213506e
RW
23303rm -f core conftest.err conftest.$ac_objext \
23304 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23305fi
db9f46a9
TG
23306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23307$as_echo "$gcc_cv_math_func_truncl" >&6; }
23308 if test $gcc_cv_math_func_truncl = yes; then
f1cdfa01 23309
f38a14ca
TG
23310cat >>confdefs.h <<_ACEOF
23311#define HAVE_TRUNCL 1
23312_ACEOF
db9f46a9
TG
23313
23314 fi
1409cd0b 23315
1409cd0b 23316
1409cd0b 23317
db9f46a9
TG
23318
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23320$as_echo_n "checking for erff... " >&6; }
23321if test "${gcc_cv_math_func_erff+set}" = set; then :
5213506e 23322 $as_echo_n "(cached) " >&6
1409cd0b 23323else
db9f46a9 23324 if test x$gcc_no_link = xyes; then
5213506e 23325 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23326fi
5213506e 23327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23328/* end confdefs.h. */
23329
db9f46a9
TG
23330#ifdef HAVE_COMPLEX_H
23331#include <complex.h>
1409cd0b 23332#endif
db9f46a9
TG
23333#ifdef HAVE_MATH_H
23334#include <math.h>
23335#endif
23336
23337int (*ptr)() = (int (*)())erff;
23338
1409cd0b
FXC
23339int
23340main ()
23341{
1409cd0b
FXC
23342 return 0;
23343}
db9f46a9 23344
1409cd0b 23345_ACEOF
5213506e 23346if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23347 gcc_cv_math_func_erff=yes
1409cd0b 23348else
db9f46a9 23349 gcc_cv_math_func_erff=no
1409cd0b 23350fi
5213506e
RW
23351rm -f core conftest.err conftest.$ac_objext \
23352 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23353fi
db9f46a9
TG
23354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23355$as_echo "$gcc_cv_math_func_erff" >&6; }
23356 if test $gcc_cv_math_func_erff = yes; then
f1cdfa01 23357
f38a14ca
TG
23358cat >>confdefs.h <<_ACEOF
23359#define HAVE_ERFF 1
23360_ACEOF
db9f46a9
TG
23361
23362 fi
23363
1409cd0b 23364
1409cd0b 23365
1409cd0b 23366
db9f46a9
TG
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23368$as_echo_n "checking for erf... " >&6; }
23369if test "${gcc_cv_math_func_erf+set}" = set; then :
5213506e 23370 $as_echo_n "(cached) " >&6
1409cd0b 23371else
db9f46a9 23372 if test x$gcc_no_link = xyes; then
5213506e 23373 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23374fi
5213506e 23375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23376/* end confdefs.h. */
23377
db9f46a9
TG
23378#ifdef HAVE_COMPLEX_H
23379#include <complex.h>
23380#endif
23381#ifdef HAVE_MATH_H
23382#include <math.h>
1409cd0b 23383#endif
db9f46a9
TG
23384
23385int (*ptr)() = (int (*)())erf;
23386
1409cd0b
FXC
23387int
23388main ()
23389{
1409cd0b
FXC
23390 return 0;
23391}
db9f46a9 23392
1409cd0b 23393_ACEOF
5213506e 23394if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23395 gcc_cv_math_func_erf=yes
1409cd0b 23396else
db9f46a9 23397 gcc_cv_math_func_erf=no
1409cd0b 23398fi
5213506e
RW
23399rm -f core conftest.err conftest.$ac_objext \
23400 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23401fi
db9f46a9
TG
23402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23403$as_echo "$gcc_cv_math_func_erf" >&6; }
23404 if test $gcc_cv_math_func_erf = yes; then
f1cdfa01 23405
f38a14ca
TG
23406cat >>confdefs.h <<_ACEOF
23407#define HAVE_ERF 1
23408_ACEOF
db9f46a9
TG
23409
23410 fi
1409cd0b 23411
1409cd0b 23412
1409cd0b 23413
db9f46a9 23414
db9f46a9
TG
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23416$as_echo_n "checking for erfcf... " >&6; }
23417if test "${gcc_cv_math_func_erfcf+set}" = set; then :
5213506e 23418 $as_echo_n "(cached) " >&6
1409cd0b 23419else
db9f46a9 23420 if test x$gcc_no_link = xyes; then
5213506e 23421 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23422fi
5213506e 23423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23424/* end confdefs.h. */
23425
db9f46a9
TG
23426#ifdef HAVE_COMPLEX_H
23427#include <complex.h>
23428#endif
23429#ifdef HAVE_MATH_H
23430#include <math.h>
1409cd0b 23431#endif
db9f46a9
TG
23432
23433int (*ptr)() = (int (*)())erfcf;
23434
1409cd0b
FXC
23435int
23436main ()
23437{
1409cd0b
FXC
23438 return 0;
23439}
db9f46a9 23440
1409cd0b 23441_ACEOF
5213506e 23442if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23443 gcc_cv_math_func_erfcf=yes
1409cd0b 23444else
db9f46a9 23445 gcc_cv_math_func_erfcf=no
1409cd0b 23446fi
5213506e
RW
23447rm -f core conftest.err conftest.$ac_objext \
23448 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23449fi
db9f46a9
TG
23450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23451$as_echo "$gcc_cv_math_func_erfcf" >&6; }
23452 if test $gcc_cv_math_func_erfcf = yes; then
f1cdfa01 23453
f38a14ca
TG
23454cat >>confdefs.h <<_ACEOF
23455#define HAVE_ERFCF 1
23456_ACEOF
db9f46a9
TG
23457
23458 fi
1409cd0b 23459
1409cd0b 23460
1409cd0b 23461
db9f46a9
TG
23462
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23464$as_echo_n "checking for erfc... " >&6; }
23465if test "${gcc_cv_math_func_erfc+set}" = set; then :
5213506e 23466 $as_echo_n "(cached) " >&6
1409cd0b 23467else
db9f46a9 23468 if test x$gcc_no_link = xyes; then
5213506e 23469 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23470fi
5213506e 23471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23472/* end confdefs.h. */
23473
db9f46a9
TG
23474#ifdef HAVE_COMPLEX_H
23475#include <complex.h>
1409cd0b 23476#endif
db9f46a9
TG
23477#ifdef HAVE_MATH_H
23478#include <math.h>
23479#endif
23480
23481int (*ptr)() = (int (*)())erfc;
23482
69a2d125
EB
23483int
23484main ()
23485{
69a2d125
EB
23486 return 0;
23487}
db9f46a9 23488
69a2d125 23489_ACEOF
5213506e 23490if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23491 gcc_cv_math_func_erfc=yes
69a2d125 23492else
db9f46a9 23493 gcc_cv_math_func_erfc=no
69a2d125 23494fi
5213506e
RW
23495rm -f core conftest.err conftest.$ac_objext \
23496 conftest$ac_exeext conftest.$ac_ext
69a2d125 23497fi
db9f46a9
TG
23498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23499$as_echo "$gcc_cv_math_func_erfc" >&6; }
23500 if test $gcc_cv_math_func_erfc = yes; then
f1cdfa01 23501
f38a14ca
TG
23502cat >>confdefs.h <<_ACEOF
23503#define HAVE_ERFC 1
23504_ACEOF
db9f46a9
TG
23505
23506 fi
23507
69a2d125 23508
69a2d125 23509
69a2d125 23510
db9f46a9
TG
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23512$as_echo_n "checking for erfcl... " >&6; }
23513if test "${gcc_cv_math_func_erfcl+set}" = set; then :
5213506e 23514 $as_echo_n "(cached) " >&6
e8525382 23515else
db9f46a9 23516 if test x$gcc_no_link = xyes; then
5213506e 23517 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23518fi
5213506e 23519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23520/* end confdefs.h. */
23521
db9f46a9
TG
23522#ifdef HAVE_COMPLEX_H
23523#include <complex.h>
23524#endif
23525#ifdef HAVE_MATH_H
23526#include <math.h>
e8525382 23527#endif
db9f46a9
TG
23528
23529int (*ptr)() = (int (*)())erfcl;
23530
e8525382
SK
23531int
23532main ()
23533{
e8525382
SK
23534 return 0;
23535}
db9f46a9 23536
e8525382 23537_ACEOF
5213506e 23538if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23539 gcc_cv_math_func_erfcl=yes
e8525382 23540else
db9f46a9 23541 gcc_cv_math_func_erfcl=no
e8525382 23542fi
5213506e
RW
23543rm -f core conftest.err conftest.$ac_objext \
23544 conftest$ac_exeext conftest.$ac_ext
e8525382 23545fi
db9f46a9
TG
23546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23547$as_echo "$gcc_cv_math_func_erfcl" >&6; }
23548 if test $gcc_cv_math_func_erfcl = yes; then
f1cdfa01 23549
f38a14ca
TG
23550cat >>confdefs.h <<_ACEOF
23551#define HAVE_ERFCL 1
23552_ACEOF
db9f46a9
TG
23553
23554 fi
e8525382 23555
e8525382 23556
e8525382 23557
db9f46a9
TG
23558
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23560$as_echo_n "checking for j0f... " >&6; }
23561if test "${gcc_cv_math_func_j0f+set}" = set; then :
5213506e 23562 $as_echo_n "(cached) " >&6
e8525382 23563else
db9f46a9 23564 if test x$gcc_no_link = xyes; then
5213506e 23565 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23566fi
5213506e 23567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23568/* end confdefs.h. */
23569
db9f46a9
TG
23570#ifdef HAVE_COMPLEX_H
23571#include <complex.h>
e8525382 23572#endif
db9f46a9
TG
23573#ifdef HAVE_MATH_H
23574#include <math.h>
23575#endif
23576
23577int (*ptr)() = (int (*)())j0f;
23578
e8525382
SK
23579int
23580main ()
23581{
e8525382
SK
23582 return 0;
23583}
db9f46a9 23584
e8525382 23585_ACEOF
5213506e 23586if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23587 gcc_cv_math_func_j0f=yes
e8525382 23588else
db9f46a9 23589 gcc_cv_math_func_j0f=no
1409cd0b 23590fi
5213506e
RW
23591rm -f core conftest.err conftest.$ac_objext \
23592 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23593fi
db9f46a9
TG
23594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23595$as_echo "$gcc_cv_math_func_j0f" >&6; }
23596 if test $gcc_cv_math_func_j0f = yes; then
f1cdfa01 23597
f38a14ca
TG
23598cat >>confdefs.h <<_ACEOF
23599#define HAVE_J0F 1
23600_ACEOF
1409cd0b 23601
db9f46a9 23602 fi
1409cd0b 23603
1409cd0b 23604
db9f46a9
TG
23605
23606
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23608$as_echo_n "checking for j0... " >&6; }
23609if test "${gcc_cv_math_func_j0+set}" = set; then :
5213506e 23610 $as_echo_n "(cached) " >&6
1409cd0b 23611else
db9f46a9 23612 if test x$gcc_no_link = xyes; then
5213506e 23613 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23614fi
5213506e 23615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23616/* end confdefs.h. */
23617
db9f46a9
TG
23618#ifdef HAVE_COMPLEX_H
23619#include <complex.h>
23620#endif
23621#ifdef HAVE_MATH_H
23622#include <math.h>
1409cd0b 23623#endif
db9f46a9
TG
23624
23625int (*ptr)() = (int (*)())j0;
23626
1409cd0b
FXC
23627int
23628main ()
23629{
1409cd0b
FXC
23630 return 0;
23631}
db9f46a9 23632
1409cd0b 23633_ACEOF
5213506e 23634if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23635 gcc_cv_math_func_j0=yes
1409cd0b 23636else
db9f46a9 23637 gcc_cv_math_func_j0=no
1409cd0b 23638fi
5213506e
RW
23639rm -f core conftest.err conftest.$ac_objext \
23640 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23641fi
db9f46a9
TG
23642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23643$as_echo "$gcc_cv_math_func_j0" >&6; }
23644 if test $gcc_cv_math_func_j0 = yes; then
f1cdfa01 23645
f38a14ca
TG
23646cat >>confdefs.h <<_ACEOF
23647#define HAVE_J0 1
23648_ACEOF
db9f46a9
TG
23649
23650 fi
1409cd0b 23651
1409cd0b 23652
1409cd0b 23653
db9f46a9 23654
db9f46a9
TG
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23656$as_echo_n "checking for j1f... " >&6; }
23657if test "${gcc_cv_math_func_j1f+set}" = set; then :
5213506e 23658 $as_echo_n "(cached) " >&6
1409cd0b 23659else
db9f46a9 23660 if test x$gcc_no_link = xyes; then
5213506e 23661 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23662fi
5213506e 23663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23664/* end confdefs.h. */
23665
db9f46a9
TG
23666#ifdef HAVE_COMPLEX_H
23667#include <complex.h>
23668#endif
23669#ifdef HAVE_MATH_H
23670#include <math.h>
1409cd0b 23671#endif
db9f46a9
TG
23672
23673int (*ptr)() = (int (*)())j1f;
23674
1409cd0b
FXC
23675int
23676main ()
23677{
1409cd0b
FXC
23678 return 0;
23679}
db9f46a9 23680
1409cd0b 23681_ACEOF
5213506e 23682if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23683 gcc_cv_math_func_j1f=yes
1409cd0b 23684else
db9f46a9 23685 gcc_cv_math_func_j1f=no
e8525382 23686fi
5213506e
RW
23687rm -f core conftest.err conftest.$ac_objext \
23688 conftest$ac_exeext conftest.$ac_ext
e8525382 23689fi
db9f46a9
TG
23690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23691$as_echo "$gcc_cv_math_func_j1f" >&6; }
23692 if test $gcc_cv_math_func_j1f = yes; then
f1cdfa01 23693
f38a14ca
TG
23694cat >>confdefs.h <<_ACEOF
23695#define HAVE_J1F 1
23696_ACEOF
db9f46a9
TG
23697
23698 fi
e8525382 23699
e8525382 23700
e8525382 23701
db9f46a9
TG
23702
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23704$as_echo_n "checking for j1... " >&6; }
23705if test "${gcc_cv_math_func_j1+set}" = set; then :
5213506e 23706 $as_echo_n "(cached) " >&6
e8525382 23707else
db9f46a9 23708 if test x$gcc_no_link = xyes; then
5213506e 23709 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23710fi
5213506e 23711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23712/* end confdefs.h. */
23713
db9f46a9
TG
23714#ifdef HAVE_COMPLEX_H
23715#include <complex.h>
e8525382 23716#endif
db9f46a9
TG
23717#ifdef HAVE_MATH_H
23718#include <math.h>
23719#endif
23720
23721int (*ptr)() = (int (*)())j1;
23722
e8525382
SK
23723int
23724main ()
23725{
e8525382
SK
23726 return 0;
23727}
db9f46a9 23728
e8525382 23729_ACEOF
5213506e 23730if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23731 gcc_cv_math_func_j1=yes
e8525382 23732else
db9f46a9 23733 gcc_cv_math_func_j1=no
e8525382 23734fi
5213506e
RW
23735rm -f core conftest.err conftest.$ac_objext \
23736 conftest$ac_exeext conftest.$ac_ext
e8525382 23737fi
db9f46a9
TG
23738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23739$as_echo "$gcc_cv_math_func_j1" >&6; }
23740 if test $gcc_cv_math_func_j1 = yes; then
f1cdfa01 23741
f38a14ca
TG
23742cat >>confdefs.h <<_ACEOF
23743#define HAVE_J1 1
23744_ACEOF
e8525382 23745
db9f46a9 23746 fi
e8525382 23747
e8525382 23748
db9f46a9
TG
23749
23750
db9f46a9
TG
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23752$as_echo_n "checking for jnf... " >&6; }
23753if test "${gcc_cv_math_func_jnf+set}" = set; then :
5213506e 23754 $as_echo_n "(cached) " >&6
e8525382 23755else
db9f46a9 23756 if test x$gcc_no_link = xyes; then
5213506e 23757 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23758fi
5213506e 23759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23760/* end confdefs.h. */
23761
db9f46a9
TG
23762#ifdef HAVE_COMPLEX_H
23763#include <complex.h>
e8525382 23764#endif
db9f46a9
TG
23765#ifdef HAVE_MATH_H
23766#include <math.h>
23767#endif
23768
23769int (*ptr)() = (int (*)())jnf;
23770
e8525382
SK
23771int
23772main ()
23773{
e8525382
SK
23774 return 0;
23775}
db9f46a9 23776
e8525382 23777_ACEOF
5213506e 23778if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23779 gcc_cv_math_func_jnf=yes
e8525382 23780else
db9f46a9 23781 gcc_cv_math_func_jnf=no
e8525382 23782fi
5213506e
RW
23783rm -f core conftest.err conftest.$ac_objext \
23784 conftest$ac_exeext conftest.$ac_ext
e8525382 23785fi
db9f46a9
TG
23786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23787$as_echo "$gcc_cv_math_func_jnf" >&6; }
23788 if test $gcc_cv_math_func_jnf = yes; then
f1cdfa01 23789
f38a14ca
TG
23790cat >>confdefs.h <<_ACEOF
23791#define HAVE_JNF 1
23792_ACEOF
db9f46a9
TG
23793
23794 fi
23795
e8525382 23796
e8525382 23797
e8525382 23798
db9f46a9
TG
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23800$as_echo_n "checking for jn... " >&6; }
23801if test "${gcc_cv_math_func_jn+set}" = set; then :
5213506e 23802 $as_echo_n "(cached) " >&6
e8525382 23803else
db9f46a9 23804 if test x$gcc_no_link = xyes; then
5213506e 23805 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23806fi
5213506e 23807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23808/* end confdefs.h. */
23809
db9f46a9
TG
23810#ifdef HAVE_COMPLEX_H
23811#include <complex.h>
23812#endif
23813#ifdef HAVE_MATH_H
23814#include <math.h>
e8525382 23815#endif
db9f46a9
TG
23816
23817int (*ptr)() = (int (*)())jn;
23818
e8525382
SK
23819int
23820main ()
23821{
e8525382
SK
23822 return 0;
23823}
db9f46a9 23824
e8525382 23825_ACEOF
5213506e 23826if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23827 gcc_cv_math_func_jn=yes
e8525382 23828else
db9f46a9 23829 gcc_cv_math_func_jn=no
e8525382 23830fi
5213506e
RW
23831rm -f core conftest.err conftest.$ac_objext \
23832 conftest$ac_exeext conftest.$ac_ext
e8525382 23833fi
db9f46a9
TG
23834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23835$as_echo "$gcc_cv_math_func_jn" >&6; }
23836 if test $gcc_cv_math_func_jn = yes; then
f1cdfa01 23837
f38a14ca
TG
23838cat >>confdefs.h <<_ACEOF
23839#define HAVE_JN 1
23840_ACEOF
db9f46a9
TG
23841
23842 fi
e8525382 23843
e8525382 23844
e8525382 23845
db9f46a9
TG
23846
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23848$as_echo_n "checking for jnl... " >&6; }
23849if test "${gcc_cv_math_func_jnl+set}" = set; then :
5213506e 23850 $as_echo_n "(cached) " >&6
e8525382 23851else
db9f46a9 23852 if test x$gcc_no_link = xyes; then
5213506e 23853 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23854fi
5213506e 23855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23856/* end confdefs.h. */
23857
db9f46a9
TG
23858#ifdef HAVE_COMPLEX_H
23859#include <complex.h>
e8525382 23860#endif
db9f46a9
TG
23861#ifdef HAVE_MATH_H
23862#include <math.h>
23863#endif
23864
23865int (*ptr)() = (int (*)())jnl;
23866
e8525382
SK
23867int
23868main ()
23869{
e8525382
SK
23870 return 0;
23871}
db9f46a9 23872
e8525382 23873_ACEOF
5213506e 23874if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23875 gcc_cv_math_func_jnl=yes
e8525382 23876else
db9f46a9 23877 gcc_cv_math_func_jnl=no
e8525382 23878fi
5213506e
RW
23879rm -f core conftest.err conftest.$ac_objext \
23880 conftest$ac_exeext conftest.$ac_ext
e8525382 23881fi
db9f46a9
TG
23882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23883$as_echo "$gcc_cv_math_func_jnl" >&6; }
23884 if test $gcc_cv_math_func_jnl = yes; then
f1cdfa01 23885
f38a14ca
TG
23886cat >>confdefs.h <<_ACEOF
23887#define HAVE_JNL 1
23888_ACEOF
e8525382 23889
db9f46a9 23890 fi
e8525382 23891
e8525382 23892
db9f46a9
TG
23893
23894
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23896$as_echo_n "checking for y0f... " >&6; }
23897if test "${gcc_cv_math_func_y0f+set}" = set; then :
5213506e 23898 $as_echo_n "(cached) " >&6
e8525382 23899else
db9f46a9 23900 if test x$gcc_no_link = xyes; then
5213506e 23901 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23902fi
5213506e 23903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23904/* end confdefs.h. */
23905
db9f46a9
TG
23906#ifdef HAVE_COMPLEX_H
23907#include <complex.h>
23908#endif
23909#ifdef HAVE_MATH_H
23910#include <math.h>
e8525382 23911#endif
db9f46a9
TG
23912
23913int (*ptr)() = (int (*)())y0f;
23914
e8525382
SK
23915int
23916main ()
23917{
e8525382
SK
23918 return 0;
23919}
db9f46a9 23920
e8525382 23921_ACEOF
5213506e 23922if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23923 gcc_cv_math_func_y0f=yes
e8525382 23924else
db9f46a9 23925 gcc_cv_math_func_y0f=no
e8525382 23926fi
5213506e
RW
23927rm -f core conftest.err conftest.$ac_objext \
23928 conftest$ac_exeext conftest.$ac_ext
e8525382 23929fi
db9f46a9
TG
23930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23931$as_echo "$gcc_cv_math_func_y0f" >&6; }
23932 if test $gcc_cv_math_func_y0f = yes; then
f1cdfa01 23933
f38a14ca
TG
23934cat >>confdefs.h <<_ACEOF
23935#define HAVE_Y0F 1
23936_ACEOF
db9f46a9
TG
23937
23938 fi
e8525382 23939
e8525382 23940
e8525382 23941
db9f46a9
TG
23942
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23944$as_echo_n "checking for y0... " >&6; }
23945if test "${gcc_cv_math_func_y0+set}" = set; then :
5213506e 23946 $as_echo_n "(cached) " >&6
e8525382 23947else
db9f46a9 23948 if test x$gcc_no_link = xyes; then
5213506e 23949 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23950fi
5213506e 23951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23952/* end confdefs.h. */
23953
db9f46a9
TG
23954#ifdef HAVE_COMPLEX_H
23955#include <complex.h>
e8525382 23956#endif
db9f46a9
TG
23957#ifdef HAVE_MATH_H
23958#include <math.h>
23959#endif
23960
23961int (*ptr)() = (int (*)())y0;
23962
e8525382
SK
23963int
23964main ()
23965{
e8525382
SK
23966 return 0;
23967}
db9f46a9 23968
e8525382 23969_ACEOF
5213506e 23970if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23971 gcc_cv_math_func_y0=yes
e8525382 23972else
db9f46a9 23973 gcc_cv_math_func_y0=no
e8525382 23974fi
5213506e
RW
23975rm -f core conftest.err conftest.$ac_objext \
23976 conftest$ac_exeext conftest.$ac_ext
e8525382 23977fi
db9f46a9
TG
23978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23979$as_echo "$gcc_cv_math_func_y0" >&6; }
23980 if test $gcc_cv_math_func_y0 = yes; then
f1cdfa01 23981
f38a14ca
TG
23982cat >>confdefs.h <<_ACEOF
23983#define HAVE_Y0 1
23984_ACEOF
db9f46a9
TG
23985
23986 fi
23987
e8525382 23988
e8525382 23989
e8525382 23990
db9f46a9
TG
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
23992$as_echo_n "checking for y1f... " >&6; }
23993if test "${gcc_cv_math_func_y1f+set}" = set; then :
5213506e 23994 $as_echo_n "(cached) " >&6
e8525382 23995else
db9f46a9 23996 if test x$gcc_no_link = xyes; then
5213506e 23997 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23998fi
5213506e 23999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24000/* end confdefs.h. */
24001
db9f46a9
TG
24002#ifdef HAVE_COMPLEX_H
24003#include <complex.h>
e8525382 24004#endif
db9f46a9
TG
24005#ifdef HAVE_MATH_H
24006#include <math.h>
24007#endif
24008
24009int (*ptr)() = (int (*)())y1f;
24010
e8525382
SK
24011int
24012main ()
24013{
e8525382
SK
24014 return 0;
24015}
db9f46a9 24016
e8525382 24017_ACEOF
5213506e 24018if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24019 gcc_cv_math_func_y1f=yes
e8525382 24020else
db9f46a9 24021 gcc_cv_math_func_y1f=no
e8525382 24022fi
5213506e
RW
24023rm -f core conftest.err conftest.$ac_objext \
24024 conftest$ac_exeext conftest.$ac_ext
e8525382 24025fi
db9f46a9
TG
24026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24027$as_echo "$gcc_cv_math_func_y1f" >&6; }
24028 if test $gcc_cv_math_func_y1f = yes; then
f1cdfa01 24029
f38a14ca
TG
24030cat >>confdefs.h <<_ACEOF
24031#define HAVE_Y1F 1
24032_ACEOF
e8525382 24033
db9f46a9 24034 fi
e8525382 24035
e8525382 24036
db9f46a9
TG
24037
24038
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24040$as_echo_n "checking for y1... " >&6; }
24041if test "${gcc_cv_math_func_y1+set}" = set; then :
5213506e 24042 $as_echo_n "(cached) " >&6
e8525382 24043else
db9f46a9 24044 if test x$gcc_no_link = xyes; then
5213506e 24045 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24046fi
5213506e 24047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24048/* end confdefs.h. */
24049
db9f46a9
TG
24050#ifdef HAVE_COMPLEX_H
24051#include <complex.h>
24052#endif
24053#ifdef HAVE_MATH_H
24054#include <math.h>
e8525382 24055#endif
db9f46a9
TG
24056
24057int (*ptr)() = (int (*)())y1;
24058
e8525382
SK
24059int
24060main ()
24061{
e8525382
SK
24062 return 0;
24063}
db9f46a9 24064
e8525382 24065_ACEOF
5213506e 24066if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24067 gcc_cv_math_func_y1=yes
e8525382 24068else
db9f46a9 24069 gcc_cv_math_func_y1=no
e8525382 24070fi
5213506e
RW
24071rm -f core conftest.err conftest.$ac_objext \
24072 conftest$ac_exeext conftest.$ac_ext
e8525382 24073fi
db9f46a9
TG
24074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24075$as_echo "$gcc_cv_math_func_y1" >&6; }
24076 if test $gcc_cv_math_func_y1 = yes; then
f1cdfa01 24077
f38a14ca
TG
24078cat >>confdefs.h <<_ACEOF
24079#define HAVE_Y1 1
24080_ACEOF
db9f46a9
TG
24081
24082 fi
e8525382 24083
e8525382 24084
e8525382 24085
db9f46a9 24086
db9f46a9
TG
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24088$as_echo_n "checking for ynf... " >&6; }
24089if test "${gcc_cv_math_func_ynf+set}" = set; then :
5213506e 24090 $as_echo_n "(cached) " >&6
db9f46a9
TG
24091else
24092 if test x$gcc_no_link = xyes; then
5213506e 24093 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24094fi
5213506e 24095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24096/* end confdefs.h. */
24097
db9f46a9
TG
24098#ifdef HAVE_COMPLEX_H
24099#include <complex.h>
24100#endif
24101#ifdef HAVE_MATH_H
24102#include <math.h>
e8525382 24103#endif
db9f46a9
TG
24104
24105int (*ptr)() = (int (*)())ynf;
24106
e8525382
SK
24107int
24108main ()
24109{
e8525382
SK
24110 return 0;
24111}
db9f46a9 24112
e8525382 24113_ACEOF
5213506e 24114if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24115 gcc_cv_math_func_ynf=yes
e8525382 24116else
db9f46a9 24117 gcc_cv_math_func_ynf=no
e8525382 24118fi
5213506e
RW
24119rm -f core conftest.err conftest.$ac_objext \
24120 conftest$ac_exeext conftest.$ac_ext
e8525382 24121fi
db9f46a9
TG
24122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24123$as_echo "$gcc_cv_math_func_ynf" >&6; }
24124 if test $gcc_cv_math_func_ynf = yes; then
f1cdfa01 24125
f38a14ca
TG
24126cat >>confdefs.h <<_ACEOF
24127#define HAVE_YNF 1
24128_ACEOF
db9f46a9
TG
24129
24130 fi
e8525382 24131
e8525382 24132
e8525382 24133
db9f46a9
TG
24134
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24136$as_echo_n "checking for yn... " >&6; }
24137if test "${gcc_cv_math_func_yn+set}" = set; then :
5213506e 24138 $as_echo_n "(cached) " >&6
e8525382 24139else
db9f46a9 24140 if test x$gcc_no_link = xyes; then
5213506e 24141 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24142fi
5213506e 24143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24144/* end confdefs.h. */
24145
db9f46a9
TG
24146#ifdef HAVE_COMPLEX_H
24147#include <complex.h>
e8525382 24148#endif
db9f46a9
TG
24149#ifdef HAVE_MATH_H
24150#include <math.h>
24151#endif
24152
24153int (*ptr)() = (int (*)())yn;
24154
e8525382
SK
24155int
24156main ()
24157{
e8525382
SK
24158 return 0;
24159}
db9f46a9 24160
e8525382 24161_ACEOF
5213506e 24162if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24163 gcc_cv_math_func_yn=yes
e8525382 24164else
db9f46a9 24165 gcc_cv_math_func_yn=no
e8525382 24166fi
5213506e
RW
24167rm -f core conftest.err conftest.$ac_objext \
24168 conftest$ac_exeext conftest.$ac_ext
e8525382 24169fi
db9f46a9
TG
24170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24171$as_echo "$gcc_cv_math_func_yn" >&6; }
24172 if test $gcc_cv_math_func_yn = yes; then
f1cdfa01 24173
f38a14ca
TG
24174cat >>confdefs.h <<_ACEOF
24175#define HAVE_YN 1
24176_ACEOF
db9f46a9
TG
24177
24178 fi
24179
e8525382 24180
e8525382 24181
e8525382 24182
db9f46a9
TG
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24184$as_echo_n "checking for ynl... " >&6; }
24185if test "${gcc_cv_math_func_ynl+set}" = set; then :
5213506e 24186 $as_echo_n "(cached) " >&6
e8525382 24187else
db9f46a9 24188 if test x$gcc_no_link = xyes; then
5213506e 24189 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24190fi
5213506e 24191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24192/* end confdefs.h. */
24193
db9f46a9
TG
24194#ifdef HAVE_COMPLEX_H
24195#include <complex.h>
24196#endif
24197#ifdef HAVE_MATH_H
24198#include <math.h>
e8525382 24199#endif
db9f46a9
TG
24200
24201int (*ptr)() = (int (*)())ynl;
24202
e8525382
SK
24203int
24204main ()
24205{
e8525382
SK
24206 return 0;
24207}
db9f46a9 24208
e8525382 24209_ACEOF
5213506e 24210if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24211 gcc_cv_math_func_ynl=yes
e8525382 24212else
db9f46a9 24213 gcc_cv_math_func_ynl=no
e8525382 24214fi
5213506e
RW
24215rm -f core conftest.err conftest.$ac_objext \
24216 conftest$ac_exeext conftest.$ac_ext
e8525382 24217fi
db9f46a9
TG
24218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24219$as_echo "$gcc_cv_math_func_ynl" >&6; }
24220 if test $gcc_cv_math_func_ynl = yes; then
f1cdfa01 24221
f38a14ca
TG
24222cat >>confdefs.h <<_ACEOF
24223#define HAVE_YNL 1
24224_ACEOF
db9f46a9
TG
24225
24226 fi
e8525382 24227
e8525382 24228
e8525382 24229
db9f46a9
TG
24230
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24232$as_echo_n "checking for tgamma... " >&6; }
24233if test "${gcc_cv_math_func_tgamma+set}" = set; then :
5213506e 24234 $as_echo_n "(cached) " >&6
fb0a0e15 24235else
db9f46a9 24236 if test x$gcc_no_link = xyes; then
5213506e 24237 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24238fi
5213506e 24239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24240/* end confdefs.h. */
24241
db9f46a9
TG
24242#ifdef HAVE_COMPLEX_H
24243#include <complex.h>
fb0a0e15 24244#endif
db9f46a9
TG
24245#ifdef HAVE_MATH_H
24246#include <math.h>
24247#endif
24248
24249int (*ptr)() = (int (*)())tgamma;
24250
fb0a0e15
FXC
24251int
24252main ()
24253{
fb0a0e15
FXC
24254 return 0;
24255}
db9f46a9 24256
fb0a0e15 24257_ACEOF
5213506e 24258if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24259 gcc_cv_math_func_tgamma=yes
fb0a0e15 24260else
db9f46a9 24261 gcc_cv_math_func_tgamma=no
fb0a0e15 24262fi
5213506e
RW
24263rm -f core conftest.err conftest.$ac_objext \
24264 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24265fi
db9f46a9
TG
24266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24267$as_echo "$gcc_cv_math_func_tgamma" >&6; }
24268 if test $gcc_cv_math_func_tgamma = yes; then
f1cdfa01 24269
f38a14ca
TG
24270cat >>confdefs.h <<_ACEOF
24271#define HAVE_TGAMMA 1
24272_ACEOF
fb0a0e15 24273
db9f46a9 24274 fi
fb0a0e15 24275
fb0a0e15 24276
db9f46a9
TG
24277
24278
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24280$as_echo_n "checking for tgammaf... " >&6; }
24281if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
5213506e 24282 $as_echo_n "(cached) " >&6
fb0a0e15 24283else
db9f46a9 24284 if test x$gcc_no_link = xyes; then
5213506e 24285 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24286fi
5213506e 24287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24288/* end confdefs.h. */
24289
db9f46a9
TG
24290#ifdef HAVE_COMPLEX_H
24291#include <complex.h>
24292#endif
24293#ifdef HAVE_MATH_H
24294#include <math.h>
fb0a0e15 24295#endif
db9f46a9
TG
24296
24297int (*ptr)() = (int (*)())tgammaf;
24298
fb0a0e15
FXC
24299int
24300main ()
24301{
fb0a0e15
FXC
24302 return 0;
24303}
db9f46a9 24304
fb0a0e15 24305_ACEOF
5213506e 24306if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24307 gcc_cv_math_func_tgammaf=yes
fb0a0e15 24308else
db9f46a9 24309 gcc_cv_math_func_tgammaf=no
fb0a0e15 24310fi
5213506e
RW
24311rm -f core conftest.err conftest.$ac_objext \
24312 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24313fi
db9f46a9
TG
24314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24315$as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24316 if test $gcc_cv_math_func_tgammaf = yes; then
f1cdfa01 24317
f38a14ca
TG
24318cat >>confdefs.h <<_ACEOF
24319#define HAVE_TGAMMAF 1
24320_ACEOF
db9f46a9
TG
24321
24322 fi
fb0a0e15 24323
fb0a0e15 24324
fb0a0e15 24325
db9f46a9 24326
db9f46a9
TG
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24328$as_echo_n "checking for lgamma... " >&6; }
24329if test "${gcc_cv_math_func_lgamma+set}" = set; then :
5213506e 24330 $as_echo_n "(cached) " >&6
fb0a0e15 24331else
db9f46a9 24332 if test x$gcc_no_link = xyes; then
5213506e 24333 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24334fi
5213506e 24335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24336/* end confdefs.h. */
24337
db9f46a9
TG
24338#ifdef HAVE_COMPLEX_H
24339#include <complex.h>
24340#endif
24341#ifdef HAVE_MATH_H
24342#include <math.h>
fb0a0e15 24343#endif
db9f46a9
TG
24344
24345int (*ptr)() = (int (*)())lgamma;
24346
fb0a0e15
FXC
24347int
24348main ()
24349{
fb0a0e15
FXC
24350 return 0;
24351}
db9f46a9 24352
fb0a0e15 24353_ACEOF
5213506e 24354if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24355 gcc_cv_math_func_lgamma=yes
fb0a0e15 24356else
db9f46a9 24357 gcc_cv_math_func_lgamma=no
fb0a0e15 24358fi
5213506e
RW
24359rm -f core conftest.err conftest.$ac_objext \
24360 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24361fi
db9f46a9
TG
24362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24363$as_echo "$gcc_cv_math_func_lgamma" >&6; }
24364 if test $gcc_cv_math_func_lgamma = yes; then
f1cdfa01 24365
f38a14ca
TG
24366cat >>confdefs.h <<_ACEOF
24367#define HAVE_LGAMMA 1
24368_ACEOF
db9f46a9
TG
24369
24370 fi
fb0a0e15 24371
fb0a0e15 24372
fb0a0e15 24373
db9f46a9
TG
24374
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24376$as_echo_n "checking for lgammaf... " >&6; }
24377if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
5213506e 24378 $as_echo_n "(cached) " >&6
fb0a0e15 24379else
db9f46a9 24380 if test x$gcc_no_link = xyes; then
5213506e 24381 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24382fi
5213506e 24383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24384/* end confdefs.h. */
24385
db9f46a9
TG
24386#ifdef HAVE_COMPLEX_H
24387#include <complex.h>
fb0a0e15 24388#endif
db9f46a9
TG
24389#ifdef HAVE_MATH_H
24390#include <math.h>
24391#endif
24392
24393int (*ptr)() = (int (*)())lgammaf;
24394
fb0a0e15
FXC
24395int
24396main ()
24397{
fb0a0e15
FXC
24398 return 0;
24399}
db9f46a9 24400
fb0a0e15 24401_ACEOF
5213506e 24402if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24403 gcc_cv_math_func_lgammaf=yes
fb0a0e15 24404else
db9f46a9 24405 gcc_cv_math_func_lgammaf=no
fb0a0e15 24406fi
5213506e
RW
24407rm -f core conftest.err conftest.$ac_objext \
24408 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24409fi
db9f46a9
TG
24410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24411$as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24412 if test $gcc_cv_math_func_lgammaf = yes; then
f1cdfa01 24413
f38a14ca
TG
24414cat >>confdefs.h <<_ACEOF
24415#define HAVE_LGAMMAF 1
24416_ACEOF
fb0a0e15 24417
db9f46a9 24418 fi
fb0a0e15 24419
fb0a0e15 24420
db1cf15c 24421# Check for GFORTRAN_C99_1.1 funcs
db9f46a9
TG
24422
24423
24424
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24426$as_echo_n "checking for cacos... " >&6; }
24427if test "${gcc_cv_math_func_cacos+set}" = set; then :
db1cf15c
IS
24428 $as_echo_n "(cached) " >&6
24429else
db9f46a9 24430 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24431 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24432fi
24433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24434/* end confdefs.h. */
24435
db9f46a9
TG
24436#ifdef HAVE_COMPLEX_H
24437#include <complex.h>
db1cf15c 24438#endif
db9f46a9
TG
24439#ifdef HAVE_MATH_H
24440#include <math.h>
24441#endif
24442
24443int (*ptr)() = (int (*)())cacos;
24444
db1cf15c
IS
24445int
24446main ()
24447{
db1cf15c
IS
24448 return 0;
24449}
db9f46a9 24450
db1cf15c
IS
24451_ACEOF
24452if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24453 gcc_cv_math_func_cacos=yes
db1cf15c 24454else
db9f46a9 24455 gcc_cv_math_func_cacos=no
db1cf15c
IS
24456fi
24457rm -f core conftest.err conftest.$ac_objext \
24458 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24459fi
db9f46a9
TG
24460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24461$as_echo "$gcc_cv_math_func_cacos" >&6; }
24462 if test $gcc_cv_math_func_cacos = yes; then
f1cdfa01 24463
f38a14ca
TG
24464cat >>confdefs.h <<_ACEOF
24465#define HAVE_CACOS 1
24466_ACEOF
db1cf15c 24467
db9f46a9 24468 fi
db1cf15c 24469
db1cf15c 24470
db9f46a9
TG
24471
24472
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24474$as_echo_n "checking for cacosf... " >&6; }
24475if test "${gcc_cv_math_func_cacosf+set}" = set; then :
db1cf15c
IS
24476 $as_echo_n "(cached) " >&6
24477else
db9f46a9 24478 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24479 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24480fi
24481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24482/* end confdefs.h. */
24483
db9f46a9
TG
24484#ifdef HAVE_COMPLEX_H
24485#include <complex.h>
24486#endif
24487#ifdef HAVE_MATH_H
24488#include <math.h>
db1cf15c 24489#endif
db9f46a9
TG
24490
24491int (*ptr)() = (int (*)())cacosf;
24492
db1cf15c
IS
24493int
24494main ()
24495{
db1cf15c
IS
24496 return 0;
24497}
db9f46a9 24498
db1cf15c
IS
24499_ACEOF
24500if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24501 gcc_cv_math_func_cacosf=yes
db1cf15c 24502else
db9f46a9 24503 gcc_cv_math_func_cacosf=no
db1cf15c
IS
24504fi
24505rm -f core conftest.err conftest.$ac_objext \
24506 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24507fi
db9f46a9
TG
24508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24509$as_echo "$gcc_cv_math_func_cacosf" >&6; }
24510 if test $gcc_cv_math_func_cacosf = yes; then
f1cdfa01 24511
f38a14ca
TG
24512cat >>confdefs.h <<_ACEOF
24513#define HAVE_CACOSF 1
24514_ACEOF
db9f46a9
TG
24515
24516 fi
db1cf15c 24517
db1cf15c 24518
db1cf15c 24519
db9f46a9
TG
24520
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24522$as_echo_n "checking for cacosh... " >&6; }
24523if test "${gcc_cv_math_func_cacosh+set}" = set; then :
db1cf15c
IS
24524 $as_echo_n "(cached) " >&6
24525else
db9f46a9 24526 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24527 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24528fi
24529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24530/* end confdefs.h. */
24531
db9f46a9
TG
24532#ifdef HAVE_COMPLEX_H
24533#include <complex.h>
db1cf15c 24534#endif
db9f46a9
TG
24535#ifdef HAVE_MATH_H
24536#include <math.h>
24537#endif
24538
24539int (*ptr)() = (int (*)())cacosh;
24540
db1cf15c
IS
24541int
24542main ()
24543{
db1cf15c
IS
24544 return 0;
24545}
db9f46a9 24546
db1cf15c
IS
24547_ACEOF
24548if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24549 gcc_cv_math_func_cacosh=yes
db1cf15c 24550else
db9f46a9 24551 gcc_cv_math_func_cacosh=no
db1cf15c
IS
24552fi
24553rm -f core conftest.err conftest.$ac_objext \
24554 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24555fi
db9f46a9
TG
24556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24557$as_echo "$gcc_cv_math_func_cacosh" >&6; }
24558 if test $gcc_cv_math_func_cacosh = yes; then
f1cdfa01 24559
f38a14ca
TG
24560cat >>confdefs.h <<_ACEOF
24561#define HAVE_CACOSH 1
24562_ACEOF
db9f46a9
TG
24563
24564 fi
24565
db1cf15c 24566
db1cf15c 24567
db1cf15c 24568
db9f46a9
TG
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24570$as_echo_n "checking for cacoshf... " >&6; }
24571if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
db1cf15c
IS
24572 $as_echo_n "(cached) " >&6
24573else
db9f46a9 24574 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24575 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24576fi
24577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24578/* end confdefs.h. */
24579
db9f46a9
TG
24580#ifdef HAVE_COMPLEX_H
24581#include <complex.h>
24582#endif
24583#ifdef HAVE_MATH_H
24584#include <math.h>
db1cf15c 24585#endif
db9f46a9
TG
24586
24587int (*ptr)() = (int (*)())cacoshf;
24588
db1cf15c
IS
24589int
24590main ()
24591{
db1cf15c
IS
24592 return 0;
24593}
db9f46a9 24594
db1cf15c
IS
24595_ACEOF
24596if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24597 gcc_cv_math_func_cacoshf=yes
db1cf15c 24598else
db9f46a9 24599 gcc_cv_math_func_cacoshf=no
db1cf15c
IS
24600fi
24601rm -f core conftest.err conftest.$ac_objext \
24602 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24603fi
db9f46a9
TG
24604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24605$as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24606 if test $gcc_cv_math_func_cacoshf = yes; then
f1cdfa01 24607
f38a14ca
TG
24608cat >>confdefs.h <<_ACEOF
24609#define HAVE_CACOSHF 1
24610_ACEOF
db9f46a9
TG
24611
24612 fi
db1cf15c 24613
db1cf15c 24614
db1cf15c 24615
db9f46a9
TG
24616
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24618$as_echo_n "checking for cacoshl... " >&6; }
24619if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
db1cf15c
IS
24620 $as_echo_n "(cached) " >&6
24621else
db9f46a9 24622 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24623 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24624fi
24625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24626/* end confdefs.h. */
24627
db9f46a9
TG
24628#ifdef HAVE_COMPLEX_H
24629#include <complex.h>
db1cf15c 24630#endif
db9f46a9
TG
24631#ifdef HAVE_MATH_H
24632#include <math.h>
24633#endif
24634
24635int (*ptr)() = (int (*)())cacoshl;
24636
db1cf15c
IS
24637int
24638main ()
24639{
db1cf15c
IS
24640 return 0;
24641}
db9f46a9 24642
db1cf15c
IS
24643_ACEOF
24644if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24645 gcc_cv_math_func_cacoshl=yes
db1cf15c 24646else
db9f46a9 24647 gcc_cv_math_func_cacoshl=no
db1cf15c
IS
24648fi
24649rm -f core conftest.err conftest.$ac_objext \
24650 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24651fi
db9f46a9
TG
24652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24653$as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24654 if test $gcc_cv_math_func_cacoshl = yes; then
f1cdfa01 24655
f38a14ca
TG
24656cat >>confdefs.h <<_ACEOF
24657#define HAVE_CACOSHL 1
24658_ACEOF
db1cf15c 24659
db9f46a9 24660 fi
db1cf15c 24661
db1cf15c 24662
db9f46a9
TG
24663
24664
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24666$as_echo_n "checking for cacosl... " >&6; }
24667if test "${gcc_cv_math_func_cacosl+set}" = set; then :
db1cf15c
IS
24668 $as_echo_n "(cached) " >&6
24669else
db9f46a9 24670 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24671 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24672fi
24673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24674/* end confdefs.h. */
24675
db9f46a9
TG
24676#ifdef HAVE_COMPLEX_H
24677#include <complex.h>
24678#endif
24679#ifdef HAVE_MATH_H
24680#include <math.h>
db1cf15c 24681#endif
db9f46a9
TG
24682
24683int (*ptr)() = (int (*)())cacosl;
24684
db1cf15c
IS
24685int
24686main ()
24687{
db1cf15c
IS
24688 return 0;
24689}
db9f46a9 24690
db1cf15c
IS
24691_ACEOF
24692if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24693 gcc_cv_math_func_cacosl=yes
db1cf15c 24694else
db9f46a9 24695 gcc_cv_math_func_cacosl=no
db1cf15c
IS
24696fi
24697rm -f core conftest.err conftest.$ac_objext \
24698 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24699fi
db9f46a9
TG
24700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24701$as_echo "$gcc_cv_math_func_cacosl" >&6; }
24702 if test $gcc_cv_math_func_cacosl = yes; then
f1cdfa01 24703
f38a14ca
TG
24704cat >>confdefs.h <<_ACEOF
24705#define HAVE_CACOSL 1
24706_ACEOF
db9f46a9
TG
24707
24708 fi
db1cf15c 24709
db1cf15c 24710
db1cf15c 24711
db9f46a9
TG
24712
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24714$as_echo_n "checking for casin... " >&6; }
24715if test "${gcc_cv_math_func_casin+set}" = set; then :
db1cf15c
IS
24716 $as_echo_n "(cached) " >&6
24717else
db9f46a9 24718 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24719 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24720fi
24721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24722/* end confdefs.h. */
24723
db9f46a9
TG
24724#ifdef HAVE_COMPLEX_H
24725#include <complex.h>
db1cf15c 24726#endif
db9f46a9
TG
24727#ifdef HAVE_MATH_H
24728#include <math.h>
24729#endif
24730
24731int (*ptr)() = (int (*)())casin;
24732
db1cf15c
IS
24733int
24734main ()
24735{
db1cf15c
IS
24736 return 0;
24737}
db9f46a9 24738
db1cf15c
IS
24739_ACEOF
24740if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24741 gcc_cv_math_func_casin=yes
db1cf15c 24742else
db9f46a9 24743 gcc_cv_math_func_casin=no
db1cf15c
IS
24744fi
24745rm -f core conftest.err conftest.$ac_objext \
24746 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24747fi
db9f46a9
TG
24748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24749$as_echo "$gcc_cv_math_func_casin" >&6; }
24750 if test $gcc_cv_math_func_casin = yes; then
f1cdfa01 24751
f38a14ca
TG
24752cat >>confdefs.h <<_ACEOF
24753#define HAVE_CASIN 1
24754_ACEOF
db9f46a9
TG
24755
24756 fi
24757
db1cf15c 24758
db1cf15c 24759
db1cf15c 24760
db9f46a9
TG
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24762$as_echo_n "checking for casinf... " >&6; }
24763if test "${gcc_cv_math_func_casinf+set}" = set; then :
db1cf15c
IS
24764 $as_echo_n "(cached) " >&6
24765else
db9f46a9 24766 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24767 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24768fi
24769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24770/* end confdefs.h. */
24771
db9f46a9
TG
24772#ifdef HAVE_COMPLEX_H
24773#include <complex.h>
24774#endif
24775#ifdef HAVE_MATH_H
24776#include <math.h>
db1cf15c 24777#endif
db9f46a9
TG
24778
24779int (*ptr)() = (int (*)())casinf;
24780
db1cf15c
IS
24781int
24782main ()
24783{
db1cf15c
IS
24784 return 0;
24785}
db9f46a9 24786
db1cf15c
IS
24787_ACEOF
24788if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24789 gcc_cv_math_func_casinf=yes
db1cf15c 24790else
db9f46a9 24791 gcc_cv_math_func_casinf=no
db1cf15c
IS
24792fi
24793rm -f core conftest.err conftest.$ac_objext \
24794 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24795fi
db9f46a9
TG
24796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24797$as_echo "$gcc_cv_math_func_casinf" >&6; }
24798 if test $gcc_cv_math_func_casinf = yes; then
f1cdfa01 24799
f38a14ca
TG
24800cat >>confdefs.h <<_ACEOF
24801#define HAVE_CASINF 1
24802_ACEOF
db9f46a9
TG
24803
24804 fi
db1cf15c 24805
db1cf15c 24806
db1cf15c 24807
db9f46a9
TG
24808
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24810$as_echo_n "checking for casinh... " >&6; }
24811if test "${gcc_cv_math_func_casinh+set}" = set; then :
db1cf15c
IS
24812 $as_echo_n "(cached) " >&6
24813else
db9f46a9 24814 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24815 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24816fi
24817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24818/* end confdefs.h. */
24819
db9f46a9
TG
24820#ifdef HAVE_COMPLEX_H
24821#include <complex.h>
db1cf15c 24822#endif
db9f46a9
TG
24823#ifdef HAVE_MATH_H
24824#include <math.h>
24825#endif
24826
24827int (*ptr)() = (int (*)())casinh;
24828
db1cf15c
IS
24829int
24830main ()
24831{
db1cf15c
IS
24832 return 0;
24833}
db9f46a9 24834
db1cf15c
IS
24835_ACEOF
24836if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24837 gcc_cv_math_func_casinh=yes
db1cf15c 24838else
db9f46a9 24839 gcc_cv_math_func_casinh=no
db1cf15c
IS
24840fi
24841rm -f core conftest.err conftest.$ac_objext \
24842 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24843fi
db9f46a9
TG
24844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
24845$as_echo "$gcc_cv_math_func_casinh" >&6; }
24846 if test $gcc_cv_math_func_casinh = yes; then
f1cdfa01 24847
f38a14ca
TG
24848cat >>confdefs.h <<_ACEOF
24849#define HAVE_CASINH 1
24850_ACEOF
db1cf15c 24851
db9f46a9 24852 fi
db1cf15c 24853
db1cf15c 24854
db9f46a9
TG
24855
24856
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
24858$as_echo_n "checking for casinhf... " >&6; }
24859if test "${gcc_cv_math_func_casinhf+set}" = set; then :
db1cf15c
IS
24860 $as_echo_n "(cached) " >&6
24861else
db9f46a9 24862 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24863 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24864fi
24865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24866/* end confdefs.h. */
24867
db9f46a9
TG
24868#ifdef HAVE_COMPLEX_H
24869#include <complex.h>
24870#endif
24871#ifdef HAVE_MATH_H
24872#include <math.h>
db1cf15c 24873#endif
db9f46a9
TG
24874
24875int (*ptr)() = (int (*)())casinhf;
24876
db1cf15c
IS
24877int
24878main ()
24879{
db1cf15c
IS
24880 return 0;
24881}
db9f46a9 24882
db1cf15c
IS
24883_ACEOF
24884if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24885 gcc_cv_math_func_casinhf=yes
db1cf15c 24886else
db9f46a9 24887 gcc_cv_math_func_casinhf=no
db1cf15c
IS
24888fi
24889rm -f core conftest.err conftest.$ac_objext \
24890 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24891fi
db9f46a9
TG
24892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
24893$as_echo "$gcc_cv_math_func_casinhf" >&6; }
24894 if test $gcc_cv_math_func_casinhf = yes; then
f1cdfa01 24895
f38a14ca
TG
24896cat >>confdefs.h <<_ACEOF
24897#define HAVE_CASINHF 1
24898_ACEOF
db9f46a9
TG
24899
24900 fi
db1cf15c 24901
db1cf15c 24902
db1cf15c 24903
db9f46a9
TG
24904
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
24906$as_echo_n "checking for casinhl... " >&6; }
24907if test "${gcc_cv_math_func_casinhl+set}" = set; then :
db1cf15c
IS
24908 $as_echo_n "(cached) " >&6
24909else
db9f46a9 24910 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24911 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24912fi
24913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24914/* end confdefs.h. */
24915
db9f46a9
TG
24916#ifdef HAVE_COMPLEX_H
24917#include <complex.h>
db1cf15c 24918#endif
db9f46a9
TG
24919#ifdef HAVE_MATH_H
24920#include <math.h>
24921#endif
24922
24923int (*ptr)() = (int (*)())casinhl;
24924
db1cf15c
IS
24925int
24926main ()
24927{
db1cf15c
IS
24928 return 0;
24929}
db9f46a9 24930
db1cf15c
IS
24931_ACEOF
24932if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24933 gcc_cv_math_func_casinhl=yes
db1cf15c 24934else
db9f46a9 24935 gcc_cv_math_func_casinhl=no
db1cf15c
IS
24936fi
24937rm -f core conftest.err conftest.$ac_objext \
24938 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24939fi
db9f46a9
TG
24940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
24941$as_echo "$gcc_cv_math_func_casinhl" >&6; }
24942 if test $gcc_cv_math_func_casinhl = yes; then
f1cdfa01 24943
f38a14ca
TG
24944cat >>confdefs.h <<_ACEOF
24945#define HAVE_CASINHL 1
24946_ACEOF
db9f46a9
TG
24947
24948 fi
24949
db1cf15c 24950
db1cf15c 24951
db1cf15c 24952
db9f46a9
TG
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
24954$as_echo_n "checking for casinl... " >&6; }
24955if test "${gcc_cv_math_func_casinl+set}" = set; then :
db1cf15c
IS
24956 $as_echo_n "(cached) " >&6
24957else
db9f46a9 24958 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24959 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24960fi
24961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24962/* end confdefs.h. */
24963
db9f46a9
TG
24964#ifdef HAVE_COMPLEX_H
24965#include <complex.h>
24966#endif
24967#ifdef HAVE_MATH_H
24968#include <math.h>
db1cf15c 24969#endif
db9f46a9
TG
24970
24971int (*ptr)() = (int (*)())casinl;
24972
db1cf15c
IS
24973int
24974main ()
24975{
db1cf15c
IS
24976 return 0;
24977}
db9f46a9 24978
db1cf15c
IS
24979_ACEOF
24980if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24981 gcc_cv_math_func_casinl=yes
db1cf15c 24982else
db9f46a9 24983 gcc_cv_math_func_casinl=no
db1cf15c
IS
24984fi
24985rm -f core conftest.err conftest.$ac_objext \
24986 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24987fi
db9f46a9
TG
24988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
24989$as_echo "$gcc_cv_math_func_casinl" >&6; }
24990 if test $gcc_cv_math_func_casinl = yes; then
f1cdfa01 24991
f38a14ca
TG
24992cat >>confdefs.h <<_ACEOF
24993#define HAVE_CASINL 1
24994_ACEOF
db9f46a9
TG
24995
24996 fi
db1cf15c 24997
db1cf15c 24998
db1cf15c 24999
db9f46a9
TG
25000
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25002$as_echo_n "checking for catan... " >&6; }
25003if test "${gcc_cv_math_func_catan+set}" = set; then :
db1cf15c
IS
25004 $as_echo_n "(cached) " >&6
25005else
db9f46a9 25006 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25007 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25008fi
25009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25010/* end confdefs.h. */
25011
db9f46a9
TG
25012#ifdef HAVE_COMPLEX_H
25013#include <complex.h>
db1cf15c 25014#endif
db9f46a9
TG
25015#ifdef HAVE_MATH_H
25016#include <math.h>
25017#endif
25018
25019int (*ptr)() = (int (*)())catan;
25020
db1cf15c
IS
25021int
25022main ()
25023{
db1cf15c
IS
25024 return 0;
25025}
db9f46a9 25026
db1cf15c
IS
25027_ACEOF
25028if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25029 gcc_cv_math_func_catan=yes
db1cf15c 25030else
db9f46a9 25031 gcc_cv_math_func_catan=no
db1cf15c
IS
25032fi
25033rm -f core conftest.err conftest.$ac_objext \
25034 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25035fi
db9f46a9
TG
25036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25037$as_echo "$gcc_cv_math_func_catan" >&6; }
25038 if test $gcc_cv_math_func_catan = yes; then
f1cdfa01 25039
f38a14ca
TG
25040cat >>confdefs.h <<_ACEOF
25041#define HAVE_CATAN 1
25042_ACEOF
db1cf15c 25043
db9f46a9 25044 fi
db1cf15c 25045
db1cf15c 25046
db9f46a9
TG
25047
25048
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25050$as_echo_n "checking for catanf... " >&6; }
25051if test "${gcc_cv_math_func_catanf+set}" = set; then :
db1cf15c
IS
25052 $as_echo_n "(cached) " >&6
25053else
db9f46a9 25054 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25055 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25056fi
25057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25058/* end confdefs.h. */
25059
db9f46a9
TG
25060#ifdef HAVE_COMPLEX_H
25061#include <complex.h>
25062#endif
25063#ifdef HAVE_MATH_H
25064#include <math.h>
db1cf15c 25065#endif
db9f46a9
TG
25066
25067int (*ptr)() = (int (*)())catanf;
25068
db1cf15c
IS
25069int
25070main ()
25071{
db1cf15c
IS
25072 return 0;
25073}
db9f46a9 25074
db1cf15c
IS
25075_ACEOF
25076if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25077 gcc_cv_math_func_catanf=yes
db1cf15c 25078else
db9f46a9 25079 gcc_cv_math_func_catanf=no
db1cf15c
IS
25080fi
25081rm -f core conftest.err conftest.$ac_objext \
25082 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25083fi
db9f46a9
TG
25084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25085$as_echo "$gcc_cv_math_func_catanf" >&6; }
25086 if test $gcc_cv_math_func_catanf = yes; then
f1cdfa01 25087
f38a14ca
TG
25088cat >>confdefs.h <<_ACEOF
25089#define HAVE_CATANF 1
25090_ACEOF
db9f46a9
TG
25091
25092 fi
db1cf15c 25093
db1cf15c 25094
db1cf15c 25095
db9f46a9
TG
25096
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25098$as_echo_n "checking for catanh... " >&6; }
25099if test "${gcc_cv_math_func_catanh+set}" = set; then :
db1cf15c
IS
25100 $as_echo_n "(cached) " >&6
25101else
db9f46a9 25102 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25103 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25104fi
25105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25106/* end confdefs.h. */
25107
db9f46a9
TG
25108#ifdef HAVE_COMPLEX_H
25109#include <complex.h>
db1cf15c 25110#endif
db9f46a9
TG
25111#ifdef HAVE_MATH_H
25112#include <math.h>
25113#endif
25114
25115int (*ptr)() = (int (*)())catanh;
25116
db1cf15c
IS
25117int
25118main ()
25119{
db1cf15c
IS
25120 return 0;
25121}
db9f46a9 25122
db1cf15c
IS
25123_ACEOF
25124if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25125 gcc_cv_math_func_catanh=yes
db1cf15c 25126else
db9f46a9 25127 gcc_cv_math_func_catanh=no
db1cf15c
IS
25128fi
25129rm -f core conftest.err conftest.$ac_objext \
25130 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25131fi
db9f46a9
TG
25132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25133$as_echo "$gcc_cv_math_func_catanh" >&6; }
25134 if test $gcc_cv_math_func_catanh = yes; then
f1cdfa01 25135
f38a14ca
TG
25136cat >>confdefs.h <<_ACEOF
25137#define HAVE_CATANH 1
25138_ACEOF
db9f46a9
TG
25139
25140 fi
25141
db1cf15c 25142
db1cf15c 25143
db1cf15c 25144
db9f46a9
TG
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25146$as_echo_n "checking for catanhf... " >&6; }
25147if test "${gcc_cv_math_func_catanhf+set}" = set; then :
db1cf15c
IS
25148 $as_echo_n "(cached) " >&6
25149else
db9f46a9 25150 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25151 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25152fi
25153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154/* end confdefs.h. */
25155
db9f46a9
TG
25156#ifdef HAVE_COMPLEX_H
25157#include <complex.h>
25158#endif
25159#ifdef HAVE_MATH_H
25160#include <math.h>
db1cf15c 25161#endif
db9f46a9
TG
25162
25163int (*ptr)() = (int (*)())catanhf;
25164
db1cf15c
IS
25165int
25166main ()
25167{
db1cf15c
IS
25168 return 0;
25169}
db9f46a9 25170
db1cf15c
IS
25171_ACEOF
25172if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25173 gcc_cv_math_func_catanhf=yes
db1cf15c 25174else
db9f46a9 25175 gcc_cv_math_func_catanhf=no
db1cf15c
IS
25176fi
25177rm -f core conftest.err conftest.$ac_objext \
25178 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25179fi
db9f46a9
TG
25180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25181$as_echo "$gcc_cv_math_func_catanhf" >&6; }
25182 if test $gcc_cv_math_func_catanhf = yes; then
f1cdfa01 25183
f38a14ca
TG
25184cat >>confdefs.h <<_ACEOF
25185#define HAVE_CATANHF 1
25186_ACEOF
db9f46a9
TG
25187
25188 fi
db1cf15c 25189
db1cf15c 25190
db1cf15c 25191
db9f46a9
TG
25192
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25194$as_echo_n "checking for catanhl... " >&6; }
25195if test "${gcc_cv_math_func_catanhl+set}" = set; then :
db1cf15c
IS
25196 $as_echo_n "(cached) " >&6
25197else
db9f46a9 25198 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25199 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25200fi
25201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25202/* end confdefs.h. */
25203
db9f46a9
TG
25204#ifdef HAVE_COMPLEX_H
25205#include <complex.h>
db1cf15c 25206#endif
db9f46a9
TG
25207#ifdef HAVE_MATH_H
25208#include <math.h>
25209#endif
25210
25211int (*ptr)() = (int (*)())catanhl;
25212
db1cf15c
IS
25213int
25214main ()
25215{
db1cf15c
IS
25216 return 0;
25217}
db9f46a9 25218
db1cf15c
IS
25219_ACEOF
25220if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25221 gcc_cv_math_func_catanhl=yes
db1cf15c 25222else
db9f46a9 25223 gcc_cv_math_func_catanhl=no
db1cf15c
IS
25224fi
25225rm -f core conftest.err conftest.$ac_objext \
25226 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25227fi
db9f46a9
TG
25228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25229$as_echo "$gcc_cv_math_func_catanhl" >&6; }
25230 if test $gcc_cv_math_func_catanhl = yes; then
f1cdfa01 25231
f38a14ca
TG
25232cat >>confdefs.h <<_ACEOF
25233#define HAVE_CATANHL 1
25234_ACEOF
db1cf15c 25235
db9f46a9 25236 fi
db1cf15c 25237
db1cf15c 25238
db9f46a9
TG
25239
25240
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25242$as_echo_n "checking for catanl... " >&6; }
25243if test "${gcc_cv_math_func_catanl+set}" = set; then :
db1cf15c
IS
25244 $as_echo_n "(cached) " >&6
25245else
db9f46a9 25246 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25247 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25248fi
25249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25250/* end confdefs.h. */
25251
db9f46a9
TG
25252#ifdef HAVE_COMPLEX_H
25253#include <complex.h>
25254#endif
25255#ifdef HAVE_MATH_H
25256#include <math.h>
db1cf15c 25257#endif
db9f46a9
TG
25258
25259int (*ptr)() = (int (*)())catanl;
25260
db1cf15c
IS
25261int
25262main ()
25263{
db1cf15c
IS
25264 return 0;
25265}
db9f46a9 25266
db1cf15c
IS
25267_ACEOF
25268if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25269 gcc_cv_math_func_catanl=yes
db1cf15c 25270else
db9f46a9 25271 gcc_cv_math_func_catanl=no
db1cf15c
IS
25272fi
25273rm -f core conftest.err conftest.$ac_objext \
25274 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25275fi
db9f46a9
TG
25276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25277$as_echo "$gcc_cv_math_func_catanl" >&6; }
25278 if test $gcc_cv_math_func_catanl = yes; then
f1cdfa01 25279
f38a14ca
TG
25280cat >>confdefs.h <<_ACEOF
25281#define HAVE_CATANL 1
25282_ACEOF
db1cf15c 25283
db9f46a9 25284 fi
db1cf15c
IS
25285
25286
118ea208 25287# On AIX, clog is present in libm as __clog
5213506e
RW
25288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25289$as_echo_n "checking for __clog in -lm... " >&6; }
25290if test "${ac_cv_lib_m___clog+set}" = set; then :
25291 $as_echo_n "(cached) " >&6
e097b4f1
DE
25292else
25293 ac_check_lib_save_LIBS=$LIBS
25294LIBS="-lm $LIBS"
25295if test x$gcc_no_link = xyes; then
5213506e 25296 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e097b4f1 25297fi
5213506e 25298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e097b4f1
DE
25299/* end confdefs.h. */
25300
5213506e
RW
25301/* Override any GCC internal prototype to avoid an error.
25302 Use char because int might match the return type of a GCC
25303 builtin and then its argument prototype would still apply. */
e097b4f1
DE
25304#ifdef __cplusplus
25305extern "C"
25306#endif
e097b4f1
DE
25307char __clog ();
25308int
25309main ()
25310{
5213506e 25311return __clog ();
e097b4f1
DE
25312 ;
25313 return 0;
25314}
25315_ACEOF
5213506e 25316if ac_fn_c_try_link "$LINENO"; then :
e097b4f1
DE
25317 ac_cv_lib_m___clog=yes
25318else
5213506e 25319 ac_cv_lib_m___clog=no
e097b4f1 25320fi
5213506e
RW
25321rm -f core conftest.err conftest.$ac_objext \
25322 conftest$ac_exeext conftest.$ac_ext
e097b4f1
DE
25323LIBS=$ac_check_lib_save_LIBS
25324fi
5213506e
RW
25325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25326$as_echo "$ac_cv_lib_m___clog" >&6; }
25327if test "x$ac_cv_lib_m___clog" = x""yes; then :
e097b4f1 25328
5213506e 25329$as_echo "#define HAVE_CLOG 1" >>confdefs.h
e097b4f1
DE
25330
25331fi
25332
25333
ad238e4f
FXC
25334# Check whether the system has a working stat()
25335
5213506e
RW
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25337$as_echo_n "checking whether the target stat is reliable... " >&6; }
25338if test "${libgfor_cv_have_working_stat+set}" = set; then :
25339 $as_echo_n "(cached) " >&6
ad238e4f
FXC
25340else
25341
5213506e 25342 if test "$cross_compiling" = yes; then :
ad238e4f
FXC
25343
25344case "${target}" in
6d26724a
RW
25345 *mingw*) libgfor_cv_have_working_stat=no ;;
25346 *) libgfor_cv_have_working_stat=yes;;
ad238e4f
FXC
25347esac
25348else
5213506e 25349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad238e4f
FXC
25350/* end confdefs.h. */
25351
25352#include <stdio.h>
25353#include <sys/types.h>
25354#include <sys/stat.h>
25355#include <unistd.h>
25356
25357int main ()
25358{
25359 FILE *f, *g;
25360 struct stat st1, st2;
25361
25362 f = fopen ("foo", "w");
25363 g = fopen ("bar", "w");
25364 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25365 return 1;
25366 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25367 return 1;
25368 fclose(f);
25369 fclose(g);
25370 return 0;
25371}
25372_ACEOF
5213506e 25373if ac_fn_c_try_run "$LINENO"; then :
6d26724a 25374 libgfor_cv_have_working_stat=yes
ad238e4f 25375else
5213506e 25376 libgfor_cv_have_working_stat=no
ad238e4f 25377fi
5213506e
RW
25378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25379 conftest.$ac_objext conftest.beam conftest.$ac_ext
ad238e4f 25380fi
5213506e 25381
ad238e4f 25382fi
5213506e
RW
25383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25384$as_echo "$libgfor_cv_have_working_stat" >&6; }
6d26724a 25385if test x"$libgfor_cv_have_working_stat" = xyes; then
ad238e4f 25386
5213506e 25387$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
ad238e4f
FXC
25388
25389fi
25390
db8092dc
FXC
25391# Check whether __mingw_snprintf() is present
25392
5213506e
RW
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25394$as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25395if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25396 $as_echo_n "(cached) " >&6
db8092dc
FXC
25397else
25398
25399 if test x$gcc_no_link = xyes; then
5213506e 25400 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db8092dc 25401fi
5213506e 25402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db8092dc
FXC
25403/* end confdefs.h. */
25404
25405#include <stdio.h>
25406extern int __mingw_snprintf (char *, size_t, const char *, ...);
25407
25408int
25409main ()
25410{
25411
25412__mingw_snprintf (NULL, 0, "%d\n", 1);
25413
25414 ;
25415 return 0;
25416}
25417_ACEOF
5213506e 25418if ac_fn_c_try_link "$LINENO"; then :
6d26724a 25419 eval "libgfor_cv_have_mingw_snprintf=yes"
db8092dc 25420else
5213506e 25421 eval "libgfor_cv_have_mingw_snprintf=no"
db8092dc 25422fi
5213506e
RW
25423rm -f core conftest.err conftest.$ac_objext \
25424 conftest$ac_exeext conftest.$ac_ext
db8092dc
FXC
25425
25426fi
5213506e
RW
25427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25428$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
6d26724a 25429 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
db8092dc 25430
5213506e 25431$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
db8092dc
FXC
25432
25433 fi
25434
25435
87e6d9dc
TB
25436# Check whether libquadmath should be used
25437# Check whether --enable-libquadmath-support was given.
25438if test "${enable_libquadmath_support+set}" = set; then :
25439 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25440else
25441 ENABLE_LIBQUADMATH_SUPPORT=yes
25442fi
25443
25444enable_libquadmath_support=
25445if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25446 enable_libquadmath_support=no
25447fi
25448
25449# Check whether we have a __float128 type, depends on enable_libquadmath_support
1ec601bf
FXC
25450
25451 LIBQUADSPEC=
87e6d9dc
TB
25452
25453 if test "x$enable_libquadmath_support" != xno; then
25454
1ec601bf
FXC
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25456$as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25457if test "${libgfor_cv_have_float128+set}" = set; then :
25458 $as_echo_n "(cached) " >&6
25459else
25460
69eb61d4
TB
25461 if test x$gcc_no_link = xyes; then
25462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
25463/* end confdefs.h. */
25464
69eb61d4
TB
25465 typedef _Complex float __attribute__((mode(TC))) __complex128;
25466
25467 __float128 foo (__float128 x)
25468 {
25469
25470 __complex128 z1, z2;
25471
25472 z1 = x;
25473 z2 = x / 7.Q;
25474 z2 /= z1;
25475
25476 return (__float128) z2;
25477 }
25478
25479 __float128 bar (__float128 x)
25480 {
25481 return x * __builtin_huge_valq ();
25482 }
1ec601bf
FXC
25483
25484int
25485main ()
25486{
25487
69eb61d4
TB
25488 foo (1.2Q);
25489 bar (1.2Q);
1ec601bf 25490
69eb61d4
TB
25491 ;
25492 return 0;
25493}
25494_ACEOF
25495if ac_fn_c_try_compile "$LINENO"; then :
1ec601bf 25496
69eb61d4 25497 libgfor_cv_have_float128=yes
1ec601bf 25498
69eb61d4
TB
25499else
25500
25501 libgfor_cv_have_float128=no
25502
25503fi
25504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25505else
25506 if test x$gcc_no_link = xyes; then
25507 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25508fi
25509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25510/* end confdefs.h. */
25511
25512 typedef _Complex float __attribute__((mode(TC))) __complex128;
25513
25514 __float128 foo (__float128 x)
25515 {
25516
25517 __complex128 z1, z2;
25518
25519 z1 = x;
25520 z2 = x / 7.Q;
25521 z2 /= z1;
25522
25523 return (__float128) z2;
25524 }
25525
25526 __float128 bar (__float128 x)
25527 {
25528 return x * __builtin_huge_valq ();
25529 }
25530
25531int
25532main ()
25533{
25534
25535 foo (1.2Q);
25536 bar (1.2Q);
1ec601bf
FXC
25537
25538 ;
25539 return 0;
25540}
25541_ACEOF
25542if ac_fn_c_try_link "$LINENO"; then :
69eb61d4
TB
25543
25544 libgfor_cv_have_float128=yes
25545
1ec601bf 25546else
69eb61d4
TB
25547
25548 libgfor_cv_have_float128=no
25549
1ec601bf
FXC
25550fi
25551rm -f core conftest.err conftest.$ac_objext \
25552 conftest$ac_exeext conftest.$ac_ext
69eb61d4 25553fi
1ec601bf
FXC
25554fi
25555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25556$as_echo "$libgfor_cv_have_float128" >&6; }
25557
25558 if test "x$libgfor_cv_have_float128" = xyes; then
25559
25560$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25561
25562
25563 ac_xsave_c_werror_flag=$ac_c_werror_flag
828012a5
RO
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25565$as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
1ec601bf
FXC
25566if test "${libgfor_cv_have_as_needed+set}" = set; then :
25567 $as_echo_n "(cached) " >&6
25568else
25569
828012a5
RO
25570 # Test for native Solaris options first.
25571 # No whitespace after -z to pass it through -Wl.
25572 libgfor_cv_as_needed_option="-zignore"
25573 libgfor_cv_no_as_needed_option="-zrecord"
1ec601bf 25574 save_LDFLAGS="$LDFLAGS"
828012a5 25575 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
1ec601bf
FXC
25576 libgfor_cv_have_as_needed=no
25577
25578ac_c_werror_flag=yes
25579 if test x$gcc_no_link = xyes; then
25580 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25581fi
25582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25583/* end confdefs.h. */
25584
25585int
25586main ()
25587{
25588
25589 ;
25590 return 0;
25591}
25592_ACEOF
25593if ac_fn_c_try_link "$LINENO"; then :
25594 libgfor_cv_have_as_needed=yes
25595else
25596 libgfor_cv_have_as_needed=no
25597fi
25598rm -f core conftest.err conftest.$ac_objext \
25599 conftest$ac_exeext conftest.$ac_ext
25600 LDFLAGS="$save_LDFLAGS"
828012a5
RO
25601 if test "x$libgfor_cv_have_as_needed" = xno; then
25602 libgfor_cv_as_needed_option="--as-needed"
25603 libgfor_cv_no_as_needed_option="--no-as-needed"
25604 save_LDFLAGS="$LDFLAGS"
25605 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25606 libgfor_cv_have_as_needed=no
25607
25608ac_c_werror_flag=yes
25609 if test x$gcc_no_link = xyes; then
25610 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25611fi
25612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25613/* end confdefs.h. */
25614
25615int
25616main ()
25617{
25618
25619 ;
25620 return 0;
25621}
25622_ACEOF
25623if ac_fn_c_try_link "$LINENO"; then :
25624 libgfor_cv_have_as_needed=yes
25625else
25626 libgfor_cv_have_as_needed=no
25627fi
25628rm -f core conftest.err conftest.$ac_objext \
25629 conftest$ac_exeext conftest.$ac_ext
25630 LDFLAGS="$save_LDFLAGS"
25631 fi
1ec601bf
FXC
25632 ac_c_werror_flag=$ac_xsave_c_werror_flag
25633
25634fi
25635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25636$as_echo "$libgfor_cv_have_as_needed" >&6; }
25637
25638 if test "x$libgfor_cv_have_as_needed" = xyes; then
828012a5 25639 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
1ec601bf
FXC
25640 else
25641 LIBQUADSPEC="-lquadmath"
25642 fi
25643 if test -f ../libquadmath/libquadmath.la; then
25644 LIBQUADLIB=../libquadmath/libquadmath.la
25645 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25646 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25647 else
25648 LIBQUADLIB="-lquadmath"
25649 LIBQUADLIB_DEP=
25650 LIBQUADINCLUDE=
25651 fi
25652 fi
87e6d9dc
TB
25653 else
25654 # for --disable-quadmath
25655 LIBQUADLIB=
25656 LIBQUADLIB_DEP=
25657 LIBQUADINCLUDE=
25658 fi
1ec601bf
FXC
25659
25660
25661
25662
25663
25664
25665 if test "x$libgfor_cv_have_float128" = xyes; then
25666 LIBGFOR_BUILD_QUAD_TRUE=
25667 LIBGFOR_BUILD_QUAD_FALSE='#'
25668else
25669 LIBGFOR_BUILD_QUAD_TRUE='#'
25670 LIBGFOR_BUILD_QUAD_FALSE=
25671fi
25672
25673
25674
944b8b35 25675# Check for GNU libc feenableexcept
5213506e
RW
25676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25677$as_echo_n "checking for feenableexcept in -lm... " >&6; }
25678if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25679 $as_echo_n "(cached) " >&6
944b8b35
FXC
25680else
25681 ac_check_lib_save_LIBS=$LIBS
25682LIBS="-lm $LIBS"
25683if test x$gcc_no_link = xyes; then
5213506e 25684 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
944b8b35 25685fi
5213506e 25686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944b8b35
FXC
25687/* end confdefs.h. */
25688
5213506e
RW
25689/* Override any GCC internal prototype to avoid an error.
25690 Use char because int might match the return type of a GCC
25691 builtin and then its argument prototype would still apply. */
944b8b35
FXC
25692#ifdef __cplusplus
25693extern "C"
25694#endif
944b8b35
FXC
25695char feenableexcept ();
25696int
25697main ()
25698{
5213506e 25699return feenableexcept ();
944b8b35
FXC
25700 ;
25701 return 0;
25702}
25703_ACEOF
5213506e 25704if ac_fn_c_try_link "$LINENO"; then :
944b8b35
FXC
25705 ac_cv_lib_m_feenableexcept=yes
25706else
5213506e 25707 ac_cv_lib_m_feenableexcept=no
944b8b35 25708fi
5213506e
RW
25709rm -f core conftest.err conftest.$ac_objext \
25710 conftest$ac_exeext conftest.$ac_ext
944b8b35
FXC
25711LIBS=$ac_check_lib_save_LIBS
25712fi
5213506e
RW
25713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25714$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25715if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
944b8b35 25716 have_feenableexcept=yes
5213506e 25717$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
3b14f664
FXC
25718
25719fi
25720
3b14f664 25721
5c30094f 25722# At least for glibc, clock_gettime is in librt. But don't
2aadeae2
JB
25723# pull that in if it still doesn't give us the function we want. This
25724# test is copied from libgomp, and modified to not link in -lrt as
25725# libgfortran calls clock_gettime via a weak reference if it's found
25726# in librt.
deb9dd74 25727if test "$ac_cv_func_clock_gettime" = no; then
b6e7a3d1
JB
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25729$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25730if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25731 $as_echo_n "(cached) " >&6
25732else
25733 ac_check_lib_save_LIBS=$LIBS
25734LIBS="-lrt $LIBS"
25735if test x$gcc_no_link = xyes; then
25736 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25737fi
25738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739/* end confdefs.h. */
25740
25741/* Override any GCC internal prototype to avoid an error.
25742 Use char because int might match the return type of a GCC
25743 builtin and then its argument prototype would still apply. */
25744#ifdef __cplusplus
25745extern "C"
25746#endif
25747char clock_gettime ();
25748int
25749main ()
25750{
25751return clock_gettime ();
25752 ;
25753 return 0;
25754}
25755_ACEOF
25756if ac_fn_c_try_link "$LINENO"; then :
25757 ac_cv_lib_rt_clock_gettime=yes
25758else
25759 ac_cv_lib_rt_clock_gettime=no
25760fi
25761rm -f core conftest.err conftest.$ac_objext \
25762 conftest$ac_exeext conftest.$ac_ext
25763LIBS=$ac_check_lib_save_LIBS
25764fi
25765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25766$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25767if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
b6e7a3d1 25768
2aadeae2 25769$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
b6e7a3d1
JB
25770
25771fi
25772
25773fi
25774
5213506e 25775# Check for SysV fpsetmask
3b14f664 25776
5213506e
RW
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25778$as_echo_n "checking whether fpsetmask is present... " >&6; }
25779if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25780 $as_echo_n "(cached) " >&6
25781else
3b14f664 25782
5213506e
RW
25783 if test x$gcc_no_link = xyes; then
25784 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25785fi
25786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25787/* end confdefs.h. */
3b14f664 25788
5213506e
RW
25789#if HAVE_FLOATINGPOINT_H
25790# include <floatingpoint.h>
25791#endif /* HAVE_FLOATINGPOINT_H */
25792#if HAVE_IEEEFP_H
25793# include <ieeefp.h>
25794#endif /* HAVE_IEEEFP_H */
3b14f664
FXC
25795int
25796main ()
25797{
5213506e 25798fpsetmask(0);
3b14f664
FXC
25799 ;
25800 return 0;
25801}
25802_ACEOF
5213506e
RW
25803if ac_fn_c_try_link "$LINENO"; then :
25804 eval "libgfor_cv_have_fpsetmask=yes"
3b14f664 25805else
5213506e
RW
25806 eval "libgfor_cv_have_fpsetmask=no"
25807fi
25808rm -f core conftest.err conftest.$ac_objext \
25809 conftest$ac_exeext conftest.$ac_ext
3b14f664 25810
3b14f664 25811fi
5213506e
RW
25812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25813$as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25814 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
1b9fef3e 25815 have_fpsetmask=yes
5213506e
RW
25816
25817$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25818
25819 fi
25820
6faf4751 25821ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
67c4c164 25822#ifdef HAVE_IEEEFP_H
6faf4751 25823#include <ieeefp.h>
67c4c164 25824#endif
6faf4751
FXC
25825#include <math.h>
25826
7ae346c3
TB
25827"
25828if test "x$ac_cv_type_fp_except" = x""yes; then :
25829
25830cat >>confdefs.h <<_ACEOF
25831#define HAVE_FP_EXCEPT 1
25832_ACEOF
25833
25834
25835fi
6faf4751 25836ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
67c4c164 25837#ifdef HAVE_IEEEFP_H
6faf4751 25838#include <ieeefp.h>
67c4c164 25839#endif
6faf4751
FXC
25840#include <math.h>
25841
7ae346c3
TB
25842"
25843if test "x$ac_cv_type_fp_except_t" = x""yes; then :
25844
25845cat >>confdefs.h <<_ACEOF
25846#define HAVE_FP_EXCEPT_T 1
25847_ACEOF
25848
25849
82a4f54c
TB
25850fi
25851
6faf4751 25852ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
67c4c164 25853#ifdef HAVE_IEEEFP_H
6faf4751 25854#include <ieeefp.h>
67c4c164 25855#endif
6faf4751
FXC
25856#include <math.h>
25857
82a4f54c
TB
25858"
25859if test "x$ac_cv_type_fp_rnd" = x""yes; then :
25860
25861cat >>confdefs.h <<_ACEOF
25862#define HAVE_FP_RND 1
25863_ACEOF
25864
25865
25866fi
6faf4751 25867ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
67c4c164 25868#ifdef HAVE_IEEEFP_H
6faf4751 25869#include <ieeefp.h>
67c4c164 25870#endif
6faf4751
FXC
25871#include <math.h>
25872
82a4f54c
TB
25873"
25874if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
25875
25876cat >>confdefs.h <<_ACEOF
25877#define HAVE_FP_RND_T 1
25878_ACEOF
25879
25880
7ae346c3
TB
25881fi
25882
5213506e 25883
de51fc1b
RO
25884# Check whether we have fpsetsticky or fpresetsticky
25885ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
25886if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
25887 have_fpsetsticky=yes
25888$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
25889
25890fi
25891
25892ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
25893if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
25894 have_fpresetsticky=yes
25895$as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
25896
25897fi
25898
25899
5213506e
RW
25900# Check for AIX fp_trap and fp_enable
25901ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25902if test "x$ac_cv_func_fp_trap" = x""yes; then :
25903 have_fp_trap=yes
25904$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25905
3b14f664 25906fi
5213506e
RW
25907
25908ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25909if test "x$ac_cv_func_fp_enable" = x""yes; then :
3b14f664 25910 have_fp_enable=yes
5213506e 25911$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
3b14f664
FXC
25912
25913fi
25914
25915
7b32a8f6
UB
25916# Check if _SOFT_FLOAT is defined
25917
25918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
25919$as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
25920if test "${ac_cv_defined__SOFT_FLOAT+set}" = set; then :
25921 $as_echo_n "(cached) " >&6
25922else
25923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25924/* end confdefs.h. */
25925
25926int
25927main ()
25928{
25929
25930 #ifdef _SOFT_FLOAT
25931 int ok;
25932 #else
25933 choke me
25934 #endif
25935
25936 ;
25937 return 0;
25938}
25939_ACEOF
25940if ac_fn_c_try_compile "$LINENO"; then :
25941 ac_cv_defined__SOFT_FLOAT=yes
25942else
25943 ac_cv_defined__SOFT_FLOAT=no
25944fi
25945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25946fi
25947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
25948$as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
25949if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
25950 have_soft_float=yes
25951fi
25952
944b8b35
FXC
25953# Runs configure.host to set up necessary host-dependent shell variables.
25954# We then display a message about it, and propagate them through the
25955# build chain.
25956. ${srcdir}/configure.host
5213506e
RW
25957{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25958$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
8b198102
FXC
25959{ $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
25960$as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
944b8b35
FXC
25961FPU_HOST_HEADER=config/${fpu_host}.h
25962
25963
8b198102
FXC
25964# Whether we will build the IEEE modules
25965 if test x${ieee_support} = xyes; then
25966 IEEE_SUPPORT_TRUE=
25967 IEEE_SUPPORT_FALSE='#'
25968else
25969 IEEE_SUPPORT_TRUE='#'
25970 IEEE_SUPPORT_FALSE=
25971fi
25972
25973
25974
9fc77574
KK
25975# Some targets require additional compiler options for IEEE compatibility.
25976IEEE_FLAGS="${ieee_flags}"
25977
25978
23e6d4a5
JB
25979
25980# Check for POSIX getpwuid_r
25981#
25982# There are two versions of getpwuid_r, the POSIX one with 5
25983# arguments, and another one with 4 arguments used by at least HP-UX
25984# 10.2.
25985if test "$ac_cv_func_getpwuid_r" = "yes"; then
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25987$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
25988if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
25989 $as_echo_n "(cached) " >&6
25990else
25991
25992 if test x$gcc_no_link = xyes; then
25993 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25994fi
25995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25996/* end confdefs.h. */
25997
25998#include <stdio.h>
25999#include <sys/types.h>
26000#include <pwd.h>
26001int
26002main ()
26003{
26004
26005 getpwuid_r(0, NULL, NULL, 0, NULL);
26006
26007 ;
26008 return 0;
26009}
26010_ACEOF
26011if ac_fn_c_try_link "$LINENO"; then :
26012 libgfor_cv_posix_getpwuid_r="yes"
26013else
26014 libgfor_cv_posix_getpwuid_r="no"
26015fi
26016rm -f core conftest.err conftest.$ac_objext \
26017 conftest$ac_exeext conftest.$ac_ext
26018fi
26019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26020$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26021fi
26022if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26023
26024$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26025
26026fi
26027
26028
7d7b8bfe
RH
26029# Check out attribute support.
26030
5213506e
RW
26031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26032$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26033if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26034 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
26035else
26036
26037 save_CFLAGS="$CFLAGS"
26038 CFLAGS="$CFLAGS -Werror"
5213506e 26039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
26040/* end confdefs.h. */
26041void __attribute__((visibility("hidden"))) foo(void) { }
26042int
26043main ()
26044{
26045
26046 ;
26047 return 0;
26048}
26049_ACEOF
5213506e 26050if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 26051 libgfor_cv_have_attribute_visibility=yes
7d7b8bfe 26052else
5213506e 26053 libgfor_cv_have_attribute_visibility=no
7d7b8bfe 26054fi
5213506e 26055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
26056 CFLAGS="$save_CFLAGS"
26057fi
5213506e
RW
26058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26059$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6d26724a 26060 if test $libgfor_cv_have_attribute_visibility = yes; then
7d7b8bfe 26061
5213506e 26062$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7d7b8bfe
RH
26063
26064 fi
26065
5213506e
RW
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26067$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26068if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26069 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
26070else
26071
f02d008e 26072 if test x$gcc_no_link = xyes; then
5213506e 26073 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 26074fi
5213506e 26075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
26076/* end confdefs.h. */
26077
7d7b8bfe 26078void foo(void) { }
16a314a9 26079extern void bar(void) __attribute__((alias("foo")));
7d7b8bfe
RH
26080int
26081main ()
26082{
26083bar();
26084 ;
26085 return 0;
26086}
26087_ACEOF
5213506e 26088if ac_fn_c_try_link "$LINENO"; then :
6d26724a 26089 libgfor_cv_have_attribute_alias=yes
7d7b8bfe 26090else
5213506e 26091 libgfor_cv_have_attribute_alias=no
7d7b8bfe 26092fi
5213506e
RW
26093rm -f core conftest.err conftest.$ac_objext \
26094 conftest$ac_exeext conftest.$ac_ext
7d7b8bfe 26095fi
5213506e
RW
26096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26097$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6d26724a 26098 if test $libgfor_cv_have_attribute_alias = yes; then
7d7b8bfe 26099
5213506e 26100$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7d7b8bfe
RH
26101
26102 fi
26103
5e805e44
JJ
26104# Check out sync builtins support.
26105
5213506e
RW
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26107$as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26108if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26109 $as_echo_n "(cached) " >&6
5e805e44
JJ
26110else
26111
26112 if test x$gcc_no_link = xyes; then
5213506e 26113 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5e805e44 26114fi
5213506e 26115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44
JJ
26116/* end confdefs.h. */
26117int foovar = 0;
26118int
26119main ()
26120{
26121
26122if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26123if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26124 ;
26125 return 0;
26126}
26127_ACEOF
5213506e 26128if ac_fn_c_try_link "$LINENO"; then :
6d26724a 26129 libgfor_cv_have_sync_fetch_and_add=yes
5e805e44 26130else
5213506e 26131 libgfor_cv_have_sync_fetch_and_add=no
5e805e44 26132fi
5213506e
RW
26133rm -f core conftest.err conftest.$ac_objext \
26134 conftest$ac_exeext conftest.$ac_ext
5e805e44 26135fi
5213506e
RW
26136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26137$as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
6d26724a 26138 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
5e805e44 26139
5213506e 26140$as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
5e805e44
JJ
26141
26142 fi
26143
6a822a74
FXC
26144# Check out #pragma weak.
26145
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26147$as_echo_n "checking whether pragma weak works... " >&6; }
26148if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26149 $as_echo_n "(cached) " >&6
26150else
26151
26152 gfor_save_CFLAGS="$CFLAGS"
26153 CFLAGS="$CFLAGS -Wunknown-pragmas"
26154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26155/* end confdefs.h. */
26156
26157void foo (void);
26158#pragma weak foo
26159
26160int
26161main ()
26162{
26163if (foo) foo ();
26164 ;
26165 return 0;
26166}
26167_ACEOF
26168if ac_fn_c_try_compile "$LINENO"; then :
26169 libgfor_cv_have_pragma_weak=yes
26170else
26171 libgfor_cv_have_pragma_weak=no
26172fi
26173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26174fi
26175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26176$as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26177 if test $libgfor_cv_have_pragma_weak = yes; then
26178
26179$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26180
26181 fi
26182 case "$host" in
26183 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26184
26185$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26186
26187 ;;
26188 esac
26189
e7854993 26190# Check out weakref support.
5e805e44 26191
e7854993
FXC
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26193$as_echo_n "checking whether the target supports weakref... " >&6; }
26194if test "${libgfor_cv_have_weakref+set}" = set; then :
5213506e 26195 $as_echo_n "(cached) " >&6
5e805e44
JJ
26196else
26197
e7854993
FXC
26198 save_CFLAGS="$CFLAGS"
26199 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26200 if test x$gcc_no_link = xyes; then
26201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26202fi
26203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44 26204/* end confdefs.h. */
de15ea94 26205
e7854993 26206static int mytoto (int) __attribute__((__weakref__("toto")));
de15ea94 26207
5e805e44
JJ
26208int
26209main ()
26210{
e7854993 26211return (mytoto != 0);
5e805e44
JJ
26212 ;
26213 return 0;
26214}
26215_ACEOF
e7854993
FXC
26216if ac_fn_c_try_link "$LINENO"; then :
26217 libgfor_cv_have_weakref=yes
5e805e44 26218else
e7854993 26219 libgfor_cv_have_weakref=no
5e805e44 26220fi
e7854993
FXC
26221rm -f core conftest.err conftest.$ac_objext \
26222 conftest$ac_exeext conftest.$ac_ext
26223 CFLAGS="$save_CFLAGS"
5e805e44 26224fi
e7854993
FXC
26225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26226$as_echo "$libgfor_cv_have_weakref" >&6; }
26227 if test $libgfor_cv_have_weakref = yes; then
5e805e44 26228
e7854993 26229$as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
5e805e44
JJ
26230
26231 fi
26232
10c682a0
FXC
26233# Various other checks on target
26234
5213506e
RW
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26236$as_echo_n "checking whether the target can unlink an open file... " >&6; }
26237if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26238 $as_echo_n "(cached) " >&6
10c682a0
FXC
26239else
26240
5213506e 26241 if test "$cross_compiling" = yes; then :
10c682a0
FXC
26242
26243case "${target}" in
6d26724a
RW
26244 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26245 *) libgfor_cv_have_unlink_open_file=yes;;
10c682a0
FXC
26246esac
26247else
5213506e 26248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10c682a0
FXC
26249/* end confdefs.h. */
26250
26251#include <errno.h>
26252#include <fcntl.h>
26253#include <unistd.h>
26254#include <sys/stat.h>
26255
26256int main ()
26257{
26258 int fd;
26259
42dfafa9 26260 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
10c682a0
FXC
26261 if (fd <= 0)
26262 return 0;
26263 if (unlink ("testfile") == -1)
26264 return 1;
26265 write (fd, "This is a test\n", 15);
26266 close (fd);
26267
42dfafa9 26268 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
10c682a0
FXC
26269 return 0;
26270 else
26271 return 1;
26272}
26273_ACEOF
5213506e 26274if ac_fn_c_try_run "$LINENO"; then :
6d26724a 26275 libgfor_cv_have_unlink_open_file=yes
10c682a0 26276else
5213506e 26277 libgfor_cv_have_unlink_open_file=no
10c682a0 26278fi
5213506e
RW
26279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26280 conftest.$ac_objext conftest.beam conftest.$ac_ext
10c682a0 26281fi
5213506e 26282
10c682a0 26283fi
5213506e
RW
26284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26285$as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
6d26724a 26286if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
10c682a0 26287
5213506e 26288$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
10c682a0
FXC
26289
26290fi
26291
3c127520
FXC
26292# Check whether line terminator is LF or CRLF
26293
5213506e
RW
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26295$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26296if test "${libgfor_cv_have_crlf+set}" = set; then :
26297 $as_echo_n "(cached) " >&6
3c127520
FXC
26298else
26299
5213506e 26300 if test "$cross_compiling" = yes; then :
3c127520
FXC
26301
26302case "${target}" in
6d26724a
RW
26303 *mingw*) libgfor_cv_have_crlf=yes ;;
26304 *) libgfor_cv_have_crlf=no;;
3c127520
FXC
26305esac
26306else
5213506e 26307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3c127520
FXC
26308/* end confdefs.h. */
26309
26310/* This test program should exit with status 0 if system uses a CRLF as
26311 line terminator, and status 1 otherwise.
26312 Since it is used to check for mingw systems, and should return 0 in any
26313 other case, in case of a failure we will not use CRLF. */
26314#include <sys/stat.h>
26315#include <stdlib.h>
26316#include <fcntl.h>
26317#include <stdio.h>
26318
26319int main ()
26320{
26321#ifndef O_BINARY
26322 exit(1);
26323#else
26324 int fd, bytes;
26325 char buff[5];
26326
26327 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26328 if (fd < 0)
26329 exit(1);
26330 if (write (fd, "\n", 1) < 0)
26331 perror ("write");
26332
26333 close (fd);
26334
26335 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26336 exit(1);
26337 bytes = read (fd, buff, 5);
26338 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26339 exit(0);
26340 else
26341 exit(1);
26342#endif
26343}
26344_ACEOF
5213506e 26345if ac_fn_c_try_run "$LINENO"; then :
6d26724a 26346 libgfor_cv_have_crlf=yes
3c127520 26347else
5213506e 26348 libgfor_cv_have_crlf=no
3c127520 26349fi
5213506e
RW
26350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26351 conftest.$ac_objext conftest.beam conftest.$ac_ext
3c127520 26352fi
5213506e 26353
3c127520 26354fi
5213506e
RW
26355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26356$as_echo "$libgfor_cv_have_crlf" >&6; }
6d26724a 26357if test x"$libgfor_cv_have_crlf" = xyes; then
3c127520 26358
5213506e 26359$as_echo "#define HAVE_CRLF 1" >>confdefs.h
3c127520
FXC
26360
26361fi
26362
31cfd832
TK
26363# Check whether we support AVX extensions
26364
26365 ac_save_CFLAGS="$CFLAGS"
26366 CFLAGS="-O2 -mavx"
26367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26368/* end confdefs.h. */
26369
26370 void _mm256_zeroall (void)
26371 {
26372 __builtin_ia32_vzeroall ();
26373 }
26374int
26375main ()
26376{
26377
26378 ;
26379 return 0;
26380}
26381_ACEOF
26382if ac_fn_c_try_compile "$LINENO"; then :
26383
26384$as_echo "#define HAVE_AVX 1" >>confdefs.h
26385
26386fi
26387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26388 CFLAGS="$ac_save_CFLAGS"
26389
26390
26391# Check wether we support AVX2 extensions
26392
26393 ac_save_CFLAGS="$CFLAGS"
26394 CFLAGS="-O2 -mavx2"
26395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26396/* end confdefs.h. */
26397
26398 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26399 __v4di
26400 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26401 {
26402 return __builtin_ia32_andnotsi256 (__X, __Y);
26403 }
26404int
26405main ()
26406{
26407
26408 ;
26409 return 0;
26410}
26411_ACEOF
26412if ac_fn_c_try_compile "$LINENO"; then :
26413
26414$as_echo "#define HAVE_AVX2 1" >>confdefs.h
26415
26416fi
26417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26418 CFLAGS="$ac_save_CFLAGS"
26419
26420
26421# Check wether we support AVX512f extensions
26422
26423 ac_save_CFLAGS="$CFLAGS"
26424 CFLAGS="-O2 -mavx512f"
26425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26426/* end confdefs.h. */
26427
26428 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26429 __m512d _mm512_add (__m512d a)
26430 {
9db0a8c2
JJ
26431 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26432 /* For -m64/-mx32 also verify that code will work even if
26433 the target uses call saved zmm16+ and needs to emit
26434 unwind info for them (e.g. on mingw). See PR79127. */
26435#ifdef __x86_64__
26436 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
26437#endif
26438 return b;
31cfd832
TK
26439 }
26440int
26441main ()
26442{
26443
26444 ;
26445 return 0;
26446}
26447_ACEOF
26448if ac_fn_c_try_compile "$LINENO"; then :
26449
26450$as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26451
26452fi
26453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26454 CFLAGS="$ac_save_CFLAGS"
26455
26456
1d5cf7fc
TK
26457# Check for FMA3 extensions
26458
26459 ac_save_CFLAGS="$CFLAGS"
26460 CFLAGS="-O2 -mfma -mno-fma4"
26461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26462/* end confdefs.h. */
26463
9698e1bb
RO
26464 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26465 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26466 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
1d5cf7fc 26467 {
9698e1bb
RO
26468 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26469 (__v4sf)__B,
26470 (__v4sf)__C);
1d5cf7fc
TK
26471 }
26472int
26473main ()
26474{
26475
26476 ;
26477 return 0;
26478}
26479_ACEOF
26480if ac_fn_c_try_compile "$LINENO"; then :
26481
26482$as_echo "#define HAVE_FMA3 1" >>confdefs.h
26483
26484fi
26485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26486 CFLAGS="$ac_save_CFLAGS"
26487
26488
26489# Check for FMA4 extensions
26490
26491 ac_save_CFLAGS="$CFLAGS"
26492 CFLAGS="-O2 -mfma4 -mno-fma"
26493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26494/* end confdefs.h. */
26495
9698e1bb
RO
26496 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26497 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26498 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
1d5cf7fc 26499 {
9698e1bb
RO
26500 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26501 (__v4sf)__B,
26502 (__v4sf)__C);
1d5cf7fc
TK
26503 }
26504int
26505main ()
26506{
26507
26508 ;
26509 return 0;
26510}
26511_ACEOF
26512if ac_fn_c_try_compile "$LINENO"; then :
26513
26514$as_echo "#define HAVE_FMA4 1" >>confdefs.h
26515
26516fi
26517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26518 CFLAGS="$ac_save_CFLAGS"
26519
26520
26521# Check if AVX128 works
26522
26523 ac_save_CFLAGS="$CFLAGS"
26524 CFLAGS="-O2 -mavx -mprefer-avx128"
26525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26526/* end confdefs.h. */
26527
26528 void foo()
26529 {
26530 }
26531int
26532main ()
26533{
26534
26535 ;
26536 return 0;
26537}
26538_ACEOF
26539if ac_fn_c_try_compile "$LINENO"; then :
26540
26541$as_echo "#define HAVE_AVX128 1" >>confdefs.h
26542
26543 if true; then
26544 HAVE_AVX128_TRUE=
26545 HAVE_AVX128_FALSE='#'
26546else
26547 HAVE_AVX128_TRUE='#'
26548 HAVE_AVX128_FALSE=
26549fi
26550
5596d26a
TK
26551else
26552 if false; then
26553 HAVE_AVX128_TRUE=
26554 HAVE_AVX128_FALSE='#'
26555else
26556 HAVE_AVX128_TRUE='#'
26557 HAVE_AVX128_FALSE=
26558fi
26559
1d5cf7fc
TK
26560fi
26561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26562 CFLAGS="$ac_save_CFLAGS"
26563
26564
3c36aa6b
JJ
26565# Determine what GCC version number to use in filesystem paths.
26566
26567 get_gcc_base_ver="cat"
26568
26569# Check whether --with-gcc-major-version-only was given.
26570if test "${with_gcc_major_version_only+set}" = set; then :
26571 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 26572 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
26573 fi
26574
26575fi
26576
26577
26578
26579
6de9cd9a
DN
26580cat >confcache <<\_ACEOF
26581# This file is a shell script that caches the results of configure
26582# tests run on this system so they can be shared between configure
26583# scripts and configure runs, see configure's option --config-cache.
26584# It is not useful on other systems. If it contains results you don't
26585# want to keep, you may remove or edit it.
26586#
26587# config.status only pays attention to the cache file if you give it
26588# the --recheck option to rerun configure.
26589#
26590# `ac_cv_env_foo' variables (set or unset) will be overridden when
26591# loading this file, other *unset* `ac_cv_foo' will be assigned the
26592# following values.
26593
26594_ACEOF
26595
26596# The following way of writing the cache mishandles newlines in values,
26597# but we know of no workaround that is simple, portable, and efficient.
5213506e 26598# So, we kill variables containing newlines.
6de9cd9a
DN
26599# Ultrix sh set writes to stderr and can't be redirected directly,
26600# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
26601(
26602 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26603 eval ac_val=\$$ac_var
26604 case $ac_val in #(
26605 *${as_nl}*)
26606 case $ac_var in #(
26607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26608$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26609 esac
26610 case $ac_var in #(
26611 _ | IFS | as_nl) ;; #(
26612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26613 *) { eval $ac_var=; unset $ac_var;} ;;
26614 esac ;;
26615 esac
26616 done
26617
6de9cd9a 26618 (set) 2>&1 |
5213506e
RW
26619 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26620 *${as_nl}ac_space=\ *)
26621 # `set' does not quote correctly, so add quotes: double-quote
26622 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
26623 sed -n \
26624 "s/'/'\\\\''/g;
26625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 26626 ;; #(
6de9cd9a
DN
26627 *)
26628 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 26629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 26630 ;;
5213506e
RW
26631 esac |
26632 sort
26633) |
6de9cd9a 26634 sed '
5213506e 26635 /^ac_cv_env_/b end
6de9cd9a 26636 t clear
5213506e 26637 :clear
6de9cd9a
DN
26638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26639 t end
5213506e
RW
26640 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26641 :end' >>confcache
26642if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26643 if test -w "$cache_file"; then
26644 test "x$cache_file" != "x/dev/null" &&
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26646$as_echo "$as_me: updating cache $cache_file" >&6;}
6de9cd9a
DN
26647 cat confcache >$cache_file
26648 else
5213506e
RW
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26650$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
26651 fi
26652fi
26653rm -f confcache
26654
96b8a615
AJ
26655if test ${multilib} = yes; then
26656 multilib_arg="--enable-multilib"
6de9cd9a 26657else
96b8a615 26658 multilib_arg=
6de9cd9a 26659fi
6de9cd9a 26660
1ec601bf
FXC
26661# Write our Makefile and spec file.
26662ac_config_files="$ac_config_files Makefile libgfortran.spec"
96b8a615 26663
6de9cd9a
DN
26664cat >confcache <<\_ACEOF
26665# This file is a shell script that caches the results of configure
26666# tests run on this system so they can be shared between configure
26667# scripts and configure runs, see configure's option --config-cache.
26668# It is not useful on other systems. If it contains results you don't
26669# want to keep, you may remove or edit it.
26670#
26671# config.status only pays attention to the cache file if you give it
26672# the --recheck option to rerun configure.
26673#
26674# `ac_cv_env_foo' variables (set or unset) will be overridden when
26675# loading this file, other *unset* `ac_cv_foo' will be assigned the
26676# following values.
26677
26678_ACEOF
26679
26680# The following way of writing the cache mishandles newlines in values,
26681# but we know of no workaround that is simple, portable, and efficient.
5213506e 26682# So, we kill variables containing newlines.
6de9cd9a
DN
26683# Ultrix sh set writes to stderr and can't be redirected directly,
26684# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
26685(
26686 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26687 eval ac_val=\$$ac_var
26688 case $ac_val in #(
26689 *${as_nl}*)
26690 case $ac_var in #(
26691 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26692$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26693 esac
26694 case $ac_var in #(
26695 _ | IFS | as_nl) ;; #(
26696 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26697 *) { eval $ac_var=; unset $ac_var;} ;;
26698 esac ;;
26699 esac
26700 done
26701
6de9cd9a 26702 (set) 2>&1 |
5213506e
RW
26703 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26704 *${as_nl}ac_space=\ *)
26705 # `set' does not quote correctly, so add quotes: double-quote
26706 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
26707 sed -n \
26708 "s/'/'\\\\''/g;
26709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 26710 ;; #(
6de9cd9a
DN
26711 *)
26712 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 26713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 26714 ;;
5213506e
RW
26715 esac |
26716 sort
26717) |
6de9cd9a 26718 sed '
5213506e 26719 /^ac_cv_env_/b end
6de9cd9a 26720 t clear
5213506e 26721 :clear
6de9cd9a
DN
26722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26723 t end
5213506e
RW
26724 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26725 :end' >>confcache
26726if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26727 if test -w "$cache_file"; then
26728 test "x$cache_file" != "x/dev/null" &&
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26730$as_echo "$as_me: updating cache $cache_file" >&6;}
6de9cd9a
DN
26731 cat confcache >$cache_file
26732 else
5213506e
RW
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26734$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
26735 fi
26736fi
26737rm -f confcache
26738
26739test "x$prefix" = xNONE && prefix=$ac_default_prefix
26740# Let make expand exec_prefix.
26741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26742
6de9cd9a
DN
26743DEFS=-DHAVE_CONFIG_H
26744
26745ac_libobjs=
26746ac_ltlibobjs=
26747for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26748 # 1. Remove the extension, and $U if already installed.
5213506e
RW
26749 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26750 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26751 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26752 # will be set to the directory where LIBOBJS objects are built.
26753 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26754 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6de9cd9a
DN
26755done
26756LIBOBJS=$ac_libobjs
26757
26758LTLIBOBJS=$ac_ltlibobjs
26759
26760
b808ac33 26761if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
5213506e
RW
26762 as_fn_error "conditional \"onestep\" was never defined.
26763Usually this means the macro was only invoked conditionally." "$LINENO" 5
26764fi
26765 if test -n "$EXEEXT"; then
26766 am__EXEEXT_TRUE=
26767 am__EXEEXT_FALSE='#'
26768else
26769 am__EXEEXT_TRUE='#'
26770 am__EXEEXT_FALSE=
b808ac33 26771fi
5213506e 26772
6de9cd9a 26773if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
26774 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26775Usually this means the macro was only invoked conditionally." "$LINENO" 5
6de9cd9a 26776fi
679c0f9a 26777if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
26778 as_fn_error "conditional \"AMDEP\" was never defined.
26779Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a
TT
26780fi
26781if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
26782 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26783Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a 26784fi
21be0a5a
JB
26785if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26786 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26787Usually this means the macro was only invoked conditionally." "$LINENO" 5
26788fi
c0e7e2bf 26789if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
5213506e
RW
26790 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26791Usually this means the macro was only invoked conditionally." "$LINENO" 5
c0e7e2bf 26792fi
49ea7a0e
RO
26793if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26794 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26795Usually this means the macro was only invoked conditionally." "$LINENO" 5
26796fi
26797if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26798 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26799Usually this means the macro was only invoked conditionally." "$LINENO" 5
26800fi
ee95f928
BS
26801if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
26802 as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined.
26803Usually this means the macro was only invoked conditionally." "$LINENO" 5
26804fi
66dbcf2d
RO
26805if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
26806 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
26807Usually this means the macro was only invoked conditionally." "$LINENO" 5
26808fi
1ec601bf
FXC
26809if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26810 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26811Usually this means the macro was only invoked conditionally." "$LINENO" 5
26812fi
8b198102
FXC
26813if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26814 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26815Usually this means the macro was only invoked conditionally." "$LINENO" 5
26816fi
1d5cf7fc
TK
26817if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
26818 as_fn_error "conditional \"HAVE_AVX128\" was never defined.
26819Usually this means the macro was only invoked conditionally." "$LINENO" 5
26820fi
5596d26a
TK
26821if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
26822 as_fn_error "conditional \"HAVE_AVX128\" was never defined.
26823Usually this means the macro was only invoked conditionally." "$LINENO" 5
26824fi
6de9cd9a
DN
26825
26826: ${CONFIG_STATUS=./config.status}
5213506e 26827ac_write_fail=0
6de9cd9a
DN
26828ac_clean_files_save=$ac_clean_files
26829ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
26830{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26831$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26832as_write_fail=0
26833cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6de9cd9a
DN
26834#! $SHELL
26835# Generated by $as_me.
26836# Run this file to recreate the current configuration.
26837# Compiler output produced by configure, useful for debugging
26838# configure, is in config.log if it exists.
26839
26840debug=false
26841ac_cs_recheck=false
26842ac_cs_silent=false
6de9cd9a 26843
5213506e
RW
26844SHELL=\${CONFIG_SHELL-$SHELL}
26845export SHELL
26846_ASEOF
26847cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26848## -------------------- ##
26849## M4sh Initialization. ##
26850## -------------------- ##
26851
26852# Be more Bourne compatible
26853DUALCASE=1; export DUALCASE # for MKS sh
26854if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6de9cd9a
DN
26855 emulate sh
26856 NULLCMD=:
5213506e 26857 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6de9cd9a
DN
26858 # is contrary to our usage. Disable this feature.
26859 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
26860 setopt NO_GLOB_SUBST
26861else
26862 case `(set -o) 2>/dev/null` in #(
26863 *posix*) :
26864 set -o posix ;; #(
26865 *) :
26866 ;;
26867esac
6de9cd9a 26868fi
6de9cd9a 26869
5213506e
RW
26870
26871as_nl='
26872'
26873export as_nl
26874# Printing a long string crashes Solaris 7 /usr/bin/printf.
26875as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26876as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26877as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26878# Prefer a ksh shell builtin over an external printf program on Solaris,
26879# but without wasting forks for bash or zsh.
26880if test -z "$BASH_VERSION$ZSH_VERSION" \
26881 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26882 as_echo='print -r --'
26883 as_echo_n='print -rn --'
26884elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26885 as_echo='printf %s\n'
26886 as_echo_n='printf %s'
26887else
26888 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26889 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26890 as_echo_n='/usr/ucb/echo -n'
26891 else
26892 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26893 as_echo_n_body='eval
26894 arg=$1;
26895 case $arg in #(
26896 *"$as_nl"*)
26897 expr "X$arg" : "X\\(.*\\)$as_nl";
26898 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26899 esac;
26900 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26901 '
26902 export as_echo_n_body
26903 as_echo_n='sh -c $as_echo_n_body as_echo'
26904 fi
26905 export as_echo_body
26906 as_echo='sh -c $as_echo_body as_echo'
26907fi
26908
26909# The user is always right.
26910if test "${PATH_SEPARATOR+set}" != set; then
26911 PATH_SEPARATOR=:
26912 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26913 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26914 PATH_SEPARATOR=';'
26915 }
6de9cd9a
DN
26916fi
26917
26918
5213506e
RW
26919# IFS
26920# We need space, tab and new line, in precisely that order. Quoting is
26921# there to prevent editors from complaining about space-tab.
26922# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26923# splitting by setting IFS to empty value.)
26924IFS=" "" $as_nl"
26925
26926# Find who we are. Look in the path if we contain no directory separator.
26927case $0 in #((
26928 *[\\/]* ) as_myself=$0 ;;
26929 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26930for as_dir in $PATH
26931do
26932 IFS=$as_save_IFS
26933 test -z "$as_dir" && as_dir=.
26934 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26935 done
26936IFS=$as_save_IFS
26937
26938 ;;
26939esac
26940# We did not find ourselves, most probably we were run as `sh COMMAND'
26941# in which case we are not to be found in the path.
26942if test "x$as_myself" = x; then
26943 as_myself=$0
26944fi
26945if test ! -f "$as_myself"; then
26946 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26947 exit 1
26948fi
26949
26950# Unset variables that we do not need and which cause bugs (e.g. in
26951# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26952# suppresses any "Segmentation fault" message there. '((' could
26953# trigger a bug in pdksh 5.2.14.
26954for as_var in BASH_ENV ENV MAIL MAILPATH
26955do eval test x\${$as_var+set} = xset \
26956 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26957done
6de9cd9a
DN
26958PS1='$ '
26959PS2='> '
26960PS4='+ '
26961
26962# NLS nuisances.
5213506e
RW
26963LC_ALL=C
26964export LC_ALL
26965LANGUAGE=C
26966export LANGUAGE
26967
26968# CDPATH.
26969(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26970
26971
26972# as_fn_error ERROR [LINENO LOG_FD]
26973# ---------------------------------
26974# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26975# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26976# script with status $?, using 1 if that was 0.
26977as_fn_error ()
26978{
26979 as_status=$?; test $as_status -eq 0 && as_status=1
26980 if test "$3"; then
26981 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26982 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6de9cd9a 26983 fi
5213506e
RW
26984 $as_echo "$as_me: error: $1" >&2
26985 as_fn_exit $as_status
26986} # as_fn_error
26987
26988
26989# as_fn_set_status STATUS
26990# -----------------------
26991# Set $? to STATUS, without forking.
26992as_fn_set_status ()
26993{
26994 return $1
26995} # as_fn_set_status
26996
26997# as_fn_exit STATUS
26998# -----------------
26999# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27000as_fn_exit ()
27001{
27002 set +e
27003 as_fn_set_status $1
27004 exit $1
27005} # as_fn_exit
27006
27007# as_fn_unset VAR
27008# ---------------
27009# Portably unset VAR.
27010as_fn_unset ()
27011{
27012 { eval $1=; unset $1;}
27013}
27014as_unset=as_fn_unset
27015# as_fn_append VAR VALUE
27016# ----------------------
27017# Append the text in VALUE to the end of the definition contained in VAR. Take
27018# advantage of any shell optimizations that allow amortized linear growth over
27019# repeated appends, instead of the typical quadratic growth present in naive
27020# implementations.
27021if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27022 eval 'as_fn_append ()
27023 {
27024 eval $1+=\$2
27025 }'
27026else
27027 as_fn_append ()
27028 {
27029 eval $1=\$$1\$2
27030 }
27031fi # as_fn_append
27032
27033# as_fn_arith ARG...
27034# ------------------
27035# Perform arithmetic evaluation on the ARGs, and store the result in the
27036# global $as_val. Take advantage of shells that can avoid forks. The arguments
27037# must be portable across $(()) and expr.
27038if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27039 eval 'as_fn_arith ()
27040 {
27041 as_val=$(( $* ))
27042 }'
27043else
27044 as_fn_arith ()
27045 {
27046 as_val=`expr "$@" || test $? -eq 1`
27047 }
27048fi # as_fn_arith
6de9cd9a 27049
5213506e
RW
27050
27051if expr a : '\(a\)' >/dev/null 2>&1 &&
27052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
27053 as_expr=expr
27054else
27055 as_expr=false
27056fi
27057
5213506e 27058if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
27059 as_basename=basename
27060else
27061 as_basename=false
27062fi
27063
5213506e
RW
27064if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27065 as_dirname=dirname
27066else
27067 as_dirname=false
27068fi
6de9cd9a 27069
5213506e 27070as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
27071$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27072 X"$0" : 'X\(//\)$' \| \
5213506e
RW
27073 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27074$as_echo X/"$0" |
27075 sed '/^.*\/\([^/][^/]*\)\/*$/{
27076 s//\1/
27077 q
27078 }
27079 /^X\/\(\/\/\)$/{
27080 s//\1/
27081 q
27082 }
27083 /^X\/\(\/\).*/{
27084 s//\1/
27085 q
27086 }
27087 s/.*/./; q'`
38d24731 27088
38d24731
RW
27089# Avoid depending upon Character Ranges.
27090as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27091as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27092as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27093as_cr_digits='0123456789'
27094as_cr_alnum=$as_cr_Letters$as_cr_digits
27095
5213506e
RW
27096ECHO_C= ECHO_N= ECHO_T=
27097case `echo -n x` in #(((((
27098-n*)
27099 case `echo 'xy\c'` in
27100 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27101 xy) ECHO_C='\c';;
27102 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27103 ECHO_T=' ';;
27104 esac;;
27105*)
27106 ECHO_N='-n';;
6de9cd9a
DN
27107esac
27108
5213506e
RW
27109rm -f conf$$ conf$$.exe conf$$.file
27110if test -d conf$$.dir; then
27111 rm -f conf$$.dir/conf$$.file
6de9cd9a 27112else
5213506e
RW
27113 rm -f conf$$.dir
27114 mkdir conf$$.dir 2>/dev/null
6de9cd9a 27115fi
5213506e
RW
27116if (echo >conf$$.file) 2>/dev/null; then
27117 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 27118 as_ln_s='ln -s'
5213506e
RW
27119 # ... but there are two gotchas:
27120 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27121 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27122 # In both cases, we have to default to `cp -p'.
27123 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27124 as_ln_s='cp -p'
27125 elif ln conf$$.file conf$$ 2>/dev/null; then
27126 as_ln_s=ln
27127 else
27128 as_ln_s='cp -p'
38d24731 27129 fi
6de9cd9a
DN
27130else
27131 as_ln_s='cp -p'
27132fi
5213506e
RW
27133rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27134rmdir conf$$.dir 2>/dev/null
27135
27136
27137# as_fn_mkdir_p
27138# -------------
27139# Create "$as_dir" as a directory, including parents if necessary.
27140as_fn_mkdir_p ()
27141{
27142
27143 case $as_dir in #(
27144 -*) as_dir=./$as_dir;;
27145 esac
27146 test -d "$as_dir" || eval $as_mkdir_p || {
27147 as_dirs=
27148 while :; do
27149 case $as_dir in #(
27150 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27151 *) as_qdir=$as_dir;;
27152 esac
27153 as_dirs="'$as_qdir' $as_dirs"
27154 as_dir=`$as_dirname -- "$as_dir" ||
27155$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27156 X"$as_dir" : 'X\(//\)[^/]' \| \
27157 X"$as_dir" : 'X\(//\)$' \| \
27158 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27159$as_echo X"$as_dir" |
27160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27161 s//\1/
27162 q
27163 }
27164 /^X\(\/\/\)[^/].*/{
27165 s//\1/
27166 q
27167 }
27168 /^X\(\/\/\)$/{
27169 s//\1/
27170 q
27171 }
27172 /^X\(\/\).*/{
27173 s//\1/
27174 q
27175 }
27176 s/.*/./; q'`
27177 test -d "$as_dir" && break
27178 done
27179 test -z "$as_dirs" || eval "mkdir $as_dirs"
27180 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27181
6de9cd9a 27182
5213506e 27183} # as_fn_mkdir_p
6de9cd9a 27184if mkdir -p . 2>/dev/null; then
5213506e 27185 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
27186else
27187 test -d ./-p && rmdir ./-p
27188 as_mkdir_p=false
27189fi
27190
5213506e
RW
27191if test -x / >/dev/null 2>&1; then
27192 as_test_x='test -x'
27193else
27194 if ls -dL / >/dev/null 2>&1; then
27195 as_ls_L_option=L
27196 else
27197 as_ls_L_option=
27198 fi
27199 as_test_x='
27200 eval sh -c '\''
27201 if test -d "$1"; then
27202 test -d "$1/.";
27203 else
27204 case $1 in #(
27205 -*)set "./$1";;
27206 esac;
27207 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27208 ???[sx]*):;;*)false;;esac;fi
27209 '\'' sh
27210 '
27211fi
27212as_executable_p=$as_test_x
6de9cd9a
DN
27213
27214# Sed expression to map a string onto a valid CPP name.
27215as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27216
27217# Sed expression to map a string onto a valid variable name.
27218as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27219
27220
6de9cd9a 27221exec 6>&1
5213506e
RW
27222## ----------------------------------- ##
27223## Main body of $CONFIG_STATUS script. ##
27224## ----------------------------------- ##
27225_ASEOF
27226test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27227
27228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27229# Save the log message, to keep $0 and so on meaningful, and to
6de9cd9a 27230# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
27231# values after options handling.
27232ac_log="
0dce3ca1 27233This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
5213506e 27234generated by GNU Autoconf 2.64. Invocation command line was
6de9cd9a
DN
27235
27236 CONFIG_FILES = $CONFIG_FILES
27237 CONFIG_HEADERS = $CONFIG_HEADERS
27238 CONFIG_LINKS = $CONFIG_LINKS
27239 CONFIG_COMMANDS = $CONFIG_COMMANDS
27240 $ $0 $@
27241
5213506e
RW
27242on `(hostname || uname -n) 2>/dev/null | sed 1q`
27243"
27244
6de9cd9a
DN
27245_ACEOF
27246
5213506e
RW
27247case $ac_config_files in *"
27248"*) set x $ac_config_files; shift; ac_config_files=$*;;
27249esac
78511f8b 27250
5213506e
RW
27251case $ac_config_headers in *"
27252"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27253esac
38d24731 27254
38d24731 27255
5213506e
RW
27256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27257# Files that config.status was made for.
27258config_files="$ac_config_files"
27259config_headers="$ac_config_headers"
27260config_commands="$ac_config_commands"
6de9cd9a 27261
5213506e 27262_ACEOF
38d24731 27263
5213506e 27264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a 27265ac_cs_usage="\
5213506e
RW
27266\`$as_me' instantiates files and other configuration actions
27267from templates according to the current configuration. Unless the files
27268and actions are specified as TAGs, all are instantiated by default.
6de9cd9a 27269
5213506e 27270Usage: $0 [OPTION]... [TAG]...
6de9cd9a
DN
27271
27272 -h, --help print this help, then exit
5213506e
RW
27273 -V, --version print version number and configuration settings, then exit
27274 -q, --quiet, --silent
27275 do not print progress messages
6de9cd9a
DN
27276 -d, --debug don't remove temporary files
27277 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
27278 --file=FILE[:TEMPLATE]
27279 instantiate the configuration file FILE
27280 --header=FILE[:TEMPLATE]
27281 instantiate the configuration header FILE
6de9cd9a
DN
27282
27283Configuration files:
27284$config_files
27285
27286Configuration headers:
27287$config_headers
27288
27289Configuration commands:
27290$config_commands
27291
5213506e
RW
27292Report bugs to the package provider.
27293GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27294General help using GNU software: <http://www.gnu.org/gethelp/>."
38d24731 27295
5213506e
RW
27296_ACEOF
27297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 27298ac_cs_version="\\
0dce3ca1 27299GNU Fortran Runtime Library config.status 0.3
5213506e
RW
27300configured by $0, generated by GNU Autoconf 2.64,
27301 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6de9cd9a 27302
5213506e 27303Copyright (C) 2009 Free Software Foundation, Inc.
6de9cd9a
DN
27304This config.status script is free software; the Free Software Foundation
27305gives unlimited permission to copy, distribute and modify it."
5213506e
RW
27306
27307ac_pwd='$ac_pwd'
27308srcdir='$srcdir'
27309INSTALL='$INSTALL'
27310MKDIR_P='$MKDIR_P'
27311AWK='$AWK'
27312test -n "\$AWK" || AWK=awk
6de9cd9a
DN
27313_ACEOF
27314
5213506e
RW
27315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27316# The default lists apply if the user does not specify any file.
6de9cd9a
DN
27317ac_need_defaults=:
27318while test $# != 0
27319do
27320 case $1 in
27321 --*=*)
5213506e
RW
27322 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27323 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6de9cd9a
DN
27324 ac_shift=:
27325 ;;
5213506e 27326 *)
6de9cd9a
DN
27327 ac_option=$1
27328 ac_optarg=$2
27329 ac_shift=shift
27330 ;;
6de9cd9a
DN
27331 esac
27332
27333 case $ac_option in
27334 # Handling of the options.
6de9cd9a
DN
27335 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27336 ac_cs_recheck=: ;;
5213506e
RW
27337 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27338 $as_echo "$ac_cs_version"; exit ;;
27339 --debug | --debu | --deb | --de | --d | -d )
6de9cd9a
DN
27340 debug=: ;;
27341 --file | --fil | --fi | --f )
27342 $ac_shift
5213506e
RW
27343 case $ac_optarg in
27344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27345 esac
27346 as_fn_append CONFIG_FILES " '$ac_optarg'"
6de9cd9a
DN
27347 ac_need_defaults=false;;
27348 --header | --heade | --head | --hea )
27349 $ac_shift
5213506e
RW
27350 case $ac_optarg in
27351 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27352 esac
27353 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6de9cd9a 27354 ac_need_defaults=false;;
5213506e
RW
27355 --he | --h)
27356 # Conflict between --help and --header
27357 as_fn_error "ambiguous option: \`$1'
27358Try \`$0 --help' for more information.";;
27359 --help | --hel | -h )
27360 $as_echo "$ac_cs_usage"; exit ;;
6de9cd9a
DN
27361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27362 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27363 ac_cs_silent=: ;;
27364
27365 # This is an error.
5213506e
RW
27366 -*) as_fn_error "unrecognized option: \`$1'
27367Try \`$0 --help' for more information." ;;
6de9cd9a 27368
5213506e
RW
27369 *) as_fn_append ac_config_targets " $1"
27370 ac_need_defaults=false ;;
6de9cd9a
DN
27371
27372 esac
27373 shift
27374done
27375
27376ac_configure_extra_args=
27377
27378if $ac_cs_silent; then
27379 exec 6>/dev/null
27380 ac_configure_extra_args="$ac_configure_extra_args --silent"
27381fi
27382
27383_ACEOF
5213506e 27384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 27385if \$ac_cs_recheck; then
5213506e
RW
27386 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27387 shift
27388 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27389 CONFIG_SHELL='$SHELL'
27390 export CONFIG_SHELL
27391 exec "\$@"
6de9cd9a
DN
27392fi
27393
1cf3d07d 27394_ACEOF
5213506e
RW
27395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27396exec 5>>config.log
27397{
27398 echo
27399 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27400## Running $as_me. ##
27401_ASBOX
27402 $as_echo "$ac_log"
27403} >&5
1cf3d07d 27404
5213506e
RW
27405_ACEOF
27406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 27407#
5213506e 27408# INIT-COMMANDS
1cf3d07d
SE
27409#
27410
1cf3d07d
SE
27411srcdir="$srcdir"
27412host="$host"
27413target="$target"
27414with_multisubdir="$with_multisubdir"
27415with_multisrctop="$with_multisrctop"
27416with_target_subdir="$with_target_subdir"
27417ac_configure_args="${multilib_arg} ${ac_configure_args}"
27418multi_basedir="$multi_basedir"
27419CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27420CC="$CC"
2017c370
JB
27421CXX="$CXX"
27422GFORTRAN="$GFORTRAN"
1cf3d07d
SE
27423AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27424
27425
27426# The HP-UX ksh and POSIX shell print the target directory to stdout
27427# if CDPATH is set.
27428(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27429
27430sed_quote_subst='$sed_quote_subst'
27431double_quote_subst='$double_quote_subst'
27432delay_variable_subst='$delay_variable_subst'
66dbcf2d
RO
27433SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27434Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27435GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27436EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27437FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27438SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27439ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27440LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
27441macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27442macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27443enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27444enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27445pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27446enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
27447host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27448host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27449host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27450build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27451build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27452build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
27453NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27454LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27455max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27456ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27457exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27458lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27459lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27460lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27461reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27462reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27463OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27464deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27465file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27466AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27467AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27468STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27469RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27470old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27471old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27472old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27473lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27474CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27475CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27476compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27477GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27478lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27479lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27480lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27481lt_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"`'
27482objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27483MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27484lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27485lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27486lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27487lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27488lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27489need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27490DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27491NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27492LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27493OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27494OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27495libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27496shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27497extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27498archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27499enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27500export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27501whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27502compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27503old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27504old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27505archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27506archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27507module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27508module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27509with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27510allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27511no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27512hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27513hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27514hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27515hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27516hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27517hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27518hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27519hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27520inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27521link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27522fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27523always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27524export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27525exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27526include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27527prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27528file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27529variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27530need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27531need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27532version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27533runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27534shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27535shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27536libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27537library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27538soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27539install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27540postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27541postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27542finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27543finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27544hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27545sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27546sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27547hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27548enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27549enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27550enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27551old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27552striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27553compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27554predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27555postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27556predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27557postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27558compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27559LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27560reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27561reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27562old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27563compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27564GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27565lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27566lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27567lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27568lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27569lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27570archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27571enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27572export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27573whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27574compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27575old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27576old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27577archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27578archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27579module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27580module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27581with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27582allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27583no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27584hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27585hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27586hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27587hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27588hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27589hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27590hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27591hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27592inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27593link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27594fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27595always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27596export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27597exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27598include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27599prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27600file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27601hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27602compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27603predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27604postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27605predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27606postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27607compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
27608
27609LTCC='$LTCC'
27610LTCFLAGS='$LTCFLAGS'
27611compiler='$compiler_DEFAULT'
27612
43e02a8a
RW
27613# A function that is used when there is no print builtin or printf.
27614func_fallback_echo ()
27615{
27616 eval 'cat <<_LTECHO_EOF
27617\$1
27618_LTECHO_EOF'
27619}
27620
1cf3d07d 27621# Quote evaled strings.
66dbcf2d 27622for var in SED \
1cf3d07d
SE
27623GREP \
27624EGREP \
27625FGREP \
66dbcf2d
RO
27626SHELL \
27627ECHO \
1cf3d07d
SE
27628LD \
27629NM \
27630LN_S \
27631lt_SP2NL \
27632lt_NL2SP \
27633reload_flag \
d58dead8 27634OBJDUMP \
1cf3d07d
SE
27635deplibs_check_method \
27636file_magic_cmd \
27637AR \
27638AR_FLAGS \
27639STRIP \
27640RANLIB \
27641CC \
27642CFLAGS \
27643compiler \
27644lt_cv_sys_global_symbol_pipe \
27645lt_cv_sys_global_symbol_to_cdecl \
27646lt_cv_sys_global_symbol_to_c_name_address \
d58dead8 27647lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
27648lt_prog_compiler_no_builtin_flag \
27649lt_prog_compiler_wl \
27650lt_prog_compiler_pic \
27651lt_prog_compiler_static \
27652lt_cv_prog_compiler_c_o \
27653need_locks \
d58dead8
PG
27654DSYMUTIL \
27655NMEDIT \
27656LIPO \
27657OTOOL \
27658OTOOL64 \
1cf3d07d
SE
27659shrext_cmds \
27660export_dynamic_flag_spec \
27661whole_archive_flag_spec \
27662compiler_needs_object \
27663with_gnu_ld \
27664allow_undefined_flag \
27665no_undefined_flag \
27666hardcode_libdir_flag_spec \
27667hardcode_libdir_flag_spec_ld \
27668hardcode_libdir_separator \
27669fix_srcfile_path \
27670exclude_expsyms \
27671include_expsyms \
27672file_list_spec \
27673variables_saved_for_relink \
27674libname_spec \
27675library_names_spec \
27676soname_spec \
43e02a8a 27677install_override_mode \
1cf3d07d
SE
27678finish_eval \
27679old_striplib \
27680striplib \
d58dead8 27681compiler_lib_search_dirs \
1cf3d07d
SE
27682predep_objects \
27683postdep_objects \
27684predeps \
27685postdeps \
27686compiler_lib_search_path \
27687LD_FC \
43e02a8a 27688reload_flag_FC \
1cf3d07d
SE
27689compiler_FC \
27690lt_prog_compiler_no_builtin_flag_FC \
27691lt_prog_compiler_wl_FC \
27692lt_prog_compiler_pic_FC \
27693lt_prog_compiler_static_FC \
27694lt_cv_prog_compiler_c_o_FC \
27695export_dynamic_flag_spec_FC \
27696whole_archive_flag_spec_FC \
27697compiler_needs_object_FC \
27698with_gnu_ld_FC \
27699allow_undefined_flag_FC \
27700no_undefined_flag_FC \
27701hardcode_libdir_flag_spec_FC \
27702hardcode_libdir_flag_spec_ld_FC \
27703hardcode_libdir_separator_FC \
27704fix_srcfile_path_FC \
27705exclude_expsyms_FC \
27706include_expsyms_FC \
27707file_list_spec_FC \
d58dead8 27708compiler_lib_search_dirs_FC \
1cf3d07d
SE
27709predep_objects_FC \
27710postdep_objects_FC \
27711predeps_FC \
27712postdeps_FC \
27713compiler_lib_search_path_FC; do
43e02a8a 27714 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 27715 *[\\\\\\\`\\"\\\$]*)
43e02a8a 27716 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
27717 ;;
27718 *)
27719 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27720 ;;
27721 esac
27722done
27723
27724# Double-quote double-evaled strings.
27725for var in reload_cmds \
27726old_postinstall_cmds \
27727old_postuninstall_cmds \
27728old_archive_cmds \
27729extract_expsyms_cmds \
27730old_archive_from_new_cmds \
27731old_archive_from_expsyms_cmds \
27732archive_cmds \
27733archive_expsym_cmds \
27734module_cmds \
27735module_expsym_cmds \
27736export_symbols_cmds \
27737prelink_cmds \
27738postinstall_cmds \
27739postuninstall_cmds \
27740finish_cmds \
27741sys_lib_search_path_spec \
27742sys_lib_dlsearch_path_spec \
43e02a8a 27743reload_cmds_FC \
1cf3d07d
SE
27744old_archive_cmds_FC \
27745old_archive_from_new_cmds_FC \
27746old_archive_from_expsyms_cmds_FC \
27747archive_cmds_FC \
27748archive_expsym_cmds_FC \
27749module_cmds_FC \
27750module_expsym_cmds_FC \
27751export_symbols_cmds_FC \
27752prelink_cmds_FC; do
43e02a8a 27753 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 27754 *[\\\\\\\`\\"\\\$]*)
43e02a8a 27755 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
27756 ;;
27757 *)
27758 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27759 ;;
27760 esac
27761done
27762
1cf3d07d
SE
27763ac_aux_dir='$ac_aux_dir'
27764xsi_shell='$xsi_shell'
27765lt_shell_append='$lt_shell_append'
27766
27767# See if we are running on zsh, and set the options which allow our
27768# commands through without removal of \ escapes INIT.
27769if test -n "\${ZSH_VERSION+set}" ; then
27770 setopt NO_GLOB_SUBST
27771fi
27772
27773
27774 PACKAGE='$PACKAGE'
27775 VERSION='$VERSION'
27776 TIMESTAMP='$TIMESTAMP'
27777 RM='$RM'
27778 ofile='$ofile'
27779
27780
6de9cd9a 27781
6de9cd9a 27782
78511f8b 27783
6de9cd9a 27784
c13e029b
PB
27785GCC="$GCC"
27786CC="$CC"
27787acx_cv_header_stdint="$acx_cv_header_stdint"
27788acx_cv_type_int8_t="$acx_cv_type_int8_t"
27789acx_cv_type_int16_t="$acx_cv_type_int16_t"
27790acx_cv_type_int32_t="$acx_cv_type_int32_t"
27791acx_cv_type_int64_t="$acx_cv_type_int64_t"
27792acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27793ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27794ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27795ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27796ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27797ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
4c4b3eb0
PB
27798ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27799ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
c13e029b 27800ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
4c4b3eb0
PB
27801
27802
6de9cd9a
DN
27803_ACEOF
27804
5213506e 27805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f489fba1 27806
5213506e 27807# Handling of arguments.
6de9cd9a
DN
27808for ac_config_target in $ac_config_targets
27809do
5213506e
RW
27810 case $ac_config_target in
27811 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27812 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27813 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27814 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27815 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27816 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1ec601bf 27817 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
5213506e
RW
27818
27819 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6de9cd9a
DN
27820 esac
27821done
27822
5213506e 27823
6de9cd9a
DN
27824# If the user did not use the arguments to specify the items to instantiate,
27825# then the envvar interface is used. Set only those that are not.
27826# We use the long form for the default assignment because of an extremely
27827# bizarre bug on SunOS 4.1.3.
27828if $ac_need_defaults; then
27829 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27830 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27831 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27832fi
27833
27834# Have a temporary directory for convenience. Make it in the build tree
5213506e 27835# simply because there is no reason against having it here, and in addition,
6de9cd9a 27836# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
27837# Hook for its removal unless debugging.
27838# Note that there is a small window in which the directory will not be cleaned:
27839# after its creation but before its name has been assigned to `$tmp'.
6de9cd9a
DN
27840$debug ||
27841{
5213506e
RW
27842 tmp=
27843 trap 'exit_status=$?
27844 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27845' 0
27846 trap 'as_fn_exit 1' 1 2 13 15
6de9cd9a 27847}
6de9cd9a
DN
27848# Create a (secure) tmp directory for tmp files.
27849
27850{
5213506e 27851 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6de9cd9a
DN
27852 test -n "$tmp" && test -d "$tmp"
27853} ||
27854{
5213506e
RW
27855 tmp=./conf$$-$RANDOM
27856 (umask 077 && mkdir "$tmp")
27857} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27858
27859# Set up the scripts for CONFIG_FILES section.
27860# No need to generate them if there are no CONFIG_FILES.
27861# This happens for instance with `./config.status config.h'.
27862if test -n "$CONFIG_FILES"; then
27863
27864
27865ac_cr=`echo X | tr X '\015'`
27866# On cygwin, bash can eat \r inside `` if the user requested igncr.
27867# But we know of no other shell where ac_cr would be empty at this
27868# point, so we can use a bashism as a fallback.
27869if test "x$ac_cr" = x; then
27870 eval ac_cr=\$\'\\r\'
27871fi
27872ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27873if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27874 ac_cs_awk_cr='\r'
27875else
27876 ac_cs_awk_cr=$ac_cr
27877fi
27878
27879echo 'BEGIN {' >"$tmp/subs1.awk" &&
27880_ACEOF
27881
27882
6de9cd9a 27883{
5213506e
RW
27884 echo "cat >conf$$subs.awk <<_ACEOF" &&
27885 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27886 echo "_ACEOF"
27887} >conf$$subs.sh ||
27888 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27889ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27890ac_delim='%!_!# '
27891for ac_last_try in false false false false false :; do
27892 . ./conf$$subs.sh ||
27893 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27894
27895 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27896 if test $ac_delim_n = $ac_delim_num; then
27897 break
27898 elif $ac_last_try; then
27899 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27900 else
27901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27902 fi
27903done
27904rm -f conf$$subs.sh
27905
27906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27907cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27908_ACEOF
27909sed -n '
27910h
27911s/^/S["/; s/!.*/"]=/
27912p
27913g
27914s/^[^!]*!//
27915:repl
27916t repl
27917s/'"$ac_delim"'$//
27918t delim
27919:nl
27920h
27921s/\(.\{148\}\).*/\1/
27922t more1
27923s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27924p
27925n
27926b repl
27927:more1
27928s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27929p
27930g
27931s/.\{148\}//
27932t nl
27933:delim
27934h
27935s/\(.\{148\}\).*/\1/
27936t more2
27937s/["\\]/\\&/g; s/^/"/; s/$/"/
27938p
27939b
27940:more2
27941s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27942p
27943g
27944s/.\{148\}//
27945t delim
27946' <conf$$subs.awk | sed '
27947/^[^""]/{
27948 N
27949 s/\n//
27950}
27951' >>$CONFIG_STATUS || ac_write_fail=1
27952rm -f conf$$subs.awk
27953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27954_ACAWK
27955cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27956 for (key in S) S_is_set[key] = 1
27957 FS = "\a"
27958
27959}
27960{
27961 line = $ 0
27962 nfields = split(line, field, "@")
27963 substed = 0
27964 len = length(field[1])
27965 for (i = 2; i < nfields; i++) {
27966 key = field[i]
27967 keylen = length(key)
27968 if (S_is_set[key]) {
27969 value = S[key]
27970 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27971 len += length(value) + length(field[++i])
27972 substed = 1
27973 } else
27974 len += 1 + keylen
27975 }
27976
27977 print line
6de9cd9a
DN
27978}
27979
5213506e
RW
27980_ACAWK
27981_ACEOF
27982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27983if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27984 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27985else
27986 cat
27987fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27988 || as_fn_error "could not setup config files machinery" "$LINENO" 5
38d24731
RW
27989_ACEOF
27990
5213506e
RW
27991# VPATH may cause trouble with some makes, so we remove $(srcdir),
27992# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27993# trailing colons and then remove the whole line if VPATH becomes empty
27994# (actually we leave an empty line to preserve line numbers).
27995if test "x$srcdir" = x.; then
27996 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27997s/:*\$(srcdir):*/:/
27998s/:*\${srcdir}:*/:/
27999s/:*@srcdir@:*/:/
28000s/^\([^=]*=[ ]*\):*/\1/
28001s/:*$//
28002s/^[^=]*=[ ]*$//
28003}'
28004fi
38d24731 28005
5213506e
RW
28006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28007fi # test -n "$CONFIG_FILES"
6de9cd9a 28008
5213506e
RW
28009# Set up the scripts for CONFIG_HEADERS section.
28010# No need to generate them if there are no CONFIG_HEADERS.
28011# This happens for instance with `./config.status Makefile'.
28012if test -n "$CONFIG_HEADERS"; then
28013cat >"$tmp/defines.awk" <<\_ACAWK ||
28014BEGIN {
28015_ACEOF
28016
28017# Transform confdefs.h into an awk script `defines.awk', embedded as
28018# here-document in config.status, that substitutes the proper values into
28019# config.h.in to produce config.h.
28020
28021# Create a delimiter string that does not exist in confdefs.h, to ease
28022# handling of long lines.
28023ac_delim='%!_!# '
28024for ac_last_try in false false :; do
28025 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28026 if test -z "$ac_t"; then
28027 break
28028 elif $ac_last_try; then
28029 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28030 else
28031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
f489fba1 28032 fi
5213506e 28033done
c0e7e2bf 28034
5213506e
RW
28035# For the awk script, D is an array of macro values keyed by name,
28036# likewise P contains macro parameters if any. Preserve backslash
28037# newline sequences.
28038
28039ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28040sed -n '
28041s/.\{148\}/&'"$ac_delim"'/g
28042t rset
28043:rset
28044s/^[ ]*#[ ]*define[ ][ ]*/ /
28045t def
28046d
28047:def
28048s/\\$//
28049t bsnl
28050s/["\\]/\\&/g
28051s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28052D["\1"]=" \3"/p
28053s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28054d
28055:bsnl
28056s/["\\]/\\&/g
28057s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28058D["\1"]=" \3\\\\\\n"\\/p
28059t cont
28060s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28061t cont
28062d
28063:cont
28064n
28065s/.\{148\}/&'"$ac_delim"'/g
28066t clear
28067:clear
28068s/\\$//
28069t bsnlc
28070s/["\\]/\\&/g; s/^/"/; s/$/"/p
28071d
28072:bsnlc
28073s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28074b cont
28075' <confdefs.h | sed '
28076s/'"$ac_delim"'/"\\\
28077"/g' >>$CONFIG_STATUS || ac_write_fail=1
28078
28079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28080 for (key in D) D_is_set[key] = 1
28081 FS = "\a"
28082}
28083/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28084 line = \$ 0
28085 split(line, arg, " ")
28086 if (arg[1] == "#") {
28087 defundef = arg[2]
28088 mac1 = arg[3]
28089 } else {
28090 defundef = substr(arg[1], 2)
28091 mac1 = arg[2]
28092 }
28093 split(mac1, mac2, "(") #)
28094 macro = mac2[1]
28095 prefix = substr(line, 1, index(line, defundef) - 1)
28096 if (D_is_set[macro]) {
28097 # Preserve the white space surrounding the "#".
28098 print prefix "define", macro P[macro] D[macro]
28099 next
28100 } else {
28101 # Replace #undef with comments. This is necessary, for example,
28102 # in the case of _POSIX_SOURCE, which is predefined and required
28103 # on some systems where configure will not decide to define it.
28104 if (defundef == "undef") {
28105 print "/*", prefix defundef, macro, "*/"
28106 next
28107 }
28108 }
28109}
28110{ print }
28111_ACAWK
6de9cd9a 28112_ACEOF
5213506e
RW
28113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28114 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28115fi # test -n "$CONFIG_HEADERS"
28116
28117
28118eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28119shift
28120for ac_tag
28121do
28122 case $ac_tag in
28123 :[FHLC]) ac_mode=$ac_tag; continue;;
28124 esac
28125 case $ac_mode$ac_tag in
28126 :[FHL]*:*);;
28127 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28128 :[FH]-) ac_tag=-:-;;
28129 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28130 esac
28131 ac_save_IFS=$IFS
28132 IFS=:
28133 set x $ac_tag
28134 IFS=$ac_save_IFS
28135 shift
28136 ac_file=$1
28137 shift
28138
28139 case $ac_mode in
28140 :L) ac_source=$1;;
28141 :[FH])
28142 ac_file_inputs=
28143 for ac_f
28144 do
28145 case $ac_f in
28146 -) ac_f="$tmp/stdin";;
28147 *) # Look for the file first in the build tree, then in the source tree
28148 # (if the path is not absolute). The absolute path cannot be DOS-style,
28149 # because $ac_f cannot contain `:'.
28150 test -f "$ac_f" ||
28151 case $ac_f in
28152 [\\/$]*) false;;
28153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28154 esac ||
28155 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28156 esac
28157 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28158 as_fn_append ac_file_inputs " '$ac_f'"
28159 done
28160
28161 # Let's still pretend it is `configure' which instantiates (i.e., don't
28162 # use $as_me), people would be surprised to read:
28163 # /* config.h. Generated by config.status. */
28164 configure_input='Generated from '`
28165 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28166 `' by configure.'
28167 if test x"$ac_file" != x-; then
28168 configure_input="$ac_file. $configure_input"
28169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28170$as_echo "$as_me: creating $ac_file" >&6;}
28171 fi
28172 # Neutralize special characters interpreted by sed in replacement strings.
28173 case $configure_input in #(
28174 *\&* | *\|* | *\\* )
28175 ac_sed_conf_input=`$as_echo "$configure_input" |
28176 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28177 *) ac_sed_conf_input=$configure_input;;
28178 esac
28179
28180 case $ac_tag in
28181 *:-:* | *:-) cat >"$tmp/stdin" \
28182 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28183 esac
28184 ;;
6de9cd9a
DN
28185 esac
28186
5213506e 28187 ac_dir=`$as_dirname -- "$ac_file" ||
6de9cd9a
DN
28188$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28189 X"$ac_file" : 'X\(//\)[^/]' \| \
28190 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
28191 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28192$as_echo X"$ac_file" |
28193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28194 s//\1/
28195 q
28196 }
28197 /^X\(\/\/\)[^/].*/{
28198 s//\1/
28199 q
28200 }
28201 /^X\(\/\/\)$/{
28202 s//\1/
28203 q
28204 }
28205 /^X\(\/\).*/{
28206 s//\1/
28207 q
28208 }
28209 s/.*/./; q'`
28210 as_dir="$ac_dir"; as_fn_mkdir_p
6de9cd9a
DN
28211 ac_builddir=.
28212
5213506e
RW
28213case "$ac_dir" in
28214.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28215*)
28216 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28217 # A ".." for each directory in $ac_dir_suffix.
28218 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28219 case $ac_top_builddir_sub in
28220 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28221 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28222 esac ;;
28223esac
28224ac_abs_top_builddir=$ac_pwd
28225ac_abs_builddir=$ac_pwd$ac_dir_suffix
28226# for backward compatibility:
28227ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
28228
28229case $srcdir in
5213506e 28230 .) # We are building in place.
6de9cd9a 28231 ac_srcdir=.
5213506e
RW
28232 ac_top_srcdir=$ac_top_builddir_sub
28233 ac_abs_top_srcdir=$ac_pwd ;;
28234 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 28235 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
28236 ac_top_srcdir=$srcdir
28237 ac_abs_top_srcdir=$srcdir ;;
28238 *) # Relative name.
28239 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28240 ac_top_srcdir=$ac_top_build_prefix$srcdir
28241 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6de9cd9a 28242esac
5213506e 28243ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6de9cd9a 28244
6de9cd9a 28245
5213506e
RW
28246 case $ac_mode in
28247 :F)
28248 #
28249 # CONFIG_FILE
28250 #
6de9cd9a
DN
28251
28252 case $INSTALL in
28253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
28254 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28255 esac
28256 ac_MKDIR_P=$MKDIR_P
28257 case $MKDIR_P in
28258 [\\/$]* | ?:[\\/]* ) ;;
28259 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6de9cd9a 28260 esac
5213506e 28261_ACEOF
6de9cd9a 28262
5213506e
RW
28263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28264# If the template does not know about datarootdir, expand it.
28265# FIXME: This hack should be removed a few years after 2.60.
28266ac_datarootdir_hack=; ac_datarootdir_seen=
28267ac_sed_dataroot='
28268/datarootdir/ {
28269 p
28270 q
28271}
28272/@datadir@/p
28273/@docdir@/p
28274/@infodir@/p
28275/@localedir@/p
28276/@mandir@/p'
28277case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28278*datarootdir*) ac_datarootdir_seen=yes;;
28279*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28281$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28282_ACEOF
28283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28284 ac_datarootdir_hack='
28285 s&@datadir@&$datadir&g
28286 s&@docdir@&$docdir&g
28287 s&@infodir@&$infodir&g
28288 s&@localedir@&$localedir&g
28289 s&@mandir@&$mandir&g
28290 s&\\\${datarootdir}&$datarootdir&g' ;;
28291esac
78511f8b 28292_ACEOF
5213506e
RW
28293
28294# Neutralize VPATH when `$srcdir' = `.'.
28295# Shell code in configure.ac might set extrasub.
28296# FIXME: do we really want to maintain this feature?
28297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28298ac_sed_extra="$ac_vpsub
6de9cd9a
DN
28299$extrasub
28300_ACEOF
5213506e 28301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a
DN
28302:t
28303/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
28304s|@configure_input@|$ac_sed_conf_input|;t t
28305s&@top_builddir@&$ac_top_builddir_sub&;t t
28306s&@top_build_prefix@&$ac_top_build_prefix&;t t
28307s&@srcdir@&$ac_srcdir&;t t
28308s&@abs_srcdir@&$ac_abs_srcdir&;t t
28309s&@top_srcdir@&$ac_top_srcdir&;t t
28310s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28311s&@builddir@&$ac_builddir&;t t
28312s&@abs_builddir@&$ac_abs_builddir&;t t
28313s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28314s&@INSTALL@&$ac_INSTALL&;t t
28315s&@MKDIR_P@&$ac_MKDIR_P&;t t
28316$ac_datarootdir_hack
28317"
28318eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28319 || as_fn_error "could not create $ac_file" "$LINENO" 5
28320
28321test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28322 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28323 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28325which seems to be undefined. Please make sure it is defined." >&5
28326$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28327which seems to be undefined. Please make sure it is defined." >&2;}
28328
28329 rm -f "$tmp/stdin"
6de9cd9a 28330 case $ac_file in
5213506e
RW
28331 -) cat "$tmp/out" && rm -f "$tmp/out";;
28332 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28333 esac \
28334 || as_fn_error "could not create $ac_file" "$LINENO" 5
28335 ;;
28336 :H)
28337 #
28338 # CONFIG_HEADER
28339 #
6de9cd9a 28340 if test x"$ac_file" != x-; then
5213506e
RW
28341 {
28342 $as_echo "/* $configure_input */" \
28343 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28344 } >"$tmp/config.h" \
28345 || as_fn_error "could not create $ac_file" "$LINENO" 5
28346 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28347 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28348$as_echo "$as_me: $ac_file is unchanged" >&6;}
6de9cd9a 28349 else
5213506e
RW
28350 rm -f "$ac_file"
28351 mv "$tmp/config.h" "$ac_file" \
28352 || as_fn_error "could not create $ac_file" "$LINENO" 5
6de9cd9a
DN
28353 fi
28354 else
5213506e
RW
28355 $as_echo "/* $configure_input */" \
28356 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28357 || as_fn_error "could not create -" "$LINENO" 5
6de9cd9a 28358 fi
5213506e
RW
28359# Compute "$ac_file"'s index in $config_headers.
28360_am_arg="$ac_file"
6de9cd9a
DN
28361_am_stamp_count=1
28362for _am_header in $config_headers :; do
28363 case $_am_header in
5213506e 28364 $_am_arg | $_am_arg:* )
6de9cd9a
DN
28365 break ;;
28366 * )
28367 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28368 esac
28369done
5213506e
RW
28370echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28371$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28372 X"$_am_arg" : 'X\(//\)[^/]' \| \
28373 X"$_am_arg" : 'X\(//\)$' \| \
28374 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28375$as_echo X"$_am_arg" |
28376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28377 s//\1/
28378 q
28379 }
28380 /^X\(\/\/\)[^/].*/{
28381 s//\1/
28382 q
28383 }
28384 /^X\(\/\/\)$/{
28385 s//\1/
28386 q
28387 }
28388 /^X\(\/\).*/{
28389 s//\1/
28390 q
28391 }
28392 s/.*/./; q'`/stamp-h$_am_stamp_count
28393 ;;
38d24731 28394
5213506e
RW
28395 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28396$as_echo "$as_me: executing $ac_file commands" >&6;}
28397 ;;
28398 esac
6de9cd9a
DN
28399
28400
5213506e
RW
28401 case $ac_file$ac_mode in
28402 "default-1":C)
96b8a615
AJ
28403# Only add multilib support code if we just rebuilt the top-level
28404# Makefile.
28405case " $CONFIG_FILES " in
28406 *" Makefile "*)
28407 ac_file=Makefile . ${multi_basedir}/config-ml.in
28408 ;;
28409esac ;;
5213506e
RW
28410 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28411 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28412 # are listed without --file. Let's play safe and only enable the eval
28413 # if we detect the quoting.
28414 case $CONFIG_FILES in
28415 *\'*) eval set x "$CONFIG_FILES" ;;
28416 *) set x $CONFIG_FILES ;;
28417 esac
28418 shift
28419 for mf
28420 do
28421 # Strip MF so we end up with the name of the file.
28422 mf=`echo "$mf" | sed -e 's/:.*$//'`
28423 # Check whether this is an Automake generated Makefile or not.
28424 # We used to match only the files named `Makefile.in', but
28425 # some people rename them; so instead we look at the file content.
28426 # Grep'ing the first line is not enough: some people post-process
28427 # each Makefile.in and add a new line on top of each file to say so.
28428 # Grep'ing the whole file is not good either: AIX grep has a line
28429 # limit of 2048, but all sed's we know have understand at least 4000.
28430 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28431 dirpart=`$as_dirname -- "$mf" ||
679c0f9a
TT
28432$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28433 X"$mf" : 'X\(//\)[^/]' \| \
28434 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
28435 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28436$as_echo X"$mf" |
28437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28438 s//\1/
28439 q
28440 }
28441 /^X\(\/\/\)[^/].*/{
28442 s//\1/
28443 q
28444 }
28445 /^X\(\/\/\)$/{
28446 s//\1/
28447 q
28448 }
28449 /^X\(\/\).*/{
28450 s//\1/
28451 q
28452 }
28453 s/.*/./; q'`
28454 else
28455 continue
28456 fi
28457 # Extract the definition of DEPDIR, am__include, and am__quote
28458 # from the Makefile without running `make'.
28459 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28460 test -z "$DEPDIR" && continue
28461 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28462 test -z "am__include" && continue
28463 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28464 # When using ansi2knr, U may be empty or an underscore; expand it
28465 U=`sed -n 's/^U = //p' < "$mf"`
28466 # Find all dependency output files, they are included files with
28467 # $(DEPDIR) in their names. We invoke sed twice because it is the
28468 # simplest approach to changing $(DEPDIR) to its actual value in the
28469 # expansion.
28470 for file in `sed -n "
28471 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28472 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28473 # Make sure the directory exists.
28474 test -f "$dirpart/$file" && continue
28475 fdir=`$as_dirname -- "$file" ||
679c0f9a
TT
28476$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28477 X"$file" : 'X\(//\)[^/]' \| \
28478 X"$file" : 'X\(//\)$' \| \
5213506e
RW
28479 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28480$as_echo X"$file" |
28481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28482 s//\1/
28483 q
28484 }
28485 /^X\(\/\/\)[^/].*/{
28486 s//\1/
28487 q
28488 }
28489 /^X\(\/\/\)$/{
28490 s//\1/
28491 q
28492 }
28493 /^X\(\/\).*/{
28494 s//\1/
28495 q
28496 }
28497 s/.*/./; q'`
28498 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28499 # echo "creating $dirpart/$file"
28500 echo '# dummy' > "$dirpart/$file"
679c0f9a 28501 done
679c0f9a 28502 done
5213506e 28503}
1cf3d07d 28504 ;;
5213506e 28505 "libtool":C)
1cf3d07d
SE
28506
28507 # See if we are running on zsh, and set the options which allow our
28508 # commands through without removal of \ escapes.
28509 if test -n "${ZSH_VERSION+set}" ; then
28510 setopt NO_GLOB_SUBST
28511 fi
28512
28513 cfgfile="${ofile}T"
28514 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28515 $RM "$cfgfile"
28516
28517 cat <<_LT_EOF >> "$cfgfile"
28518#! $SHELL
28519
28520# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
d58dead8 28521# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
28522# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28523# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28524#
d58dead8 28525# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 28526# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d58dead8 28527# Written by Gordon Matzigkeit, 1996
1cf3d07d 28528#
d58dead8 28529# This file is part of GNU Libtool.
1cf3d07d 28530#
d58dead8
PG
28531# GNU Libtool is free software; you can redistribute it and/or
28532# modify it under the terms of the GNU General Public License as
28533# published by the Free Software Foundation; either version 2 of
28534# the License, or (at your option) any later version.
1cf3d07d 28535#
d58dead8
PG
28536# As a special exception to the GNU General Public License,
28537# if you distribute this file as part of a program or library that
28538# is built using GNU Libtool, you may include this file under the
28539# same distribution terms that you use for the rest of that program.
1cf3d07d 28540#
d58dead8
PG
28541# GNU Libtool is distributed in the hope that it will be useful,
28542# but WITHOUT ANY WARRANTY; without even the implied warranty of
28543# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28544# GNU General Public License for more details.
1cf3d07d 28545#
d58dead8
PG
28546# You should have received a copy of the GNU General Public License
28547# along with GNU Libtool; see the file COPYING. If not, a copy
28548# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28549# obtained by writing to the Free Software Foundation, Inc.,
28550# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
28551
28552
28553# The names of the tagged configurations supported by this script.
28554available_tags="FC "
28555
28556# ### BEGIN LIBTOOL CONFIG
28557
66dbcf2d
RO
28558# A sed program that does not truncate output.
28559SED=$lt_SED
28560
28561# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28562Xsed="\$SED -e 1s/^X//"
28563
28564# A grep program that handles long lines.
28565GREP=$lt_GREP
28566
28567# An ERE matcher.
28568EGREP=$lt_EGREP
28569
28570# A literal string matcher.
28571FGREP=$lt_FGREP
28572
28573# Shell to use when invoking shell scripts.
28574SHELL=$lt_SHELL
28575
28576# An echo program that protects backslashes.
28577ECHO=$lt_ECHO
28578
1cf3d07d
SE
28579# Which release of libtool.m4 was used?
28580macro_version=$macro_version
28581macro_revision=$macro_revision
28582
28583# Whether or not to build shared libraries.
28584build_libtool_libs=$enable_shared
28585
28586# Whether or not to build static libraries.
28587build_old_libs=$enable_static
28588
28589# What type of objects to build.
28590pic_mode=$pic_mode
28591
28592# Whether or not to optimize for fast installation.
28593fast_install=$enable_fast_install
28594
28595# The host system.
28596host_alias=$host_alias
28597host=$host
28598host_os=$host_os
28599
28600# The build system.
28601build_alias=$build_alias
28602build=$build
28603build_os=$build_os
28604
1cf3d07d
SE
28605# A BSD- or MS-compatible name lister.
28606NM=$lt_NM
28607
28608# Whether we need soft or hard links.
28609LN_S=$lt_LN_S
28610
28611# What is the maximum length of a command?
28612max_cmd_len=$max_cmd_len
28613
28614# Object file suffix (normally "o").
28615objext=$ac_objext
28616
28617# Executable file suffix (normally "").
28618exeext=$exeext
28619
28620# whether the shell understands "unset".
28621lt_unset=$lt_unset
28622
28623# turn spaces into newlines.
28624SP2NL=$lt_lt_SP2NL
28625
28626# turn newlines into spaces.
28627NL2SP=$lt_lt_NL2SP
28628
d58dead8
PG
28629# An object symbol dumper.
28630OBJDUMP=$lt_OBJDUMP
28631
1cf3d07d
SE
28632# Method to check whether dependent libraries are shared objects.
28633deplibs_check_method=$lt_deplibs_check_method
28634
28635# Command to use when deplibs_check_method == "file_magic".
28636file_magic_cmd=$lt_file_magic_cmd
28637
28638# The archiver.
28639AR=$lt_AR
28640AR_FLAGS=$lt_AR_FLAGS
28641
28642# A symbol stripping program.
28643STRIP=$lt_STRIP
28644
28645# Commands used to install an old-style archive.
28646RANLIB=$lt_RANLIB
28647old_postinstall_cmds=$lt_old_postinstall_cmds
28648old_postuninstall_cmds=$lt_old_postuninstall_cmds
28649
43e02a8a
RW
28650# Whether to use a lock for old archive extraction.
28651lock_old_archive_extraction=$lock_old_archive_extraction
28652
1cf3d07d
SE
28653# A C compiler.
28654LTCC=$lt_CC
28655
28656# LTCC compiler flags.
28657LTCFLAGS=$lt_CFLAGS
28658
28659# Take the output of nm and produce a listing of raw symbols and C names.
28660global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28661
28662# Transform the output of nm in a proper C declaration.
28663global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28664
28665# Transform the output of nm in a C name address pair.
28666global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28667
d58dead8
PG
28668# Transform the output of nm in a C name address pair when lib prefix is needed.
28669global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28670
1cf3d07d
SE
28671# The name of the directory that contains temporary libtool files.
28672objdir=$objdir
28673
1cf3d07d
SE
28674# Used to examine libraries when file_magic_cmd begins with "file".
28675MAGIC_CMD=$MAGIC_CMD
28676
28677# Must we lock files when doing compilation?
28678need_locks=$lt_need_locks
28679
d58dead8
PG
28680# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28681DSYMUTIL=$lt_DSYMUTIL
28682
28683# Tool to change global to local symbols on Mac OS X.
28684NMEDIT=$lt_NMEDIT
28685
28686# Tool to manipulate fat objects and archives on Mac OS X.
28687LIPO=$lt_LIPO
28688
28689# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28690OTOOL=$lt_OTOOL
28691
28692# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28693OTOOL64=$lt_OTOOL64
28694
1cf3d07d
SE
28695# Old archive suffix (normally "a").
28696libext=$libext
28697
28698# Shared library suffix (normally ".so").
28699shrext_cmds=$lt_shrext_cmds
28700
28701# The commands to extract the exported symbol list from a shared archive.
28702extract_expsyms_cmds=$lt_extract_expsyms_cmds
28703
28704# Variables whose values should be saved in libtool wrapper scripts and
28705# restored at link time.
28706variables_saved_for_relink=$lt_variables_saved_for_relink
28707
28708# Do we need the "lib" prefix for modules?
28709need_lib_prefix=$need_lib_prefix
28710
28711# Do we need a version for libraries?
28712need_version=$need_version
28713
28714# Library versioning type.
28715version_type=$version_type
28716
28717# Shared library runtime path variable.
28718runpath_var=$runpath_var
28719
28720# Shared library path variable.
28721shlibpath_var=$shlibpath_var
28722
28723# Is shlibpath searched before the hard-coded library search path?
28724shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28725
28726# Format of library name prefix.
28727libname_spec=$lt_libname_spec
28728
28729# List of archive names. First name is the real one, the rest are links.
28730# The last name is the one that the linker finds with -lNAME
28731library_names_spec=$lt_library_names_spec
28732
28733# The coded name of the library, if different from the real name.
28734soname_spec=$lt_soname_spec
28735
43e02a8a
RW
28736# Permission mode override for installation of shared libraries.
28737install_override_mode=$lt_install_override_mode
28738
1cf3d07d
SE
28739# Command to use after installation of a shared archive.
28740postinstall_cmds=$lt_postinstall_cmds
28741
28742# Command to use after uninstallation of a shared archive.
28743postuninstall_cmds=$lt_postuninstall_cmds
28744
28745# Commands used to finish a libtool library installation in a directory.
28746finish_cmds=$lt_finish_cmds
28747
28748# As "finish_cmds", except a single script fragment to be evaled but
28749# not shown.
28750finish_eval=$lt_finish_eval
28751
28752# Whether we should hardcode library paths into libraries.
28753hardcode_into_libs=$hardcode_into_libs
28754
28755# Compile-time system search path for libraries.
28756sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28757
28758# Run-time system search path for libraries.
28759sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28760
28761# Whether dlopen is supported.
28762dlopen_support=$enable_dlopen
28763
28764# Whether dlopen of programs is supported.
28765dlopen_self=$enable_dlopen_self
28766
28767# Whether dlopen of statically linked programs is supported.
28768dlopen_self_static=$enable_dlopen_self_static
28769
28770# Commands to strip libraries.
28771old_striplib=$lt_old_striplib
28772striplib=$lt_striplib
28773
28774
28775# The linker used to build libraries.
28776LD=$lt_LD
28777
43e02a8a
RW
28778# How to create reloadable object files.
28779reload_flag=$lt_reload_flag
28780reload_cmds=$lt_reload_cmds
28781
1cf3d07d
SE
28782# Commands used to build an old-style archive.
28783old_archive_cmds=$lt_old_archive_cmds
28784
28785# A language specific compiler.
28786CC=$lt_compiler
28787
28788# Is the compiler the GNU compiler?
28789with_gcc=$GCC
28790
28791# Compiler flag to turn off builtin functions.
28792no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28793
28794# How to pass a linker flag through the compiler.
28795wl=$lt_lt_prog_compiler_wl
28796
28797# Additional compiler flags for building library objects.
28798pic_flag=$lt_lt_prog_compiler_pic
28799
28800# Compiler flag to prevent dynamic linking.
28801link_static_flag=$lt_lt_prog_compiler_static
28802
28803# Does compiler simultaneously support -c and -o options?
28804compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28805
28806# Whether or not to add -lc for building shared libraries.
28807build_libtool_need_lc=$archive_cmds_need_lc
28808
28809# Whether or not to disallow shared libs when runtime libs are static.
28810allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28811
28812# Compiler flag to allow reflexive dlopens.
28813export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28814
28815# Compiler flag to generate shared objects directly from archives.
28816whole_archive_flag_spec=$lt_whole_archive_flag_spec
28817
28818# Whether the compiler copes with passing no objects directly.
28819compiler_needs_object=$lt_compiler_needs_object
28820
28821# Create an old-style archive from a shared archive.
28822old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28823
28824# Create a temporary old-style archive to link instead of a shared archive.
28825old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28826
28827# Commands used to build a shared archive.
28828archive_cmds=$lt_archive_cmds
28829archive_expsym_cmds=$lt_archive_expsym_cmds
28830
28831# Commands used to build a loadable module if different from building
28832# a shared archive.
28833module_cmds=$lt_module_cmds
28834module_expsym_cmds=$lt_module_expsym_cmds
28835
28836# Whether we are building with GNU ld or not.
28837with_gnu_ld=$lt_with_gnu_ld
28838
28839# Flag that allows shared libraries with undefined symbols to be built.
28840allow_undefined_flag=$lt_allow_undefined_flag
28841
28842# Flag that enforces no undefined symbols.
28843no_undefined_flag=$lt_no_undefined_flag
28844
28845# Flag to hardcode \$libdir into a binary during linking.
28846# This must work even if \$libdir does not exist
28847hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28848
28849# If ld is used when linking, flag to hardcode \$libdir into a binary
28850# during linking. This must work even if \$libdir does not exist.
28851hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28852
28853# Whether we need a single "-rpath" flag with a separated argument.
28854hardcode_libdir_separator=$lt_hardcode_libdir_separator
28855
28856# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28857# DIR into the resulting binary.
28858hardcode_direct=$hardcode_direct
28859
28860# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28861# DIR into the resulting binary and the resulting library dependency is
28862# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28863# library is relocated.
28864hardcode_direct_absolute=$hardcode_direct_absolute
28865
28866# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28867# into the resulting binary.
28868hardcode_minus_L=$hardcode_minus_L
28869
28870# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28871# into the resulting binary.
28872hardcode_shlibpath_var=$hardcode_shlibpath_var
28873
28874# Set to "yes" if building a shared library automatically hardcodes DIR
28875# into the library and all subsequent libraries and executables linked
28876# against it.
28877hardcode_automatic=$hardcode_automatic
28878
28879# Set to yes if linker adds runtime paths of dependent libraries
28880# to runtime path list.
28881inherit_rpath=$inherit_rpath
28882
28883# Whether libtool must link a program against all its dependency libraries.
28884link_all_deplibs=$link_all_deplibs
28885
28886# Fix the shell variable \$srcfile for the compiler.
28887fix_srcfile_path=$lt_fix_srcfile_path
28888
28889# Set to "yes" if exported symbols are required.
28890always_export_symbols=$always_export_symbols
28891
28892# The commands to list exported symbols.
28893export_symbols_cmds=$lt_export_symbols_cmds
28894
28895# Symbols that should not be listed in the preloaded symbols.
28896exclude_expsyms=$lt_exclude_expsyms
28897
28898# Symbols that must always be exported.
28899include_expsyms=$lt_include_expsyms
28900
28901# Commands necessary for linking programs (against libraries) with templates.
28902prelink_cmds=$lt_prelink_cmds
28903
28904# Specify filename containing input files.
28905file_list_spec=$lt_file_list_spec
28906
28907# How to hardcode a shared library path into an executable.
28908hardcode_action=$hardcode_action
28909
d58dead8
PG
28910# The directories searched by this compiler when creating a shared library.
28911compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28912
1cf3d07d
SE
28913# Dependencies to place before and after the objects being linked to
28914# create a shared library.
28915predep_objects=$lt_predep_objects
28916postdep_objects=$lt_postdep_objects
28917predeps=$lt_predeps
28918postdeps=$lt_postdeps
28919
28920# The library search path used internally by the compiler when linking
28921# a shared library.
28922compiler_lib_search_path=$lt_compiler_lib_search_path
28923
28924# ### END LIBTOOL CONFIG
28925
28926_LT_EOF
28927
28928 case $host_os in
28929 aix3*)
28930 cat <<\_LT_EOF >> "$cfgfile"
28931# AIX sometimes has problems with the GCC collect2 program. For some
28932# reason, if we set the COLLECT_NAMES environment variable, the problems
28933# vanish in a puff of smoke.
28934if test "X${COLLECT_NAMES+set}" != Xset; then
28935 COLLECT_NAMES=
28936 export COLLECT_NAMES
28937fi
28938_LT_EOF
28939 ;;
28940 esac
28941
28942
28943ltmain="$ac_aux_dir/ltmain.sh"
28944
28945
28946 # We use sed instead of cat because bash on DJGPP gets confused if
28947 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28948 # text mode, it properly converts lines to CR/LF. This bash problem
28949 # is reportedly fixed, but why not run on old versions too?
28950 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28951 || (rm -f "$cfgfile"; exit 1)
28952
28953 case $xsi_shell in
28954 yes)
28955 cat << \_LT_EOF >> "$cfgfile"
d58dead8 28956
1cf3d07d
SE
28957# func_dirname file append nondir_replacement
28958# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28959# otherwise set result to NONDIR_REPLACEMENT.
28960func_dirname ()
28961{
28962 case ${1} in
28963 */*) func_dirname_result="${1%/*}${2}" ;;
28964 * ) func_dirname_result="${3}" ;;
28965 esac
28966}
28967
28968# func_basename file
28969func_basename ()
28970{
28971 func_basename_result="${1##*/}"
28972}
28973
d58dead8
PG
28974# func_dirname_and_basename file append nondir_replacement
28975# perform func_basename and func_dirname in a single function
28976# call:
28977# dirname: Compute the dirname of FILE. If nonempty,
28978# add APPEND to the result, otherwise set result
28979# to NONDIR_REPLACEMENT.
28980# value returned in "$func_dirname_result"
28981# basename: Compute filename of FILE.
28982# value retuned in "$func_basename_result"
28983# Implementation must be kept synchronized with func_dirname
28984# and func_basename. For efficiency, we do not delegate to
28985# those functions but instead duplicate the functionality here.
28986func_dirname_and_basename ()
28987{
28988 case ${1} in
28989 */*) func_dirname_result="${1%/*}${2}" ;;
28990 * ) func_dirname_result="${3}" ;;
28991 esac
28992 func_basename_result="${1##*/}"
28993}
28994
1cf3d07d
SE
28995# func_stripname prefix suffix name
28996# strip PREFIX and SUFFIX off of NAME.
28997# PREFIX and SUFFIX must not contain globbing or regex special
28998# characters, hashes, percent signs, but SUFFIX may contain a leading
28999# dot (in which case that matches only a dot).
29000func_stripname ()
29001{
29002 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29003 # positional parameters, so assign one to ordinary parameter first.
29004 func_stripname_result=${3}
29005 func_stripname_result=${func_stripname_result#"${1}"}
29006 func_stripname_result=${func_stripname_result%"${2}"}
29007}
29008
29009# func_opt_split
29010func_opt_split ()
29011{
29012 func_opt_split_opt=${1%%=*}
29013 func_opt_split_arg=${1#*=}
29014}
29015
29016# func_lo2o object
29017func_lo2o ()
29018{
29019 case ${1} in
29020 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29021 *) func_lo2o_result=${1} ;;
29022 esac
29023}
d58dead8
PG
29024
29025# func_xform libobj-or-source
29026func_xform ()
29027{
29028 func_xform_result=${1%.*}.lo
29029}
29030
29031# func_arith arithmetic-term...
29032func_arith ()
29033{
29034 func_arith_result=$(( $* ))
29035}
29036
29037# func_len string
29038# STRING may not start with a hyphen.
29039func_len ()
29040{
29041 func_len_result=${#1}
29042}
29043
1cf3d07d
SE
29044_LT_EOF
29045 ;;
29046 *) # Bourne compatible functions.
29047 cat << \_LT_EOF >> "$cfgfile"
d58dead8 29048
1cf3d07d
SE
29049# func_dirname file append nondir_replacement
29050# Compute the dirname of FILE. If nonempty, add APPEND to the result,
29051# otherwise set result to NONDIR_REPLACEMENT.
29052func_dirname ()
29053{
29054 # Extract subdirectory from the argument.
43e02a8a 29055 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
29056 if test "X$func_dirname_result" = "X${1}"; then
29057 func_dirname_result="${3}"
29058 else
29059 func_dirname_result="$func_dirname_result${2}"
29060 fi
29061}
29062
29063# func_basename file
29064func_basename ()
29065{
43e02a8a 29066 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
29067}
29068
d58dead8 29069
1cf3d07d
SE
29070# func_stripname prefix suffix name
29071# strip PREFIX and SUFFIX off of NAME.
29072# PREFIX and SUFFIX must not contain globbing or regex special
29073# characters, hashes, percent signs, but SUFFIX may contain a leading
29074# dot (in which case that matches only a dot).
29075# func_strip_suffix prefix name
29076func_stripname ()
29077{
29078 case ${2} in
43e02a8a
RW
29079 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29080 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
29081 esac
29082}
29083
29084# sed scripts:
29085my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29086my_sed_long_arg='1s/^-[^=]*=//'
29087
29088# func_opt_split
29089func_opt_split ()
29090{
43e02a8a
RW
29091 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29092 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
29093}
29094
29095# func_lo2o object
29096func_lo2o ()
29097{
43e02a8a 29098 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 29099}
d58dead8
PG
29100
29101# func_xform libobj-or-source
29102func_xform ()
29103{
43e02a8a 29104 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d58dead8
PG
29105}
29106
29107# func_arith arithmetic-term...
29108func_arith ()
29109{
29110 func_arith_result=`expr "$@"`
29111}
29112
29113# func_len string
29114# STRING may not start with a hyphen.
29115func_len ()
29116{
29117 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29118}
29119
1cf3d07d
SE
29120_LT_EOF
29121esac
29122
29123case $lt_shell_append in
29124 yes)
29125 cat << \_LT_EOF >> "$cfgfile"
29126
29127# func_append var value
29128# Append VALUE to the end of shell variable VAR.
29129func_append ()
29130{
29131 eval "$1+=\$2"
29132}
29133_LT_EOF
29134 ;;
29135 *)
29136 cat << \_LT_EOF >> "$cfgfile"
29137
29138# func_append var value
29139# Append VALUE to the end of shell variable VAR.
29140func_append ()
29141{
29142 eval "$1=\$$1\$2"
29143}
d58dead8 29144
1cf3d07d
SE
29145_LT_EOF
29146 ;;
29147 esac
29148
29149
29150 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29151 || (rm -f "$cfgfile"; exit 1)
29152
29153 mv -f "$cfgfile" "$ofile" ||
29154 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29155 chmod +x "$ofile"
29156
29157
29158 cat <<_LT_EOF >> "$ofile"
29159
29160# ### BEGIN LIBTOOL TAG CONFIG: FC
29161
29162# The linker used to build libraries.
29163LD=$lt_LD_FC
29164
43e02a8a
RW
29165# How to create reloadable object files.
29166reload_flag=$lt_reload_flag_FC
29167reload_cmds=$lt_reload_cmds_FC
29168
1cf3d07d
SE
29169# Commands used to build an old-style archive.
29170old_archive_cmds=$lt_old_archive_cmds_FC
29171
29172# A language specific compiler.
29173CC=$lt_compiler_FC
29174
29175# Is the compiler the GNU compiler?
29176with_gcc=$GCC_FC
29177
29178# Compiler flag to turn off builtin functions.
29179no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29180
29181# How to pass a linker flag through the compiler.
29182wl=$lt_lt_prog_compiler_wl_FC
29183
29184# Additional compiler flags for building library objects.
29185pic_flag=$lt_lt_prog_compiler_pic_FC
29186
29187# Compiler flag to prevent dynamic linking.
29188link_static_flag=$lt_lt_prog_compiler_static_FC
29189
29190# Does compiler simultaneously support -c and -o options?
29191compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29192
29193# Whether or not to add -lc for building shared libraries.
29194build_libtool_need_lc=$archive_cmds_need_lc_FC
29195
29196# Whether or not to disallow shared libs when runtime libs are static.
29197allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29198
29199# Compiler flag to allow reflexive dlopens.
29200export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29201
29202# Compiler flag to generate shared objects directly from archives.
29203whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29204
29205# Whether the compiler copes with passing no objects directly.
29206compiler_needs_object=$lt_compiler_needs_object_FC
29207
29208# Create an old-style archive from a shared archive.
29209old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29210
29211# Create a temporary old-style archive to link instead of a shared archive.
29212old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29213
29214# Commands used to build a shared archive.
29215archive_cmds=$lt_archive_cmds_FC
29216archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29217
29218# Commands used to build a loadable module if different from building
29219# a shared archive.
29220module_cmds=$lt_module_cmds_FC
29221module_expsym_cmds=$lt_module_expsym_cmds_FC
29222
29223# Whether we are building with GNU ld or not.
29224with_gnu_ld=$lt_with_gnu_ld_FC
29225
29226# Flag that allows shared libraries with undefined symbols to be built.
29227allow_undefined_flag=$lt_allow_undefined_flag_FC
29228
29229# Flag that enforces no undefined symbols.
29230no_undefined_flag=$lt_no_undefined_flag_FC
29231
29232# Flag to hardcode \$libdir into a binary during linking.
29233# This must work even if \$libdir does not exist
29234hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29235
29236# If ld is used when linking, flag to hardcode \$libdir into a binary
29237# during linking. This must work even if \$libdir does not exist.
29238hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29239
29240# Whether we need a single "-rpath" flag with a separated argument.
29241hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29242
29243# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29244# DIR into the resulting binary.
29245hardcode_direct=$hardcode_direct_FC
29246
29247# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29248# DIR into the resulting binary and the resulting library dependency is
29249# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29250# library is relocated.
29251hardcode_direct_absolute=$hardcode_direct_absolute_FC
29252
29253# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29254# into the resulting binary.
29255hardcode_minus_L=$hardcode_minus_L_FC
29256
29257# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29258# into the resulting binary.
29259hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29260
29261# Set to "yes" if building a shared library automatically hardcodes DIR
29262# into the library and all subsequent libraries and executables linked
29263# against it.
29264hardcode_automatic=$hardcode_automatic_FC
29265
29266# Set to yes if linker adds runtime paths of dependent libraries
29267# to runtime path list.
29268inherit_rpath=$inherit_rpath_FC
29269
29270# Whether libtool must link a program against all its dependency libraries.
29271link_all_deplibs=$link_all_deplibs_FC
29272
29273# Fix the shell variable \$srcfile for the compiler.
29274fix_srcfile_path=$lt_fix_srcfile_path_FC
29275
29276# Set to "yes" if exported symbols are required.
29277always_export_symbols=$always_export_symbols_FC
29278
29279# The commands to list exported symbols.
29280export_symbols_cmds=$lt_export_symbols_cmds_FC
29281
29282# Symbols that should not be listed in the preloaded symbols.
29283exclude_expsyms=$lt_exclude_expsyms_FC
29284
29285# Symbols that must always be exported.
29286include_expsyms=$lt_include_expsyms_FC
29287
29288# Commands necessary for linking programs (against libraries) with templates.
29289prelink_cmds=$lt_prelink_cmds_FC
29290
29291# Specify filename containing input files.
29292file_list_spec=$lt_file_list_spec_FC
29293
29294# How to hardcode a shared library path into an executable.
29295hardcode_action=$hardcode_action_FC
29296
d58dead8
PG
29297# The directories searched by this compiler when creating a shared library.
29298compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29299
1cf3d07d
SE
29300# Dependencies to place before and after the objects being linked to
29301# create a shared library.
29302predep_objects=$lt_predep_objects_FC
29303postdep_objects=$lt_postdep_objects_FC
29304predeps=$lt_predeps_FC
29305postdeps=$lt_postdeps_FC
29306
29307# The library search path used internally by the compiler when linking
29308# a shared library.
29309compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29310
29311# ### END LIBTOOL TAG CONFIG: FC
29312_LT_EOF
29313
679c0f9a 29314 ;;
5213506e 29315 "gstdint.h":C)
c13e029b
PB
29316if test "$GCC" = yes; then
29317 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29318else
29319 echo "/* generated for $CC */" > tmp-stdint.h
29320fi
4c4b3eb0 29321
c13e029b
PB
29322sed 's/^ *//' >> tmp-stdint.h <<EOF
29323
29324 #ifndef GCC_GENERATED_STDINT_H
29325 #define GCC_GENERATED_STDINT_H 1
29326
29327 #include <sys/types.h>
4c4b3eb0 29328EOF
4c4b3eb0 29329
c13e029b
PB
29330if test "$acx_cv_header_stdint" != stdint.h; then
29331 echo "#include <stddef.h>" >> tmp-stdint.h
29332fi
29333if test "$acx_cv_header_stdint" != stddef.h; then
29334 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29335fi
29336
29337sed 's/^ *//' >> tmp-stdint.h <<EOF
29338 /* glibc uses these symbols as guards to prevent redefinitions. */
29339 #ifdef __int8_t_defined
29340 #define _INT8_T
29341 #define _INT16_T
29342 #define _INT32_T
29343 #endif
29344 #ifdef __uint32_t_defined
29345 #define _UINT32_T
29346 #endif
29347
29348EOF
29349
29350# ----------------- done header, emit basic int types -------------
29351if test "$acx_cv_header_stdint" = stddef.h; then
29352 sed 's/^ *//' >> tmp-stdint.h <<EOF
29353
29354 #ifndef _UINT8_T
29355 #define _UINT8_T
29356 #ifndef __uint8_t_defined
29357 #define __uint8_t_defined
b9497ab5 29358 #ifndef uint8_t
c13e029b
PB
29359 typedef unsigned $acx_cv_type_int8_t uint8_t;
29360 #endif
29361 #endif
b9497ab5 29362 #endif
c13e029b
PB
29363
29364 #ifndef _UINT16_T
29365 #define _UINT16_T
29366 #ifndef __uint16_t_defined
29367 #define __uint16_t_defined
b9497ab5 29368 #ifndef uint16_t
c13e029b
PB
29369 typedef unsigned $acx_cv_type_int16_t uint16_t;
29370 #endif
29371 #endif
b9497ab5 29372 #endif
c13e029b
PB
29373
29374 #ifndef _UINT32_T
29375 #define _UINT32_T
29376 #ifndef __uint32_t_defined
29377 #define __uint32_t_defined
b9497ab5 29378 #ifndef uint32_t
c13e029b
PB
29379 typedef unsigned $acx_cv_type_int32_t uint32_t;
29380 #endif
29381 #endif
b9497ab5 29382 #endif
c13e029b
PB
29383
29384 #ifndef _INT8_T
29385 #define _INT8_T
29386 #ifndef __int8_t_defined
29387 #define __int8_t_defined
b9497ab5 29388 #ifndef int8_t
c13e029b
PB
29389 typedef $acx_cv_type_int8_t int8_t;
29390 #endif
29391 #endif
b9497ab5 29392 #endif
c13e029b
PB
29393
29394 #ifndef _INT16_T
29395 #define _INT16_T
29396 #ifndef __int16_t_defined
29397 #define __int16_t_defined
b9497ab5 29398 #ifndef int16_t
c13e029b
PB
29399 typedef $acx_cv_type_int16_t int16_t;
29400 #endif
29401 #endif
b9497ab5 29402 #endif
c13e029b
PB
29403
29404 #ifndef _INT32_T
29405 #define _INT32_T
29406 #ifndef __int32_t_defined
29407 #define __int32_t_defined
b9497ab5 29408 #ifndef int32_t
c13e029b
PB
29409 typedef $acx_cv_type_int32_t int32_t;
29410 #endif
29411 #endif
b9497ab5 29412 #endif
c13e029b
PB
29413EOF
29414elif test "$ac_cv_type_u_int32_t" = yes; then
29415 sed 's/^ *//' >> tmp-stdint.h <<EOF
29416
29417 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29418 #ifndef _INT8_T
29419 #define _INT8_T
29420 #endif
29421 #ifndef _INT16_T
29422 #define _INT16_T
29423 #endif
29424 #ifndef _INT32_T
29425 #define _INT32_T
29426 #endif
29427
29428 #ifndef _UINT8_T
29429 #define _UINT8_T
29430 #ifndef __uint8_t_defined
29431 #define __uint8_t_defined
b9497ab5 29432 #ifndef uint8_t
c13e029b
PB
29433 typedef u_int8_t uint8_t;
29434 #endif
29435 #endif
b9497ab5 29436 #endif
c13e029b
PB
29437
29438 #ifndef _UINT16_T
29439 #define _UINT16_T
29440 #ifndef __uint16_t_defined
29441 #define __uint16_t_defined
b9497ab5 29442 #ifndef uint16_t
c13e029b
PB
29443 typedef u_int16_t uint16_t;
29444 #endif
29445 #endif
b9497ab5 29446 #endif
c13e029b
PB
29447
29448 #ifndef _UINT32_T
29449 #define _UINT32_T
29450 #ifndef __uint32_t_defined
29451 #define __uint32_t_defined
b9497ab5 29452 #ifndef uint32_t
c13e029b
PB
29453 typedef u_int32_t uint32_t;
29454 #endif
29455 #endif
b9497ab5 29456 #endif
c13e029b
PB
29457EOF
29458else
29459 sed 's/^ *//' >> tmp-stdint.h <<EOF
29460
29461 /* Some systems have guard macros to prevent redefinitions, define them. */
29462 #ifndef _INT8_T
29463 #define _INT8_T
29464 #endif
29465 #ifndef _INT16_T
29466 #define _INT16_T
29467 #endif
29468 #ifndef _INT32_T
29469 #define _INT32_T
29470 #endif
29471 #ifndef _UINT8_T
29472 #define _UINT8_T
29473 #endif
29474 #ifndef _UINT16_T
29475 #define _UINT16_T
29476 #endif
29477 #ifndef _UINT32_T
29478 #define _UINT32_T
29479 #endif
29480EOF
29481fi
29482
29483# ------------- done basic int types, emit int64_t types ------------
29484if test "$ac_cv_type_uint64_t" = yes; then
29485 sed 's/^ *//' >> tmp-stdint.h <<EOF
29486
29487 /* system headers have good uint64_t and int64_t */
29488 #ifndef _INT64_T
29489 #define _INT64_T
29490 #endif
29491 #ifndef _UINT64_T
29492 #define _UINT64_T
29493 #endif
29494EOF
29495elif test "$ac_cv_type_u_int64_t" = yes; then
29496 sed 's/^ *//' >> tmp-stdint.h <<EOF
29497
29498 /* system headers have an u_int64_t (and int64_t) */
29499 #ifndef _INT64_T
29500 #define _INT64_T
29501 #endif
29502 #ifndef _UINT64_T
29503 #define _UINT64_T
29504 #ifndef __uint64_t_defined
29505 #define __uint64_t_defined
b9497ab5 29506 #ifndef uint64_t
c13e029b
PB
29507 typedef u_int64_t uint64_t;
29508 #endif
29509 #endif
b9497ab5 29510 #endif
c13e029b
PB
29511EOF
29512elif test -n "$acx_cv_type_int64_t"; then
29513 sed 's/^ *//' >> tmp-stdint.h <<EOF
29514
29515 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29516 #ifndef _INT64_T
29517 #define _INT64_T
b9497ab5 29518 #ifndef int64_t
c13e029b
PB
29519 typedef $acx_cv_type_int64_t int64_t;
29520 #endif
b9497ab5 29521 #endif
c13e029b
PB
29522 #ifndef _UINT64_T
29523 #define _UINT64_T
29524 #ifndef __uint64_t_defined
29525 #define __uint64_t_defined
b9497ab5 29526 #ifndef uint64_t
c13e029b
PB
29527 typedef unsigned $acx_cv_type_int64_t uint64_t;
29528 #endif
29529 #endif
b9497ab5 29530 #endif
c13e029b
PB
29531EOF
29532else
29533 sed 's/^ *//' >> tmp-stdint.h <<EOF
29534
29535 /* some common heuristics for int64_t, using compiler-specific tests */
29536 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29537 #ifndef _INT64_T
29538 #define _INT64_T
29539 #ifndef __int64_t_defined
b9497ab5 29540 #ifndef int64_t
c13e029b
PB
29541 typedef long long int64_t;
29542 #endif
29543 #endif
b9497ab5 29544 #endif
c13e029b
PB
29545 #ifndef _UINT64_T
29546 #define _UINT64_T
b9497ab5 29547 #ifndef uint64_t
c13e029b
PB
29548 typedef unsigned long long uint64_t;
29549 #endif
b9497ab5 29550 #endif
c13e029b
PB
29551
29552 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29553 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29554 does not implement __extension__. But that compiler doesn't define
29555 __GNUC_MINOR__. */
29556 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29557 # define __extension__
29558 # endif
29559
29560 # ifndef _INT64_T
29561 # define _INT64_T
b9497ab5 29562 # ifndef int64_t
c13e029b
PB
29563 __extension__ typedef long long int64_t;
29564 # endif
b9497ab5 29565 # endif
c13e029b
PB
29566 # ifndef _UINT64_T
29567 # define _UINT64_T
b9497ab5 29568 # ifndef uint64_t
c13e029b
PB
29569 __extension__ typedef unsigned long long uint64_t;
29570 # endif
b9497ab5 29571 # endif
c13e029b
PB
29572
29573 #elif !defined __STRICT_ANSI__
29574 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29575
29576 # ifndef _INT64_T
29577 # define _INT64_T
b9497ab5 29578 # ifndef int64_t
c13e029b
PB
29579 typedef __int64 int64_t;
29580 # endif
b9497ab5 29581 # endif
c13e029b
PB
29582 # ifndef _UINT64_T
29583 # define _UINT64_T
b9497ab5 29584 # ifndef uint64_t
c13e029b
PB
29585 typedef unsigned __int64 uint64_t;
29586 # endif
b9497ab5 29587 # endif
c13e029b
PB
29588 # endif /* compiler */
29589
29590 #endif /* ANSI version */
29591EOF
29592fi
29593
29594# ------------- done int64_t types, emit intptr types ------------
29595if test "$ac_cv_type_uintptr_t" != yes; then
29596 sed 's/^ *//' >> tmp-stdint.h <<EOF
29597
29598 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29599 #ifndef __uintptr_t_defined
b9497ab5 29600 #ifndef uintptr_t
c13e029b
PB
29601 typedef u$acx_cv_type_intptr_t uintptr_t;
29602 #endif
b9497ab5 29603 #endif
c13e029b 29604 #ifndef __intptr_t_defined
b9497ab5 29605 #ifndef intptr_t
c13e029b
PB
29606 typedef $acx_cv_type_intptr_t intptr_t;
29607 #endif
b9497ab5 29608 #endif
c13e029b
PB
29609EOF
29610fi
29611
29612# ------------- done intptr types, emit int_least types ------------
4c4b3eb0 29613if test "$ac_cv_type_int_least32_t" != yes; then
c13e029b 29614 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
29615
29616 /* Define int_least types */
29617 typedef int8_t int_least8_t;
29618 typedef int16_t int_least16_t;
29619 typedef int32_t int_least32_t;
c13e029b 29620 #ifdef _INT64_T
4c4b3eb0 29621 typedef int64_t int_least64_t;
c13e029b 29622 #endif
4c4b3eb0
PB
29623
29624 typedef uint8_t uint_least8_t;
29625 typedef uint16_t uint_least16_t;
29626 typedef uint32_t uint_least32_t;
c13e029b 29627 #ifdef _UINT64_T
4c4b3eb0 29628 typedef uint64_t uint_least64_t;
c13e029b 29629 #endif
4c4b3eb0
PB
29630EOF
29631fi
29632
c13e029b 29633# ------------- done intptr types, emit int_fast types ------------
4c4b3eb0 29634if test "$ac_cv_type_int_fast32_t" != yes; then
c13e029b 29635 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
29636
29637 /* Define int_fast types. short is often slow */
29638 typedef int8_t int_fast8_t;
29639 typedef int int_fast16_t;
29640 typedef int32_t int_fast32_t;
c13e029b 29641 #ifdef _INT64_T
4c4b3eb0 29642 typedef int64_t int_fast64_t;
c13e029b 29643 #endif
4c4b3eb0
PB
29644
29645 typedef uint8_t uint_fast8_t;
29646 typedef unsigned int uint_fast16_t;
29647 typedef uint32_t uint_fast32_t;
c13e029b 29648 #ifdef _UINT64_T
4c4b3eb0 29649 typedef uint64_t uint_fast64_t;
c13e029b
PB
29650 #endif
29651EOF
29652fi
29653
29654if test "$ac_cv_type_uintmax_t" != yes; then
29655 sed 's/^ *//' >> tmp-stdint.h <<EOF
29656
29657 /* Define intmax based on what we found */
b9497ab5 29658 #ifndef intmax_t
c13e029b
PB
29659 #ifdef _INT64_T
29660 typedef int64_t intmax_t;
29661 #else
29662 typedef long intmax_t;
29663 #endif
b9497ab5
RO
29664 #endif
29665 #ifndef uintmax_t
c13e029b
PB
29666 #ifdef _UINT64_T
29667 typedef uint64_t uintmax_t;
29668 #else
29669 typedef unsigned long uintmax_t;
29670 #endif
b9497ab5 29671 #endif
4c4b3eb0
PB
29672EOF
29673fi
29674
c13e029b
PB
29675sed 's/^ *//' >> tmp-stdint.h <<EOF
29676
29677 #endif /* GCC_GENERATED_STDINT_H */
29678EOF
4c4b3eb0 29679
c13e029b
PB
29680if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29681 rm -f tmp-stdint.h
4c4b3eb0 29682else
c13e029b 29683 mv -f tmp-stdint.h gstdint.h
4c4b3eb0
PB
29684fi
29685
29686 ;;
5213506e 29687
6de9cd9a 29688 esac
5213506e 29689done # for ac_tag
6de9cd9a 29690
6de9cd9a 29691
5213506e 29692as_fn_exit 0
6de9cd9a 29693_ACEOF
6de9cd9a
DN
29694ac_clean_files=$ac_clean_files_save
29695
5213506e
RW
29696test $ac_write_fail = 0 ||
29697 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29698
6de9cd9a
DN
29699
29700# configure is writing to config.log, and then calls config.status.
29701# config.status does its own redirection, appending to config.log.
29702# Unfortunately, on DOS this fails, as config.log is still kept open
29703# by configure, so config.status won't be able to write to it; its
29704# output is simply discarded. So we exec the FD to /dev/null,
29705# effectively closing config.log, so it can be properly (re)opened and
29706# appended to by config.status. When coming back to configure, we
29707# need to make the FD available again.
29708if test "$no_create" != yes; then
29709 ac_cs_success=:
29710 ac_config_status_args=
29711 test "$silent" = yes &&
29712 ac_config_status_args="$ac_config_status_args --quiet"
29713 exec 5>/dev/null
29714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29715 exec 5>>config.log
29716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29717 # would make configure fail if this is the last instruction.
5213506e
RW
29718 $ac_cs_success || as_fn_exit $?
29719fi
29720if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29722$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6de9cd9a
DN
29723fi
29724