]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
re PR other/79046 (g++ -print-file-name=plugin uses full version number in path)
[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
5213506e 609IEEE_FLAGS
8b198102
FXC
610IEEE_SUPPORT
611IEEE_SUPPORT_FALSE
612IEEE_SUPPORT_TRUE
5213506e 613FPU_HOST_HEADER
1ec601bf
FXC
614LIBGFOR_BUILD_QUAD_FALSE
615LIBGFOR_BUILD_QUAD_TRUE
616LIBQUADINCLUDE
617LIBQUADLIB_DEP
618LIBQUADLIB
619LIBQUADSPEC
5213506e
RW
620extra_ldflags_libgfortran
621ac_ct_FC
622FCFLAGS
623FC
624enable_static
625enable_shared
7de6ba7a 626lt_host_flags
5213506e
RW
627OTOOL64
628OTOOL
629LIPO
630NMEDIT
631DSYMUTIL
5213506e
RW
632OBJDUMP
633LN_S
634NM
635ac_ct_DUMPBIN
636DUMPBIN
5213506e
RW
637LIBTOOL
638RANLIB
639AR
640AS
66dbcf2d
RO
641HAVE_HWCAP_FALSE
642HAVE_HWCAP_TRUE
643HWCAP_LDFLAGS
644LD
645FGREP
646SED
5213506e 647SECTION_FLAGS
ee95f928
BS
648LIBGFOR_MINIMAL_FALSE
649LIBGFOR_MINIMAL_TRUE
49ea7a0e
RO
650LIBGFOR_USE_SYMVER_SUN_FALSE
651LIBGFOR_USE_SYMVER_SUN_TRUE
652LIBGFOR_USE_SYMVER_GNU_FALSE
653LIBGFOR_USE_SYMVER_GNU_TRUE
5213506e
RW
654LIBGFOR_USE_SYMVER_FALSE
655LIBGFOR_USE_SYMVER_TRUE
656AM_CFLAGS
657AM_FCFLAGS
21be0a5a
JB
658toolexeclibdir
659toolexecdir
660EGREP
661GREP
662CPP
5213506e
RW
663am__fastdepCC_FALSE
664am__fastdepCC_TRUE
665CCDEPMODE
c20fdb91 666am__nodep
5213506e
RW
667AMDEPBACKSLASH
668AMDEP_FALSE
669AMDEP_TRUE
670am__quote
671am__include
672DEPDIR
673OBJEXT
674EXEEXT
675ac_ct_CC
676CPPFLAGS
677LDFLAGS
678CFLAGS
679CC
5213506e
RW
680multi_basedir
681MAINT
682MAINTAINER_MODE_FALSE
683MAINTAINER_MODE_TRUE
684am__untar
685am__tar
686AMTAR
687am__leading_dot
688SET_MAKE
689AWK
690mkdir_p
691MKDIR_P
692INSTALL_STRIP_PROGRAM
693STRIP
694install_sh
695MAKEINFO
696AUTOHEADER
697AUTOMAKE
698AUTOCONF
699ACLOCAL
700VERSION
701PACKAGE
702CYGPATH_W
703am__isrc
704INSTALL_DATA
705INSTALL_SCRIPT
706INSTALL_PROGRAM
60858d8a 707target_noncanonical
5213506e
RW
708target_os
709target_vendor
710target_cpu
711target
712host_os
713host_vendor
714host_cpu
715host
716onestep
717onestep_FALSE
718onestep_TRUE
719target_subdir
720host_subdir
721build_subdir
722build_libsubdir
723build_os
724build_vendor
725build_cpu
726build
727target_alias
728host_alias
729build_alias
730LIBS
731ECHO_T
732ECHO_N
733ECHO_C
734DEFS
735mandir
736localedir
737libdir
738psdir
739pdfdir
740dvidir
741htmldir
742infodir
743docdir
744oldincludedir
745includedir
746localstatedir
747sharedstatedir
748sysconfdir
749datadir
750datarootdir
751libexecdir
752sbindir
753bindir
754program_transform_name
755prefix
756exec_prefix
757PACKAGE_URL
758PACKAGE_BUGREPORT
759PACKAGE_STRING
760PACKAGE_VERSION
761PACKAGE_TARNAME
762PACKAGE_NAME
763PATH_SEPARATOR
764SHELL'
6de9cd9a 765ac_subst_files=''
5213506e
RW
766ac_user_opts='
767enable_option_checking
768with_build_libsubdir
769enable_version_specific_runtime_libs
770enable_intermodule
771enable_maintainer_mode
772enable_multilib
773enable_dependency_tracking
bf382f5f 774enable_symvers
66dbcf2d 775with_gnu_ld
5213506e
RW
776enable_shared
777enable_static
778with_pic
779enable_fast_install
5213506e
RW
780enable_libtool_lock
781enable_largefile
87e6d9dc 782enable_libquadmath_support
3c36aa6b 783with_gcc_major_version_only
5213506e
RW
784'
785 ac_precious_vars='build_alias
786host_alias
787target_alias
21be0a5a
JB
788CC
789CFLAGS
790LDFLAGS
791LIBS
5213506e 792CPPFLAGS
21be0a5a 793CPP
5213506e 794FC
21be0a5a 795FCFLAGS'
5213506e 796
6de9cd9a
DN
797
798# Initialize some variables set by options.
799ac_init_help=
800ac_init_version=false
5213506e
RW
801ac_unrecognized_opts=
802ac_unrecognized_sep=
6de9cd9a
DN
803# The variables have the same names as the options, with
804# dashes changed to underlines.
805cache_file=/dev/null
806exec_prefix=NONE
807no_create=
808no_recursion=
809prefix=NONE
810program_prefix=NONE
811program_suffix=NONE
812program_transform_name=s,x,x,
813silent=
814site=
815srcdir=
816verbose=
817x_includes=NONE
818x_libraries=NONE
819
820# Installation directory options.
821# These are left unexpanded so users can "make install exec_prefix=/foo"
822# and all the variables that are supposed to be based on exec_prefix
823# by default will actually change.
824# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 825# (The list follows the same order as the GNU Coding Standards.)
6de9cd9a
DN
826bindir='${exec_prefix}/bin'
827sbindir='${exec_prefix}/sbin'
828libexecdir='${exec_prefix}/libexec'
5213506e
RW
829datarootdir='${prefix}/share'
830datadir='${datarootdir}'
6de9cd9a
DN
831sysconfdir='${prefix}/etc'
832sharedstatedir='${prefix}/com'
833localstatedir='${prefix}/var'
6de9cd9a
DN
834includedir='${prefix}/include'
835oldincludedir='/usr/include'
5213506e
RW
836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837infodir='${datarootdir}/info'
838htmldir='${docdir}'
839dvidir='${docdir}'
840pdfdir='${docdir}'
841psdir='${docdir}'
842libdir='${exec_prefix}/lib'
843localedir='${datarootdir}/locale'
844mandir='${datarootdir}/man'
6de9cd9a
DN
845
846ac_prev=
5213506e 847ac_dashdash=
6de9cd9a
DN
848for ac_option
849do
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
5213506e 852 eval $ac_prev=\$ac_option
6de9cd9a
DN
853 ac_prev=
854 continue
855 fi
856
5213506e
RW
857 case $ac_option in
858 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 *) ac_optarg=yes ;;
860 esac
6de9cd9a
DN
861
862 # Accept the important Cygnus configure options, so we can diagnose typos.
863
5213506e
RW
864 case $ac_dashdash$ac_option in
865 --)
866 ac_dashdash=yes ;;
6de9cd9a
DN
867
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 ac_prev=bindir ;;
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 bindir=$ac_optarg ;;
872
873 -build | --build | --buil | --bui | --bu)
874 ac_prev=build_alias ;;
875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876 build_alias=$ac_optarg ;;
877
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883 cache_file=$ac_optarg ;;
884
885 --config-cache | -C)
886 cache_file=config.cache ;;
887
5213506e 888 -datadir | --datadir | --datadi | --datad)
6de9cd9a 889 ac_prev=datadir ;;
5213506e 890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6de9cd9a
DN
891 datadir=$ac_optarg ;;
892
5213506e
RW
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
899
6de9cd9a 900 -disable-* | --disable-*)
5213506e 901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6de9cd9a 902 # Reject names that are not valid shell variable names.
5213506e
RW
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909"enable_$ac_useropt"
910"*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=no ;;
915
916 -docdir | --docdir | --docdi | --doc | --do)
917 ac_prev=docdir ;;
918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 docdir=$ac_optarg ;;
920
921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 ac_prev=dvidir ;;
923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 dvidir=$ac_optarg ;;
6de9cd9a
DN
925
926 -enable-* | --enable-*)
5213506e 927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6de9cd9a 928 # Reject names that are not valid shell variable names.
5213506e
RW
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935"enable_$ac_useropt"
936"*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
38d24731 939 esac
5213506e 940 eval enable_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
941
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
950
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
953 with_gas=yes ;;
954
955 -help | --help | --hel | --he | -h)
956 ac_init_help=long ;;
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
961
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
966
5213506e
RW
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 ac_prev=htmldir ;;
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 | --ht=*)
971 htmldir=$ac_optarg ;;
972
6de9cd9a
DN
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
979
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 ac_prev=infodir ;;
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
984
985 -libdir | --libdir | --libdi | --libd)
986 ac_prev=libdir ;;
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 libdir=$ac_optarg ;;
989
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
996
5213506e
RW
997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1001
6de9cd9a 1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1003 | --localstate | --localstat | --localsta | --localst | --locals)
6de9cd9a
DN
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6de9cd9a
DN
1007 localstatedir=$ac_optarg ;;
1008
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 ac_prev=mandir ;;
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1013
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1016 with_fp=no ;;
1017
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1020 no_create=yes ;;
1021
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 no_recursion=yes ;;
1025
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1034
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 ac_prev=prefix ;;
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1039
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1046
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1053
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1070
5213506e
RW
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 ac_prev=pdfdir ;;
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1075
1076 -psdir | --psdir | --psdi | --psd | --ps)
1077 ac_prev=psdir ;;
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 psdir=$ac_optarg ;;
1080
6de9cd9a
DN
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 silent=yes ;;
1084
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 ac_prev=sbindir ;;
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 | --sbi=* | --sb=*)
1089 sbindir=$ac_optarg ;;
1090
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1094 | --sha | --sh)
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 | --sha=* | --sh=*)
1100 sharedstatedir=$ac_optarg ;;
1101
1102 -site | --site | --sit)
1103 ac_prev=site ;;
1104 -site=* | --site=* | --sit=*)
1105 site=$ac_optarg ;;
1106
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 ac_prev=srcdir ;;
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1111
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1118
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1123
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 verbose=yes ;;
1126
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1129
1130 -with-* | --with-*)
5213506e 1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
6de9cd9a 1132 # Reject names that are not valid shell variable names.
5213506e
RW
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139"with_$ac_useropt"
1140"*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
38d24731 1143 esac
5213506e 1144 eval with_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
1145
1146 -without-* | --without-*)
5213506e 1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6de9cd9a 1148 # Reject names that are not valid shell variable names.
5213506e
RW
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155"with_$ac_useropt"
1156"*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=no ;;
6de9cd9a
DN
1161
1162 --x)
1163 # Obsolete; use --with-x.
1164 with_x=yes ;;
1165
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1172
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1179
5213506e
RW
1180 -*) as_fn_error "unrecognized option: \`$ac_option'
1181Try \`$0 --help' for more information."
6de9cd9a
DN
1182 ;;
1183
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
5213506e
RW
1187 case $ac_envvar in #(
1188 '' | [0-9]* | *[!_$as_cr_alnum]* )
1189 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1190 esac
1191 eval $ac_envvar=\$ac_optarg
6de9cd9a
DN
1192 export $ac_envvar ;;
1193
1194 *)
1195 # FIXME: should be removed in autoconf 3.0.
5213506e 1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6de9cd9a 1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6de9cd9a
DN
1199 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1200 ;;
1201
1202 esac
1203done
1204
1205if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1207 as_fn_error "missing argument to $ac_option"
6de9cd9a
DN
1208fi
1209
5213506e
RW
1210if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1212 no) ;;
1213 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
38d24731 1215 esac
5213506e 1216fi
38d24731 1217
5213506e
RW
1218# Check all directory arguments for consistency.
1219for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
38d24731 1223do
5213506e
RW
1224 eval ac_val=\$$ac_var
1225 # Remove trailing slashes.
1226 case $ac_val in
1227 */ )
1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229 eval $ac_var=\$ac_val;;
1230 esac
1231 # Be sure to have absolute directory names.
38d24731 1232 case $ac_val in
5213506e
RW
1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6de9cd9a 1235 esac
5213506e 1236 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
6de9cd9a
DN
1237done
1238
1239# There might be people who depend on the old broken behavior: `$host'
1240# used to hold the argument of --host etc.
1241# FIXME: To remove some day.
1242build=$build_alias
1243host=$host_alias
1244target=$target_alias
1245
1246# FIXME: To remove some day.
1247if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
5213506e 1250 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
6de9cd9a
DN
1251 If a cross compiler is detected then cross compile mode will be used." >&2
1252 elif test "x$build_alias" != "x$host_alias"; then
1253 cross_compiling=yes
1254 fi
1255fi
1256
1257ac_tool_prefix=
1258test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260test "$silent" = yes && exec 6>/dev/null
1261
1262
5213506e
RW
1263ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264ac_ls_di=`ls -di .` &&
1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error "working directory cannot be determined"
1267test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error "pwd does not report name of working directory"
1269
1270
6de9cd9a
DN
1271# Find the source files, if location was not specified.
1272if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
5213506e
RW
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280$as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)[^/].*/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\).*/{
1294 s//\1/
1295 q
1296 }
1297 s/.*/./; q'`
6de9cd9a 1298 srcdir=$ac_confdir
5213506e 1299 if test ! -r "$srcdir/$ac_unique_file"; then
6de9cd9a
DN
1300 srcdir=..
1301 fi
1302else
1303 ac_srcdir_defaulted=no
1304fi
5213506e
RW
1305if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1308fi
1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310ac_abs_confdir=`(
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1312 pwd)`
1313# When building in place, set srcdir=.
1314if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 srcdir=.
1316fi
1317# Remove unnecessary trailing slashes from srcdir.
1318# Double slashes in file names in object file debugging info
1319# mess up M-x gdb in Emacs.
1320case $srcdir in
1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322esac
1323for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328done
6de9cd9a
DN
1329
1330#
1331# Report the --help message.
1332#
1333if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1336 cat <<_ACEOF
0dce3ca1 1337\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
6de9cd9a
DN
1338
1339Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342VAR=VALUE. See below for descriptions of some of the useful variables.
1343
1344Defaults for the options are specified in brackets.
1345
1346Configuration:
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356
6de9cd9a
DN
1357Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1359 [$ac_default_prefix]
6de9cd9a 1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1361 [PREFIX]
6de9cd9a
DN
1362
1363By default, \`make install' will install all the files in
1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366for instance \`--prefix=\$HOME'.
1367
1368For better control, use the options below.
1369
1370Fine tuning of the installation directories:
5213506e
RW
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
6de9cd9a
DN
1390_ACEOF
1391
1392 cat <<\_ACEOF
1393
1394Program names:
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398
1399System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 1402 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
1403_ACEOF
1404fi
1405
1406if test -n "$ac_init_help"; then
1407 case $ac_init_help in
0dce3ca1 1408 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
6de9cd9a
DN
1409 esac
1410 cat <<\_ACEOF
1411
1412Optional Features:
5213506e 1413 --disable-option-checking ignore unrecognized --enable/--with options
6de9cd9a
DN
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87e6d9dc
TB
1416 --enable-version-specific-runtime-libs
1417 specify that runtime libraries should be installed
1418 in a compiler-specific directory
b808ac33 1419 --enable-intermodule build the library in one step
6de9cd9a
DN
1420 --enable-maintainer-mode enable make rules and dependencies not useful
1421 (and sometimes confusing) to the casual installer
96b8a615 1422 --enable-multilib build many library versions (default)
679c0f9a
TT
1423 --disable-dependency-tracking speeds up one-time build
1424 --enable-dependency-tracking do not reject slow dependency extractors
bf382f5f 1425 --disable-symvers disable symbol versioning for libgfortran
5213506e
RW
1426 --enable-shared[=PKGS] build shared libraries [default=yes]
1427 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
6de9cd9a 1430 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 1431 --disable-largefile omit support for large files
87e6d9dc
TB
1432 --disable-libquadmath-support
1433 disable libquadmath support for Fortran
6de9cd9a
DN
1434
1435Optional Packages:
1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1438 --with-build-libsubdir=DIR Directory where to find libraries for build system
66dbcf2d 1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1cf3d07d
SE
1440 --with-pic try to use only PIC/non-PIC objects [default=use
1441 both]
3c36aa6b
JJ
1442 --with-gcc-major-version-only
1443 use only GCC major number in filesystem paths
6de9cd9a
DN
1444
1445Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
5213506e
RW
1450 LIBS libraries to pass to the linker, e.g. -l<library>
1451 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1cf3d07d 1453 CPP C preprocessor
c7a35fe9
AS
1454 FC Fortran compiler command
1455 FCFLAGS Fortran compiler flags
6de9cd9a
DN
1456
1457Use these variables to override the choices made by `configure' or to help
1458it to find libraries and programs with nonstandard names/locations.
1459
5213506e
RW
1460Report bugs to the package provider.
1461GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1462General help using GNU software: <http://www.gnu.org/gethelp/>.
6de9cd9a 1463_ACEOF
5213506e 1464ac_status=$?
6de9cd9a
DN
1465fi
1466
1467if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
6de9cd9a 1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 continue
6de9cd9a
DN
1473 ac_builddir=.
1474
5213506e
RW
1475case "$ac_dir" in
1476.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477*)
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 esac ;;
1485esac
1486ac_abs_top_builddir=$ac_pwd
1487ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488# for backward compatibility:
1489ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
1490
1491case $srcdir in
5213506e 1492 .) # We are building in place.
6de9cd9a 1493 ac_srcdir=.
5213506e
RW
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 1497 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1500 *) # Relative name.
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
78511f8b 1504esac
5213506e
RW
1505ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure" --help=recursive
6de9cd9a 1515 else
5213506e
RW
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 fi || ac_status=$?
1518 cd "$ac_pwd" || { ac_status=$?; break; }
6de9cd9a
DN
1519 done
1520fi
1521
5213506e 1522test -n "$ac_init_help" && exit $ac_status
6de9cd9a
DN
1523if $ac_init_version; then
1524 cat <<\_ACEOF
0dce3ca1 1525GNU Fortran Runtime Library configure 0.3
5213506e 1526generated by GNU Autoconf 2.64
6de9cd9a 1527
5213506e 1528Copyright (C) 2009 Free Software Foundation, Inc.
6de9cd9a
DN
1529This configure script is free software; the Free Software Foundation
1530gives unlimited permission to copy, distribute and modify it.
1531_ACEOF
5213506e 1532 exit
6de9cd9a 1533fi
6de9cd9a 1534
5213506e
RW
1535## ------------------------ ##
1536## Autoconf initialization. ##
1537## ------------------------ ##
6de9cd9a 1538
5213506e
RW
1539# ac_fn_c_try_compile LINENO
1540# --------------------------
1541# Try to compile conftest.$ac_ext, and return whether this succeeded.
1542ac_fn_c_try_compile ()
1543{
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1547case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550esac
1551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552$as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1559 fi
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1565 ac_retval=0
1566else
1567 $as_echo "$as_me: failed program was:" >&5
1568sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1569
5213506e
RW
1570 ac_retval=1
1571fi
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 return $ac_retval
1574
1575} # ac_fn_c_try_compile
1576
21be0a5a
JB
1577# ac_fn_c_try_cpp LINENO
1578# ----------------------
1579# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1580ac_fn_c_try_cpp ()
6de9cd9a 1581{
5213506e 1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1583 if { { ac_try="$ac_cpp conftest.$ac_ext"
5213506e
RW
1584case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
21be0a5a 1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5213506e
RW
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21be0a5a
JB
1598 test $ac_status = 0; } >/dev/null && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5213506e 1600 test ! -s conftest.err
5213506e
RW
1601 }; then :
1602 ac_retval=0
1603else
1604 $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1606
21be0a5a 1607 ac_retval=1
5213506e 1608fi
5213506e
RW
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval
6de9cd9a 1611
21be0a5a 1612} # ac_fn_c_try_cpp
6de9cd9a 1613
21be0a5a 1614# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5213506e 1615# -------------------------------------------------------
21be0a5a
JB
1616# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1617# the include files in INCLUDES and setting the cache variable VAR
1618# accordingly.
1619ac_fn_c_check_header_mongrel ()
5213506e
RW
1620{
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1622 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
5213506e
RW
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624$as_echo_n "checking for $2... " >&6; }
1625if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1626 $as_echo_n "(cached) " >&6
21be0a5a
JB
1627fi
1628eval ac_res=\$$3
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630$as_echo "$ac_res" >&6; }
5213506e 1631else
21be0a5a
JB
1632 # Is the header compilable?
1633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1634$as_echo_n "checking $2 usability... " >&6; }
1635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e
RW
1636/* end confdefs.h. */
1637$4
1638#include <$2>
1639_ACEOF
1640if ac_fn_c_try_compile "$LINENO"; then :
21be0a5a 1641 ac_header_compiler=yes
5213506e 1642else
21be0a5a 1643 ac_header_compiler=no
5213506e
RW
1644fi
1645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21be0a5a
JB
1646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1647$as_echo "$ac_header_compiler" >&6; }
6de9cd9a 1648
21be0a5a
JB
1649# Is the header present?
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1651$as_echo_n "checking $2 presence... " >&6; }
1652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653/* end confdefs.h. */
1654#include <$2>
1655_ACEOF
1656if ac_fn_c_try_cpp "$LINENO"; then :
1657 ac_header_preproc=yes
1658else
1659 ac_header_preproc=no
1660fi
1661rm -f conftest.err conftest.$ac_ext
1662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1663$as_echo "$ac_header_preproc" >&6; }
6de9cd9a 1664
21be0a5a
JB
1665# So? What about this header?
1666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1667 yes:no: )
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1669$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672 ;;
1673 no:yes:* )
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1675$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1677$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1679$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1681$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684 ;;
5213506e 1685esac
21be0a5a
JB
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687$as_echo_n "checking for $2... " >&6; }
1688if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1689 $as_echo_n "(cached) " >&6
5213506e 1690else
21be0a5a
JB
1691 eval "$3=\$ac_header_compiler"
1692fi
1693eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695$as_echo "$ac_res" >&6; }
5213506e
RW
1696fi
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 1698
21be0a5a 1699} # ac_fn_c_check_header_mongrel
6de9cd9a 1700
5213506e
RW
1701# ac_fn_c_try_run LINENO
1702# ----------------------
1703# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704# that executables *can* be run.
1705ac_fn_c_try_run ()
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1709case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1729 ac_retval=0
1730else
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1734
5213506e
RW
1735 ac_retval=$ac_status
1736fi
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 return $ac_retval
6de9cd9a 1740
5213506e 1741} # ac_fn_c_try_run
6de9cd9a 1742
21be0a5a
JB
1743# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1744# -------------------------------------------------------
1745# Tests whether HEADER exists and can be compiled using the include files in
1746# INCLUDES, setting the cache variable VAR accordingly.
1747ac_fn_c_check_header_compile ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753 $as_echo_n "(cached) " >&6
1754else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h. */
1757$4
1758#include <$2>
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"; then :
1761 eval "$3=yes"
1762else
1763 eval "$3=no"
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766fi
1767eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771
1772} # ac_fn_c_check_header_compile
1773
1774# ac_fn_c_try_link LINENO
1775# -----------------------
1776# Try to link conftest.$ac_ext, and return whether this succeeded.
1777ac_fn_c_try_link ()
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext conftest$ac_exeext
1781 if { { ac_try="$ac_link"
1782case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest$ac_exeext && {
1800 test "$cross_compiling" = yes ||
1801 $as_test_x conftest$ac_exeext
1802 }; then :
1803 ac_retval=0
1804else
1805 $as_echo "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809fi
1810 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1811 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1812 # interfere with the next link command; also delete a directory that is
1813 # left behind by Apple's compiler. We do this before executing the actions.
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
1817
1818} # ac_fn_c_try_link
1819
5213506e
RW
1820# ac_fn_c_check_func LINENO FUNC VAR
1821# ----------------------------------
1822# Tests whether FUNC exists, setting the cache variable VAR accordingly
1823ac_fn_c_check_func ()
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827$as_echo_n "checking for $2... " >&6; }
1828if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829 $as_echo_n "(cached) " >&6
1830else
1831 if test x$gcc_no_link = xyes; then
1832 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1833fi
1834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h. */
1836/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1838#define $2 innocuous_$2
6de9cd9a 1839
5213506e
RW
1840/* System header to define __stub macros and hopefully few prototypes,
1841 which can conflict with char $2 (); below.
1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843 <limits.h> exists even on freestanding compilers. */
6de9cd9a 1844
5213506e
RW
1845#ifdef __STDC__
1846# include <limits.h>
1847#else
1848# include <assert.h>
1849#endif
6de9cd9a 1850
5213506e
RW
1851#undef $2
1852
1853/* Override any GCC internal prototype to avoid an error.
1854 Use char because int might match the return type of a GCC
1855 builtin and then its argument prototype would still apply. */
1856#ifdef __cplusplus
1857extern "C"
1858#endif
1859char $2 ();
1860/* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863#if defined __stub_$2 || defined __stub___$2
1864choke me
1865#endif
1866
1867int
1868main ()
38d24731 1869{
5213506e
RW
1870return $2 ();
1871 ;
1872 return 0;
38d24731 1873}
5213506e
RW
1874_ACEOF
1875if ac_fn_c_try_link "$LINENO"; then :
1876 eval "$3=yes"
1877else
1878 eval "$3=no"
1879fi
1880rm -f core conftest.err conftest.$ac_objext \
1881 conftest$ac_exeext conftest.$ac_ext
1882fi
1883eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885$as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 1887
5213506e 1888} # ac_fn_c_check_func
6de9cd9a 1889
5213506e
RW
1890# ac_fn_fc_try_compile LINENO
1891# ---------------------------
1892# Try to compile conftest.$ac_ext, and return whether this succeeded.
1893ac_fn_fc_try_compile ()
1894{
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext
1897 if { { ac_try="$ac_compile"
1898case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901esac
1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903$as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_compile") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1910 fi
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_fc_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest.$ac_objext; then :
1916 ac_retval=0
1917else
1918 $as_echo "$as_me: failed program was:" >&5
1919sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1920
5213506e
RW
1921 ac_retval=1
1922fi
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 return $ac_retval
6de9cd9a 1925
5213506e 1926} # ac_fn_fc_try_compile
6de9cd9a 1927
5213506e
RW
1928# ac_fn_fc_try_link LINENO
1929# ------------------------
1930# Try to link conftest.$ac_ext, and return whether this succeeded.
1931ac_fn_fc_try_link ()
1932{
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1936case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939esac
1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941$as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1948 fi
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_fc_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 $as_test_x conftest$ac_exeext
1956 }; then :
1957 ac_retval=0
1958else
1959 $as_echo "$as_me: failed program was:" >&5
1960sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1961
5213506e
RW
1962 ac_retval=1
1963fi
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 return $ac_retval
6de9cd9a 1971
5213506e 1972} # ac_fn_fc_try_link
6de9cd9a 1973
5213506e
RW
1974# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1975# -------------------------------------------
1976# Tests whether TYPE exists after having included INCLUDES, setting cache
1977# variable VAR accordingly.
1978ac_fn_c_check_type ()
1979{
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982$as_echo_n "checking for $2... " >&6; }
1983if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984 $as_echo_n "(cached) " >&6
1985else
1986 eval "$3=no"
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h. */
1989$4
1990int
1991main ()
1992{
1993if (sizeof ($2))
1994 return 0;
1995 ;
1996 return 0;
1997}
6de9cd9a 1998_ACEOF
5213506e
RW
1999if ac_fn_c_try_compile "$LINENO"; then :
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h. */
2002$4
2003int
2004main ()
2005{
2006if (sizeof (($2)))
2007 return 0;
2008 ;
2009 return 0;
2010}
6de9cd9a 2011_ACEOF
5213506e 2012if ac_fn_c_try_compile "$LINENO"; then :
6de9cd9a 2013
5213506e
RW
2014else
2015 eval "$3=yes"
2016fi
2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018fi
2019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020fi
2021eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023$as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 2025
5213506e 2026} # ac_fn_c_check_type
6de9cd9a 2027
21be0a5a
JB
2028# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2029# --------------------------------------------
2030# Tries to find the compile-time value of EXPR in a program that includes
2031# INCLUDES, setting VAR accordingly. Returns whether the value could be
2032# computed
2033ac_fn_c_compute_int ()
5213506e
RW
2034{
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c13e029b
PB
2036 if test "$cross_compiling" = yes; then
2037 # Depending upon the size, compute the lo and hi bounds.
2038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2039/* end confdefs.h. */
c13e029b 2040$4
5213506e
RW
2041int
2042main ()
2043{
c13e029b 2044static int test_array [1 - 2 * !(($2) >= 0)];
5213506e 2045test_array [0] = 0
6de9cd9a 2046
5213506e
RW
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2052 ac_lo=0 ac_mid=0
2053 while :; do
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2055/* end confdefs.h. */
c13e029b 2056$4
5213506e
RW
2057int
2058main ()
2059{
c13e029b 2060static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5213506e 2061test_array [0] = 0
6de9cd9a 2062
5213506e
RW
2063 ;
2064 return 0;
2065}
2066_ACEOF
2067if ac_fn_c_try_compile "$LINENO"; then :
c13e029b 2068 ac_hi=$ac_mid; break
5213506e 2069else
c13e029b
PB
2070 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2071 if test $ac_lo -le $ac_mid; then
2072 ac_lo= ac_hi=
2073 break
2074 fi
2075 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5213506e
RW
2076fi
2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2078 done
2079else
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h. */
2082$4
2083int
2084main ()
2085{
2086static int test_array [1 - 2 * !(($2) < 0)];
2087test_array [0] = 0
2088
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_hi=-1 ac_mid=-1
2095 while :; do
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h. */
2098$4
2099int
2100main ()
2101{
2102static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2103test_array [0] = 0
2104
2105 ;
2106 return 0;
2107}
2108_ACEOF
2109if ac_fn_c_try_compile "$LINENO"; then :
2110 ac_lo=$ac_mid; break
2111else
2112 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2113 if test $ac_mid -le $ac_hi; then
2114 ac_lo= ac_hi=
2115 break
2116 fi
2117 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
5213506e
RW
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b 2120 done
d72a3ac1 2121else
c13e029b 2122 ac_lo= ac_hi=
5213506e 2123fi
c13e029b 2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d72a3ac1 2125fi
c13e029b
PB
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127# Binary search between lo and hi bounds.
2128while test "x$ac_lo" != "x$ac_hi"; do
2129 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2131/* end confdefs.h. */
c13e029b 2132$4
5213506e
RW
2133int
2134main ()
2135{
c13e029b 2136static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5213506e 2137test_array [0] = 0
6de9cd9a 2138
5213506e
RW
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2144 ac_hi=$ac_mid
2145else
2146 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
5213506e
RW
2147fi
2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2149done
2150case $ac_lo in #((
2151?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2152'') ac_retval=1 ;;
2153esac
2154 else
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156/* end confdefs.h. */
2157$4
2158static long int longval () { return $2; }
2159static unsigned long int ulongval () { return $2; }
2160#include <stdio.h>
2161#include <stdlib.h>
2162int
2163main ()
2164{
6de9cd9a 2165
c13e029b
PB
2166 FILE *f = fopen ("conftest.val", "w");
2167 if (! f)
2168 return 1;
2169 if (($2) < 0)
2170 {
2171 long int i = longval ();
2172 if (i != ($2))
2173 return 1;
2174 fprintf (f, "%ld", i);
2175 }
2176 else
2177 {
2178 unsigned long int i = ulongval ();
2179 if (i != ($2))
2180 return 1;
2181 fprintf (f, "%lu", i);
2182 }
2183 /* Do not output a trailing newline, as this causes \r\n confusion
2184 on some platforms. */
2185 return ferror (f) || fclose (f) != 0;
2186
2187 ;
2188 return 0;
2189}
2190_ACEOF
2191if ac_fn_c_try_run "$LINENO"; then :
2192 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
5213506e 2193else
c13e029b 2194 ac_retval=1
d72a3ac1 2195fi
c13e029b
PB
2196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2197 conftest.$ac_objext conftest.beam conftest.$ac_ext
2198rm -f conftest.val
2199
2200 fi
5213506e 2201 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
c13e029b 2202 return $ac_retval
6de9cd9a 2203
c13e029b 2204} # ac_fn_c_compute_int
6de9cd9a 2205
5213506e
RW
2206# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2207# ----------------------------------------------------
2208# Tries to find if the field MEMBER exists in type AGGR, after including
2209# INCLUDES, setting cache variable VAR accordingly.
2210ac_fn_c_check_member ()
2211{
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2214$as_echo_n "checking for $2.$3... " >&6; }
2215if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2216 $as_echo_n "(cached) " >&6
2217else
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220$5
2221int
2222main ()
2223{
2224static $2 ac_aggr;
2225if (ac_aggr.$3)
2226return 0;
2227 ;
2228 return 0;
2229}
2230_ACEOF
2231if ac_fn_c_try_compile "$LINENO"; then :
2232 eval "$4=yes"
2233else
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235/* end confdefs.h. */
2236$5
2237int
2238main ()
2239{
2240static $2 ac_aggr;
2241if (sizeof ac_aggr.$3)
2242return 0;
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247if ac_fn_c_try_compile "$LINENO"; then :
2248 eval "$4=yes"
2249else
2250 eval "$4=no"
2251fi
2252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253fi
2254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255fi
2256eval ac_res=\$$4
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258$as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 2260
5213506e
RW
2261} # ac_fn_c_check_member
2262cat >config.log <<_ACEOF
2263This file contains any messages produced by compilers while
2264running configure, to aid debugging if configure makes a mistake.
6de9cd9a 2265
5213506e
RW
2266It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2267generated by GNU Autoconf 2.64. Invocation command line was
6de9cd9a 2268
5213506e 2269 $ $0 $@
6de9cd9a 2270
5213506e
RW
2271_ACEOF
2272exec 5>>config.log
2273{
2274cat <<_ASUNAME
2275## --------- ##
2276## Platform. ##
2277## --------- ##
6de9cd9a 2278
5213506e
RW
2279hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2280uname -m = `(uname -m) 2>/dev/null || echo unknown`
2281uname -r = `(uname -r) 2>/dev/null || echo unknown`
2282uname -s = `(uname -s) 2>/dev/null || echo unknown`
2283uname -v = `(uname -v) 2>/dev/null || echo unknown`
6de9cd9a 2284
5213506e
RW
2285/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2286/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
6de9cd9a 2287
5213506e
RW
2288/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2289/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2290/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2291/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2292/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2293/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2294/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
6de9cd9a 2295
5213506e 2296_ASUNAME
18c04407 2297
5213506e
RW
2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299for as_dir in $PATH
2300do
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 $as_echo "PATH: $as_dir"
2304 done
2305IFS=$as_save_IFS
18c04407 2306
5213506e 2307} >&5
18c04407 2308
5213506e 2309cat >&5 <<_ACEOF
6de9cd9a
DN
2310
2311
5213506e
RW
2312## ----------- ##
2313## Core tests. ##
2314## ----------- ##
78511f8b 2315
5213506e 2316_ACEOF
38d24731 2317
96b8a615 2318
5213506e
RW
2319# Keep a trace of the command line.
2320# Strip out --no-create and --no-recursion so they do not pile up.
2321# Strip out --silent because we don't want to record it for future runs.
2322# Also quote any args containing shell meta-characters.
2323# Make two passes to allow for proper duplicate-argument suppression.
2324ac_configure_args=
2325ac_configure_args0=
2326ac_configure_args1=
2327ac_must_keep_next=false
2328for ac_pass in 1 2
2329do
2330 for ac_arg
2331 do
2332 case $ac_arg in
2333 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2335 | -silent | --silent | --silen | --sile | --sil)
2336 continue ;;
2337 *\'*)
2338 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 esac
2340 case $ac_pass in
2341 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2342 2)
2343 as_fn_append ac_configure_args1 " '$ac_arg'"
2344 if test $ac_must_keep_next = true; then
2345 ac_must_keep_next=false # Got value, back to normal.
2346 else
2347 case $ac_arg in
2348 *=* | --config-cache | -C | -disable-* | --disable-* \
2349 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2350 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2351 | -with-* | --with-* | -without-* | --without-* | --x)
2352 case "$ac_configure_args0 " in
2353 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2354 esac
2355 ;;
2356 -* ) ac_must_keep_next=true ;;
2357 esac
2358 fi
2359 as_fn_append ac_configure_args " '$ac_arg'"
2360 ;;
2361 esac
2362 done
6de9cd9a 2363done
5213506e
RW
2364{ ac_configure_args0=; unset ac_configure_args0;}
2365{ ac_configure_args1=; unset ac_configure_args1;}
96b8a615 2366
5213506e
RW
2367# When interrupted or exit'd, cleanup temporary files, and complete
2368# config.log. We remove comments because anyway the quotes in there
2369# would cause problems or look ugly.
2370# WARNING: Use '\'' to represent an apostrophe within the trap.
2371# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2372trap 'exit_status=$?
2373 # Save into config.log some information that might help in debugging.
2374 {
2375 echo
96b8a615 2376
5213506e
RW
2377 cat <<\_ASBOX
2378## ---------------- ##
2379## Cache variables. ##
2380## ---------------- ##
2381_ASBOX
2382 echo
2383 # The following way of writing the cache mishandles newlines in values,
2384(
2385 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2386 eval ac_val=\$$ac_var
2387 case $ac_val in #(
2388 *${as_nl}*)
2389 case $ac_var in #(
2390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2391$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2392 esac
2393 case $ac_var in #(
2394 _ | IFS | as_nl) ;; #(
2395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2396 *) { eval $ac_var=; unset $ac_var;} ;;
2397 esac ;;
2398 esac
2399 done
2400 (set) 2>&1 |
2401 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2402 *${as_nl}ac_space=\ *)
2403 sed -n \
2404 "s/'\''/'\''\\\\'\'''\''/g;
2405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2406 ;; #(
2407 *)
2408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2409 ;;
2410 esac |
2411 sort
2412)
2413 echo
2414
2415 cat <<\_ASBOX
2416## ----------------- ##
2417## Output variables. ##
2418## ----------------- ##
2419_ASBOX
2420 echo
2421 for ac_var in $ac_subst_vars
2422 do
2423 eval ac_val=\$$ac_var
2424 case $ac_val in
2425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426 esac
2427 $as_echo "$ac_var='\''$ac_val'\''"
2428 done | sort
2429 echo
2430
2431 if test -n "$ac_subst_files"; then
2432 cat <<\_ASBOX
2433## ------------------- ##
2434## File substitutions. ##
2435## ------------------- ##
2436_ASBOX
2437 echo
2438 for ac_var in $ac_subst_files
2439 do
2440 eval ac_val=\$$ac_var
2441 case $ac_val in
2442 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443 esac
2444 $as_echo "$ac_var='\''$ac_val'\''"
2445 done | sort
2446 echo
2447 fi
2448
2449 if test -s confdefs.h; then
2450 cat <<\_ASBOX
2451## ----------- ##
2452## confdefs.h. ##
2453## ----------- ##
2454_ASBOX
2455 echo
2456 cat confdefs.h
2457 echo
2458 fi
2459 test "$ac_signal" != 0 &&
2460 $as_echo "$as_me: caught signal $ac_signal"
2461 $as_echo "$as_me: exit $exit_status"
2462 } >&5
2463 rm -f core *.core core.conftest.* &&
2464 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2465 exit $exit_status
2466' 0
2467for ac_signal in 1 2 13 15; do
2468 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2469done
2470ac_signal=0
2471
2472# confdefs.h avoids OS command line length limits that DEFS can exceed.
2473rm -f -r conftest* confdefs.h
2474
2475$as_echo "/* confdefs.h */" > confdefs.h
2476
2477# Predefined preprocessor variables.
2478
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_NAME "$PACKAGE_NAME"
2481_ACEOF
2482
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2485_ACEOF
2486
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_VERSION "$PACKAGE_VERSION"
2489_ACEOF
2490
2491cat >>confdefs.h <<_ACEOF
2492#define PACKAGE_STRING "$PACKAGE_STRING"
2493_ACEOF
2494
2495cat >>confdefs.h <<_ACEOF
2496#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2497_ACEOF
2498
2499cat >>confdefs.h <<_ACEOF
2500#define PACKAGE_URL "$PACKAGE_URL"
2501_ACEOF
2502
2503
2504# Let the site file select an alternate cache file if it wants to.
2505# Prefer an explicitly selected file to automatically selected ones.
2506ac_site_file1=NONE
2507ac_site_file2=NONE
2508if test -n "$CONFIG_SITE"; then
2509 ac_site_file1=$CONFIG_SITE
2510elif test "x$prefix" != xNONE; then
2511 ac_site_file1=$prefix/share/config.site
2512 ac_site_file2=$prefix/etc/config.site
2513else
2514 ac_site_file1=$ac_default_prefix/share/config.site
2515 ac_site_file2=$ac_default_prefix/etc/config.site
2516fi
2517for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2518do
2519 test "x$ac_site_file" = xNONE && continue
2520 if test -r "$ac_site_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2522$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2523 sed 's/^/| /' "$ac_site_file" >&5
2524 . "$ac_site_file"
2525 fi
2526done
2527
2528if test -r "$cache_file"; then
2529 # Some versions of bash will fail to source /dev/null (special
2530 # files actually), so we avoid doing that.
2531 if test -f "$cache_file"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2533$as_echo "$as_me: loading cache $cache_file" >&6;}
2534 case $cache_file in
2535 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2536 *) . "./$cache_file";;
2537 esac
2538 fi
2539else
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2541$as_echo "$as_me: creating cache $cache_file" >&6;}
2542 >$cache_file
2543fi
2544
74544378
JB
2545as_fn_append ac_header_list " unistd.h"
2546as_fn_append ac_header_list " sys/time.h"
2547as_fn_append ac_header_list " sys/times.h"
2548as_fn_append ac_header_list " sys/resource.h"
2549as_fn_append ac_header_list " sys/types.h"
2550as_fn_append ac_header_list " sys/stat.h"
2551as_fn_append ac_header_list " sys/wait.h"
2552as_fn_append ac_header_list " floatingpoint.h"
2553as_fn_append ac_header_list " ieeefp.h"
2554as_fn_append ac_header_list " fenv.h"
2555as_fn_append ac_header_list " fptrap.h"
fa86f4f9 2556as_fn_append ac_header_list " fpxcp.h"
74544378
JB
2557as_fn_append ac_header_list " pwd.h"
2558as_fn_append ac_header_list " complex.h"
9cbecd06 2559as_fn_append ac_header_list " xlocale.h"
74544378
JB
2560as_fn_append ac_func_list " getrusage"
2561as_fn_append ac_func_list " times"
2562as_fn_append ac_func_list " mkstemp"
2563as_fn_append ac_func_list " strtof"
2564as_fn_append ac_func_list " strtold"
2565as_fn_append ac_func_list " snprintf"
2566as_fn_append ac_func_list " ftruncate"
2567as_fn_append ac_func_list " chsize"
2568as_fn_append ac_func_list " chdir"
2569as_fn_append ac_func_list " getlogin"
2570as_fn_append ac_func_list " gethostname"
2571as_fn_append ac_func_list " kill"
2572as_fn_append ac_func_list " link"
2573as_fn_append ac_func_list " symlink"
2574as_fn_append ac_func_list " sleep"
2575as_fn_append ac_func_list " ttyname"
2576as_fn_append ac_func_list " alarm"
2577as_fn_append ac_func_list " access"
2578as_fn_append ac_func_list " fork"
74544378 2579as_fn_append ac_func_list " setmode"
b5b58343 2580as_fn_append ac_func_list " fcntl"
74544378
JB
2581as_fn_append ac_func_list " gettimeofday"
2582as_fn_append ac_func_list " stat"
2583as_fn_append ac_func_list " fstat"
2584as_fn_append ac_func_list " lstat"
2585as_fn_append ac_func_list " getpwuid"
2586as_fn_append ac_func_list " vsnprintf"
2587as_fn_append ac_func_list " dup"
2588as_fn_append ac_func_list " getcwd"
2589as_fn_append ac_func_list " localtime_r"
2590as_fn_append ac_func_list " gmtime_r"
74544378
JB
2591as_fn_append ac_func_list " getpwuid_r"
2592as_fn_append ac_func_list " ttyname_r"
2593as_fn_append ac_func_list " clock_gettime"
74544378
JB
2594as_fn_append ac_func_list " getgid"
2595as_fn_append ac_func_list " getpid"
74544378
JB
2596as_fn_append ac_func_list " getuid"
2597as_fn_append ac_func_list " geteuid"
8ecd1c0d 2598as_fn_append ac_func_list " umask"
68ee9c08 2599as_fn_append ac_func_list " getegid"
227e441f 2600as_fn_append ac_func_list " secure_getenv"
68ee9c08 2601as_fn_append ac_func_list " __secure_getenv"
c20fdb91 2602as_fn_append ac_func_list " mkostemp"
4269f19c
JB
2603as_fn_append ac_func_list " strnlen"
2604as_fn_append ac_func_list " strndup"
9cbecd06
JB
2605as_fn_append ac_func_list " newlocale"
2606as_fn_append ac_func_list " freelocale"
2607as_fn_append ac_func_list " uselocale"
2608as_fn_append ac_func_list " strerror_l"
db9f46a9 2609as_fn_append ac_header_list " math.h"
5213506e
RW
2610# Check that the precious variables saved in the cache have kept the same
2611# value.
2612ac_cache_corrupted=false
2613for ac_var in $ac_precious_vars; do
2614 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2615 eval ac_new_set=\$ac_env_${ac_var}_set
2616 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2617 eval ac_new_val=\$ac_env_${ac_var}_value
2618 case $ac_old_set,$ac_new_set in
2619 set,)
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2621$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2622 ac_cache_corrupted=: ;;
2623 ,set)
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2625$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2626 ac_cache_corrupted=: ;;
2627 ,);;
2628 *)
2629 if test "x$ac_old_val" != "x$ac_new_val"; then
2630 # differences in whitespace do not lead to failure.
2631 ac_old_val_w=`echo x $ac_old_val`
2632 ac_new_val_w=`echo x $ac_new_val`
2633 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2635$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2636 ac_cache_corrupted=:
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2639$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2640 eval $ac_var=\$ac_old_val
2641 fi
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2643$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2645$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2646 fi;;
2647 esac
2648 # Pass precious variables to config.status.
2649 if test "$ac_new_set" = set; then
2650 case $ac_new_val in
2651 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2652 *) ac_arg=$ac_var=$ac_new_val ;;
2653 esac
2654 case " $ac_configure_args " in
2655 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2656 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2657 esac
2658 fi
2659done
2660if $ac_cache_corrupted; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2664$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2665 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2666fi
2667## -------------------- ##
2668## Main body of script. ##
2669## -------------------- ##
2670
2671ac_ext=c
2672ac_cpp='$CPP $CPPFLAGS'
2673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676
2677
2678
2679
2680
2681ac_config_headers="$ac_config_headers config.h"
2682
2683ac_aux_dir=
2684for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2685 for ac_t in install-sh install.sh shtool; do
2686 if test -f "$ac_dir/$ac_t"; then
2687 ac_aux_dir=$ac_dir
2688 ac_install_sh="$ac_aux_dir/$ac_t -c"
2689 break 2
2690 fi
2691 done
2692done
2693if test -z "$ac_aux_dir"; then
2694 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2695fi
2696
2697# These three variables are undocumented and unsupported,
2698# and are intended to be withdrawn in a future Autoconf release.
2699# They can cause serious problems if a builder's source tree is in a directory
2700# whose full name contains unusual characters.
2701ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2702ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2703ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2704
2705
2706# Make sure we can run config.sub.
2707$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2708 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2709
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2711$as_echo_n "checking build system type... " >&6; }
2712if test "${ac_cv_build+set}" = set; then :
2713 $as_echo_n "(cached) " >&6
2714else
2715 ac_build_alias=$build_alias
2716test "x$ac_build_alias" = x &&
2717 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2718test "x$ac_build_alias" = x &&
2719 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2720ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2721 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2722
2723fi
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2725$as_echo "$ac_cv_build" >&6; }
2726case $ac_cv_build in
2727*-*-*) ;;
2728*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2729esac
2730build=$ac_cv_build
2731ac_save_IFS=$IFS; IFS='-'
2732set x $ac_cv_build
2733shift
2734build_cpu=$1
2735build_vendor=$2
2736shift; shift
2737# Remember, the first character of IFS is used to create $*,
2738# except with old shells:
2739build_os=$*
2740IFS=$ac_save_IFS
2741case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2742
2743
2744 case ${build_alias} in
2745 "") build_noncanonical=${build} ;;
2746 *) build_noncanonical=${build_alias} ;;
2747esac
891c05b1
JJ
2748
2749 case ${host_alias} in
2750 "") host_noncanonical=${build_noncanonical} ;;
2751 *) host_noncanonical=${host_alias} ;;
2752esac
2753
2754 case ${target_alias} in
2755 "") target_noncanonical=${host_noncanonical} ;;
2756 *) target_noncanonical=${target_alias} ;;
2757esac
2758
57255173
PB
2759
2760# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2761# have matching libraries, they should use host libraries: Makefile.tpl
2762# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2763# However, they still use the build modules, because the corresponding
2764# host modules (e.g. bison) are only built for the host when bootstrap
2765# finishes. So:
2766# - build_subdir is where we find build modules, and never changes.
2767# - build_libsubdir is where we find build libraries, and can be overridden.
2768
2769# Prefix 'build-' so this never conflicts with target_subdir.
891c05b1 2770build_subdir="build-${build_noncanonical}"
57255173 2771
5213506e
RW
2772# Check whether --with-build-libsubdir was given.
2773if test "${with_build_libsubdir+set}" = set; then :
2774 withval=$with_build_libsubdir; build_libsubdir="$withval"
57255173
PB
2775else
2776 build_libsubdir="$build_subdir"
5213506e
RW
2777fi
2778
891c05b1
JJ
2779# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2780if ( test $srcdir = . && test -d gcc ) \
2781 || test -d $srcdir/../host-${host_noncanonical}; then
2782 host_subdir="host-${host_noncanonical}"
2783else
2784 host_subdir=.
2785fi
2786# No prefix.
2787target_subdir=${target_noncanonical}
2788
2789
2790# -------
2791# Options
2792# -------
2793
5213506e
RW
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2795$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2796# Check whether --enable-version-specific-runtime-libs was given.
2797if test "${enable_version_specific_runtime_libs+set}" = set; then :
2798 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
891c05b1
JJ
2799 yes) version_specific_libs=yes ;;
2800 no) version_specific_libs=no ;;
5213506e 2801 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
891c05b1
JJ
2802 esac
2803else
2804 version_specific_libs=no
5213506e
RW
2805fi
2806
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2808$as_echo "$version_specific_libs" >&6; }
891c05b1 2809
b808ac33 2810# Build with intermodule optimisations
5213506e
RW
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2812$as_echo_n "checking for --enable-intermodule... " >&6; }
2813# Check whether --enable-intermodule was given.
2814if test "${enable_intermodule+set}" = set; then :
2815 enableval=$enable_intermodule; case "$enable_intermodule" in
b808ac33
BF
2816 yes) onestep="-onestep";;
2817 *) onestep="";;
2818esac
2819else
2820 onestep=""
5213506e 2821fi
b808ac33 2822
5213506e
RW
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2824$as_echo "$enable_intermodule" >&6; }
2825 if test x$onestep = x-onestep; then
b808ac33
BF
2826 onestep_TRUE=
2827 onestep_FALSE='#'
2828else
2829 onestep_TRUE='#'
2830 onestep_FALSE=
2831fi
2832
2833
891c05b1
JJ
2834
2835# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2836#
2837# You will slowly go insane if you do not grok the following fact: when
2838# building this library, the top-level /target/ becomes the library's /host/.
2839#
2840# configure then causes --target to default to --host, exactly like any
2841# other package using autoconf. Therefore, 'target' and 'host' will
2842# always be the same. This makes sense both for native and cross compilers
2843# just think about it for a little while. :-)
2844#
2845# Also, if this library is being configured as part of a cross compiler, the
2846# top-level configure script will pass the "real" host as $with_cross_host.
2847#
2848# Do not delete or change the following two lines. For why, see
2849# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
5213506e
RW
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2851$as_echo_n "checking host system type... " >&6; }
2852if test "${ac_cv_host+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
2854else
2855 if test "x$host_alias" = x; then
2856 ac_cv_host=$ac_cv_build
2857else
2858 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2859 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2860fi
2861
2862fi
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2864$as_echo "$ac_cv_host" >&6; }
2865case $ac_cv_host in
2866*-*-*) ;;
2867*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2868esac
96b8a615 2869host=$ac_cv_host
5213506e
RW
2870ac_save_IFS=$IFS; IFS='-'
2871set x $ac_cv_host
2872shift
2873host_cpu=$1
2874host_vendor=$2
2875shift; shift
2876# Remember, the first character of IFS is used to create $*,
2877# except with old shells:
2878host_os=$*
2879IFS=$ac_save_IFS
2880case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
38d24731
RW
2881
2882
5213506e
RW
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2884$as_echo_n "checking target system type... " >&6; }
2885if test "${ac_cv_target+set}" = set; then :
2886 $as_echo_n "(cached) " >&6
96b8a615 2887else
5213506e
RW
2888 if test "x$target_alias" = x; then
2889 ac_cv_target=$ac_cv_host
2890else
2891 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2892 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2893fi
96b8a615
AJ
2894
2895fi
5213506e
RW
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2897$as_echo "$ac_cv_target" >&6; }
2898case $ac_cv_target in
2899*-*-*) ;;
2900*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2901esac
96b8a615 2902target=$ac_cv_target
5213506e
RW
2903ac_save_IFS=$IFS; IFS='-'
2904set x $ac_cv_target
2905shift
2906target_cpu=$1
2907target_vendor=$2
2908shift; shift
2909# Remember, the first character of IFS is used to create $*,
2910# except with old shells:
2911target_os=$*
2912IFS=$ac_save_IFS
2913case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
96b8a615
AJ
2914
2915
2916# The aliases save the names the user supplied, while $host etc.
2917# will get canonicalized.
2918test -n "$target_alias" &&
2919 test "$program_prefix$program_suffix$program_transform_name" = \
2920 NONENONEs,x,x, &&
2921 program_prefix=${target_alias}-
5213506e 2922
60858d8a
TB
2923
2924
2925
96b8a615
AJ
2926target_alias=${target_alias-$host_alias}
2927
60858d8a 2928
96b8a615
AJ
2929# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2930# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
679c0f9a 2931# 1.9.6: minimum required version
96b8a615
AJ
2932# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2933# of other PACKAGE_* variables will, however, and there's nothing
2934# we can do about that; they come from AC_INIT).
2935# foreign: we don't follow the normal rules for GNU packages (no COPYING
2936# file in the top srcdir, etc, etc), so stop complaining.
13917ae3 2937# no-dist: we don't want 'dist' and related rules.
96b8a615
AJ
2938# -Wall: turns on all automake warnings...
2939# -Wno-portability: ...except this one, since GNU make is required.
5213506e
RW
2940am__api_version='1.11'
2941
6de9cd9a
DN
2942# Find a good install program. We prefer a C program (faster),
2943# so one script is as good as another. But avoid the broken or
2944# incompatible versions:
2945# SysV /etc/install, /usr/sbin/install
2946# SunOS /usr/etc/install
2947# IRIX /sbin/install
2948# AIX /bin/install
2949# AmigaOS /C/install, which installs bootblocks on floppy discs
2950# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2951# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2952# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2953# OS/2's system install, which has a completely different semantic
2954# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2955# Reject install programs that cannot install multiple files.
5213506e
RW
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2957$as_echo_n "checking for a BSD-compatible install... " >&6; }
6de9cd9a 2958if test -z "$INSTALL"; then
5213506e
RW
2959if test "${ac_cv_path_install+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
6de9cd9a
DN
2961else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH
2964do
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
5213506e
RW
2967 # Account for people who put trailing slashes in PATH elements.
2968case $as_dir/ in #((
2969 ./ | .// | /[cC]/* | \
6de9cd9a 2970 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2971 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6de9cd9a
DN
2972 /usr/ucb/* ) ;;
2973 *)
2974 # OSF1 and SCO ODT 3.0 have their own names for install.
2975 # Don't use installbsd from OSF since it installs stuff as root
2976 # by default.
2977 for ac_prog in ginstall scoinst install; do
2978 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2979 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6de9cd9a
DN
2980 if test $ac_prog = install &&
2981 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2982 # AIX install. It has an incompatible calling convention.
2983 :
2984 elif test $ac_prog = install &&
2985 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2986 # program-specific install script used by HP pwplus--don't use.
2987 :
2988 else
38d24731
RW
2989 rm -rf conftest.one conftest.two conftest.dir
2990 echo one > conftest.one
2991 echo two > conftest.two
2992 mkdir conftest.dir
2993 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2994 test -s conftest.one && test -s conftest.two &&
2995 test -s conftest.dir/conftest.one &&
2996 test -s conftest.dir/conftest.two
2997 then
2998 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2999 break 3
3000 fi
6de9cd9a
DN
3001 fi
3002 fi
3003 done
3004 done
3005 ;;
3006esac
5213506e
RW
3007
3008 done
3009IFS=$as_save_IFS
6de9cd9a 3010
38d24731 3011rm -rf conftest.one conftest.two conftest.dir
6de9cd9a
DN
3012
3013fi
3014 if test "${ac_cv_path_install+set}" = set; then
3015 INSTALL=$ac_cv_path_install
3016 else
f489fba1
FXC
3017 # As a last resort, use the slow shell script. Don't cache a
3018 # value for INSTALL within a source directory, because that will
6de9cd9a 3019 # break other packages using the cache if that directory is
f489fba1 3020 # removed, or if the value is a relative name.
6de9cd9a
DN
3021 INSTALL=$ac_install_sh
3022 fi
3023fi
5213506e
RW
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3025$as_echo "$INSTALL" >&6; }
6de9cd9a
DN
3026
3027# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3028# It thinks the first close brace ends the variable substitution.
3029test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3030
3031test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3032
3033test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034
5213506e
RW
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3036$as_echo_n "checking whether build environment is sane... " >&6; }
6de9cd9a
DN
3037# Just in case
3038sleep 1
3039echo timestamp > conftest.file
5213506e
RW
3040# Reject unsafe characters in $srcdir or the absolute working directory
3041# name. Accept space and tab only in the latter.
3042am_lf='
3043'
3044case `pwd` in
3045 *[\\\"\#\$\&\'\`$am_lf]*)
3046 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3047esac
3048case $srcdir in
3049 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3050 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3051esac
3052
6de9cd9a
DN
3053# Do `set' in a subshell so we don't clobber the current shell's
3054# arguments. Must try -L first in case configure is actually a
3055# symlink; some systems play weird games with the mod time of symlinks
3056# (eg FreeBSD returns the mod time of the symlink's containing
3057# directory).
3058if (
5213506e 3059 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6de9cd9a
DN
3060 if test "$*" = "X"; then
3061 # -L didn't work.
5213506e 3062 set X `ls -t "$srcdir/configure" conftest.file`
6de9cd9a
DN
3063 fi
3064 rm -f conftest.file
3065 if test "$*" != "X $srcdir/configure conftest.file" \
3066 && test "$*" != "X conftest.file $srcdir/configure"; then
3067
3068 # If neither matched, then we have a broken ls. This can happen
3069 # if, for instance, CONFIG_SHELL is bash and it inherits a
3070 # broken ls alias from the environment. This has actually
3071 # happened. Such a system could not be considered "sane".
5213506e
RW
3072 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3073alias in your environment" "$LINENO" 5
6de9cd9a
DN
3074 fi
3075
3076 test "$2" = conftest.file
3077 )
3078then
3079 # Ok.
3080 :
3081else
5213506e
RW
3082 as_fn_error "newly created file is older than distributed files!
3083Check your system clock" "$LINENO" 5
6de9cd9a 3084fi
5213506e
RW
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086$as_echo "yes" >&6; }
6de9cd9a 3087test "$program_prefix" != NONE &&
5213506e 3088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6de9cd9a
DN
3089# Use a double $ so make ignores it.
3090test "$program_suffix" != NONE &&
5213506e
RW
3091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3092# Double any \ or $.
6de9cd9a 3093# By default was `s,x,x', remove it if useless.
5213506e
RW
3094ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3095program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6de9cd9a
DN
3096
3097# expand $ac_aux_dir to an absolute path
3098am_aux_dir=`cd $ac_aux_dir && pwd`
3099
5213506e
RW
3100if test x"${MISSING+set}" != xset; then
3101 case $am_aux_dir in
3102 *\ * | *\ *)
3103 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3104 *)
3105 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3106 esac
3107fi
6de9cd9a
DN
3108# Use eval to expand $SHELL
3109if eval "$MISSING --run true"; then
3110 am_missing_run="$MISSING --run "
3111else
3112 am_missing_run=
5213506e
RW
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3114$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6de9cd9a
DN
3115fi
3116
5213506e
RW
3117if test x"${install_sh}" != xset; then
3118 case $am_aux_dir in
3119 *\ * | *\ *)
3120 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3121 *)
3122 install_sh="\${SHELL} $am_aux_dir/install-sh"
3123 esac
3124fi
3125
3126# Installed binaries are usually stripped using `strip' when the user
3127# run `make install-strip'. However `strip' might not be the right
3128# tool to use in cross-compilation environments, therefore Automake
3129# will honor the `STRIP' environment variable to overrule this program.
3130if test "$cross_compiling" != no; then
3131 if test -n "$ac_tool_prefix"; then
3132 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3133set dummy ${ac_tool_prefix}strip; ac_word=$2
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135$as_echo_n "checking for $ac_word... " >&6; }
3136if test "${ac_cv_prog_STRIP+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
6de9cd9a 3138else
5213506e
RW
3139 if test -n "$STRIP"; then
3140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6de9cd9a
DN
3141else
3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143for as_dir in $PATH
3144do
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
5213506e
RW
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3151 break 2
3152 fi
3153done
5213506e
RW
3154 done
3155IFS=$as_save_IFS
6de9cd9a
DN
3156
3157fi
3158fi
5213506e
RW
3159STRIP=$ac_cv_prog_STRIP
3160if test -n "$STRIP"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3162$as_echo "$STRIP" >&6; }
6de9cd9a 3163else
5213506e
RW
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165$as_echo "no" >&6; }
6de9cd9a
DN
3166fi
3167
6de9cd9a 3168
5213506e
RW
3169fi
3170if test -z "$ac_cv_prog_STRIP"; then
3171 ac_ct_STRIP=$STRIP
3172 # Extract the first word of "strip", so it can be a program name with args.
3173set dummy strip; ac_word=$2
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175$as_echo_n "checking for $ac_word... " >&6; }
3176if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3177 $as_echo_n "(cached) " >&6
6de9cd9a 3178else
5213506e
RW
3179 if test -n "$ac_ct_STRIP"; then
3180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38d24731 3181else
5213506e
RW
3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183for as_dir in $PATH
3184do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3189 ac_cv_prog_ac_ct_STRIP="strip"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3192 fi
3193done
3194 done
3195IFS=$as_save_IFS
3196
38d24731 3197fi
6de9cd9a 3198fi
5213506e
RW
3199ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3200if test -n "$ac_ct_STRIP"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3202$as_echo "$ac_ct_STRIP" >&6; }
3203else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205$as_echo "no" >&6; }
3206fi
3207
3208 if test "x$ac_ct_STRIP" = x; then
3209 STRIP=":"
3210 else
3211 case $cross_compiling:$ac_tool_warned in
3212yes:)
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3215ac_tool_warned=yes ;;
3216esac
3217 STRIP=$ac_ct_STRIP
3218 fi
3219else
3220 STRIP="$ac_cv_prog_STRIP"
3221fi
3222
3223fi
3224INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3225
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3227$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3228if test -z "$MKDIR_P"; then
3229 if test "${ac_cv_path_mkdir+set}" = set; then :
3230 $as_echo_n "(cached) " >&6
3231else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3234do
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for ac_prog in mkdir gmkdir; do
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3240 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3241 'mkdir (GNU coreutils) '* | \
3242 'mkdir (coreutils) '* | \
3243 'mkdir (fileutils) '4.1*)
3244 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3245 break 3;;
3246 esac
3247 done
3248 done
3249 done
3250IFS=$as_save_IFS
3251
3252fi
3253
3254 if test "${ac_cv_path_mkdir+set}" = set; then
3255 MKDIR_P="$ac_cv_path_mkdir -p"
3256 else
3257 # As a last resort, use the slow shell script. Don't cache a
3258 # value for MKDIR_P within a source directory, because that will
3259 # break other packages using the cache if that directory is
3260 # removed, or if the value is a relative name.
3261 test -d ./--version && rmdir ./--version
3262 MKDIR_P="$ac_install_sh -d"
3263 fi
3264fi
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3266$as_echo "$MKDIR_P" >&6; }
3267
3268mkdir_p="$MKDIR_P"
3269case $mkdir_p in
3270 [\\/$]* | ?:[\\/]*) ;;
3271 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3272esac
3273
3274for ac_prog in gawk mawk nawk awk
3275do
3276 # Extract the first word of "$ac_prog", so it can be a program name with args.
3277set dummy $ac_prog; ac_word=$2
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279$as_echo_n "checking for $ac_word... " >&6; }
3280if test "${ac_cv_prog_AWK+set}" = set; then :
3281 $as_echo_n "(cached) " >&6
3282else
3283 if test -n "$AWK"; then
3284 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3285else
3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 ac_cv_prog_AWK="$ac_prog"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297done
3298 done
3299IFS=$as_save_IFS
3300
3301fi
3302fi
3303AWK=$ac_cv_prog_AWK
3304if test -n "$AWK"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3306$as_echo "$AWK" >&6; }
3307else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309$as_echo "no" >&6; }
3310fi
3311
3312
3313 test -n "$AWK" && break
3314done
3315
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3317$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3318set x ${MAKE-make}
3319ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3320if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3321 $as_echo_n "(cached) " >&6
3322else
3323 cat >conftest.make <<\_ACEOF
3324SHELL = /bin/sh
3325all:
3326 @echo '@@@%%%=$(MAKE)=@@@%%%'
3327_ACEOF
3328# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3329case `${MAKE-make} -f conftest.make 2>/dev/null` in
3330 *@@@%%%=?*=@@@%%%*)
3331 eval ac_cv_prog_make_${ac_make}_set=yes;;
3332 *)
3333 eval ac_cv_prog_make_${ac_make}_set=no;;
3334esac
3335rm -f conftest.make
3336fi
3337if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339$as_echo "yes" >&6; }
6de9cd9a
DN
3340 SET_MAKE=
3341else
5213506e
RW
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343$as_echo "no" >&6; }
6de9cd9a
DN
3344 SET_MAKE="MAKE=${MAKE-make}"
3345fi
3346
3347rm -rf .tst 2>/dev/null
3348mkdir .tst 2>/dev/null
3349if test -d .tst; then
3350 am__leading_dot=.
3351else
3352 am__leading_dot=_
3353fi
3354rmdir .tst 2>/dev/null
3355
5213506e
RW
3356if test "`cd $srcdir && pwd`" != "`pwd`"; then
3357 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3358 # is not polluted with repeated "-I."
3359 am__isrc=' -I$(srcdir)'
3360 # test to see if srcdir already configured
3361 if test -f $srcdir/config.status; then
3362 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3363 fi
6de9cd9a
DN
3364fi
3365
3366# test whether we have cygpath
3367if test -z "$CYGPATH_W"; then
3368 if (cygpath --version) >/dev/null 2>/dev/null; then
3369 CYGPATH_W='cygpath -w'
3370 else
3371 CYGPATH_W=echo
3372 fi
3373fi
3374
3375
3376# Define the identity of the package.
3377 PACKAGE='libgfortran'
0dce3ca1 3378 VERSION='0.3'
6de9cd9a
DN
3379
3380
6de9cd9a
DN
3381# Some tools Automake needs.
3382
3383ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3384
3385
3386AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3387
3388
3389AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3390
3391
3392AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3393
3394
3395MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3396
6de9cd9a
DN
3397# We need awk for the "check" target. The system "awk" is bad on
3398# some platforms.
c20fdb91
JB
3399# Always define AMTAR for backward compatibility. Yes, it's still used
3400# in the wild :-( We should find a proper way to deprecate it ...
3401AMTAR='$${TAR-tar}'
d49ec2d1 3402
c20fdb91 3403am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d49ec2d1
KC
3404
3405
6de9cd9a
DN
3406
3407
3408
6de9cd9a 3409
5213506e
RW
3410
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3412$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3413 # Check whether --enable-maintainer-mode was given.
3414if test "${enable_maintainer_mode+set}" = set; then :
3415 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6de9cd9a
DN
3416else
3417 USE_MAINTAINER_MODE=no
5213506e 3418fi
6de9cd9a 3419
5213506e
RW
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3421$as_echo "$USE_MAINTAINER_MODE" >&6; }
3422 if test $USE_MAINTAINER_MODE = yes; then
6de9cd9a
DN
3423 MAINTAINER_MODE_TRUE=
3424 MAINTAINER_MODE_FALSE='#'
3425else
3426 MAINTAINER_MODE_TRUE='#'
3427 MAINTAINER_MODE_FALSE=
3428fi
3429
3430 MAINT=$MAINTAINER_MODE_TRUE
3431
3432
96b8a615 3433# Default to --enable-multilib
5213506e
RW
3434# Check whether --enable-multilib was given.
3435if test "${enable_multilib+set}" = set; then :
3436 enableval=$enable_multilib; case "$enableval" in
96b8a615
AJ
3437 yes) multilib=yes ;;
3438 no) multilib=no ;;
5213506e 3439 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
96b8a615
AJ
3440 esac
3441else
3442 multilib=yes
5213506e
RW
3443fi
3444
96b8a615
AJ
3445
3446# We may get other options which we leave undocumented:
3447# --with-target-subdir, --with-multisrctop, --with-multisubdir
3448# See config-ml.in if you want the gory details.
3449
3450if test "$srcdir" = "."; then
3451 if test "$with_target_subdir" != "."; then
3452 multi_basedir="$srcdir/$with_multisrctop../.."
3453 else
3454 multi_basedir="$srcdir/$with_multisrctop.."
3455 fi
3456else
3457 multi_basedir="$srcdir/.."
3458fi
3459
3460
9f9ef303
FXC
3461# Even if the default multilib is not a cross compilation,
3462# it may be that some of the other multilibs are.
3463if test $cross_compiling = no && test $multilib = yes \
3464 && test "x${with_multisubdir}" != x ; then
3465 cross_compiling=maybe
3466fi
3467
5213506e 3468ac_config_commands="$ac_config_commands default-1"
96b8a615
AJ
3469
3470
3471# Handy for debugging:
3472#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3473
3474# Are we being configured with some form of cross compiler?
3475# NB: We don't actually need to know this just now, but when, say, a test
3476# suite is included, we'll have to know.
3477if test "$build" != "$host"; then
3478 LIBGFOR_IS_NATIVE=false
f02d008e 3479
96b8a615
AJ
3480else
3481 LIBGFOR_IS_NATIVE=true
3482fi
3483
21be0a5a 3484DEPDIR="${am__leading_dot}deps"
96b8a615 3485
21be0a5a 3486ac_config_commands="$ac_config_commands depfiles"
96b8a615 3487
6de9cd9a 3488
21be0a5a
JB
3489am_make=${MAKE-make}
3490cat > confinc << 'END'
3491am__doit:
3492 @echo this is the am__doit target
3493.PHONY: am__doit
3494END
3495# If we don't find an include directive, just comment out the code.
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3497$as_echo_n "checking for style of include used by $am_make... " >&6; }
3498am__include="#"
3499am__quote=
3500_am_result=none
3501# First try GNU make style include.
3502echo "include confinc" > confmf
3503# Ignore all kinds of additional output from `make'.
3504case `$am_make -s -f confmf 2> /dev/null` in #(
3505*the\ am__doit\ target*)
3506 am__include=include
3507 am__quote=
3508 _am_result=GNU
3509 ;;
3510esac
3511# Now try BSD make style include.
3512if test "$am__include" = "#"; then
3513 echo '.include "confinc"' > confmf
3514 case `$am_make -s -f confmf 2> /dev/null` in #(
3515 *the\ am__doit\ target*)
3516 am__include=.include
3517 am__quote="\""
3518 _am_result=BSD
3519 ;;
3520 esac
3521fi
1ec601bf 3522
6de9cd9a 3523
21be0a5a
JB
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3525$as_echo "$_am_result" >&6; }
3526rm -f confinc confmf
3527
3528# Check whether --enable-dependency-tracking was given.
3529if test "${enable_dependency_tracking+set}" = set; then :
3530 enableval=$enable_dependency_tracking;
3531fi
3532
3533if test "x$enable_dependency_tracking" != xno; then
3534 am_depcomp="$ac_aux_dir/depcomp"
3535 AMDEPBACKSLASH='\'
c20fdb91 3536 am__nodep='_no'
21be0a5a
JB
3537fi
3538 if test "x$enable_dependency_tracking" != xno; then
3539 AMDEP_TRUE=
3540 AMDEP_FALSE='#'
3541else
3542 AMDEP_TRUE='#'
3543 AMDEP_FALSE=
3544fi
6de9cd9a
DN
3545
3546
6de9cd9a
DN
3547ac_ext=c
3548ac_cpp='$CPP $CPPFLAGS'
3549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3554set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556$as_echo_n "checking for $ac_word... " >&6; }
3557if test "${ac_cv_prog_CC+set}" = set; then :
3558 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3559else
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3562else
3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564for as_dir in $PATH
3565do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
5213506e
RW
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3570 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3572 break 2
3573 fi
3574done
5213506e
RW
3575 done
3576IFS=$as_save_IFS
6de9cd9a
DN
3577
3578fi
3579fi
3580CC=$ac_cv_prog_CC
3581if test -n "$CC"; then
5213506e
RW
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3583$as_echo "$CC" >&6; }
6de9cd9a 3584else
5213506e
RW
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586$as_echo "no" >&6; }
6de9cd9a
DN
3587fi
3588
5213506e 3589
6de9cd9a
DN
3590fi
3591if test -z "$ac_cv_prog_CC"; then
3592 ac_ct_CC=$CC
3593 # Extract the first word of "gcc", so it can be a program name with args.
3594set dummy gcc; ac_word=$2
5213506e
RW
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596$as_echo_n "checking for $ac_word... " >&6; }
3597if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3599else
3600 if test -n "$ac_ct_CC"; then
3601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3602else
3603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604for as_dir in $PATH
3605do
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
5213506e
RW
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3610 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3612 break 2
3613 fi
3614done
5213506e
RW
3615 done
3616IFS=$as_save_IFS
6de9cd9a
DN
3617
3618fi
3619fi
3620ac_ct_CC=$ac_cv_prog_ac_ct_CC
3621if test -n "$ac_ct_CC"; then
5213506e
RW
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3623$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3624else
5213506e
RW
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626$as_echo "no" >&6; }
6de9cd9a
DN
3627fi
3628
5213506e
RW
3629 if test "x$ac_ct_CC" = x; then
3630 CC=""
3631 else
3632 case $cross_compiling:$ac_tool_warned in
3633yes:)
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3636ac_tool_warned=yes ;;
3637esac
3638 CC=$ac_ct_CC
3639 fi
6de9cd9a
DN
3640else
3641 CC="$ac_cv_prog_CC"
3642fi
3643
3644if test -z "$CC"; then
5213506e
RW
3645 if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6de9cd9a 3647set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649$as_echo_n "checking for $ac_word... " >&6; }
3650if test "${ac_cv_prog_CC+set}" = set; then :
3651 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3652else
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655else
3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657for as_dir in $PATH
3658do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
5213506e
RW
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3663 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3665 break 2
3666 fi
3667done
5213506e
RW
3668 done
3669IFS=$as_save_IFS
6de9cd9a
DN
3670
3671fi
3672fi
3673CC=$ac_cv_prog_CC
3674if test -n "$CC"; then
5213506e
RW
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676$as_echo "$CC" >&6; }
38d24731 3677else
5213506e
RW
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679$as_echo "no" >&6; }
38d24731
RW
3680fi
3681
38d24731 3682
5213506e 3683 fi
6de9cd9a
DN
3684fi
3685if test -z "$CC"; then
3686 # Extract the first word of "cc", so it can be a program name with args.
3687set dummy cc; ac_word=$2
5213506e
RW
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689$as_echo_n "checking for $ac_word... " >&6; }
3690if test "${ac_cv_prog_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3692else
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC="$CC" # Let the user override the test.
3695else
3696 ac_prog_rejected=no
3697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698for as_dir in $PATH
3699do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
5213506e
RW
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a
DN
3704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3705 ac_prog_rejected=yes
3706 continue
3707 fi
3708 ac_cv_prog_CC="cc"
5213506e 3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3710 break 2
3711 fi
3712done
5213506e
RW
3713 done
3714IFS=$as_save_IFS
6de9cd9a
DN
3715
3716if test $ac_prog_rejected = yes; then
3717 # We found a bogon in the path, so make sure we never use it.
3718 set dummy $ac_cv_prog_CC
3719 shift
3720 if test $# != 0; then
3721 # We chose a different compiler from the bogus one.
3722 # However, it has the same basename, so the bogon will be chosen
3723 # first if we set CC to just the basename; use the full file name.
3724 shift
3725 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3726 fi
3727fi
3728fi
3729fi
3730CC=$ac_cv_prog_CC
3731if test -n "$CC"; then
5213506e
RW
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733$as_echo "$CC" >&6; }
6de9cd9a 3734else
5213506e
RW
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736$as_echo "no" >&6; }
6de9cd9a
DN
3737fi
3738
5213506e 3739
6de9cd9a
DN
3740fi
3741if test -z "$CC"; then
3742 if test -n "$ac_tool_prefix"; then
5213506e 3743 for ac_prog in cl.exe
6de9cd9a
DN
3744 do
3745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3746set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748$as_echo_n "checking for $ac_word... " >&6; }
3749if test "${ac_cv_prog_CC+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3751else
3752 if test -n "$CC"; then
3753 ac_cv_prog_CC="$CC" # Let the user override the test.
3754else
3755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756for as_dir in $PATH
3757do
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
5213506e
RW
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3762 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3764 break 2
3765 fi
3766done
5213506e
RW
3767 done
3768IFS=$as_save_IFS
6de9cd9a
DN
3769
3770fi
3771fi
3772CC=$ac_cv_prog_CC
3773if test -n "$CC"; then
5213506e
RW
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775$as_echo "$CC" >&6; }
6de9cd9a 3776else
5213506e
RW
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778$as_echo "no" >&6; }
6de9cd9a
DN
3779fi
3780
5213506e 3781
6de9cd9a
DN
3782 test -n "$CC" && break
3783 done
3784fi
3785if test -z "$CC"; then
3786 ac_ct_CC=$CC
5213506e 3787 for ac_prog in cl.exe
6de9cd9a
DN
3788do
3789 # Extract the first word of "$ac_prog", so it can be a program name with args.
3790set dummy $ac_prog; ac_word=$2
5213506e
RW
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792$as_echo_n "checking for $ac_word... " >&6; }
3793if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3795else
3796 if test -n "$ac_ct_CC"; then
3797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3798else
3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800for as_dir in $PATH
3801do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
5213506e
RW
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3806 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3808 break 2
3809 fi
3810done
5213506e
RW
3811 done
3812IFS=$as_save_IFS
6de9cd9a
DN
3813
3814fi
3815fi
3816ac_ct_CC=$ac_cv_prog_ac_ct_CC
3817if test -n "$ac_ct_CC"; then
5213506e
RW
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3819$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3820else
5213506e
RW
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822$as_echo "no" >&6; }
6de9cd9a
DN
3823fi
3824
5213506e 3825
6de9cd9a
DN
3826 test -n "$ac_ct_CC" && break
3827done
3828
5213506e
RW
3829 if test "x$ac_ct_CC" = x; then
3830 CC=""
3831 else
3832 case $cross_compiling:$ac_tool_warned in
3833yes:)
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3836ac_tool_warned=yes ;;
3837esac
3838 CC=$ac_ct_CC
3839 fi
6de9cd9a
DN
3840fi
3841
3842fi
3843
3844
5213506e
RW
3845test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847as_fn_error "no acceptable C compiler found in \$PATH
3848See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a
DN
3849
3850# Provide some information about the compiler.
5213506e
RW
3851$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3852set X $ac_compile
3853ac_compiler=$2
3854for ac_option in --version -v -V -qversion; do
3855 { { ac_try="$ac_compiler $ac_option >&5"
3856case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859esac
3860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3861$as_echo "$ac_try_echo"; } >&5
3862 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6de9cd9a 3863 ac_status=$?
5213506e
RW
3864 if test -s conftest.err; then
3865 sed '10a\
3866... rest of stderr output deleted ...
3867 10q' conftest.err >conftest.er1
3868 cat conftest.er1 >&5
3869 rm -f conftest.er1 conftest.err
3870 fi
3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; }
3873done
6de9cd9a 3874
5213506e 3875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
3876/* end confdefs.h. */
3877
f02d008e
JD
3878int
3879main ()
3880{
3881
3882 ;
3883 return 0;
3884}
3885_ACEOF
3886# FIXME: Cleanup?
5213506e 3887if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
f02d008e
JD
3888 (eval $ac_link) 2>&5
3889 ac_status=$?
5213506e
RW
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }; then :
f02d008e
JD
3892 gcc_no_link=no
3893else
3894 gcc_no_link=yes
3895fi
f02d008e
JD
3896if test x$gcc_no_link = xyes; then
3897 # Setting cross_compile will disable run tests; it will
3898 # also disable AC_CHECK_FILE but that's generally
3899 # correct if we can't link.
3900 cross_compiling=yes
3901 EXEEXT=
3902else
5213506e 3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
3904/* end confdefs.h. */
3905
6de9cd9a
DN
3906int
3907main ()
3908{
3909
3910 ;
3911 return 0;
3912}
3913_ACEOF
3914ac_clean_files_save=$ac_clean_files
5213506e 3915ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6de9cd9a
DN
3916# Try to create an executable without -o first, disregard a.out.
3917# It will help us diagnose broken compilers, and finding out an intuition
3918# of exeext.
5213506e
RW
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3920$as_echo_n "checking for C compiler default output file name... " >&6; }
3921ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3922
3923# The possible output files:
3924ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3925
3926ac_rmfiles=
3927for ac_file in $ac_files
3928do
3929 case $ac_file in
3930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3931 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3932 esac
3933done
3934rm -f $ac_rmfiles
3935
3936if { { ac_try="$ac_link_default"
3937case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940esac
3941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942$as_echo "$ac_try_echo"; } >&5
3943 (eval "$ac_link_default") 2>&5
3944 ac_status=$?
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }; then :
3947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3948# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3949# in a Makefile. We should not override ac_cv_exeext if it was cached,
3950# so that the user can short-circuit this test for compilers unknown to
3951# Autoconf.
3952for ac_file in $ac_files ''
6de9cd9a
DN
3953do
3954 test -f "$ac_file" || continue
3955 case $ac_file in
5213506e 3956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6de9cd9a
DN
3957 ;;
3958 [ab].out )
3959 # We found the default executable, but exeext='' is most
3960 # certainly right.
3961 break;;
3962 *.* )
5213506e
RW
3963 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3964 then :; else
3965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3966 fi
3967 # We set ac_cv_exeext here because the later test for it is not
3968 # safe: cross compilers may not add the suffix if given an `-o'
3969 # argument, so we may need to know it at that point already.
3970 # Even if this section looks crufty: it has the advantage of
3971 # actually working.
6de9cd9a
DN
3972 break;;
3973 * )
3974 break;;
3975 esac
3976done
5213506e
RW
3977test "$ac_cv_exeext" = no && ac_cv_exeext=
3978
6de9cd9a 3979else
5213506e
RW
3980 ac_file=''
3981fi
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3983$as_echo "$ac_file" >&6; }
3984if test -z "$ac_file"; then :
3985 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
5213506e
RW
3988{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990{ as_fn_set_status 77
3991as_fn_error "C compiler cannot create executables
3992See \`config.log' for more details." "$LINENO" 5; }; }
6de9cd9a 3993fi
6de9cd9a 3994ac_exeext=$ac_cv_exeext
6de9cd9a 3995
5213506e 3996# Check that the compiler produces executables we can run. If not, either
6de9cd9a 3997# the compiler is broken, or we cross compile.
5213506e
RW
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3999$as_echo_n "checking whether the C compiler works... " >&6; }
6de9cd9a
DN
4000# If not cross compiling, check that we can run a simple program.
4001if test "$cross_compiling" != yes; then
4002 if { ac_try='./$ac_file'
5213506e
RW
4003 { { case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006esac
4007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008$as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_try") 2>&5
6de9cd9a 4010 ac_status=$?
5213506e
RW
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; }; then
6de9cd9a
DN
4013 cross_compiling=no
4014 else
4015 if test "$cross_compiling" = maybe; then
4016 cross_compiling=yes
4017 else
5213506e
RW
4018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020as_fn_error "cannot run C compiled programs.
6de9cd9a 4021If you meant to cross compile, use \`--host'.
5213506e 4022See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a
DN
4023 fi
4024 fi
4025fi
5213506e
RW
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4027$as_echo "yes" >&6; }
6de9cd9a 4028
5213506e 4029rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
6de9cd9a 4030ac_clean_files=$ac_clean_files_save
5213506e 4031# Check that the compiler produces executables we can run. If not, either
6de9cd9a 4032# the compiler is broken, or we cross compile.
5213506e
RW
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4034$as_echo_n "checking whether we are cross compiling... " >&6; }
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4036$as_echo "$cross_compiling" >&6; }
4037
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4039$as_echo_n "checking for suffix of executables... " >&6; }
4040if { { ac_try="$ac_link"
4041case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044esac
4045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046$as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_link") 2>&5
6de9cd9a 4048 ac_status=$?
5213506e
RW
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }; then :
6de9cd9a
DN
4051 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4052# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4053# work properly (i.e., refer to `conftest.exe'), while it won't with
4054# `rm'.
4055for ac_file in conftest.exe conftest conftest.*; do
4056 test -f "$ac_file" || continue
4057 case $ac_file in
5213506e 4058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6de9cd9a 4059 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6de9cd9a
DN
4060 break;;
4061 * ) break;;
4062 esac
4063done
4064else
5213506e
RW
4065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067as_fn_error "cannot compute suffix of executables: cannot compile and link
4068See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a 4069fi
6de9cd9a 4070rm -f conftest$ac_cv_exeext
5213506e
RW
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4072$as_echo "$ac_cv_exeext" >&6; }
6de9cd9a
DN
4073
4074rm -f conftest.$ac_ext
4075EXEEXT=$ac_cv_exeext
4076ac_exeext=$EXEEXT
f02d008e 4077fi
5213506e
RW
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4079$as_echo_n "checking for suffix of object files... " >&6; }
4080if test "${ac_cv_objext+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
6de9cd9a 4082else
5213506e 4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
4084/* end confdefs.h. */
4085
4086int
4087main ()
4088{
4089
4090 ;
4091 return 0;
4092}
4093_ACEOF
4094rm -f conftest.o conftest.obj
5213506e
RW
4095if { { ac_try="$ac_compile"
4096case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099esac
4100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101$as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_compile") 2>&5
4103 ac_status=$?
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
4106 for ac_file in conftest.o conftest.obj conftest.*; do
4107 test -f "$ac_file" || continue;
6de9cd9a 4108 case $ac_file in
5213506e 4109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6de9cd9a
DN
4110 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4111 break;;
4112 esac
4113done
4114else
5213506e 4115 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4116sed 's/^/| /' conftest.$ac_ext >&5
4117
5213506e
RW
4118{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4120as_fn_error "cannot compute suffix of object files: cannot compile
4121See \`config.log' for more details." "$LINENO" 5; }
78511f8b 4122fi
78511f8b
JB
4123rm -f conftest.$ac_cv_objext conftest.$ac_ext
4124fi
5213506e
RW
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4126$as_echo "$ac_cv_objext" >&6; }
78511f8b
JB
4127OBJEXT=$ac_cv_objext
4128ac_objext=$OBJEXT
5213506e
RW
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4130$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4131if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
78511f8b 4133else
5213506e 4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4135/* end confdefs.h. */
6de9cd9a 4136
6de9cd9a
DN
4137int
4138main ()
4139{
78511f8b
JB
4140#ifndef __GNUC__
4141 choke me
4142#endif
c0e7e2bf 4143
6de9cd9a
DN
4144 ;
4145 return 0;
4146}
4147_ACEOF
5213506e 4148if ac_fn_c_try_compile "$LINENO"; then :
78511f8b 4149 ac_compiler_gnu=yes
6de9cd9a 4150else
5213506e 4151 ac_compiler_gnu=no
78511f8b 4152fi
5213506e 4153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78511f8b
JB
4154ac_cv_c_compiler_gnu=$ac_compiler_gnu
4155
4156fi
5213506e
RW
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4158$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4159if test $ac_compiler_gnu = yes; then
4160 GCC=yes
4161else
4162 GCC=
4163fi
78511f8b
JB
4164ac_test_CFLAGS=${CFLAGS+set}
4165ac_save_CFLAGS=$CFLAGS
5213506e
RW
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4167$as_echo_n "checking whether $CC accepts -g... " >&6; }
4168if test "${ac_cv_prog_cc_g+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
78511f8b 4170else
5213506e
RW
4171 ac_save_c_werror_flag=$ac_c_werror_flag
4172 ac_c_werror_flag=yes
4173 ac_cv_prog_cc_g=no
4174 CFLAGS="-g"
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4176/* end confdefs.h. */
c0e7e2bf 4177
6de9cd9a
DN
4178int
4179main ()
4180{
c0e7e2bf 4181
6de9cd9a
DN
4182 ;
4183 return 0;
4184}
4185_ACEOF
5213506e 4186if ac_fn_c_try_compile "$LINENO"; then :
f489fba1
FXC
4187 ac_cv_prog_cc_g=yes
4188else
5213506e
RW
4189 CFLAGS=""
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191/* end confdefs.h. */
4192
4193int
4194main ()
4195{
4196
4197 ;
4198 return 0;
4199}
4200_ACEOF
4201if ac_fn_c_try_compile "$LINENO"; then :
4202
4203else
4204 ac_c_werror_flag=$ac_save_c_werror_flag
4205 CFLAGS="-g"
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207/* end confdefs.h. */
f489fba1 4208
5213506e
RW
4209int
4210main ()
4211{
4212
4213 ;
4214 return 0;
4215}
4216_ACEOF
4217if ac_fn_c_try_compile "$LINENO"; then :
4218 ac_cv_prog_cc_g=yes
4219fi
4220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4221fi
5213506e 4222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4223fi
5213506e
RW
4224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 ac_c_werror_flag=$ac_save_c_werror_flag
4226fi
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4228$as_echo "$ac_cv_prog_cc_g" >&6; }
38d24731
RW
4229if test "$ac_test_CFLAGS" = set; then
4230 CFLAGS=$ac_save_CFLAGS
4231elif test $ac_cv_prog_cc_g = yes; then
4232 if test "$GCC" = yes; then
4233 CFLAGS="-g -O2"
4234 else
4235 CFLAGS="-g"
4236 fi
4237else
4238 if test "$GCC" = yes; then
4239 CFLAGS="-O2"
4240 else
4241 CFLAGS=
4242 fi
4243fi
5213506e
RW
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4245$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4246if test "${ac_cv_prog_cc_c89+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
38d24731 4248else
5213506e 4249 ac_cv_prog_cc_c89=no
38d24731 4250ac_save_CC=$CC
5213506e 4251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f489fba1 4252/* end confdefs.h. */
38d24731
RW
4253#include <stdarg.h>
4254#include <stdio.h>
4255#include <sys/types.h>
4256#include <sys/stat.h>
4257/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4258struct buf { int x; };
4259FILE * (*rcsopen) (struct buf *, struct stat *, int);
4260static char *e (p, i)
4261 char **p;
4262 int i;
4263{
4264 return p[i];
4265}
4266static char *f (char * (*g) (char **, int), char **p, ...)
4267{
4268 char *s;
4269 va_list v;
4270 va_start (v,p);
4271 s = g (p, va_arg (v,int));
4272 va_end (v);
4273 return s;
4274}
f489fba1 4275
38d24731
RW
4276/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4277 function prototypes and stuff, but not '\xHH' hex character constants.
4278 These don't provoke an error unfortunately, instead are silently treated
5213506e 4279 as 'x'. The following induces an error, until -std is added to get
38d24731
RW
4280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4281 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4282 that's true only with -std. */
38d24731
RW
4283int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4284
5213506e
RW
4285/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4286 inside strings and character constants. */
4287#define FOO(x) 'x'
4288int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4289
38d24731
RW
4290int test (int i, double x);
4291struct s1 {int (*f) (int a);};
4292struct s2 {int (*f) (double a);};
4293int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4294int argc;
4295char **argv;
f489fba1
FXC
4296int
4297main ()
4298{
38d24731 4299return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
f489fba1
FXC
4300 ;
4301 return 0;
4302}
4303_ACEOF
5213506e
RW
4304for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38d24731
RW
4306do
4307 CC="$ac_save_CC $ac_arg"
5213506e
RW
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309 ac_cv_prog_cc_c89=$ac_arg
38d24731 4310fi
5213506e
RW
4311rm -f core conftest.err conftest.$ac_objext
4312 test "x$ac_cv_prog_cc_c89" != "xno" && break
38d24731 4313done
5213506e 4314rm -f conftest.$ac_ext
38d24731
RW
4315CC=$ac_save_CC
4316
4317fi
5213506e
RW
4318# AC_CACHE_VAL
4319case "x$ac_cv_prog_cc_c89" in
4320 x)
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4322$as_echo "none needed" >&6; } ;;
4323 xno)
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4325$as_echo "unsupported" >&6; } ;;
38d24731 4326 *)
5213506e
RW
4327 CC="$CC $ac_cv_prog_cc_c89"
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4329$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
38d24731 4330esac
5213506e 4331if test "x$ac_cv_prog_cc_c89" != xno; then :
6de9cd9a
DN
4332
4333fi
6de9cd9a 4334
6de9cd9a
DN
4335ac_ext=c
4336ac_cpp='$CPP $CPPFLAGS'
4337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339ac_compiler_gnu=$ac_cv_c_compiler_gnu
679c0f9a 4340
679c0f9a
TT
4341depcc="$CC" am_compiler_list=
4342
5213506e
RW
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4344$as_echo_n "checking dependency style of $depcc... " >&6; }
4345if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4346 $as_echo_n "(cached) " >&6
679c0f9a
TT
4347else
4348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4349 # We make a subdir and do the tests there. Otherwise we can end up
4350 # making bogus files that we don't know about and never remove. For
4351 # instance it was reported that on HP-UX the gcc test will end up
4352 # making a dummy file named `D' -- because `-MD' means `put the output
4353 # in D'.
c20fdb91 4354 rm -rf conftest.dir
679c0f9a
TT
4355 mkdir conftest.dir
4356 # Copy depcomp to subdir because otherwise we won't find it if we're
4357 # using a relative directory.
4358 cp "$am_depcomp" conftest.dir
4359 cd conftest.dir
4360 # We will build objects and dependencies in a subdirectory because
4361 # it helps to detect inapplicable dependency modes. For instance
4362 # both Tru64's cc and ICC support -MD to output dependencies as a
4363 # side effect of compilation, but ICC will put the dependencies in
4364 # the current directory while Tru64 will put them in the object
4365 # directory.
4366 mkdir sub
4367
4368 am_cv_CC_dependencies_compiler_type=none
4369 if test "$am_compiler_list" = ""; then
4370 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4371 fi
5213506e
RW
4372 am__universal=false
4373 case " $depcc " in #(
4374 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4375 esac
4376
679c0f9a
TT
4377 for depmode in $am_compiler_list; do
4378 # Setup a source with many dependencies, because some compilers
4379 # like to wrap large dependency lists on column 80 (with \), and
4380 # we should not choose a depcomp mode which is confused by this.
4381 #
4382 # We need to recreate these files for each test, as the compiler may
4383 # overwrite some of them when testing with obscure command lines.
4384 # This happens at least with the AIX C compiler.
4385 : > sub/conftest.c
4386 for i in 1 2 3 4 5 6; do
4387 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4388 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4389 # Solaris 8's {/usr,}/bin/sh.
4390 touch sub/conftst$i.h
4391 done
4392 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4393
5213506e
RW
4394 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4395 # mode. It turns out that the SunPro C++ compiler does not properly
4396 # handle `-M -o', and we need to detect this. Also, some Intel
4397 # versions had trouble with output in subdirs
4398 am__obj=sub/conftest.${OBJEXT-o}
4399 am__minus_obj="-o $am__obj"
679c0f9a 4400 case $depmode in
5213506e
RW
4401 gcc)
4402 # This depmode causes a compiler race in universal mode.
4403 test "$am__universal" = false || continue
4404 ;;
679c0f9a
TT
4405 nosideeffect)
4406 # after this tag, mechanisms are not by side-effect, so they'll
4407 # only be used when explicitly requested
4408 if test "x$enable_dependency_tracking" = xyes; then
4409 continue
4410 else
4411 break
4412 fi
4413 ;;
c20fdb91 4414 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5213506e
RW
4415 # This compiler won't grok `-c -o', but also, the minuso test has
4416 # not run yet. These depmodes are late enough in the game, and
4417 # so weak that their functioning should not be impacted.
4418 am__obj=conftest.${OBJEXT-o}
4419 am__minus_obj=
4420 ;;
679c0f9a
TT
4421 none) break ;;
4422 esac
679c0f9a 4423 if depmode=$depmode \
5213506e 4424 source=sub/conftest.c object=$am__obj \
679c0f9a 4425 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4426 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
679c0f9a 4427 >/dev/null 2>conftest.err &&
5213506e 4428 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a 4429 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4430 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a
TT
4431 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4432 # icc doesn't choke on unknown options, it will just issue warnings
4433 # or remarks (even with -Werror). So we grep stderr for any message
4434 # that says an option was ignored or not supported.
4435 # When given -MP, icc 7.0 and 7.1 complain thusly:
4436 # icc: Command line warning: ignoring option '-M'; no argument required
4437 # The diagnosis changed in icc 8.0:
4438 # icc: Command line remark: option '-MP' not supported
4439 if (grep 'ignoring option' conftest.err ||
4440 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4441 am_cv_CC_dependencies_compiler_type=$depmode
4442 break
4443 fi
4444 fi
4445 done
4446
4447 cd ..
4448 rm -rf conftest.dir
4449else
4450 am_cv_CC_dependencies_compiler_type=none
4451fi
4452
4453fi
5213506e
RW
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4455$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
679c0f9a
TT
4456CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4457
5213506e 4458 if
679c0f9a
TT
4459 test "x$enable_dependency_tracking" != xno \
4460 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4461 am__fastdepCC_TRUE=
4462 am__fastdepCC_FALSE='#'
4463else
4464 am__fastdepCC_TRUE='#'
4465 am__fastdepCC_FALSE=
4466fi
4467
6de9cd9a 4468
6de9cd9a 4469
21be0a5a
JB
4470ac_ext=c
4471ac_cpp='$CPP $CPPFLAGS'
4472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4476$as_echo_n "checking how to run the C preprocessor... " >&6; }
4477# On Suns, sometimes $CPP names a directory.
4478if test -n "$CPP" && test -d "$CPP"; then
4479 CPP=
6de9cd9a 4480fi
21be0a5a
JB
4481if test -z "$CPP"; then
4482 if test "${ac_cv_prog_CPP+set}" = set; then :
4483 $as_echo_n "(cached) " >&6
4484else
4485 # Double quotes because CPP needs to be expanded
4486 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4487 do
4488 ac_preproc_ok=false
4489for ac_c_preproc_warn_flag in '' yes
4490do
4491 # Use a header file that comes with gcc, so configuring glibc
4492 # with a fresh cross-compiler works.
4493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4494 # <limits.h> exists even on freestanding compilers.
4495 # On the NeXT, cc -E runs the code through the compiler's parser,
4496 # not just through cpp. "Syntax error" is here to catch this case.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c0e7e2bf 4498/* end confdefs.h. */
21be0a5a
JB
4499#ifdef __STDC__
4500# include <limits.h>
4501#else
4502# include <assert.h>
4503#endif
4504 Syntax error
c0e7e2bf 4505_ACEOF
21be0a5a
JB
4506if ac_fn_c_try_cpp "$LINENO"; then :
4507
49ea7a0e 4508else
21be0a5a
JB
4509 # Broken: fails on valid input.
4510continue
49ea7a0e 4511fi
21be0a5a 4512rm -f conftest.err conftest.$ac_ext
49ea7a0e 4513
21be0a5a
JB
4514 # OK, works on sane cases. Now check whether nonexistent headers
4515 # can be detected and how.
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517/* end confdefs.h. */
4518#include <ac_nonexistent.h>
49ea7a0e 4519_ACEOF
21be0a5a
JB
4520if ac_fn_c_try_cpp "$LINENO"; then :
4521 # Broken: success on invalid input.
4522continue
c0e7e2bf 4523else
21be0a5a
JB
4524 # Passes both tests.
4525ac_preproc_ok=:
4526break
49ea7a0e 4527fi
21be0a5a
JB
4528rm -f conftest.err conftest.$ac_ext
4529
4530done
4531# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4532rm -f conftest.err conftest.$ac_ext
4533if $ac_preproc_ok; then :
4534 break
c0e7e2bf
JB
4535fi
4536
21be0a5a
JB
4537 done
4538 ac_cv_prog_CPP=$CPP
4539
4540fi
4541 CPP=$ac_cv_prog_CPP
49ea7a0e 4542else
21be0a5a 4543 ac_cv_prog_CPP=$CPP
49ea7a0e 4544fi
21be0a5a
JB
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4546$as_echo "$CPP" >&6; }
4547ac_preproc_ok=false
4548for ac_c_preproc_warn_flag in '' yes
4549do
4550 # Use a header file that comes with gcc, so configuring glibc
4551 # with a fresh cross-compiler works.
4552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4553 # <limits.h> exists even on freestanding compilers.
4554 # On the NeXT, cc -E runs the code through the compiler's parser,
4555 # not just through cpp. "Syntax error" is here to catch this case.
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557/* end confdefs.h. */
4558#ifdef __STDC__
4559# include <limits.h>
4560#else
4561# include <assert.h>
4562#endif
4563 Syntax error
4564_ACEOF
4565if ac_fn_c_try_cpp "$LINENO"; then :
49ea7a0e 4566
49ea7a0e 4567else
21be0a5a
JB
4568 # Broken: fails on valid input.
4569continue
49ea7a0e 4570fi
21be0a5a 4571rm -f conftest.err conftest.$ac_ext
49ea7a0e 4572
21be0a5a
JB
4573 # OK, works on sane cases. Now check whether nonexistent headers
4574 # can be detected and how.
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c049309d 4576/* end confdefs.h. */
21be0a5a 4577#include <ac_nonexistent.h>
c049309d 4578_ACEOF
21be0a5a
JB
4579if ac_fn_c_try_cpp "$LINENO"; then :
4580 # Broken: success on invalid input.
4581continue
c049309d 4582else
21be0a5a
JB
4583 # Passes both tests.
4584ac_preproc_ok=:
4585break
c049309d 4586fi
21be0a5a
JB
4587rm -f conftest.err conftest.$ac_ext
4588
4589done
4590# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4591rm -f conftest.err conftest.$ac_ext
4592if $ac_preproc_ok; then :
4593
c049309d 4594else
21be0a5a
JB
4595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4597as_fn_error "C preprocessor \"$CPP\" fails sanity check
4598See \`config.log' for more details." "$LINENO" 5; }
c049309d 4599fi
c049309d 4600
21be0a5a
JB
4601ac_ext=c
4602ac_cpp='$CPP $CPPFLAGS'
4603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605ac_compiler_gnu=$ac_cv_c_compiler_gnu
c049309d 4606
21be0a5a
JB
4607
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4609$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4610if test "${ac_cv_path_GREP+set}" = set; then :
5213506e 4611 $as_echo_n "(cached) " >&6
6de9cd9a 4612else
21be0a5a
JB
4613 if test -z "$GREP"; then
4614 ac_path_GREP_found=false
4615 # Loop through the user's path and test for each of PROGNAME-LIST
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
96b8a615
AJ
4618do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
21be0a5a 4621 for ac_prog in grep ggrep; do
5213506e 4622 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
4623 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4624 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4625# Check for GNU ac_path_GREP and select it if it is found.
4626 # Check for GNU $ac_path_GREP
4627case `"$ac_path_GREP" --version 2>&1` in
4628*GNU*)
4629 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4630*)
4631 ac_count=0
4632 $as_echo_n 0123456789 >"conftest.in"
4633 while :
4634 do
4635 cat "conftest.in" "conftest.in" >"conftest.tmp"
4636 mv "conftest.tmp" "conftest.in"
4637 cp "conftest.in" "conftest.nl"
4638 $as_echo 'GREP' >> "conftest.nl"
4639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641 as_fn_arith $ac_count + 1 && ac_count=$as_val
4642 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4643 # Best one so far, save it but keep looking for a better one
4644 ac_cv_path_GREP="$ac_path_GREP"
4645 ac_path_GREP_max=$ac_count
4646 fi
4647 # 10*(2^10) chars as input seems more than enough
4648 test $ac_count -gt 10 && break
5213506e 4649 done
21be0a5a
JB
4650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651esac
6de9cd9a 4652
21be0a5a
JB
4653 $ac_path_GREP_found && break 3
4654 done
4655 done
4656 done
4657IFS=$as_save_IFS
4658 if test -z "$ac_cv_path_GREP"; then
4659 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4660 fi
6de9cd9a 4661else
21be0a5a 4662 ac_cv_path_GREP=$GREP
6de9cd9a
DN
4663fi
4664
6de9cd9a 4665fi
21be0a5a
JB
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4667$as_echo "$ac_cv_path_GREP" >&6; }
4668 GREP="$ac_cv_path_GREP"
6de9cd9a 4669
21be0a5a
JB
4670
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4672$as_echo_n "checking for egrep... " >&6; }
4673if test "${ac_cv_path_EGREP+set}" = set; then :
5213506e 4674 $as_echo_n "(cached) " >&6
6de9cd9a 4675else
21be0a5a
JB
4676 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4677 then ac_cv_path_EGREP="$GREP -E"
4678 else
4679 if test -z "$EGREP"; then
4680 ac_path_EGREP_found=false
4681 # Loop through the user's path and test for each of PROGNAME-LIST
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6de9cd9a
DN
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
21be0a5a 4687 for ac_prog in egrep; do
5213506e 4688 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
4689 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4690 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4691# Check for GNU ac_path_EGREP and select it if it is found.
4692 # Check for GNU $ac_path_EGREP
4693case `"$ac_path_EGREP" --version 2>&1` in
4694*GNU*)
4695 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4696*)
4697 ac_count=0
4698 $as_echo_n 0123456789 >"conftest.in"
4699 while :
4700 do
4701 cat "conftest.in" "conftest.in" >"conftest.tmp"
4702 mv "conftest.tmp" "conftest.in"
4703 cp "conftest.in" "conftest.nl"
4704 $as_echo 'EGREP' >> "conftest.nl"
4705 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707 as_fn_arith $ac_count + 1 && ac_count=$as_val
4708 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4709 # Best one so far, save it but keep looking for a better one
4710 ac_cv_path_EGREP="$ac_path_EGREP"
4711 ac_path_EGREP_max=$ac_count
4712 fi
4713 # 10*(2^10) chars as input seems more than enough
4714 test $ac_count -gt 10 && break
5213506e 4715 done
21be0a5a
JB
4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717esac
6de9cd9a 4718
21be0a5a
JB
4719 $ac_path_EGREP_found && break 3
4720 done
4721 done
4722 done
4723IFS=$as_save_IFS
4724 if test -z "$ac_cv_path_EGREP"; then
4725 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4726 fi
6de9cd9a 4727else
21be0a5a 4728 ac_cv_path_EGREP=$EGREP
6de9cd9a
DN
4729fi
4730
21be0a5a 4731 fi
6de9cd9a 4732fi
21be0a5a
JB
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4734$as_echo "$ac_cv_path_EGREP" >&6; }
4735 EGREP="$ac_cv_path_EGREP"
4736
4737
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4739$as_echo_n "checking for ANSI C header files... " >&6; }
4740if test "${ac_cv_header_stdc+set}" = set; then :
5213506e 4741 $as_echo_n "(cached) " >&6
6de9cd9a 4742else
21be0a5a
JB
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h. */
4745#include <stdlib.h>
4746#include <stdarg.h>
4747#include <string.h>
4748#include <float.h>
4749
4750int
4751main ()
4752{
4753
4754 ;
4755 return 0;
4756}
4757_ACEOF
4758if ac_fn_c_try_compile "$LINENO"; then :
4759 ac_cv_header_stdc=yes
6de9cd9a 4760else
21be0a5a
JB
4761 ac_cv_header_stdc=no
4762fi
4763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4764
21be0a5a
JB
4765if test $ac_cv_header_stdc = yes; then
4766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768/* end confdefs.h. */
4769#include <string.h>
4770
4771_ACEOF
4772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773 $EGREP "memchr" >/dev/null 2>&1; then :
4774
4775else
4776 ac_cv_header_stdc=no
6de9cd9a 4777fi
21be0a5a
JB
4778rm -f conftest*
4779
6de9cd9a 4780fi
21be0a5a
JB
4781
4782if test $ac_cv_header_stdc = yes; then
4783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h. */
4786#include <stdlib.h>
4787
4788_ACEOF
4789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4790 $EGREP "free" >/dev/null 2>&1; then :
4791
6de9cd9a 4792else
21be0a5a 4793 ac_cv_header_stdc=no
6de9cd9a 4794fi
21be0a5a 4795rm -f conftest*
6de9cd9a 4796
6de9cd9a
DN
4797fi
4798
21be0a5a
JB
4799if test $ac_cv_header_stdc = yes; then
4800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4801 if test "$cross_compiling" = yes; then :
4802 :
4803else
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805/* end confdefs.h. */
4806#include <ctype.h>
4807#include <stdlib.h>
4808#if ((' ' & 0x0FF) == 0x020)
4809# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4810# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4811#else
4812# define ISLOWER(c) \
4813 (('a' <= (c) && (c) <= 'i') \
4814 || ('j' <= (c) && (c) <= 'r') \
4815 || ('s' <= (c) && (c) <= 'z'))
4816# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4817#endif
4818
4819#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4820int
4821main ()
4822{
4823 int i;
4824 for (i = 0; i < 256; i++)
4825 if (XOR (islower (i), ISLOWER (i))
4826 || toupper (i) != TOUPPER (i))
4827 return 2;
4828 return 0;
4829}
4830_ACEOF
4831if ac_fn_c_try_run "$LINENO"; then :
4832
4833else
4834 ac_cv_header_stdc=no
4835fi
4836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4837 conftest.$ac_objext conftest.beam conftest.$ac_ext
4838fi
4839
4840fi
4841fi
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4843$as_echo "$ac_cv_header_stdc" >&6; }
4844if test $ac_cv_header_stdc = yes; then
4845
4846$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4847
4848fi
4849
4850# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4851for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4852 inttypes.h stdint.h unistd.h
4853do :
4854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4855ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4856"
4857eval as_val=\$$as_ac_Header
4858 if test "x$as_val" = x""yes; then :
4859 cat >>confdefs.h <<_ACEOF
4860#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4861_ACEOF
4862
4863fi
4864
4865done
4866
4867
4868
4869 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4870if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4871 MINIX=yes
4872else
4873 MINIX=
4874fi
4875
4876
4877 if test "$MINIX" = yes; then
4878
4879$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4880
4881
4882$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4883
4884
4885$as_echo "#define _MINIX 1" >>confdefs.h
4886
4887 fi
4888
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4891$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4892if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894else
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h. */
4897
4898# define __EXTENSIONS__ 1
4899 $ac_includes_default
4900int
4901main ()
4902{
4903
4904 ;
4905 return 0;
4906}
4907_ACEOF
4908if ac_fn_c_try_compile "$LINENO"; then :
4909 ac_cv_safe_to_define___extensions__=yes
4910else
4911 ac_cv_safe_to_define___extensions__=no
4912fi
4913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914fi
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4916$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4917 test $ac_cv_safe_to_define___extensions__ = yes &&
4918 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4919
4920 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4921
4922 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4923
4924 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4925
4926 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4927
4928
4929
4930# Calculate toolexeclibdir
4931# Also toolexecdir, though it's only used in toolexeclibdir
4932case ${version_specific_libs} in
4933 yes)
4934 # Need the gcc compiler version to know where to install libraries
4935 # and header files if --enable-version-specific-runtime-libs option
4936 # is selected.
4937 toolexecdir='$(libdir)/gcc/$(target_alias)'
4938 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4939 ;;
4940 no)
4941 if test -n "$with_cross_host" &&
4942 test x"$with_cross_host" != x"no"; then
4943 # Install a library built with a cross compiler in tooldir, not libdir.
4944 toolexecdir='$(exec_prefix)/$(target_alias)'
4945 toolexeclibdir='$(toolexecdir)/lib'
4946 else
4947 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4948 toolexeclibdir='$(libdir)'
4949 fi
4950 multi_os_directory=`$CC -print-multi-os-directory`
4951 case $multi_os_directory in
4952 .) ;; # Avoid trailing /.
4953 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4954 esac
4955 ;;
4956esac
4957
4958
4959
4960# Create a spec file, so that compile/link tests don't fail
4961test -f libgfortran.spec || touch libgfortran.spec
4962
60858d8a
TB
4963ac_ext=c
4964ac_cpp='$CPP $CPPFLAGS'
4965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968
21be0a5a
JB
4969# Check the compiler.
4970# The same as in boehm-gc and libstdc++. Have to borrow it from there.
4971# We must force CC to /not/ be precious variables; otherwise
4972# the wrong, non-multilib-adjusted value will be used in multilibs.
4973# As a side effect, we have to subst CFLAGS ourselves.
4974
4975
4976
4977ac_ext=c
4978ac_cpp='$CPP $CPPFLAGS'
4979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982if test -n "$ac_tool_prefix"; then
4983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4984set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 4987if test "${ac_cv_prog_CC+set}" = set; then :
5213506e 4988 $as_echo_n "(cached) " >&6
6de9cd9a 4989else
21be0a5a
JB
4990 if test -n "$CC"; then
4991 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 4992else
96b8a615
AJ
4993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
5213506e
RW
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 5000 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5002 break 2
5003 fi
5004done
5213506e
RW
5005 done
5006IFS=$as_save_IFS
6de9cd9a 5007
6de9cd9a 5008fi
96b8a615 5009fi
21be0a5a
JB
5010CC=$ac_cv_prog_CC
5011if test -n "$CC"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5013$as_echo "$CC" >&6; }
96b8a615 5014else
5213506e
RW
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016$as_echo "no" >&6; }
96b8a615 5017fi
6de9cd9a 5018
5213506e 5019
6de9cd9a 5020fi
21be0a5a
JB
5021if test -z "$ac_cv_prog_CC"; then
5022 ac_ct_CC=$CC
5023 # Extract the first word of "gcc", so it can be a program name with args.
5024set dummy gcc; ac_word=$2
5213506e
RW
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 5027if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5213506e 5028 $as_echo_n "(cached) " >&6
6de9cd9a 5029else
21be0a5a
JB
5030 if test -n "$ac_ct_CC"; then
5031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6de9cd9a 5032else
96b8a615
AJ
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5213506e
RW
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 5040 ac_cv_prog_ac_ct_CC="gcc"
5213506e 5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5042 break 2
5043 fi
5044done
5213506e
RW
5045 done
5046IFS=$as_save_IFS
6de9cd9a 5047
6de9cd9a 5048fi
6de9cd9a 5049fi
21be0a5a
JB
5050ac_ct_CC=$ac_cv_prog_ac_ct_CC
5051if test -n "$ac_ct_CC"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5053$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 5054else
5213506e
RW
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056$as_echo "no" >&6; }
6de9cd9a
DN
5057fi
5058
21be0a5a
JB
5059 if test "x$ac_ct_CC" = x; then
5060 CC=""
5213506e
RW
5061 else
5062 case $cross_compiling:$ac_tool_warned in
5063yes:)
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5066ac_tool_warned=yes ;;
5067esac
21be0a5a 5068 CC=$ac_ct_CC
5213506e 5069 fi
96b8a615 5070else
21be0a5a 5071 CC="$ac_cv_prog_CC"
6de9cd9a 5072fi
96b8a615 5073
21be0a5a
JB
5074if test -z "$CC"; then
5075 if test -n "$ac_tool_prefix"; then
5076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5077set dummy ${ac_tool_prefix}cc; ac_word=$2
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079$as_echo_n "checking for $ac_word... " >&6; }
5080if test "${ac_cv_prog_CC+set}" = set; then :
5213506e 5081 $as_echo_n "(cached) " >&6
6de9cd9a 5082else
21be0a5a
JB
5083 if test -n "$CC"; then
5084 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 5085else
21be0a5a
JB
5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_prog_CC="${ac_tool_prefix}cc"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097done
5098 done
5099IFS=$as_save_IFS
5100
5101fi
5102fi
5103CC=$ac_cv_prog_CC
5104if test -n "$CC"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5106$as_echo "$CC" >&6; }
5107else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109$as_echo "no" >&6; }
5110fi
5111
5112
5113 fi
5114fi
5115if test -z "$CC"; then
5116 # Extract the first word of "cc", so it can be a program name with args.
5117set dummy cc; ac_word=$2
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119$as_echo_n "checking for $ac_word... " >&6; }
5120if test "${ac_cv_prog_CC+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5122else
5123 if test -n "$CC"; then
5124 ac_cv_prog_CC="$CC" # Let the user override the test.
5125else
5126 ac_prog_rejected=no
5127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH
5129do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5135 ac_prog_rejected=yes
5136 continue
5137 fi
5138 ac_cv_prog_CC="cc"
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5141 fi
5142done
5143 done
5144IFS=$as_save_IFS
5145
5146if test $ac_prog_rejected = yes; then
5147 # We found a bogon in the path, so make sure we never use it.
5148 set dummy $ac_cv_prog_CC
5149 shift
5150 if test $# != 0; then
5151 # We chose a different compiler from the bogus one.
5152 # However, it has the same basename, so the bogon will be chosen
5153 # first if we set CC to just the basename; use the full file name.
5154 shift
5155 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5156 fi
5157fi
5158fi
5159fi
5160CC=$ac_cv_prog_CC
5161if test -n "$CC"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5163$as_echo "$CC" >&6; }
5164else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166$as_echo "no" >&6; }
5167fi
5168
5169
5170fi
5171if test -z "$CC"; then
5172 if test -n "$ac_tool_prefix"; then
5173 for ac_prog in cl.exe
5174 do
5175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5176set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178$as_echo_n "checking for $ac_word... " >&6; }
5179if test "${ac_cv_prog_CC+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5181else
5182 if test -n "$CC"; then
5183 ac_cv_prog_CC="$CC" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196done
5197 done
5198IFS=$as_save_IFS
5199
5200fi
5201fi
5202CC=$ac_cv_prog_CC
5203if test -n "$CC"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5205$as_echo "$CC" >&6; }
5206else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208$as_echo "no" >&6; }
5209fi
5210
5211
5212 test -n "$CC" && break
5213 done
5214fi
5215if test -z "$CC"; then
5216 ac_ct_CC=$CC
5217 for ac_prog in cl.exe
5218do
5219 # Extract the first word of "$ac_prog", so it can be a program name with args.
5220set dummy $ac_prog; ac_word=$2
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222$as_echo_n "checking for $ac_word... " >&6; }
5223if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5225else
5226 if test -n "$ac_ct_CC"; then
5227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5228else
5229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230for as_dir in $PATH
5231do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_prog_ac_ct_CC="$ac_prog"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240done
5241 done
5242IFS=$as_save_IFS
5243
5244fi
5245fi
5246ac_ct_CC=$ac_cv_prog_ac_ct_CC
5247if test -n "$ac_ct_CC"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5249$as_echo "$ac_ct_CC" >&6; }
5250else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252$as_echo "no" >&6; }
5253fi
5254
5255
5256 test -n "$ac_ct_CC" && break
5257done
5258
5259 if test "x$ac_ct_CC" = x; then
5260 CC=""
5261 else
5262 case $cross_compiling:$ac_tool_warned in
5263yes:)
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5266ac_tool_warned=yes ;;
5267esac
5268 CC=$ac_ct_CC
5269 fi
5270fi
5271
5272fi
5273
5274
5275test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5277as_fn_error "no acceptable C compiler found in \$PATH
5278See \`config.log' for more details." "$LINENO" 5; }
5279
5280# Provide some information about the compiler.
5281$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5282set X $ac_compile
5283ac_compiler=$2
5284for ac_option in --version -v -V -qversion; do
5285 { { ac_try="$ac_compiler $ac_option >&5"
5286case "(($ac_try" in
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5289esac
5290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5291$as_echo "$ac_try_echo"; } >&5
5292 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5293 ac_status=$?
5294 if test -s conftest.err; then
5295 sed '10a\
5296... rest of stderr output deleted ...
5297 10q' conftest.err >conftest.er1
5298 cat conftest.er1 >&5
5299 rm -f conftest.er1 conftest.err
5300 fi
5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302 test $ac_status = 0; }
5303done
5304
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5306$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5307if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5308 $as_echo_n "(cached) " >&6
5309else
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311/* end confdefs.h. */
5312
5313int
5314main ()
5315{
5316#ifndef __GNUC__
5317 choke me
5318#endif
5319
5320 ;
5321 return 0;
5322}
5323_ACEOF
5324if ac_fn_c_try_compile "$LINENO"; then :
5325 ac_compiler_gnu=yes
5326else
5327 ac_compiler_gnu=no
5328fi
5329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330ac_cv_c_compiler_gnu=$ac_compiler_gnu
5331
5332fi
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5334$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5335if test $ac_compiler_gnu = yes; then
5336 GCC=yes
5337else
5338 GCC=
5339fi
5340ac_test_CFLAGS=${CFLAGS+set}
5341ac_save_CFLAGS=$CFLAGS
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5343$as_echo_n "checking whether $CC accepts -g... " >&6; }
5344if test "${ac_cv_prog_cc_g+set}" = set; then :
5345 $as_echo_n "(cached) " >&6
5346else
5347 ac_save_c_werror_flag=$ac_c_werror_flag
5348 ac_c_werror_flag=yes
5349 ac_cv_prog_cc_g=no
5350 CFLAGS="-g"
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352/* end confdefs.h. */
5353
5354int
5355main ()
5356{
5357
5358 ;
5359 return 0;
5360}
5361_ACEOF
5362if ac_fn_c_try_compile "$LINENO"; then :
5363 ac_cv_prog_cc_g=yes
5364else
5365 CFLAGS=""
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367/* end confdefs.h. */
5368
5369int
5370main ()
5371{
5372
5373 ;
5374 return 0;
5375}
5376_ACEOF
5377if ac_fn_c_try_compile "$LINENO"; then :
5378
5379else
5380 ac_c_werror_flag=$ac_save_c_werror_flag
5381 CFLAGS="-g"
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h. */
5384
5385int
5386main ()
5387{
5388
5389 ;
5390 return 0;
5391}
5392_ACEOF
5393if ac_fn_c_try_compile "$LINENO"; then :
5394 ac_cv_prog_cc_g=yes
5395fi
5396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397fi
5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 ac_c_werror_flag=$ac_save_c_werror_flag
5402fi
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5404$as_echo "$ac_cv_prog_cc_g" >&6; }
5405if test "$ac_test_CFLAGS" = set; then
5406 CFLAGS=$ac_save_CFLAGS
5407elif test $ac_cv_prog_cc_g = yes; then
5408 if test "$GCC" = yes; then
5409 CFLAGS="-g -O2"
5410 else
5411 CFLAGS="-g"
5412 fi
5413else
5414 if test "$GCC" = yes; then
5415 CFLAGS="-O2"
5416 else
5417 CFLAGS=
5418 fi
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5421$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5422if test "${ac_cv_prog_cc_c89+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424else
5425 ac_cv_prog_cc_c89=no
5426ac_save_CC=$CC
5427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428/* end confdefs.h. */
5429#include <stdarg.h>
5430#include <stdio.h>
5431#include <sys/types.h>
5432#include <sys/stat.h>
5433/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5434struct buf { int x; };
5435FILE * (*rcsopen) (struct buf *, struct stat *, int);
5436static char *e (p, i)
5437 char **p;
5438 int i;
5439{
5440 return p[i];
5441}
5442static char *f (char * (*g) (char **, int), char **p, ...)
5443{
5444 char *s;
5445 va_list v;
5446 va_start (v,p);
5447 s = g (p, va_arg (v,int));
5448 va_end (v);
5449 return s;
5450}
5451
5452/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5453 function prototypes and stuff, but not '\xHH' hex character constants.
5454 These don't provoke an error unfortunately, instead are silently treated
5455 as 'x'. The following induces an error, until -std is added to get
5456 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5457 array size at least. It's necessary to write '\x00'==0 to get something
5458 that's true only with -std. */
5459int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5460
5461/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5462 inside strings and character constants. */
5463#define FOO(x) 'x'
5464int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5465
5466int test (int i, double x);
5467struct s1 {int (*f) (int a);};
5468struct s2 {int (*f) (double a);};
5469int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5470int argc;
5471char **argv;
5472int
5473main ()
5474{
5475return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5476 ;
5477 return 0;
5478}
5479_ACEOF
5480for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5481 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5482do
5483 CC="$ac_save_CC $ac_arg"
5484 if ac_fn_c_try_compile "$LINENO"; then :
5485 ac_cv_prog_cc_c89=$ac_arg
5486fi
5487rm -f core conftest.err conftest.$ac_objext
5488 test "x$ac_cv_prog_cc_c89" != "xno" && break
5489done
5490rm -f conftest.$ac_ext
5491CC=$ac_save_CC
5492
5493fi
5494# AC_CACHE_VAL
5495case "x$ac_cv_prog_cc_c89" in
5496 x)
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5498$as_echo "none needed" >&6; } ;;
5499 xno)
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5501$as_echo "unsupported" >&6; } ;;
5502 *)
5503 CC="$CC $ac_cv_prog_cc_c89"
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5505$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5506esac
5507if test "x$ac_cv_prog_cc_c89" != xno; then :
5508
5509fi
5510
5511ac_ext=c
5512ac_cpp='$CPP $CPPFLAGS'
5513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516
5517depcc="$CC" am_compiler_list=
5518
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5520$as_echo_n "checking dependency style of $depcc... " >&6; }
5521if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523else
5524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5525 # We make a subdir and do the tests there. Otherwise we can end up
5526 # making bogus files that we don't know about and never remove. For
5527 # instance it was reported that on HP-UX the gcc test will end up
5528 # making a dummy file named `D' -- because `-MD' means `put the output
5529 # in D'.
c20fdb91 5530 rm -rf conftest.dir
21be0a5a
JB
5531 mkdir conftest.dir
5532 # Copy depcomp to subdir because otherwise we won't find it if we're
5533 # using a relative directory.
5534 cp "$am_depcomp" conftest.dir
5535 cd conftest.dir
5536 # We will build objects and dependencies in a subdirectory because
5537 # it helps to detect inapplicable dependency modes. For instance
5538 # both Tru64's cc and ICC support -MD to output dependencies as a
5539 # side effect of compilation, but ICC will put the dependencies in
5540 # the current directory while Tru64 will put them in the object
5541 # directory.
5542 mkdir sub
5543
5544 am_cv_CC_dependencies_compiler_type=none
5545 if test "$am_compiler_list" = ""; then
5546 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5547 fi
5548 am__universal=false
5549 case " $depcc " in #(
5550 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5551 esac
5552
5553 for depmode in $am_compiler_list; do
5554 # Setup a source with many dependencies, because some compilers
5555 # like to wrap large dependency lists on column 80 (with \), and
5556 # we should not choose a depcomp mode which is confused by this.
5557 #
5558 # We need to recreate these files for each test, as the compiler may
5559 # overwrite some of them when testing with obscure command lines.
5560 # This happens at least with the AIX C compiler.
5561 : > sub/conftest.c
5562 for i in 1 2 3 4 5 6; do
5563 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5564 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5565 # Solaris 8's {/usr,}/bin/sh.
5566 touch sub/conftst$i.h
5567 done
5568 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5569
5570 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5571 # mode. It turns out that the SunPro C++ compiler does not properly
5572 # handle `-M -o', and we need to detect this. Also, some Intel
5573 # versions had trouble with output in subdirs
5574 am__obj=sub/conftest.${OBJEXT-o}
5575 am__minus_obj="-o $am__obj"
5576 case $depmode in
5577 gcc)
5578 # This depmode causes a compiler race in universal mode.
5579 test "$am__universal" = false || continue
5580 ;;
5581 nosideeffect)
5582 # after this tag, mechanisms are not by side-effect, so they'll
5583 # only be used when explicitly requested
5584 if test "x$enable_dependency_tracking" = xyes; then
5585 continue
5586 else
5587 break
5588 fi
5589 ;;
c20fdb91 5590 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
21be0a5a
JB
5591 # This compiler won't grok `-c -o', but also, the minuso test has
5592 # not run yet. These depmodes are late enough in the game, and
5593 # so weak that their functioning should not be impacted.
5594 am__obj=conftest.${OBJEXT-o}
5595 am__minus_obj=
5596 ;;
5597 none) break ;;
5598 esac
5599 if depmode=$depmode \
5600 source=sub/conftest.c object=$am__obj \
5601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5602 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5603 >/dev/null 2>conftest.err &&
5604 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5605 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5606 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5607 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5608 # icc doesn't choke on unknown options, it will just issue warnings
5609 # or remarks (even with -Werror). So we grep stderr for any message
5610 # that says an option was ignored or not supported.
5611 # When given -MP, icc 7.0 and 7.1 complain thusly:
5612 # icc: Command line warning: ignoring option '-M'; no argument required
5613 # The diagnosis changed in icc 8.0:
5614 # icc: Command line remark: option '-MP' not supported
5615 if (grep 'ignoring option' conftest.err ||
5616 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5617 am_cv_CC_dependencies_compiler_type=$depmode
5618 break
5619 fi
5620 fi
5621 done
5622
5623 cd ..
5624 rm -rf conftest.dir
5625else
5626 am_cv_CC_dependencies_compiler_type=none
5627fi
5628
5629fi
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5631$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5632CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5633
5634 if
5635 test "x$enable_dependency_tracking" != xno \
5636 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5637 am__fastdepCC_TRUE=
5638 am__fastdepCC_FALSE='#'
5639else
5640 am__fastdepCC_TRUE='#'
5641 am__fastdepCC_FALSE=
5642fi
5643
5644
5645
5646
60858d8a
TB
5647
5648
5649if test "x$CC" != xcc; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5651$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5652else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5654$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5655fi
5656set dummy $CC; ac_cc=`$as_echo "$2" |
5657 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5658if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5659 $as_echo_n "(cached) " >&6
5660else
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h. */
5663
5664int
5665main ()
5666{
5667
5668 ;
5669 return 0;
5670}
5671_ACEOF
5672# Make sure it works both with $CC and with simple cc.
5673# We do the test twice because some compilers refuse to overwrite an
5674# existing .o file with -o, though they will create one.
5675ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5676rm -f conftest2.*
5677if { { case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680esac
5681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5682$as_echo "$ac_try_echo"; } >&5
5683 (eval "$ac_try") 2>&5
5684 ac_status=$?
5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686 test $ac_status = 0; } &&
5687 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690esac
5691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5692$as_echo "$ac_try_echo"; } >&5
5693 (eval "$ac_try") 2>&5
5694 ac_status=$?
5695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5696 test $ac_status = 0; };
5697then
5698 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5699 if test "x$CC" != xcc; then
5700 # Test first that cc exists at all.
5701 if { ac_try='cc -c conftest.$ac_ext >&5'
5702 { { case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705esac
5706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5707$as_echo "$ac_try_echo"; } >&5
5708 (eval "$ac_try") 2>&5
5709 ac_status=$?
5710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711 test $ac_status = 0; }; }; then
5712 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5713 rm -f conftest2.*
5714 if { { case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717esac
5718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5719$as_echo "$ac_try_echo"; } >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723 test $ac_status = 0; } &&
5724 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727esac
5728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5729$as_echo "$ac_try_echo"; } >&5
5730 (eval "$ac_try") 2>&5
5731 ac_status=$?
5732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5733 test $ac_status = 0; };
5734 then
5735 # cc works too.
5736 :
5737 else
5738 # cc exists but doesn't like -o.
5739 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5740 fi
5741 fi
5742 fi
5743else
5744 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5745fi
5746rm -f core conftest*
5747
5748fi
5749if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5751$as_echo "yes" >&6; }
5752else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754$as_echo "no" >&6; }
5755
5756$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5757
5758fi
5759
5760# FIXME: we rely on the cache variable name because
5761# there is no other way.
5762set dummy $CC
5763am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5764eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5765if test "$am_t" != yes; then
5766 # Losing compiler, so override with the script.
5767 # FIXME: It is wrong to rewrite CC.
5768 # But if we don't then we get into trouble of one sort or another.
5769 # A longer-term fix would be to have automake use am__CC in this case,
5770 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5771 CC="$am_aux_dir/compile $CC"
5772fi
5773
5774
5775
21be0a5a
JB
5776# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5777if test "x$GCC" = "xyes"; then
5778 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
f7b6856f
JB
5779 ## We like to use C11 and C99 routines when available. This makes
5780 ## sure that
21be0a5a 5781 ## __STDC_VERSION__ is set such that libc includes make them available.
581d2326 5782 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
21be0a5a
JB
5783 ## Compile the following tests with the same system header contents
5784 ## that we'll encounter when compiling our own source files.
f7b6856f 5785 CFLAGS="-std=gnu11 $CFLAGS"
21be0a5a
JB
5786fi
5787
5788
5789
5790
5791# Check for symbol versioning (copied from libssp).
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5793$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bf382f5f
RO
5794# Check whether --enable-symvers was given.
5795if test "${enable_symvers+set}" = set; then :
5796 enableval=$enable_symvers; gfortran_use_symver=$enableval
5797else
5798 gfortran_use_symver=yes
5799fi
5800
19af62db 5801if test "x$gfortran_use_symver" != xno; then
bf382f5f
RO
5802 save_LDFLAGS="$LDFLAGS"
5803 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5804 cat > conftest.map <<EOF
21be0a5a
JB
5805FOO_1.0 {
5806 global: *foo*; bar; local: *;
5807};
5808EOF
bf382f5f 5809 if test x$gcc_no_link = xyes; then
21be0a5a
JB
5810 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5811fi
5812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813/* end confdefs.h. */
5814int foo;
5815int
5816main ()
5817{
5818
5819 ;
5820 return 0;
5821}
5822_ACEOF
5823if ac_fn_c_try_link "$LINENO"; then :
5824 gfortran_use_symver=gnu
5825else
5826 gfortran_use_symver=no
5827fi
5828rm -f core conftest.err conftest.$ac_objext \
5829 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
5830 if test x$gfortran_use_symver = xno; then
5831 case "$target_os" in
5832 solaris2*)
5833 LDFLAGS="$save_LDFLAGS"
5834 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5835 # Sun ld cannot handle wildcards and treats all entries as undefined.
5836 cat > conftest.map <<EOF
21be0a5a
JB
5837FOO_1.0 {
5838 global: foo; local: *;
5839};
5840EOF
bf382f5f 5841 if test x$gcc_no_link = xyes; then
21be0a5a
JB
5842 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5843fi
5844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845/* end confdefs.h. */
5846int foo;
5847int
5848main ()
5849{
5850
5851 ;
5852 return 0;
5853}
5854_ACEOF
5855if ac_fn_c_try_link "$LINENO"; then :
5856 gfortran_use_symver=sun
5857else
5858 gfortran_use_symver=no
5859fi
5860rm -f core conftest.err conftest.$ac_objext \
5861 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
5862 ;;
5863 esac
5864 fi
5865 LDFLAGS="$save_LDFLAGS"
21be0a5a 5866fi
21be0a5a
JB
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5868$as_echo "$gfortran_use_symver" >&6; }
5869 if test "x$gfortran_use_symver" != xno; then
5870 LIBGFOR_USE_SYMVER_TRUE=
5871 LIBGFOR_USE_SYMVER_FALSE='#'
5872else
5873 LIBGFOR_USE_SYMVER_TRUE='#'
5874 LIBGFOR_USE_SYMVER_FALSE=
5875fi
5876
5877 if test "x$gfortran_use_symver" = xgnu; then
5878 LIBGFOR_USE_SYMVER_GNU_TRUE=
5879 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5880else
5881 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5882 LIBGFOR_USE_SYMVER_GNU_FALSE=
5883fi
5884
5885 if test "x$gfortran_use_symver" = xsun; then
5886 LIBGFOR_USE_SYMVER_SUN_TRUE=
5887 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5888else
5889 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5890 LIBGFOR_USE_SYMVER_SUN_FALSE=
5891fi
5892
5893
ee95f928
BS
5894# For GPU offloading, not everything in libfortran can be supported.
5895# Currently, the only target that has this problem is nvptx. The
5896# following is a (partial) list of features that are unsupportable on
5897# this particular target:
5898# * Constructors
5899# * alloca
5900# * C library support for I/O, with printf as the one notable exception
5901# * C library support for other features such as signal, environment
5902# variables, time functions
5903
5904 if test "x${target_cpu}" = xnvptx; then
5905 LIBGFOR_MINIMAL_TRUE=
5906 LIBGFOR_MINIMAL_FALSE='#'
5907else
5908 LIBGFOR_MINIMAL_TRUE='#'
5909 LIBGFOR_MINIMAL_FALSE=
5910fi
5911
5912
21be0a5a
JB
5913# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5914# similarly to how libstdc++ does it
5915ac_test_CFLAGS="${CFLAGS+set}"
5916ac_save_CFLAGS="$CFLAGS"
5917
5918# Check for -ffunction-sections -fdata-sections
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5920$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5921CFLAGS='-Werror -ffunction-sections -fdata-sections'
5922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923/* end confdefs.h. */
5924
5925int
5926main ()
5927{
5928int foo;
5929 ;
5930 return 0;
5931}
5932_ACEOF
5933if ac_fn_c_try_compile "$LINENO"; then :
5934 ac_fdsections=yes
5935else
5936 ac_fdsections=no
5937fi
5938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939if test "$ac_test_CFLAGS" = set; then
5940 CFLAGS="$ac_save_CFLAGS"
5941else
5942 # this is the suspicious part
5943 CFLAGS=""
5944fi
5945if test x"$ac_fdsections" = x"yes"; then
5946 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5947fi
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5949$as_echo "$ac_fdsections" >&6; }
5950
5951
66dbcf2d
RO
5952# Check linker hardware capability support.
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5954$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5955if test "${ac_cv_path_SED+set}" = set; then :
21be0a5a
JB
5956 $as_echo_n "(cached) " >&6
5957else
66dbcf2d
RO
5958 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5959 for ac_i in 1 2 3 4 5 6 7; do
5960 ac_script="$ac_script$as_nl$ac_script"
5961 done
5962 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5963 { ac_script=; unset ac_script;}
5964 if test -z "$SED"; then
5965 ac_path_SED_found=false
5966 # Loop through the user's path and test for each of PROGNAME-LIST
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21be0a5a
JB
5968for as_dir in $PATH
5969do
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
66dbcf2d 5972 for ac_prog in sed gsed; do
21be0a5a 5973 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d
RO
5974 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5975 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5976# Check for GNU ac_path_SED and select it if it is found.
5977 # Check for GNU $ac_path_SED
5978case `"$ac_path_SED" --version 2>&1` in
5979*GNU*)
5980 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5981*)
5982 ac_count=0
5983 $as_echo_n 0123456789 >"conftest.in"
5984 while :
5985 do
5986 cat "conftest.in" "conftest.in" >"conftest.tmp"
5987 mv "conftest.tmp" "conftest.in"
5988 cp "conftest.in" "conftest.nl"
5989 $as_echo '' >> "conftest.nl"
5990 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5992 as_fn_arith $ac_count + 1 && ac_count=$as_val
5993 if test $ac_count -gt ${ac_path_SED_max-0}; then
5994 # Best one so far, save it but keep looking for a better one
5995 ac_cv_path_SED="$ac_path_SED"
5996 ac_path_SED_max=$ac_count
5997 fi
5998 # 10*(2^10) chars as input seems more than enough
5999 test $ac_count -gt 10 && break
21be0a5a 6000 done
66dbcf2d
RO
6001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6002esac
21be0a5a 6003
66dbcf2d
RO
6004 $ac_path_SED_found && break 3
6005 done
6006 done
21be0a5a
JB
6007 done
6008IFS=$as_save_IFS
66dbcf2d
RO
6009 if test -z "$ac_cv_path_SED"; then
6010 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6011 fi
21be0a5a 6012else
66dbcf2d 6013 ac_cv_path_SED=$SED
21be0a5a
JB
6014fi
6015
21be0a5a 6016fi
66dbcf2d
RO
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6018$as_echo "$ac_cv_path_SED" >&6; }
6019 SED="$ac_cv_path_SED"
6020 rm -f conftest.sed
21be0a5a 6021
66dbcf2d
RO
6022test -z "$SED" && SED=sed
6023Xsed="$SED -e 1s/^X//"
21be0a5a 6024
21be0a5a
JB
6025
6026
66dbcf2d
RO
6027
6028
6029
6030
6031
6032
6033
6034
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6036$as_echo_n "checking for fgrep... " >&6; }
6037if test "${ac_cv_path_FGREP+set}" = set; then :
21be0a5a
JB
6038 $as_echo_n "(cached) " >&6
6039else
66dbcf2d
RO
6040 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6041 then ac_cv_path_FGREP="$GREP -F"
6042 else
6043 if test -z "$FGREP"; then
6044 ac_path_FGREP_found=false
6045 # Loop through the user's path and test for each of PROGNAME-LIST
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
21be0a5a
JB
6048do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
66dbcf2d 6051 for ac_prog in fgrep; do
21be0a5a 6052 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d
RO
6053 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6054 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6055# Check for GNU ac_path_FGREP and select it if it is found.
6056 # Check for GNU $ac_path_FGREP
6057case `"$ac_path_FGREP" --version 2>&1` in
6058*GNU*)
6059 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6060*)
6061 ac_count=0
6062 $as_echo_n 0123456789 >"conftest.in"
6063 while :
6064 do
6065 cat "conftest.in" "conftest.in" >"conftest.tmp"
6066 mv "conftest.tmp" "conftest.in"
6067 cp "conftest.in" "conftest.nl"
6068 $as_echo 'FGREP' >> "conftest.nl"
6069 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6071 as_fn_arith $ac_count + 1 && ac_count=$as_val
6072 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6073 # Best one so far, save it but keep looking for a better one
6074 ac_cv_path_FGREP="$ac_path_FGREP"
6075 ac_path_FGREP_max=$ac_count
6076 fi
6077 # 10*(2^10) chars as input seems more than enough
6078 test $ac_count -gt 10 && break
6079 done
6080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6081esac
6082
6083 $ac_path_FGREP_found && break 3
6084 done
6085 done
21be0a5a
JB
6086 done
6087IFS=$as_save_IFS
66dbcf2d
RO
6088 if test -z "$ac_cv_path_FGREP"; then
6089 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6090 fi
6091else
6092 ac_cv_path_FGREP=$FGREP
6093fi
21be0a5a 6094
66dbcf2d 6095 fi
21be0a5a 6096fi
66dbcf2d
RO
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6098$as_echo "$ac_cv_path_FGREP" >&6; }
6099 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
6100
6101
66dbcf2d 6102test -z "$GREP" && GREP=grep
1cf3d07d
SE
6103
6104
6105
6106
6de9cd9a 6107
1cf3d07d
SE
6108
6109
6110
6111
6112
6113
6114
43e02a8a 6115
43e02a8a 6116
43e02a8a 6117
43e02a8a 6118
43e02a8a
RW
6119
6120ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6121ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6122ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6123
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6125$as_echo_n "checking how to print strings... " >&6; }
6126# Test print first, because it will be a builtin if present.
6127if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6128 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6129 ECHO='print -r --'
6130elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6131 ECHO='printf %s\n'
6132else
6133 # Use this function as a fallback that always works.
6134 func_fallback_echo ()
6135 {
6136 eval 'cat <<_LTECHO_EOF
6137$1
6138_LTECHO_EOF'
6139 }
6140 ECHO='func_fallback_echo'
6141fi
6142
6143# func_echo_all arg...
6144# Invoke $ECHO with all args, space-separated.
6145func_echo_all ()
6146{
6147 $ECHO ""
6148}
6149
6150case "$ECHO" in
6151 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6152$as_echo "printf" >&6; } ;;
6153 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6154$as_echo "print -r" >&6; } ;;
6155 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6156$as_echo "cat" >&6; } ;;
6157esac
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
21be0a5a
JB
6170
6171
5213506e 6172
5213506e 6173
66dbcf2d
RO
6174# Check whether --with-gnu-ld was given.
6175if test "${with_gnu_ld+set}" = set; then :
6176 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6177else
6178 with_gnu_ld=no
1cf3d07d 6179fi
21be0a5a 6180
66dbcf2d
RO
6181ac_prog=ld
6182if test "$GCC" = yes; then
6183 # Check if gcc -print-prog-name=ld gives a path.
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6185$as_echo_n "checking for ld used by $CC... " >&6; }
6186 case $host in
6187 *-*-mingw*)
6188 # gcc leaves a trailing carriage return which upsets mingw
6189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6190 *)
6191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6192 esac
6193 case $ac_prog in
6194 # Accept absolute paths.
6195 [\\/]* | ?:[\\/]*)
6196 re_direlt='/[^/][^/]*/\.\./'
6197 # Canonicalize the pathname of ld
6198 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6199 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6200 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6201 done
6202 test -z "$LD" && LD="$ac_prog"
6203 ;;
6204 "")
6205 # If it fails, then pretend we aren't using GCC.
6206 ac_prog=ld
6207 ;;
6208 *)
6209 # If it is relative, then search for the first ld in PATH.
6210 with_gnu_ld=unknown
6211 ;;
6212 esac
6213elif test "$with_gnu_ld" = yes; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6215$as_echo_n "checking for GNU ld... " >&6; }
6216else
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6218$as_echo_n "checking for non-GNU ld... " >&6; }
6219fi
6220if test "${lt_cv_path_LD+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6222else
6223 if test -z "$LD"; then
6224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6225 for ac_dir in $PATH; do
6226 IFS="$lt_save_ifs"
6227 test -z "$ac_dir" && ac_dir=.
6228 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6229 lt_cv_path_LD="$ac_dir/$ac_prog"
6230 # Check to see if the program is GNU ld. I'd rather use --version,
6231 # but apparently some variants of GNU ld only accept -v.
6232 # Break only if it was the GNU/non-GNU ld that we prefer.
6233 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6234 *GNU* | *'with BFD'*)
6235 test "$with_gnu_ld" != no && break
6236 ;;
6237 *)
6238 test "$with_gnu_ld" != yes && break
6239 ;;
6240 esac
6241 fi
6242 done
6243 IFS="$lt_save_ifs"
6244else
6245 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6246fi
6247fi
6248
6249LD="$lt_cv_path_LD"
6250if test -n "$LD"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6252$as_echo "$LD" >&6; }
6253else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255$as_echo "no" >&6; }
6256fi
6257test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6259$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6260if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6262else
6263 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6264case `$LD -v 2>&1 </dev/null` in
6265*GNU* | *'with BFD'*)
6266 lt_cv_prog_gnu_ld=yes
6267 ;;
6268*)
6269 lt_cv_prog_gnu_ld=no
6270 ;;
6271esac
6272fi
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6274$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6275with_gnu_ld=$lt_cv_prog_gnu_ld
21be0a5a
JB
6276
6277
6278
6279
6280
6281
6282
6283
1cf3d07d
SE
6284
6285
66dbcf2d
RO
6286 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6287
6288
6289 ac_save_LDFLAGS="$LDFLAGS"
6290 LDFLAGS="$LFLAGS -mclear-hwcap"
6291
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6293$as_echo_n "checking for -mclear-hwcap... " >&6; }
6294 if test x$gcc_no_link = xyes; then
6295 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6296fi
6297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h. */
6299
6300int
6301main ()
6302{
6303return 0;
6304 ;
6305 return 0;
6306}
6307_ACEOF
6308if ac_fn_c_try_link "$LINENO"; then :
6309 ac_hwcap_ldflags=yes
6310else
6311 ac_hwcap_ldflags=no
6312fi
6313rm -f core conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6315 if test "$ac_hwcap_ldflags" = "yes"; then
6316 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6319$as_echo "$ac_hwcap_ldflags" >&6; }
6320
6321 LDFLAGS="$ac_save_LDFLAGS"
6322
6323
6324
6325 if test $ac_hwcap_ldflags != no; then
6326 HAVE_HWCAP_TRUE=
6327 HAVE_HWCAP_FALSE='#'
6328else
6329 HAVE_HWCAP_TRUE='#'
6330 HAVE_HWCAP_FALSE=
6331fi
6332
6333
6334
6335# Find other programs we need.
6336if test -n "$ac_tool_prefix"; then
6337 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6338set dummy ${ac_tool_prefix}as; ac_word=$2
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340$as_echo_n "checking for $ac_word... " >&6; }
6341if test "${ac_cv_prog_AS+set}" = set; then :
5213506e 6342 $as_echo_n "(cached) " >&6
38d24731 6343else
66dbcf2d
RO
6344 if test -n "$AS"; then
6345 ac_cv_prog_AS="$AS" # Let the user override the test.
6346else
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
5213506e
RW
6349do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
5213506e 6352 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d
RO
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_AS="${ac_tool_prefix}as"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358done
5213506e 6359 done
66dbcf2d
RO
6360IFS=$as_save_IFS
6361
6362fi
6363fi
6364AS=$ac_cv_prog_AS
6365if test -n "$AS"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6367$as_echo "$AS" >&6; }
6368else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370$as_echo "no" >&6; }
6371fi
6372
6373
6374fi
6375if test -z "$ac_cv_prog_AS"; then
6376 ac_ct_AS=$AS
6377 # Extract the first word of "as", so it can be a program name with args.
6378set dummy as; ac_word=$2
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
6381if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6383else
6384 if test -n "$ac_ct_AS"; then
6385 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_ac_ct_AS="as"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398done
6399 done
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404ac_ct_AS=$ac_cv_prog_ac_ct_AS
6405if test -n "$ac_ct_AS"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6407$as_echo "$ac_ct_AS" >&6; }
6408else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410$as_echo "no" >&6; }
6411fi
6412
6413 if test "x$ac_ct_AS" = x; then
6414 AS=""
6415 else
6416 case $cross_compiling:$ac_tool_warned in
6417yes:)
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420ac_tool_warned=yes ;;
5213506e 6421esac
66dbcf2d
RO
6422 AS=$ac_ct_AS
6423 fi
6424else
6425 AS="$ac_cv_prog_AS"
6426fi
5213506e 6427
66dbcf2d
RO
6428if test -n "$ac_tool_prefix"; then
6429 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6430set dummy ${ac_tool_prefix}ar; ac_word=$2
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432$as_echo_n "checking for $ac_word... " >&6; }
6433if test "${ac_cv_prog_AR+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6435else
6436 if test -n "$AR"; then
6437 ac_cv_prog_AR="$AR" # Let the user override the test.
6438else
6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440for as_dir in $PATH
6441do
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_AR="${ac_tool_prefix}ar"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6449 fi
6450done
5213506e 6451 done
66dbcf2d
RO
6452IFS=$as_save_IFS
6453
6454fi
6455fi
6456AR=$ac_cv_prog_AR
6457if test -n "$AR"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6459$as_echo "$AR" >&6; }
6460else
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462$as_echo "no" >&6; }
6463fi
6464
6465
6466fi
6467if test -z "$ac_cv_prog_AR"; then
6468 ac_ct_AR=$AR
6469 # Extract the first word of "ar", so it can be a program name with args.
6470set dummy ar; ac_word=$2
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472$as_echo_n "checking for $ac_word... " >&6; }
6473if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6474 $as_echo_n "(cached) " >&6
6475else
6476 if test -n "$ac_ct_AR"; then
6477 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6478else
6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_ac_ct_AR="ar"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490done
6491 done
6492IFS=$as_save_IFS
6493
6494fi
6495fi
6496ac_ct_AR=$ac_cv_prog_ac_ct_AR
6497if test -n "$ac_ct_AR"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6499$as_echo "$ac_ct_AR" >&6; }
6500else
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502$as_echo "no" >&6; }
6503fi
6504
6505 if test "x$ac_ct_AR" = x; then
6506 AR=""
6507 else
6508 case $cross_compiling:$ac_tool_warned in
6509yes:)
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6512ac_tool_warned=yes ;;
6513esac
6514 AR=$ac_ct_AR
6515 fi
6516else
6517 AR="$ac_cv_prog_AR"
6518fi
6519
6520if test -n "$ac_tool_prefix"; then
6521 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6522set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524$as_echo_n "checking for $ac_word... " >&6; }
6525if test "${ac_cv_prog_RANLIB+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6527else
6528 if test -n "$RANLIB"; then
6529 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6530else
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6541 fi
6542done
6543 done
6544IFS=$as_save_IFS
6545
6546fi
6547fi
6548RANLIB=$ac_cv_prog_RANLIB
6549if test -n "$RANLIB"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6551$as_echo "$RANLIB" >&6; }
6552else
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554$as_echo "no" >&6; }
6555fi
6556
6557
6558fi
6559if test -z "$ac_cv_prog_RANLIB"; then
6560 ac_ct_RANLIB=$RANLIB
6561 # Extract the first word of "ranlib", so it can be a program name with args.
6562set dummy ranlib; ac_word=$2
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564$as_echo_n "checking for $ac_word... " >&6; }
6565if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6567else
6568 if test -n "$ac_ct_RANLIB"; then
6569 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_ac_ct_RANLIB="ranlib"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582done
5213506e
RW
6583 done
6584IFS=$as_save_IFS
66dbcf2d
RO
6585
6586fi
6587fi
6588ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6589if test -n "$ac_ct_RANLIB"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6591$as_echo "$ac_ct_RANLIB" >&6; }
5213506e 6592else
66dbcf2d
RO
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594$as_echo "no" >&6; }
1cf3d07d 6595fi
5213506e 6596
66dbcf2d
RO
6597 if test "x$ac_ct_RANLIB" = x; then
6598 RANLIB="ranlib-not-found-in-path-error"
6599 else
6600 case $cross_compiling:$ac_tool_warned in
6601yes:)
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6604ac_tool_warned=yes ;;
6605esac
6606 RANLIB=$ac_ct_RANLIB
6607 fi
6608else
6609 RANLIB="$ac_cv_prog_RANLIB"
5213506e 6610fi
1cf3d07d 6611
66dbcf2d
RO
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6613$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6614set x ${MAKE-make}
6615ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6616if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6617 $as_echo_n "(cached) " >&6
6618else
6619 cat >conftest.make <<\_ACEOF
6620SHELL = /bin/sh
6621all:
6622 @echo '@@@%%%=$(MAKE)=@@@%%%'
6623_ACEOF
6624# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6625case `${MAKE-make} -f conftest.make 2>/dev/null` in
6626 *@@@%%%=?*=@@@%%%*)
6627 eval ac_cv_prog_make_${ac_make}_set=yes;;
6628 *)
6629 eval ac_cv_prog_make_${ac_make}_set=no;;
6630esac
6631rm -f conftest.make
6632fi
6633if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6635$as_echo "yes" >&6; }
6636 SET_MAKE=
6637else
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639$as_echo "no" >&6; }
6640 SET_MAKE="MAKE=${MAKE-make}"
6641fi
1cf3d07d
SE
6642
6643
6644
66dbcf2d
RO
6645# Configure libtool
6646#AC_MSG_NOTICE([====== Starting libtool configuration])
6647enable_dlopen=yes
1cf3d07d
SE
6648
6649
6650
66dbcf2d
RO
6651case `pwd` in
6652 *\ * | *\ *)
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6654$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6655esac
1cf3d07d
SE
6656
6657
6658
66dbcf2d
RO
6659macro_version='2.2.7a'
6660macro_revision='1.3134'
1cf3d07d
SE
6661
6662
6663
6664
6665
6666
6667
6668
5213506e 6669
96b8a615 6670
96b8a615
AJ
6671
6672
96b8a615 6673
66dbcf2d 6674ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 6675
66dbcf2d
RO
6676# Backslashify metacharacters that are still active within
6677# double-quoted strings.
6678sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1cf3d07d 6679
66dbcf2d
RO
6680# Same as above, but do not quote variable references.
6681double_quote_subst='s/\(["`\\]\)/\\\1/g'
1cf3d07d 6682
66dbcf2d
RO
6683# Sed substitution to delay expansion of an escaped shell variable in a
6684# double_quote_subst'ed string.
6685delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1cf3d07d 6686
66dbcf2d
RO
6687# Sed substitution to delay expansion of an escaped single quote.
6688delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1cf3d07d 6689
66dbcf2d
RO
6690# Sed substitution to avoid accidental globbing in evaled expressions
6691no_glob_subst='s/\*/\\\*/g'
1cf3d07d 6692
5213506e
RW
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6694$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6695if test "${lt_cv_path_NM+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
96b8a615
AJ
6697else
6698 if test -n "$NM"; then
6699 # Let the user override the test.
6700 lt_cv_path_NM="$NM"
6701else
1cf3d07d
SE
6702 lt_nm_to_check="${ac_tool_prefix}nm"
6703 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6704 lt_nm_to_check="$lt_nm_to_check nm"
6705 fi
6706 for lt_tmp_nm in $lt_nm_to_check; do
6707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6708 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6709 IFS="$lt_save_ifs"
6710 test -z "$ac_dir" && ac_dir=.
6711 tmp_nm="$ac_dir/$lt_tmp_nm"
6712 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6713 # Check to see if the nm accepts a BSD-compat flag.
6714 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6715 # nm: unknown option "B" ignored
6716 # Tru64's nm complains that /dev/null is an invalid object file
6717 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6718 */dev/null* | *'Invalid file or object type'*)
6719 lt_cv_path_NM="$tmp_nm -B"
6720 break
6721 ;;
6722 *)
6723 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6724 */dev/null*)
6725 lt_cv_path_NM="$tmp_nm -p"
6726 break
6727 ;;
6728 *)
6729 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6730 continue # so that we can try to find one that supports BSD flags
6731 ;;
6732 esac
6733 ;;
6734 esac
6735 fi
6736 done
6737 IFS="$lt_save_ifs"
6738 done
6739 : ${lt_cv_path_NM=no}
6740fi
6741fi
5213506e
RW
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6743$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
6744if test "$lt_cv_path_NM" != "no"; then
6745 NM="$lt_cv_path_NM"
6746else
6747 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
6748 if test -n "$DUMPBIN"; then :
6749 # Let the user override the test.
6750 else
6751 if test -n "$ac_tool_prefix"; then
6752 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
6753 do
6754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6755set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757$as_echo_n "checking for $ac_word... " >&6; }
6758if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6760else
6761 if test -n "$DUMPBIN"; then
6762 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
5213506e
RW
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6771 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6773 break 2
6774 fi
6775done
5213506e
RW
6776 done
6777IFS=$as_save_IFS
1cf3d07d
SE
6778
6779fi
6780fi
6781DUMPBIN=$ac_cv_prog_DUMPBIN
6782if test -n "$DUMPBIN"; then
5213506e
RW
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6784$as_echo "$DUMPBIN" >&6; }
1cf3d07d 6785else
5213506e
RW
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787$as_echo "no" >&6; }
1cf3d07d
SE
6788fi
6789
5213506e 6790
1cf3d07d
SE
6791 test -n "$DUMPBIN" && break
6792 done
6793fi
6794if test -z "$DUMPBIN"; then
6795 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 6796 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
6797do
6798 # Extract the first word of "$ac_prog", so it can be a program name with args.
6799set dummy $ac_prog; ac_word=$2
5213506e
RW
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801$as_echo_n "checking for $ac_word... " >&6; }
6802if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6804else
6805 if test -n "$ac_ct_DUMPBIN"; then
6806 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6807else
6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
5213506e
RW
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6815 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6817 break 2
6818 fi
6819done
5213506e
RW
6820 done
6821IFS=$as_save_IFS
1cf3d07d
SE
6822
6823fi
6824fi
6825ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6826if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6828$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 6829else
5213506e
RW
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831$as_echo "no" >&6; }
1cf3d07d
SE
6832fi
6833
5213506e 6834
1cf3d07d
SE
6835 test -n "$ac_ct_DUMPBIN" && break
6836done
1cf3d07d 6837
5213506e
RW
6838 if test "x$ac_ct_DUMPBIN" = x; then
6839 DUMPBIN=":"
6840 else
6841 case $cross_compiling:$ac_tool_warned in
6842yes:)
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845ac_tool_warned=yes ;;
6846esac
6847 DUMPBIN=$ac_ct_DUMPBIN
6848 fi
96b8a615 6849fi
1cf3d07d 6850
43e02a8a
RW
6851 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6852 *COFF*)
6853 DUMPBIN="$DUMPBIN -symbols"
6854 ;;
6855 *)
6856 DUMPBIN=:
6857 ;;
6858 esac
6859 fi
1cf3d07d
SE
6860
6861 if test "$DUMPBIN" != ":"; then
6862 NM="$DUMPBIN"
6863 fi
96b8a615 6864fi
1cf3d07d
SE
6865test -z "$NM" && NM=nm
6866
6867
96b8a615 6868
1cf3d07d
SE
6869
6870
6871
5213506e
RW
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6873$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6874if test "${lt_cv_nm_interface+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6876else
6877 lt_cv_nm_interface="BSD nm"
6878 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 6879 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
6880 (eval "$ac_compile" 2>conftest.err)
6881 cat conftest.err >&5
43e02a8a 6882 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
6883 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6884 cat conftest.err >&5
43e02a8a 6885 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
6886 cat conftest.out >&5
6887 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6888 lt_cv_nm_interface="MS dumpbin"
6889 fi
6890 rm -f conftest*
6891fi
5213506e
RW
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6893$as_echo "$lt_cv_nm_interface" >&6; }
96b8a615 6894
5213506e
RW
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6896$as_echo_n "checking whether ln -s works... " >&6; }
96b8a615
AJ
6897LN_S=$as_ln_s
6898if test "$LN_S" = "ln -s"; then
5213506e
RW
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900$as_echo "yes" >&6; }
96b8a615 6901else
5213506e
RW
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6903$as_echo "no, using $LN_S" >&6; }
96b8a615
AJ
6904fi
6905
1cf3d07d 6906# find the maximum length of command line arguments
5213506e
RW
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6908$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6909if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6911else
6912 i=0
6913 teststring="ABCD"
6914
6915 case $build_os in
6916 msdosdjgpp*)
6917 # On DJGPP, this test can blow up pretty badly due to problems in libc
6918 # (any single argument exceeding 2000 bytes causes a buffer overrun
6919 # during glob expansion). Even if it were fixed, the result of this
6920 # check would be larger than it should be.
6921 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6922 ;;
6923
6924 gnu*)
6925 # Under GNU Hurd, this test is not required because there is
6926 # no limit to the length of command line arguments.
6927 # Libtool will interpret -1 as no limit whatsoever
6928 lt_cv_sys_max_cmd_len=-1;
6929 ;;
6930
d58dead8 6931 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
6932 # On Win9x/ME, this test blows up -- it succeeds, but takes
6933 # about 5 minutes as the teststring grows exponentially.
6934 # Worse, since 9x/ME are not pre-emptively multitasking,
6935 # you end up with a "frozen" computer, even though with patience
6936 # the test eventually succeeds (with a max line length of 256k).
6937 # Instead, let's just punt: use the minimum linelength reported by
6938 # all of the supported platforms: 8192 (on NT/2K/XP).
6939 lt_cv_sys_max_cmd_len=8192;
6940 ;;
6941
43e02a8a
RW
6942 mint*)
6943 # On MiNT this can take a long time and run out of memory.
6944 lt_cv_sys_max_cmd_len=8192;
6945 ;;
6946
1cf3d07d
SE
6947 amigaos*)
6948 # On AmigaOS with pdksh, this test takes hours, literally.
6949 # So we just punt and use a minimum line length of 8192.
6950 lt_cv_sys_max_cmd_len=8192;
6951 ;;
6952
6953 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6954 # This has been around since 386BSD, at least. Likely further.
6955 if test -x /sbin/sysctl; then
6956 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6957 elif test -x /usr/sbin/sysctl; then
6958 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6959 else
6960 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6961 fi
6962 # And add a safety zone
6963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6965 ;;
6966
6967 interix*)
6968 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6969 lt_cv_sys_max_cmd_len=196608
6970 ;;
6971
6972 osf*)
6973 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6974 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6975 # nice to cause kernel panics so lets avoid the loop below.
6976 # First set a reasonable default.
6977 lt_cv_sys_max_cmd_len=16384
6978 #
6979 if test -x /sbin/sysconfig; then
6980 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6981 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6982 esac
6983 fi
6984 ;;
6985 sco3.2v5*)
6986 lt_cv_sys_max_cmd_len=102400
6987 ;;
6988 sysv5* | sco5v6* | sysv4.2uw2*)
6989 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6990 if test -n "$kargmax"; then
6991 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6992 else
6993 lt_cv_sys_max_cmd_len=32768
6994 fi
6995 ;;
6996 *)
d58dead8
PG
6997 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6998 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
6999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7001 else
7002 # Make teststring a little bigger before we do anything with it.
7003 # a 1K string should be a reasonable start.
7004 for i in 1 2 3 4 5 6 7 8 ; do
7005 teststring=$teststring$teststring
7006 done
7007 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7008 # If test is not a shell built-in, we'll probably end up computing a
7009 # maximum length that is only half of the actual maximum length, but
7010 # we can't tell.
43e02a8a
RW
7011 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7012 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
7013 test $i != 17 # 1/2 MB should be enough
7014 do
7015 i=`expr $i + 1`
7016 teststring=$teststring$teststring
7017 done
7018 # Only check the string length outside the loop.
7019 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7020 teststring=
7021 # Add a significant safety factor because C++ compilers can tack on
7022 # massive amounts of additional arguments before passing them to the
7023 # linker. It appears as though 1/2 is a usable value.
7024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7025 fi
1cf3d07d
SE
7026 ;;
7027 esac
7028
7029fi
7030
7031if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7033$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 7034else
5213506e
RW
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7036$as_echo "none" >&6; }
1cf3d07d
SE
7037fi
7038max_cmd_len=$lt_cv_sys_max_cmd_len
7039
7040
7041
7042
7043
7044
1cf3d07d
SE
7045: ${CP="cp -f"}
7046: ${MV="mv -f"}
7047: ${RM="rm -f"}
7048
5213506e
RW
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7050$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
7051# Try some XSI features
7052xsi_shell=no
7053( _lt_dummy="a/b/c"
7054 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
d58dead8
PG
7055 = c,a/b,, \
7056 && eval 'test $(( 1 + 1 )) -eq 2 \
7057 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 7058 && xsi_shell=yes
5213506e
RW
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7060$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
7061
7062
5213506e
RW
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7064$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
7065lt_shell_append=no
7066( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7067 >/dev/null 2>&1 \
7068 && lt_shell_append=yes
5213506e
RW
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7070$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
7071
7072
7073if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7074 lt_unset=unset
7075else
7076 lt_unset=false
7077fi
7078
7079
7080
7081
7082
7083# test EBCDIC or ASCII
7084case `echo X|tr X '\101'` in
7085 A) # ASCII based system
7086 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7087 lt_SP2NL='tr \040 \012'
7088 lt_NL2SP='tr \015\012 \040\040'
7089 ;;
7090 *) # EBCDIC based system
7091 lt_SP2NL='tr \100 \n'
7092 lt_NL2SP='tr \r\n \100\100'
7093 ;;
7094esac
7095
7096
7097
7098
7099
7100
7101
7102
7103
5213506e
RW
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7105$as_echo_n "checking for $LD option to reload object files... " >&6; }
7106if test "${lt_cv_ld_reload_flag+set}" = set; then :
7107 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7108else
7109 lt_cv_ld_reload_flag='-r'
7110fi
5213506e
RW
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7112$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
7113reload_flag=$lt_cv_ld_reload_flag
7114case $reload_flag in
7115"" | " "*) ;;
7116*) reload_flag=" $reload_flag" ;;
7117esac
7118reload_cmds='$LD$reload_flag -o $output$reload_objs'
7119case $host_os in
7120 darwin*)
7121 if test "$GCC" = yes; then
7122 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7123 else
7124 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7125 fi
7126 ;;
7127esac
7128
7129
7130
7131
7132
7133
7134
7135
7136
d58dead8
PG
7137if test -n "$ac_tool_prefix"; then
7138 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7139set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141$as_echo_n "checking for $ac_word... " >&6; }
7142if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
d58dead8
PG
7144else
7145 if test -n "$OBJDUMP"; then
7146 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7147else
7148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149for as_dir in $PATH
7150do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
5213506e
RW
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 7155 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7157 break 2
7158 fi
7159done
5213506e
RW
7160 done
7161IFS=$as_save_IFS
d58dead8
PG
7162
7163fi
7164fi
7165OBJDUMP=$ac_cv_prog_OBJDUMP
7166if test -n "$OBJDUMP"; then
5213506e
RW
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7168$as_echo "$OBJDUMP" >&6; }
d58dead8 7169else
5213506e
RW
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171$as_echo "no" >&6; }
d58dead8
PG
7172fi
7173
5213506e 7174
d58dead8
PG
7175fi
7176if test -z "$ac_cv_prog_OBJDUMP"; then
7177 ac_ct_OBJDUMP=$OBJDUMP
7178 # Extract the first word of "objdump", so it can be a program name with args.
7179set dummy objdump; ac_word=$2
5213506e
RW
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181$as_echo_n "checking for $ac_word... " >&6; }
7182if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
d58dead8
PG
7184else
7185 if test -n "$ac_ct_OBJDUMP"; then
7186 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7187else
7188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189for as_dir in $PATH
7190do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
5213506e
RW
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 7195 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7197 break 2
7198 fi
7199done
5213506e
RW
7200 done
7201IFS=$as_save_IFS
d58dead8 7202
d58dead8
PG
7203fi
7204fi
7205ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7206if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7208$as_echo "$ac_ct_OBJDUMP" >&6; }
d58dead8 7209else
5213506e
RW
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211$as_echo "no" >&6; }
d58dead8
PG
7212fi
7213
5213506e
RW
7214 if test "x$ac_ct_OBJDUMP" = x; then
7215 OBJDUMP="false"
7216 else
7217 case $cross_compiling:$ac_tool_warned in
7218yes:)
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7221ac_tool_warned=yes ;;
7222esac
7223 OBJDUMP=$ac_ct_OBJDUMP
7224 fi
d58dead8
PG
7225else
7226 OBJDUMP="$ac_cv_prog_OBJDUMP"
7227fi
7228
7229test -z "$OBJDUMP" && OBJDUMP=objdump
7230
7231
7232
7233
7234
7235
7236
7237
1cf3d07d 7238
5213506e
RW
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7240$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7241if test "${lt_cv_deplibs_check_method+set}" = set; then :
7242 $as_echo_n "(cached) " >&6
96b8a615
AJ
7243else
7244 lt_cv_file_magic_cmd='$MAGIC_CMD'
7245lt_cv_file_magic_test_file=
7246lt_cv_deplibs_check_method='unknown'
7247# Need to set the preceding variable on all platforms that support
7248# interlibrary dependencies.
7249# 'none' -- dependencies not supported.
7250# `unknown' -- same as none, but documents that we really don't know.
7251# 'pass_all' -- all dependencies passed with no checks.
7252# 'test_compile' -- check by making test program.
1cf3d07d
SE
7253# 'file_magic [[regex]]' -- check by looking for files in library path
7254# which responds to the $file_magic_cmd with a given extended regex.
96b8a615
AJ
7255# If you have `file' or equivalent on your system and you're not sure
7256# whether `pass_all' will *always* work, you probably want this one.
7257
7258case $host_os in
4f6bebc3 7259aix[4-9]*)
96b8a615
AJ
7260 lt_cv_deplibs_check_method=pass_all
7261 ;;
7262
7263beos*)
7264 lt_cv_deplibs_check_method=pass_all
7265 ;;
7266
1cf3d07d 7267bsdi[45]*)
96b8a615
AJ
7268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7269 lt_cv_file_magic_cmd='/usr/bin/file -L'
7270 lt_cv_file_magic_test_file=/shlib/libc.so
7271 ;;
7272
1cf3d07d
SE
7273cygwin*)
7274 # func_win32_libid is a shell function defined in ltmain.sh
7275 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7276 lt_cv_file_magic_cmd='func_win32_libid'
7277 ;;
7278
7279mingw* | pw32*)
7280 # Base MSYS/MinGW do not provide the 'file' command needed by
7281 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7282 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
7283 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7284 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
7285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7286 lt_cv_file_magic_cmd='func_win32_libid'
7287 else
7288 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7289 lt_cv_file_magic_cmd='$OBJDUMP -f'
7290 fi
96b8a615
AJ
7291 ;;
7292
43e02a8a 7293cegcc*)
d58dead8
PG
7294 # use the weaker test based on 'objdump'. See mingw*.
7295 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7296 lt_cv_file_magic_cmd='$OBJDUMP -f'
7297 ;;
7298
96b8a615 7299darwin* | rhapsody*)
96b8a615
AJ
7300 lt_cv_deplibs_check_method=pass_all
7301 ;;
7302
1cf3d07d
SE
7303freebsd* | dragonfly*)
7304 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
96b8a615
AJ
7305 case $host_cpu in
7306 i*86 )
7307 # Not sure whether the presence of OpenBSD here was a mistake.
7308 # Let's accept both of them until this is cleared up.
1cf3d07d 7309 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
96b8a615
AJ
7310 lt_cv_file_magic_cmd=/usr/bin/file
7311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7312 ;;
7313 esac
7314 else
7315 lt_cv_deplibs_check_method=pass_all
7316 fi
7317 ;;
7318
7319gnu*)
7320 lt_cv_deplibs_check_method=pass_all
7321 ;;
7322
43e02a8a
RW
7323haiku*)
7324 lt_cv_deplibs_check_method=pass_all
7325 ;;
7326
1cf3d07d
SE
7327hpux10.20* | hpux11*)
7328 lt_cv_file_magic_cmd=/usr/bin/file
96b8a615 7329 case $host_cpu in
96b8a615
AJ
7330 ia64*)
7331 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
7332 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7333 ;;
1cf3d07d 7334 hppa*64*)
43e02a8a 7335 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 7336 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
96b8a615
AJ
7337 ;;
7338 *)
43e02a8a 7339 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d 7340 lt_cv_file_magic_test_file=/usr/lib/libc.sl
96b8a615
AJ
7341 ;;
7342 esac
1cf3d07d
SE
7343 ;;
7344
7345interix[3-9]*)
7346 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7348 ;;
7349
7350irix5* | irix6* | nonstopux*)
7351 case $LD in
7352 *-32|*"-32 ") libmagic=32-bit;;
7353 *-n32|*"-n32 ") libmagic=N32;;
7354 *-64|*"-64 ") libmagic=64-bit;;
7355 *) libmagic=never-match;;
7356 esac
96b8a615
AJ
7357 lt_cv_deplibs_check_method=pass_all
7358 ;;
7359
7360# This must be Linux ELF.
7a9d3fe8 7361linux* | k*bsd*-gnu | kopensolaris*-gnu)
2c92e90f 7362 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7363 ;;
7364
1cf3d07d
SE
7365netbsd*)
7366 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
96b8a615 7368 else
1cf3d07d 7369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
96b8a615
AJ
7370 fi
7371 ;;
7372
1cf3d07d 7373newos6*)
96b8a615
AJ
7374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7375 lt_cv_file_magic_cmd=/usr/bin/file
7376 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7377 ;;
7378
1cf3d07d
SE
7379*nto* | *qnx*)
7380 lt_cv_deplibs_check_method=pass_all
7381 ;;
7382
7383openbsd*)
7384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7386 else
7387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7388 fi
7389 ;;
7390
96b8a615 7391osf3* | osf4* | osf5*)
96b8a615
AJ
7392 lt_cv_deplibs_check_method=pass_all
7393 ;;
7394
1cf3d07d 7395rdos*)
96b8a615
AJ
7396 lt_cv_deplibs_check_method=pass_all
7397 ;;
7398
7399solaris*)
7400 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7401 ;;
7402
1cf3d07d 7403sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
96b8a615
AJ
7404 lt_cv_deplibs_check_method=pass_all
7405 ;;
7406
1cf3d07d 7407sysv4 | sysv4.3*)
96b8a615 7408 case $host_vendor in
96b8a615
AJ
7409 motorola)
7410 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]'
7411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7412 ;;
1cf3d07d
SE
7413 ncr)
7414 lt_cv_deplibs_check_method=pass_all
7415 ;;
7416 sequent)
7417 lt_cv_file_magic_cmd='/bin/file'
7418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7419 ;;
7420 sni)
7421 lt_cv_file_magic_cmd='/bin/file'
7422 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7423 lt_cv_file_magic_test_file=/lib/libc.so
7424 ;;
7425 siemens)
7426 lt_cv_deplibs_check_method=pass_all
7427 ;;
7428 pc)
7429 lt_cv_deplibs_check_method=pass_all
7430 ;;
96b8a615
AJ
7431 esac
7432 ;;
1cf3d07d
SE
7433
7434tpf*)
7435 lt_cv_deplibs_check_method=pass_all
7436 ;;
96b8a615
AJ
7437esac
7438
7439fi
5213506e
RW
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7441$as_echo "$lt_cv_deplibs_check_method" >&6; }
96b8a615
AJ
7442file_magic_cmd=$lt_cv_file_magic_cmd
7443deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 7444test -z "$deplibs_check_method" && deplibs_check_method=unknown
96b8a615
AJ
7445
7446
7447
7448
96b8a615 7449
96b8a615 7450
96b8a615 7451
96b8a615 7452
6de9cd9a 7453
6de9cd9a 7454
6de9cd9a 7455
6de9cd9a 7456
96b8a615 7457if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
7458 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7459set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461$as_echo_n "checking for $ac_word... " >&6; }
7462if test "${ac_cv_prog_AR+set}" = set; then :
7463 $as_echo_n "(cached) " >&6
6de9cd9a 7464else
1cf3d07d
SE
7465 if test -n "$AR"; then
7466 ac_cv_prog_AR="$AR" # Let the user override the test.
96b8a615
AJ
7467else
7468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469for as_dir in $PATH
7470do
7471 IFS=$as_save_IFS
7472 test -z "$as_dir" && as_dir=.
5213506e
RW
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7475 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 7476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7477 break 2
7478 fi
7479done
5213506e
RW
7480 done
7481IFS=$as_save_IFS
6de9cd9a 7482
96b8a615
AJ
7483fi
7484fi
1cf3d07d
SE
7485AR=$ac_cv_prog_AR
7486if test -n "$AR"; then
5213506e
RW
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7488$as_echo "$AR" >&6; }
96b8a615 7489else
5213506e
RW
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491$as_echo "no" >&6; }
6de9cd9a
DN
7492fi
7493
5213506e 7494
96b8a615 7495fi
1cf3d07d
SE
7496if test -z "$ac_cv_prog_AR"; then
7497 ac_ct_AR=$AR
7498 # Extract the first word of "ar", so it can be a program name with args.
7499set dummy ar; ac_word=$2
5213506e
RW
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501$as_echo_n "checking for $ac_word... " >&6; }
7502if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7503 $as_echo_n "(cached) " >&6
96b8a615 7504else
1cf3d07d
SE
7505 if test -n "$ac_ct_AR"; then
7506 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
96b8a615
AJ
7507else
7508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509for as_dir in $PATH
7510do
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
5213506e
RW
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7515 ac_cv_prog_ac_ct_AR="ar"
5213506e 7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7517 break 2
7518 fi
7519done
5213506e
RW
7520 done
7521IFS=$as_save_IFS
6de9cd9a 7522
96b8a615
AJ
7523fi
7524fi
1cf3d07d
SE
7525ac_ct_AR=$ac_cv_prog_ac_ct_AR
7526if test -n "$ac_ct_AR"; then
5213506e
RW
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7528$as_echo "$ac_ct_AR" >&6; }
6de9cd9a 7529else
5213506e
RW
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531$as_echo "no" >&6; }
6de9cd9a 7532fi
6de9cd9a 7533
5213506e
RW
7534 if test "x$ac_ct_AR" = x; then
7535 AR="false"
7536 else
7537 case $cross_compiling:$ac_tool_warned in
7538yes:)
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7541ac_tool_warned=yes ;;
7542esac
7543 AR=$ac_ct_AR
7544 fi
96b8a615 7545else
1cf3d07d 7546 AR="$ac_cv_prog_AR"
6de9cd9a
DN
7547fi
7548
1cf3d07d
SE
7549test -z "$AR" && AR=ar
7550test -z "$AR_FLAGS" && AR_FLAGS=cru
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
96b8a615
AJ
7562if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7564set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566$as_echo_n "checking for $ac_word... " >&6; }
7567if test "${ac_cv_prog_STRIP+set}" = set; then :
7568 $as_echo_n "(cached) " >&6
6de9cd9a 7569else
96b8a615
AJ
7570 if test -n "$STRIP"; then
7571 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7572else
7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
5213506e
RW
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
96b8a615 7580 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7582 break 2
7583 fi
7584done
5213506e
RW
7585 done
7586IFS=$as_save_IFS
6de9cd9a 7587
96b8a615
AJ
7588fi
7589fi
7590STRIP=$ac_cv_prog_STRIP
7591if test -n "$STRIP"; then
5213506e
RW
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7593$as_echo "$STRIP" >&6; }
6de9cd9a 7594else
5213506e
RW
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596$as_echo "no" >&6; }
96b8a615 7597fi
6de9cd9a 7598
5213506e 7599
6de9cd9a 7600fi
96b8a615
AJ
7601if test -z "$ac_cv_prog_STRIP"; then
7602 ac_ct_STRIP=$STRIP
7603 # Extract the first word of "strip", so it can be a program name with args.
7604set dummy strip; ac_word=$2
5213506e
RW
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606$as_echo_n "checking for $ac_word... " >&6; }
7607if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7608 $as_echo_n "(cached) " >&6
96b8a615
AJ
7609else
7610 if test -n "$ac_ct_STRIP"; then
7611 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7612else
7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614for as_dir in $PATH
7615do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
5213506e
RW
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
96b8a615 7620 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7622 break 2
7623 fi
7624done
5213506e
RW
7625 done
7626IFS=$as_save_IFS
96b8a615 7627
6de9cd9a
DN
7628fi
7629fi
96b8a615
AJ
7630ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7631if test -n "$ac_ct_STRIP"; then
5213506e
RW
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7633$as_echo "$ac_ct_STRIP" >&6; }
96b8a615 7634else
5213506e
RW
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636$as_echo "no" >&6; }
6de9cd9a 7637fi
6de9cd9a 7638
5213506e
RW
7639 if test "x$ac_ct_STRIP" = x; then
7640 STRIP=":"
7641 else
7642 case $cross_compiling:$ac_tool_warned in
7643yes:)
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7646ac_tool_warned=yes ;;
7647esac
7648 STRIP=$ac_ct_STRIP
7649 fi
96b8a615
AJ
7650else
7651 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
7652fi
7653
1cf3d07d 7654test -z "$STRIP" && STRIP=:
6de9cd9a
DN
7655
7656
7657
7658
7659
7660
1cf3d07d
SE
7661if test -n "$ac_tool_prefix"; then
7662 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7663set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665$as_echo_n "checking for $ac_word... " >&6; }
7666if test "${ac_cv_prog_RANLIB+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
6de9cd9a 7668else
1cf3d07d
SE
7669 if test -n "$RANLIB"; then
7670 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7671else
7672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673for as_dir in $PATH
7674do
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
5213506e
RW
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7679 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7681 break 2
7682 fi
7683done
5213506e
RW
7684 done
7685IFS=$as_save_IFS
1cf3d07d
SE
7686
7687fi
7688fi
7689RANLIB=$ac_cv_prog_RANLIB
7690if test -n "$RANLIB"; then
5213506e
RW
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7692$as_echo "$RANLIB" >&6; }
1cf3d07d 7693else
5213506e
RW
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695$as_echo "no" >&6; }
1cf3d07d
SE
7696fi
7697
5213506e 7698
1cf3d07d
SE
7699fi
7700if test -z "$ac_cv_prog_RANLIB"; then
7701 ac_ct_RANLIB=$RANLIB
7702 # Extract the first word of "ranlib", so it can be a program name with args.
7703set dummy ranlib; ac_word=$2
5213506e
RW
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705$as_echo_n "checking for $ac_word... " >&6; }
7706if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7708else
7709 if test -n "$ac_ct_RANLIB"; then
7710 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7711else
7712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713for as_dir in $PATH
7714do
7715 IFS=$as_save_IFS
7716 test -z "$as_dir" && as_dir=.
5213506e
RW
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7719 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7721 break 2
7722 fi
7723done
5213506e
RW
7724 done
7725IFS=$as_save_IFS
1cf3d07d 7726
1cf3d07d
SE
7727fi
7728fi
7729ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7730if test -n "$ac_ct_RANLIB"; then
5213506e
RW
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7732$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 7733else
5213506e
RW
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735$as_echo "no" >&6; }
1cf3d07d
SE
7736fi
7737
5213506e
RW
7738 if test "x$ac_ct_RANLIB" = x; then
7739 RANLIB=":"
7740 else
7741 case $cross_compiling:$ac_tool_warned in
7742yes:)
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745ac_tool_warned=yes ;;
7746esac
7747 RANLIB=$ac_ct_RANLIB
7748 fi
1cf3d07d
SE
7749else
7750 RANLIB="$ac_cv_prog_RANLIB"
7751fi
7752
7753test -z "$RANLIB" && RANLIB=:
7754
7755
7756
7757
7758
7759
7760# Determine commands to create old-style static archives.
d58dead8 7761old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
7762old_postinstall_cmds='chmod 644 $oldlib'
7763old_postuninstall_cmds=
7764
7765if test -n "$RANLIB"; then
7766 case $host_os in
7767 openbsd*)
7768 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7769 ;;
7770 *)
7771 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7772 ;;
7773 esac
7774 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7775fi
7776
43e02a8a
RW
7777case $host_os in
7778 darwin*)
7779 lock_old_archive_extraction=yes ;;
7780 *)
7781 lock_old_archive_extraction=no ;;
7782esac
7783
7784
7785
7786
7787
7788
1cf3d07d
SE
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822# If no C compiler was specified, use CC.
7823LTCC=${LTCC-"$CC"}
7824
7825# If no C compiler flags were specified, use CFLAGS.
7826LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7827
7828# Allow CC to be a program name with arguments.
7829compiler=$CC
7830
7831
7832# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7834$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7835if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7837else
7838
7839# These are sane defaults that work on at least a few old systems.
7840# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7841
7842# Character class describing NM global symbol codes.
7843symcode='[BCDEGRST]'
7844
7845# Regexp to match symbols that can be accessed directly from C.
7846sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7847
7848# Define system-specific variables.
7849case $host_os in
7850aix*)
7851 symcode='[BCDT]'
7852 ;;
d58dead8 7853cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7854 symcode='[ABCDGISTW]'
7855 ;;
7856hpux*)
7857 if test "$host_cpu" = ia64; then
7858 symcode='[ABCDEGRST]'
7859 fi
7860 ;;
7861irix* | nonstopux*)
7862 symcode='[BCDEGRST]'
7863 ;;
7864osf*)
7865 symcode='[BCDEGQRST]'
7866 ;;
7867solaris*)
7868 symcode='[BDRT]'
7869 ;;
7870sco3.2v5*)
7871 symcode='[DT]'
7872 ;;
7873sysv4.2uw2*)
7874 symcode='[DT]'
7875 ;;
7876sysv5* | sco5v6* | unixware* | OpenUNIX*)
7877 symcode='[ABDT]'
7878 ;;
7879sysv4)
7880 symcode='[DFNSTU]'
7881 ;;
7882esac
7883
7884# If we're using GNU nm, then use its standard symbol codes.
7885case `$NM -V 2>&1` in
7886*GNU* | *'with BFD'*)
7887 symcode='[ABCDGIRSTW]' ;;
7888esac
7889
7890# Transform an extracted symbol line into a proper C declaration.
7891# Some systems (esp. on ia64) link data and code symbols differently,
7892# so use this general approach.
7893lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7894
7895# Transform an extracted symbol line into symbol name and symbol address
7896lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d58dead8 7897lt_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
7898
7899# Handle CRLF in mingw tool chain
7900opt_cr=
7901case $build_os in
7902mingw*)
7903 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7904 ;;
7905esac
7906
7907# Try without a prefix underscore, then with it.
7908for ac_symprfx in "" "_"; do
7909
7910 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7911 symxfrm="\\1 $ac_symprfx\\2 \\2"
7912
7913 # Write the raw and C identifiers.
7914 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7915 # Fake it for dumpbin and say T for any non-static function
7916 # and D for any global variable.
7917 # Also find C++ and __fastcall symbols from MSVC++,
7918 # which start with @ or ?.
7919 lt_cv_sys_global_symbol_pipe="$AWK '"\
7920" {last_section=section; section=\$ 3};"\
7921" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7922" \$ 0!~/External *\|/{next};"\
7923" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7924" {if(hide[section]) next};"\
7925" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7926" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7927" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7928" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7929" ' prfx=^$ac_symprfx"
7930 else
7931 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7932 fi
7933
7934 # Check to see that the pipe works correctly.
7935 pipe_works=no
7936
7937 rm -f conftest*
7938 cat > conftest.$ac_ext <<_LT_EOF
7939#ifdef __cplusplus
7940extern "C" {
7941#endif
7942char nm_test_var;
7943void nm_test_func(void);
7944void nm_test_func(void){}
7945#ifdef __cplusplus
7946}
7947#endif
7948int main(){nm_test_var='a';nm_test_func();return(0);}
7949_LT_EOF
7950
5213506e 7951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
7952 (eval $ac_compile) 2>&5
7953 ac_status=$?
5213506e
RW
7954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7955 test $ac_status = 0; }; then
1cf3d07d
SE
7956 # Now try to grab the symbols.
7957 nlist=conftest.nm
43e02a8a
RW
7958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7959 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 7960 ac_status=$?
5213506e
RW
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
7963 # Try sorting and uniquifying the output.
7964 if sort "$nlist" | uniq > "$nlist"T; then
7965 mv -f "$nlist"T "$nlist"
7966 else
7967 rm -f "$nlist"T
7968 fi
7969
7970 # Make sure that we snagged all the symbols we need.
7971 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7972 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7973 cat <<_LT_EOF > conftest.$ac_ext
7974#ifdef __cplusplus
7975extern "C" {
7976#endif
7977
7978_LT_EOF
7979 # Now generate the symbol file.
7980 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7981
7982 cat <<_LT_EOF >> conftest.$ac_ext
7983
7984/* The mapping between symbol names and symbols. */
7985const struct {
7986 const char *name;
7987 void *address;
7988}
7989lt__PROGRAM__LTX_preloaded_symbols[] =
7990{
7991 { "@PROGRAM@", (void *) 0 },
7992_LT_EOF
7993 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7994 cat <<\_LT_EOF >> conftest.$ac_ext
7995 {0, (void *) 0}
7996};
7997
7998/* This works around a problem in FreeBSD linker */
7999#ifdef FREEBSD_WORKAROUND
8000static const void *lt_preloaded_setup() {
8001 return lt__PROGRAM__LTX_preloaded_symbols;
8002}
8003#endif
8004
8005#ifdef __cplusplus
8006}
8007#endif
8008_LT_EOF
8009 # Now try linking the two files.
8010 mv conftest.$ac_objext conftstm.$ac_objext
8011 lt_save_LIBS="$LIBS"
8012 lt_save_CFLAGS="$CFLAGS"
8013 LIBS="conftstm.$ac_objext"
8014 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 8015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
8016 (eval $ac_link) 2>&5
8017 ac_status=$?
5213506e
RW
8018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8019 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
8020 pipe_works=yes
8021 fi
8022 LIBS="$lt_save_LIBS"
8023 CFLAGS="$lt_save_CFLAGS"
8024 else
8025 echo "cannot find nm_test_func in $nlist" >&5
8026 fi
8027 else
8028 echo "cannot find nm_test_var in $nlist" >&5
8029 fi
8030 else
8031 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8032 fi
8033 else
8034 echo "$progname: failed program was:" >&5
8035 cat conftest.$ac_ext >&5
8036 fi
d58dead8 8037 rm -rf conftest* conftst*
1cf3d07d
SE
8038
8039 # Do not use the global_symbol_pipe unless it works.
8040 if test "$pipe_works" = yes; then
8041 break
8042 else
8043 lt_cv_sys_global_symbol_pipe=
8044 fi
8045done
8046
8047fi
8048
8049if test -z "$lt_cv_sys_global_symbol_pipe"; then
8050 lt_cv_sys_global_symbol_to_cdecl=
8051fi
8052if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8054$as_echo "failed" >&6; }
1cf3d07d 8055else
5213506e
RW
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8057$as_echo "ok" >&6; }
1cf3d07d
SE
8058fi
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
d58dead8
PG
8074
8075
8076
8077
8078
1cf3d07d
SE
8079
8080
5213506e
RW
8081# Check whether --enable-libtool-lock was given.
8082if test "${enable_libtool_lock+set}" = set; then :
8083 enableval=$enable_libtool_lock;
8084fi
1cf3d07d 8085
1cf3d07d 8086test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6de9cd9a 8087
96b8a615
AJ
8088# Some flags need to be propagated to the compiler or linker for good
8089# libtool support.
8090case $host in
1cf3d07d 8091ia64-*-hpux*)
96b8a615 8092 # Find out which ABI we are using.
1cf3d07d 8093 echo 'int i;' > conftest.$ac_ext
5213506e 8094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8095 (eval $ac_compile) 2>&5
6de9cd9a 8096 ac_status=$?
5213506e
RW
8097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8098 test $ac_status = 0; }; then
96b8a615 8099 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
8100 *ELF-32*)
8101 HPUX_IA64_MODE="32"
8102 ;;
8103 *ELF-64*)
8104 HPUX_IA64_MODE="64"
8105 ;;
96b8a615 8106 esac
96b8a615
AJ
8107 fi
8108 rm -rf conftest*
8109 ;;
1cf3d07d 8110*-*-irix6*)
96b8a615 8111 # Find out which ABI we are using.
43e02a8a 8112 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 8113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8114 (eval $ac_compile) 2>&5
6de9cd9a 8115 ac_status=$?
5213506e
RW
8116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8117 test $ac_status = 0; }; then
1cf3d07d
SE
8118 if test "$lt_cv_prog_gnu_ld" = yes; then
8119 case `/usr/bin/file conftest.$ac_objext` in
8120 *32-bit*)
8121 LD="${LD-ld} -melf32bsmip"
8122 ;;
8123 *N32*)
8124 LD="${LD-ld} -melf32bmipn32"
8125 ;;
8126 *64-bit*)
8127 LD="${LD-ld} -melf64bmip"
8128 ;;
8129 esac
8130 else
8131 case `/usr/bin/file conftest.$ac_objext` in
8132 *32-bit*)
8133 LD="${LD-ld} -32"
8134 ;;
8135 *N32*)
8136 LD="${LD-ld} -n32"
8137 ;;
8138 *64-bit*)
8139 LD="${LD-ld} -64"
8140 ;;
8141 esac
8142 fi
96b8a615
AJ
8143 fi
8144 rm -rf conftest*
8145 ;;
6de9cd9a 8146
3cbe17f7 8147x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d 8148s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
96b8a615
AJ
8149 # Find out which ABI we are using.
8150 echo 'int i;' > conftest.$ac_ext
5213506e 8151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8152 (eval $ac_compile) 2>&5
6de9cd9a 8153 ac_status=$?
5213506e
RW
8154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8155 test $ac_status = 0; }; then
1cf3d07d
SE
8156 case `/usr/bin/file conftest.o` in
8157 *32-bit*)
8158 case $host in
8159 x86_64-*kfreebsd*-gnu)
8160 LD="${LD-ld} -m elf_i386_fbsd"
8161 ;;
8162 x86_64-*linux*)
e6d5f8c9
L
8163 case `/usr/bin/file conftest.o` in
8164 *x86-64*)
8165 LD="${LD-ld} -m elf32_x86_64"
8166 ;;
8167 *)
8168 LD="${LD-ld} -m elf_i386"
8169 ;;
8170 esac
1cf3d07d 8171 ;;
3cbe17f7
AM
8172 powerpc64le-*linux*)
8173 LD="${LD-ld} -m elf32lppclinux"
8174 ;;
8175 powerpc64-*linux*)
1cf3d07d
SE
8176 LD="${LD-ld} -m elf32ppclinux"
8177 ;;
8178 s390x-*linux*)
8179 LD="${LD-ld} -m elf_s390"
8180 ;;
8181 sparc64-*linux*)
8182 LD="${LD-ld} -m elf32_sparc"
8183 ;;
8184 esac
8185 ;;
8186 *64-bit*)
8187 case $host in
8188 x86_64-*kfreebsd*-gnu)
8189 LD="${LD-ld} -m elf_x86_64_fbsd"
8190 ;;
8191 x86_64-*linux*)
8192 LD="${LD-ld} -m elf_x86_64"
8193 ;;
3cbe17f7
AM
8194 powerpcle-*linux*)
8195 LD="${LD-ld} -m elf64lppc"
8196 ;;
8197 powerpc-*linux*)
1cf3d07d
SE
8198 LD="${LD-ld} -m elf64ppc"
8199 ;;
8200 s390*-*linux*|s390*-*tpf*)
8201 LD="${LD-ld} -m elf64_s390"
8202 ;;
8203 sparc*-*linux*)
8204 LD="${LD-ld} -m elf64_sparc"
8205 ;;
8206 esac
8207 ;;
96b8a615 8208 esac
6de9cd9a 8209 fi
96b8a615
AJ
8210 rm -rf conftest*
8211 ;;
6de9cd9a 8212
96b8a615
AJ
8213*-*-sco3.2v5*)
8214 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8215 SAVE_CFLAGS="$CFLAGS"
8216 CFLAGS="$CFLAGS -belf"
5213506e
RW
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8218$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8219if test "${lt_cv_cc_needs_belf+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
6de9cd9a 8221else
1cf3d07d 8222 ac_ext=c
96b8a615
AJ
8223ac_cpp='$CPP $CPPFLAGS'
8224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 8227
f02d008e 8228 if test x$gcc_no_link = xyes; then
5213506e 8229 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 8230fi
5213506e 8231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 8232/* end confdefs.h. */
6de9cd9a
DN
8233
8234int
8235main ()
8236{
96b8a615 8237
6de9cd9a
DN
8238 ;
8239 return 0;
8240}
8241_ACEOF
5213506e 8242if ac_fn_c_try_link "$LINENO"; then :
96b8a615 8243 lt_cv_cc_needs_belf=yes
6de9cd9a 8244else
5213506e 8245 lt_cv_cc_needs_belf=no
6de9cd9a 8246fi
5213506e
RW
8247rm -f core conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
8249 ac_ext=c
8250ac_cpp='$CPP $CPPFLAGS'
8251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8253ac_compiler_gnu=$ac_cv_c_compiler_gnu
8254
6de9cd9a 8255fi
5213506e
RW
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8257$as_echo "$lt_cv_cc_needs_belf" >&6; }
96b8a615
AJ
8258 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8259 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8260 CFLAGS="$SAVE_CFLAGS"
8261 fi
8262 ;;
1cf3d07d
SE
8263sparc*-*solaris*)
8264 # Find out which ABI we are using.
8265 echo 'int i;' > conftest.$ac_ext
5213506e 8266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8267 (eval $ac_compile) 2>&5
8268 ac_status=$?
5213506e
RW
8269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8270 test $ac_status = 0; }; then
1cf3d07d
SE
8271 case `/usr/bin/file conftest.o` in
8272 *64-bit*)
8273 case $lt_cv_prog_gnu_ld in
8274 yes*) LD="${LD-ld} -m elf64_sparc" ;;
d58dead8
PG
8275 *)
8276 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8277 LD="${LD-ld} -64"
8278 fi
8279 ;;
1cf3d07d
SE
8280 esac
8281 ;;
8282 esac
8283 fi
8284 rm -rf conftest*
8285 ;;
96b8a615
AJ
8286esac
8287
1cf3d07d 8288need_locks="$enable_libtool_lock"
96b8a615 8289
d58dead8
PG
8290
8291 case $host_os in
8292 rhapsody* | darwin*)
8293 if test -n "$ac_tool_prefix"; then
8294 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8295set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297$as_echo_n "checking for $ac_word... " >&6; }
8298if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
d58dead8
PG
8300else
8301 if test -n "$DSYMUTIL"; then
8302 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8303else
8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
5213506e
RW
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 8311 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8313 break 2
8314 fi
8315done
5213506e
RW
8316 done
8317IFS=$as_save_IFS
d58dead8
PG
8318
8319fi
8320fi
8321DSYMUTIL=$ac_cv_prog_DSYMUTIL
8322if test -n "$DSYMUTIL"; then
5213506e
RW
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8324$as_echo "$DSYMUTIL" >&6; }
d58dead8 8325else
5213506e
RW
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327$as_echo "no" >&6; }
d58dead8
PG
8328fi
8329
5213506e 8330
d58dead8
PG
8331fi
8332if test -z "$ac_cv_prog_DSYMUTIL"; then
8333 ac_ct_DSYMUTIL=$DSYMUTIL
8334 # Extract the first word of "dsymutil", so it can be a program name with args.
8335set dummy dsymutil; ac_word=$2
5213506e
RW
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337$as_echo_n "checking for $ac_word... " >&6; }
8338if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8339 $as_echo_n "(cached) " >&6
d58dead8 8340else
21be0a5a
JB
8341 if test -n "$ac_ct_DSYMUTIL"; then
8342 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d58dead8
PG
8343else
8344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345for as_dir in $PATH
8346do
8347 IFS=$as_save_IFS
8348 test -z "$as_dir" && as_dir=.
5213506e
RW
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8351 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 8352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8353 break 2
8354 fi
8355done
5213506e
RW
8356 done
8357IFS=$as_save_IFS
d58dead8 8358
d58dead8
PG
8359fi
8360fi
21be0a5a
JB
8361ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8362if test -n "$ac_ct_DSYMUTIL"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8364$as_echo "$ac_ct_DSYMUTIL" >&6; }
d58dead8 8365else
5213506e
RW
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367$as_echo "no" >&6; }
d58dead8
PG
8368fi
8369
21be0a5a
JB
8370 if test "x$ac_ct_DSYMUTIL" = x; then
8371 DSYMUTIL=":"
5213506e
RW
8372 else
8373 case $cross_compiling:$ac_tool_warned in
8374yes:)
8375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8377ac_tool_warned=yes ;;
8378esac
21be0a5a 8379 DSYMUTIL=$ac_ct_DSYMUTIL
5213506e 8380 fi
d58dead8 8381else
21be0a5a 8382 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d58dead8
PG
8383fi
8384
8385 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8386 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8387set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8390if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5213506e 8391 $as_echo_n "(cached) " >&6
d58dead8 8392else
21be0a5a
JB
8393 if test -n "$NMEDIT"; then
8394 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d58dead8
PG
8395else
8396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397for as_dir in $PATH
8398do
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
5213506e
RW
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8403 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8405 break 2
8406 fi
8407done
5213506e
RW
8408 done
8409IFS=$as_save_IFS
d58dead8
PG
8410
8411fi
8412fi
21be0a5a
JB
8413NMEDIT=$ac_cv_prog_NMEDIT
8414if test -n "$NMEDIT"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8416$as_echo "$NMEDIT" >&6; }
d58dead8 8417else
5213506e
RW
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419$as_echo "no" >&6; }
d58dead8
PG
8420fi
8421
5213506e 8422
d58dead8 8423fi
21be0a5a
JB
8424if test -z "$ac_cv_prog_NMEDIT"; then
8425 ac_ct_NMEDIT=$NMEDIT
8426 # Extract the first word of "nmedit", so it can be a program name with args.
8427set dummy nmedit; ac_word=$2
5213506e
RW
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8430if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5213506e 8431 $as_echo_n "(cached) " >&6
d58dead8 8432else
21be0a5a
JB
8433 if test -n "$ac_ct_NMEDIT"; then
8434 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d58dead8
PG
8435else
8436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437for as_dir in $PATH
8438do
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
5213506e
RW
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8443 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8445 break 2
8446 fi
8447done
5213506e
RW
8448 done
8449IFS=$as_save_IFS
d58dead8 8450
d58dead8
PG
8451fi
8452fi
21be0a5a
JB
8453ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8454if test -n "$ac_ct_NMEDIT"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8456$as_echo "$ac_ct_NMEDIT" >&6; }
d58dead8 8457else
5213506e
RW
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459$as_echo "no" >&6; }
d58dead8
PG
8460fi
8461
21be0a5a
JB
8462 if test "x$ac_ct_NMEDIT" = x; then
8463 NMEDIT=":"
5213506e
RW
8464 else
8465 case $cross_compiling:$ac_tool_warned in
8466yes:)
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8469ac_tool_warned=yes ;;
8470esac
21be0a5a 8471 NMEDIT=$ac_ct_NMEDIT
5213506e 8472 fi
d58dead8 8473else
21be0a5a 8474 NMEDIT="$ac_cv_prog_NMEDIT"
d58dead8
PG
8475fi
8476
8477 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8478 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8479set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8482if test "${ac_cv_prog_LIPO+set}" = set; then :
5213506e 8483 $as_echo_n "(cached) " >&6
d58dead8 8484else
21be0a5a
JB
8485 if test -n "$LIPO"; then
8486 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d58dead8
PG
8487else
8488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489for as_dir in $PATH
8490do
8491 IFS=$as_save_IFS
8492 test -z "$as_dir" && as_dir=.
5213506e
RW
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8495 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8497 break 2
8498 fi
8499done
5213506e
RW
8500 done
8501IFS=$as_save_IFS
d58dead8
PG
8502
8503fi
8504fi
21be0a5a
JB
8505LIPO=$ac_cv_prog_LIPO
8506if test -n "$LIPO"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8508$as_echo "$LIPO" >&6; }
d58dead8 8509else
5213506e
RW
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511$as_echo "no" >&6; }
d58dead8
PG
8512fi
8513
5213506e 8514
d58dead8 8515fi
21be0a5a
JB
8516if test -z "$ac_cv_prog_LIPO"; then
8517 ac_ct_LIPO=$LIPO
8518 # Extract the first word of "lipo", so it can be a program name with args.
8519set dummy lipo; ac_word=$2
5213506e
RW
8520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8522if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5213506e 8523 $as_echo_n "(cached) " >&6
d58dead8 8524else
21be0a5a
JB
8525 if test -n "$ac_ct_LIPO"; then
8526 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d58dead8
PG
8527else
8528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529for as_dir in $PATH
8530do
8531 IFS=$as_save_IFS
8532 test -z "$as_dir" && as_dir=.
5213506e
RW
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8535 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8537 break 2
8538 fi
8539done
5213506e
RW
8540 done
8541IFS=$as_save_IFS
d58dead8 8542
d58dead8
PG
8543fi
8544fi
21be0a5a
JB
8545ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8546if test -n "$ac_ct_LIPO"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8548$as_echo "$ac_ct_LIPO" >&6; }
d58dead8 8549else
5213506e
RW
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551$as_echo "no" >&6; }
d58dead8
PG
8552fi
8553
21be0a5a
JB
8554 if test "x$ac_ct_LIPO" = x; then
8555 LIPO=":"
5213506e
RW
8556 else
8557 case $cross_compiling:$ac_tool_warned in
8558yes:)
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8561ac_tool_warned=yes ;;
8562esac
21be0a5a 8563 LIPO=$ac_ct_LIPO
5213506e 8564 fi
d58dead8 8565else
21be0a5a 8566 LIPO="$ac_cv_prog_LIPO"
d58dead8
PG
8567fi
8568
21be0a5a
JB
8569 if test -n "$ac_tool_prefix"; then
8570 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8571set dummy ${ac_tool_prefix}otool; ac_word=$2
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573$as_echo_n "checking for $ac_word... " >&6; }
8574if test "${ac_cv_prog_OTOOL+set}" = set; then :
5213506e 8575 $as_echo_n "(cached) " >&6
d58dead8 8576else
21be0a5a
JB
8577 if test -n "$OTOOL"; then
8578 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
43e02a8a 8579else
21be0a5a
JB
8580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581for as_dir in $PATH
8582do
8583 IFS=$as_save_IFS
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8587 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8589 break 2
8590 fi
8591done
8592 done
8593IFS=$as_save_IFS
43e02a8a
RW
8594
8595fi
21be0a5a
JB
8596fi
8597OTOOL=$ac_cv_prog_OTOOL
8598if test -n "$OTOOL"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8600$as_echo "$OTOOL" >&6; }
8601else
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603$as_echo "no" >&6; }
8604fi
8605
d58dead8 8606
1cf3d07d 8607fi
21be0a5a
JB
8608if test -z "$ac_cv_prog_OTOOL"; then
8609 ac_ct_OTOOL=$OTOOL
8610 # Extract the first word of "otool", so it can be a program name with args.
8611set dummy otool; ac_word=$2
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613$as_echo_n "checking for $ac_word... " >&6; }
8614if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5213506e 8615 $as_echo_n "(cached) " >&6
1cf3d07d 8616else
21be0a5a
JB
8617 if test -n "$ac_ct_OTOOL"; then
8618 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8619else
8620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621for as_dir in $PATH
1cf3d07d 8622do
21be0a5a
JB
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_prog_ac_ct_OTOOL="otool"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 break 2
8630 fi
8631done
8632 done
8633IFS=$as_save_IFS
6de9cd9a 8634
21be0a5a
JB
8635fi
8636fi
8637ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8638if test -n "$ac_ct_OTOOL"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8640$as_echo "$ac_ct_OTOOL" >&6; }
5213506e 8641else
21be0a5a
JB
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643$as_echo "no" >&6; }
1cf3d07d 8644fi
96b8a615 8645
21be0a5a
JB
8646 if test "x$ac_ct_OTOOL" = x; then
8647 OTOOL=":"
8648 else
8649 case $cross_compiling:$ac_tool_warned in
8650yes:)
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8653ac_tool_warned=yes ;;
8654esac
8655 OTOOL=$ac_ct_OTOOL
8656 fi
1cf3d07d 8657else
21be0a5a 8658 OTOOL="$ac_cv_prog_OTOOL"
1cf3d07d 8659fi
6de9cd9a 8660
21be0a5a
JB
8661 if test -n "$ac_tool_prefix"; then
8662 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8663set dummy ${ac_tool_prefix}otool64; ac_word=$2
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665$as_echo_n "checking for $ac_word... " >&6; }
8666if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8668else
8669 if test -n "$OTOOL64"; then
8670 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8671else
8672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673for as_dir in $PATH
8674do
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8679 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 break 2
8682 fi
1cf3d07d 8683done
21be0a5a
JB
8684 done
8685IFS=$as_save_IFS
8686
8687fi
8688fi
8689OTOOL64=$ac_cv_prog_OTOOL64
8690if test -n "$OTOOL64"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8692$as_echo "$OTOOL64" >&6; }
8693else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695$as_echo "no" >&6; }
1cf3d07d 8696fi
6de9cd9a 8697
96b8a615 8698
1cf3d07d 8699fi
21be0a5a
JB
8700if test -z "$ac_cv_prog_OTOOL64"; then
8701 ac_ct_OTOOL64=$OTOOL64
8702 # Extract the first word of "otool64", so it can be a program name with args.
8703set dummy otool64; ac_word=$2
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8705$as_echo_n "checking for $ac_word... " >&6; }
8706if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
96b8a615 8708else
21be0a5a
JB
8709 if test -n "$ac_ct_OTOOL64"; then
8710 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8711else
8712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713for as_dir in $PATH
96b8a615 8714do
21be0a5a
JB
8715 IFS=$as_save_IFS
8716 test -z "$as_dir" && as_dir=.
8717 for ac_exec_ext in '' $ac_executable_extensions; do
8718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8719 ac_cv_prog_ac_ct_OTOOL64="otool64"
8720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 break 2
8722 fi
8723done
8724 done
8725IFS=$as_save_IFS
96b8a615 8726
21be0a5a
JB
8727fi
8728fi
8729ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8730if test -n "$ac_ct_OTOOL64"; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8732$as_echo "$ac_ct_OTOOL64" >&6; }
5213506e 8733else
21be0a5a
JB
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735$as_echo "no" >&6; }
96b8a615
AJ
8736fi
8737
21be0a5a
JB
8738 if test "x$ac_ct_OTOOL64" = x; then
8739 OTOOL64=":"
8740 else
8741 case $cross_compiling:$ac_tool_warned in
8742yes:)
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8745ac_tool_warned=yes ;;
8746esac
8747 OTOOL64=$ac_ct_OTOOL64
8748 fi
6de9cd9a 8749else
21be0a5a 8750 OTOOL64="$ac_cv_prog_OTOOL64"
6de9cd9a 8751fi
6de9cd9a 8752
5213506e 8753
1cf3d07d 8754
1cf3d07d
SE
8755
8756
6de9cd9a 8757
1cf3d07d 8758
6de9cd9a 8759
1cf3d07d 8760
5213506e 8761
6de9cd9a 8762
e87045f3 8763
15e92535 8764
5213506e 8765
15e92535 8766
15e92535 8767
21be0a5a
JB
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8780$as_echo_n "checking for -single_module linker flag... " >&6; }
8781if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
1cf3d07d 8783else
21be0a5a
JB
8784 lt_cv_apple_cc_single_mod=no
8785 if test -z "${LT_MULTI_MODULE}"; then
8786 # By default we will add the -single_module flag. You can override
8787 # by either setting the environment variable LT_MULTI_MODULE
8788 # non-empty at configure time, or by adding -multi_module to the
8789 # link flags.
8790 rm -rf libconftest.dylib*
8791 echo "int foo(void){return 1;}" > conftest.c
8792 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8793-dynamiclib -Wl,-single_module conftest.c" >&5
8794 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8795 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8796 _lt_result=$?
8797 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8798 lt_cv_apple_cc_single_mod=yes
8799 else
8800 cat conftest.err >&5
8801 fi
8802 rm -rf libconftest.dylib*
8803 rm -f conftest.*
8804 fi
8805fi
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8807$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8809$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8810if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8811 $as_echo_n "(cached) " >&6
8812else
8813 lt_cv_ld_exported_symbols_list=no
8814 save_LDFLAGS=$LDFLAGS
8815 echo "_main" > conftest.sym
8816 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8817 if test x$gcc_no_link = xyes; then
8818 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8819fi
8820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 8821/* end confdefs.h. */
15e92535 8822
1cf3d07d
SE
8823int
8824main ()
8825{
21be0a5a
JB
8826
8827 ;
5213506e 8828 return 0;
1cf3d07d 8829}
15e92535 8830_ACEOF
21be0a5a
JB
8831if ac_fn_c_try_link "$LINENO"; then :
8832 lt_cv_ld_exported_symbols_list=yes
5213506e 8833else
21be0a5a 8834 lt_cv_ld_exported_symbols_list=no
1cf3d07d 8835fi
21be0a5a
JB
8836rm -f core conftest.err conftest.$ac_objext \
8837 conftest$ac_exeext conftest.$ac_ext
8838 LDFLAGS="$save_LDFLAGS"
15e92535
FXC
8839
8840fi
21be0a5a
JB
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8842$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8844$as_echo_n "checking for -force_load linker flag... " >&6; }
8845if test "${lt_cv_ld_force_load+set}" = set; then :
8846 $as_echo_n "(cached) " >&6
8847else
8848 lt_cv_ld_force_load=no
8849 cat > conftest.c << _LT_EOF
8850int forced_loaded() { return 2;}
8851_LT_EOF
8852 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8853 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8854 echo "$AR cru libconftest.a conftest.o" >&5
8855 $AR cru libconftest.a conftest.o 2>&5
8856 cat > conftest.c << _LT_EOF
8857int main() { return 0;}
8858_LT_EOF
8859 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8860 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8861 _lt_result=$?
8862 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8863 lt_cv_ld_force_load=yes
8864 else
8865 cat conftest.err >&5
8866 fi
8867 rm -f conftest.err libconftest.a conftest conftest.c
8868 rm -rf conftest.dSYM
1cf3d07d
SE
8869
8870fi
21be0a5a
JB
8871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8872$as_echo "$lt_cv_ld_force_load" >&6; }
8873 case $host_os in
8874 rhapsody* | darwin1.[012])
8875 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8876 darwin1.*)
8877 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8878 darwin*) # darwin 5.x on
8879 # if running on 10.5 or later, the deployment target defaults
8880 # to the OS version, if on x86, and 10.4, the deployment
8881 # target defaults to 10.4. Don't you love it?
8882 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8883 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8884 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 8885 10.[012][,.]*)
21be0a5a
JB
8886 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8887 10.*)
8888 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8889 esac
8890 ;;
8891 esac
8892 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8893 _lt_dar_single_mod='$single_module'
8894 fi
8895 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8896 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8897 else
8898 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8899 fi
8900 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8901 _lt_dsymutil='~$DSYMUTIL $lib || :'
8902 else
8903 _lt_dsymutil=
8904 fi
8905 ;;
8906 esac
1cf3d07d 8907
1cf3d07d 8908for ac_header in dlfcn.h
5213506e
RW
8909do :
8910 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8911"
8912if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
1cf3d07d 8913 cat >>confdefs.h <<_ACEOF
5213506e 8914#define HAVE_DLFCN_H 1
9cdc381b 8915_ACEOF
9cdc381b 8916
1cf3d07d
SE
8917fi
8918
8919done
8920
8921
8922
43e02a8a
RW
8923
8924
d58dead8
PG
8925# Set options
8926
8927
8928
8929
8930 enable_win32_dll=no
8931
8932
5213506e
RW
8933 # Check whether --enable-shared was given.
8934if test "${enable_shared+set}" = set; then :
8935 enableval=$enable_shared; p=${PACKAGE-default}
d58dead8
PG
8936 case $enableval in
8937 yes) enable_shared=yes ;;
8938 no) enable_shared=no ;;
8939 *)
8940 enable_shared=no
8941 # Look at the argument we got. We use all the common list separators.
8942 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8943 for pkg in $enableval; do
8944 IFS="$lt_save_ifs"
8945 if test "X$pkg" = "X$p"; then
8946 enable_shared=yes
8947 fi
8948 done
8949 IFS="$lt_save_ifs"
8950 ;;
8951 esac
8952else
8953 enable_shared=yes
5213506e
RW
8954fi
8955
d58dead8
PG
8956
8957
8958
8959
8960
8961
8962
8963
5213506e
RW
8964 # Check whether --enable-static was given.
8965if test "${enable_static+set}" = set; then :
8966 enableval=$enable_static; p=${PACKAGE-default}
d58dead8
PG
8967 case $enableval in
8968 yes) enable_static=yes ;;
8969 no) enable_static=no ;;
8970 *)
8971 enable_static=no
8972 # Look at the argument we got. We use all the common list separators.
8973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8974 for pkg in $enableval; do
8975 IFS="$lt_save_ifs"
8976 if test "X$pkg" = "X$p"; then
8977 enable_static=yes
8978 fi
8979 done
8980 IFS="$lt_save_ifs"
8981 ;;
8982 esac
8983else
8984 enable_static=yes
5213506e
RW
8985fi
8986
d58dead8
PG
8987
8988
8989
8990
8991
8992
8993
8994
8995
5213506e
RW
8996# Check whether --with-pic was given.
8997if test "${with_pic+set}" = set; then :
8998 withval=$with_pic; pic_mode="$withval"
d58dead8
PG
8999else
9000 pic_mode=default
5213506e
RW
9001fi
9002
d58dead8
PG
9003
9004test -z "$pic_mode" && pic_mode=default
9005
9006
9007
9008
9009
9010
9011
5213506e
RW
9012 # Check whether --enable-fast-install was given.
9013if test "${enable_fast_install+set}" = set; then :
9014 enableval=$enable_fast_install; p=${PACKAGE-default}
d58dead8
PG
9015 case $enableval in
9016 yes) enable_fast_install=yes ;;
9017 no) enable_fast_install=no ;;
9018 *)
9019 enable_fast_install=no
9020 # Look at the argument we got. We use all the common list separators.
9021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9022 for pkg in $enableval; do
9023 IFS="$lt_save_ifs"
9024 if test "X$pkg" = "X$p"; then
9025 enable_fast_install=yes
9026 fi
9027 done
9028 IFS="$lt_save_ifs"
9029 ;;
9030 esac
9031else
9032 enable_fast_install=yes
5213506e
RW
9033fi
9034
d58dead8
PG
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
1cf3d07d
SE
9045# This can be used to rebuild libtool when needed
9046LIBTOOL_DEPS="$ltmain"
9047
9048# Always use our own libtool.
9049LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
43e02a8a 9073
1cf3d07d
SE
9074
9075
9076test -z "$LN_S" && LN_S="ln -s"
9077
9078
9079
9080
9081
9cdc381b 9082
1cf3d07d
SE
9083
9084
9085
9086
9087
9088
9089
9090
9091if test -n "${ZSH_VERSION+set}" ; then
9092 setopt NO_GLOB_SUBST
9cdc381b 9093fi
9cdc381b 9094
5213506e
RW
9095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9096$as_echo_n "checking for objdir... " >&6; }
9097if test "${lt_cv_objdir+set}" = set; then :
9098 $as_echo_n "(cached) " >&6
9cdc381b 9099else
1cf3d07d
SE
9100 rm -f .libs 2>/dev/null
9101mkdir .libs 2>/dev/null
9102if test -d .libs; then
9103 lt_cv_objdir=.libs
9104else
9105 # MS-DOS does not allow filenames that begin with a dot.
9106 lt_cv_objdir=_libs
9cdc381b 9107fi
1cf3d07d 9108rmdir .libs 2>/dev/null
9cdc381b 9109fi
5213506e
RW
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9111$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
9112objdir=$lt_cv_objdir
9113
9114
9115
9116
9cdc381b
BD
9117
9118cat >>confdefs.h <<_ACEOF
1cf3d07d 9119#define LT_OBJDIR "$lt_cv_objdir/"
9cdc381b
BD
9120_ACEOF
9121
1cf3d07d
SE
9122
9123
9124
1cf3d07d
SE
9125case $host_os in
9126aix3*)
9127 # AIX sometimes has problems with the GCC collect2 program. For some
9128 # reason, if we set the COLLECT_NAMES environment variable, the problems
9129 # vanish in a puff of smoke.
9130 if test "X${COLLECT_NAMES+set}" != Xset; then
9131 COLLECT_NAMES=
9132 export COLLECT_NAMES
9133 fi
9134 ;;
9135esac
9136
1cf3d07d
SE
9137# Global variables:
9138ofile=libtool
9139can_build_shared=yes
9140
9141# All known linkers require a `.a' archive for static linking (except MSVC,
9142# which needs '.lib').
9143libext=a
9144
9145with_gnu_ld="$lt_cv_prog_gnu_ld"
9146
9147old_CC="$CC"
9148old_CFLAGS="$CFLAGS"
9149
9150# Set sane defaults for various variables
9151test -z "$CC" && CC=cc
9152test -z "$LTCC" && LTCC=$CC
9153test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9154test -z "$LD" && LD=ld
9155test -z "$ac_objext" && ac_objext=o
9156
9157for cc_temp in $compiler""; do
9158 case $cc_temp in
9159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9161 \-*) ;;
9162 *) break;;
9163 esac
9164done
43e02a8a 9165cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
9166
9167
9168# Only perform the check for file, if the check method requires it
9169test -z "$MAGIC_CMD" && MAGIC_CMD=file
9170case $deplibs_check_method in
9171file_magic*)
9172 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9174$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9175if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9176 $as_echo_n "(cached) " >&6
9cdc381b 9177else
1cf3d07d
SE
9178 case $MAGIC_CMD in
9179[\\/*] | ?:[\\/]*)
9180 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9181 ;;
9182*)
9183 lt_save_MAGIC_CMD="$MAGIC_CMD"
9184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9186 for ac_dir in $ac_dummy; do
9187 IFS="$lt_save_ifs"
9188 test -z "$ac_dir" && ac_dir=.
9189 if test -f $ac_dir/${ac_tool_prefix}file; then
9190 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9191 if test -n "$file_magic_test_file"; then
9192 case $deplibs_check_method in
9193 "file_magic "*)
9194 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9197 $EGREP "$file_magic_regex" > /dev/null; then
9198 :
9199 else
9200 cat <<_LT_EOF 1>&2
9cdc381b 9201
1cf3d07d
SE
9202*** Warning: the command libtool uses to detect shared libraries,
9203*** $file_magic_cmd, produces output that libtool cannot recognize.
9204*** The result is that libtool may fail to recognize shared libraries
9205*** as such. This will affect the creation of libtool libraries that
9206*** depend on shared libraries, but programs linked with such libtool
9207*** libraries will work regardless of this problem. Nevertheless, you
9208*** may want to report the problem to your system manager and/or to
9209*** bug-libtool@gnu.org
9210
9211_LT_EOF
9212 fi ;;
9213 esac
9214 fi
9215 break
9216 fi
9217 done
9218 IFS="$lt_save_ifs"
9219 MAGIC_CMD="$lt_save_MAGIC_CMD"
9220 ;;
9221esac
9222fi
9223
9224MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9225if test -n "$MAGIC_CMD"; then
5213506e
RW
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9227$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9228else
5213506e
RW
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230$as_echo "no" >&6; }
1cf3d07d
SE
9231fi
9232
9233
9234
9235
9236
9237if test -z "$lt_cv_path_MAGIC_CMD"; then
9238 if test -n "$ac_tool_prefix"; then
5213506e
RW
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9240$as_echo_n "checking for file... " >&6; }
9241if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9242 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9243else
9244 case $MAGIC_CMD in
9245[\\/*] | ?:[\\/]*)
9246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9247 ;;
9248*)
9249 lt_save_MAGIC_CMD="$MAGIC_CMD"
9250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9252 for ac_dir in $ac_dummy; do
9253 IFS="$lt_save_ifs"
9254 test -z "$ac_dir" && ac_dir=.
9255 if test -f $ac_dir/file; then
9256 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9257 if test -n "$file_magic_test_file"; then
9258 case $deplibs_check_method in
9259 "file_magic "*)
9260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9263 $EGREP "$file_magic_regex" > /dev/null; then
9264 :
9265 else
9266 cat <<_LT_EOF 1>&2
9267
9268*** Warning: the command libtool uses to detect shared libraries,
9269*** $file_magic_cmd, produces output that libtool cannot recognize.
9270*** The result is that libtool may fail to recognize shared libraries
9271*** as such. This will affect the creation of libtool libraries that
9272*** depend on shared libraries, but programs linked with such libtool
9273*** libraries will work regardless of this problem. Nevertheless, you
9274*** may want to report the problem to your system manager and/or to
9275*** bug-libtool@gnu.org
9276
9277_LT_EOF
9278 fi ;;
9279 esac
9280 fi
9281 break
9282 fi
9283 done
9284 IFS="$lt_save_ifs"
9285 MAGIC_CMD="$lt_save_MAGIC_CMD"
9286 ;;
9287esac
9288fi
9289
9290MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9291if test -n "$MAGIC_CMD"; then
5213506e
RW
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9293$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9294else
5213506e
RW
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296$as_echo "no" >&6; }
1cf3d07d
SE
9297fi
9298
9299
9300 else
9301 MAGIC_CMD=:
9302 fi
9303fi
9304
9305 fi
9306 ;;
9307esac
9308
9309# Use C for the default configuration in the libtool script
9310
9311lt_save_CC="$CC"
9312ac_ext=c
9313ac_cpp='$CPP $CPPFLAGS'
9314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9316ac_compiler_gnu=$ac_cv_c_compiler_gnu
9317
9318
9319# Source file extension for C test sources.
9320ac_ext=c
9321
9322# Object file extension for compiled C test sources.
9323objext=o
9324objext=$objext
9325
9326# Code to be used in simple compile tests
9327lt_simple_compile_test_code="int some_variable = 0;"
9328
9329# Code to be used in simple link tests
9330lt_simple_link_test_code='int main(){return(0);}'
9331
9332
9333
9334
9335
9336
9337
9338# If no C compiler was specified, use CC.
9339LTCC=${LTCC-"$CC"}
9340
9341# If no C compiler flags were specified, use CFLAGS.
9342LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9343
9344# Allow CC to be a program name with arguments.
9345compiler=$CC
9346
9347# Save the default compiler, since it gets overwritten when the other
9348# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9349compiler_DEFAULT=$CC
9350
9351# save warnings/boilerplate of simple test code
9352ac_outfile=conftest.$ac_objext
9353echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9354eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9355_lt_compiler_boilerplate=`cat conftest.err`
9356$RM conftest*
9357
9358ac_outfile=conftest.$ac_objext
9359echo "$lt_simple_link_test_code" >conftest.$ac_ext
9360eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9361_lt_linker_boilerplate=`cat conftest.err`
d58dead8 9362$RM -r conftest*
1cf3d07d
SE
9363
9364
9365## CAVEAT EMPTOR:
9366## There is no encapsulation within the following macros, do not change
9367## the running order or otherwise move them around unless you know exactly
9368## what you are doing...
9369if test -n "$compiler"; then
9370
9371lt_prog_compiler_no_builtin_flag=
9372
9373if test "$GCC" = yes; then
43e02a8a
RW
9374 case $cc_basename in
9375 nvcc*)
9376 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9377 *)
9378 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9379 esac
1cf3d07d 9380
5213506e
RW
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9382$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9383if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9385else
9386 lt_cv_prog_compiler_rtti_exceptions=no
9387 ac_outfile=conftest.$ac_objext
9388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9389 lt_compiler_flag="-fno-rtti -fno-exceptions"
9390 # Insert the option either (1) after the last *FLAGS variable, or
9391 # (2) before a word containing "conftest.", or (3) at the end.
9392 # Note that $ac_compile itself does not contain backslashes and begins
9393 # with a dollar sign (not a hyphen), so the echo should work correctly.
9394 # The option is referenced via a variable to avoid confusing sed.
9395 lt_compile=`echo "$ac_compile" | $SED \
9396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9398 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9400 (eval "$lt_compile" 2>conftest.err)
9401 ac_status=$?
9402 cat conftest.err >&5
43e02a8a 9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9404 if (exit $ac_status) && test -s "$ac_outfile"; then
9405 # The compiler can only warn and ignore the option if not recognized
9406 # So say no if there are warnings other than the usual output.
43e02a8a 9407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9409 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9410 lt_cv_prog_compiler_rtti_exceptions=yes
9411 fi
9412 fi
9413 $RM conftest*
9414
9415fi
5213506e
RW
9416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9417$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
9418
9419if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9420 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9421else
9422 :
9423fi
9424
9425fi
9426
9427
9428
9429
9430
9431
9432 lt_prog_compiler_wl=
9433lt_prog_compiler_pic=
9434lt_prog_compiler_static=
9435
5213506e
RW
9436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9437$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
9438
9439 if test "$GCC" = yes; then
9440 lt_prog_compiler_wl='-Wl,'
9441 lt_prog_compiler_static='-static'
9442
9443 case $host_os in
9444 aix*)
9445 # All AIX code is PIC.
9446 if test "$host_cpu" = ia64; then
9447 # AIX 5 now supports IA64 processor
9448 lt_prog_compiler_static='-Bstatic'
9449 fi
bad8a4a7 9450 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
9451 ;;
9452
9453 amigaos*)
d58dead8
PG
9454 case $host_cpu in
9455 powerpc)
9456 # see comment about AmigaOS4 .so support
9457 lt_prog_compiler_pic='-fPIC'
9458 ;;
9459 m68k)
9460 # FIXME: we need at least 68020 code to build shared libraries, but
9461 # adding the `-m68020' flag to GCC prevents building anything better,
9462 # like `-m68040'.
9463 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9464 ;;
9465 esac
1cf3d07d
SE
9466 ;;
9467
9468 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9469 # PIC is the default for these OSes.
9470 ;;
9471
d58dead8 9472 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9473 # This hack is so that the source file can tell whether it is being
9474 # built for inclusion in a dll (and should export symbols for example).
9475 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9476 # (--disable-auto-import) libraries
9477 lt_prog_compiler_pic='-DDLL_EXPORT'
9478 ;;
9479
9480 darwin* | rhapsody*)
9481 # PIC is the default on this platform
9482 # Common symbols not allowed in MH_DYLIB files
9483 lt_prog_compiler_pic='-fno-common'
9484 ;;
9485
43e02a8a
RW
9486 haiku*)
9487 # PIC is the default for Haiku.
9488 # The "-static" flag exists, but is broken.
9489 lt_prog_compiler_static=
9490 ;;
9491
1cf3d07d 9492 hpux*)
d58dead8
PG
9493 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9494 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9495 # sets the default TLS model and affects inlining.
1cf3d07d 9496 case $host_cpu in
d58dead8 9497 hppa*64*)
1cf3d07d
SE
9498 # +Z the default
9499 ;;
9500 *)
9501 lt_prog_compiler_pic='-fPIC'
9502 ;;
9503 esac
9504 ;;
9505
9506 interix[3-9]*)
9507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9508 # Instead, we relocate shared libraries at runtime.
9509 ;;
9510
9511 msdosdjgpp*)
9512 # Just because we use GCC doesn't mean we suddenly get shared libraries
9513 # on systems that don't support them.
9514 lt_prog_compiler_can_build_shared=no
9515 enable_shared=no
9516 ;;
9517
9518 *nto* | *qnx*)
9519 # QNX uses GNU C++, but need to define -shared option too, otherwise
9520 # it will coredump.
9521 lt_prog_compiler_pic='-fPIC -shared'
9522 ;;
9523
9524 sysv4*MP*)
9525 if test -d /usr/nec; then
9526 lt_prog_compiler_pic=-Kconform_pic
9527 fi
9528 ;;
9529
9530 *)
9531 lt_prog_compiler_pic='-fPIC'
9532 ;;
9533 esac
43e02a8a
RW
9534
9535 case $cc_basename in
9536 nvcc*) # Cuda Compiler Driver 2.2
9537 lt_prog_compiler_wl='-Xlinker '
9538 lt_prog_compiler_pic='-Xcompiler -fPIC'
9539 ;;
9540 esac
1cf3d07d
SE
9541 else
9542 # PORTME Check for flag to pass linker flags through the system compiler.
9543 case $host_os in
9544 aix*)
9545 lt_prog_compiler_wl='-Wl,'
9546 if test "$host_cpu" = ia64; then
9547 # AIX 5 now supports IA64 processor
9548 lt_prog_compiler_static='-Bstatic'
9549 else
9550 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9551 fi
9552 ;;
1cf3d07d 9553
d58dead8 9554 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9555 # This hack is so that the source file can tell whether it is being
9556 # built for inclusion in a dll (and should export symbols for example).
9557 lt_prog_compiler_pic='-DDLL_EXPORT'
9558 ;;
9559
9560 hpux9* | hpux10* | hpux11*)
9561 lt_prog_compiler_wl='-Wl,'
9562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9563 # not for PA HP-UX.
9564 case $host_cpu in
9565 hppa*64*|ia64*)
9566 # +Z the default
9567 ;;
9568 *)
9569 lt_prog_compiler_pic='+Z'
9570 ;;
9571 esac
9572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9573 lt_prog_compiler_static='${wl}-a ${wl}archive'
9574 ;;
9575
9576 irix5* | irix6* | nonstopux*)
9577 lt_prog_compiler_wl='-Wl,'
9578 # PIC (with -KPIC) is the default.
9579 lt_prog_compiler_static='-non_shared'
9580 ;;
9581
7a9d3fe8 9582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 9583 case $cc_basename in
d58dead8
PG
9584 # old Intel for x86_64 which still supported -KPIC.
9585 ecc*)
1cf3d07d
SE
9586 lt_prog_compiler_wl='-Wl,'
9587 lt_prog_compiler_pic='-KPIC'
9588 lt_prog_compiler_static='-static'
9589 ;;
d58dead8
PG
9590 # icc used to be incompatible with GCC.
9591 # ICC 10 doesn't accept -KPIC any more.
9592 icc* | ifort*)
9593 lt_prog_compiler_wl='-Wl,'
9594 lt_prog_compiler_pic='-fPIC'
9595 lt_prog_compiler_static='-static'
9596 ;;
9597 # Lahey Fortran 8.1.
9598 lf95*)
9599 lt_prog_compiler_wl='-Wl,'
9600 lt_prog_compiler_pic='--shared'
9601 lt_prog_compiler_static='--static'
9602 ;;
43e02a8a 9603 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
9604 # Portland Group compilers (*not* the Pentium gcc compiler,
9605 # which looks to be a dead project)
9606 lt_prog_compiler_wl='-Wl,'
9607 lt_prog_compiler_pic='-fpic'
9608 lt_prog_compiler_static='-Bstatic'
9609 ;;
9610 ccc*)
9611 lt_prog_compiler_wl='-Wl,'
9612 # All Alpha code is PIC.
9613 lt_prog_compiler_static='-non_shared'
9614 ;;
43e02a8a
RW
9615 xl* | bgxl* | bgf* | mpixl*)
9616 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
9617 lt_prog_compiler_wl='-Wl,'
9618 lt_prog_compiler_pic='-qpic'
9619 lt_prog_compiler_static='-qstaticlink'
9620 ;;
1cf3d07d
SE
9621 *)
9622 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
9623 *Sun\ F* | *Sun*Fortran*)
9624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
9625 lt_prog_compiler_pic='-KPIC'
9626 lt_prog_compiler_static='-Bstatic'
43e02a8a 9627 lt_prog_compiler_wl=''
1cf3d07d 9628 ;;
43e02a8a
RW
9629 *Sun\ C*)
9630 # Sun C 5.9
1cf3d07d
SE
9631 lt_prog_compiler_pic='-KPIC'
9632 lt_prog_compiler_static='-Bstatic'
43e02a8a 9633 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
9634 ;;
9635 esac
9636 ;;
9637 esac
9638 ;;
9639
9640 newsos6)
9641 lt_prog_compiler_pic='-KPIC'
9642 lt_prog_compiler_static='-Bstatic'
9643 ;;
9644
9645 *nto* | *qnx*)
9646 # QNX uses GNU C++, but need to define -shared option too, otherwise
9647 # it will coredump.
9648 lt_prog_compiler_pic='-fPIC -shared'
9649 ;;
9650
9651 osf3* | osf4* | osf5*)
9652 lt_prog_compiler_wl='-Wl,'
9653 # All OSF/1 code is PIC.
9654 lt_prog_compiler_static='-non_shared'
9655 ;;
9656
9657 rdos*)
9658 lt_prog_compiler_static='-non_shared'
9659 ;;
9660
9661 solaris*)
9662 lt_prog_compiler_pic='-KPIC'
9663 lt_prog_compiler_static='-Bstatic'
9664 case $cc_basename in
9665 f77* | f90* | f95*)
9666 lt_prog_compiler_wl='-Qoption ld ';;
9667 *)
9668 lt_prog_compiler_wl='-Wl,';;
9669 esac
9670 ;;
9671
9672 sunos4*)
9673 lt_prog_compiler_wl='-Qoption ld '
9674 lt_prog_compiler_pic='-PIC'
9675 lt_prog_compiler_static='-Bstatic'
9676 ;;
9677
9678 sysv4 | sysv4.2uw2* | sysv4.3*)
9679 lt_prog_compiler_wl='-Wl,'
9680 lt_prog_compiler_pic='-KPIC'
9681 lt_prog_compiler_static='-Bstatic'
9682 ;;
9683
9684 sysv4*MP*)
9685 if test -d /usr/nec ;then
9686 lt_prog_compiler_pic='-Kconform_pic'
9687 lt_prog_compiler_static='-Bstatic'
9688 fi
9689 ;;
9690
9691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9692 lt_prog_compiler_wl='-Wl,'
9693 lt_prog_compiler_pic='-KPIC'
9694 lt_prog_compiler_static='-Bstatic'
9695 ;;
9696
9697 unicos*)
9698 lt_prog_compiler_wl='-Wl,'
9699 lt_prog_compiler_can_build_shared=no
9700 ;;
9701
9702 uts4*)
9703 lt_prog_compiler_pic='-pic'
9704 lt_prog_compiler_static='-Bstatic'
9705 ;;
9706
9707 *)
9708 lt_prog_compiler_can_build_shared=no
9709 ;;
9710 esac
9711 fi
9712
9713case $host_os in
9714 # For platforms which do not support PIC, -DPIC is meaningless:
9715 *djgpp*)
9716 lt_prog_compiler_pic=
9717 ;;
9718 *)
9719 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9720 ;;
9721esac
5213506e
RW
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9723$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
9724
9725
9726
9727
9728
9729
9730#
9731# Check to make sure the PIC flag actually works.
9732#
9733if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9735$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9736if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9737 $as_echo_n "(cached) " >&6
1cf3d07d 9738else
d58dead8 9739 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
9740 ac_outfile=conftest.$ac_objext
9741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9742 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9743 # Insert the option either (1) after the last *FLAGS variable, or
9744 # (2) before a word containing "conftest.", or (3) at the end.
9745 # Note that $ac_compile itself does not contain backslashes and begins
9746 # with a dollar sign (not a hyphen), so the echo should work correctly.
9747 # The option is referenced via a variable to avoid confusing sed.
9748 lt_compile=`echo "$ac_compile" | $SED \
9749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9751 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9753 (eval "$lt_compile" 2>conftest.err)
9754 ac_status=$?
9755 cat conftest.err >&5
43e02a8a 9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9757 if (exit $ac_status) && test -s "$ac_outfile"; then
9758 # The compiler can only warn and ignore the option if not recognized
9759 # So say no if there are warnings other than the usual output.
43e02a8a 9760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 9763 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
9764 fi
9765 fi
9766 $RM conftest*
9767
9768fi
5213506e
RW
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9770$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 9771
d58dead8 9772if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
9773 case $lt_prog_compiler_pic in
9774 "" | " "*) ;;
9775 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9776 esac
9777else
9778 lt_prog_compiler_pic=
9779 lt_prog_compiler_can_build_shared=no
9780fi
9781
9782fi
9783
9784
9785
9786
9787
9788
9789#
9790# Check to make sure the static flag actually works.
9791#
9792wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
9793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9794$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9795if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
1cf3d07d 9797else
d58dead8 9798 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
9799 save_LDFLAGS="$LDFLAGS"
9800 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9801 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9802 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9803 # The linker can only warn and ignore the option if not recognized
9804 # So say no if there are warnings
9805 if test -s conftest.err; then
9806 # Append any errors to the config.log.
9807 cat conftest.err 1>&5
43e02a8a 9808 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
9809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9810 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 9811 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9812 fi
9813 else
d58dead8 9814 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9815 fi
9816 fi
d58dead8 9817 $RM -r conftest*
1cf3d07d
SE
9818 LDFLAGS="$save_LDFLAGS"
9819
9820fi
5213506e
RW
9821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9822$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 9823
d58dead8 9824if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
9825 :
9826else
9827 lt_prog_compiler_static=
9828fi
9829
9830
9831
9832
9833
9834
9835
5213506e
RW
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9837$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9838if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9839 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9840else
9841 lt_cv_prog_compiler_c_o=no
9842 $RM -r conftest 2>/dev/null
9843 mkdir conftest
9844 cd conftest
9845 mkdir out
9846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9847
9848 lt_compiler_flag="-o out/conftest2.$ac_objext"
9849 # Insert the option either (1) after the last *FLAGS variable, or
9850 # (2) before a word containing "conftest.", or (3) at the end.
9851 # Note that $ac_compile itself does not contain backslashes and begins
9852 # with a dollar sign (not a hyphen), so the echo should work correctly.
9853 lt_compile=`echo "$ac_compile" | $SED \
9854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9856 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9858 (eval "$lt_compile" 2>out/conftest.err)
9859 ac_status=$?
9860 cat out/conftest.err >&5
43e02a8a 9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9863 then
9864 # The compiler can only warn and ignore the option if not recognized
9865 # So say no if there are warnings
43e02a8a 9866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
9867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9869 lt_cv_prog_compiler_c_o=yes
9870 fi
9871 fi
9872 chmod u+w . 2>&5
9873 $RM conftest*
9874 # SGI C++ compiler will create directory out/ii_files/ for
9875 # template instantiation
9876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9877 $RM out/* && rmdir out
9878 cd ..
9879 $RM -r conftest
9880 $RM conftest*
9881
9882fi
5213506e
RW
9883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9884$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9885
9886
9887
9888
9889
9890
5213506e
RW
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9892$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9893if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9894 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9895else
9896 lt_cv_prog_compiler_c_o=no
9897 $RM -r conftest 2>/dev/null
9898 mkdir conftest
9899 cd conftest
9900 mkdir out
9901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9902
9903 lt_compiler_flag="-o out/conftest2.$ac_objext"
9904 # Insert the option either (1) after the last *FLAGS variable, or
9905 # (2) before a word containing "conftest.", or (3) at the end.
9906 # Note that $ac_compile itself does not contain backslashes and begins
9907 # with a dollar sign (not a hyphen), so the echo should work correctly.
9908 lt_compile=`echo "$ac_compile" | $SED \
9909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9911 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9913 (eval "$lt_compile" 2>out/conftest.err)
9914 ac_status=$?
9915 cat out/conftest.err >&5
43e02a8a 9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9918 then
9919 # The compiler can only warn and ignore the option if not recognized
9920 # So say no if there are warnings
43e02a8a 9921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
9922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9924 lt_cv_prog_compiler_c_o=yes
9925 fi
9926 fi
9927 chmod u+w . 2>&5
9928 $RM conftest*
9929 # SGI C++ compiler will create directory out/ii_files/ for
9930 # template instantiation
9931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9932 $RM out/* && rmdir out
9933 cd ..
9934 $RM -r conftest
9935 $RM conftest*
9936
9937fi
5213506e
RW
9938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9939$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9940
9941
9942
9943
9944hard_links="nottested"
9945if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9946 # do not overwrite the value of need_locks provided by the user
5213506e
RW
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9948$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
9949 hard_links=yes
9950 $RM conftest*
9951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9952 touch conftest.a
9953 ln conftest.a conftest.b 2>&5 || hard_links=no
9954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9956$as_echo "$hard_links" >&6; }
1cf3d07d 9957 if test "$hard_links" = no; then
5213506e
RW
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9959$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
9960 need_locks=warn
9961 fi
9962else
9963 need_locks=no
9964fi
9965
9966
9967
9968
9969
9970
5213506e
RW
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9972$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
9973
9974 runpath_var=
9975 allow_undefined_flag=
9976 always_export_symbols=no
9977 archive_cmds=
9978 archive_expsym_cmds=
9979 compiler_needs_object=no
9980 enable_shared_with_static_runtimes=no
9981 export_dynamic_flag_spec=
9982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9983 hardcode_automatic=no
9984 hardcode_direct=no
9985 hardcode_direct_absolute=no
9986 hardcode_libdir_flag_spec=
9987 hardcode_libdir_flag_spec_ld=
9988 hardcode_libdir_separator=
9989 hardcode_minus_L=no
9990 hardcode_shlibpath_var=unsupported
9991 inherit_rpath=no
9992 link_all_deplibs=unknown
9993 module_cmds=
9994 module_expsym_cmds=
9995 old_archive_from_new_cmds=
9996 old_archive_from_expsyms_cmds=
9997 thread_safe_flag_spec=
9998 whole_archive_flag_spec=
9999 # include_expsyms should be a list of space-separated symbols to be *always*
10000 # included in the symbol list
10001 include_expsyms=
10002 # exclude_expsyms can be an extended regexp of symbols to exclude
10003 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10004 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10005 # as well as any symbol that contains `d'.
d58dead8 10006 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
10007 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10008 # platforms (ab)use it in PIC code, but their linkers get confused if
10009 # the symbol is explicitly referenced. Since portable code cannot
10010 # rely on this symbol name, it's probably fine to never include it in
10011 # preloaded symbol tables.
d58dead8 10012 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
10013 extract_expsyms_cmds=
10014
10015 case $host_os in
d58dead8 10016 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10017 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10018 # When not using gcc, we currently assume that we are using
10019 # Microsoft Visual C++.
10020 if test "$GCC" != yes; then
10021 with_gnu_ld=no
10022 fi
10023 ;;
10024 interix*)
10025 # we just hope/assume this is gcc and not c89 (= MSVC++)
10026 with_gnu_ld=yes
10027 ;;
10028 openbsd*)
10029 with_gnu_ld=no
10030 ;;
10031 esac
10032
10033 ld_shlibs=yes
43e02a8a
RW
10034
10035 # On some targets, GNU ld is compatible enough with the native linker
10036 # that we're better off using the native interface for both.
10037 lt_use_gnu_ld_interface=no
1cf3d07d 10038 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
10039 case $host_os in
10040 aix*)
10041 # The AIX port of GNU ld has always aspired to compatibility
10042 # with the native linker. However, as the warning in the GNU ld
10043 # block says, versions before 2.19.5* couldn't really create working
10044 # shared libraries, regardless of the interface used.
10045 case `$LD -v 2>&1` in
10046 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10047 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10048 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10049 *)
10050 lt_use_gnu_ld_interface=yes
10051 ;;
10052 esac
10053 ;;
10054 *)
10055 lt_use_gnu_ld_interface=yes
10056 ;;
10057 esac
10058 fi
10059
10060 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
10061 # If archive_cmds runs LD, not CC, wlarc should be empty
10062 wlarc='${wl}'
10063
10064 # Set some defaults for GNU ld with shared library support. These
10065 # are reset later if shared libraries are not supported. Putting them
10066 # here allows them to be overridden if necessary.
10067 runpath_var=LD_RUN_PATH
10068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10069 export_dynamic_flag_spec='${wl}--export-dynamic'
10070 # ancient GNU ld didn't support --whole-archive et. al.
10071 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10072 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10073 else
10074 whole_archive_flag_spec=
10075 fi
10076 supports_anon_versioning=no
10077 case `$LD -v 2>&1` in
43e02a8a 10078 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
10079 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10081 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10082 *\ 2.11.*) ;; # other 2.11 versions
10083 *) supports_anon_versioning=yes ;;
10084 esac
10085
10086 # See if GNU ld supports shared libraries.
10087 case $host_os in
4f6bebc3 10088 aix[3-9]*)
1cf3d07d
SE
10089 # On AIX/PPC, the GNU linker is very broken
10090 if test "$host_cpu" != ia64; then
10091 ld_shlibs=no
10092 cat <<_LT_EOF 1>&2
10093
43e02a8a 10094*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
10095*** to be unable to reliably create shared libraries on AIX.
10096*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
10097*** really care for shared libraries, you may want to install binutils
10098*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10099*** You will then need to restart the configuration process.
1cf3d07d
SE
10100
10101_LT_EOF
10102 fi
10103 ;;
10104
10105 amigaos*)
d58dead8
PG
10106 case $host_cpu in
10107 powerpc)
10108 # see comment about AmigaOS4 .so support
10109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10110 archive_expsym_cmds=''
10111 ;;
10112 m68k)
10113 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)'
10114 hardcode_libdir_flag_spec='-L$libdir'
10115 hardcode_minus_L=yes
10116 ;;
10117 esac
1cf3d07d
SE
10118 ;;
10119
10120 beos*)
10121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10122 allow_undefined_flag=unsupported
10123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10124 # support --undefined. This deserves some investigation. FIXME
10125 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10126 else
10127 ld_shlibs=no
10128 fi
10129 ;;
10130
d58dead8 10131 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10132 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10133 # as there is no search path for DLLs.
10134 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 10135 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
10136 allow_undefined_flag=unsupported
10137 always_export_symbols=no
10138 enable_shared_with_static_runtimes=yes
10139 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10140
10141 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10143 # If the export-symbols file already is a .def file (1st line
10144 # is EXPORTS), use it as is; otherwise, prepend...
10145 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10146 cp $export_symbols $output_objdir/$soname.def;
10147 else
10148 echo EXPORTS > $output_objdir/$soname.def;
10149 cat $export_symbols >> $output_objdir/$soname.def;
10150 fi~
10151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10152 else
10153 ld_shlibs=no
10154 fi
10155 ;;
10156
43e02a8a
RW
10157 haiku*)
10158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10159 link_all_deplibs=yes
10160 ;;
10161
1cf3d07d
SE
10162 interix[3-9]*)
10163 hardcode_direct=no
10164 hardcode_shlibpath_var=no
10165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10166 export_dynamic_flag_spec='${wl}-E'
10167 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10168 # Instead, shared libraries are loaded at an image base (0x10000000 by
10169 # default) and relocated if they conflict, which is a slow very memory
10170 # consuming and fragmenting process. To avoid this, we pick a random,
10171 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10172 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10174 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'
10175 ;;
10176
7a9d3fe8 10177 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
10178 tmp_diet=no
10179 if test "$host_os" = linux-dietlibc; then
10180 case $cc_basename in
10181 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10182 esac
10183 fi
10184 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10185 && test "$tmp_diet" = no
10186 then
a699d672 10187 tmp_addflag=' $pic_flag'
d58dead8 10188 tmp_sharedflag='-shared'
1cf3d07d
SE
10189 case $cc_basename,$host_cpu in
10190 pgcc*) # Portland Group C compiler
43e02a8a 10191 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
10192 tmp_addflag=' $pic_flag'
10193 ;;
43e02a8a
RW
10194 pgf77* | pgf90* | pgf95* | pgfortran*)
10195 # Portland Group f77 and f90 compilers
10196 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
10197 tmp_addflag=' $pic_flag -Mnomain' ;;
10198 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10199 tmp_addflag=' -i_dynamic' ;;
10200 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10201 tmp_addflag=' -i_dynamic -nofor_main' ;;
10202 ifc* | ifort*) # Intel Fortran compiler
10203 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
10204 lf95*) # Lahey Fortran 8.1
10205 whole_archive_flag_spec=
10206 tmp_sharedflag='--shared' ;;
43e02a8a 10207 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
10208 tmp_sharedflag='-qmkshrobj'
10209 tmp_addflag= ;;
43e02a8a
RW
10210 nvcc*) # Cuda Compiler Driver 2.2
10211 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'
10212 compiler_needs_object=yes
10213 ;;
1cf3d07d
SE
10214 esac
10215 case `$CC -V 2>&1 | sed 5q` in
10216 *Sun\ C*) # Sun C 5.9
43e02a8a 10217 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
10218 compiler_needs_object=yes
10219 tmp_sharedflag='-G' ;;
10220 *Sun\ F*) # Sun Fortran 8.3
10221 tmp_sharedflag='-G' ;;
1cf3d07d
SE
10222 esac
10223 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10224
10225 if test "x$supports_anon_versioning" = xyes; then
10226 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10228 echo "local: *; };" >> $output_objdir/$libname.ver~
10229 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10230 fi
d58dead8
PG
10231
10232 case $cc_basename in
43e02a8a 10233 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
10234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10236 hardcode_libdir_flag_spec=
10237 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10238 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10239 if test "x$supports_anon_versioning" = xyes; then
10240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10242 echo "local: *; };" >> $output_objdir/$libname.ver~
10243 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10244 fi
10245 ;;
10246 esac
1cf3d07d
SE
10247 else
10248 ld_shlibs=no
10249 fi
10250 ;;
10251
10252 netbsd*)
10253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10254 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10255 wlarc=
10256 else
10257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10259 fi
10260 ;;
10261
10262 solaris*)
10263 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10264 ld_shlibs=no
10265 cat <<_LT_EOF 1>&2
10266
10267*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10268*** create shared libraries on Solaris systems. Therefore, libtool
10269*** is disabling shared libraries support. We urge you to upgrade GNU
10270*** binutils to release 2.9.1 or newer. Another option is to modify
10271*** your PATH or compiler configuration so that the native linker is
10272*** used, and then restart.
10273
10274_LT_EOF
10275 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10278 else
10279 ld_shlibs=no
10280 fi
10281 ;;
10282
10283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10284 case `$LD -v 2>&1` in
10285 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10286 ld_shlibs=no
10287 cat <<_LT_EOF 1>&2
10288
10289*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10290*** reliably create shared libraries on SCO systems. Therefore, libtool
10291*** is disabling shared libraries support. We urge you to upgrade GNU
10292*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10293*** your PATH or compiler configuration so that the native linker is
10294*** used, and then restart.
10295
10296_LT_EOF
10297 ;;
10298 *)
10299 # For security reasons, it is highly recommended that you always
10300 # use absolute paths for naming shared libraries, and exclude the
10301 # DT_RUNPATH tag from executables and libraries. But doing so
10302 # requires that you compile everything twice, which is a pain.
10303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10307 else
10308 ld_shlibs=no
10309 fi
10310 ;;
10311 esac
10312 ;;
10313
10314 sunos4*)
10315 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10316 wlarc=
10317 hardcode_direct=yes
10318 hardcode_shlibpath_var=no
10319 ;;
10320
10321 *)
10322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10325 else
10326 ld_shlibs=no
10327 fi
10328 ;;
10329 esac
10330
10331 if test "$ld_shlibs" = no; then
10332 runpath_var=
10333 hardcode_libdir_flag_spec=
10334 export_dynamic_flag_spec=
10335 whole_archive_flag_spec=
10336 fi
10337 else
10338 # PORTME fill in a description of your system's linker (not GNU ld)
10339 case $host_os in
10340 aix3*)
10341 allow_undefined_flag=unsupported
10342 always_export_symbols=yes
10343 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'
10344 # Note: this linker hardcodes the directories in LIBPATH if there
10345 # are no directories specified by -L.
10346 hardcode_minus_L=yes
10347 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10348 # Neither direct hardcoding nor static linking is supported with a
10349 # broken collect2.
10350 hardcode_direct=unsupported
10351 fi
10352 ;;
10353
4f6bebc3 10354 aix[4-9]*)
1cf3d07d
SE
10355 if test "$host_cpu" = ia64; then
10356 # On IA64, the linker does run time linking by default, so we don't
10357 # have to do anything special.
10358 aix_use_runtimelinking=no
10359 exp_sym_flag='-Bexport'
10360 no_entry_flag=""
10361 else
10362 # If we're using GNU nm, then we don't want the "-C" option.
10363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
10364 # Also, AIX nm treats weak defined symbols like other global
10365 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 10366 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 10367 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 10368 else
d3ca2257 10369 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
10370 fi
10371 aix_use_runtimelinking=no
10372
10373 # Test if we are trying to use run time linking or normal
10374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10375 # need to do runtime linking.
4f6bebc3 10376 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
10377 for ld_flag in $LDFLAGS; do
10378 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10379 aix_use_runtimelinking=yes
10380 break
10381 fi
10382 done
10383 ;;
10384 esac
10385
10386 exp_sym_flag='-bexport'
10387 no_entry_flag='-bnoentry'
10388 fi
10389
10390 # When large executables or shared objects are built, AIX ld can
10391 # have problems creating the table of contents. If linking a library
10392 # or program results in "error TOC overflow" add -mminimal-toc to
10393 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10394 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10395
10396 archive_cmds=''
10397 hardcode_direct=yes
10398 hardcode_direct_absolute=yes
10399 hardcode_libdir_separator=':'
10400 link_all_deplibs=yes
10401 file_list_spec='${wl}-f,'
10402
10403 if test "$GCC" = yes; then
10404 case $host_os in aix4.[012]|aix4.[012].*)
10405 # We only want to do this on AIX 4.2 and lower, the check
10406 # below for broken collect2 doesn't work under 4.3+
10407 collect2name=`${CC} -print-prog-name=collect2`
10408 if test -f "$collect2name" &&
10409 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10410 then
10411 # We have reworked collect2
10412 :
10413 else
10414 # We have old collect2
10415 hardcode_direct=unsupported
10416 # It fails to find uninstalled libraries when the uninstalled
10417 # path is not listed in the libpath. Setting hardcode_minus_L
10418 # to unsupported forces relinking
10419 hardcode_minus_L=yes
10420 hardcode_libdir_flag_spec='-L$libdir'
10421 hardcode_libdir_separator=
10422 fi
10423 ;;
10424 esac
10425 shared_flag='-shared'
10426 if test "$aix_use_runtimelinking" = yes; then
10427 shared_flag="$shared_flag "'${wl}-G'
10428 fi
10429 else
10430 # not using gcc
10431 if test "$host_cpu" = ia64; then
10432 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10433 # chokes on -Wl,-G. The following line is correct:
10434 shared_flag='-G'
10435 else
10436 if test "$aix_use_runtimelinking" = yes; then
10437 shared_flag='${wl}-G'
10438 else
10439 shared_flag='${wl}-bM:SRE'
10440 fi
10441 fi
10442 fi
10443
d58dead8 10444 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
10445 # It seems that -bexpall does not export symbols beginning with
10446 # underscore (_), so it is better to generate a list of symbols to export.
10447 always_export_symbols=yes
10448 if test "$aix_use_runtimelinking" = yes; then
10449 # Warning - without using the other runtime loading flags (-brtl),
10450 # -berok will link without error, but may produce a broken library.
10451 allow_undefined_flag='-berok'
10452 # Determine the default libpath from the value encoded in an
10453 # empty executable.
10454 if test x$gcc_no_link = xyes; then
5213506e 10455 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10456fi
5213506e 10457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10458/* end confdefs.h. */
10459
10460int
10461main ()
10462{
10463
10464 ;
10465 return 0;
10466}
10467_ACEOF
5213506e 10468if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10469
10470lt_aix_libpath_sed='
10471 /Import File Strings/,/^$/ {
10472 /^0/ {
10473 s/^0 *\(.*\)$/\1/
10474 p
10475 }
10476 }'
10477aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478# Check for a 64-bit object if we didn't find anything.
10479if test -z "$aix_libpath"; then
10480 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481fi
1cf3d07d 10482fi
5213506e
RW
10483rm -f core conftest.err conftest.$ac_objext \
10484 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10485if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10486
10487 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 10488 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
10489 else
10490 if test "$host_cpu" = ia64; then
10491 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10492 allow_undefined_flag="-z nodefs"
10493 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"
10494 else
10495 # Determine the default libpath from the value encoded in an
10496 # empty executable.
10497 if test x$gcc_no_link = xyes; then
5213506e 10498 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10499fi
5213506e 10500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10501/* end confdefs.h. */
10502
10503int
10504main ()
10505{
10506
10507 ;
10508 return 0;
10509}
10510_ACEOF
5213506e 10511if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10512
10513lt_aix_libpath_sed='
10514 /Import File Strings/,/^$/ {
10515 /^0/ {
10516 s/^0 *\(.*\)$/\1/
10517 p
10518 }
10519 }'
10520aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10521# Check for a 64-bit object if we didn't find anything.
10522if test -z "$aix_libpath"; then
10523 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10524fi
1cf3d07d 10525fi
5213506e
RW
10526rm -f core conftest.err conftest.$ac_objext \
10527 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10528if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10529
10530 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10531 # Warning - without using the other run time loading flags,
10532 # -berok will link without error, but may produce a broken library.
10533 no_undefined_flag=' ${wl}-bernotok'
10534 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
10535 if test "$with_gnu_ld" = yes; then
10536 # We only use this code for GNU lds that support --whole-archive.
10537 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10538 else
10539 # Exported symbols can be pulled into shared objects from archives
10540 whole_archive_flag_spec='$convenience'
10541 fi
1cf3d07d
SE
10542 archive_cmds_need_lc=yes
10543 # This is similar to how AIX traditionally builds its shared libraries.
10544 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'
10545 fi
10546 fi
10547 ;;
10548
10549 amigaos*)
d58dead8
PG
10550 case $host_cpu in
10551 powerpc)
10552 # see comment about AmigaOS4 .so support
10553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10554 archive_expsym_cmds=''
10555 ;;
10556 m68k)
10557 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)'
10558 hardcode_libdir_flag_spec='-L$libdir'
10559 hardcode_minus_L=yes
10560 ;;
10561 esac
1cf3d07d
SE
10562 ;;
10563
10564 bsdi[45]*)
10565 export_dynamic_flag_spec=-rdynamic
10566 ;;
10567
d58dead8 10568 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10569 # When not using gcc, we currently assume that we are using
10570 # Microsoft Visual C++.
10571 # hardcode_libdir_flag_spec is actually meaningless, as there is
10572 # no search path for DLLs.
10573 hardcode_libdir_flag_spec=' '
10574 allow_undefined_flag=unsupported
10575 # Tell ltmain to make .lib files, not .a files.
10576 libext=lib
10577 # Tell ltmain to make .dll files, not .so files.
10578 shrext_cmds=".dll"
10579 # FIXME: Setting linknames here is a bad hack.
43e02a8a 10580 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
10581 # The linker will automatically build a .lib file if we build a DLL.
10582 old_archive_from_new_cmds='true'
10583 # FIXME: Should let the user specify the lib program.
10584 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10585 fix_srcfile_path='`cygpath -w "$srcfile"`'
10586 enable_shared_with_static_runtimes=yes
10587 ;;
10588
10589 darwin* | rhapsody*)
1cf3d07d 10590
d58dead8
PG
10591
10592 archive_cmds_need_lc=no
10593 hardcode_direct=no
10594 hardcode_automatic=yes
10595 hardcode_shlibpath_var=unsupported
43e02a8a
RW
10596 if test "$lt_cv_ld_force_load" = "yes"; then
10597 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\"`'
10598 else
10599 whole_archive_flag_spec=''
10600 fi
d58dead8
PG
10601 link_all_deplibs=yes
10602 allow_undefined_flag="$_lt_dar_allow_undefined"
10603 case $cc_basename in
10604 ifort*) _lt_dar_can_shared=yes ;;
10605 *) _lt_dar_can_shared=$GCC ;;
10606 esac
10607 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 10608 output_verbose_link_cmd=func_echo_all
d58dead8
PG
10609 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10610 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10611 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}"
10612 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}"
10613
10614 else
10615 ld_shlibs=no
10616 fi
10617
1cf3d07d
SE
10618 ;;
10619
10620 dgux*)
10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622 hardcode_libdir_flag_spec='-L$libdir'
10623 hardcode_shlibpath_var=no
10624 ;;
10625
1cf3d07d
SE
10626 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10627 # support. Future versions do this automatically, but an explicit c++rt0.o
10628 # does not break anything, and helps significantly (at the cost of a little
10629 # extra space).
10630 freebsd2.2*)
10631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10632 hardcode_libdir_flag_spec='-R$libdir'
10633 hardcode_direct=yes
10634 hardcode_shlibpath_var=no
10635 ;;
10636
10637 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10638 freebsd2.*)
1cf3d07d
SE
10639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10640 hardcode_direct=yes
10641 hardcode_minus_L=yes
10642 hardcode_shlibpath_var=no
10643 ;;
10644
10645 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10646 freebsd* | dragonfly*)
10647 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10648 hardcode_libdir_flag_spec='-R$libdir'
10649 hardcode_direct=yes
10650 hardcode_shlibpath_var=no
10651 ;;
10652
10653 hpux9*)
10654 if test "$GCC" = yes; then
10655 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'
10656 else
10657 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'
10658 fi
10659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10660 hardcode_libdir_separator=:
10661 hardcode_direct=yes
10662
10663 # hardcode_minus_L: Not really in the search PATH,
10664 # but as the default location of the library.
10665 hardcode_minus_L=yes
10666 export_dynamic_flag_spec='${wl}-E'
10667 ;;
10668
10669 hpux10*)
43e02a8a 10670 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
10671 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10672 else
10673 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10674 fi
10675 if test "$with_gnu_ld" = no; then
10676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10677 hardcode_libdir_flag_spec_ld='+b $libdir'
10678 hardcode_libdir_separator=:
10679 hardcode_direct=yes
10680 hardcode_direct_absolute=yes
10681 export_dynamic_flag_spec='${wl}-E'
10682 # hardcode_minus_L: Not really in the search PATH,
10683 # but as the default location of the library.
10684 hardcode_minus_L=yes
10685 fi
10686 ;;
10687
10688 hpux11*)
43e02a8a 10689 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
10690 case $host_cpu in
10691 hppa*64*)
10692 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10693 ;;
10694 ia64*)
d58dead8 10695 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
10696 ;;
10697 *)
10698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10699 ;;
10700 esac
10701 else
10702 case $host_cpu in
10703 hppa*64*)
10704 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10705 ;;
10706 ia64*)
10707 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10708 ;;
10709 *)
43e02a8a
RW
10710
10711 # Older versions of the 11.00 compiler do not understand -b yet
10712 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10714$as_echo_n "checking if $CC understands -b... " >&6; }
10715if test "${lt_cv_prog_compiler__b+set}" = set; then :
10716 $as_echo_n "(cached) " >&6
10717else
10718 lt_cv_prog_compiler__b=no
10719 save_LDFLAGS="$LDFLAGS"
10720 LDFLAGS="$LDFLAGS -b"
10721 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10723 # The linker can only warn and ignore the option if not recognized
10724 # So say no if there are warnings
10725 if test -s conftest.err; then
10726 # Append any errors to the config.log.
10727 cat conftest.err 1>&5
10728 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10730 if diff conftest.exp conftest.er2 >/dev/null; then
10731 lt_cv_prog_compiler__b=yes
10732 fi
10733 else
10734 lt_cv_prog_compiler__b=yes
10735 fi
10736 fi
10737 $RM -r conftest*
10738 LDFLAGS="$save_LDFLAGS"
10739
10740fi
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10742$as_echo "$lt_cv_prog_compiler__b" >&6; }
10743
10744if test x"$lt_cv_prog_compiler__b" = xyes; then
10745 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10746else
10747 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10748fi
10749
1cf3d07d
SE
10750 ;;
10751 esac
10752 fi
10753 if test "$with_gnu_ld" = no; then
10754 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10755 hardcode_libdir_separator=:
10756
10757 case $host_cpu in
10758 hppa*64*|ia64*)
10759 hardcode_direct=no
10760 hardcode_shlibpath_var=no
10761 ;;
10762 *)
10763 hardcode_direct=yes
10764 hardcode_direct_absolute=yes
10765 export_dynamic_flag_spec='${wl}-E'
10766
10767 # hardcode_minus_L: Not really in the search PATH,
10768 # but as the default location of the library.
10769 hardcode_minus_L=yes
10770 ;;
10771 esac
10772 fi
10773 ;;
10774
10775 irix5* | irix6* | nonstopux*)
10776 if test "$GCC" = yes; then
43e02a8a 10777 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
10778 # Try to use the -exported_symbol ld option, if it does not
10779 # work, assume that -exports_file does not work either and
10780 # implicitly export all symbols.
10781 save_LDFLAGS="$LDFLAGS"
10782 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10783 if test x$gcc_no_link = xyes; then
5213506e 10784 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10785fi
5213506e
RW
10786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787/* end confdefs.h. */
1cf3d07d
SE
10788int foo(void) {}
10789_ACEOF
5213506e 10790if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 10791 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 10792
1cf3d07d 10793fi
5213506e
RW
10794rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10796 LDFLAGS="$save_LDFLAGS"
10797 else
43e02a8a
RW
10798 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'
10799 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
10800 fi
10801 archive_cmds_need_lc='no'
10802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10803 hardcode_libdir_separator=:
10804 inherit_rpath=yes
10805 link_all_deplibs=yes
10806 ;;
10807
10808 netbsd*)
10809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10811 else
10812 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10813 fi
10814 hardcode_libdir_flag_spec='-R$libdir'
10815 hardcode_direct=yes
10816 hardcode_shlibpath_var=no
10817 ;;
10818
10819 newsos6)
10820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10821 hardcode_direct=yes
10822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10823 hardcode_libdir_separator=:
10824 hardcode_shlibpath_var=no
10825 ;;
10826
10827 *nto* | *qnx*)
10828 ;;
10829
10830 openbsd*)
d58dead8
PG
10831 if test -f /usr/libexec/ld.so; then
10832 hardcode_direct=yes
10833 hardcode_shlibpath_var=no
10834 hardcode_direct_absolute=yes
10835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 10836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 10837 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 10838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
d58dead8
PG
10839 export_dynamic_flag_spec='${wl}-E'
10840 else
10841 case $host_os in
10842 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10844 hardcode_libdir_flag_spec='-R$libdir'
10845 ;;
10846 *)
10847 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10848 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10849 ;;
10850 esac
10851 fi
10852 else
10853 ld_shlibs=no
1cf3d07d
SE
10854 fi
10855 ;;
10856
10857 os2*)
10858 hardcode_libdir_flag_spec='-L$libdir'
10859 hardcode_minus_L=yes
10860 allow_undefined_flag=unsupported
43e02a8a 10861 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
10862 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10863 ;;
10864
10865 osf3*)
10866 if test "$GCC" = yes; then
10867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10868 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
10869 else
10870 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10871 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
10872 fi
10873 archive_cmds_need_lc='no'
10874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10875 hardcode_libdir_separator=:
10876 ;;
10877
10878 osf4* | osf5*) # as osf3* with the addition of -msym flag
10879 if test "$GCC" = yes; then
10880 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10881 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
10882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10883 else
10884 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10885 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 10886 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 10887 $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
10888
10889 # Both c and cxx compiler support -rpath directly
10890 hardcode_libdir_flag_spec='-rpath $libdir'
10891 fi
10892 archive_cmds_need_lc='no'
10893 hardcode_libdir_separator=:
10894 ;;
10895
10896 solaris*)
10897 no_undefined_flag=' -z defs'
10898 if test "$GCC" = yes; then
10899 wlarc='${wl}'
10900 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10902 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10903 else
10904 case `$CC -V 2>&1` in
10905 *"Compilers 5.0"*)
10906 wlarc=''
10907 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10908 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10909 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10910 ;;
10911 *)
10912 wlarc='${wl}'
10913 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10914 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10915 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10916 ;;
10917 esac
10918 fi
10919 hardcode_libdir_flag_spec='-R$libdir'
10920 hardcode_shlibpath_var=no
10921 case $host_os in
10922 solaris2.[0-5] | solaris2.[0-5].*) ;;
10923 *)
10924 # The compiler driver will combine and reorder linker options,
10925 # but understands `-z linker_flag'. GCC discards it without `$wl',
10926 # but is careful enough not to reorder.
10927 # Supported since Solaris 2.6 (maybe 2.5.1?)
10928 if test "$GCC" = yes; then
10929 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10930 else
10931 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10932 fi
10933 ;;
10934 esac
10935 link_all_deplibs=yes
10936 ;;
10937
10938 sunos4*)
10939 if test "x$host_vendor" = xsequent; then
10940 # Use $CC to link under sequent, because it throws in some extra .o
10941 # files that make .init and .fini sections work.
10942 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10943 else
10944 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10945 fi
10946 hardcode_libdir_flag_spec='-L$libdir'
10947 hardcode_direct=yes
10948 hardcode_minus_L=yes
10949 hardcode_shlibpath_var=no
10950 ;;
10951
10952 sysv4)
10953 case $host_vendor in
10954 sni)
10955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956 hardcode_direct=yes # is this really true???
10957 ;;
10958 siemens)
10959 ## LD is ld it makes a PLAMLIB
10960 ## CC just makes a GrossModule.
10961 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10962 reload_cmds='$CC -r -o $output$reload_objs'
10963 hardcode_direct=no
10964 ;;
10965 motorola)
10966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10967 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10968 ;;
10969 esac
10970 runpath_var='LD_RUN_PATH'
10971 hardcode_shlibpath_var=no
10972 ;;
10973
10974 sysv4.3*)
10975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10976 hardcode_shlibpath_var=no
10977 export_dynamic_flag_spec='-Bexport'
10978 ;;
10979
10980 sysv4*MP*)
10981 if test -d /usr/nec; then
10982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10983 hardcode_shlibpath_var=no
10984 runpath_var=LD_RUN_PATH
10985 hardcode_runpath_var=yes
10986 ld_shlibs=yes
10987 fi
10988 ;;
10989
10990 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10991 no_undefined_flag='${wl}-z,text'
10992 archive_cmds_need_lc=no
10993 hardcode_shlibpath_var=no
10994 runpath_var='LD_RUN_PATH'
10995
10996 if test "$GCC" = yes; then
10997 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10998 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10999 else
11000 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11001 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11002 fi
11003 ;;
11004
11005 sysv5* | sco3.2v5* | sco5v6*)
11006 # Note: We can NOT use -z defs as we might desire, because we do not
11007 # link with -lc, and that would cause any symbols used from libc to
11008 # always be unresolved, which means just about no library would
11009 # ever link correctly. If we're not using GNU ld we use -z text
11010 # though, which does catch some bad symbols but isn't as heavy-handed
11011 # as -z defs.
11012 no_undefined_flag='${wl}-z,text'
11013 allow_undefined_flag='${wl}-z,nodefs'
11014 archive_cmds_need_lc=no
11015 hardcode_shlibpath_var=no
11016 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11017 hardcode_libdir_separator=':'
11018 link_all_deplibs=yes
11019 export_dynamic_flag_spec='${wl}-Bexport'
11020 runpath_var='LD_RUN_PATH'
11021
11022 if test "$GCC" = yes; then
11023 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11025 else
11026 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11027 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 fi
11029 ;;
11030
11031 uts4*)
11032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11033 hardcode_libdir_flag_spec='-L$libdir'
11034 hardcode_shlibpath_var=no
11035 ;;
11036
11037 *)
11038 ld_shlibs=no
11039 ;;
11040 esac
11041
11042 if test x$host_vendor = xsni; then
11043 case $host in
11044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11045 export_dynamic_flag_spec='${wl}-Blargedynsym'
11046 ;;
11047 esac
11048 fi
11049 fi
11050
5213506e
RW
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11052$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
11053test "$ld_shlibs" = no && can_build_shared=no
11054
11055with_gnu_ld=$with_gnu_ld
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071#
11072# Do we need to explicitly link libc?
11073#
11074case "x$archive_cmds_need_lc" in
11075x|xyes)
11076 # Assume -lc should be added
11077 archive_cmds_need_lc=yes
11078
11079 if test "$enable_shared" = yes && test "$GCC" = yes; then
11080 case $archive_cmds in
11081 *'~'*)
11082 # FIXME: we may have to deal with multi-command sequences.
11083 ;;
11084 '$CC '*)
11085 # Test whether the compiler implicitly links with -lc since on some
11086 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11087 # to ld, don't add -lc before -lgcc.
5213506e
RW
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11089$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11090if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11091 $as_echo_n "(cached) " >&6
baafc534
RW
11092else
11093 $RM conftest*
11094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 11095
5213506e 11096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
11097 (eval $ac_compile) 2>&5
11098 ac_status=$?
5213506e
RW
11099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11100 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
11101 soname=conftest
11102 lib=conftest
11103 libobjs=conftest.$ac_objext
11104 deplibs=
11105 wl=$lt_prog_compiler_wl
11106 pic_flag=$lt_prog_compiler_pic
11107 compiler_flags=-v
11108 linker_flags=-v
11109 verstring=
11110 output_objdir=.
11111 libname=conftest
11112 lt_save_allow_undefined_flag=$allow_undefined_flag
11113 allow_undefined_flag=
5213506e 11114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
11115 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11116 ac_status=$?
5213506e
RW
11117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11118 test $ac_status = 0; }
baafc534
RW
11119 then
11120 lt_cv_archive_cmds_need_lc=no
11121 else
11122 lt_cv_archive_cmds_need_lc=yes
11123 fi
11124 allow_undefined_flag=$lt_save_allow_undefined_flag
11125 else
11126 cat conftest.err 1>&5
11127 fi
11128 $RM conftest*
11129
11130fi
5213506e
RW
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11132$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 11133 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
11134 ;;
11135 esac
11136 fi
11137 ;;
11138esac
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
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
5213506e
RW
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11297$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8
PG
11298
11299if test "$GCC" = yes; then
1cf3d07d
SE
11300 case $host_os in
11301 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11302 *) lt_awk_arg="/^libraries:/" ;;
11303 esac
43e02a8a
RW
11304 case $host_os in
11305 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11306 *) lt_sed_strip_eq="s,=/,/,g" ;;
11307 esac
11308 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11309 case $lt_search_path_spec in
11310 *\;*)
1cf3d07d
SE
11311 # if the path contains ";" then we assume it to be the separator
11312 # otherwise default to the standard path separator (i.e. ":") - it is
11313 # assumed that no part of a normal pathname contains ";" but that should
11314 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
11315 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11316 ;;
11317 *)
11318 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11319 ;;
11320 esac
1cf3d07d
SE
11321 # Ok, now we have the path, separated by spaces, we can step through it
11322 # and add multilib dir if necessary.
11323 lt_tmp_lt_search_path_spec=
11324 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11325 for lt_sys_path in $lt_search_path_spec; do
11326 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11327 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11328 else
11329 test -d "$lt_sys_path" && \
11330 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11331 fi
11332 done
43e02a8a 11333 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
11334BEGIN {RS=" "; FS="/|\n";} {
11335 lt_foo="";
11336 lt_count=0;
11337 for (lt_i = NF; lt_i > 0; lt_i--) {
11338 if ($lt_i != "" && $lt_i != ".") {
11339 if ($lt_i == "..") {
11340 lt_count++;
11341 } else {
11342 if (lt_count == 0) {
11343 lt_foo="/" $lt_i lt_foo;
11344 } else {
11345 lt_count--;
11346 }
11347 }
11348 }
11349 }
11350 if (lt_foo != "") { lt_freq[lt_foo]++; }
11351 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11352}'`
43e02a8a
RW
11353 # AWK program above erroneously prepends '/' to C:/dos/paths
11354 # for these hosts.
11355 case $host_os in
11356 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11357 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11358 esac
11359 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
11360else
11361 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11362fi
11363library_names_spec=
11364libname_spec='lib$name'
11365soname_spec=
11366shrext_cmds=".so"
11367postinstall_cmds=
11368postuninstall_cmds=
11369finish_cmds=
11370finish_eval=
11371shlibpath_var=
11372shlibpath_overrides_runpath=unknown
11373version_type=none
11374dynamic_linker="$host_os ld.so"
11375sys_lib_dlsearch_path_spec="/lib /usr/lib"
11376need_lib_prefix=unknown
11377hardcode_into_libs=no
11378
11379# when you set need_version to no, make sure it does not cause -set_version
11380# flags to be left without arguments
11381need_version=unknown
11382
11383case $host_os in
11384aix3*)
11385 version_type=linux
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11387 shlibpath_var=LIBPATH
11388
11389 # AIX 3 has no versioning support, so we append a major version to the name.
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 ;;
11392
4f6bebc3 11393aix[4-9]*)
1cf3d07d
SE
11394 version_type=linux
11395 need_lib_prefix=no
11396 need_version=no
11397 hardcode_into_libs=yes
11398 if test "$host_cpu" = ia64; then
11399 # AIX 5 supports IA64
11400 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11401 shlibpath_var=LD_LIBRARY_PATH
11402 else
11403 # With GCC up to 2.95.x, collect2 would create an import file
11404 # for dependence libraries. The import file would start with
11405 # the line `#! .'. This would cause the generated library to
11406 # depend on `.', always an invalid library. This was fixed in
11407 # development snapshots of GCC prior to 3.0.
11408 case $host_os in
11409 aix4 | aix4.[01] | aix4.[01].*)
11410 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11411 echo ' yes '
11412 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11413 :
11414 else
11415 can_build_shared=no
11416 fi
11417 ;;
11418 esac
11419 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11420 # soname into executable. Probably we can add versioning support to
11421 # collect2, so additional links can be useful in future.
11422 if test "$aix_use_runtimelinking" = yes; then
11423 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11424 # instead of lib<name>.a to let people know that these are not
11425 # typical AIX shared libraries.
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427 else
11428 # We preserve .a as extension for shared libraries through AIX4.2
11429 # and later when we are not doing run time linking.
11430 library_names_spec='${libname}${release}.a $libname.a'
11431 soname_spec='${libname}${release}${shared_ext}$major'
11432 fi
11433 shlibpath_var=LIBPATH
11434 fi
11435 ;;
11436
11437amigaos*)
d58dead8
PG
11438 case $host_cpu in
11439 powerpc)
11440 # Since July 2007 AmigaOS4 officially supports .so libraries.
11441 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 ;;
11444 m68k)
1cf3d07d
SE
11445 library_names_spec='$libname.ixlibrary $libname.a'
11446 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 11447 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
11448 ;;
11449 esac
1cf3d07d
SE
11450 ;;
11451
11452beos*)
11453 library_names_spec='${libname}${shared_ext}'
11454 dynamic_linker="$host_os ld.so"
11455 shlibpath_var=LIBRARY_PATH
11456 ;;
11457
11458bsdi[45]*)
11459 version_type=linux
11460 need_version=no
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11466 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11467 # the default ld.so.conf also contains /usr/contrib/lib and
11468 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11469 # libtool to hard-code these into programs
11470 ;;
11471
d58dead8 11472cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11473 version_type=windows
11474 shrext_cmds=".dll"
11475 need_version=no
11476 need_lib_prefix=no
11477
d58dead8
PG
11478 case $GCC,$host_os in
11479 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
11480 library_names_spec='$libname.dll.a'
11481 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11482 postinstall_cmds='base_file=`basename \${file}`~
11483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11484 dldir=$destdir/`dirname \$dlpath`~
11485 test -d \$dldir || mkdir -p \$dldir~
11486 $install_prog $dir/$dlname \$dldir/$dlname~
11487 chmod a+x \$dldir/$dlname~
11488 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11489 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11490 fi'
11491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11492 dlpath=$dir/\$dldll~
11493 $RM \$dlpath'
11494 shlibpath_overrides_runpath=yes
11495
11496 case $host_os in
11497 cygwin*)
11498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11499 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
11500
11501 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 11502 ;;
d58dead8 11503 mingw* | cegcc*)
1cf3d07d
SE
11504 # MinGW DLLs use traditional 'lib' prefix
11505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
11506 ;;
11507 pw32*)
11508 # pw32 DLLs use 'pw' prefix rather than 'lib'
11509 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11510 ;;
11511 esac
11512 ;;
11513
11514 *)
11515 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11516 ;;
11517 esac
11518 dynamic_linker='Win32 ld.exe'
11519 # FIXME: first we should search . and the directory the executable is in
11520 shlibpath_var=PATH
11521 ;;
11522
11523darwin* | rhapsody*)
11524 dynamic_linker="$host_os dyld"
11525 version_type=darwin
11526 need_lib_prefix=no
11527 need_version=no
11528 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11529 soname_spec='${libname}${release}${major}$shared_ext'
11530 shlibpath_overrides_runpath=yes
11531 shlibpath_var=DYLD_LIBRARY_PATH
11532 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11533
11534 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11535 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11536 ;;
11537
11538dgux*)
11539 version_type=linux
11540 need_lib_prefix=no
11541 need_version=no
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11543 soname_spec='${libname}${release}${shared_ext}$major'
11544 shlibpath_var=LD_LIBRARY_PATH
11545 ;;
11546
1cf3d07d
SE
11547freebsd* | dragonfly*)
11548 # DragonFly does not have aout. When/if they implement a new
11549 # versioning mechanism, adjust this.
11550 if test -x /usr/bin/objformat; then
11551 objformat=`/usr/bin/objformat`
11552 else
11553 case $host_os in
c6084f68 11554 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
11555 *) objformat=elf ;;
11556 esac
11557 fi
11558 version_type=freebsd-$objformat
11559 case $version_type in
11560 freebsd-elf*)
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11562 need_version=no
11563 need_lib_prefix=no
11564 ;;
11565 freebsd-*)
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11567 need_version=yes
11568 ;;
11569 esac
11570 shlibpath_var=LD_LIBRARY_PATH
11571 case $host_os in
c6084f68 11572 freebsd2.*)
1cf3d07d
SE
11573 shlibpath_overrides_runpath=yes
11574 ;;
11575 freebsd3.[01]* | freebsdelf3.[01]*)
11576 shlibpath_overrides_runpath=yes
11577 hardcode_into_libs=yes
11578 ;;
11579 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11580 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11581 shlibpath_overrides_runpath=no
11582 hardcode_into_libs=yes
11583 ;;
11584 *) # from 4.6 on, and DragonFly
11585 shlibpath_overrides_runpath=yes
11586 hardcode_into_libs=yes
11587 ;;
11588 esac
11589 ;;
11590
11591gnu*)
11592 version_type=linux
11593 need_lib_prefix=no
11594 need_version=no
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 shlibpath_var=LD_LIBRARY_PATH
11598 hardcode_into_libs=yes
11599 ;;
11600
43e02a8a
RW
11601haiku*)
11602 version_type=linux
11603 need_lib_prefix=no
11604 need_version=no
11605 dynamic_linker="$host_os runtime_loader"
11606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11607 soname_spec='${libname}${release}${shared_ext}$major'
11608 shlibpath_var=LIBRARY_PATH
11609 shlibpath_overrides_runpath=yes
11610 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11611 hardcode_into_libs=yes
11612 ;;
11613
1cf3d07d
SE
11614hpux9* | hpux10* | hpux11*)
11615 # Give a soname corresponding to the major version so that dld.sl refuses to
11616 # link against other versions.
11617 version_type=sunos
11618 need_lib_prefix=no
11619 need_version=no
11620 case $host_cpu in
11621 ia64*)
11622 shrext_cmds='.so'
11623 hardcode_into_libs=yes
11624 dynamic_linker="$host_os dld.so"
11625 shlibpath_var=LD_LIBRARY_PATH
11626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 if test "X$HPUX_IA64_MODE" = X32; then
11630 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11631 else
11632 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11633 fi
11634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11635 ;;
11636 hppa*64*)
11637 shrext_cmds='.sl'
11638 hardcode_into_libs=yes
11639 dynamic_linker="$host_os dld.sl"
11640 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11641 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11643 soname_spec='${libname}${release}${shared_ext}$major'
11644 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11646 ;;
11647 *)
11648 shrext_cmds='.sl'
11649 dynamic_linker="$host_os dld.sl"
11650 shlibpath_var=SHLIB_PATH
11651 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 ;;
11655 esac
43e02a8a 11656 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 11657 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
11658 # or fails outright, so override atomically:
11659 install_override_mode=555
1cf3d07d
SE
11660 ;;
11661
11662interix[3-9]*)
11663 version_type=linux
11664 need_lib_prefix=no
11665 need_version=no
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11667 soname_spec='${libname}${release}${shared_ext}$major'
11668 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 shlibpath_overrides_runpath=no
11671 hardcode_into_libs=yes
11672 ;;
11673
11674irix5* | irix6* | nonstopux*)
11675 case $host_os in
11676 nonstopux*) version_type=nonstopux ;;
11677 *)
11678 if test "$lt_cv_prog_gnu_ld" = yes; then
11679 version_type=linux
11680 else
11681 version_type=irix
11682 fi ;;
11683 esac
11684 need_lib_prefix=no
11685 need_version=no
11686 soname_spec='${libname}${release}${shared_ext}$major'
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11688 case $host_os in
11689 irix5* | nonstopux*)
11690 libsuff= shlibsuff=
11691 ;;
11692 *)
11693 case $LD in # libtool.m4 will add one of these switches to LD
11694 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11695 libsuff= shlibsuff= libmagic=32-bit;;
11696 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11697 libsuff=32 shlibsuff=N32 libmagic=N32;;
11698 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11699 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11700 *) libsuff= shlibsuff= libmagic=never-match;;
11701 esac
11702 ;;
11703 esac
11704 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11705 shlibpath_overrides_runpath=no
11706 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11707 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11708 hardcode_into_libs=yes
11709 ;;
11710
11711# No shared lib support for Linux oldld, aout, or coff.
11712linux*oldld* | linux*aout* | linux*coff*)
11713 dynamic_linker=no
11714 ;;
11715
11716# This must be Linux ELF.
7a9d3fe8 11717linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
11718 version_type=linux
11719 need_lib_prefix=no
11720 need_version=no
11721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11722 soname_spec='${libname}${release}${shared_ext}$major'
11723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 shlibpath_overrides_runpath=no
baafc534 11726
1cf3d07d 11727 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
11728 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11729 $as_echo_n "(cached) " >&6
baafc534
RW
11730else
11731 lt_cv_shlibpath_overrides_runpath=no
11732 save_LDFLAGS=$LDFLAGS
11733 save_libdir=$libdir
11734 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11735 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11736 if test x$gcc_no_link = xyes; then
5213506e 11737 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11738fi
5213506e 11739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11740/* end confdefs.h. */
11741
11742int
11743main ()
11744{
11745
11746 ;
11747 return 0;
11748}
11749_ACEOF
5213506e
RW
11750if ac_fn_c_try_link "$LINENO"; then :
11751 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 11752 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 11753fi
1cf3d07d 11754fi
5213506e
RW
11755rm -f core conftest.err conftest.$ac_objext \
11756 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
11757 LDFLAGS=$save_LDFLAGS
11758 libdir=$save_libdir
11759
11760fi
11761
11762 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
11763
11764 # This implies no fast_install, which is unacceptable.
11765 # Some rework will be needed to allow for fast_install
11766 # before this can be enabled.
11767 hardcode_into_libs=yes
11768
11769 # Append ld.so.conf contents to the search path
11770 if test -f /etc/ld.so.conf; then
43e02a8a 11771 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
11772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11773 fi
11774
11775 # We used to test for /lib/ld.so.1 and disable shared libraries on
11776 # powerpc, because MkLinux only supported shared libraries with the
11777 # GNU dynamic linker. Since this was broken with cross compilers,
11778 # most powerpc-linux boxes support dynamic linking these days and
11779 # people can always --disable-shared, the test was removed, and we
11780 # assume the GNU/Linux dynamic linker is in use.
11781 dynamic_linker='GNU/Linux ld.so'
11782 ;;
11783
11784netbsd*)
11785 version_type=sunos
11786 need_lib_prefix=no
11787 need_version=no
11788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11791 dynamic_linker='NetBSD (a.out) ld.so'
11792 else
11793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11794 soname_spec='${libname}${release}${shared_ext}$major'
11795 dynamic_linker='NetBSD ld.elf_so'
11796 fi
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=yes
11799 hardcode_into_libs=yes
11800 ;;
11801
11802newsos6)
11803 version_type=linux
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 shlibpath_overrides_runpath=yes
11807 ;;
11808
11809*nto* | *qnx*)
11810 version_type=qnx
11811 need_lib_prefix=no
11812 need_version=no
11813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814 soname_spec='${libname}${release}${shared_ext}$major'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 shlibpath_overrides_runpath=no
11817 hardcode_into_libs=yes
11818 dynamic_linker='ldqnx.so'
11819 ;;
11820
11821openbsd*)
11822 version_type=sunos
11823 sys_lib_dlsearch_path_spec="/usr/lib"
11824 need_lib_prefix=no
11825 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11826 case $host_os in
11827 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11828 *) need_version=no ;;
11829 esac
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11834 case $host_os in
11835 openbsd2.[89] | openbsd2.[89].*)
11836 shlibpath_overrides_runpath=no
11837 ;;
11838 *)
11839 shlibpath_overrides_runpath=yes
11840 ;;
11841 esac
11842 else
11843 shlibpath_overrides_runpath=yes
11844 fi
11845 ;;
11846
11847os2*)
11848 libname_spec='$name'
11849 shrext_cmds=".dll"
11850 need_lib_prefix=no
11851 library_names_spec='$libname${shared_ext} $libname.a'
11852 dynamic_linker='OS/2 ld.exe'
11853 shlibpath_var=LIBPATH
11854 ;;
11855
11856osf3* | osf4* | osf5*)
11857 version_type=osf
11858 need_lib_prefix=no
11859 need_version=no
11860 soname_spec='${libname}${release}${shared_ext}$major'
11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11862 shlibpath_var=LD_LIBRARY_PATH
11863 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11864 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11865 ;;
11866
11867rdos*)
11868 dynamic_linker=no
11869 ;;
11870
11871solaris*)
11872 version_type=linux
11873 need_lib_prefix=no
11874 need_version=no
11875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11876 soname_spec='${libname}${release}${shared_ext}$major'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 shlibpath_overrides_runpath=yes
11879 hardcode_into_libs=yes
11880 # ldd complains unless libraries are executable
11881 postinstall_cmds='chmod +x $lib'
11882 ;;
11883
11884sunos4*)
11885 version_type=sunos
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11887 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath=yes
11890 if test "$with_gnu_ld" = yes; then
11891 need_lib_prefix=no
11892 fi
11893 need_version=yes
11894 ;;
11895
11896sysv4 | sysv4.3*)
11897 version_type=linux
11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11899 soname_spec='${libname}${release}${shared_ext}$major'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 case $host_vendor in
11902 sni)
11903 shlibpath_overrides_runpath=no
11904 need_lib_prefix=no
11905 runpath_var=LD_RUN_PATH
11906 ;;
11907 siemens)
11908 need_lib_prefix=no
11909 ;;
11910 motorola)
11911 need_lib_prefix=no
11912 need_version=no
11913 shlibpath_overrides_runpath=no
11914 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11915 ;;
11916 esac
11917 ;;
11918
11919sysv4*MP*)
11920 if test -d /usr/nec ;then
11921 version_type=linux
11922 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11923 soname_spec='$libname${shared_ext}.$major'
11924 shlibpath_var=LD_LIBRARY_PATH
11925 fi
11926 ;;
11927
11928sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11929 version_type=freebsd-elf
11930 need_lib_prefix=no
11931 need_version=no
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11933 soname_spec='${libname}${release}${shared_ext}$major'
11934 shlibpath_var=LD_LIBRARY_PATH
11935 shlibpath_overrides_runpath=yes
11936 hardcode_into_libs=yes
11937 if test "$with_gnu_ld" = yes; then
11938 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11939 else
11940 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11941 case $host_os in
11942 sco3.2v5*)
11943 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11944 ;;
11945 esac
11946 fi
11947 sys_lib_dlsearch_path_spec='/usr/lib'
11948 ;;
11949
11950tpf*)
11951 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11952 version_type=linux
11953 need_lib_prefix=no
11954 need_version=no
d58dead8 11955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
11956 shlibpath_var=LD_LIBRARY_PATH
11957 shlibpath_overrides_runpath=no
11958 hardcode_into_libs=yes
11959 ;;
11960
11961uts4*)
11962 version_type=linux
11963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11964 soname_spec='${libname}${release}${shared_ext}$major'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 ;;
11967
11968*)
11969 dynamic_linker=no
11970 ;;
11971esac
5213506e
RW
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11973$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
11974test "$dynamic_linker" = no && can_build_shared=no
11975
11976variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11977if test "$GCC" = yes; then
11978 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11979fi
11980
d58dead8
PG
11981if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11982 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11983fi
11984if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11985 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11986fi
11987
1cf3d07d
SE
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
43e02a8a
RW
12068
12069
12070
12071
12072
1cf3d07d
SE
12073
12074
12075
12076
12077
12078
5213506e
RW
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12080$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
12081hardcode_action=
12082if test -n "$hardcode_libdir_flag_spec" ||
12083 test -n "$runpath_var" ||
12084 test "X$hardcode_automatic" = "Xyes" ; then
12085
12086 # We can hardcode non-existent directories.
12087 if test "$hardcode_direct" != no &&
12088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12089 # have to relink, otherwise we might link with an installed library
12090 # when we should be linking with a yet-to-be-installed one
12091 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12092 test "$hardcode_minus_L" != no; then
12093 # Linking always hardcodes the temporary library directory.
12094 hardcode_action=relink
12095 else
12096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12097 hardcode_action=immediate
12098 fi
12099else
12100 # We cannot hardcode anything, or else we can only hardcode existing
12101 # directories.
12102 hardcode_action=unsupported
12103fi
5213506e
RW
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12105$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
12106
12107if test "$hardcode_action" = relink ||
12108 test "$inherit_rpath" = yes; then
12109 # Fast installation is not supported
12110 enable_fast_install=no
12111elif test "$shlibpath_overrides_runpath" = yes ||
12112 test "$enable_shared" = no; then
12113 # Fast installation is not necessary
12114 enable_fast_install=needless
12115fi
12116
12117
12118
12119
12120
12121
12122 if test "x$enable_dlopen" != xyes; then
12123 enable_dlopen=unknown
12124 enable_dlopen_self=unknown
12125 enable_dlopen_self_static=unknown
12126else
12127 lt_cv_dlopen=no
12128 lt_cv_dlopen_libs=
12129
12130 case $host_os in
12131 beos*)
12132 lt_cv_dlopen="load_add_on"
12133 lt_cv_dlopen_libs=
12134 lt_cv_dlopen_self=yes
12135 ;;
12136
d58dead8 12137 mingw* | pw32* | cegcc*)
1cf3d07d
SE
12138 lt_cv_dlopen="LoadLibrary"
12139 lt_cv_dlopen_libs=
12140 ;;
12141
12142 cygwin*)
12143 lt_cv_dlopen="dlopen"
12144 lt_cv_dlopen_libs=
12145 ;;
12146
12147 darwin*)
12148 # if libdl is installed we need to link against it
5213506e
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12150$as_echo_n "checking for dlopen in -ldl... " >&6; }
12151if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12153else
12154 ac_check_lib_save_LIBS=$LIBS
12155LIBS="-ldl $LIBS"
12156if test x$gcc_no_link = xyes; then
5213506e 12157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12158fi
5213506e 12159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12160/* end confdefs.h. */
12161
5213506e
RW
12162/* Override any GCC internal prototype to avoid an error.
12163 Use char because int might match the return type of a GCC
12164 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12165#ifdef __cplusplus
12166extern "C"
12167#endif
1cf3d07d
SE
12168char dlopen ();
12169int
12170main ()
12171{
5213506e 12172return dlopen ();
1cf3d07d
SE
12173 ;
12174 return 0;
12175}
12176_ACEOF
5213506e 12177if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12178 ac_cv_lib_dl_dlopen=yes
12179else
5213506e 12180 ac_cv_lib_dl_dlopen=no
1cf3d07d 12181fi
5213506e
RW
12182rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12184LIBS=$ac_check_lib_save_LIBS
12185fi
5213506e
RW
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12187$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12188if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
12189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12190else
12191
12192 lt_cv_dlopen="dyld"
12193 lt_cv_dlopen_libs=
12194 lt_cv_dlopen_self=yes
12195
12196fi
12197
12198 ;;
12199
12200 *)
5213506e
RW
12201 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12202if test "x$ac_cv_func_shl_load" = x""yes; then :
1cf3d07d
SE
12203 lt_cv_dlopen="shl_load"
12204else
5213506e
RW
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12206$as_echo_n "checking for shl_load in -ldld... " >&6; }
12207if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12209else
12210 ac_check_lib_save_LIBS=$LIBS
12211LIBS="-ldld $LIBS"
12212if test x$gcc_no_link = xyes; then
5213506e 12213 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12214fi
5213506e 12215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12216/* end confdefs.h. */
12217
5213506e
RW
12218/* Override any GCC internal prototype to avoid an error.
12219 Use char because int might match the return type of a GCC
12220 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12221#ifdef __cplusplus
12222extern "C"
12223#endif
1cf3d07d
SE
12224char shl_load ();
12225int
12226main ()
12227{
5213506e 12228return shl_load ();
1cf3d07d
SE
12229 ;
12230 return 0;
12231}
12232_ACEOF
5213506e 12233if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12234 ac_cv_lib_dld_shl_load=yes
12235else
5213506e 12236 ac_cv_lib_dld_shl_load=no
1cf3d07d 12237fi
5213506e
RW
12238rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12240LIBS=$ac_check_lib_save_LIBS
12241fi
5213506e
RW
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12243$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12244if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
d58dead8 12245 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 12246else
5213506e
RW
12247 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12248if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
12249 lt_cv_dlopen="dlopen"
12250else
5213506e
RW
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12252$as_echo_n "checking for dlopen in -ldl... " >&6; }
12253if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12254 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12255else
12256 ac_check_lib_save_LIBS=$LIBS
12257LIBS="-ldl $LIBS"
12258if test x$gcc_no_link = xyes; then
5213506e 12259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12260fi
5213506e 12261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12262/* end confdefs.h. */
12263
5213506e
RW
12264/* Override any GCC internal prototype to avoid an error.
12265 Use char because int might match the return type of a GCC
12266 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12267#ifdef __cplusplus
12268extern "C"
12269#endif
1cf3d07d
SE
12270char dlopen ();
12271int
12272main ()
12273{
5213506e 12274return dlopen ();
1cf3d07d
SE
12275 ;
12276 return 0;
12277}
12278_ACEOF
5213506e 12279if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12280 ac_cv_lib_dl_dlopen=yes
12281else
5213506e 12282 ac_cv_lib_dl_dlopen=no
1cf3d07d 12283fi
5213506e
RW
12284rm -f core conftest.err conftest.$ac_objext \
12285 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12286LIBS=$ac_check_lib_save_LIBS
12287fi
5213506e
RW
12288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12289$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12290if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
12291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12292else
5213506e
RW
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12294$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12295if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12297else
12298 ac_check_lib_save_LIBS=$LIBS
12299LIBS="-lsvld $LIBS"
12300if test x$gcc_no_link = xyes; then
5213506e 12301 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12302fi
5213506e 12303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12304/* end confdefs.h. */
12305
5213506e
RW
12306/* Override any GCC internal prototype to avoid an error.
12307 Use char because int might match the return type of a GCC
12308 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12309#ifdef __cplusplus
12310extern "C"
12311#endif
1cf3d07d
SE
12312char dlopen ();
12313int
12314main ()
12315{
5213506e 12316return dlopen ();
1cf3d07d
SE
12317 ;
12318 return 0;
12319}
12320_ACEOF
5213506e 12321if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12322 ac_cv_lib_svld_dlopen=yes
12323else
5213506e 12324 ac_cv_lib_svld_dlopen=no
1cf3d07d 12325fi
5213506e
RW
12326rm -f core conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12328LIBS=$ac_check_lib_save_LIBS
12329fi
5213506e
RW
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12331$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12332if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d
SE
12333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12334else
5213506e
RW
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12336$as_echo_n "checking for dld_link in -ldld... " >&6; }
12337if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12338 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12339else
12340 ac_check_lib_save_LIBS=$LIBS
12341LIBS="-ldld $LIBS"
12342if test x$gcc_no_link = xyes; then
5213506e 12343 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12344fi
5213506e 12345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12346/* end confdefs.h. */
12347
5213506e
RW
12348/* Override any GCC internal prototype to avoid an error.
12349 Use char because int might match the return type of a GCC
12350 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12351#ifdef __cplusplus
12352extern "C"
12353#endif
1cf3d07d
SE
12354char dld_link ();
12355int
12356main ()
12357{
5213506e 12358return dld_link ();
1cf3d07d
SE
12359 ;
12360 return 0;
12361}
12362_ACEOF
5213506e 12363if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12364 ac_cv_lib_dld_dld_link=yes
12365else
5213506e 12366 ac_cv_lib_dld_dld_link=no
1cf3d07d 12367fi
5213506e
RW
12368rm -f core conftest.err conftest.$ac_objext \
12369 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12370LIBS=$ac_check_lib_save_LIBS
12371fi
5213506e
RW
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12373$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12374if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
d58dead8 12375 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
12376fi
12377
12378
12379fi
12380
12381
12382fi
12383
12384
12385fi
12386
12387
12388fi
12389
12390
12391fi
12392
12393 ;;
12394 esac
12395
12396 if test "x$lt_cv_dlopen" != xno; then
12397 enable_dlopen=yes
12398 else
12399 enable_dlopen=no
12400 fi
12401
12402 case $lt_cv_dlopen in
12403 dlopen)
12404 save_CPPFLAGS="$CPPFLAGS"
12405 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12406
12407 save_LDFLAGS="$LDFLAGS"
12408 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12409
12410 save_LIBS="$LIBS"
12411 LIBS="$lt_cv_dlopen_libs $LIBS"
12412
5213506e
RW
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12414$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12415if test "${lt_cv_dlopen_self+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12417else
12418 if test "$cross_compiling" = yes; then :
12419 lt_cv_dlopen_self=cross
12420else
12421 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12422 lt_status=$lt_dlunknown
12423 cat > conftest.$ac_ext <<_LT_EOF
3c36aa6b 12424#line 12424 "configure"
1cf3d07d
SE
12425#include "confdefs.h"
12426
12427#if HAVE_DLFCN_H
12428#include <dlfcn.h>
12429#endif
12430
12431#include <stdio.h>
12432
12433#ifdef RTLD_GLOBAL
12434# define LT_DLGLOBAL RTLD_GLOBAL
12435#else
12436# ifdef DL_GLOBAL
12437# define LT_DLGLOBAL DL_GLOBAL
12438# else
12439# define LT_DLGLOBAL 0
12440# endif
12441#endif
12442
12443/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12444 find out it does not work in some platform. */
12445#ifndef LT_DLLAZY_OR_NOW
12446# ifdef RTLD_LAZY
12447# define LT_DLLAZY_OR_NOW RTLD_LAZY
12448# else
12449# ifdef DL_LAZY
12450# define LT_DLLAZY_OR_NOW DL_LAZY
12451# else
12452# ifdef RTLD_NOW
12453# define LT_DLLAZY_OR_NOW RTLD_NOW
12454# else
12455# ifdef DL_NOW
12456# define LT_DLLAZY_OR_NOW DL_NOW
12457# else
12458# define LT_DLLAZY_OR_NOW 0
12459# endif
12460# endif
12461# endif
12462# endif
12463#endif
12464
43e02a8a
RW
12465/* When -fvisbility=hidden is used, assume the code has been annotated
12466 correspondingly for the symbols needed. */
12467#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12468void fnord () __attribute__((visibility("default")));
12469#endif
12470
12471void fnord () { int i=42; }
1cf3d07d
SE
12472int main ()
12473{
12474 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12475 int status = $lt_dlunknown;
12476
12477 if (self)
12478 {
12479 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12480 else
12481 {
12482 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12483 else puts (dlerror ());
12484 }
1cf3d07d
SE
12485 /* dlclose (self); */
12486 }
12487 else
12488 puts (dlerror ());
12489
d58dead8 12490 return status;
1cf3d07d
SE
12491}
12492_LT_EOF
5213506e 12493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12494 (eval $ac_link) 2>&5
12495 ac_status=$?
5213506e
RW
12496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12497 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12498 (./conftest; exit; ) >&5 2>/dev/null
12499 lt_status=$?
12500 case x$lt_status in
12501 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12502 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12503 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12504 esac
12505 else :
12506 # compilation failed
12507 lt_cv_dlopen_self=no
12508 fi
12509fi
12510rm -fr conftest*
12511
12512
12513fi
5213506e
RW
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12515$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
12516
12517 if test "x$lt_cv_dlopen_self" = xyes; then
12518 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12520$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12521if test "${lt_cv_dlopen_self_static+set}" = set; then :
12522 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12523else
12524 if test "$cross_compiling" = yes; then :
12525 lt_cv_dlopen_self_static=cross
12526else
12527 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12528 lt_status=$lt_dlunknown
12529 cat > conftest.$ac_ext <<_LT_EOF
3c36aa6b 12530#line 12530 "configure"
1cf3d07d
SE
12531#include "confdefs.h"
12532
12533#if HAVE_DLFCN_H
12534#include <dlfcn.h>
12535#endif
12536
12537#include <stdio.h>
12538
12539#ifdef RTLD_GLOBAL
12540# define LT_DLGLOBAL RTLD_GLOBAL
12541#else
12542# ifdef DL_GLOBAL
12543# define LT_DLGLOBAL DL_GLOBAL
12544# else
12545# define LT_DLGLOBAL 0
12546# endif
12547#endif
12548
12549/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12550 find out it does not work in some platform. */
12551#ifndef LT_DLLAZY_OR_NOW
12552# ifdef RTLD_LAZY
12553# define LT_DLLAZY_OR_NOW RTLD_LAZY
12554# else
12555# ifdef DL_LAZY
12556# define LT_DLLAZY_OR_NOW DL_LAZY
12557# else
12558# ifdef RTLD_NOW
12559# define LT_DLLAZY_OR_NOW RTLD_NOW
12560# else
12561# ifdef DL_NOW
12562# define LT_DLLAZY_OR_NOW DL_NOW
12563# else
12564# define LT_DLLAZY_OR_NOW 0
12565# endif
12566# endif
12567# endif
12568# endif
12569#endif
12570
43e02a8a
RW
12571/* When -fvisbility=hidden is used, assume the code has been annotated
12572 correspondingly for the symbols needed. */
12573#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12574void fnord () __attribute__((visibility("default")));
12575#endif
12576
12577void fnord () { int i=42; }
1cf3d07d
SE
12578int main ()
12579{
12580 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12581 int status = $lt_dlunknown;
12582
12583 if (self)
12584 {
12585 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12586 else
12587 {
12588 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12589 else puts (dlerror ());
12590 }
1cf3d07d
SE
12591 /* dlclose (self); */
12592 }
12593 else
12594 puts (dlerror ());
12595
d58dead8 12596 return status;
1cf3d07d
SE
12597}
12598_LT_EOF
5213506e 12599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12600 (eval $ac_link) 2>&5
12601 ac_status=$?
5213506e
RW
12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12604 (./conftest; exit; ) >&5 2>/dev/null
12605 lt_status=$?
12606 case x$lt_status in
12607 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12608 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12609 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12610 esac
12611 else :
12612 # compilation failed
12613 lt_cv_dlopen_self_static=no
12614 fi
12615fi
12616rm -fr conftest*
12617
12618
12619fi
5213506e
RW
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12621$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
12622 fi
12623
12624 CPPFLAGS="$save_CPPFLAGS"
12625 LDFLAGS="$save_LDFLAGS"
12626 LIBS="$save_LIBS"
12627 ;;
12628 esac
12629
12630 case $lt_cv_dlopen_self in
12631 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12632 *) enable_dlopen_self=unknown ;;
12633 esac
12634
12635 case $lt_cv_dlopen_self_static in
12636 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12637 *) enable_dlopen_self_static=unknown ;;
12638 esac
12639fi
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657striplib=
12658old_striplib=
5213506e
RW
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12660$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
12661if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12662 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12663 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12665$as_echo "yes" >&6; }
1cf3d07d
SE
12666else
12667# FIXME - insert some real tests, host_os isn't really good enough
12668 case $host_os in
12669 darwin*)
12670 if test -n "$STRIP" ; then
12671 striplib="$STRIP -x"
12672 old_striplib="$STRIP -S"
5213506e
RW
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12674$as_echo "yes" >&6; }
1cf3d07d 12675 else
5213506e
RW
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677$as_echo "no" >&6; }
1cf3d07d
SE
12678 fi
12679 ;;
12680 *)
5213506e
RW
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12682$as_echo "no" >&6; }
1cf3d07d
SE
12683 ;;
12684 esac
12685fi
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
43e02a8a
RW
12698 # Report which library types will actually be built
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12700$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12702$as_echo "$can_build_shared" >&6; }
1cf3d07d 12703
43e02a8a
RW
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12705$as_echo_n "checking whether to build shared libraries... " >&6; }
12706 test "$can_build_shared" = "no" && enable_shared=no
1cf3d07d 12707
43e02a8a
RW
12708 # On AIX, shared libraries and static libraries use the same namespace, and
12709 # are all built from PIC.
12710 case $host_os in
12711 aix3*)
12712 test "$enable_shared" = yes && enable_static=no
12713 if test -n "$RANLIB"; then
12714 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12715 postinstall_cmds='$RANLIB $lib'
12716 fi
12717 ;;
1cf3d07d 12718
43e02a8a
RW
12719 aix[4-9]*)
12720 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12721 test "$enable_shared" = yes && enable_static=no
12722 fi
12723 ;;
12724 esac
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12726$as_echo "$enable_shared" >&6; }
1cf3d07d 12727
43e02a8a
RW
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12729$as_echo_n "checking whether to build static libraries... " >&6; }
12730 # Make sure either enable_shared or enable_static is yes.
12731 test "$enable_shared" = yes || enable_static=yes
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12733$as_echo "$enable_static" >&6; }
1cf3d07d 12734
1cf3d07d 12735
1cf3d07d 12736
1cf3d07d
SE
12737
12738fi
1cf3d07d
SE
12739ac_ext=c
12740ac_cpp='$CPP $CPPFLAGS'
12741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12743ac_compiler_gnu=$ac_cv_c_compiler_gnu
12744
43e02a8a
RW
12745CC="$lt_save_CC"
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759 ac_config_commands="$ac_config_commands libtool"
12760
12761
12762
12763
12764# Only expand once:
12765
12766
12767
12768
7de6ba7a
DK
12769
12770case $host in
12771 *-cygwin* | *-mingw*)
12772 # 'host' will be top-level target in the case of a target lib,
12773 # we must compare to with_cross_host to decide if this is a native
12774 # or cross-compiler and select where to install dlls appropriately.
12775 if test -n "$with_cross_host" &&
12776 test x"$with_cross_host" != x"no"; then
12777 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12778 else
12779 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12780 fi
12781 ;;
12782 *)
12783 lt_host_flags=
12784 ;;
12785esac
12786
12787
12788
12789
12790
43e02a8a 12791#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
1cf3d07d 12792
43e02a8a
RW
12793# We need gfortran to compile parts of the library
12794#AC_PROG_FC(gfortran)
12795FC="$GFORTRAN"
5213506e
RW
12796ac_ext=${ac_fc_srcext-f}
12797ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12798ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
12799ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12800if test -n "$ac_tool_prefix"; then
43e02a8a 12801 for ac_prog in gfortran
1cf3d07d
SE
12802 do
12803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806$as_echo_n "checking for $ac_word... " >&6; }
12807if test "${ac_cv_prog_FC+set}" = set; then :
12808 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12809else
12810 if test -n "$FC"; then
12811 ac_cv_prog_FC="$FC" # Let the user override the test.
12812else
12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814for as_dir in $PATH
12815do
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
5213506e
RW
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 12820 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5213506e 12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
12822 break 2
12823 fi
12824done
5213506e
RW
12825 done
12826IFS=$as_save_IFS
1cf3d07d
SE
12827
12828fi
12829fi
12830FC=$ac_cv_prog_FC
12831if test -n "$FC"; then
5213506e
RW
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12833$as_echo "$FC" >&6; }
1cf3d07d 12834else
5213506e
RW
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
1cf3d07d
SE
12837fi
12838
5213506e 12839
1cf3d07d
SE
12840 test -n "$FC" && break
12841 done
12842fi
12843if test -z "$FC"; then
12844 ac_ct_FC=$FC
43e02a8a 12845 for ac_prog in gfortran
1cf3d07d
SE
12846do
12847 # Extract the first word of "$ac_prog", so it can be a program name with args.
12848set dummy $ac_prog; ac_word=$2
5213506e
RW
12849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850$as_echo_n "checking for $ac_word... " >&6; }
12851if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12852 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12853else
12854 if test -n "$ac_ct_FC"; then
12855 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12856else
12857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12858for as_dir in $PATH
12859do
12860 IFS=$as_save_IFS
12861 test -z "$as_dir" && as_dir=.
5213506e
RW
12862 for ac_exec_ext in '' $ac_executable_extensions; do
12863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 12864 ac_cv_prog_ac_ct_FC="$ac_prog"
5213506e 12865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
12866 break 2
12867 fi
12868done
5213506e
RW
12869 done
12870IFS=$as_save_IFS
1cf3d07d
SE
12871
12872fi
12873fi
12874ac_ct_FC=$ac_cv_prog_ac_ct_FC
12875if test -n "$ac_ct_FC"; then
5213506e
RW
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12877$as_echo "$ac_ct_FC" >&6; }
1cf3d07d 12878else
5213506e
RW
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880$as_echo "no" >&6; }
1cf3d07d
SE
12881fi
12882
5213506e 12883
1cf3d07d 12884 test -n "$ac_ct_FC" && break
38d24731
RW
12885done
12886
5213506e
RW
12887 if test "x$ac_ct_FC" = x; then
12888 FC=""
12889 else
12890 case $cross_compiling:$ac_tool_warned in
12891yes:)
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12894ac_tool_warned=yes ;;
12895esac
12896 FC=$ac_ct_FC
12897 fi
1cf3d07d
SE
12898fi
12899
12900
12901# Provide some information about the compiler.
5213506e
RW
12902$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12903set X $ac_compile
12904ac_compiler=$2
12905for ac_option in --version -v -V -qversion; do
12906 { { ac_try="$ac_compiler $ac_option >&5"
12907case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910esac
12911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12912$as_echo "$ac_try_echo"; } >&5
12913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 12914 ac_status=$?
5213506e
RW
12915 if test -s conftest.err; then
12916 sed '10a\
12917... rest of stderr output deleted ...
12918 10q' conftest.err >conftest.er1
12919 cat conftest.er1 >&5
12920 rm -f conftest.er1 conftest.err
12921 fi
12922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12923 test $ac_status = 0; }
12924done
1cf3d07d
SE
12925rm -f a.out
12926
12927# If we don't use `.F' as extension, the preprocessor is not run on the
12928# input file. (Note that this only needs to work for GNU compilers.)
12929ac_save_ext=$ac_ext
12930ac_ext=F
5213506e
RW
12931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12932$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12933if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12934 $as_echo_n "(cached) " >&6
1cf3d07d 12935else
5213506e 12936 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
12937 program main
12938#ifndef __GNUC__
12939 choke me
12940#endif
12941
12942 end
12943_ACEOF
5213506e 12944if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
12945 ac_compiler_gnu=yes
12946else
5213506e 12947 ac_compiler_gnu=no
1cf3d07d 12948fi
5213506e 12949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
12950ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12951
12952fi
5213506e
RW
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12954$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
1cf3d07d 12955ac_ext=$ac_save_ext
5213506e
RW
12956ac_test_FCFLAGS=${FCFLAGS+set}
12957ac_save_FCFLAGS=$FCFLAGS
1cf3d07d 12958FCFLAGS=
5213506e
RW
12959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12960$as_echo_n "checking whether $FC accepts -g... " >&6; }
12961if test "${ac_cv_prog_fc_g+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12963else
12964 FCFLAGS=-g
5213506e 12965cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
12966 program main
12967
12968 end
12969_ACEOF
5213506e 12970if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
12971 ac_cv_prog_fc_g=yes
12972else
5213506e 12973 ac_cv_prog_fc_g=no
1cf3d07d 12974fi
5213506e 12975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
12976
12977fi
5213506e
RW
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12979$as_echo "$ac_cv_prog_fc_g" >&6; }
12980if test "$ac_test_FCFLAGS" = set; then
12981 FCFLAGS=$ac_save_FCFLAGS
1cf3d07d
SE
12982elif test $ac_cv_prog_fc_g = yes; then
12983 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12984 FCFLAGS="-g -O2"
12985 else
12986 FCFLAGS="-g"
12987 fi
12988else
12989 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12990 FCFLAGS="-O2"
12991 else
12992 FCFLAGS=
12993 fi
12994fi
12995
12996ac_ext=c
12997ac_cpp='$CPP $CPPFLAGS'
12998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13000ac_compiler_gnu=$ac_cv_c_compiler_gnu
13001
5213506e
RW
13002 ac_ext=${ac_fc_srcext-f}
13003ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13004ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
13005ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13006
13007
43e02a8a
RW
13008if test -z "$FC" || test "X$FC" = "Xno"; then
13009 _lt_disable_FC=yes
13010fi
13011
1cf3d07d
SE
13012archive_cmds_need_lc_FC=no
13013allow_undefined_flag_FC=
13014always_export_symbols_FC=no
13015archive_expsym_cmds_FC=
13016export_dynamic_flag_spec_FC=
13017hardcode_direct_FC=no
13018hardcode_direct_absolute_FC=no
13019hardcode_libdir_flag_spec_FC=
13020hardcode_libdir_flag_spec_ld_FC=
13021hardcode_libdir_separator_FC=
13022hardcode_minus_L_FC=no
13023hardcode_automatic_FC=no
13024inherit_rpath_FC=no
13025module_cmds_FC=
13026module_expsym_cmds_FC=
13027link_all_deplibs_FC=unknown
13028old_archive_cmds_FC=$old_archive_cmds
43e02a8a
RW
13029reload_flag_FC=$reload_flag
13030reload_cmds_FC=$reload_cmds
1cf3d07d
SE
13031no_undefined_flag_FC=
13032whole_archive_flag_spec_FC=
13033enable_shared_with_static_runtimes_FC=no
13034
13035# Source file extension for fc test sources.
13036ac_ext=${ac_fc_srcext-f}
13037
13038# Object file extension for compiled fc test sources.
13039objext=o
13040objext_FC=$objext
13041
13042# No sense in running all these tests if we already determined that
13043# the FC compiler isn't working. Some variables (like enable_shared)
13044# are currently assumed to apply to all compilers on this platform,
13045# and will be corrupted by setting them based on a non-working compiler.
13046if test "$_lt_disable_FC" != yes; then
13047 # Code to be used in simple compile tests
13048 lt_simple_compile_test_code="\
13049 subroutine t
13050 return
13051 end
13052"
13053
13054 # Code to be used in simple link tests
13055 lt_simple_link_test_code="\
13056 program t
13057 end
13058"
13059
13060 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13061
13062
13063
13064
13065
13066
13067# If no C compiler was specified, use CC.
13068LTCC=${LTCC-"$CC"}
13069
13070# If no C compiler flags were specified, use CFLAGS.
13071LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13072
13073# Allow CC to be a program name with arguments.
13074compiler=$CC
13075
13076
13077 # save warnings/boilerplate of simple test code
13078 ac_outfile=conftest.$ac_objext
13079echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13080eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13081_lt_compiler_boilerplate=`cat conftest.err`
13082$RM conftest*
13083
13084 ac_outfile=conftest.$ac_objext
13085echo "$lt_simple_link_test_code" >conftest.$ac_ext
13086eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13087_lt_linker_boilerplate=`cat conftest.err`
d58dead8 13088$RM -r conftest*
1cf3d07d
SE
13089
13090
13091 # Allow CC to be a program name with arguments.
13092 lt_save_CC="$CC"
d58dead8 13093 lt_save_GCC=$GCC
1cf3d07d
SE
13094 CC=${FC-"f95"}
13095 compiler=$CC
d58dead8
PG
13096 GCC=$ac_cv_fc_compiler_gnu
13097
1cf3d07d
SE
13098 compiler_FC=$CC
13099 for cc_temp in $compiler""; do
13100 case $cc_temp in
13101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13103 \-*) ;;
13104 *) break;;
13105 esac
13106done
43e02a8a 13107cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
13108
13109
13110 if test -n "$compiler"; then
5213506e
RW
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13112$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13114$as_echo "$can_build_shared" >&6; }
1cf3d07d 13115
5213506e
RW
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13117$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
13118 test "$can_build_shared" = "no" && enable_shared=no
13119
13120 # On AIX, shared libraries and static libraries use the same namespace, and
13121 # are all built from PIC.
13122 case $host_os in
13123 aix3*)
13124 test "$enable_shared" = yes && enable_static=no
13125 if test -n "$RANLIB"; then
13126 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13127 postinstall_cmds='$RANLIB $lib'
13128 fi
13129 ;;
4f6bebc3 13130 aix[4-9]*)
1cf3d07d
SE
13131 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13132 test "$enable_shared" = yes && enable_static=no
13133 fi
13134 ;;
13135 esac
5213506e
RW
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13137$as_echo "$enable_shared" >&6; }
1cf3d07d 13138
5213506e
RW
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13140$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
13141 # Make sure either enable_shared or enable_static is yes.
13142 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13144$as_echo "$enable_static" >&6; }
1cf3d07d
SE
13145
13146 GCC_FC="$ac_cv_fc_compiler_gnu"
13147 LD_FC="$LD"
13148
13149 ## CAVEAT EMPTOR:
13150 ## There is no encapsulation within the following macros, do not change
13151 ## the running order or otherwise move them around unless you know exactly
13152 ## what you are doing...
13153 # Dependencies to place before and after the object being linked:
13154predep_objects_FC=
13155postdep_objects_FC=
13156predeps_FC=
13157postdeps_FC=
13158compiler_lib_search_path_FC=
13159
13160cat > conftest.$ac_ext <<_LT_EOF
13161 subroutine foo
13162 implicit none
13163 integer a
13164 a=0
13165 return
13166 end
13167_LT_EOF
13168
5213506e 13169if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
13170 (eval $ac_compile) 2>&5
13171 ac_status=$?
5213506e
RW
13172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13173 test $ac_status = 0; }; then
1cf3d07d
SE
13174 # Parse the compiler output and extract the necessary
13175 # objects, libraries and library flags.
13176
13177 # Sentinel used to keep track of whether or not we are before
13178 # the conftest object file.
13179 pre_test_object_deps_done=no
13180
d58dead8 13181 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
13182 case $p in
13183
13184 -L* | -R* | -l*)
13185 # Some compilers place space between "-{L,R}" and the path.
13186 # Remove the space.
13187 if test $p = "-L" ||
13188 test $p = "-R"; then
13189 prev=$p
13190 continue
13191 else
13192 prev=
13193 fi
13194
13195 if test "$pre_test_object_deps_done" = no; then
13196 case $p in
13197 -L* | -R*)
13198 # Internal compiler library paths should come after those
13199 # provided the user. The postdeps already come after the
13200 # user supplied libs so there is no need to process them.
13201 if test -z "$compiler_lib_search_path_FC"; then
13202 compiler_lib_search_path_FC="${prev}${p}"
13203 else
13204 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13205 fi
13206 ;;
13207 # The "-l" case would never come before the object being
13208 # linked, so don't bother handling this case.
13209 esac
13210 else
13211 if test -z "$postdeps_FC"; then
13212 postdeps_FC="${prev}${p}"
13213 else
13214 postdeps_FC="${postdeps_FC} ${prev}${p}"
13215 fi
13216 fi
13217 ;;
13218
13219 *.$objext)
13220 # This assumes that the test object file only shows up
13221 # once in the compiler output.
13222 if test "$p" = "conftest.$objext"; then
13223 pre_test_object_deps_done=yes
13224 continue
13225 fi
13226
13227 if test "$pre_test_object_deps_done" = no; then
13228 if test -z "$predep_objects_FC"; then
13229 predep_objects_FC="$p"
13230 else
13231 predep_objects_FC="$predep_objects_FC $p"
13232 fi
13233 else
13234 if test -z "$postdep_objects_FC"; then
13235 postdep_objects_FC="$p"
13236 else
13237 postdep_objects_FC="$postdep_objects_FC $p"
13238 fi
13239 fi
13240 ;;
13241
13242 *) ;; # Ignore the rest.
13243
13244 esac
13245 done
13246
13247 # Clean up.
13248 rm -f a.out a.exe
13249else
13250 echo "libtool.m4: error: problem compiling FC test program"
13251fi
13252
13253$RM -f confest.$objext
13254
13255# PORTME: override above test on systems where it is broken
13256
13257
13258case " $postdeps_FC " in
13259*" -lc "*) archive_cmds_need_lc_FC=no ;;
13260esac
d58dead8
PG
13261 compiler_lib_search_dirs_FC=
13262if test -n "${compiler_lib_search_path_FC}"; then
13263 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13264fi
13265
13266
13267
13268
13269
1cf3d07d
SE
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296 lt_prog_compiler_wl_FC=
13297lt_prog_compiler_pic_FC=
13298lt_prog_compiler_static_FC=
13299
5213506e
RW
13300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13301$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
13302
13303 if test "$GCC" = yes; then
13304 lt_prog_compiler_wl_FC='-Wl,'
13305 lt_prog_compiler_static_FC='-static'
13306
13307 case $host_os in
13308 aix*)
13309 # All AIX code is PIC.
13310 if test "$host_cpu" = ia64; then
13311 # AIX 5 now supports IA64 processor
13312 lt_prog_compiler_static_FC='-Bstatic'
13313 fi
bad8a4a7 13314 lt_prog_compiler_pic_FC='-fPIC'
1cf3d07d
SE
13315 ;;
13316
13317 amigaos*)
d58dead8
PG
13318 case $host_cpu in
13319 powerpc)
13320 # see comment about AmigaOS4 .so support
13321 lt_prog_compiler_pic_FC='-fPIC'
13322 ;;
13323 m68k)
13324 # FIXME: we need at least 68020 code to build shared libraries, but
13325 # adding the `-m68020' flag to GCC prevents building anything better,
13326 # like `-m68040'.
13327 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13328 ;;
13329 esac
1cf3d07d
SE
13330 ;;
13331
13332 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13333 # PIC is the default for these OSes.
13334 ;;
13335
d58dead8 13336 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13337 # This hack is so that the source file can tell whether it is being
13338 # built for inclusion in a dll (and should export symbols for example).
13339 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13340 # (--disable-auto-import) libraries
13341 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13342 ;;
13343
13344 darwin* | rhapsody*)
13345 # PIC is the default on this platform
13346 # Common symbols not allowed in MH_DYLIB files
13347 lt_prog_compiler_pic_FC='-fno-common'
13348 ;;
13349
43e02a8a
RW
13350 haiku*)
13351 # PIC is the default for Haiku.
13352 # The "-static" flag exists, but is broken.
13353 lt_prog_compiler_static_FC=
13354 ;;
13355
1cf3d07d 13356 hpux*)
d58dead8
PG
13357 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13358 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13359 # sets the default TLS model and affects inlining.
1cf3d07d 13360 case $host_cpu in
d58dead8 13361 hppa*64*)
1cf3d07d
SE
13362 # +Z the default
13363 ;;
13364 *)
13365 lt_prog_compiler_pic_FC='-fPIC'
13366 ;;
13367 esac
13368 ;;
13369
13370 interix[3-9]*)
13371 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13372 # Instead, we relocate shared libraries at runtime.
13373 ;;
13374
13375 msdosdjgpp*)
13376 # Just because we use GCC doesn't mean we suddenly get shared libraries
13377 # on systems that don't support them.
13378 lt_prog_compiler_can_build_shared_FC=no
13379 enable_shared=no
13380 ;;
13381
13382 *nto* | *qnx*)
13383 # QNX uses GNU C++, but need to define -shared option too, otherwise
13384 # it will coredump.
13385 lt_prog_compiler_pic_FC='-fPIC -shared'
13386 ;;
13387
13388 sysv4*MP*)
13389 if test -d /usr/nec; then
13390 lt_prog_compiler_pic_FC=-Kconform_pic
13391 fi
13392 ;;
13393
13394 *)
13395 lt_prog_compiler_pic_FC='-fPIC'
13396 ;;
13397 esac
43e02a8a
RW
13398
13399 case $cc_basename in
13400 nvcc*) # Cuda Compiler Driver 2.2
13401 lt_prog_compiler_wl_FC='-Xlinker '
13402 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13403 ;;
13404 esac
1cf3d07d
SE
13405 else
13406 # PORTME Check for flag to pass linker flags through the system compiler.
13407 case $host_os in
13408 aix*)
13409 lt_prog_compiler_wl_FC='-Wl,'
13410 if test "$host_cpu" = ia64; then
13411 # AIX 5 now supports IA64 processor
13412 lt_prog_compiler_static_FC='-Bstatic'
13413 else
13414 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13415 fi
13416 ;;
1cf3d07d 13417
d58dead8 13418 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13419 # This hack is so that the source file can tell whether it is being
13420 # built for inclusion in a dll (and should export symbols for example).
13421 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13422 ;;
13423
13424 hpux9* | hpux10* | hpux11*)
13425 lt_prog_compiler_wl_FC='-Wl,'
13426 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13427 # not for PA HP-UX.
13428 case $host_cpu in
13429 hppa*64*|ia64*)
13430 # +Z the default
13431 ;;
13432 *)
13433 lt_prog_compiler_pic_FC='+Z'
13434 ;;
13435 esac
13436 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13437 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13438 ;;
13439
13440 irix5* | irix6* | nonstopux*)
13441 lt_prog_compiler_wl_FC='-Wl,'
13442 # PIC (with -KPIC) is the default.
13443 lt_prog_compiler_static_FC='-non_shared'
13444 ;;
13445
7a9d3fe8 13446 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 13447 case $cc_basename in
d58dead8
PG
13448 # old Intel for x86_64 which still supported -KPIC.
13449 ecc*)
1cf3d07d
SE
13450 lt_prog_compiler_wl_FC='-Wl,'
13451 lt_prog_compiler_pic_FC='-KPIC'
13452 lt_prog_compiler_static_FC='-static'
13453 ;;
d58dead8
PG
13454 # icc used to be incompatible with GCC.
13455 # ICC 10 doesn't accept -KPIC any more.
13456 icc* | ifort*)
13457 lt_prog_compiler_wl_FC='-Wl,'
13458 lt_prog_compiler_pic_FC='-fPIC'
13459 lt_prog_compiler_static_FC='-static'
13460 ;;
13461 # Lahey Fortran 8.1.
13462 lf95*)
13463 lt_prog_compiler_wl_FC='-Wl,'
13464 lt_prog_compiler_pic_FC='--shared'
13465 lt_prog_compiler_static_FC='--static'
13466 ;;
43e02a8a 13467 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
13468 # Portland Group compilers (*not* the Pentium gcc compiler,
13469 # which looks to be a dead project)
13470 lt_prog_compiler_wl_FC='-Wl,'
13471 lt_prog_compiler_pic_FC='-fpic'
13472 lt_prog_compiler_static_FC='-Bstatic'
13473 ;;
13474 ccc*)
13475 lt_prog_compiler_wl_FC='-Wl,'
13476 # All Alpha code is PIC.
13477 lt_prog_compiler_static_FC='-non_shared'
13478 ;;
43e02a8a
RW
13479 xl* | bgxl* | bgf* | mpixl*)
13480 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
13481 lt_prog_compiler_wl_FC='-Wl,'
13482 lt_prog_compiler_pic_FC='-qpic'
13483 lt_prog_compiler_static_FC='-qstaticlink'
13484 ;;
1cf3d07d
SE
13485 *)
13486 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
13487 *Sun\ F* | *Sun*Fortran*)
13488 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
13489 lt_prog_compiler_pic_FC='-KPIC'
13490 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13491 lt_prog_compiler_wl_FC=''
1cf3d07d 13492 ;;
43e02a8a
RW
13493 *Sun\ C*)
13494 # Sun C 5.9
1cf3d07d
SE
13495 lt_prog_compiler_pic_FC='-KPIC'
13496 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13497 lt_prog_compiler_wl_FC='-Wl,'
1cf3d07d
SE
13498 ;;
13499 esac
13500 ;;
13501 esac
13502 ;;
13503
13504 newsos6)
13505 lt_prog_compiler_pic_FC='-KPIC'
13506 lt_prog_compiler_static_FC='-Bstatic'
13507 ;;
13508
13509 *nto* | *qnx*)
13510 # QNX uses GNU C++, but need to define -shared option too, otherwise
13511 # it will coredump.
13512 lt_prog_compiler_pic_FC='-fPIC -shared'
13513 ;;
13514
13515 osf3* | osf4* | osf5*)
13516 lt_prog_compiler_wl_FC='-Wl,'
13517 # All OSF/1 code is PIC.
13518 lt_prog_compiler_static_FC='-non_shared'
13519 ;;
13520
13521 rdos*)
13522 lt_prog_compiler_static_FC='-non_shared'
13523 ;;
13524
13525 solaris*)
13526 lt_prog_compiler_pic_FC='-KPIC'
13527 lt_prog_compiler_static_FC='-Bstatic'
13528 case $cc_basename in
13529 f77* | f90* | f95*)
13530 lt_prog_compiler_wl_FC='-Qoption ld ';;
13531 *)
13532 lt_prog_compiler_wl_FC='-Wl,';;
13533 esac
13534 ;;
13535
13536 sunos4*)
13537 lt_prog_compiler_wl_FC='-Qoption ld '
13538 lt_prog_compiler_pic_FC='-PIC'
13539 lt_prog_compiler_static_FC='-Bstatic'
13540 ;;
13541
13542 sysv4 | sysv4.2uw2* | sysv4.3*)
13543 lt_prog_compiler_wl_FC='-Wl,'
13544 lt_prog_compiler_pic_FC='-KPIC'
13545 lt_prog_compiler_static_FC='-Bstatic'
13546 ;;
13547
13548 sysv4*MP*)
13549 if test -d /usr/nec ;then
13550 lt_prog_compiler_pic_FC='-Kconform_pic'
13551 lt_prog_compiler_static_FC='-Bstatic'
13552 fi
13553 ;;
13554
13555 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13556 lt_prog_compiler_wl_FC='-Wl,'
13557 lt_prog_compiler_pic_FC='-KPIC'
13558 lt_prog_compiler_static_FC='-Bstatic'
13559 ;;
13560
13561 unicos*)
13562 lt_prog_compiler_wl_FC='-Wl,'
13563 lt_prog_compiler_can_build_shared_FC=no
13564 ;;
13565
13566 uts4*)
13567 lt_prog_compiler_pic_FC='-pic'
13568 lt_prog_compiler_static_FC='-Bstatic'
13569 ;;
13570
13571 *)
13572 lt_prog_compiler_can_build_shared_FC=no
13573 ;;
13574 esac
13575 fi
13576
13577case $host_os in
13578 # For platforms which do not support PIC, -DPIC is meaningless:
13579 *djgpp*)
13580 lt_prog_compiler_pic_FC=
13581 ;;
13582 *)
13583 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13584 ;;
13585esac
5213506e
RW
13586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13587$as_echo "$lt_prog_compiler_pic_FC" >&6; }
1cf3d07d
SE
13588
13589
13590
13591#
13592# Check to make sure the PIC flag actually works.
13593#
13594if test -n "$lt_prog_compiler_pic_FC"; then
5213506e
RW
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13596$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13597if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13598 $as_echo_n "(cached) " >&6
1cf3d07d 13599else
d58dead8 13600 lt_cv_prog_compiler_pic_works_FC=no
1cf3d07d
SE
13601 ac_outfile=conftest.$ac_objext
13602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13603 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13604 # Insert the option either (1) after the last *FLAGS variable, or
13605 # (2) before a word containing "conftest.", or (3) at the end.
13606 # Note that $ac_compile itself does not contain backslashes and begins
13607 # with a dollar sign (not a hyphen), so the echo should work correctly.
13608 # The option is referenced via a variable to avoid confusing sed.
13609 lt_compile=`echo "$ac_compile" | $SED \
13610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13612 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13614 (eval "$lt_compile" 2>conftest.err)
13615 ac_status=$?
13616 cat conftest.err >&5
43e02a8a 13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13618 if (exit $ac_status) && test -s "$ac_outfile"; then
13619 # The compiler can only warn and ignore the option if not recognized
13620 # So say no if there are warnings other than the usual output.
43e02a8a 13621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
13622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13623 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 13624 lt_cv_prog_compiler_pic_works_FC=yes
1cf3d07d
SE
13625 fi
13626 fi
13627 $RM conftest*
13628
13629fi
5213506e
RW
13630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13631$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
1cf3d07d 13632
d58dead8 13633if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
1cf3d07d
SE
13634 case $lt_prog_compiler_pic_FC in
13635 "" | " "*) ;;
13636 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13637 esac
13638else
13639 lt_prog_compiler_pic_FC=
13640 lt_prog_compiler_can_build_shared_FC=no
13641fi
13642
13643fi
13644
13645
13646
13647#
13648# Check to make sure the static flag actually works.
13649#
13650wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
5213506e
RW
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13652$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13653if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
1cf3d07d 13655else
d58dead8 13656 lt_cv_prog_compiler_static_works_FC=no
1cf3d07d
SE
13657 save_LDFLAGS="$LDFLAGS"
13658 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13659 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13661 # The linker can only warn and ignore the option if not recognized
13662 # So say no if there are warnings
13663 if test -s conftest.err; then
13664 # Append any errors to the config.log.
13665 cat conftest.err 1>&5
43e02a8a 13666 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
13667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13668 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 13669 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
13670 fi
13671 else
d58dead8 13672 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
13673 fi
13674 fi
d58dead8 13675 $RM -r conftest*
1cf3d07d
SE
13676 LDFLAGS="$save_LDFLAGS"
13677
13678fi
5213506e
RW
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13680$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
1cf3d07d 13681
d58dead8 13682if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
1cf3d07d
SE
13683 :
13684else
13685 lt_prog_compiler_static_FC=
13686fi
13687
13688
13689
13690
5213506e
RW
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13692$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13693if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13694 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13695else
13696 lt_cv_prog_compiler_c_o_FC=no
13697 $RM -r conftest 2>/dev/null
13698 mkdir conftest
13699 cd conftest
13700 mkdir out
13701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13702
13703 lt_compiler_flag="-o out/conftest2.$ac_objext"
13704 # Insert the option either (1) after the last *FLAGS variable, or
13705 # (2) before a word containing "conftest.", or (3) at the end.
13706 # Note that $ac_compile itself does not contain backslashes and begins
13707 # with a dollar sign (not a hyphen), so the echo should work correctly.
13708 lt_compile=`echo "$ac_compile" | $SED \
13709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13711 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13713 (eval "$lt_compile" 2>out/conftest.err)
13714 ac_status=$?
13715 cat out/conftest.err >&5
43e02a8a 13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13718 then
13719 # The compiler can only warn and ignore the option if not recognized
13720 # So say no if there are warnings
43e02a8a 13721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13724 lt_cv_prog_compiler_c_o_FC=yes
13725 fi
13726 fi
13727 chmod u+w . 2>&5
13728 $RM conftest*
13729 # SGI C++ compiler will create directory out/ii_files/ for
13730 # template instantiation
13731 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13732 $RM out/* && rmdir out
13733 cd ..
13734 $RM -r conftest
13735 $RM conftest*
13736
13737fi
5213506e
RW
13738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13739$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
13740
13741
13742
5213506e
RW
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13744$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13745if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13747else
13748 lt_cv_prog_compiler_c_o_FC=no
13749 $RM -r conftest 2>/dev/null
13750 mkdir conftest
13751 cd conftest
13752 mkdir out
13753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13754
13755 lt_compiler_flag="-o out/conftest2.$ac_objext"
13756 # Insert the option either (1) after the last *FLAGS variable, or
13757 # (2) before a word containing "conftest.", or (3) at the end.
13758 # Note that $ac_compile itself does not contain backslashes and begins
13759 # with a dollar sign (not a hyphen), so the echo should work correctly.
13760 lt_compile=`echo "$ac_compile" | $SED \
13761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13763 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13765 (eval "$lt_compile" 2>out/conftest.err)
13766 ac_status=$?
13767 cat out/conftest.err >&5
43e02a8a 13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13770 then
13771 # The compiler can only warn and ignore the option if not recognized
13772 # So say no if there are warnings
43e02a8a 13773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13776 lt_cv_prog_compiler_c_o_FC=yes
13777 fi
13778 fi
13779 chmod u+w . 2>&5
13780 $RM conftest*
13781 # SGI C++ compiler will create directory out/ii_files/ for
13782 # template instantiation
13783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13784 $RM out/* && rmdir out
13785 cd ..
13786 $RM -r conftest
13787 $RM conftest*
13788
13789fi
5213506e
RW
13790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13791$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
13792
13793
13794
13795
13796hard_links="nottested"
13797if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13798 # do not overwrite the value of need_locks provided by the user
5213506e
RW
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13800$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
13801 hard_links=yes
13802 $RM conftest*
13803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13804 touch conftest.a
13805 ln conftest.a conftest.b 2>&5 || hard_links=no
13806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13808$as_echo "$hard_links" >&6; }
1cf3d07d 13809 if test "$hard_links" = no; then
5213506e
RW
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13811$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
13812 need_locks=warn
13813 fi
13814else
13815 need_locks=no
13816fi
13817
13818
13819
5213506e
RW
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13821$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
13822
13823 runpath_var=
13824 allow_undefined_flag_FC=
13825 always_export_symbols_FC=no
13826 archive_cmds_FC=
13827 archive_expsym_cmds_FC=
13828 compiler_needs_object_FC=no
13829 enable_shared_with_static_runtimes_FC=no
13830 export_dynamic_flag_spec_FC=
13831 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13832 hardcode_automatic_FC=no
13833 hardcode_direct_FC=no
13834 hardcode_direct_absolute_FC=no
13835 hardcode_libdir_flag_spec_FC=
13836 hardcode_libdir_flag_spec_ld_FC=
13837 hardcode_libdir_separator_FC=
13838 hardcode_minus_L_FC=no
13839 hardcode_shlibpath_var_FC=unsupported
13840 inherit_rpath_FC=no
13841 link_all_deplibs_FC=unknown
13842 module_cmds_FC=
13843 module_expsym_cmds_FC=
13844 old_archive_from_new_cmds_FC=
13845 old_archive_from_expsyms_cmds_FC=
13846 thread_safe_flag_spec_FC=
13847 whole_archive_flag_spec_FC=
13848 # include_expsyms should be a list of space-separated symbols to be *always*
13849 # included in the symbol list
13850 include_expsyms_FC=
13851 # exclude_expsyms can be an extended regexp of symbols to exclude
13852 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13853 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13854 # as well as any symbol that contains `d'.
d58dead8 13855 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
13856 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13857 # platforms (ab)use it in PIC code, but their linkers get confused if
13858 # the symbol is explicitly referenced. Since portable code cannot
13859 # rely on this symbol name, it's probably fine to never include it in
13860 # preloaded symbol tables.
d58dead8 13861 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
13862 extract_expsyms_cmds=
13863
13864 case $host_os in
d58dead8 13865 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13866 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13867 # When not using gcc, we currently assume that we are using
13868 # Microsoft Visual C++.
13869 if test "$GCC" != yes; then
13870 with_gnu_ld=no
13871 fi
13872 ;;
13873 interix*)
13874 # we just hope/assume this is gcc and not c89 (= MSVC++)
13875 with_gnu_ld=yes
13876 ;;
13877 openbsd*)
13878 with_gnu_ld=no
13879 ;;
13880 esac
13881
13882 ld_shlibs_FC=yes
43e02a8a
RW
13883
13884 # On some targets, GNU ld is compatible enough with the native linker
13885 # that we're better off using the native interface for both.
13886 lt_use_gnu_ld_interface=no
1cf3d07d 13887 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
13888 case $host_os in
13889 aix*)
13890 # The AIX port of GNU ld has always aspired to compatibility
13891 # with the native linker. However, as the warning in the GNU ld
13892 # block says, versions before 2.19.5* couldn't really create working
13893 # shared libraries, regardless of the interface used.
13894 case `$LD -v 2>&1` in
13895 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13896 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13897 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13898 *)
13899 lt_use_gnu_ld_interface=yes
13900 ;;
13901 esac
13902 ;;
13903 *)
13904 lt_use_gnu_ld_interface=yes
13905 ;;
13906 esac
13907 fi
13908
13909 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
13910 # If archive_cmds runs LD, not CC, wlarc should be empty
13911 wlarc='${wl}'
13912
13913 # Set some defaults for GNU ld with shared library support. These
13914 # are reset later if shared libraries are not supported. Putting them
13915 # here allows them to be overridden if necessary.
13916 runpath_var=LD_RUN_PATH
13917 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13918 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13919 # ancient GNU ld didn't support --whole-archive et. al.
13920 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13921 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13922 else
13923 whole_archive_flag_spec_FC=
13924 fi
13925 supports_anon_versioning=no
13926 case `$LD -v 2>&1` in
43e02a8a 13927 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
13928 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13929 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13930 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13931 *\ 2.11.*) ;; # other 2.11 versions
13932 *) supports_anon_versioning=yes ;;
13933 esac
13934
13935 # See if GNU ld supports shared libraries.
13936 case $host_os in
4f6bebc3 13937 aix[3-9]*)
1cf3d07d
SE
13938 # On AIX/PPC, the GNU linker is very broken
13939 if test "$host_cpu" != ia64; then
13940 ld_shlibs_FC=no
13941 cat <<_LT_EOF 1>&2
13942
43e02a8a 13943*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
13944*** to be unable to reliably create shared libraries on AIX.
13945*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
13946*** really care for shared libraries, you may want to install binutils
13947*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13948*** You will then need to restart the configuration process.
1cf3d07d
SE
13949
13950_LT_EOF
13951 fi
13952 ;;
13953
13954 amigaos*)
d58dead8
PG
13955 case $host_cpu in
13956 powerpc)
13957 # see comment about AmigaOS4 .so support
13958 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13959 archive_expsym_cmds_FC=''
13960 ;;
13961 m68k)
13962 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)'
13963 hardcode_libdir_flag_spec_FC='-L$libdir'
13964 hardcode_minus_L_FC=yes
13965 ;;
13966 esac
1cf3d07d
SE
13967 ;;
13968
13969 beos*)
13970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13971 allow_undefined_flag_FC=unsupported
13972 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13973 # support --undefined. This deserves some investigation. FIXME
13974 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13975 else
13976 ld_shlibs_FC=no
13977 fi
13978 ;;
13979
d58dead8 13980 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13981 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13982 # as there is no search path for DLLs.
13983 hardcode_libdir_flag_spec_FC='-L$libdir'
43e02a8a 13984 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
1cf3d07d
SE
13985 allow_undefined_flag_FC=unsupported
13986 always_export_symbols_FC=no
13987 enable_shared_with_static_runtimes_FC=yes
13988 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13989
13990 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13991 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13992 # If the export-symbols file already is a .def file (1st line
13993 # is EXPORTS), use it as is; otherwise, prepend...
13994 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13995 cp $export_symbols $output_objdir/$soname.def;
13996 else
13997 echo EXPORTS > $output_objdir/$soname.def;
13998 cat $export_symbols >> $output_objdir/$soname.def;
13999 fi~
14000 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14001 else
14002 ld_shlibs_FC=no
14003 fi
14004 ;;
14005
43e02a8a
RW
14006 haiku*)
14007 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14008 link_all_deplibs_FC=yes
14009 ;;
14010
1cf3d07d
SE
14011 interix[3-9]*)
14012 hardcode_direct_FC=no
14013 hardcode_shlibpath_var_FC=no
14014 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14015 export_dynamic_flag_spec_FC='${wl}-E'
14016 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14017 # Instead, shared libraries are loaded at an image base (0x10000000 by
14018 # default) and relocated if they conflict, which is a slow very memory
14019 # consuming and fragmenting process. To avoid this, we pick a random,
14020 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14021 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14022 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'
14023 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'
14024 ;;
14025
7a9d3fe8 14026 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
14027 tmp_diet=no
14028 if test "$host_os" = linux-dietlibc; then
14029 case $cc_basename in
14030 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14031 esac
14032 fi
14033 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14034 && test "$tmp_diet" = no
14035 then
a699d672 14036 tmp_addflag=' $pic_flag'
d58dead8 14037 tmp_sharedflag='-shared'
1cf3d07d
SE
14038 case $cc_basename,$host_cpu in
14039 pgcc*) # Portland Group C compiler
43e02a8a 14040 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
14041 tmp_addflag=' $pic_flag'
14042 ;;
43e02a8a
RW
14043 pgf77* | pgf90* | pgf95* | pgfortran*)
14044 # Portland Group f77 and f90 compilers
14045 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
14046 tmp_addflag=' $pic_flag -Mnomain' ;;
14047 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14048 tmp_addflag=' -i_dynamic' ;;
14049 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14050 tmp_addflag=' -i_dynamic -nofor_main' ;;
14051 ifc* | ifort*) # Intel Fortran compiler
14052 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
14053 lf95*) # Lahey Fortran 8.1
14054 whole_archive_flag_spec_FC=
14055 tmp_sharedflag='--shared' ;;
43e02a8a 14056 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
14057 tmp_sharedflag='-qmkshrobj'
14058 tmp_addflag= ;;
43e02a8a
RW
14059 nvcc*) # Cuda Compiler Driver 2.2
14060 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'
14061 compiler_needs_object_FC=yes
14062 ;;
1cf3d07d
SE
14063 esac
14064 case `$CC -V 2>&1 | sed 5q` in
14065 *Sun\ C*) # Sun C 5.9
43e02a8a 14066 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
14067 compiler_needs_object_FC=yes
14068 tmp_sharedflag='-G' ;;
14069 *Sun\ F*) # Sun Fortran 8.3
14070 tmp_sharedflag='-G' ;;
1cf3d07d
SE
14071 esac
14072 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14073
14074 if test "x$supports_anon_versioning" = xyes; then
14075 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14076 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14077 echo "local: *; };" >> $output_objdir/$libname.ver~
14078 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14079 fi
d58dead8
PG
14080
14081 case $cc_basename in
43e02a8a 14082 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
14083 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14084 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14085 hardcode_libdir_flag_spec_FC=
14086 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14087 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14088 if test "x$supports_anon_versioning" = xyes; then
14089 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14091 echo "local: *; };" >> $output_objdir/$libname.ver~
14092 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14093 fi
14094 ;;
14095 esac
1cf3d07d
SE
14096 else
14097 ld_shlibs_FC=no
14098 fi
14099 ;;
14100
14101 netbsd*)
14102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14103 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14104 wlarc=
14105 else
14106 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14107 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14108 fi
14109 ;;
14110
14111 solaris*)
14112 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14113 ld_shlibs_FC=no
14114 cat <<_LT_EOF 1>&2
14115
14116*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14117*** create shared libraries on Solaris systems. Therefore, libtool
14118*** is disabling shared libraries support. We urge you to upgrade GNU
14119*** binutils to release 2.9.1 or newer. Another option is to modify
14120*** your PATH or compiler configuration so that the native linker is
14121*** used, and then restart.
14122
14123_LT_EOF
14124 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14125 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14126 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14127 else
14128 ld_shlibs_FC=no
14129 fi
14130 ;;
14131
14132 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14133 case `$LD -v 2>&1` in
14134 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14135 ld_shlibs_FC=no
14136 cat <<_LT_EOF 1>&2
14137
14138*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14139*** reliably create shared libraries on SCO systems. Therefore, libtool
14140*** is disabling shared libraries support. We urge you to upgrade GNU
14141*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14142*** your PATH or compiler configuration so that the native linker is
14143*** used, and then restart.
14144
14145_LT_EOF
14146 ;;
14147 *)
14148 # For security reasons, it is highly recommended that you always
14149 # use absolute paths for naming shared libraries, and exclude the
14150 # DT_RUNPATH tag from executables and libraries. But doing so
14151 # requires that you compile everything twice, which is a pain.
14152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14153 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14154 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14155 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14156 else
14157 ld_shlibs_FC=no
14158 fi
14159 ;;
14160 esac
14161 ;;
14162
14163 sunos4*)
14164 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14165 wlarc=
14166 hardcode_direct_FC=yes
14167 hardcode_shlibpath_var_FC=no
14168 ;;
14169
14170 *)
14171 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14172 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14173 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14174 else
14175 ld_shlibs_FC=no
14176 fi
14177 ;;
14178 esac
14179
14180 if test "$ld_shlibs_FC" = no; then
14181 runpath_var=
14182 hardcode_libdir_flag_spec_FC=
14183 export_dynamic_flag_spec_FC=
14184 whole_archive_flag_spec_FC=
14185 fi
14186 else
14187 # PORTME fill in a description of your system's linker (not GNU ld)
14188 case $host_os in
14189 aix3*)
14190 allow_undefined_flag_FC=unsupported
14191 always_export_symbols_FC=yes
14192 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'
14193 # Note: this linker hardcodes the directories in LIBPATH if there
14194 # are no directories specified by -L.
14195 hardcode_minus_L_FC=yes
14196 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14197 # Neither direct hardcoding nor static linking is supported with a
14198 # broken collect2.
14199 hardcode_direct_FC=unsupported
14200 fi
14201 ;;
14202
4f6bebc3 14203 aix[4-9]*)
1cf3d07d
SE
14204 if test "$host_cpu" = ia64; then
14205 # On IA64, the linker does run time linking by default, so we don't
14206 # have to do anything special.
14207 aix_use_runtimelinking=no
14208 exp_sym_flag='-Bexport'
14209 no_entry_flag=""
14210 else
14211 # If we're using GNU nm, then we don't want the "-C" option.
14212 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
14213 # Also, AIX nm treats weak defined symbols like other global
14214 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 14215 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 14216 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 14217 else
d3ca2257 14218 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
14219 fi
14220 aix_use_runtimelinking=no
14221
14222 # Test if we are trying to use run time linking or normal
14223 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14224 # need to do runtime linking.
4f6bebc3 14225 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
14226 for ld_flag in $LDFLAGS; do
14227 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14228 aix_use_runtimelinking=yes
14229 break
14230 fi
14231 done
14232 ;;
14233 esac
14234
14235 exp_sym_flag='-bexport'
14236 no_entry_flag='-bnoentry'
14237 fi
14238
14239 # When large executables or shared objects are built, AIX ld can
14240 # have problems creating the table of contents. If linking a library
14241 # or program results in "error TOC overflow" add -mminimal-toc to
14242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14244
14245 archive_cmds_FC=''
14246 hardcode_direct_FC=yes
14247 hardcode_direct_absolute_FC=yes
14248 hardcode_libdir_separator_FC=':'
14249 link_all_deplibs_FC=yes
14250 file_list_spec_FC='${wl}-f,'
14251
14252 if test "$GCC" = yes; then
14253 case $host_os in aix4.[012]|aix4.[012].*)
14254 # We only want to do this on AIX 4.2 and lower, the check
14255 # below for broken collect2 doesn't work under 4.3+
14256 collect2name=`${CC} -print-prog-name=collect2`
14257 if test -f "$collect2name" &&
14258 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14259 then
14260 # We have reworked collect2
14261 :
14262 else
14263 # We have old collect2
14264 hardcode_direct_FC=unsupported
14265 # It fails to find uninstalled libraries when the uninstalled
14266 # path is not listed in the libpath. Setting hardcode_minus_L
14267 # to unsupported forces relinking
14268 hardcode_minus_L_FC=yes
14269 hardcode_libdir_flag_spec_FC='-L$libdir'
14270 hardcode_libdir_separator_FC=
14271 fi
14272 ;;
14273 esac
14274 shared_flag='-shared'
14275 if test "$aix_use_runtimelinking" = yes; then
14276 shared_flag="$shared_flag "'${wl}-G'
14277 fi
14278 else
14279 # not using gcc
14280 if test "$host_cpu" = ia64; then
14281 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14282 # chokes on -Wl,-G. The following line is correct:
14283 shared_flag='-G'
14284 else
14285 if test "$aix_use_runtimelinking" = yes; then
14286 shared_flag='${wl}-G'
14287 else
14288 shared_flag='${wl}-bM:SRE'
14289 fi
14290 fi
14291 fi
14292
d58dead8 14293 export_dynamic_flag_spec_FC='${wl}-bexpall'
1cf3d07d
SE
14294 # It seems that -bexpall does not export symbols beginning with
14295 # underscore (_), so it is better to generate a list of symbols to export.
14296 always_export_symbols_FC=yes
14297 if test "$aix_use_runtimelinking" = yes; then
14298 # Warning - without using the other runtime loading flags (-brtl),
14299 # -berok will link without error, but may produce a broken library.
14300 allow_undefined_flag_FC='-berok'
14301 # Determine the default libpath from the value encoded in an
14302 # empty executable.
14303 if test x$gcc_no_link = xyes; then
5213506e 14304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14305fi
5213506e 14306cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14307 program main
14308
14309 end
14310_ACEOF
5213506e 14311if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14312
14313lt_aix_libpath_sed='
14314 /Import File Strings/,/^$/ {
14315 /^0/ {
14316 s/^0 *\(.*\)$/\1/
14317 p
14318 }
14319 }'
14320aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14321# Check for a 64-bit object if we didn't find anything.
14322if test -z "$aix_libpath"; then
14323 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14324fi
1cf3d07d 14325fi
5213506e
RW
14326rm -f core conftest.err conftest.$ac_objext \
14327 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14329
14330 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 14331 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
14332 else
14333 if test "$host_cpu" = ia64; then
14334 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14335 allow_undefined_flag_FC="-z nodefs"
14336 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"
14337 else
14338 # Determine the default libpath from the value encoded in an
14339 # empty executable.
14340 if test x$gcc_no_link = xyes; then
5213506e 14341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14342fi
5213506e 14343cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14344 program main
14345
14346 end
14347_ACEOF
5213506e 14348if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14349
14350lt_aix_libpath_sed='
14351 /Import File Strings/,/^$/ {
14352 /^0/ {
14353 s/^0 *\(.*\)$/\1/
14354 p
14355 }
14356 }'
14357aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14358# Check for a 64-bit object if we didn't find anything.
14359if test -z "$aix_libpath"; then
14360 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14361fi
1cf3d07d 14362fi
5213506e
RW
14363rm -f core conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14365if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14366
14367 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14368 # Warning - without using the other run time loading flags,
14369 # -berok will link without error, but may produce a broken library.
14370 no_undefined_flag_FC=' ${wl}-bernotok'
14371 allow_undefined_flag_FC=' ${wl}-berok'
43e02a8a
RW
14372 if test "$with_gnu_ld" = yes; then
14373 # We only use this code for GNU lds that support --whole-archive.
14374 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14375 else
14376 # Exported symbols can be pulled into shared objects from archives
14377 whole_archive_flag_spec_FC='$convenience'
14378 fi
1cf3d07d
SE
14379 archive_cmds_need_lc_FC=yes
14380 # This is similar to how AIX traditionally builds its shared libraries.
14381 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'
14382 fi
14383 fi
14384 ;;
14385
14386 amigaos*)
d58dead8
PG
14387 case $host_cpu in
14388 powerpc)
14389 # see comment about AmigaOS4 .so support
14390 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14391 archive_expsym_cmds_FC=''
14392 ;;
14393 m68k)
14394 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)'
14395 hardcode_libdir_flag_spec_FC='-L$libdir'
14396 hardcode_minus_L_FC=yes
14397 ;;
14398 esac
1cf3d07d
SE
14399 ;;
14400
14401 bsdi[45]*)
14402 export_dynamic_flag_spec_FC=-rdynamic
14403 ;;
14404
d58dead8 14405 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14406 # When not using gcc, we currently assume that we are using
14407 # Microsoft Visual C++.
14408 # hardcode_libdir_flag_spec is actually meaningless, as there is
14409 # no search path for DLLs.
14410 hardcode_libdir_flag_spec_FC=' '
14411 allow_undefined_flag_FC=unsupported
14412 # Tell ltmain to make .lib files, not .a files.
14413 libext=lib
14414 # Tell ltmain to make .dll files, not .so files.
14415 shrext_cmds=".dll"
14416 # FIXME: Setting linknames here is a bad hack.
43e02a8a 14417 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
14418 # The linker will automatically build a .lib file if we build a DLL.
14419 old_archive_from_new_cmds_FC='true'
14420 # FIXME: Should let the user specify the lib program.
14421 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14422 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14423 enable_shared_with_static_runtimes_FC=yes
14424 ;;
14425
14426 darwin* | rhapsody*)
1cf3d07d 14427
d58dead8
PG
14428
14429 archive_cmds_need_lc_FC=no
14430 hardcode_direct_FC=no
14431 hardcode_automatic_FC=yes
14432 hardcode_shlibpath_var_FC=unsupported
43e02a8a
RW
14433 if test "$lt_cv_ld_force_load" = "yes"; then
14434 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\"`'
14435 else
14436 whole_archive_flag_spec_FC=''
14437 fi
d58dead8
PG
14438 link_all_deplibs_FC=yes
14439 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14440 case $cc_basename in
14441 ifort*) _lt_dar_can_shared=yes ;;
14442 *) _lt_dar_can_shared=$GCC ;;
14443 esac
14444 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 14445 output_verbose_link_cmd=func_echo_all
d58dead8
PG
14446 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}"
14447 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14448 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}"
14449 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}"
14450
14451 else
14452 ld_shlibs_FC=no
14453 fi
14454
1cf3d07d
SE
14455 ;;
14456
14457 dgux*)
14458 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14459 hardcode_libdir_flag_spec_FC='-L$libdir'
14460 hardcode_shlibpath_var_FC=no
14461 ;;
14462
1cf3d07d
SE
14463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14464 # support. Future versions do this automatically, but an explicit c++rt0.o
14465 # does not break anything, and helps significantly (at the cost of a little
14466 # extra space).
14467 freebsd2.2*)
14468 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14469 hardcode_libdir_flag_spec_FC='-R$libdir'
14470 hardcode_direct_FC=yes
14471 hardcode_shlibpath_var_FC=no
14472 ;;
14473
14474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 14475 freebsd2.*)
1cf3d07d
SE
14476 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14477 hardcode_direct_FC=yes
14478 hardcode_minus_L_FC=yes
14479 hardcode_shlibpath_var_FC=no
14480 ;;
14481
14482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14483 freebsd* | dragonfly*)
14484 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14485 hardcode_libdir_flag_spec_FC='-R$libdir'
14486 hardcode_direct_FC=yes
14487 hardcode_shlibpath_var_FC=no
14488 ;;
14489
14490 hpux9*)
14491 if test "$GCC" = yes; then
14492 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'
14493 else
14494 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'
14495 fi
14496 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14497 hardcode_libdir_separator_FC=:
14498 hardcode_direct_FC=yes
14499
14500 # hardcode_minus_L: Not really in the search PATH,
14501 # but as the default location of the library.
14502 hardcode_minus_L_FC=yes
14503 export_dynamic_flag_spec_FC='${wl}-E'
14504 ;;
14505
14506 hpux10*)
43e02a8a 14507 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14508 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14509 else
14510 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14511 fi
14512 if test "$with_gnu_ld" = no; then
14513 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14514 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14515 hardcode_libdir_separator_FC=:
14516 hardcode_direct_FC=yes
14517 hardcode_direct_absolute_FC=yes
14518 export_dynamic_flag_spec_FC='${wl}-E'
14519 # hardcode_minus_L: Not really in the search PATH,
14520 # but as the default location of the library.
14521 hardcode_minus_L_FC=yes
14522 fi
14523 ;;
14524
14525 hpux11*)
43e02a8a 14526 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14527 case $host_cpu in
14528 hppa*64*)
14529 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14530 ;;
14531 ia64*)
d58dead8 14532 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14533 ;;
14534 *)
14535 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14536 ;;
14537 esac
14538 else
14539 case $host_cpu in
14540 hppa*64*)
14541 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14542 ;;
14543 ia64*)
14544 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14545 ;;
14546 *)
43e02a8a 14547 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14548 ;;
14549 esac
14550 fi
14551 if test "$with_gnu_ld" = no; then
14552 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14553 hardcode_libdir_separator_FC=:
14554
14555 case $host_cpu in
14556 hppa*64*|ia64*)
14557 hardcode_direct_FC=no
14558 hardcode_shlibpath_var_FC=no
14559 ;;
14560 *)
14561 hardcode_direct_FC=yes
14562 hardcode_direct_absolute_FC=yes
14563 export_dynamic_flag_spec_FC='${wl}-E'
14564
14565 # hardcode_minus_L: Not really in the search PATH,
14566 # but as the default location of the library.
14567 hardcode_minus_L_FC=yes
14568 ;;
14569 esac
14570 fi
14571 ;;
14572
14573 irix5* | irix6* | nonstopux*)
14574 if test "$GCC" = yes; then
43e02a8a 14575 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
14576 # Try to use the -exported_symbol ld option, if it does not
14577 # work, assume that -exports_file does not work either and
14578 # implicitly export all symbols.
14579 save_LDFLAGS="$LDFLAGS"
14580 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14581 if test x$gcc_no_link = xyes; then
5213506e 14582 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14583fi
5213506e 14584cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14585int foo(void) {}
14586_ACEOF
5213506e 14587if ac_fn_fc_try_link "$LINENO"; then :
43e02a8a 14588 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 14589
1cf3d07d 14590fi
5213506e
RW
14591rm -f core conftest.err conftest.$ac_objext \
14592 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14593 LDFLAGS="$save_LDFLAGS"
14594 else
43e02a8a
RW
14595 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'
14596 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
14597 fi
14598 archive_cmds_need_lc_FC='no'
14599 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14600 hardcode_libdir_separator_FC=:
14601 inherit_rpath_FC=yes
14602 link_all_deplibs_FC=yes
14603 ;;
14604
14605 netbsd*)
14606 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14607 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14608 else
14609 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14610 fi
14611 hardcode_libdir_flag_spec_FC='-R$libdir'
14612 hardcode_direct_FC=yes
14613 hardcode_shlibpath_var_FC=no
14614 ;;
14615
14616 newsos6)
14617 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14618 hardcode_direct_FC=yes
14619 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14620 hardcode_libdir_separator_FC=:
14621 hardcode_shlibpath_var_FC=no
14622 ;;
14623
14624 *nto* | *qnx*)
14625 ;;
14626
14627 openbsd*)
d58dead8
PG
14628 if test -f /usr/libexec/ld.so; then
14629 hardcode_direct_FC=yes
14630 hardcode_shlibpath_var_FC=no
14631 hardcode_direct_absolute_FC=yes
14632 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 14633 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 14634 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 14635 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
d58dead8
PG
14636 export_dynamic_flag_spec_FC='${wl}-E'
14637 else
14638 case $host_os in
14639 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14640 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14641 hardcode_libdir_flag_spec_FC='-R$libdir'
14642 ;;
14643 *)
14644 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14645 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14646 ;;
14647 esac
14648 fi
14649 else
14650 ld_shlibs_FC=no
1cf3d07d
SE
14651 fi
14652 ;;
14653
14654 os2*)
14655 hardcode_libdir_flag_spec_FC='-L$libdir'
14656 hardcode_minus_L_FC=yes
14657 allow_undefined_flag_FC=unsupported
43e02a8a 14658 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
14659 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14660 ;;
14661
14662 osf3*)
14663 if test "$GCC" = yes; then
14664 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14665 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
14666 else
14667 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 14668 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
14669 fi
14670 archive_cmds_need_lc_FC='no'
14671 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14672 hardcode_libdir_separator_FC=:
14673 ;;
14674
14675 osf4* | osf5*) # as osf3* with the addition of -msym flag
14676 if test "$GCC" = yes; then
14677 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14678 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
14679 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14680 else
14681 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 14682 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 14683 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 14684 $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
14685
14686 # Both c and cxx compiler support -rpath directly
14687 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14688 fi
14689 archive_cmds_need_lc_FC='no'
14690 hardcode_libdir_separator_FC=:
14691 ;;
14692
14693 solaris*)
14694 no_undefined_flag_FC=' -z defs'
14695 if test "$GCC" = yes; then
14696 wlarc='${wl}'
14697 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14698 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14699 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14700 else
14701 case `$CC -V 2>&1` in
14702 *"Compilers 5.0"*)
14703 wlarc=''
14704 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14705 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14706 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14707 ;;
14708 *)
14709 wlarc='${wl}'
14710 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14711 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14712 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14713 ;;
14714 esac
14715 fi
14716 hardcode_libdir_flag_spec_FC='-R$libdir'
14717 hardcode_shlibpath_var_FC=no
14718 case $host_os in
14719 solaris2.[0-5] | solaris2.[0-5].*) ;;
14720 *)
14721 # The compiler driver will combine and reorder linker options,
14722 # but understands `-z linker_flag'. GCC discards it without `$wl',
14723 # but is careful enough not to reorder.
14724 # Supported since Solaris 2.6 (maybe 2.5.1?)
14725 if test "$GCC" = yes; then
14726 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14727 else
14728 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14729 fi
14730 ;;
14731 esac
14732 link_all_deplibs_FC=yes
14733 ;;
14734
14735 sunos4*)
14736 if test "x$host_vendor" = xsequent; then
14737 # Use $CC to link under sequent, because it throws in some extra .o
14738 # files that make .init and .fini sections work.
14739 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14740 else
14741 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14742 fi
14743 hardcode_libdir_flag_spec_FC='-L$libdir'
14744 hardcode_direct_FC=yes
14745 hardcode_minus_L_FC=yes
14746 hardcode_shlibpath_var_FC=no
14747 ;;
14748
14749 sysv4)
14750 case $host_vendor in
14751 sni)
14752 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14753 hardcode_direct_FC=yes # is this really true???
14754 ;;
14755 siemens)
14756 ## LD is ld it makes a PLAMLIB
14757 ## CC just makes a GrossModule.
14758 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14759 reload_cmds_FC='$CC -r -o $output$reload_objs'
14760 hardcode_direct_FC=no
14761 ;;
14762 motorola)
14763 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14764 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14765 ;;
14766 esac
14767 runpath_var='LD_RUN_PATH'
14768 hardcode_shlibpath_var_FC=no
14769 ;;
14770
14771 sysv4.3*)
14772 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14773 hardcode_shlibpath_var_FC=no
14774 export_dynamic_flag_spec_FC='-Bexport'
14775 ;;
14776
14777 sysv4*MP*)
14778 if test -d /usr/nec; then
14779 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14780 hardcode_shlibpath_var_FC=no
14781 runpath_var=LD_RUN_PATH
14782 hardcode_runpath_var=yes
14783 ld_shlibs_FC=yes
14784 fi
14785 ;;
14786
14787 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14788 no_undefined_flag_FC='${wl}-z,text'
14789 archive_cmds_need_lc_FC=no
14790 hardcode_shlibpath_var_FC=no
14791 runpath_var='LD_RUN_PATH'
14792
14793 if test "$GCC" = yes; then
14794 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14795 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14796 else
14797 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14798 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14799 fi
14800 ;;
14801
14802 sysv5* | sco3.2v5* | sco5v6*)
14803 # Note: We can NOT use -z defs as we might desire, because we do not
14804 # link with -lc, and that would cause any symbols used from libc to
14805 # always be unresolved, which means just about no library would
14806 # ever link correctly. If we're not using GNU ld we use -z text
14807 # though, which does catch some bad symbols but isn't as heavy-handed
14808 # as -z defs.
14809 no_undefined_flag_FC='${wl}-z,text'
14810 allow_undefined_flag_FC='${wl}-z,nodefs'
14811 archive_cmds_need_lc_FC=no
14812 hardcode_shlibpath_var_FC=no
14813 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14814 hardcode_libdir_separator_FC=':'
14815 link_all_deplibs_FC=yes
14816 export_dynamic_flag_spec_FC='${wl}-Bexport'
14817 runpath_var='LD_RUN_PATH'
14818
14819 if test "$GCC" = yes; then
14820 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14821 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14822 else
14823 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14824 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14825 fi
14826 ;;
14827
14828 uts4*)
14829 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14830 hardcode_libdir_flag_spec_FC='-L$libdir'
14831 hardcode_shlibpath_var_FC=no
14832 ;;
14833
14834 *)
14835 ld_shlibs_FC=no
14836 ;;
14837 esac
14838
14839 if test x$host_vendor = xsni; then
14840 case $host in
14841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14842 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14843 ;;
14844 esac
14845 fi
14846 fi
14847
5213506e
RW
14848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14849$as_echo "$ld_shlibs_FC" >&6; }
1cf3d07d
SE
14850test "$ld_shlibs_FC" = no && can_build_shared=no
14851
14852with_gnu_ld_FC=$with_gnu_ld
14853
14854
14855
14856
14857
14858
14859#
14860# Do we need to explicitly link libc?
14861#
14862case "x$archive_cmds_need_lc_FC" in
14863x|xyes)
14864 # Assume -lc should be added
14865 archive_cmds_need_lc_FC=yes
14866
14867 if test "$enable_shared" = yes && test "$GCC" = yes; then
14868 case $archive_cmds_FC in
14869 *'~'*)
14870 # FIXME: we may have to deal with multi-command sequences.
14871 ;;
14872 '$CC '*)
14873 # Test whether the compiler implicitly links with -lc since on some
14874 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14875 # to ld, don't add -lc before -lgcc.
5213506e
RW
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14877$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14878if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14879 $as_echo_n "(cached) " >&6
baafc534
RW
14880else
14881 $RM conftest*
14882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 14883
5213506e 14884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
14885 (eval $ac_compile) 2>&5
14886 ac_status=$?
5213506e
RW
14887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14888 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
14889 soname=conftest
14890 lib=conftest
14891 libobjs=conftest.$ac_objext
14892 deplibs=
14893 wl=$lt_prog_compiler_wl_FC
14894 pic_flag=$lt_prog_compiler_pic_FC
14895 compiler_flags=-v
14896 linker_flags=-v
14897 verstring=
14898 output_objdir=.
14899 libname=conftest
14900 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14901 allow_undefined_flag_FC=
5213506e 14902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 14903 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9cdc381b 14904 ac_status=$?
5213506e
RW
14905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14906 test $ac_status = 0; }
baafc534
RW
14907 then
14908 lt_cv_archive_cmds_need_lc_FC=no
14909 else
14910 lt_cv_archive_cmds_need_lc_FC=yes
14911 fi
14912 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14913 else
14914 cat conftest.err 1>&5
14915 fi
14916 $RM conftest*
14917
14918fi
5213506e
RW
14919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14920$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
baafc534 14921 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
1cf3d07d
SE
14922 ;;
14923 esac
14924 fi
14925 ;;
14926esac
9cdc381b 14927
9cdc381b 14928
1cf3d07d
SE
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
5213506e
RW
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14992$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8 14993
1cf3d07d
SE
14994library_names_spec=
14995libname_spec='lib$name'
14996soname_spec=
14997shrext_cmds=".so"
14998postinstall_cmds=
14999postuninstall_cmds=
15000finish_cmds=
15001finish_eval=
15002shlibpath_var=
15003shlibpath_overrides_runpath=unknown
15004version_type=none
15005dynamic_linker="$host_os ld.so"
15006sys_lib_dlsearch_path_spec="/lib /usr/lib"
15007need_lib_prefix=unknown
15008hardcode_into_libs=no
15009
15010# when you set need_version to no, make sure it does not cause -set_version
15011# flags to be left without arguments
15012need_version=unknown
15013
15014case $host_os in
15015aix3*)
15016 version_type=linux
15017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15018 shlibpath_var=LIBPATH
15019
15020 # AIX 3 has no versioning support, so we append a major version to the name.
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 ;;
15023
4f6bebc3 15024aix[4-9]*)
1cf3d07d
SE
15025 version_type=linux
15026 need_lib_prefix=no
15027 need_version=no
15028 hardcode_into_libs=yes
15029 if test "$host_cpu" = ia64; then
15030 # AIX 5 supports IA64
15031 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15032 shlibpath_var=LD_LIBRARY_PATH
15033 else
15034 # With GCC up to 2.95.x, collect2 would create an import file
15035 # for dependence libraries. The import file would start with
15036 # the line `#! .'. This would cause the generated library to
15037 # depend on `.', always an invalid library. This was fixed in
15038 # development snapshots of GCC prior to 3.0.
15039 case $host_os in
15040 aix4 | aix4.[01] | aix4.[01].*)
15041 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15042 echo ' yes '
15043 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15044 :
15045 else
15046 can_build_shared=no
15047 fi
15048 ;;
15049 esac
15050 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15051 # soname into executable. Probably we can add versioning support to
15052 # collect2, so additional links can be useful in future.
15053 if test "$aix_use_runtimelinking" = yes; then
15054 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15055 # instead of lib<name>.a to let people know that these are not
15056 # typical AIX shared libraries.
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15058 else
15059 # We preserve .a as extension for shared libraries through AIX4.2
15060 # and later when we are not doing run time linking.
15061 library_names_spec='${libname}${release}.a $libname.a'
15062 soname_spec='${libname}${release}${shared_ext}$major'
15063 fi
15064 shlibpath_var=LIBPATH
15065 fi
15066 ;;
15067
15068amigaos*)
d58dead8
PG
15069 case $host_cpu in
15070 powerpc)
15071 # Since July 2007 AmigaOS4 officially supports .so libraries.
15072 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15074 ;;
15075 m68k)
1cf3d07d
SE
15076 library_names_spec='$libname.ixlibrary $libname.a'
15077 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 15078 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
15079 ;;
15080 esac
1cf3d07d
SE
15081 ;;
15082
15083beos*)
15084 library_names_spec='${libname}${shared_ext}'
15085 dynamic_linker="$host_os ld.so"
15086 shlibpath_var=LIBRARY_PATH
15087 ;;
15088
15089bsdi[45]*)
15090 version_type=linux
15091 need_version=no
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15093 soname_spec='${libname}${release}${shared_ext}$major'
15094 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15095 shlibpath_var=LD_LIBRARY_PATH
15096 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15097 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15098 # the default ld.so.conf also contains /usr/contrib/lib and
15099 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15100 # libtool to hard-code these into programs
15101 ;;
15102
d58dead8 15103cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
15104 version_type=windows
15105 shrext_cmds=".dll"
15106 need_version=no
15107 need_lib_prefix=no
15108
d58dead8
PG
15109 case $GCC,$host_os in
15110 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
15111 library_names_spec='$libname.dll.a'
15112 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15113 postinstall_cmds='base_file=`basename \${file}`~
15114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15115 dldir=$destdir/`dirname \$dlpath`~
15116 test -d \$dldir || mkdir -p \$dldir~
15117 $install_prog $dir/$dlname \$dldir/$dlname~
15118 chmod a+x \$dldir/$dlname~
15119 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15120 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15121 fi'
15122 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15123 dlpath=$dir/\$dldll~
15124 $RM \$dlpath'
15125 shlibpath_overrides_runpath=yes
15126
15127 case $host_os in
15128 cygwin*)
15129 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15130 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 15131
1cf3d07d 15132 ;;
d58dead8 15133 mingw* | cegcc*)
1cf3d07d
SE
15134 # MinGW DLLs use traditional 'lib' prefix
15135 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
15136 ;;
15137 pw32*)
15138 # pw32 DLLs use 'pw' prefix rather than 'lib'
15139 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15140 ;;
15141 esac
15142 ;;
15143
15144 *)
15145 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15146 ;;
15147 esac
15148 dynamic_linker='Win32 ld.exe'
15149 # FIXME: first we should search . and the directory the executable is in
15150 shlibpath_var=PATH
15151 ;;
15152
15153darwin* | rhapsody*)
15154 dynamic_linker="$host_os dyld"
15155 version_type=darwin
15156 need_lib_prefix=no
15157 need_version=no
15158 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15159 soname_spec='${libname}${release}${major}$shared_ext'
15160 shlibpath_overrides_runpath=yes
15161 shlibpath_var=DYLD_LIBRARY_PATH
15162 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15163
15164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15165 ;;
15166
15167dgux*)
15168 version_type=linux
15169 need_lib_prefix=no
15170 need_version=no
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15172 soname_spec='${libname}${release}${shared_ext}$major'
15173 shlibpath_var=LD_LIBRARY_PATH
15174 ;;
15175
1cf3d07d
SE
15176freebsd* | dragonfly*)
15177 # DragonFly does not have aout. When/if they implement a new
15178 # versioning mechanism, adjust this.
15179 if test -x /usr/bin/objformat; then
15180 objformat=`/usr/bin/objformat`
15181 else
15182 case $host_os in
c6084f68 15183 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
15184 *) objformat=elf ;;
15185 esac
15186 fi
15187 version_type=freebsd-$objformat
15188 case $version_type in
15189 freebsd-elf*)
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15191 need_version=no
15192 need_lib_prefix=no
15193 ;;
15194 freebsd-*)
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15196 need_version=yes
15197 ;;
15198 esac
15199 shlibpath_var=LD_LIBRARY_PATH
15200 case $host_os in
c6084f68 15201 freebsd2.*)
1cf3d07d
SE
15202 shlibpath_overrides_runpath=yes
15203 ;;
15204 freebsd3.[01]* | freebsdelf3.[01]*)
15205 shlibpath_overrides_runpath=yes
15206 hardcode_into_libs=yes
15207 ;;
15208 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15209 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15210 shlibpath_overrides_runpath=no
15211 hardcode_into_libs=yes
15212 ;;
15213 *) # from 4.6 on, and DragonFly
15214 shlibpath_overrides_runpath=yes
15215 hardcode_into_libs=yes
15216 ;;
15217 esac
15218 ;;
15219
15220gnu*)
15221 version_type=linux
15222 need_lib_prefix=no
15223 need_version=no
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15225 soname_spec='${libname}${release}${shared_ext}$major'
15226 shlibpath_var=LD_LIBRARY_PATH
15227 hardcode_into_libs=yes
15228 ;;
15229
43e02a8a
RW
15230haiku*)
15231 version_type=linux
15232 need_lib_prefix=no
15233 need_version=no
15234 dynamic_linker="$host_os runtime_loader"
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LIBRARY_PATH
15238 shlibpath_overrides_runpath=yes
15239 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15240 hardcode_into_libs=yes
15241 ;;
15242
1cf3d07d
SE
15243hpux9* | hpux10* | hpux11*)
15244 # Give a soname corresponding to the major version so that dld.sl refuses to
15245 # link against other versions.
15246 version_type=sunos
15247 need_lib_prefix=no
15248 need_version=no
15249 case $host_cpu in
15250 ia64*)
15251 shrext_cmds='.so'
15252 hardcode_into_libs=yes
15253 dynamic_linker="$host_os dld.so"
15254 shlibpath_var=LD_LIBRARY_PATH
15255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 if test "X$HPUX_IA64_MODE" = X32; then
15259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15260 else
15261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15262 fi
15263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15264 ;;
15265 hppa*64*)
15266 shrext_cmds='.sl'
15267 hardcode_into_libs=yes
15268 dynamic_linker="$host_os dld.sl"
15269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15275 ;;
15276 *)
15277 shrext_cmds='.sl'
15278 dynamic_linker="$host_os dld.sl"
15279 shlibpath_var=SHLIB_PATH
15280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 ;;
15284 esac
43e02a8a 15285 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 15286 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
15287 # or fails outright, so override atomically:
15288 install_override_mode=555
1cf3d07d
SE
15289 ;;
15290
15291interix[3-9]*)
15292 version_type=linux
15293 need_lib_prefix=no
15294 need_version=no
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15298 shlibpath_var=LD_LIBRARY_PATH
15299 shlibpath_overrides_runpath=no
15300 hardcode_into_libs=yes
15301 ;;
15302
15303irix5* | irix6* | nonstopux*)
15304 case $host_os in
15305 nonstopux*) version_type=nonstopux ;;
15306 *)
15307 if test "$lt_cv_prog_gnu_ld" = yes; then
15308 version_type=linux
15309 else
15310 version_type=irix
15311 fi ;;
15312 esac
15313 need_lib_prefix=no
15314 need_version=no
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15317 case $host_os in
15318 irix5* | nonstopux*)
15319 libsuff= shlibsuff=
15320 ;;
15321 *)
15322 case $LD in # libtool.m4 will add one of these switches to LD
15323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15324 libsuff= shlibsuff= libmagic=32-bit;;
15325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15326 libsuff=32 shlibsuff=N32 libmagic=N32;;
15327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15329 *) libsuff= shlibsuff= libmagic=never-match;;
15330 esac
15331 ;;
15332 esac
15333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15334 shlibpath_overrides_runpath=no
15335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15337 hardcode_into_libs=yes
15338 ;;
15339
15340# No shared lib support for Linux oldld, aout, or coff.
15341linux*oldld* | linux*aout* | linux*coff*)
15342 dynamic_linker=no
15343 ;;
15344
15345# This must be Linux ELF.
7a9d3fe8 15346linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
15347 version_type=linux
15348 need_lib_prefix=no
15349 need_version=no
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15353 shlibpath_var=LD_LIBRARY_PATH
15354 shlibpath_overrides_runpath=no
baafc534 15355
1cf3d07d 15356 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
15357 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15358 $as_echo_n "(cached) " >&6
baafc534
RW
15359else
15360 lt_cv_shlibpath_overrides_runpath=no
15361 save_LDFLAGS=$LDFLAGS
15362 save_libdir=$libdir
15363 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15364 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15365 if test x$gcc_no_link = xyes; then
5213506e 15366 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15367fi
5213506e 15368cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15369 program main
15370
15371 end
9cdc381b 15372_ACEOF
5213506e
RW
15373if ac_fn_fc_try_link "$LINENO"; then :
15374 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 15375 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 15376fi
9cdc381b 15377fi
5213506e
RW
15378rm -f core conftest.err conftest.$ac_objext \
15379 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
15380 LDFLAGS=$save_LDFLAGS
15381 libdir=$save_libdir
15382
15383fi
15384
15385 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
15386
15387 # This implies no fast_install, which is unacceptable.
15388 # Some rework will be needed to allow for fast_install
15389 # before this can be enabled.
15390 hardcode_into_libs=yes
15391
15392 # Append ld.so.conf contents to the search path
15393 if test -f /etc/ld.so.conf; then
43e02a8a 15394 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
15395 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15396 fi
15397
15398 # We used to test for /lib/ld.so.1 and disable shared libraries on
15399 # powerpc, because MkLinux only supported shared libraries with the
15400 # GNU dynamic linker. Since this was broken with cross compilers,
15401 # most powerpc-linux boxes support dynamic linking these days and
15402 # people can always --disable-shared, the test was removed, and we
15403 # assume the GNU/Linux dynamic linker is in use.
15404 dynamic_linker='GNU/Linux ld.so'
15405 ;;
15406
15407netbsd*)
15408 version_type=sunos
15409 need_lib_prefix=no
15410 need_version=no
15411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15414 dynamic_linker='NetBSD (a.out) ld.so'
15415 else
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 dynamic_linker='NetBSD ld.elf_so'
15419 fi
15420 shlibpath_var=LD_LIBRARY_PATH
15421 shlibpath_overrides_runpath=yes
15422 hardcode_into_libs=yes
15423 ;;
15424
15425newsos6)
15426 version_type=linux
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 shlibpath_overrides_runpath=yes
15430 ;;
15431
15432*nto* | *qnx*)
15433 version_type=qnx
15434 need_lib_prefix=no
15435 need_version=no
15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15437 soname_spec='${libname}${release}${shared_ext}$major'
15438 shlibpath_var=LD_LIBRARY_PATH
15439 shlibpath_overrides_runpath=no
15440 hardcode_into_libs=yes
15441 dynamic_linker='ldqnx.so'
15442 ;;
15443
15444openbsd*)
15445 version_type=sunos
15446 sys_lib_dlsearch_path_spec="/usr/lib"
15447 need_lib_prefix=no
15448 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15449 case $host_os in
15450 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15451 *) need_version=no ;;
15452 esac
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15455 shlibpath_var=LD_LIBRARY_PATH
15456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15457 case $host_os in
15458 openbsd2.[89] | openbsd2.[89].*)
15459 shlibpath_overrides_runpath=no
15460 ;;
15461 *)
15462 shlibpath_overrides_runpath=yes
15463 ;;
15464 esac
15465 else
15466 shlibpath_overrides_runpath=yes
15467 fi
15468 ;;
15469
15470os2*)
15471 libname_spec='$name'
15472 shrext_cmds=".dll"
15473 need_lib_prefix=no
15474 library_names_spec='$libname${shared_ext} $libname.a'
15475 dynamic_linker='OS/2 ld.exe'
15476 shlibpath_var=LIBPATH
15477 ;;
15478
15479osf3* | osf4* | osf5*)
15480 version_type=osf
15481 need_lib_prefix=no
15482 need_version=no
15483 soname_spec='${libname}${release}${shared_ext}$major'
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15488 ;;
15489
15490rdos*)
15491 dynamic_linker=no
15492 ;;
15493
15494solaris*)
15495 version_type=linux
15496 need_lib_prefix=no
15497 need_version=no
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15499 soname_spec='${libname}${release}${shared_ext}$major'
15500 shlibpath_var=LD_LIBRARY_PATH
15501 shlibpath_overrides_runpath=yes
15502 hardcode_into_libs=yes
15503 # ldd complains unless libraries are executable
15504 postinstall_cmds='chmod +x $lib'
15505 ;;
15506
15507sunos4*)
15508 version_type=sunos
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15511 shlibpath_var=LD_LIBRARY_PATH
15512 shlibpath_overrides_runpath=yes
15513 if test "$with_gnu_ld" = yes; then
15514 need_lib_prefix=no
15515 fi
15516 need_version=yes
15517 ;;
15518
15519sysv4 | sysv4.3*)
15520 version_type=linux
15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522 soname_spec='${libname}${release}${shared_ext}$major'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 case $host_vendor in
15525 sni)
15526 shlibpath_overrides_runpath=no
15527 need_lib_prefix=no
15528 runpath_var=LD_RUN_PATH
15529 ;;
15530 siemens)
15531 need_lib_prefix=no
15532 ;;
15533 motorola)
15534 need_lib_prefix=no
15535 need_version=no
15536 shlibpath_overrides_runpath=no
15537 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15538 ;;
15539 esac
15540 ;;
15541
15542sysv4*MP*)
15543 if test -d /usr/nec ;then
15544 version_type=linux
15545 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15546 soname_spec='$libname${shared_ext}.$major'
15547 shlibpath_var=LD_LIBRARY_PATH
15548 fi
15549 ;;
15550
15551sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15552 version_type=freebsd-elf
15553 need_lib_prefix=no
15554 need_version=no
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15556 soname_spec='${libname}${release}${shared_ext}$major'
15557 shlibpath_var=LD_LIBRARY_PATH
15558 shlibpath_overrides_runpath=yes
15559 hardcode_into_libs=yes
15560 if test "$with_gnu_ld" = yes; then
15561 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15562 else
15563 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15564 case $host_os in
15565 sco3.2v5*)
15566 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15567 ;;
15568 esac
15569 fi
15570 sys_lib_dlsearch_path_spec='/usr/lib'
15571 ;;
15572
15573tpf*)
15574 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15575 version_type=linux
15576 need_lib_prefix=no
15577 need_version=no
d58dead8 15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
15579 shlibpath_var=LD_LIBRARY_PATH
15580 shlibpath_overrides_runpath=no
15581 hardcode_into_libs=yes
15582 ;;
15583
15584uts4*)
15585 version_type=linux
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 shlibpath_var=LD_LIBRARY_PATH
15589 ;;
15590
15591*)
15592 dynamic_linker=no
15593 ;;
15594esac
5213506e
RW
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15596$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
15597test "$dynamic_linker" = no && can_build_shared=no
15598
15599variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15600if test "$GCC" = yes; then
15601 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9cdc381b 15602fi
9cdc381b 15603
d58dead8
PG
15604if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15605 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15606fi
15607if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15608 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15609fi
15610
9cdc381b 15611
1cf3d07d
SE
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
43e02a8a
RW
15643
15644
1cf3d07d
SE
15645
15646
15647
5213506e
RW
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15649$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
15650hardcode_action_FC=
15651if test -n "$hardcode_libdir_flag_spec_FC" ||
15652 test -n "$runpath_var_FC" ||
15653 test "X$hardcode_automatic_FC" = "Xyes" ; then
15654
15655 # We can hardcode non-existent directories.
15656 if test "$hardcode_direct_FC" != no &&
15657 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15658 # have to relink, otherwise we might link with an installed library
15659 # when we should be linking with a yet-to-be-installed one
15660 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15661 test "$hardcode_minus_L_FC" != no; then
15662 # Linking always hardcodes the temporary library directory.
15663 hardcode_action_FC=relink
15664 else
15665 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15666 hardcode_action_FC=immediate
15667 fi
15668else
15669 # We cannot hardcode anything, or else we can only hardcode existing
15670 # directories.
15671 hardcode_action_FC=unsupported
9cdc381b 15672fi
5213506e
RW
15673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15674$as_echo "$hardcode_action_FC" >&6; }
1cf3d07d
SE
15675
15676if test "$hardcode_action_FC" = relink ||
15677 test "$inherit_rpath_FC" = yes; then
15678 # Fast installation is not supported
15679 enable_fast_install=no
15680elif test "$shlibpath_overrides_runpath" = yes ||
15681 test "$enable_shared" = no; then
15682 # Fast installation is not necessary
15683 enable_fast_install=needless
9cdc381b
BD
15684fi
15685
1cf3d07d
SE
15686
15687
15688
15689
15690
15691
15692 fi # test -n "$compiler"
15693
d58dead8 15694 GCC=$lt_save_GCC
1cf3d07d
SE
15695 CC="$lt_save_CC"
15696fi # test "$_lt_disable_FC" != yes
15697
dd46a4de 15698ac_ext=c
96b8a615
AJ
15699ac_cpp='$CPP $CPPFLAGS'
15700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15702ac_compiler_gnu=$ac_cv_c_compiler_gnu
1cf3d07d
SE
15703
15704
15705
15706# extra LD Flags which are required for targets
15707case "${host}" in
15708 *-darwin*)
15709 # Darwin needs -single_module when linking libgfortran
15710 extra_ldflags_libgfortran=-Wl,-single_module
15711 ;;
15712esac
15713
15714
15715# We need a working compiler at that point, otherwise give a clear
15716# error message and bail out.
15717
5213506e
RW
15718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15719$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15720ac_ext=${ac_fc_srcext-f}
15721ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15722ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
15723ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15724
5213506e 15725cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15726
15727 program foo
15728 real, parameter :: bar = sin (12.34 / 2.5)
15729 end program foo
6de9cd9a 15730_ACEOF
5213506e
RW
15731if ac_fn_fc_try_compile "$LINENO"; then :
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15733$as_echo "yes" >&6; }
6de9cd9a 15734else
5213506e
RW
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15736$as_echo "no" >&6; }
15737 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 15738
96b8a615 15739fi
5213506e 15740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
15741ac_ext=c
15742ac_cpp='$CPP $CPPFLAGS'
15743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15745ac_compiler_gnu=$ac_cv_c_compiler_gnu
96b8a615 15746
96b8a615 15747
1cf3d07d 15748
5213506e
RW
15749# Check whether --enable-largefile was given.
15750if test "${enable_largefile+set}" = set; then :
15751 enableval=$enable_largefile;
15752fi
1cf3d07d 15753
1cf3d07d
SE
15754if test "$enable_largefile" != no; then
15755
5213506e
RW
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15757$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15758if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15759 $as_echo_n "(cached) " >&6
96b8a615 15760else
1cf3d07d
SE
15761 ac_cv_sys_largefile_CC=no
15762 if test "$GCC" != yes; then
15763 ac_save_CC=$CC
15764 while :; do
5213506e
RW
15765 # IRIX 6.2 and later do not support large files by default,
15766 # so use the C compiler's -n32 option if that helps.
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96b8a615 15768/* end confdefs.h. */
1cf3d07d
SE
15769#include <sys/types.h>
15770 /* Check that off_t can represent 2**63 - 1 correctly.
15771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15772 since some C++ compilers masquerading as C compilers
15773 incorrectly reject 9223372036854775807. */
15774#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
15775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15776 && LARGE_OFF_T % 2147483647 == 1)
15777 ? 1 : -1];
4c4b3eb0
PB
15778int
15779main ()
15780{
4c4b3eb0
PB
15781
15782 ;
15783 return 0;
15784}
15785_ACEOF
5213506e
RW
15786 if ac_fn_c_try_compile "$LINENO"; then :
15787 break
4c4b3eb0 15788fi
5213506e
RW
15789rm -f core conftest.err conftest.$ac_objext
15790 CC="$CC -n32"
15791 if ac_fn_c_try_compile "$LINENO"; then :
15792 ac_cv_sys_largefile_CC=' -n32'; break
15793fi
15794rm -f core conftest.err conftest.$ac_objext
15795 break
15796 done
15797 CC=$ac_save_CC
15798 rm -f conftest.$ac_ext
15799 fi
15800fi
15801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15802$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15803 if test "$ac_cv_sys_largefile_CC" != no; then
15804 CC=$CC$ac_cv_sys_largefile_CC
15805 fi
4c4b3eb0 15806
5213506e
RW
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15808$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15809if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15810 $as_echo_n "(cached) " >&6
15811else
15812 while :; do
15813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15814/* end confdefs.h. */
5213506e
RW
15815#include <sys/types.h>
15816 /* Check that off_t can represent 2**63 - 1 correctly.
15817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15818 since some C++ compilers masquerading as C compilers
15819 incorrectly reject 9223372036854775807. */
15820#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15822 && LARGE_OFF_T % 2147483647 == 1)
15823 ? 1 : -1];
4c4b3eb0
PB
15824int
15825main ()
15826{
4c4b3eb0
PB
15827
15828 ;
15829 return 0;
15830}
15831_ACEOF
5213506e
RW
15832if ac_fn_c_try_compile "$LINENO"; then :
15833 ac_cv_sys_file_offset_bits=no; break
15834fi
15835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15837/* end confdefs.h. */
5213506e
RW
15838#define _FILE_OFFSET_BITS 64
15839#include <sys/types.h>
15840 /* Check that off_t can represent 2**63 - 1 correctly.
15841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15842 since some C++ compilers masquerading as C compilers
15843 incorrectly reject 9223372036854775807. */
15844#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15846 && LARGE_OFF_T % 2147483647 == 1)
15847 ? 1 : -1];
4c4b3eb0
PB
15848int
15849main ()
15850{
4c4b3eb0
PB
15851
15852 ;
15853 return 0;
15854}
15855_ACEOF
5213506e
RW
15856if ac_fn_c_try_compile "$LINENO"; then :
15857 ac_cv_sys_file_offset_bits=64; break
4c4b3eb0 15858fi
5213506e
RW
15859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860 ac_cv_sys_file_offset_bits=unknown
15861 break
15862done
4c4b3eb0 15863fi
5213506e
RW
15864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15865$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15866case $ac_cv_sys_file_offset_bits in #(
15867 no | unknown) ;;
15868 *)
15869cat >>confdefs.h <<_ACEOF
15870#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4c4b3eb0 15871_ACEOF
5213506e
RW
15872;;
15873esac
15874rm -rf conftest*
15875 if test $ac_cv_sys_file_offset_bits = unknown; then
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15877$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15878if test "${ac_cv_sys_large_files+set}" = set; then :
15879 $as_echo_n "(cached) " >&6
15880else
15881 while :; do
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15883/* end confdefs.h. */
5213506e
RW
15884#include <sys/types.h>
15885 /* Check that off_t can represent 2**63 - 1 correctly.
15886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15887 since some C++ compilers masquerading as C compilers
15888 incorrectly reject 9223372036854775807. */
15889#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15891 && LARGE_OFF_T % 2147483647 == 1)
15892 ? 1 : -1];
4c4b3eb0
PB
15893int
15894main ()
15895{
4c4b3eb0
PB
15896
15897 ;
15898 return 0;
15899}
15900_ACEOF
5213506e
RW
15901if ac_fn_c_try_compile "$LINENO"; then :
15902 ac_cv_sys_large_files=no; break
4c4b3eb0 15903fi
5213506e
RW
15904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15906/* end confdefs.h. */
5213506e
RW
15907#define _LARGE_FILES 1
15908#include <sys/types.h>
15909 /* Check that off_t can represent 2**63 - 1 correctly.
15910 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15911 since some C++ compilers masquerading as C compilers
15912 incorrectly reject 9223372036854775807. */
15913#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15914 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15915 && LARGE_OFF_T % 2147483647 == 1)
15916 ? 1 : -1];
4c4b3eb0
PB
15917int
15918main ()
15919{
15920
4c4b3eb0
PB
15921 ;
15922 return 0;
15923}
15924_ACEOF
5213506e
RW
15925if ac_fn_c_try_compile "$LINENO"; then :
15926 ac_cv_sys_large_files=1; break
4c4b3eb0 15927fi
5213506e
RW
15928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 ac_cv_sys_large_files=unknown
15930 break
15931done
38d24731 15932fi
5213506e
RW
15933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15934$as_echo "$ac_cv_sys_large_files" >&6; }
15935case $ac_cv_sys_large_files in #(
15936 no | unknown) ;;
15937 *)
4c4b3eb0 15938cat >>confdefs.h <<_ACEOF
5213506e 15939#define _LARGE_FILES $ac_cv_sys_large_files
4c4b3eb0 15940_ACEOF
5213506e
RW
15941;;
15942esac
15943rm -rf conftest*
15944 fi
4c4b3eb0
PB
15945fi
15946
44720bef
JB
15947
15948# Types
5213506e
RW
15949ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15950if test "x$ac_cv_type_off_t" = x""yes; then :
4c4b3eb0 15951
5213506e 15952else
4c4b3eb0 15953
5213506e
RW
15954cat >>confdefs.h <<_ACEOF
15955#define off_t long int
15956_ACEOF
4c4b3eb0 15957
44720bef
JB
15958fi
15959
15960
15961 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15962if test "x$ac_cv_type_intptr_t" = x""yes; then :
15963
15964$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15965
15966else
15967 for ac_type in 'int' 'long int' 'long long int'; do
15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969/* end confdefs.h. */
15970$ac_includes_default
15971int
15972main ()
15973{
15974static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15975test_array [0] = 0
15976
15977 ;
15978 return 0;
15979}
15980_ACEOF
15981if ac_fn_c_try_compile "$LINENO"; then :
15982
15983cat >>confdefs.h <<_ACEOF
15984#define intptr_t $ac_type
15985_ACEOF
15986
15987 ac_type=
15988fi
15989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990 test -z "$ac_type" && break
15991 done
15992fi
15993
15994
15995
15996 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15997if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15998
15999$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16000
16001else
16002 for ac_type in 'unsigned int' 'unsigned long int' \
16003 'unsigned long long int'; do
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005/* end confdefs.h. */
16006$ac_includes_default
16007int
16008main ()
16009{
16010static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16011test_array [0] = 0
16012
16013 ;
16014 return 0;
16015}
16016_ACEOF
16017if ac_fn_c_try_compile "$LINENO"; then :
16018
16019cat >>confdefs.h <<_ACEOF
16020#define uintptr_t $ac_type
16021_ACEOF
16022
16023 ac_type=
16024fi
16025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026 test -z "$ac_type" && break
16027 done
16028fi
16029
16030
16031ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16032if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
16033
16034cat >>confdefs.h <<_ACEOF
16035#define HAVE_PTRDIFF_T 1
16036_ACEOF
16037
16038
4c4b3eb0
PB
16039fi
16040
4c4b3eb0 16041
74544378 16042# check header files (we assume C89 is available, so don't check for that)
df65f093 16043
5213506e 16044
df65f093 16045
74544378
JB
16046 for ac_header in $ac_header_list
16047do :
16048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16049ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16050"
16051eval as_val=\$$as_ac_Header
16052 if test "x$as_val" = x""yes; then :
16053 cat >>confdefs.h <<_ACEOF
16054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
df65f093
SK
16055_ACEOF
16056
5213506e 16057fi
df65f093 16058
74544378 16059done
df65f093 16060
5213506e 16061
5213506e 16062
df65f093 16063
5213506e 16064
5213506e 16065
df65f093 16066
df65f093 16067
df65f093
SK
16068
16069
df65f093 16070
df65f093 16071
df65f093
SK
16072
16073
df65f093
SK
16074
16075
41724e6a 16076
2cbcdeba 16077
3969c39f 16078
1fb2002d
FXC
16079
16080
32aa3bff 16081
f77b6ca3 16082
f77b6ca3 16083
f77b6ca3 16084
f77b6ca3 16085
f77b6ca3 16086
f77b6ca3 16087
fa86f4f9
TB
16088
16089
9cbecd06
JB
16090
16091
f77b6ca3 16092
f77b6ca3 16093
6de9cd9a 16094
c13e029b 16095inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
6de9cd9a 16096
c13e029b
PB
16097acx_cv_header_stdint=stddef.h
16098acx_cv_header_stdint_kind="(already complete)"
16099for i in stdint.h $inttype_headers; do
16100 unset ac_cv_type_uintptr_t
16101 unset ac_cv_type_uintmax_t
16102 unset ac_cv_type_int_least32_t
16103 unset ac_cv_type_int_fast32_t
16104 unset ac_cv_type_uint64_t
16105 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16106 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16107#include <$i>
16108"
16109if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16110 acx_cv_header_stdint=$i
5213506e 16111else
c13e029b 16112 continue
5213506e 16113fi
6de9cd9a 16114
c13e029b
PB
16115 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16116#include <$i>
16117"
16118if test "x$ac_cv_type_uintptr_t" = x""yes; then :
96b8a615 16119
5213506e 16120else
c13e029b 16121 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16122fi
96b8a615 16123
c13e029b
PB
16124 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16125#include <$i>
16126"
16127if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16128
f77b6ca3 16129else
c13e029b 16130 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16131fi
5213506e 16132
c13e029b
PB
16133 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16134#include <$i>
16135"
16136if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
f77b6ca3 16137
c13e029b
PB
16138else
16139 acx_cv_header_stdint_kind="(mostly complete)"
16140fi
d72a3ac1 16141
c13e029b
PB
16142 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16143#include <$i>
16144"
16145if test "x$ac_cv_type_uint64_t" = x""yes; then :
d72a3ac1 16146
5213506e 16147else
c13e029b
PB
16148 acx_cv_header_stdint_kind="(lacks uint64_t)"
16149fi
f77b6ca3 16150
c13e029b
PB
16151 break
16152done
16153if test "$acx_cv_header_stdint" = stddef.h; then
16154 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16155 for i in stdint.h $inttype_headers; do
16156 unset ac_cv_type_uintptr_t
16157 unset ac_cv_type_uint32_t
16158 unset ac_cv_type_uint64_t
16159 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16160 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16161#include <$i>
16162"
16163if test "x$ac_cv_type_uint32_t" = x""yes; then :
16164 acx_cv_header_stdint=$i
16165else
16166 continue
5213506e 16167fi
f77b6ca3 16168
c13e029b
PB
16169 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16170#include <$i>
16171"
16172if test "x$ac_cv_type_uint64_t" = x""yes; then :
8845001b 16173
c13e029b 16174fi
185d7d97 16175
c13e029b
PB
16176 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16177#include <$i>
16178"
16179if test "x$ac_cv_type_uintptr_t" = x""yes; then :
185d7d97 16180
c13e029b 16181fi
35059811 16182
c13e029b
PB
16183 break
16184 done
16185fi
16186if test "$acx_cv_header_stdint" = stddef.h; then
16187 acx_cv_header_stdint_kind="(u_intXX_t style)"
16188 for i in sys/types.h $inttype_headers; do
16189 unset ac_cv_type_u_int32_t
16190 unset ac_cv_type_u_int64_t
16191 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16192 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16193#include <$i>
16194"
16195if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16196 acx_cv_header_stdint=$i
d72a3ac1 16197else
c13e029b
PB
16198 continue
16199fi
a119fc1c 16200
c13e029b
PB
16201 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16202#include <$i>
16203"
16204if test "x$ac_cv_type_u_int64_t" = x""yes; then :
a119fc1c 16205
c13e029b 16206fi
a119fc1c 16207
c13e029b
PB
16208 break
16209 done
a119fc1c 16210fi
c13e029b
PB
16211if test "$acx_cv_header_stdint" = stddef.h; then
16212 acx_cv_header_stdint_kind="(using manual detection)"
5213506e 16213fi
a119fc1c 16214
c13e029b
PB
16215test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16216test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16217test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16218test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16219test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
a119fc1c 16220
c13e029b 16221# ----------------- Summarize what we found so far
5213506e 16222
c13e029b
PB
16223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16224$as_echo_n "checking what to include in gstdint.h... " >&6; }
a119fc1c 16225
c13e029b
PB
16226case `$as_basename -- gstdint.h ||
16227$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16228 Xgstdint.h : 'X\(//\)$' \| \
16229 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16230$as_echo X/gstdint.h |
16231 sed '/^.*\/\([^/][^/]*\)\/*$/{
16232 s//\1/
16233 q
16234 }
16235 /^X\/\(\/\/\)$/{
16236 s//\1/
16237 q
16238 }
16239 /^X\/\(\/\).*/{
16240 s//\1/
16241 q
16242 }
16243 s/.*/./; q'` in
16244 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16245$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16246 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16247$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16248 *) ;;
16249esac
a119fc1c 16250
c13e029b
PB
16251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16252$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
a63a0959 16253
c13e029b 16254# ----------------- done included file, check C basic types --------
868d75db 16255
c13e029b
PB
16256# Lacking an uintptr_t? Test size of void *
16257case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16258 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16259# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16260# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16261# This bug is HP SR number 8606223364.
16262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16263$as_echo_n "checking size of void *... " >&6; }
16264if test "${ac_cv_sizeof_void_p+set}" = set; then :
16265 $as_echo_n "(cached) " >&6
16266else
16267 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
868d75db 16268
c13e029b
PB
16269else
16270 if test "$ac_cv_type_void_p" = yes; then
16271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16273{ as_fn_set_status 77
16274as_fn_error "cannot compute sizeof (void *)
16275See \`config.log' for more details." "$LINENO" 5; }; }
16276 else
16277 ac_cv_sizeof_void_p=0
16278 fi
16279fi
d72a3ac1 16280
c13e029b
PB
16281fi
16282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16283$as_echo "$ac_cv_sizeof_void_p" >&6; }
d72a3ac1 16284
868d75db
FXC
16285
16286
d72a3ac1 16287cat >>confdefs.h <<_ACEOF
c13e029b 16288#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
d72a3ac1 16289_ACEOF
d72a3ac1 16290
c13e029b
PB
16291 ;;
16292esac
d72a3ac1 16293
c13e029b
PB
16294# Lacking an uint64_t? Test size of long
16295case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16296 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16297# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16298# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16299# This bug is HP SR number 8606223364.
16300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16301$as_echo_n "checking size of long... " >&6; }
16302if test "${ac_cv_sizeof_long+set}" = set; then :
5213506e
RW
16303 $as_echo_n "(cached) " >&6
16304else
c13e029b 16305 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
d72a3ac1 16306
7f483eec 16307else
c13e029b
PB
16308 if test "$ac_cv_type_long" = yes; then
16309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16311{ as_fn_set_status 77
16312as_fn_error "cannot compute sizeof (long)
16313See \`config.log' for more details." "$LINENO" 5; }; }
16314 else
16315 ac_cv_sizeof_long=0
16316 fi
5213506e 16317fi
7f483eec 16318
c13e029b
PB
16319fi
16320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16321$as_echo "$ac_cv_sizeof_long" >&6; }
d72a3ac1 16322
7f483eec 16323
d72a3ac1
PB
16324
16325cat >>confdefs.h <<_ACEOF
c13e029b 16326#define SIZEOF_LONG $ac_cv_sizeof_long
d72a3ac1 16327_ACEOF
7f483eec 16328
c13e029b
PB
16329 ;;
16330esac
29e86cb0 16331
c13e029b
PB
16332if test $acx_cv_header_stdint = stddef.h; then
16333 # Lacking a good header? Test size of everything and deduce all types.
16334 # The cast to long int works around a bug in the HP C Compiler
16335# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16336# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16337# This bug is HP SR number 8606223364.
16338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16339$as_echo_n "checking size of int... " >&6; }
16340if test "${ac_cv_sizeof_int+set}" = set; then :
16341 $as_echo_n "(cached) " >&6
16342else
16343 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6422c112 16344
c13e029b
PB
16345else
16346 if test "$ac_cv_type_int" = yes; then
16347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16349{ as_fn_set_status 77
16350as_fn_error "cannot compute sizeof (int)
16351See \`config.log' for more details." "$LINENO" 5; }; }
16352 else
16353 ac_cv_sizeof_int=0
16354 fi
16355fi
d8163f5c 16356
c13e029b
PB
16357fi
16358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16359$as_echo "$ac_cv_sizeof_int" >&6; }
2515e5a7
FXC
16360
16361
868d75db 16362
d72a3ac1 16363cat >>confdefs.h <<_ACEOF
c13e029b 16364#define SIZEOF_INT $ac_cv_sizeof_int
d72a3ac1
PB
16365_ACEOF
16366
d72a3ac1 16367
c13e029b
PB
16368 # The cast to long int works around a bug in the HP C Compiler
16369# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16370# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16371# This bug is HP SR number 8606223364.
16372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16373$as_echo_n "checking size of short... " >&6; }
16374if test "${ac_cv_sizeof_short+set}" = set; then :
16375 $as_echo_n "(cached) " >&6
16376else
16377 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
d72a3ac1 16378
c13e029b
PB
16379else
16380 if test "$ac_cv_type_short" = yes; then
16381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16383{ as_fn_set_status 77
16384as_fn_error "cannot compute sizeof (short)
16385See \`config.log' for more details." "$LINENO" 5; }; }
16386 else
16387 ac_cv_sizeof_short=0
16388 fi
16389fi
d72a3ac1 16390
c13e029b
PB
16391fi
16392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16393$as_echo "$ac_cv_sizeof_short" >&6; }
d72a3ac1
PB
16394
16395
16396
c13e029b
PB
16397cat >>confdefs.h <<_ACEOF
16398#define SIZEOF_SHORT $ac_cv_sizeof_short
16399_ACEOF
d72a3ac1
PB
16400
16401
c13e029b
PB
16402 # The cast to long int works around a bug in the HP C Compiler
16403# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16404# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16405# This bug is HP SR number 8606223364.
16406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16407$as_echo_n "checking size of char... " >&6; }
16408if test "${ac_cv_sizeof_char+set}" = set; then :
16409 $as_echo_n "(cached) " >&6
16410else
16411 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
d72a3ac1 16412
c13e029b
PB
16413else
16414 if test "$ac_cv_type_char" = yes; then
16415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16417{ as_fn_set_status 77
16418as_fn_error "cannot compute sizeof (char)
16419See \`config.log' for more details." "$LINENO" 5; }; }
16420 else
16421 ac_cv_sizeof_char=0
16422 fi
16423fi
d72a3ac1 16424
c13e029b
PB
16425fi
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16427$as_echo "$ac_cv_sizeof_char" >&6; }
d72a3ac1
PB
16428
16429
d72a3ac1 16430
5213506e 16431cat >>confdefs.h <<_ACEOF
c13e029b 16432#define SIZEOF_CHAR $ac_cv_sizeof_char
868d75db 16433_ACEOF
868d75db 16434
868d75db 16435
2017c370 16436
c13e029b
PB
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16438$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16439 case "$ac_cv_sizeof_char" in
16440 1) acx_cv_type_int8_t=char ;;
75bc9e5e 16441 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16442 esac
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16444$as_echo "$acx_cv_type_int8_t" >&6; }
16445
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16447$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16448 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16449 2:*) acx_cv_type_int16_t=int ;;
16450 *:2) acx_cv_type_int16_t=short ;;
75bc9e5e 16451 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16452 esac
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16454$as_echo "$acx_cv_type_int16_t" >&6; }
16455
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16457$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16458 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16459 4:*) acx_cv_type_int32_t=int ;;
16460 *:4) acx_cv_type_int32_t=long ;;
75bc9e5e 16461 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16462 esac
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16464$as_echo "$acx_cv_type_int32_t" >&6; }
5213506e
RW
16465fi
16466
c13e029b 16467# These tests are here to make the output prettier
d72a3ac1 16468
c13e029b
PB
16469if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16470 case "$ac_cv_sizeof_long" in
16471 8) acx_cv_type_int64_t=long ;;
16472 esac
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16474$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16476$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16477fi
16478
16479# Now we can use the above types
16480
16481if test "$ac_cv_type_uintptr_t" != yes; then
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16483$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16484 case $ac_cv_sizeof_void_p in
16485 2) acx_cv_type_intptr_t=int16_t ;;
16486 4) acx_cv_type_intptr_t=int32_t ;;
16487 8) acx_cv_type_intptr_t=int64_t ;;
75bc9e5e 16488 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c13e029b
PB
16489 esac
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16491$as_echo "$acx_cv_type_intptr_t" >&6; }
16492fi
d72a3ac1 16493
c13e029b 16494# ----------------- done all checks, emit header -------------
5213506e 16495ac_config_commands="$ac_config_commands gstdint.h"
2017c370 16496
2017c370 16497
5213506e
RW
16498
16499
16500ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16501if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16502
16503cat >>confdefs.h <<_ACEOF
16504#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
2017c370 16505_ACEOF
2017c370 16506
5213506e 16507
2017c370 16508fi
5213506e
RW
16509ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16510if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16511
16512cat >>confdefs.h <<_ACEOF
16513#define HAVE_STRUCT_STAT_ST_BLOCKS 1
2017c370
JB
16514_ACEOF
16515
5213506e 16516
2017c370 16517fi
5213506e
RW
16518ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16519if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
2017c370 16520
5213506e
RW
16521cat >>confdefs.h <<_ACEOF
16522#define HAVE_STRUCT_STAT_ST_RDEV 1
16523_ACEOF
868d75db
FXC
16524
16525
f02d008e 16526fi
5213506e
RW
16527
16528
bd459d0b
JG
16529case "${host}--x${with_newlib}" in
16530 mips*--xyes)
16531 hardwire_newlib=1;;
d3ca2257
NS
16532 nvptx*--xyes)
16533 hardwire_newlib=1;;
bd459d0b
JG
16534esac
16535
5213506e 16536# Check for library functions.
bd459d0b 16537if test "${hardwire_newlib:-0}" -eq 1; then
b4005c71
SE
16538 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16539 # may not work correctly, because the compiler may not be able to
16540 # link executables.
16541
16542$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16543
16544
16545$as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16546
16547
b4005c71
SE
16548$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16549
16550
b4005c71
SE
16551$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16552
16553
16554$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16555
16556
16557$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16558
cb83df66 16559
ebfedee6
HPN
16560$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16561
16562
16563$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16564
16565
cb83df66
SE
16566 # At some point, we should differentiate between architectures
16567 # like x86, which have long double versions, and alpha/powerpc/etc.,
16568 # which don't. For the time being, punt.
16569 if test x"long_double_math_on_this_cpu" = x"yes"; then
16570
16571$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16572
16573 fi
b4005c71 16574else
f77b6ca3 16575
f77b6ca3 16576
74544378
JB
16577
16578 for ac_func in $ac_func_list
5213506e
RW
16579do :
16580 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16581ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16582eval as_val=\$$as_ac_var
16583 if test "x$as_val" = x""yes; then :
16584 cat >>confdefs.h <<_ACEOF
16585#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16586_ACEOF
f77b6ca3 16587
5213506e
RW
16588fi
16589done
f77b6ca3 16590
f77b6ca3 16591
5213506e 16592
96b8a615 16593
5213506e 16594
5213506e 16595
5213506e 16596
6de9cd9a 16597
6de9cd9a 16598
b6e7a3d1 16599
b6e7a3d1 16600
6de9cd9a 16601
4c0c6b9f 16602
4c0c6b9f 16603
4c0c6b9f 16604
4c0c6b9f 16605
4c0c6b9f 16606
4c0c6b9f 16607
4c0c6b9f 16608
4c0c6b9f 16609
868d75db 16610
868d75db 16611
868d75db 16612
868d75db 16613
4c0c6b9f 16614
4c0c6b9f 16615
4c0c6b9f 16616
4c0c6b9f 16617
6422c112 16618
6422c112 16619
6422c112 16620
74544378
JB
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
68ee9c08 16677
227e441f 16678
9cbecd06
JB
16679
16680
4269f19c
JB
16681
16682
b5b58343
UW
16683
16684
70480968
JB
16685
16686
227e441f 16687
8ecd1c0d
TB
16688
16689
b4005c71 16690fi
74544378 16691
4179e59a
TB
16692# Check strerror_r, cannot be above as versions with two and three arguments exist
16693
16694 ac_save_CFLAGS="$CFLAGS"
16695 CFLAGS="-Wimplicit-function-declaration -Werror"
16696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697/* end confdefs.h. */
16698#define _GNU_SOURCE 1
16699 #include <string.h>
16700 #include <locale.h>
16701int
16702main ()
16703{
16704char s[128]; strerror_r(5, s, 128);
16705 ;
16706 return 0;
16707}
16708_ACEOF
16709if ac_fn_c_try_compile "$LINENO"; then :
16710
16711$as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16712
16713fi
16714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715 CFLAGS="$ac_save_CFLAGS"
16716
16717 ac_save_CFLAGS="$CFLAGS"
16718 CFLAGS="-Wimplicit-function-declaration -Werror"
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720/* end confdefs.h. */
16721#define _GNU_SOURCE 1
16722 #include <string.h>
16723 #include <locale.h>
16724int
16725main ()
16726{
16727char s[128]; strerror_r(5, s);
16728 ;
16729 return 0;
16730}
16731_ACEOF
16732if ac_fn_c_try_compile "$LINENO"; then :
16733
16734$as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16735
16736fi
16737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 CFLAGS="$ac_save_CFLAGS"
6422c112 16739
4c0c6b9f 16740
453310d8 16741# Check for C99 (and other IEEE) math functions
db9f46a9
TG
16742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16743$as_echo_n "checking for sin in -lm... " >&6; }
16744if test "${ac_cv_lib_m_sin+set}" = set; then :
5213506e 16745 $as_echo_n "(cached) " >&6
453310d8
RS
16746else
16747 ac_check_lib_save_LIBS=$LIBS
16748LIBS="-lm $LIBS"
f02d008e 16749if test x$gcc_no_link = xyes; then
5213506e 16750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16751fi
5213506e 16752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16753/* end confdefs.h. */
16754
5213506e
RW
16755/* Override any GCC internal prototype to avoid an error.
16756 Use char because int might match the return type of a GCC
16757 builtin and then its argument prototype would still apply. */
453310d8
RS
16758#ifdef __cplusplus
16759extern "C"
16760#endif
db9f46a9 16761char sin ();
453310d8
RS
16762int
16763main ()
16764{
db9f46a9 16765return sin ();
453310d8
RS
16766 ;
16767 return 0;
16768}
16769_ACEOF
5213506e 16770if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16771 ac_cv_lib_m_sin=yes
453310d8 16772else
db9f46a9 16773 ac_cv_lib_m_sin=no
453310d8 16774fi
5213506e
RW
16775rm -f core conftest.err conftest.$ac_objext \
16776 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
16777LIBS=$ac_check_lib_save_LIBS
16778fi
db9f46a9
TG
16779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16780$as_echo "$ac_cv_lib_m_sin" >&6; }
16781if test "x$ac_cv_lib_m_sin" = x""yes; then :
16782 cat >>confdefs.h <<_ACEOF
16783#define HAVE_LIBM 1
16784_ACEOF
453310d8 16785
db9f46a9 16786 LIBS="-lm $LIBS"
453310d8
RS
16787
16788fi
16789
db9f46a9
TG
16790
16791
16792
16793
16794
16795
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16797$as_echo_n "checking for acosf... " >&6; }
16798if test "${gcc_cv_math_func_acosf+set}" = set; then :
5213506e 16799 $as_echo_n "(cached) " >&6
f02d008e 16800else
db9f46a9 16801 if test x$gcc_no_link = xyes; then
5213506e 16802 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16803fi
5213506e 16804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16805/* end confdefs.h. */
16806
db9f46a9
TG
16807#ifdef HAVE_COMPLEX_H
16808#include <complex.h>
16809#endif
16810#ifdef HAVE_MATH_H
16811#include <math.h>
f02d008e 16812#endif
db9f46a9
TG
16813
16814int (*ptr)() = (int (*)())acosf;
16815
f02d008e
JD
16816int
16817main ()
16818{
f02d008e
JD
16819 return 0;
16820}
db9f46a9 16821
f02d008e 16822_ACEOF
5213506e 16823if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16824 gcc_cv_math_func_acosf=yes
f02d008e 16825else
db9f46a9 16826 gcc_cv_math_func_acosf=no
f02d008e 16827fi
5213506e
RW
16828rm -f core conftest.err conftest.$ac_objext \
16829 conftest$ac_exeext conftest.$ac_ext
f02d008e 16830fi
db9f46a9
TG
16831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16832$as_echo "$gcc_cv_math_func_acosf" >&6; }
16833 if test $gcc_cv_math_func_acosf = yes; then
f1cdfa01 16834
f38a14ca
TG
16835cat >>confdefs.h <<_ACEOF
16836#define HAVE_ACOSF 1
16837_ACEOF
db9f46a9
TG
16838
16839 fi
f02d008e 16840
f02d008e 16841
f02d008e 16842
db9f46a9
TG
16843
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16845$as_echo_n "checking for acos... " >&6; }
16846if test "${gcc_cv_math_func_acos+set}" = set; then :
5213506e 16847 $as_echo_n "(cached) " >&6
453310d8 16848else
db9f46a9 16849 if test x$gcc_no_link = xyes; then
5213506e 16850 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16851fi
5213506e 16852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16853/* end confdefs.h. */
16854
db9f46a9
TG
16855#ifdef HAVE_COMPLEX_H
16856#include <complex.h>
453310d8 16857#endif
db9f46a9
TG
16858#ifdef HAVE_MATH_H
16859#include <math.h>
16860#endif
16861
16862int (*ptr)() = (int (*)())acos;
16863
453310d8
RS
16864int
16865main ()
16866{
453310d8
RS
16867 return 0;
16868}
db9f46a9 16869
453310d8 16870_ACEOF
5213506e 16871if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16872 gcc_cv_math_func_acos=yes
453310d8 16873else
db9f46a9 16874 gcc_cv_math_func_acos=no
453310d8 16875fi
5213506e
RW
16876rm -f core conftest.err conftest.$ac_objext \
16877 conftest$ac_exeext conftest.$ac_ext
453310d8 16878fi
db9f46a9
TG
16879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16880$as_echo "$gcc_cv_math_func_acos" >&6; }
16881 if test $gcc_cv_math_func_acos = yes; then
f1cdfa01 16882
f38a14ca
TG
16883cat >>confdefs.h <<_ACEOF
16884#define HAVE_ACOS 1
16885_ACEOF
db9f46a9
TG
16886
16887 fi
16888
453310d8 16889
453310d8 16890
453310d8 16891
db9f46a9
TG
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16893$as_echo_n "checking for acosl... " >&6; }
16894if test "${gcc_cv_math_func_acosl+set}" = set; then :
5213506e 16895 $as_echo_n "(cached) " >&6
f02d008e 16896else
db9f46a9 16897 if test x$gcc_no_link = xyes; then
5213506e 16898 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16899fi
5213506e 16900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16901/* end confdefs.h. */
16902
db9f46a9
TG
16903#ifdef HAVE_COMPLEX_H
16904#include <complex.h>
16905#endif
16906#ifdef HAVE_MATH_H
16907#include <math.h>
f02d008e 16908#endif
db9f46a9
TG
16909
16910int (*ptr)() = (int (*)())acosl;
16911
f02d008e
JD
16912int
16913main ()
16914{
f02d008e
JD
16915 return 0;
16916}
db9f46a9 16917
f02d008e 16918_ACEOF
5213506e 16919if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16920 gcc_cv_math_func_acosl=yes
f02d008e 16921else
db9f46a9 16922 gcc_cv_math_func_acosl=no
f02d008e 16923fi
5213506e
RW
16924rm -f core conftest.err conftest.$ac_objext \
16925 conftest$ac_exeext conftest.$ac_ext
f02d008e 16926fi
db9f46a9
TG
16927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16928$as_echo "$gcc_cv_math_func_acosl" >&6; }
16929 if test $gcc_cv_math_func_acosl = yes; then
f1cdfa01 16930
f38a14ca
TG
16931cat >>confdefs.h <<_ACEOF
16932#define HAVE_ACOSL 1
16933_ACEOF
db9f46a9
TG
16934
16935 fi
f02d008e 16936
f02d008e 16937
f02d008e 16938
db9f46a9
TG
16939
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16941$as_echo_n "checking for acoshf... " >&6; }
16942if test "${gcc_cv_math_func_acoshf+set}" = set; then :
5213506e 16943 $as_echo_n "(cached) " >&6
453310d8 16944else
db9f46a9 16945 if test x$gcc_no_link = xyes; then
5213506e 16946 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16947fi
5213506e 16948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16949/* end confdefs.h. */
16950
db9f46a9
TG
16951#ifdef HAVE_COMPLEX_H
16952#include <complex.h>
453310d8 16953#endif
db9f46a9
TG
16954#ifdef HAVE_MATH_H
16955#include <math.h>
16956#endif
16957
16958int (*ptr)() = (int (*)())acoshf;
16959
453310d8
RS
16960int
16961main ()
16962{
453310d8
RS
16963 return 0;
16964}
db9f46a9 16965
453310d8 16966_ACEOF
5213506e 16967if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16968 gcc_cv_math_func_acoshf=yes
453310d8 16969else
db9f46a9 16970 gcc_cv_math_func_acoshf=no
453310d8 16971fi
5213506e
RW
16972rm -f core conftest.err conftest.$ac_objext \
16973 conftest$ac_exeext conftest.$ac_ext
453310d8 16974fi
db9f46a9
TG
16975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16976$as_echo "$gcc_cv_math_func_acoshf" >&6; }
16977 if test $gcc_cv_math_func_acoshf = yes; then
f1cdfa01 16978
f38a14ca
TG
16979cat >>confdefs.h <<_ACEOF
16980#define HAVE_ACOSHF 1
16981_ACEOF
453310d8 16982
db9f46a9 16983 fi
453310d8 16984
453310d8 16985
db9f46a9
TG
16986
16987
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16989$as_echo_n "checking for acosh... " >&6; }
16990if test "${gcc_cv_math_func_acosh+set}" = set; then :
5213506e 16991 $as_echo_n "(cached) " >&6
453310d8 16992else
db9f46a9 16993 if test x$gcc_no_link = xyes; then
5213506e 16994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16995fi
5213506e 16996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16997/* end confdefs.h. */
16998
db9f46a9
TG
16999#ifdef HAVE_COMPLEX_H
17000#include <complex.h>
17001#endif
17002#ifdef HAVE_MATH_H
17003#include <math.h>
453310d8 17004#endif
db9f46a9
TG
17005
17006int (*ptr)() = (int (*)())acosh;
17007
453310d8
RS
17008int
17009main ()
17010{
5213506e
RW
17011 return 0;
17012}
db9f46a9 17013
5213506e
RW
17014_ACEOF
17015if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17016 gcc_cv_math_func_acosh=yes
453310d8 17017else
db9f46a9 17018 gcc_cv_math_func_acosh=no
453310d8 17019fi
5213506e
RW
17020rm -f core conftest.err conftest.$ac_objext \
17021 conftest$ac_exeext conftest.$ac_ext
453310d8 17022fi
db9f46a9
TG
17023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17024$as_echo "$gcc_cv_math_func_acosh" >&6; }
17025 if test $gcc_cv_math_func_acosh = yes; then
f1cdfa01 17026
f38a14ca
TG
17027cat >>confdefs.h <<_ACEOF
17028#define HAVE_ACOSH 1
17029_ACEOF
db9f46a9
TG
17030
17031 fi
453310d8 17032
453310d8 17033
453310d8 17034
db9f46a9
TG
17035
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17037$as_echo_n "checking for acoshl... " >&6; }
17038if test "${gcc_cv_math_func_acoshl+set}" = set; then :
5213506e 17039 $as_echo_n "(cached) " >&6
f02d008e 17040else
db9f46a9 17041 if test x$gcc_no_link = xyes; then
5213506e 17042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17043fi
5213506e 17044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17045/* end confdefs.h. */
17046
db9f46a9
TG
17047#ifdef HAVE_COMPLEX_H
17048#include <complex.h>
f02d008e 17049#endif
db9f46a9
TG
17050#ifdef HAVE_MATH_H
17051#include <math.h>
17052#endif
17053
17054int (*ptr)() = (int (*)())acoshl;
17055
f02d008e
JD
17056int
17057main ()
17058{
f02d008e
JD
17059 return 0;
17060}
db9f46a9 17061
f02d008e 17062_ACEOF
5213506e 17063if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17064 gcc_cv_math_func_acoshl=yes
f02d008e 17065else
db9f46a9 17066 gcc_cv_math_func_acoshl=no
f02d008e 17067fi
5213506e
RW
17068rm -f core conftest.err conftest.$ac_objext \
17069 conftest$ac_exeext conftest.$ac_ext
f02d008e 17070fi
db9f46a9
TG
17071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17072$as_echo "$gcc_cv_math_func_acoshl" >&6; }
17073 if test $gcc_cv_math_func_acoshl = yes; then
f1cdfa01 17074
f38a14ca
TG
17075cat >>confdefs.h <<_ACEOF
17076#define HAVE_ACOSHL 1
17077_ACEOF
db9f46a9
TG
17078
17079 fi
17080
f02d008e 17081
f02d008e 17082
f02d008e 17083
db9f46a9
TG
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17085$as_echo_n "checking for asinf... " >&6; }
17086if test "${gcc_cv_math_func_asinf+set}" = set; then :
5213506e 17087 $as_echo_n "(cached) " >&6
453310d8 17088else
db9f46a9 17089 if test x$gcc_no_link = xyes; then
5213506e 17090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17091fi
5213506e 17092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17093/* end confdefs.h. */
17094
db9f46a9
TG
17095#ifdef HAVE_COMPLEX_H
17096#include <complex.h>
17097#endif
17098#ifdef HAVE_MATH_H
17099#include <math.h>
453310d8 17100#endif
db9f46a9
TG
17101
17102int (*ptr)() = (int (*)())asinf;
17103
453310d8
RS
17104int
17105main ()
17106{
453310d8
RS
17107 return 0;
17108}
db9f46a9 17109
453310d8 17110_ACEOF
5213506e 17111if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17112 gcc_cv_math_func_asinf=yes
453310d8 17113else
db9f46a9 17114 gcc_cv_math_func_asinf=no
453310d8 17115fi
5213506e
RW
17116rm -f core conftest.err conftest.$ac_objext \
17117 conftest$ac_exeext conftest.$ac_ext
453310d8 17118fi
db9f46a9
TG
17119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17120$as_echo "$gcc_cv_math_func_asinf" >&6; }
17121 if test $gcc_cv_math_func_asinf = yes; then
f1cdfa01 17122
f38a14ca
TG
17123cat >>confdefs.h <<_ACEOF
17124#define HAVE_ASINF 1
17125_ACEOF
db9f46a9
TG
17126
17127 fi
453310d8 17128
453310d8 17129
453310d8 17130
db9f46a9
TG
17131
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17133$as_echo_n "checking for asin... " >&6; }
17134if test "${gcc_cv_math_func_asin+set}" = set; then :
5213506e 17135 $as_echo_n "(cached) " >&6
453310d8 17136else
db9f46a9 17137 if test x$gcc_no_link = xyes; then
5213506e 17138 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17139fi
5213506e 17140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17141/* end confdefs.h. */
17142
db9f46a9
TG
17143#ifdef HAVE_COMPLEX_H
17144#include <complex.h>
453310d8 17145#endif
db9f46a9
TG
17146#ifdef HAVE_MATH_H
17147#include <math.h>
17148#endif
17149
17150int (*ptr)() = (int (*)())asin;
17151
453310d8
RS
17152int
17153main ()
17154{
453310d8
RS
17155 return 0;
17156}
db9f46a9 17157
453310d8 17158_ACEOF
5213506e 17159if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17160 gcc_cv_math_func_asin=yes
453310d8 17161else
db9f46a9 17162 gcc_cv_math_func_asin=no
453310d8 17163fi
5213506e
RW
17164rm -f core conftest.err conftest.$ac_objext \
17165 conftest$ac_exeext conftest.$ac_ext
453310d8 17166fi
db9f46a9
TG
17167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17168$as_echo "$gcc_cv_math_func_asin" >&6; }
17169 if test $gcc_cv_math_func_asin = yes; then
f1cdfa01 17170
f38a14ca
TG
17171cat >>confdefs.h <<_ACEOF
17172#define HAVE_ASIN 1
17173_ACEOF
453310d8 17174
db9f46a9 17175 fi
453310d8 17176
453310d8 17177
db9f46a9
TG
17178
17179
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17181$as_echo_n "checking for asinl... " >&6; }
17182if test "${gcc_cv_math_func_asinl+set}" = set; then :
5213506e 17183 $as_echo_n "(cached) " >&6
453310d8 17184else
db9f46a9 17185 if test x$gcc_no_link = xyes; then
5213506e 17186 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17187fi
5213506e 17188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17189/* end confdefs.h. */
17190
db9f46a9
TG
17191#ifdef HAVE_COMPLEX_H
17192#include <complex.h>
17193#endif
17194#ifdef HAVE_MATH_H
17195#include <math.h>
453310d8 17196#endif
db9f46a9
TG
17197
17198int (*ptr)() = (int (*)())asinl;
17199
453310d8
RS
17200int
17201main ()
17202{
453310d8
RS
17203 return 0;
17204}
db9f46a9 17205
453310d8 17206_ACEOF
5213506e 17207if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17208 gcc_cv_math_func_asinl=yes
453310d8 17209else
db9f46a9 17210 gcc_cv_math_func_asinl=no
453310d8 17211fi
5213506e
RW
17212rm -f core conftest.err conftest.$ac_objext \
17213 conftest$ac_exeext conftest.$ac_ext
453310d8 17214fi
db9f46a9
TG
17215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17216$as_echo "$gcc_cv_math_func_asinl" >&6; }
17217 if test $gcc_cv_math_func_asinl = yes; then
f1cdfa01 17218
f38a14ca
TG
17219cat >>confdefs.h <<_ACEOF
17220#define HAVE_ASINL 1
17221_ACEOF
db9f46a9
TG
17222
17223 fi
453310d8 17224
453310d8 17225
453310d8 17226
db9f46a9
TG
17227
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17229$as_echo_n "checking for asinhf... " >&6; }
17230if test "${gcc_cv_math_func_asinhf+set}" = set; then :
5213506e 17231 $as_echo_n "(cached) " >&6
453310d8 17232else
db9f46a9 17233 if test x$gcc_no_link = xyes; then
5213506e 17234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17235fi
5213506e 17236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17237/* end confdefs.h. */
17238
db9f46a9
TG
17239#ifdef HAVE_COMPLEX_H
17240#include <complex.h>
453310d8 17241#endif
db9f46a9
TG
17242#ifdef HAVE_MATH_H
17243#include <math.h>
17244#endif
17245
17246int (*ptr)() = (int (*)())asinhf;
17247
453310d8
RS
17248int
17249main ()
17250{
453310d8
RS
17251 return 0;
17252}
db9f46a9 17253
453310d8 17254_ACEOF
5213506e 17255if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17256 gcc_cv_math_func_asinhf=yes
453310d8 17257else
db9f46a9 17258 gcc_cv_math_func_asinhf=no
453310d8 17259fi
5213506e
RW
17260rm -f core conftest.err conftest.$ac_objext \
17261 conftest$ac_exeext conftest.$ac_ext
453310d8 17262fi
db9f46a9
TG
17263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17264$as_echo "$gcc_cv_math_func_asinhf" >&6; }
17265 if test $gcc_cv_math_func_asinhf = yes; then
f1cdfa01 17266
f38a14ca
TG
17267cat >>confdefs.h <<_ACEOF
17268#define HAVE_ASINHF 1
17269_ACEOF
db9f46a9
TG
17270
17271 fi
17272
453310d8 17273
453310d8 17274
453310d8 17275
db9f46a9
TG
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17277$as_echo_n "checking for asinh... " >&6; }
17278if test "${gcc_cv_math_func_asinh+set}" = set; then :
5213506e 17279 $as_echo_n "(cached) " >&6
453310d8 17280else
db9f46a9 17281 if test x$gcc_no_link = xyes; then
5213506e 17282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17283fi
5213506e 17284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17285/* end confdefs.h. */
17286
db9f46a9
TG
17287#ifdef HAVE_COMPLEX_H
17288#include <complex.h>
17289#endif
17290#ifdef HAVE_MATH_H
17291#include <math.h>
453310d8 17292#endif
db9f46a9
TG
17293
17294int (*ptr)() = (int (*)())asinh;
17295
453310d8
RS
17296int
17297main ()
17298{
453310d8
RS
17299 return 0;
17300}
db9f46a9 17301
453310d8 17302_ACEOF
5213506e 17303if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17304 gcc_cv_math_func_asinh=yes
453310d8 17305else
db9f46a9 17306 gcc_cv_math_func_asinh=no
453310d8 17307fi
5213506e
RW
17308rm -f core conftest.err conftest.$ac_objext \
17309 conftest$ac_exeext conftest.$ac_ext
453310d8 17310fi
db9f46a9
TG
17311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17312$as_echo "$gcc_cv_math_func_asinh" >&6; }
17313 if test $gcc_cv_math_func_asinh = yes; then
f1cdfa01 17314
f38a14ca
TG
17315cat >>confdefs.h <<_ACEOF
17316#define HAVE_ASINH 1
17317_ACEOF
db9f46a9
TG
17318
17319 fi
453310d8 17320
453310d8 17321
453310d8 17322
db9f46a9
TG
17323
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17325$as_echo_n "checking for asinhl... " >&6; }
17326if test "${gcc_cv_math_func_asinhl+set}" = set; then :
5213506e 17327 $as_echo_n "(cached) " >&6
6e4d9244 17328else
db9f46a9 17329 if test x$gcc_no_link = xyes; then
5213506e 17330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17331fi
5213506e 17332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6e4d9244
EB
17333/* end confdefs.h. */
17334
db9f46a9
TG
17335#ifdef HAVE_COMPLEX_H
17336#include <complex.h>
6e4d9244 17337#endif
db9f46a9
TG
17338#ifdef HAVE_MATH_H
17339#include <math.h>
17340#endif
17341
17342int (*ptr)() = (int (*)())asinhl;
17343
6e4d9244
EB
17344int
17345main ()
17346{
6e4d9244
EB
17347 return 0;
17348}
db9f46a9 17349
6e4d9244 17350_ACEOF
5213506e 17351if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17352 gcc_cv_math_func_asinhl=yes
6e4d9244 17353else
db9f46a9 17354 gcc_cv_math_func_asinhl=no
6e4d9244 17355fi
5213506e
RW
17356rm -f core conftest.err conftest.$ac_objext \
17357 conftest$ac_exeext conftest.$ac_ext
6e4d9244 17358fi
db9f46a9
TG
17359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17360$as_echo "$gcc_cv_math_func_asinhl" >&6; }
17361 if test $gcc_cv_math_func_asinhl = yes; then
f1cdfa01 17362
f38a14ca
TG
17363cat >>confdefs.h <<_ACEOF
17364#define HAVE_ASINHL 1
17365_ACEOF
6e4d9244 17366
db9f46a9 17367 fi
6e4d9244 17368
6e4d9244 17369
db9f46a9
TG
17370
17371
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17373$as_echo_n "checking for atan2f... " >&6; }
17374if test "${gcc_cv_math_func_atan2f+set}" = set; then :
5213506e 17375 $as_echo_n "(cached) " >&6
453310d8 17376else
db9f46a9 17377 if test x$gcc_no_link = xyes; then
5213506e 17378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17379fi
5213506e 17380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17381/* end confdefs.h. */
17382
db9f46a9
TG
17383#ifdef HAVE_COMPLEX_H
17384#include <complex.h>
453310d8 17385#endif
db9f46a9
TG
17386#ifdef HAVE_MATH_H
17387#include <math.h>
17388#endif
17389
17390int (*ptr)() = (int (*)())atan2f;
17391
17392int
453310d8
RS
17393main ()
17394{
453310d8
RS
17395 return 0;
17396}
db9f46a9 17397
453310d8 17398_ACEOF
5213506e 17399if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17400 gcc_cv_math_func_atan2f=yes
453310d8 17401else
db9f46a9 17402 gcc_cv_math_func_atan2f=no
453310d8 17403fi
5213506e
RW
17404rm -f core conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
453310d8 17406fi
db9f46a9
TG
17407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17408$as_echo "$gcc_cv_math_func_atan2f" >&6; }
17409 if test $gcc_cv_math_func_atan2f = yes; then
f1cdfa01 17410
f38a14ca
TG
17411cat >>confdefs.h <<_ACEOF
17412#define HAVE_ATAN2F 1
17413_ACEOF
db9f46a9
TG
17414
17415 fi
453310d8 17416
453310d8 17417
453310d8 17418
db9f46a9
TG
17419
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17421$as_echo_n "checking for atan2... " >&6; }
17422if test "${gcc_cv_math_func_atan2+set}" = set; then :
5213506e 17423 $as_echo_n "(cached) " >&6
453310d8 17424else
db9f46a9 17425 if test x$gcc_no_link = xyes; then
5213506e 17426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17427fi
5213506e 17428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17429/* end confdefs.h. */
17430
db9f46a9
TG
17431#ifdef HAVE_COMPLEX_H
17432#include <complex.h>
453310d8 17433#endif
db9f46a9
TG
17434#ifdef HAVE_MATH_H
17435#include <math.h>
17436#endif
17437
17438int (*ptr)() = (int (*)())atan2;
17439
453310d8
RS
17440int
17441main ()
17442{
453310d8
RS
17443 return 0;
17444}
db9f46a9 17445
453310d8 17446_ACEOF
5213506e 17447if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17448 gcc_cv_math_func_atan2=yes
453310d8 17449else
db9f46a9 17450 gcc_cv_math_func_atan2=no
453310d8 17451fi
5213506e
RW
17452rm -f core conftest.err conftest.$ac_objext \
17453 conftest$ac_exeext conftest.$ac_ext
453310d8 17454fi
db9f46a9
TG
17455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17456$as_echo "$gcc_cv_math_func_atan2" >&6; }
17457 if test $gcc_cv_math_func_atan2 = yes; then
f1cdfa01 17458
f38a14ca
TG
17459cat >>confdefs.h <<_ACEOF
17460#define HAVE_ATAN2 1
17461_ACEOF
453310d8 17462
db9f46a9 17463 fi
453310d8 17464
453310d8 17465
db9f46a9
TG
17466
17467
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17469$as_echo_n "checking for atan2l... " >&6; }
17470if test "${gcc_cv_math_func_atan2l+set}" = set; then :
5213506e 17471 $as_echo_n "(cached) " >&6
453310d8 17472else
db9f46a9 17473 if test x$gcc_no_link = xyes; then
5213506e 17474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17475fi
5213506e 17476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17477/* end confdefs.h. */
17478
db9f46a9
TG
17479#ifdef HAVE_COMPLEX_H
17480#include <complex.h>
17481#endif
17482#ifdef HAVE_MATH_H
17483#include <math.h>
453310d8 17484#endif
db9f46a9
TG
17485
17486int (*ptr)() = (int (*)())atan2l;
17487
453310d8
RS
17488int
17489main ()
17490{
453310d8
RS
17491 return 0;
17492}
db9f46a9 17493
453310d8 17494_ACEOF
5213506e 17495if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17496 gcc_cv_math_func_atan2l=yes
453310d8 17497else
db9f46a9 17498 gcc_cv_math_func_atan2l=no
453310d8 17499fi
5213506e
RW
17500rm -f core conftest.err conftest.$ac_objext \
17501 conftest$ac_exeext conftest.$ac_ext
453310d8 17502fi
db9f46a9
TG
17503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17504$as_echo "$gcc_cv_math_func_atan2l" >&6; }
17505 if test $gcc_cv_math_func_atan2l = yes; then
f1cdfa01 17506
f38a14ca
TG
17507cat >>confdefs.h <<_ACEOF
17508#define HAVE_ATAN2L 1
17509_ACEOF
db9f46a9
TG
17510
17511 fi
453310d8 17512
453310d8 17513
453310d8 17514
db9f46a9
TG
17515
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17517$as_echo_n "checking for atanf... " >&6; }
17518if test "${gcc_cv_math_func_atanf+set}" = set; then :
5213506e 17519 $as_echo_n "(cached) " >&6
453310d8 17520else
db9f46a9 17521 if test x$gcc_no_link = xyes; then
5213506e 17522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17523fi
5213506e 17524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17525/* end confdefs.h. */
17526
db9f46a9
TG
17527#ifdef HAVE_COMPLEX_H
17528#include <complex.h>
453310d8 17529#endif
db9f46a9
TG
17530#ifdef HAVE_MATH_H
17531#include <math.h>
17532#endif
17533
17534int (*ptr)() = (int (*)())atanf;
17535
453310d8
RS
17536int
17537main ()
17538{
453310d8
RS
17539 return 0;
17540}
db9f46a9 17541
453310d8 17542_ACEOF
5213506e 17543if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17544 gcc_cv_math_func_atanf=yes
453310d8 17545else
db9f46a9 17546 gcc_cv_math_func_atanf=no
453310d8 17547fi
5213506e
RW
17548rm -f core conftest.err conftest.$ac_objext \
17549 conftest$ac_exeext conftest.$ac_ext
453310d8 17550fi
db9f46a9
TG
17551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17552$as_echo "$gcc_cv_math_func_atanf" >&6; }
17553 if test $gcc_cv_math_func_atanf = yes; then
f1cdfa01 17554
f38a14ca
TG
17555cat >>confdefs.h <<_ACEOF
17556#define HAVE_ATANF 1
17557_ACEOF
db9f46a9
TG
17558
17559 fi
17560
453310d8 17561
453310d8 17562
453310d8 17563
db9f46a9
TG
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17565$as_echo_n "checking for atan... " >&6; }
17566if test "${gcc_cv_math_func_atan+set}" = set; then :
5213506e 17567 $as_echo_n "(cached) " >&6
453310d8 17568else
db9f46a9 17569 if test x$gcc_no_link = xyes; then
5213506e 17570 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17571fi
5213506e 17572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17573/* end confdefs.h. */
17574
db9f46a9
TG
17575#ifdef HAVE_COMPLEX_H
17576#include <complex.h>
17577#endif
17578#ifdef HAVE_MATH_H
17579#include <math.h>
453310d8 17580#endif
db9f46a9
TG
17581
17582int (*ptr)() = (int (*)())atan;
17583
453310d8
RS
17584int
17585main ()
17586{
453310d8
RS
17587 return 0;
17588}
db9f46a9 17589
453310d8 17590_ACEOF
5213506e 17591if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17592 gcc_cv_math_func_atan=yes
453310d8 17593else
db9f46a9 17594 gcc_cv_math_func_atan=no
453310d8 17595fi
5213506e
RW
17596rm -f core conftest.err conftest.$ac_objext \
17597 conftest$ac_exeext conftest.$ac_ext
453310d8 17598fi
db9f46a9
TG
17599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17600$as_echo "$gcc_cv_math_func_atan" >&6; }
17601 if test $gcc_cv_math_func_atan = yes; then
f1cdfa01 17602
f38a14ca
TG
17603cat >>confdefs.h <<_ACEOF
17604#define HAVE_ATAN 1
17605_ACEOF
db9f46a9
TG
17606
17607 fi
453310d8 17608
453310d8 17609
453310d8 17610
db9f46a9
TG
17611
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17613$as_echo_n "checking for atanl... " >&6; }
17614if test "${gcc_cv_math_func_atanl+set}" = set; then :
5213506e 17615 $as_echo_n "(cached) " >&6
32aa3bff 17616else
db9f46a9 17617 if test x$gcc_no_link = xyes; then
5213506e 17618 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17619fi
5213506e 17620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32aa3bff
FXC
17621/* end confdefs.h. */
17622
db9f46a9
TG
17623#ifdef HAVE_COMPLEX_H
17624#include <complex.h>
32aa3bff 17625#endif
db9f46a9
TG
17626#ifdef HAVE_MATH_H
17627#include <math.h>
17628#endif
17629
17630int (*ptr)() = (int (*)())atanl;
17631
32aa3bff
FXC
17632int
17633main ()
17634{
32aa3bff
FXC
17635 return 0;
17636}
db9f46a9 17637
32aa3bff 17638_ACEOF
5213506e 17639if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17640 gcc_cv_math_func_atanl=yes
32aa3bff 17641else
db9f46a9 17642 gcc_cv_math_func_atanl=no
32aa3bff 17643fi
5213506e
RW
17644rm -f core conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
32aa3bff 17646fi
db9f46a9
TG
17647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17648$as_echo "$gcc_cv_math_func_atanl" >&6; }
17649 if test $gcc_cv_math_func_atanl = yes; then
f1cdfa01 17650
f38a14ca
TG
17651cat >>confdefs.h <<_ACEOF
17652#define HAVE_ATANL 1
17653_ACEOF
32aa3bff 17654
db9f46a9 17655 fi
32aa3bff 17656
32aa3bff 17657
db9f46a9
TG
17658
17659
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17661$as_echo_n "checking for atanhf... " >&6; }
17662if test "${gcc_cv_math_func_atanhf+set}" = set; then :
5213506e 17663 $as_echo_n "(cached) " >&6
453310d8 17664else
db9f46a9 17665 if test x$gcc_no_link = xyes; then
5213506e 17666 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17667fi
5213506e 17668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17669/* end confdefs.h. */
17670
db9f46a9
TG
17671#ifdef HAVE_COMPLEX_H
17672#include <complex.h>
17673#endif
17674#ifdef HAVE_MATH_H
17675#include <math.h>
453310d8 17676#endif
db9f46a9
TG
17677
17678int (*ptr)() = (int (*)())atanhf;
17679
453310d8
RS
17680int
17681main ()
17682{
453310d8
RS
17683 return 0;
17684}
db9f46a9 17685
453310d8 17686_ACEOF
5213506e 17687if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17688 gcc_cv_math_func_atanhf=yes
453310d8 17689else
db9f46a9 17690 gcc_cv_math_func_atanhf=no
453310d8 17691fi
5213506e
RW
17692rm -f core conftest.err conftest.$ac_objext \
17693 conftest$ac_exeext conftest.$ac_ext
453310d8 17694fi
db9f46a9
TG
17695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17696$as_echo "$gcc_cv_math_func_atanhf" >&6; }
17697 if test $gcc_cv_math_func_atanhf = yes; then
f1cdfa01 17698
f38a14ca
TG
17699cat >>confdefs.h <<_ACEOF
17700#define HAVE_ATANHF 1
17701_ACEOF
db9f46a9
TG
17702
17703 fi
453310d8 17704
453310d8 17705
453310d8 17706
db9f46a9
TG
17707
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17709$as_echo_n "checking for atanh... " >&6; }
17710if test "${gcc_cv_math_func_atanh+set}" = set; then :
5213506e 17711 $as_echo_n "(cached) " >&6
453310d8 17712else
db9f46a9 17713 if test x$gcc_no_link = xyes; then
5213506e 17714 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17715fi
5213506e 17716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17717/* end confdefs.h. */
17718
db9f46a9
TG
17719#ifdef HAVE_COMPLEX_H
17720#include <complex.h>
453310d8 17721#endif
db9f46a9
TG
17722#ifdef HAVE_MATH_H
17723#include <math.h>
17724#endif
17725
17726int (*ptr)() = (int (*)())atanh;
17727
453310d8
RS
17728int
17729main ()
17730{
453310d8
RS
17731 return 0;
17732}
db9f46a9 17733
453310d8 17734_ACEOF
5213506e 17735if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17736 gcc_cv_math_func_atanh=yes
453310d8 17737else
db9f46a9 17738 gcc_cv_math_func_atanh=no
453310d8 17739fi
5213506e
RW
17740rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
453310d8 17742fi
db9f46a9
TG
17743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17744$as_echo "$gcc_cv_math_func_atanh" >&6; }
17745 if test $gcc_cv_math_func_atanh = yes; then
f1cdfa01 17746
f38a14ca
TG
17747cat >>confdefs.h <<_ACEOF
17748#define HAVE_ATANH 1
17749_ACEOF
db9f46a9
TG
17750
17751 fi
17752
453310d8 17753
453310d8 17754
453310d8 17755
db9f46a9
TG
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17757$as_echo_n "checking for atanhl... " >&6; }
17758if test "${gcc_cv_math_func_atanhl+set}" = set; then :
5213506e 17759 $as_echo_n "(cached) " >&6
bf4d99cf 17760else
db9f46a9 17761 if test x$gcc_no_link = xyes; then
5213506e 17762 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17763fi
5213506e 17764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bf4d99cf
TS
17765/* end confdefs.h. */
17766
db9f46a9
TG
17767#ifdef HAVE_COMPLEX_H
17768#include <complex.h>
17769#endif
17770#ifdef HAVE_MATH_H
17771#include <math.h>
bf4d99cf 17772#endif
db9f46a9
TG
17773
17774int (*ptr)() = (int (*)())atanhl;
17775
bf4d99cf
TS
17776int
17777main ()
17778{
bf4d99cf
TS
17779 return 0;
17780}
db9f46a9 17781
bf4d99cf 17782_ACEOF
5213506e 17783if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17784 gcc_cv_math_func_atanhl=yes
bf4d99cf 17785else
db9f46a9 17786 gcc_cv_math_func_atanhl=no
bf4d99cf 17787fi
5213506e
RW
17788rm -f core conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
bf4d99cf 17790fi
db9f46a9
TG
17791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17792$as_echo "$gcc_cv_math_func_atanhl" >&6; }
17793 if test $gcc_cv_math_func_atanhl = yes; then
f1cdfa01 17794
f38a14ca
TG
17795cat >>confdefs.h <<_ACEOF
17796#define HAVE_ATANHL 1
17797_ACEOF
db9f46a9
TG
17798
17799 fi
bf4d99cf 17800
bf4d99cf 17801
bf4d99cf 17802
db9f46a9
TG
17803
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17805$as_echo_n "checking for cargf... " >&6; }
17806if test "${gcc_cv_math_func_cargf+set}" = set; then :
5213506e 17807 $as_echo_n "(cached) " >&6
a2a2059f 17808else
db9f46a9 17809 if test x$gcc_no_link = xyes; then
5213506e 17810 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17811fi
5213506e 17812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
17813/* end confdefs.h. */
17814
db9f46a9
TG
17815#ifdef HAVE_COMPLEX_H
17816#include <complex.h>
a2a2059f 17817#endif
db9f46a9
TG
17818#ifdef HAVE_MATH_H
17819#include <math.h>
17820#endif
17821
17822int (*ptr)() = (int (*)())cargf;
17823
453310d8
RS
17824int
17825main ()
17826{
453310d8
RS
17827 return 0;
17828}
db9f46a9 17829
453310d8 17830_ACEOF
5213506e 17831if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17832 gcc_cv_math_func_cargf=yes
453310d8 17833else
db9f46a9 17834 gcc_cv_math_func_cargf=no
453310d8 17835fi
5213506e
RW
17836rm -f core conftest.err conftest.$ac_objext \
17837 conftest$ac_exeext conftest.$ac_ext
453310d8 17838fi
db9f46a9
TG
17839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17840$as_echo "$gcc_cv_math_func_cargf" >&6; }
17841 if test $gcc_cv_math_func_cargf = yes; then
f1cdfa01 17842
f38a14ca
TG
17843cat >>confdefs.h <<_ACEOF
17844#define HAVE_CARGF 1
17845_ACEOF
453310d8 17846
db9f46a9 17847 fi
453310d8 17848
453310d8 17849
db9f46a9
TG
17850
17851
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17853$as_echo_n "checking for carg... " >&6; }
17854if test "${gcc_cv_math_func_carg+set}" = set; then :
5213506e 17855 $as_echo_n "(cached) " >&6
453310d8 17856else
db9f46a9 17857 if test x$gcc_no_link = xyes; then
5213506e 17858 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17859fi
5213506e 17860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17861/* end confdefs.h. */
17862
db9f46a9
TG
17863#ifdef HAVE_COMPLEX_H
17864#include <complex.h>
17865#endif
17866#ifdef HAVE_MATH_H
17867#include <math.h>
453310d8 17868#endif
db9f46a9
TG
17869
17870int (*ptr)() = (int (*)())carg;
17871
a2a2059f
BD
17872int
17873main ()
17874{
a2a2059f
BD
17875 return 0;
17876}
db9f46a9 17877
a2a2059f 17878_ACEOF
5213506e 17879if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17880 gcc_cv_math_func_carg=yes
a2a2059f 17881else
db9f46a9 17882 gcc_cv_math_func_carg=no
a2a2059f 17883fi
5213506e
RW
17884rm -f core conftest.err conftest.$ac_objext \
17885 conftest$ac_exeext conftest.$ac_ext
a2a2059f 17886fi
db9f46a9
TG
17887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17888$as_echo "$gcc_cv_math_func_carg" >&6; }
17889 if test $gcc_cv_math_func_carg = yes; then
f1cdfa01 17890
f38a14ca
TG
17891cat >>confdefs.h <<_ACEOF
17892#define HAVE_CARG 1
17893_ACEOF
db9f46a9
TG
17894
17895 fi
a2a2059f 17896
a2a2059f 17897
a2a2059f 17898
db9f46a9
TG
17899
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17901$as_echo_n "checking for cargl... " >&6; }
17902if test "${gcc_cv_math_func_cargl+set}" = set; then :
5213506e 17903 $as_echo_n "(cached) " >&6
a2a2059f 17904else
db9f46a9 17905 if test x$gcc_no_link = xyes; then
5213506e 17906 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17907fi
5213506e 17908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
17909/* end confdefs.h. */
17910
db9f46a9
TG
17911#ifdef HAVE_COMPLEX_H
17912#include <complex.h>
a2a2059f 17913#endif
db9f46a9
TG
17914#ifdef HAVE_MATH_H
17915#include <math.h>
17916#endif
17917
17918int (*ptr)() = (int (*)())cargl;
17919
a2a2059f
BD
17920int
17921main ()
17922{
a2a2059f
BD
17923 return 0;
17924}
db9f46a9 17925
a2a2059f 17926_ACEOF
5213506e 17927if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17928 gcc_cv_math_func_cargl=yes
a2a2059f 17929else
db9f46a9 17930 gcc_cv_math_func_cargl=no
a2a2059f 17931fi
5213506e
RW
17932rm -f core conftest.err conftest.$ac_objext \
17933 conftest$ac_exeext conftest.$ac_ext
a2a2059f 17934fi
db9f46a9
TG
17935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17936$as_echo "$gcc_cv_math_func_cargl" >&6; }
17937 if test $gcc_cv_math_func_cargl = yes; then
f1cdfa01 17938
f38a14ca
TG
17939cat >>confdefs.h <<_ACEOF
17940#define HAVE_CARGL 1
17941_ACEOF
db9f46a9
TG
17942
17943 fi
17944
a2a2059f 17945
a2a2059f 17946
a2a2059f 17947
db9f46a9
TG
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17949$as_echo_n "checking for ceilf... " >&6; }
17950if test "${gcc_cv_math_func_ceilf+set}" = set; then :
5213506e 17951 $as_echo_n "(cached) " >&6
ae973d6a 17952else
db9f46a9 17953 if test x$gcc_no_link = xyes; then
5213506e 17954 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17955fi
5213506e 17956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae973d6a
FXC
17957/* end confdefs.h. */
17958
db9f46a9
TG
17959#ifdef HAVE_COMPLEX_H
17960#include <complex.h>
17961#endif
17962#ifdef HAVE_MATH_H
17963#include <math.h>
ae973d6a 17964#endif
db9f46a9
TG
17965
17966int (*ptr)() = (int (*)())ceilf;
17967
ae973d6a
FXC
17968int
17969main ()
17970{
ae973d6a
FXC
17971 return 0;
17972}
db9f46a9 17973
ae973d6a 17974_ACEOF
5213506e 17975if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17976 gcc_cv_math_func_ceilf=yes
ae973d6a 17977else
db9f46a9 17978 gcc_cv_math_func_ceilf=no
ae973d6a 17979fi
5213506e
RW
17980rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
ae973d6a 17982fi
db9f46a9
TG
17983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17984$as_echo "$gcc_cv_math_func_ceilf" >&6; }
17985 if test $gcc_cv_math_func_ceilf = yes; then
f1cdfa01 17986
f38a14ca
TG
17987cat >>confdefs.h <<_ACEOF
17988#define HAVE_CEILF 1
17989_ACEOF
db9f46a9
TG
17990
17991 fi
ae973d6a 17992
ae973d6a 17993
ae973d6a 17994
db9f46a9
TG
17995
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17997$as_echo_n "checking for ceil... " >&6; }
17998if test "${gcc_cv_math_func_ceil+set}" = set; then :
5213506e 17999 $as_echo_n "(cached) " >&6
a9e7b9d3 18000else
db9f46a9 18001 if test x$gcc_no_link = xyes; then
5213506e 18002 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18003fi
5213506e 18004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
18005/* end confdefs.h. */
18006
db9f46a9
TG
18007#ifdef HAVE_COMPLEX_H
18008#include <complex.h>
a9e7b9d3 18009#endif
db9f46a9
TG
18010#ifdef HAVE_MATH_H
18011#include <math.h>
18012#endif
18013
18014int (*ptr)() = (int (*)())ceil;
18015
a9e7b9d3
PB
18016int
18017main ()
18018{
a9e7b9d3
PB
18019 return 0;
18020}
db9f46a9 18021
a9e7b9d3 18022_ACEOF
5213506e 18023if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18024 gcc_cv_math_func_ceil=yes
a9e7b9d3 18025else
db9f46a9 18026 gcc_cv_math_func_ceil=no
a9e7b9d3 18027fi
5213506e
RW
18028rm -f core conftest.err conftest.$ac_objext \
18029 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 18030fi
db9f46a9
TG
18031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18032$as_echo "$gcc_cv_math_func_ceil" >&6; }
18033 if test $gcc_cv_math_func_ceil = yes; then
f1cdfa01 18034
f38a14ca
TG
18035cat >>confdefs.h <<_ACEOF
18036#define HAVE_CEIL 1
18037_ACEOF
a9e7b9d3 18038
db9f46a9 18039 fi
a9e7b9d3 18040
a9e7b9d3 18041
db9f46a9
TG
18042
18043
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18045$as_echo_n "checking for ceill... " >&6; }
18046if test "${gcc_cv_math_func_ceill+set}" = set; then :
5213506e 18047 $as_echo_n "(cached) " >&6
a9e7b9d3 18048else
db9f46a9 18049 if test x$gcc_no_link = xyes; then
5213506e 18050 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18051fi
5213506e 18052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
18053/* end confdefs.h. */
18054
db9f46a9
TG
18055#ifdef HAVE_COMPLEX_H
18056#include <complex.h>
18057#endif
18058#ifdef HAVE_MATH_H
18059#include <math.h>
a9e7b9d3 18060#endif
db9f46a9
TG
18061
18062int (*ptr)() = (int (*)())ceill;
18063
a9e7b9d3
PB
18064int
18065main ()
18066{
a9e7b9d3
PB
18067 return 0;
18068}
db9f46a9 18069
a9e7b9d3 18070_ACEOF
5213506e 18071if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18072 gcc_cv_math_func_ceill=yes
a9e7b9d3 18073else
db9f46a9 18074 gcc_cv_math_func_ceill=no
a9e7b9d3 18075fi
5213506e
RW
18076rm -f core conftest.err conftest.$ac_objext \
18077 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 18078fi
db9f46a9
TG
18079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18080$as_echo "$gcc_cv_math_func_ceill" >&6; }
18081 if test $gcc_cv_math_func_ceill = yes; then
f1cdfa01 18082
f38a14ca
TG
18083cat >>confdefs.h <<_ACEOF
18084#define HAVE_CEILL 1
18085_ACEOF
db9f46a9
TG
18086
18087 fi
a9e7b9d3 18088
453310d8 18089
453310d8 18090
db9f46a9
TG
18091
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18093$as_echo_n "checking for copysignf... " >&6; }
18094if test "${gcc_cv_math_func_copysignf+set}" = set; then :
5213506e 18095 $as_echo_n "(cached) " >&6
453310d8 18096else
db9f46a9 18097 if test x$gcc_no_link = xyes; then
5213506e 18098 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18099fi
5213506e 18100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18101/* end confdefs.h. */
18102
db9f46a9
TG
18103#ifdef HAVE_COMPLEX_H
18104#include <complex.h>
453310d8 18105#endif
db9f46a9
TG
18106#ifdef HAVE_MATH_H
18107#include <math.h>
18108#endif
18109
18110int (*ptr)() = (int (*)())copysignf;
18111
453310d8
RS
18112int
18113main ()
18114{
453310d8
RS
18115 return 0;
18116}
db9f46a9 18117
453310d8 18118_ACEOF
5213506e 18119if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18120 gcc_cv_math_func_copysignf=yes
453310d8 18121else
db9f46a9 18122 gcc_cv_math_func_copysignf=no
453310d8 18123fi
5213506e
RW
18124rm -f core conftest.err conftest.$ac_objext \
18125 conftest$ac_exeext conftest.$ac_ext
453310d8 18126fi
db9f46a9
TG
18127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18128$as_echo "$gcc_cv_math_func_copysignf" >&6; }
18129 if test $gcc_cv_math_func_copysignf = yes; then
f1cdfa01 18130
f38a14ca
TG
18131cat >>confdefs.h <<_ACEOF
18132#define HAVE_COPYSIGNF 1
18133_ACEOF
db9f46a9
TG
18134
18135 fi
18136
453310d8 18137
453310d8 18138
453310d8 18139
db9f46a9
TG
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18141$as_echo_n "checking for copysign... " >&6; }
18142if test "${gcc_cv_math_func_copysign+set}" = set; then :
5213506e 18143 $as_echo_n "(cached) " >&6
453310d8 18144else
db9f46a9 18145 if test x$gcc_no_link = xyes; then
5213506e 18146 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18147fi
5213506e 18148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18149/* end confdefs.h. */
18150
db9f46a9
TG
18151#ifdef HAVE_COMPLEX_H
18152#include <complex.h>
18153#endif
18154#ifdef HAVE_MATH_H
18155#include <math.h>
453310d8 18156#endif
db9f46a9
TG
18157
18158int (*ptr)() = (int (*)())copysign;
18159
453310d8
RS
18160int
18161main ()
18162{
453310d8
RS
18163 return 0;
18164}
db9f46a9 18165
453310d8 18166_ACEOF
5213506e 18167if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18168 gcc_cv_math_func_copysign=yes
453310d8 18169else
db9f46a9 18170 gcc_cv_math_func_copysign=no
453310d8 18171fi
5213506e
RW
18172rm -f core conftest.err conftest.$ac_objext \
18173 conftest$ac_exeext conftest.$ac_ext
453310d8 18174fi
db9f46a9
TG
18175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18176$as_echo "$gcc_cv_math_func_copysign" >&6; }
18177 if test $gcc_cv_math_func_copysign = yes; then
f1cdfa01 18178
f38a14ca
TG
18179cat >>confdefs.h <<_ACEOF
18180#define HAVE_COPYSIGN 1
18181_ACEOF
db9f46a9
TG
18182
18183 fi
453310d8 18184
453310d8 18185
453310d8 18186
db9f46a9
TG
18187
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18189$as_echo_n "checking for copysignl... " >&6; }
18190if test "${gcc_cv_math_func_copysignl+set}" = set; then :
5213506e 18191 $as_echo_n "(cached) " >&6
453310d8 18192else
db9f46a9 18193 if test x$gcc_no_link = xyes; then
5213506e 18194 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18195fi
5213506e 18196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18197/* end confdefs.h. */
18198
db9f46a9
TG
18199#ifdef HAVE_COMPLEX_H
18200#include <complex.h>
453310d8 18201#endif
db9f46a9
TG
18202#ifdef HAVE_MATH_H
18203#include <math.h>
18204#endif
18205
18206int (*ptr)() = (int (*)())copysignl;
18207
453310d8
RS
18208int
18209main ()
18210{
5213506e
RW
18211 return 0;
18212}
db9f46a9 18213
5213506e
RW
18214_ACEOF
18215if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18216 gcc_cv_math_func_copysignl=yes
453310d8 18217else
db9f46a9 18218 gcc_cv_math_func_copysignl=no
453310d8 18219fi
5213506e
RW
18220rm -f core conftest.err conftest.$ac_objext \
18221 conftest$ac_exeext conftest.$ac_ext
453310d8 18222fi
db9f46a9
TG
18223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18224$as_echo "$gcc_cv_math_func_copysignl" >&6; }
18225 if test $gcc_cv_math_func_copysignl = yes; then
f1cdfa01 18226
f38a14ca
TG
18227cat >>confdefs.h <<_ACEOF
18228#define HAVE_COPYSIGNL 1
18229_ACEOF
453310d8 18230
db9f46a9 18231 fi
a9e7b9d3 18232
a9e7b9d3 18233
db9f46a9
TG
18234
18235
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18237$as_echo_n "checking for cosf... " >&6; }
18238if test "${gcc_cv_math_func_cosf+set}" = set; then :
5213506e 18239 $as_echo_n "(cached) " >&6
69a2d125 18240else
db9f46a9 18241 if test x$gcc_no_link = xyes; then
5213506e 18242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18243fi
5213506e 18244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
18245/* end confdefs.h. */
18246
db9f46a9
TG
18247#ifdef HAVE_COMPLEX_H
18248#include <complex.h>
18249#endif
18250#ifdef HAVE_MATH_H
18251#include <math.h>
69a2d125 18252#endif
db9f46a9
TG
18253
18254int (*ptr)() = (int (*)())cosf;
18255
69a2d125
EB
18256int
18257main ()
18258{
69a2d125
EB
18259 return 0;
18260}
db9f46a9 18261
69a2d125 18262_ACEOF
5213506e 18263if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18264 gcc_cv_math_func_cosf=yes
69a2d125 18265else
db9f46a9 18266 gcc_cv_math_func_cosf=no
69a2d125 18267fi
5213506e
RW
18268rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
69a2d125 18270fi
db9f46a9
TG
18271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18272$as_echo "$gcc_cv_math_func_cosf" >&6; }
18273 if test $gcc_cv_math_func_cosf = yes; then
f1cdfa01 18274
f38a14ca
TG
18275cat >>confdefs.h <<_ACEOF
18276#define HAVE_COSF 1
18277_ACEOF
db9f46a9
TG
18278
18279 fi
69a2d125 18280
1409cd0b 18281
1409cd0b 18282
db9f46a9
TG
18283
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18285$as_echo_n "checking for cos... " >&6; }
18286if test "${gcc_cv_math_func_cos+set}" = set; then :
5213506e 18287 $as_echo_n "(cached) " >&6
1409cd0b 18288else
db9f46a9 18289 if test x$gcc_no_link = xyes; then
5213506e 18290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18291fi
5213506e 18292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18293/* end confdefs.h. */
18294
db9f46a9
TG
18295#ifdef HAVE_COMPLEX_H
18296#include <complex.h>
1409cd0b 18297#endif
db9f46a9
TG
18298#ifdef HAVE_MATH_H
18299#include <math.h>
18300#endif
18301
18302int (*ptr)() = (int (*)())cos;
18303
1409cd0b
FXC
18304int
18305main ()
18306{
1409cd0b
FXC
18307 return 0;
18308}
db9f46a9 18309
1409cd0b 18310_ACEOF
5213506e 18311if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18312 gcc_cv_math_func_cos=yes
1409cd0b 18313else
db9f46a9 18314 gcc_cv_math_func_cos=no
1409cd0b 18315fi
5213506e
RW
18316rm -f core conftest.err conftest.$ac_objext \
18317 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18318fi
db9f46a9
TG
18319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18320$as_echo "$gcc_cv_math_func_cos" >&6; }
18321 if test $gcc_cv_math_func_cos = yes; then
f1cdfa01 18322
f38a14ca
TG
18323cat >>confdefs.h <<_ACEOF
18324#define HAVE_COS 1
18325_ACEOF
db9f46a9
TG
18326
18327 fi
18328
1409cd0b 18329
1409cd0b 18330
1409cd0b 18331
db9f46a9
TG
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18333$as_echo_n "checking for cosl... " >&6; }
18334if test "${gcc_cv_math_func_cosl+set}" = set; then :
5213506e 18335 $as_echo_n "(cached) " >&6
1409cd0b 18336else
db9f46a9 18337 if test x$gcc_no_link = xyes; then
5213506e 18338 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18339fi
5213506e 18340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18341/* end confdefs.h. */
18342
db9f46a9
TG
18343#ifdef HAVE_COMPLEX_H
18344#include <complex.h>
18345#endif
18346#ifdef HAVE_MATH_H
18347#include <math.h>
1409cd0b 18348#endif
db9f46a9
TG
18349
18350int (*ptr)() = (int (*)())cosl;
18351
1409cd0b
FXC
18352int
18353main ()
18354{
1409cd0b
FXC
18355 return 0;
18356}
db9f46a9 18357
1409cd0b 18358_ACEOF
5213506e 18359if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18360 gcc_cv_math_func_cosl=yes
1409cd0b 18361else
db9f46a9 18362 gcc_cv_math_func_cosl=no
1409cd0b 18363fi
5213506e
RW
18364rm -f core conftest.err conftest.$ac_objext \
18365 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18366fi
db9f46a9
TG
18367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18368$as_echo "$gcc_cv_math_func_cosl" >&6; }
18369 if test $gcc_cv_math_func_cosl = yes; then
f1cdfa01 18370
f38a14ca
TG
18371cat >>confdefs.h <<_ACEOF
18372#define HAVE_COSL 1
18373_ACEOF
db9f46a9
TG
18374
18375 fi
1409cd0b 18376
1409cd0b 18377
1409cd0b 18378
db9f46a9
TG
18379
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18381$as_echo_n "checking for ccosf... " >&6; }
18382if test "${gcc_cv_math_func_ccosf+set}" = set; then :
5213506e 18383 $as_echo_n "(cached) " >&6
1409cd0b 18384else
db9f46a9 18385 if test x$gcc_no_link = xyes; then
5213506e 18386 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18387fi
5213506e 18388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18389/* end confdefs.h. */
18390
db9f46a9
TG
18391#ifdef HAVE_COMPLEX_H
18392#include <complex.h>
1409cd0b 18393#endif
db9f46a9
TG
18394#ifdef HAVE_MATH_H
18395#include <math.h>
18396#endif
18397
18398int (*ptr)() = (int (*)())ccosf;
18399
1409cd0b
FXC
18400int
18401main ()
18402{
1409cd0b
FXC
18403 return 0;
18404}
db9f46a9 18405
1409cd0b 18406_ACEOF
5213506e 18407if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18408 gcc_cv_math_func_ccosf=yes
1409cd0b 18409else
db9f46a9 18410 gcc_cv_math_func_ccosf=no
1409cd0b 18411fi
5213506e
RW
18412rm -f core conftest.err conftest.$ac_objext \
18413 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18414fi
db9f46a9
TG
18415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18416$as_echo "$gcc_cv_math_func_ccosf" >&6; }
18417 if test $gcc_cv_math_func_ccosf = yes; then
f1cdfa01 18418
f38a14ca
TG
18419cat >>confdefs.h <<_ACEOF
18420#define HAVE_CCOSF 1
18421_ACEOF
1409cd0b 18422
db9f46a9 18423 fi
1409cd0b 18424
1409cd0b 18425
db9f46a9
TG
18426
18427
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18429$as_echo_n "checking for ccos... " >&6; }
18430if test "${gcc_cv_math_func_ccos+set}" = set; then :
5213506e 18431 $as_echo_n "(cached) " >&6
1409cd0b 18432else
db9f46a9 18433 if test x$gcc_no_link = xyes; then
5213506e 18434 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18435fi
5213506e 18436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18437/* end confdefs.h. */
18438
db9f46a9
TG
18439#ifdef HAVE_COMPLEX_H
18440#include <complex.h>
18441#endif
18442#ifdef HAVE_MATH_H
18443#include <math.h>
1409cd0b 18444#endif
db9f46a9
TG
18445
18446int (*ptr)() = (int (*)())ccos;
18447
1409cd0b
FXC
18448int
18449main ()
18450{
1409cd0b
FXC
18451 return 0;
18452}
db9f46a9 18453
1409cd0b 18454_ACEOF
5213506e 18455if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18456 gcc_cv_math_func_ccos=yes
1409cd0b 18457else
db9f46a9 18458 gcc_cv_math_func_ccos=no
1409cd0b 18459fi
5213506e
RW
18460rm -f core conftest.err conftest.$ac_objext \
18461 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18462fi
db9f46a9
TG
18463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18464$as_echo "$gcc_cv_math_func_ccos" >&6; }
18465 if test $gcc_cv_math_func_ccos = yes; then
f1cdfa01 18466
f38a14ca
TG
18467cat >>confdefs.h <<_ACEOF
18468#define HAVE_CCOS 1
18469_ACEOF
db9f46a9
TG
18470
18471 fi
1409cd0b 18472
1409cd0b 18473
1409cd0b 18474
db9f46a9
TG
18475
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18477$as_echo_n "checking for ccosl... " >&6; }
18478if test "${gcc_cv_math_func_ccosl+set}" = set; then :
5213506e 18479 $as_echo_n "(cached) " >&6
1409cd0b 18480else
db9f46a9 18481 if test x$gcc_no_link = xyes; then
5213506e 18482 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18483fi
5213506e 18484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18485/* end confdefs.h. */
18486
db9f46a9
TG
18487#ifdef HAVE_COMPLEX_H
18488#include <complex.h>
1409cd0b 18489#endif
db9f46a9
TG
18490#ifdef HAVE_MATH_H
18491#include <math.h>
18492#endif
18493
18494int (*ptr)() = (int (*)())ccosl;
18495
1409cd0b
FXC
18496int
18497main ()
18498{
1409cd0b
FXC
18499 return 0;
18500}
db9f46a9 18501
1409cd0b 18502_ACEOF
5213506e 18503if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18504 gcc_cv_math_func_ccosl=yes
1409cd0b 18505else
db9f46a9 18506 gcc_cv_math_func_ccosl=no
1409cd0b 18507fi
5213506e
RW
18508rm -f core conftest.err conftest.$ac_objext \
18509 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18510fi
db9f46a9
TG
18511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18512$as_echo "$gcc_cv_math_func_ccosl" >&6; }
18513 if test $gcc_cv_math_func_ccosl = yes; then
f1cdfa01 18514
f38a14ca
TG
18515cat >>confdefs.h <<_ACEOF
18516#define HAVE_CCOSL 1
18517_ACEOF
db9f46a9
TG
18518
18519 fi
18520
1409cd0b 18521
1409cd0b 18522
1409cd0b 18523
db9f46a9
TG
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18525$as_echo_n "checking for coshf... " >&6; }
18526if test "${gcc_cv_math_func_coshf+set}" = set; then :
5213506e 18527 $as_echo_n "(cached) " >&6
1409cd0b 18528else
db9f46a9 18529 if test x$gcc_no_link = xyes; then
5213506e 18530 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18531fi
5213506e 18532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18533/* end confdefs.h. */
18534
db9f46a9
TG
18535#ifdef HAVE_COMPLEX_H
18536#include <complex.h>
18537#endif
18538#ifdef HAVE_MATH_H
18539#include <math.h>
1409cd0b 18540#endif
db9f46a9
TG
18541
18542int (*ptr)() = (int (*)())coshf;
18543
1409cd0b
FXC
18544int
18545main ()
18546{
1409cd0b
FXC
18547 return 0;
18548}
db9f46a9 18549
1409cd0b 18550_ACEOF
5213506e 18551if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18552 gcc_cv_math_func_coshf=yes
1409cd0b 18553else
db9f46a9 18554 gcc_cv_math_func_coshf=no
1409cd0b 18555fi
5213506e
RW
18556rm -f core conftest.err conftest.$ac_objext \
18557 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18558fi
db9f46a9
TG
18559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18560$as_echo "$gcc_cv_math_func_coshf" >&6; }
18561 if test $gcc_cv_math_func_coshf = yes; then
f1cdfa01 18562
f38a14ca
TG
18563cat >>confdefs.h <<_ACEOF
18564#define HAVE_COSHF 1
18565_ACEOF
db9f46a9
TG
18566
18567 fi
1409cd0b 18568
1409cd0b 18569
1409cd0b 18570
db9f46a9
TG
18571
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18573$as_echo_n "checking for cosh... " >&6; }
18574if test "${gcc_cv_math_func_cosh+set}" = set; then :
5213506e 18575 $as_echo_n "(cached) " >&6
1409cd0b 18576else
db9f46a9 18577 if test x$gcc_no_link = xyes; then
5213506e 18578 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18579fi
5213506e 18580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18581/* end confdefs.h. */
18582
db9f46a9
TG
18583#ifdef HAVE_COMPLEX_H
18584#include <complex.h>
1409cd0b 18585#endif
db9f46a9
TG
18586#ifdef HAVE_MATH_H
18587#include <math.h>
18588#endif
18589
18590int (*ptr)() = (int (*)())cosh;
18591
1409cd0b
FXC
18592int
18593main ()
18594{
1409cd0b
FXC
18595 return 0;
18596}
db9f46a9 18597
1409cd0b 18598_ACEOF
5213506e 18599if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18600 gcc_cv_math_func_cosh=yes
1409cd0b 18601else
db9f46a9 18602 gcc_cv_math_func_cosh=no
1409cd0b 18603fi
5213506e
RW
18604rm -f core conftest.err conftest.$ac_objext \
18605 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18606fi
db9f46a9
TG
18607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18608$as_echo "$gcc_cv_math_func_cosh" >&6; }
18609 if test $gcc_cv_math_func_cosh = yes; then
f1cdfa01 18610
f38a14ca
TG
18611cat >>confdefs.h <<_ACEOF
18612#define HAVE_COSH 1
18613_ACEOF
1409cd0b 18614
db9f46a9 18615 fi
1409cd0b 18616
1409cd0b 18617
db9f46a9
TG
18618
18619
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18621$as_echo_n "checking for coshl... " >&6; }
18622if test "${gcc_cv_math_func_coshl+set}" = set; then :
5213506e 18623 $as_echo_n "(cached) " >&6
1409cd0b 18624else
db9f46a9 18625 if test x$gcc_no_link = xyes; then
5213506e 18626 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18627fi
5213506e 18628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18629/* end confdefs.h. */
18630
db9f46a9
TG
18631#ifdef HAVE_COMPLEX_H
18632#include <complex.h>
18633#endif
18634#ifdef HAVE_MATH_H
18635#include <math.h>
1409cd0b 18636#endif
db9f46a9
TG
18637
18638int (*ptr)() = (int (*)())coshl;
18639
1409cd0b
FXC
18640int
18641main ()
18642{
1409cd0b
FXC
18643 return 0;
18644}
db9f46a9 18645
1409cd0b 18646_ACEOF
5213506e 18647if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18648 gcc_cv_math_func_coshl=yes
1409cd0b 18649else
db9f46a9 18650 gcc_cv_math_func_coshl=no
1409cd0b 18651fi
5213506e
RW
18652rm -f core conftest.err conftest.$ac_objext \
18653 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18654fi
db9f46a9
TG
18655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18656$as_echo "$gcc_cv_math_func_coshl" >&6; }
18657 if test $gcc_cv_math_func_coshl = yes; then
f1cdfa01 18658
f38a14ca
TG
18659cat >>confdefs.h <<_ACEOF
18660#define HAVE_COSHL 1
18661_ACEOF
db9f46a9
TG
18662
18663 fi
1409cd0b 18664
1409cd0b 18665
1409cd0b 18666
db9f46a9
TG
18667
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18669$as_echo_n "checking for ccoshf... " >&6; }
18670if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
5213506e 18671 $as_echo_n "(cached) " >&6
1409cd0b 18672else
db9f46a9 18673 if test x$gcc_no_link = xyes; then
5213506e 18674 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18675fi
5213506e 18676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18677/* end confdefs.h. */
18678
db9f46a9
TG
18679#ifdef HAVE_COMPLEX_H
18680#include <complex.h>
1409cd0b 18681#endif
db9f46a9
TG
18682#ifdef HAVE_MATH_H
18683#include <math.h>
18684#endif
18685
18686int (*ptr)() = (int (*)())ccoshf;
18687
1409cd0b
FXC
18688int
18689main ()
18690{
1409cd0b
FXC
18691 return 0;
18692}
db9f46a9 18693
1409cd0b 18694_ACEOF
5213506e 18695if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18696 gcc_cv_math_func_ccoshf=yes
1409cd0b 18697else
db9f46a9 18698 gcc_cv_math_func_ccoshf=no
1409cd0b 18699fi
5213506e
RW
18700rm -f core conftest.err conftest.$ac_objext \
18701 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18702fi
db9f46a9
TG
18703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18704$as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18705 if test $gcc_cv_math_func_ccoshf = yes; then
f1cdfa01 18706
f38a14ca
TG
18707cat >>confdefs.h <<_ACEOF
18708#define HAVE_CCOSHF 1
18709_ACEOF
db9f46a9
TG
18710
18711 fi
18712
1409cd0b 18713
1409cd0b 18714
1409cd0b 18715
db9f46a9
TG
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18717$as_echo_n "checking for ccosh... " >&6; }
18718if test "${gcc_cv_math_func_ccosh+set}" = set; then :
5213506e 18719 $as_echo_n "(cached) " >&6
1409cd0b 18720else
db9f46a9 18721 if test x$gcc_no_link = xyes; then
5213506e 18722 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18723fi
5213506e 18724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18725/* end confdefs.h. */
18726
db9f46a9
TG
18727#ifdef HAVE_COMPLEX_H
18728#include <complex.h>
18729#endif
18730#ifdef HAVE_MATH_H
18731#include <math.h>
1409cd0b 18732#endif
db9f46a9
TG
18733
18734int (*ptr)() = (int (*)())ccosh;
18735
1409cd0b
FXC
18736int
18737main ()
18738{
1409cd0b
FXC
18739 return 0;
18740}
db9f46a9 18741
1409cd0b 18742_ACEOF
5213506e 18743if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18744 gcc_cv_math_func_ccosh=yes
1409cd0b 18745else
db9f46a9 18746 gcc_cv_math_func_ccosh=no
1409cd0b 18747fi
5213506e
RW
18748rm -f core conftest.err conftest.$ac_objext \
18749 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18750fi
db9f46a9
TG
18751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18752$as_echo "$gcc_cv_math_func_ccosh" >&6; }
18753 if test $gcc_cv_math_func_ccosh = yes; then
f1cdfa01 18754
f38a14ca
TG
18755cat >>confdefs.h <<_ACEOF
18756#define HAVE_CCOSH 1
18757_ACEOF
db9f46a9
TG
18758
18759 fi
1409cd0b 18760
1409cd0b 18761
1409cd0b 18762
db9f46a9
TG
18763
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18765$as_echo_n "checking for ccoshl... " >&6; }
18766if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
5213506e 18767 $as_echo_n "(cached) " >&6
1409cd0b 18768else
db9f46a9 18769 if test x$gcc_no_link = xyes; then
5213506e 18770 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18771fi
5213506e 18772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18773/* end confdefs.h. */
18774
db9f46a9
TG
18775#ifdef HAVE_COMPLEX_H
18776#include <complex.h>
1409cd0b 18777#endif
db9f46a9
TG
18778#ifdef HAVE_MATH_H
18779#include <math.h>
18780#endif
18781
18782int (*ptr)() = (int (*)())ccoshl;
18783
1409cd0b
FXC
18784int
18785main ()
18786{
1409cd0b
FXC
18787 return 0;
18788}
db9f46a9 18789
1409cd0b 18790_ACEOF
5213506e 18791if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18792 gcc_cv_math_func_ccoshl=yes
1409cd0b 18793else
db9f46a9 18794 gcc_cv_math_func_ccoshl=no
1409cd0b 18795fi
5213506e
RW
18796rm -f core conftest.err conftest.$ac_objext \
18797 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18798fi
db9f46a9
TG
18799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18800$as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18801 if test $gcc_cv_math_func_ccoshl = yes; then
f1cdfa01 18802
f38a14ca
TG
18803cat >>confdefs.h <<_ACEOF
18804#define HAVE_CCOSHL 1
18805_ACEOF
1409cd0b 18806
db9f46a9 18807 fi
1409cd0b 18808
1409cd0b 18809
db9f46a9
TG
18810
18811
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18813$as_echo_n "checking for expf... " >&6; }
18814if test "${gcc_cv_math_func_expf+set}" = set; then :
5213506e 18815 $as_echo_n "(cached) " >&6
1409cd0b 18816else
db9f46a9 18817 if test x$gcc_no_link = xyes; then
5213506e 18818 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18819fi
5213506e 18820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18821/* end confdefs.h. */
18822
db9f46a9
TG
18823#ifdef HAVE_COMPLEX_H
18824#include <complex.h>
18825#endif
18826#ifdef HAVE_MATH_H
18827#include <math.h>
1409cd0b 18828#endif
db9f46a9
TG
18829
18830int (*ptr)() = (int (*)())expf;
18831
1409cd0b
FXC
18832int
18833main ()
18834{
1409cd0b
FXC
18835 return 0;
18836}
db9f46a9 18837
1409cd0b 18838_ACEOF
5213506e 18839if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18840 gcc_cv_math_func_expf=yes
1409cd0b 18841else
db9f46a9 18842 gcc_cv_math_func_expf=no
1409cd0b 18843fi
5213506e
RW
18844rm -f core conftest.err conftest.$ac_objext \
18845 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18846fi
db9f46a9
TG
18847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18848$as_echo "$gcc_cv_math_func_expf" >&6; }
18849 if test $gcc_cv_math_func_expf = yes; then
f1cdfa01 18850
f38a14ca
TG
18851cat >>confdefs.h <<_ACEOF
18852#define HAVE_EXPF 1
18853_ACEOF
db9f46a9
TG
18854
18855 fi
1409cd0b 18856
1409cd0b 18857
1409cd0b 18858
db9f46a9
TG
18859
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18861$as_echo_n "checking for exp... " >&6; }
18862if test "${gcc_cv_math_func_exp+set}" = set; then :
5213506e 18863 $as_echo_n "(cached) " >&6
1409cd0b 18864else
db9f46a9 18865 if test x$gcc_no_link = xyes; then
5213506e 18866 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18867fi
5213506e 18868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18869/* end confdefs.h. */
18870
db9f46a9
TG
18871#ifdef HAVE_COMPLEX_H
18872#include <complex.h>
1409cd0b 18873#endif
db9f46a9
TG
18874#ifdef HAVE_MATH_H
18875#include <math.h>
18876#endif
18877
18878int (*ptr)() = (int (*)())exp;
18879
1409cd0b
FXC
18880int
18881main ()
18882{
1409cd0b
FXC
18883 return 0;
18884}
db9f46a9 18885
1409cd0b 18886_ACEOF
5213506e 18887if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18888 gcc_cv_math_func_exp=yes
1409cd0b 18889else
db9f46a9 18890 gcc_cv_math_func_exp=no
1409cd0b 18891fi
5213506e
RW
18892rm -f core conftest.err conftest.$ac_objext \
18893 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18894fi
db9f46a9
TG
18895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18896$as_echo "$gcc_cv_math_func_exp" >&6; }
18897 if test $gcc_cv_math_func_exp = yes; then
f1cdfa01 18898
f38a14ca
TG
18899cat >>confdefs.h <<_ACEOF
18900#define HAVE_EXP 1
18901_ACEOF
db9f46a9
TG
18902
18903 fi
18904
1409cd0b 18905
1409cd0b 18906
1409cd0b 18907
db9f46a9
TG
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18909$as_echo_n "checking for expl... " >&6; }
18910if test "${gcc_cv_math_func_expl+set}" = set; then :
5213506e 18911 $as_echo_n "(cached) " >&6
1409cd0b 18912else
db9f46a9 18913 if test x$gcc_no_link = xyes; then
5213506e 18914 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18915fi
5213506e 18916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18917/* end confdefs.h. */
18918
db9f46a9
TG
18919#ifdef HAVE_COMPLEX_H
18920#include <complex.h>
18921#endif
18922#ifdef HAVE_MATH_H
18923#include <math.h>
1409cd0b 18924#endif
db9f46a9
TG
18925
18926int (*ptr)() = (int (*)())expl;
18927
1409cd0b
FXC
18928int
18929main ()
18930{
1409cd0b
FXC
18931 return 0;
18932}
db9f46a9 18933
1409cd0b 18934_ACEOF
5213506e 18935if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18936 gcc_cv_math_func_expl=yes
1409cd0b 18937else
db9f46a9 18938 gcc_cv_math_func_expl=no
1409cd0b 18939fi
5213506e
RW
18940rm -f core conftest.err conftest.$ac_objext \
18941 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18942fi
db9f46a9
TG
18943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18944$as_echo "$gcc_cv_math_func_expl" >&6; }
18945 if test $gcc_cv_math_func_expl = yes; then
f1cdfa01 18946
f38a14ca
TG
18947cat >>confdefs.h <<_ACEOF
18948#define HAVE_EXPL 1
18949_ACEOF
db9f46a9
TG
18950
18951 fi
1409cd0b 18952
1409cd0b 18953
1409cd0b 18954
db9f46a9
TG
18955
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18957$as_echo_n "checking for cexpf... " >&6; }
18958if test "${gcc_cv_math_func_cexpf+set}" = set; then :
5213506e 18959 $as_echo_n "(cached) " >&6
1409cd0b 18960else
db9f46a9 18961 if test x$gcc_no_link = xyes; then
5213506e 18962 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18963fi
5213506e 18964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18965/* end confdefs.h. */
18966
db9f46a9
TG
18967#ifdef HAVE_COMPLEX_H
18968#include <complex.h>
1409cd0b 18969#endif
db9f46a9
TG
18970#ifdef HAVE_MATH_H
18971#include <math.h>
18972#endif
18973
18974int (*ptr)() = (int (*)())cexpf;
18975
1409cd0b
FXC
18976int
18977main ()
18978{
1409cd0b
FXC
18979 return 0;
18980}
db9f46a9 18981
1409cd0b 18982_ACEOF
5213506e 18983if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18984 gcc_cv_math_func_cexpf=yes
1409cd0b 18985else
db9f46a9 18986 gcc_cv_math_func_cexpf=no
1409cd0b 18987fi
5213506e
RW
18988rm -f core conftest.err conftest.$ac_objext \
18989 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18990fi
db9f46a9
TG
18991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18992$as_echo "$gcc_cv_math_func_cexpf" >&6; }
18993 if test $gcc_cv_math_func_cexpf = yes; then
f1cdfa01 18994
f38a14ca
TG
18995cat >>confdefs.h <<_ACEOF
18996#define HAVE_CEXPF 1
18997_ACEOF
1409cd0b 18998
db9f46a9 18999 fi
1409cd0b 19000
1409cd0b 19001
db9f46a9
TG
19002
19003
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19005$as_echo_n "checking for cexp... " >&6; }
19006if test "${gcc_cv_math_func_cexp+set}" = set; then :
5213506e 19007 $as_echo_n "(cached) " >&6
1409cd0b 19008else
db9f46a9 19009 if test x$gcc_no_link = xyes; then
5213506e 19010 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19011fi
5213506e 19012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19013/* end confdefs.h. */
19014
db9f46a9
TG
19015#ifdef HAVE_COMPLEX_H
19016#include <complex.h>
19017#endif
19018#ifdef HAVE_MATH_H
19019#include <math.h>
1409cd0b 19020#endif
db9f46a9
TG
19021
19022int (*ptr)() = (int (*)())cexp;
19023
1409cd0b
FXC
19024int
19025main ()
19026{
1409cd0b
FXC
19027 return 0;
19028}
db9f46a9 19029
1409cd0b 19030_ACEOF
5213506e 19031if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19032 gcc_cv_math_func_cexp=yes
1409cd0b 19033else
db9f46a9 19034 gcc_cv_math_func_cexp=no
1409cd0b 19035fi
5213506e
RW
19036rm -f core conftest.err conftest.$ac_objext \
19037 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19038fi
db9f46a9
TG
19039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19040$as_echo "$gcc_cv_math_func_cexp" >&6; }
19041 if test $gcc_cv_math_func_cexp = yes; then
f1cdfa01 19042
f38a14ca
TG
19043cat >>confdefs.h <<_ACEOF
19044#define HAVE_CEXP 1
19045_ACEOF
db9f46a9
TG
19046
19047 fi
1409cd0b 19048
1409cd0b 19049
1409cd0b 19050
db9f46a9
TG
19051
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19053$as_echo_n "checking for cexpl... " >&6; }
19054if test "${gcc_cv_math_func_cexpl+set}" = set; then :
5213506e 19055 $as_echo_n "(cached) " >&6
1409cd0b 19056else
db9f46a9 19057 if test x$gcc_no_link = xyes; then
5213506e 19058 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19059fi
5213506e 19060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19061/* end confdefs.h. */
19062
db9f46a9
TG
19063#ifdef HAVE_COMPLEX_H
19064#include <complex.h>
1409cd0b 19065#endif
db9f46a9
TG
19066#ifdef HAVE_MATH_H
19067#include <math.h>
19068#endif
19069
19070int (*ptr)() = (int (*)())cexpl;
19071
1409cd0b
FXC
19072int
19073main ()
19074{
1409cd0b
FXC
19075 return 0;
19076}
db9f46a9 19077
1409cd0b 19078_ACEOF
5213506e 19079if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19080 gcc_cv_math_func_cexpl=yes
1409cd0b 19081else
db9f46a9 19082 gcc_cv_math_func_cexpl=no
1409cd0b 19083fi
5213506e
RW
19084rm -f core conftest.err conftest.$ac_objext \
19085 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19086fi
db9f46a9
TG
19087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19088$as_echo "$gcc_cv_math_func_cexpl" >&6; }
19089 if test $gcc_cv_math_func_cexpl = yes; then
f1cdfa01 19090
f38a14ca
TG
19091cat >>confdefs.h <<_ACEOF
19092#define HAVE_CEXPL 1
19093_ACEOF
db9f46a9
TG
19094
19095 fi
19096
1409cd0b 19097
1409cd0b 19098
1409cd0b 19099
db9f46a9
TG
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19101$as_echo_n "checking for fabsf... " >&6; }
19102if test "${gcc_cv_math_func_fabsf+set}" = set; then :
5213506e 19103 $as_echo_n "(cached) " >&6
1409cd0b 19104else
db9f46a9 19105 if test x$gcc_no_link = xyes; then
5213506e 19106 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19107fi
5213506e 19108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19109/* end confdefs.h. */
19110
db9f46a9
TG
19111#ifdef HAVE_COMPLEX_H
19112#include <complex.h>
19113#endif
19114#ifdef HAVE_MATH_H
19115#include <math.h>
1409cd0b 19116#endif
db9f46a9
TG
19117
19118int (*ptr)() = (int (*)())fabsf;
19119
1409cd0b
FXC
19120int
19121main ()
19122{
1409cd0b
FXC
19123 return 0;
19124}
db9f46a9 19125
1409cd0b 19126_ACEOF
5213506e 19127if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19128 gcc_cv_math_func_fabsf=yes
1409cd0b 19129else
db9f46a9 19130 gcc_cv_math_func_fabsf=no
1409cd0b 19131fi
5213506e
RW
19132rm -f core conftest.err conftest.$ac_objext \
19133 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19134fi
db9f46a9
TG
19135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19136$as_echo "$gcc_cv_math_func_fabsf" >&6; }
19137 if test $gcc_cv_math_func_fabsf = yes; then
f1cdfa01 19138
f38a14ca
TG
19139cat >>confdefs.h <<_ACEOF
19140#define HAVE_FABSF 1
19141_ACEOF
db9f46a9
TG
19142
19143 fi
1409cd0b 19144
1409cd0b 19145
1409cd0b 19146
db9f46a9
TG
19147
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19149$as_echo_n "checking for fabs... " >&6; }
19150if test "${gcc_cv_math_func_fabs+set}" = set; then :
5213506e 19151 $as_echo_n "(cached) " >&6
1409cd0b 19152else
db9f46a9 19153 if test x$gcc_no_link = xyes; then
5213506e 19154 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19155fi
5213506e 19156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19157/* end confdefs.h. */
19158
db9f46a9
TG
19159#ifdef HAVE_COMPLEX_H
19160#include <complex.h>
1409cd0b 19161#endif
db9f46a9
TG
19162#ifdef HAVE_MATH_H
19163#include <math.h>
19164#endif
19165
19166int (*ptr)() = (int (*)())fabs;
19167
1409cd0b
FXC
19168int
19169main ()
19170{
1409cd0b
FXC
19171 return 0;
19172}
db9f46a9 19173
1409cd0b 19174_ACEOF
5213506e 19175if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19176 gcc_cv_math_func_fabs=yes
1409cd0b 19177else
db9f46a9 19178 gcc_cv_math_func_fabs=no
1409cd0b 19179fi
5213506e
RW
19180rm -f core conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19182fi
db9f46a9
TG
19183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19184$as_echo "$gcc_cv_math_func_fabs" >&6; }
19185 if test $gcc_cv_math_func_fabs = yes; then
f1cdfa01 19186
f38a14ca
TG
19187cat >>confdefs.h <<_ACEOF
19188#define HAVE_FABS 1
19189_ACEOF
1409cd0b 19190
db9f46a9 19191 fi
1409cd0b 19192
1409cd0b 19193
db9f46a9
TG
19194
19195
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19197$as_echo_n "checking for fabsl... " >&6; }
19198if test "${gcc_cv_math_func_fabsl+set}" = set; then :
5213506e 19199 $as_echo_n "(cached) " >&6
1409cd0b 19200else
db9f46a9 19201 if test x$gcc_no_link = xyes; then
5213506e 19202 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19203fi
5213506e 19204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19205/* end confdefs.h. */
19206
db9f46a9
TG
19207#ifdef HAVE_COMPLEX_H
19208#include <complex.h>
19209#endif
19210#ifdef HAVE_MATH_H
19211#include <math.h>
1409cd0b 19212#endif
db9f46a9
TG
19213
19214int (*ptr)() = (int (*)())fabsl;
19215
1409cd0b
FXC
19216int
19217main ()
19218{
1409cd0b
FXC
19219 return 0;
19220}
db9f46a9 19221
1409cd0b 19222_ACEOF
5213506e 19223if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19224 gcc_cv_math_func_fabsl=yes
1409cd0b 19225else
db9f46a9 19226 gcc_cv_math_func_fabsl=no
1409cd0b 19227fi
5213506e
RW
19228rm -f core conftest.err conftest.$ac_objext \
19229 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19230fi
db9f46a9
TG
19231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19232$as_echo "$gcc_cv_math_func_fabsl" >&6; }
19233 if test $gcc_cv_math_func_fabsl = yes; then
f1cdfa01 19234
f38a14ca
TG
19235cat >>confdefs.h <<_ACEOF
19236#define HAVE_FABSL 1
19237_ACEOF
db9f46a9
TG
19238
19239 fi
1409cd0b 19240
1409cd0b 19241
1409cd0b 19242
db9f46a9
TG
19243
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19245$as_echo_n "checking for cabsf... " >&6; }
19246if test "${gcc_cv_math_func_cabsf+set}" = set; then :
5213506e 19247 $as_echo_n "(cached) " >&6
1409cd0b 19248else
db9f46a9 19249 if test x$gcc_no_link = xyes; then
5213506e 19250 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19251fi
5213506e 19252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19253/* end confdefs.h. */
19254
db9f46a9
TG
19255#ifdef HAVE_COMPLEX_H
19256#include <complex.h>
1409cd0b 19257#endif
db9f46a9
TG
19258#ifdef HAVE_MATH_H
19259#include <math.h>
19260#endif
19261
19262int (*ptr)() = (int (*)())cabsf;
19263
1409cd0b
FXC
19264int
19265main ()
19266{
1409cd0b
FXC
19267 return 0;
19268}
db9f46a9 19269
1409cd0b 19270_ACEOF
5213506e 19271if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19272 gcc_cv_math_func_cabsf=yes
1409cd0b 19273else
db9f46a9 19274 gcc_cv_math_func_cabsf=no
1409cd0b 19275fi
5213506e
RW
19276rm -f core conftest.err conftest.$ac_objext \
19277 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19278fi
db9f46a9
TG
19279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19280$as_echo "$gcc_cv_math_func_cabsf" >&6; }
19281 if test $gcc_cv_math_func_cabsf = yes; then
f1cdfa01 19282
f38a14ca
TG
19283cat >>confdefs.h <<_ACEOF
19284#define HAVE_CABSF 1
19285_ACEOF
db9f46a9
TG
19286
19287 fi
19288
1409cd0b 19289
1409cd0b 19290
1409cd0b 19291
db9f46a9
TG
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19293$as_echo_n "checking for cabs... " >&6; }
19294if test "${gcc_cv_math_func_cabs+set}" = set; then :
5213506e 19295 $as_echo_n "(cached) " >&6
1409cd0b 19296else
db9f46a9 19297 if test x$gcc_no_link = xyes; then
5213506e 19298 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19299fi
5213506e 19300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19301/* end confdefs.h. */
19302
db9f46a9
TG
19303#ifdef HAVE_COMPLEX_H
19304#include <complex.h>
19305#endif
19306#ifdef HAVE_MATH_H
19307#include <math.h>
1409cd0b 19308#endif
db9f46a9
TG
19309
19310int (*ptr)() = (int (*)())cabs;
19311
1409cd0b
FXC
19312int
19313main ()
19314{
1409cd0b
FXC
19315 return 0;
19316}
db9f46a9 19317
1409cd0b 19318_ACEOF
5213506e 19319if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19320 gcc_cv_math_func_cabs=yes
1409cd0b 19321else
db9f46a9 19322 gcc_cv_math_func_cabs=no
1409cd0b 19323fi
5213506e
RW
19324rm -f core conftest.err conftest.$ac_objext \
19325 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19326fi
db9f46a9
TG
19327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19328$as_echo "$gcc_cv_math_func_cabs" >&6; }
19329 if test $gcc_cv_math_func_cabs = yes; then
f1cdfa01 19330
f38a14ca
TG
19331cat >>confdefs.h <<_ACEOF
19332#define HAVE_CABS 1
19333_ACEOF
db9f46a9
TG
19334
19335 fi
1409cd0b 19336
1409cd0b 19337
1409cd0b 19338
db9f46a9
TG
19339
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19341$as_echo_n "checking for cabsl... " >&6; }
19342if test "${gcc_cv_math_func_cabsl+set}" = set; then :
5213506e 19343 $as_echo_n "(cached) " >&6
1409cd0b 19344else
db9f46a9 19345 if test x$gcc_no_link = xyes; then
5213506e 19346 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19347fi
5213506e 19348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19349/* end confdefs.h. */
19350
db9f46a9
TG
19351#ifdef HAVE_COMPLEX_H
19352#include <complex.h>
1409cd0b 19353#endif
db9f46a9
TG
19354#ifdef HAVE_MATH_H
19355#include <math.h>
19356#endif
19357
19358int (*ptr)() = (int (*)())cabsl;
19359
1409cd0b
FXC
19360int
19361main ()
19362{
1409cd0b
FXC
19363 return 0;
19364}
db9f46a9 19365
1409cd0b 19366_ACEOF
5213506e 19367if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19368 gcc_cv_math_func_cabsl=yes
1409cd0b 19369else
db9f46a9 19370 gcc_cv_math_func_cabsl=no
1409cd0b 19371fi
5213506e
RW
19372rm -f core conftest.err conftest.$ac_objext \
19373 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19374fi
db9f46a9
TG
19375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19376$as_echo "$gcc_cv_math_func_cabsl" >&6; }
19377 if test $gcc_cv_math_func_cabsl = yes; then
f1cdfa01 19378
f38a14ca
TG
19379cat >>confdefs.h <<_ACEOF
19380#define HAVE_CABSL 1
19381_ACEOF
1409cd0b 19382
db9f46a9 19383 fi
1409cd0b 19384
1409cd0b 19385
db9f46a9
TG
19386
19387
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19389$as_echo_n "checking for floorf... " >&6; }
19390if test "${gcc_cv_math_func_floorf+set}" = set; then :
5213506e 19391 $as_echo_n "(cached) " >&6
1409cd0b 19392else
db9f46a9 19393 if test x$gcc_no_link = xyes; then
5213506e 19394 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19395fi
5213506e 19396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19397/* end confdefs.h. */
19398
db9f46a9
TG
19399#ifdef HAVE_COMPLEX_H
19400#include <complex.h>
19401#endif
19402#ifdef HAVE_MATH_H
19403#include <math.h>
1409cd0b 19404#endif
db9f46a9
TG
19405
19406int (*ptr)() = (int (*)())floorf;
19407
1409cd0b
FXC
19408int
19409main ()
19410{
5213506e
RW
19411 return 0;
19412}
db9f46a9 19413
5213506e
RW
19414_ACEOF
19415if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19416 gcc_cv_math_func_floorf=yes
1409cd0b 19417else
db9f46a9 19418 gcc_cv_math_func_floorf=no
1409cd0b 19419fi
5213506e
RW
19420rm -f core conftest.err conftest.$ac_objext \
19421 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19422fi
db9f46a9
TG
19423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19424$as_echo "$gcc_cv_math_func_floorf" >&6; }
19425 if test $gcc_cv_math_func_floorf = yes; then
f1cdfa01 19426
f38a14ca
TG
19427cat >>confdefs.h <<_ACEOF
19428#define HAVE_FLOORF 1
19429_ACEOF
db9f46a9
TG
19430
19431 fi
1409cd0b 19432
1409cd0b 19433
1409cd0b 19434
db9f46a9
TG
19435
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19437$as_echo_n "checking for floor... " >&6; }
19438if test "${gcc_cv_math_func_floor+set}" = set; then :
5213506e 19439 $as_echo_n "(cached) " >&6
1409cd0b 19440else
db9f46a9 19441 if test x$gcc_no_link = xyes; then
5213506e 19442 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19443fi
5213506e 19444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19445/* end confdefs.h. */
19446
db9f46a9
TG
19447#ifdef HAVE_COMPLEX_H
19448#include <complex.h>
1409cd0b 19449#endif
db9f46a9
TG
19450#ifdef HAVE_MATH_H
19451#include <math.h>
19452#endif
19453
19454int (*ptr)() = (int (*)())floor;
19455
1409cd0b
FXC
19456int
19457main ()
19458{
1409cd0b
FXC
19459 return 0;
19460}
db9f46a9 19461
1409cd0b 19462_ACEOF
5213506e 19463if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19464 gcc_cv_math_func_floor=yes
1409cd0b 19465else
db9f46a9 19466 gcc_cv_math_func_floor=no
1409cd0b 19467fi
5213506e
RW
19468rm -f core conftest.err conftest.$ac_objext \
19469 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19470fi
db9f46a9
TG
19471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19472$as_echo "$gcc_cv_math_func_floor" >&6; }
19473 if test $gcc_cv_math_func_floor = yes; then
f1cdfa01 19474
f38a14ca
TG
19475cat >>confdefs.h <<_ACEOF
19476#define HAVE_FLOOR 1
19477_ACEOF
db9f46a9
TG
19478
19479 fi
19480
1409cd0b 19481
1409cd0b 19482
1409cd0b 19483
db9f46a9
TG
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19485$as_echo_n "checking for floorl... " >&6; }
19486if test "${gcc_cv_math_func_floorl+set}" = set; then :
5213506e 19487 $as_echo_n "(cached) " >&6
eb647f7d 19488else
db9f46a9 19489 if test x$gcc_no_link = xyes; then
5213506e 19490 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19491fi
5213506e 19492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19493/* end confdefs.h. */
19494
db9f46a9
TG
19495#ifdef HAVE_COMPLEX_H
19496#include <complex.h>
19497#endif
19498#ifdef HAVE_MATH_H
19499#include <math.h>
eb647f7d 19500#endif
db9f46a9
TG
19501
19502int (*ptr)() = (int (*)())floorl;
19503
eb647f7d
FXC
19504int
19505main ()
19506{
eb647f7d
FXC
19507 return 0;
19508}
db9f46a9 19509
eb647f7d 19510_ACEOF
5213506e 19511if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19512 gcc_cv_math_func_floorl=yes
eb647f7d 19513else
db9f46a9 19514 gcc_cv_math_func_floorl=no
eb647f7d 19515fi
5213506e
RW
19516rm -f core conftest.err conftest.$ac_objext \
19517 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19518fi
db9f46a9
TG
19519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19520$as_echo "$gcc_cv_math_func_floorl" >&6; }
19521 if test $gcc_cv_math_func_floorl = yes; then
f1cdfa01 19522
f38a14ca
TG
19523cat >>confdefs.h <<_ACEOF
19524#define HAVE_FLOORL 1
19525_ACEOF
db9f46a9
TG
19526
19527 fi
eb647f7d 19528
eb647f7d 19529
eb647f7d 19530
db9f46a9
TG
19531
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19533$as_echo_n "checking for fmodf... " >&6; }
19534if test "${gcc_cv_math_func_fmodf+set}" = set; then :
5213506e 19535 $as_echo_n "(cached) " >&6
eb647f7d 19536else
db9f46a9 19537 if test x$gcc_no_link = xyes; then
5213506e 19538 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19539fi
5213506e 19540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19541/* end confdefs.h. */
19542
db9f46a9
TG
19543#ifdef HAVE_COMPLEX_H
19544#include <complex.h>
eb647f7d 19545#endif
db9f46a9
TG
19546#ifdef HAVE_MATH_H
19547#include <math.h>
19548#endif
19549
19550int (*ptr)() = (int (*)())fmodf;
19551
eb647f7d
FXC
19552int
19553main ()
19554{
eb647f7d
FXC
19555 return 0;
19556}
db9f46a9 19557
eb647f7d 19558_ACEOF
5213506e 19559if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19560 gcc_cv_math_func_fmodf=yes
eb647f7d 19561else
db9f46a9 19562 gcc_cv_math_func_fmodf=no
eb647f7d 19563fi
5213506e
RW
19564rm -f core conftest.err conftest.$ac_objext \
19565 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19566fi
db9f46a9
TG
19567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19568$as_echo "$gcc_cv_math_func_fmodf" >&6; }
19569 if test $gcc_cv_math_func_fmodf = yes; then
f1cdfa01 19570
f38a14ca
TG
19571cat >>confdefs.h <<_ACEOF
19572#define HAVE_FMODF 1
19573_ACEOF
eb647f7d 19574
db9f46a9 19575 fi
eb647f7d 19576
eb647f7d 19577
db9f46a9
TG
19578
19579
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19581$as_echo_n "checking for fmod... " >&6; }
19582if test "${gcc_cv_math_func_fmod+set}" = set; then :
5213506e 19583 $as_echo_n "(cached) " >&6
eb647f7d 19584else
db9f46a9 19585 if test x$gcc_no_link = xyes; then
5213506e 19586 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19587fi
5213506e 19588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19589/* end confdefs.h. */
19590
db9f46a9
TG
19591#ifdef HAVE_COMPLEX_H
19592#include <complex.h>
19593#endif
19594#ifdef HAVE_MATH_H
19595#include <math.h>
eb647f7d 19596#endif
db9f46a9
TG
19597
19598int (*ptr)() = (int (*)())fmod;
19599
eb647f7d
FXC
19600int
19601main ()
19602{
eb647f7d
FXC
19603 return 0;
19604}
db9f46a9 19605
eb647f7d 19606_ACEOF
5213506e 19607if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19608 gcc_cv_math_func_fmod=yes
eb647f7d 19609else
db9f46a9 19610 gcc_cv_math_func_fmod=no
eb647f7d 19611fi
5213506e
RW
19612rm -f core conftest.err conftest.$ac_objext \
19613 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19614fi
db9f46a9
TG
19615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19616$as_echo "$gcc_cv_math_func_fmod" >&6; }
19617 if test $gcc_cv_math_func_fmod = yes; then
f1cdfa01 19618
f38a14ca
TG
19619cat >>confdefs.h <<_ACEOF
19620#define HAVE_FMOD 1
19621_ACEOF
db9f46a9
TG
19622
19623 fi
eb647f7d 19624
eb647f7d 19625
eb647f7d 19626
db9f46a9
TG
19627
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19629$as_echo_n "checking for fmodl... " >&6; }
19630if test "${gcc_cv_math_func_fmodl+set}" = set; then :
5213506e 19631 $as_echo_n "(cached) " >&6
1409cd0b 19632else
db9f46a9 19633 if test x$gcc_no_link = xyes; then
5213506e 19634 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19635fi
5213506e 19636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19637/* end confdefs.h. */
19638
db9f46a9
TG
19639#ifdef HAVE_COMPLEX_H
19640#include <complex.h>
1409cd0b 19641#endif
db9f46a9
TG
19642#ifdef HAVE_MATH_H
19643#include <math.h>
19644#endif
19645
19646int (*ptr)() = (int (*)())fmodl;
19647
1409cd0b
FXC
19648int
19649main ()
19650{
1409cd0b
FXC
19651 return 0;
19652}
db9f46a9 19653
1409cd0b 19654_ACEOF
5213506e 19655if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19656 gcc_cv_math_func_fmodl=yes
1409cd0b 19657else
db9f46a9 19658 gcc_cv_math_func_fmodl=no
1409cd0b 19659fi
5213506e
RW
19660rm -f core conftest.err conftest.$ac_objext \
19661 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19662fi
db9f46a9
TG
19663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19664$as_echo "$gcc_cv_math_func_fmodl" >&6; }
19665 if test $gcc_cv_math_func_fmodl = yes; then
f1cdfa01 19666
f38a14ca
TG
19667cat >>confdefs.h <<_ACEOF
19668#define HAVE_FMODL 1
19669_ACEOF
db9f46a9
TG
19670
19671 fi
19672
1409cd0b 19673
1409cd0b 19674
1409cd0b 19675
db9f46a9
TG
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19677$as_echo_n "checking for frexpf... " >&6; }
19678if test "${gcc_cv_math_func_frexpf+set}" = set; then :
5213506e 19679 $as_echo_n "(cached) " >&6
1409cd0b 19680else
db9f46a9 19681 if test x$gcc_no_link = xyes; then
5213506e 19682 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19683fi
5213506e 19684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19685/* end confdefs.h. */
19686
db9f46a9
TG
19687#ifdef HAVE_COMPLEX_H
19688#include <complex.h>
19689#endif
19690#ifdef HAVE_MATH_H
19691#include <math.h>
1409cd0b 19692#endif
db9f46a9
TG
19693
19694int (*ptr)() = (int (*)())frexpf;
19695
1409cd0b
FXC
19696int
19697main ()
19698{
1409cd0b
FXC
19699 return 0;
19700}
db9f46a9 19701
1409cd0b 19702_ACEOF
5213506e 19703if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19704 gcc_cv_math_func_frexpf=yes
1409cd0b 19705else
db9f46a9 19706 gcc_cv_math_func_frexpf=no
1409cd0b 19707fi
5213506e
RW
19708rm -f core conftest.err conftest.$ac_objext \
19709 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19710fi
db9f46a9
TG
19711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19712$as_echo "$gcc_cv_math_func_frexpf" >&6; }
19713 if test $gcc_cv_math_func_frexpf = yes; then
f1cdfa01 19714
f38a14ca
TG
19715cat >>confdefs.h <<_ACEOF
19716#define HAVE_FREXPF 1
19717_ACEOF
db9f46a9
TG
19718
19719 fi
1409cd0b 19720
1409cd0b 19721
1409cd0b 19722
db9f46a9
TG
19723
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19725$as_echo_n "checking for frexp... " >&6; }
19726if test "${gcc_cv_math_func_frexp+set}" = set; then :
5213506e 19727 $as_echo_n "(cached) " >&6
1409cd0b 19728else
db9f46a9 19729 if test x$gcc_no_link = xyes; then
5213506e 19730 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19731fi
5213506e 19732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19733/* end confdefs.h. */
19734
db9f46a9
TG
19735#ifdef HAVE_COMPLEX_H
19736#include <complex.h>
1409cd0b 19737#endif
db9f46a9
TG
19738#ifdef HAVE_MATH_H
19739#include <math.h>
19740#endif
19741
19742int (*ptr)() = (int (*)())frexp;
19743
1409cd0b
FXC
19744int
19745main ()
19746{
1409cd0b
FXC
19747 return 0;
19748}
db9f46a9 19749
1409cd0b 19750_ACEOF
5213506e 19751if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19752 gcc_cv_math_func_frexp=yes
1409cd0b 19753else
db9f46a9 19754 gcc_cv_math_func_frexp=no
1409cd0b 19755fi
5213506e
RW
19756rm -f core conftest.err conftest.$ac_objext \
19757 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19758fi
db9f46a9
TG
19759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19760$as_echo "$gcc_cv_math_func_frexp" >&6; }
19761 if test $gcc_cv_math_func_frexp = yes; then
f1cdfa01 19762
f38a14ca
TG
19763cat >>confdefs.h <<_ACEOF
19764#define HAVE_FREXP 1
19765_ACEOF
1409cd0b 19766
db9f46a9 19767 fi
1409cd0b 19768
1409cd0b 19769
db9f46a9
TG
19770
19771
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19773$as_echo_n "checking for frexpl... " >&6; }
19774if test "${gcc_cv_math_func_frexpl+set}" = set; then :
5213506e 19775 $as_echo_n "(cached) " >&6
1409cd0b 19776else
db9f46a9 19777 if test x$gcc_no_link = xyes; then
5213506e 19778 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19779fi
5213506e 19780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19781/* end confdefs.h. */
19782
db9f46a9
TG
19783#ifdef HAVE_COMPLEX_H
19784#include <complex.h>
19785#endif
19786#ifdef HAVE_MATH_H
19787#include <math.h>
1409cd0b 19788#endif
db9f46a9
TG
19789
19790int (*ptr)() = (int (*)())frexpl;
19791
1409cd0b
FXC
19792int
19793main ()
19794{
1409cd0b
FXC
19795 return 0;
19796}
db9f46a9 19797
1409cd0b 19798_ACEOF
5213506e 19799if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19800 gcc_cv_math_func_frexpl=yes
1409cd0b 19801else
db9f46a9 19802 gcc_cv_math_func_frexpl=no
1409cd0b 19803fi
5213506e
RW
19804rm -f core conftest.err conftest.$ac_objext \
19805 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19806fi
db9f46a9
TG
19807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19808$as_echo "$gcc_cv_math_func_frexpl" >&6; }
19809 if test $gcc_cv_math_func_frexpl = yes; then
f1cdfa01 19810
f38a14ca
TG
19811cat >>confdefs.h <<_ACEOF
19812#define HAVE_FREXPL 1
19813_ACEOF
db9f46a9
TG
19814
19815 fi
1409cd0b 19816
1409cd0b 19817
1409cd0b 19818
db9f46a9
TG
19819
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19821$as_echo_n "checking for hypotf... " >&6; }
19822if test "${gcc_cv_math_func_hypotf+set}" = set; then :
5213506e 19823 $as_echo_n "(cached) " >&6
1409cd0b 19824else
db9f46a9 19825 if test x$gcc_no_link = xyes; then
5213506e 19826 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19827fi
5213506e 19828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19829/* end confdefs.h. */
19830
db9f46a9
TG
19831#ifdef HAVE_COMPLEX_H
19832#include <complex.h>
1409cd0b 19833#endif
db9f46a9
TG
19834#ifdef HAVE_MATH_H
19835#include <math.h>
19836#endif
19837
19838int (*ptr)() = (int (*)())hypotf;
19839
1409cd0b
FXC
19840int
19841main ()
19842{
1409cd0b
FXC
19843 return 0;
19844}
db9f46a9 19845
1409cd0b 19846_ACEOF
5213506e 19847if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19848 gcc_cv_math_func_hypotf=yes
1409cd0b 19849else
db9f46a9 19850 gcc_cv_math_func_hypotf=no
1409cd0b 19851fi
5213506e
RW
19852rm -f core conftest.err conftest.$ac_objext \
19853 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19854fi
db9f46a9
TG
19855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19856$as_echo "$gcc_cv_math_func_hypotf" >&6; }
19857 if test $gcc_cv_math_func_hypotf = yes; then
f1cdfa01 19858
f38a14ca
TG
19859cat >>confdefs.h <<_ACEOF
19860#define HAVE_HYPOTF 1
19861_ACEOF
db9f46a9
TG
19862
19863 fi
19864
1409cd0b 19865
1409cd0b 19866
1409cd0b 19867
db9f46a9
TG
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19869$as_echo_n "checking for hypot... " >&6; }
19870if test "${gcc_cv_math_func_hypot+set}" = set; then :
5213506e 19871 $as_echo_n "(cached) " >&6
1409cd0b 19872else
db9f46a9 19873 if test x$gcc_no_link = xyes; then
5213506e 19874 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19875fi
5213506e 19876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19877/* end confdefs.h. */
19878
db9f46a9
TG
19879#ifdef HAVE_COMPLEX_H
19880#include <complex.h>
19881#endif
19882#ifdef HAVE_MATH_H
19883#include <math.h>
1409cd0b 19884#endif
db9f46a9
TG
19885
19886int (*ptr)() = (int (*)())hypot;
19887
1409cd0b
FXC
19888int
19889main ()
19890{
1409cd0b
FXC
19891 return 0;
19892}
db9f46a9 19893
1409cd0b 19894_ACEOF
5213506e 19895if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19896 gcc_cv_math_func_hypot=yes
1409cd0b 19897else
db9f46a9 19898 gcc_cv_math_func_hypot=no
1409cd0b 19899fi
5213506e
RW
19900rm -f core conftest.err conftest.$ac_objext \
19901 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19902fi
db9f46a9
TG
19903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19904$as_echo "$gcc_cv_math_func_hypot" >&6; }
19905 if test $gcc_cv_math_func_hypot = yes; then
f1cdfa01 19906
f38a14ca
TG
19907cat >>confdefs.h <<_ACEOF
19908#define HAVE_HYPOT 1
19909_ACEOF
db9f46a9
TG
19910
19911 fi
1409cd0b 19912
1409cd0b 19913
1409cd0b 19914
db9f46a9
TG
19915
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19917$as_echo_n "checking for hypotl... " >&6; }
19918if test "${gcc_cv_math_func_hypotl+set}" = set; then :
5213506e 19919 $as_echo_n "(cached) " >&6
cc6d3bde 19920else
db9f46a9 19921 if test x$gcc_no_link = xyes; then
5213506e 19922 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19923fi
5213506e 19924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19925/* end confdefs.h. */
19926
db9f46a9
TG
19927#ifdef HAVE_COMPLEX_H
19928#include <complex.h>
cc6d3bde 19929#endif
db9f46a9
TG
19930#ifdef HAVE_MATH_H
19931#include <math.h>
19932#endif
19933
19934int (*ptr)() = (int (*)())hypotl;
19935
cc6d3bde
SK
19936int
19937main ()
19938{
cc6d3bde
SK
19939 return 0;
19940}
db9f46a9 19941
cc6d3bde 19942_ACEOF
5213506e 19943if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19944 gcc_cv_math_func_hypotl=yes
cc6d3bde 19945else
db9f46a9 19946 gcc_cv_math_func_hypotl=no
cc6d3bde 19947fi
5213506e
RW
19948rm -f core conftest.err conftest.$ac_objext \
19949 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 19950fi
db9f46a9
TG
19951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19952$as_echo "$gcc_cv_math_func_hypotl" >&6; }
19953 if test $gcc_cv_math_func_hypotl = yes; then
f1cdfa01 19954
f38a14ca
TG
19955cat >>confdefs.h <<_ACEOF
19956#define HAVE_HYPOTL 1
19957_ACEOF
cc6d3bde 19958
db9f46a9 19959 fi
cc6d3bde 19960
cc6d3bde 19961
db9f46a9
TG
19962
19963
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19965$as_echo_n "checking for ldexpf... " >&6; }
19966if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
5213506e 19967 $as_echo_n "(cached) " >&6
cc6d3bde 19968else
db9f46a9 19969 if test x$gcc_no_link = xyes; then
5213506e 19970 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19971fi
5213506e 19972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19973/* end confdefs.h. */
19974
db9f46a9
TG
19975#ifdef HAVE_COMPLEX_H
19976#include <complex.h>
19977#endif
19978#ifdef HAVE_MATH_H
19979#include <math.h>
cc6d3bde 19980#endif
db9f46a9
TG
19981
19982int (*ptr)() = (int (*)())ldexpf;
19983
cc6d3bde
SK
19984int
19985main ()
19986{
cc6d3bde
SK
19987 return 0;
19988}
db9f46a9 19989
cc6d3bde 19990_ACEOF
5213506e 19991if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19992 gcc_cv_math_func_ldexpf=yes
cc6d3bde 19993else
db9f46a9 19994 gcc_cv_math_func_ldexpf=no
cc6d3bde 19995fi
5213506e
RW
19996rm -f core conftest.err conftest.$ac_objext \
19997 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 19998fi
db9f46a9
TG
19999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20000$as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20001 if test $gcc_cv_math_func_ldexpf = yes; then
f1cdfa01 20002
f38a14ca
TG
20003cat >>confdefs.h <<_ACEOF
20004#define HAVE_LDEXPF 1
20005_ACEOF
db9f46a9
TG
20006
20007 fi
cc6d3bde 20008
cc6d3bde 20009
cc6d3bde 20010
db9f46a9
TG
20011
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20013$as_echo_n "checking for ldexp... " >&6; }
20014if test "${gcc_cv_math_func_ldexp+set}" = set; then :
5213506e 20015 $as_echo_n "(cached) " >&6
cc6d3bde 20016else
db9f46a9 20017 if test x$gcc_no_link = xyes; then
5213506e 20018 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20019fi
5213506e 20020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20021/* end confdefs.h. */
20022
db9f46a9
TG
20023#ifdef HAVE_COMPLEX_H
20024#include <complex.h>
cc6d3bde 20025#endif
db9f46a9
TG
20026#ifdef HAVE_MATH_H
20027#include <math.h>
20028#endif
20029
20030int (*ptr)() = (int (*)())ldexp;
20031
cc6d3bde
SK
20032int
20033main ()
20034{
cc6d3bde
SK
20035 return 0;
20036}
db9f46a9 20037
cc6d3bde 20038_ACEOF
5213506e 20039if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20040 gcc_cv_math_func_ldexp=yes
cc6d3bde 20041else
db9f46a9 20042 gcc_cv_math_func_ldexp=no
cc6d3bde 20043fi
5213506e
RW
20044rm -f core conftest.err conftest.$ac_objext \
20045 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20046fi
db9f46a9
TG
20047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20048$as_echo "$gcc_cv_math_func_ldexp" >&6; }
20049 if test $gcc_cv_math_func_ldexp = yes; then
f1cdfa01 20050
f38a14ca
TG
20051cat >>confdefs.h <<_ACEOF
20052#define HAVE_LDEXP 1
20053_ACEOF
db9f46a9
TG
20054
20055 fi
20056
cc6d3bde 20057
cc6d3bde 20058
cc6d3bde 20059
db9f46a9
TG
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20061$as_echo_n "checking for ldexpl... " >&6; }
20062if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
5213506e 20063 $as_echo_n "(cached) " >&6
1409cd0b 20064else
db9f46a9 20065 if test x$gcc_no_link = xyes; then
5213506e 20066 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20067fi
5213506e 20068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20069/* end confdefs.h. */
20070
db9f46a9
TG
20071#ifdef HAVE_COMPLEX_H
20072#include <complex.h>
20073#endif
20074#ifdef HAVE_MATH_H
20075#include <math.h>
1409cd0b 20076#endif
db9f46a9
TG
20077
20078int (*ptr)() = (int (*)())ldexpl;
20079
1409cd0b
FXC
20080int
20081main ()
20082{
1409cd0b
FXC
20083 return 0;
20084}
db9f46a9 20085
1409cd0b 20086_ACEOF
5213506e 20087if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20088 gcc_cv_math_func_ldexpl=yes
1409cd0b 20089else
db9f46a9 20090 gcc_cv_math_func_ldexpl=no
1409cd0b 20091fi
5213506e
RW
20092rm -f core conftest.err conftest.$ac_objext \
20093 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20094fi
db9f46a9
TG
20095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20096$as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20097 if test $gcc_cv_math_func_ldexpl = yes; then
f1cdfa01 20098
f38a14ca
TG
20099cat >>confdefs.h <<_ACEOF
20100#define HAVE_LDEXPL 1
20101_ACEOF
db9f46a9
TG
20102
20103 fi
1409cd0b 20104
1409cd0b 20105
1409cd0b 20106
db9f46a9
TG
20107
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20109$as_echo_n "checking for logf... " >&6; }
20110if test "${gcc_cv_math_func_logf+set}" = set; then :
5213506e 20111 $as_echo_n "(cached) " >&6
1409cd0b 20112else
db9f46a9 20113 if test x$gcc_no_link = xyes; then
5213506e 20114 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20115fi
5213506e 20116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20117/* end confdefs.h. */
20118
db9f46a9
TG
20119#ifdef HAVE_COMPLEX_H
20120#include <complex.h>
1409cd0b 20121#endif
db9f46a9
TG
20122#ifdef HAVE_MATH_H
20123#include <math.h>
20124#endif
20125
20126int (*ptr)() = (int (*)())logf;
20127
1409cd0b
FXC
20128int
20129main ()
20130{
1409cd0b
FXC
20131 return 0;
20132}
db9f46a9 20133
1409cd0b 20134_ACEOF
5213506e 20135if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20136 gcc_cv_math_func_logf=yes
1409cd0b 20137else
db9f46a9 20138 gcc_cv_math_func_logf=no
1409cd0b 20139fi
5213506e
RW
20140rm -f core conftest.err conftest.$ac_objext \
20141 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20142fi
db9f46a9
TG
20143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20144$as_echo "$gcc_cv_math_func_logf" >&6; }
20145 if test $gcc_cv_math_func_logf = yes; then
f1cdfa01 20146
f38a14ca
TG
20147cat >>confdefs.h <<_ACEOF
20148#define HAVE_LOGF 1
20149_ACEOF
1409cd0b 20150
db9f46a9 20151 fi
1409cd0b 20152
1409cd0b 20153
db9f46a9
TG
20154
20155
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20157$as_echo_n "checking for log... " >&6; }
20158if test "${gcc_cv_math_func_log+set}" = set; then :
5213506e 20159 $as_echo_n "(cached) " >&6
1409cd0b 20160else
db9f46a9 20161 if test x$gcc_no_link = xyes; then
5213506e 20162 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20163fi
5213506e 20164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20165/* end confdefs.h. */
20166
db9f46a9
TG
20167#ifdef HAVE_COMPLEX_H
20168#include <complex.h>
20169#endif
20170#ifdef HAVE_MATH_H
20171#include <math.h>
1409cd0b 20172#endif
db9f46a9
TG
20173
20174int (*ptr)() = (int (*)())log;
20175
1409cd0b
FXC
20176int
20177main ()
20178{
1409cd0b
FXC
20179 return 0;
20180}
db9f46a9 20181
1409cd0b 20182_ACEOF
5213506e 20183if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20184 gcc_cv_math_func_log=yes
1409cd0b 20185else
db9f46a9 20186 gcc_cv_math_func_log=no
1409cd0b 20187fi
5213506e
RW
20188rm -f core conftest.err conftest.$ac_objext \
20189 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20190fi
db9f46a9
TG
20191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20192$as_echo "$gcc_cv_math_func_log" >&6; }
20193 if test $gcc_cv_math_func_log = yes; then
f1cdfa01 20194
f38a14ca
TG
20195cat >>confdefs.h <<_ACEOF
20196#define HAVE_LOG 1
20197_ACEOF
db9f46a9
TG
20198
20199 fi
1409cd0b 20200
1409cd0b 20201
1409cd0b 20202
db9f46a9
TG
20203
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20205$as_echo_n "checking for logl... " >&6; }
20206if test "${gcc_cv_math_func_logl+set}" = set; then :
5213506e 20207 $as_echo_n "(cached) " >&6
1409cd0b 20208else
db9f46a9 20209 if test x$gcc_no_link = xyes; then
5213506e 20210 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20211fi
5213506e 20212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20213/* end confdefs.h. */
20214
db9f46a9
TG
20215#ifdef HAVE_COMPLEX_H
20216#include <complex.h>
1409cd0b 20217#endif
db9f46a9
TG
20218#ifdef HAVE_MATH_H
20219#include <math.h>
20220#endif
20221
20222int (*ptr)() = (int (*)())logl;
20223
1409cd0b
FXC
20224int
20225main ()
20226{
1409cd0b
FXC
20227 return 0;
20228}
db9f46a9 20229
1409cd0b 20230_ACEOF
5213506e 20231if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20232 gcc_cv_math_func_logl=yes
1409cd0b 20233else
db9f46a9 20234 gcc_cv_math_func_logl=no
1409cd0b 20235fi
5213506e
RW
20236rm -f core conftest.err conftest.$ac_objext \
20237 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20238fi
db9f46a9
TG
20239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20240$as_echo "$gcc_cv_math_func_logl" >&6; }
20241 if test $gcc_cv_math_func_logl = yes; then
f1cdfa01 20242
f38a14ca
TG
20243cat >>confdefs.h <<_ACEOF
20244#define HAVE_LOGL 1
20245_ACEOF
db9f46a9
TG
20246
20247 fi
20248
1409cd0b 20249
1409cd0b 20250
1409cd0b 20251
db9f46a9
TG
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20253$as_echo_n "checking for clogf... " >&6; }
20254if test "${gcc_cv_math_func_clogf+set}" = set; then :
5213506e 20255 $as_echo_n "(cached) " >&6
1409cd0b 20256else
db9f46a9 20257 if test x$gcc_no_link = xyes; then
5213506e 20258 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20259fi
5213506e 20260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20261/* end confdefs.h. */
20262
db9f46a9
TG
20263#ifdef HAVE_COMPLEX_H
20264#include <complex.h>
20265#endif
20266#ifdef HAVE_MATH_H
20267#include <math.h>
1409cd0b 20268#endif
db9f46a9
TG
20269
20270int (*ptr)() = (int (*)())clogf;
20271
1409cd0b
FXC
20272int
20273main ()
20274{
1409cd0b
FXC
20275 return 0;
20276}
db9f46a9 20277
1409cd0b 20278_ACEOF
5213506e 20279if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20280 gcc_cv_math_func_clogf=yes
1409cd0b 20281else
db9f46a9 20282 gcc_cv_math_func_clogf=no
1409cd0b 20283fi
5213506e
RW
20284rm -f core conftest.err conftest.$ac_objext \
20285 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20286fi
db9f46a9
TG
20287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20288$as_echo "$gcc_cv_math_func_clogf" >&6; }
20289 if test $gcc_cv_math_func_clogf = yes; then
f1cdfa01 20290
f38a14ca
TG
20291cat >>confdefs.h <<_ACEOF
20292#define HAVE_CLOGF 1
20293_ACEOF
db9f46a9
TG
20294
20295 fi
1409cd0b 20296
1409cd0b 20297
1409cd0b 20298
db9f46a9
TG
20299
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20301$as_echo_n "checking for clog... " >&6; }
20302if test "${gcc_cv_math_func_clog+set}" = set; then :
5213506e 20303 $as_echo_n "(cached) " >&6
1409cd0b 20304else
db9f46a9 20305 if test x$gcc_no_link = xyes; then
5213506e 20306 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20307fi
5213506e 20308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20309/* end confdefs.h. */
20310
db9f46a9
TG
20311#ifdef HAVE_COMPLEX_H
20312#include <complex.h>
1409cd0b 20313#endif
db9f46a9
TG
20314#ifdef HAVE_MATH_H
20315#include <math.h>
20316#endif
20317
20318int (*ptr)() = (int (*)())clog;
20319
1409cd0b
FXC
20320int
20321main ()
20322{
1409cd0b
FXC
20323 return 0;
20324}
db9f46a9 20325
1409cd0b 20326_ACEOF
5213506e 20327if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20328 gcc_cv_math_func_clog=yes
1409cd0b 20329else
db9f46a9 20330 gcc_cv_math_func_clog=no
1409cd0b 20331fi
5213506e
RW
20332rm -f core conftest.err conftest.$ac_objext \
20333 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20334fi
db9f46a9
TG
20335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20336$as_echo "$gcc_cv_math_func_clog" >&6; }
20337 if test $gcc_cv_math_func_clog = yes; then
f1cdfa01 20338
f38a14ca
TG
20339cat >>confdefs.h <<_ACEOF
20340#define HAVE_CLOG 1
20341_ACEOF
1409cd0b 20342
db9f46a9 20343 fi
1409cd0b 20344
1409cd0b 20345
db9f46a9
TG
20346
20347
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20349$as_echo_n "checking for clogl... " >&6; }
20350if test "${gcc_cv_math_func_clogl+set}" = set; then :
5213506e 20351 $as_echo_n "(cached) " >&6
1409cd0b 20352else
db9f46a9 20353 if test x$gcc_no_link = xyes; then
5213506e 20354 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20355fi
5213506e 20356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20357/* end confdefs.h. */
20358
db9f46a9
TG
20359#ifdef HAVE_COMPLEX_H
20360#include <complex.h>
20361#endif
20362#ifdef HAVE_MATH_H
20363#include <math.h>
1409cd0b 20364#endif
db9f46a9
TG
20365
20366int (*ptr)() = (int (*)())clogl;
20367
1409cd0b
FXC
20368int
20369main ()
20370{
1409cd0b
FXC
20371 return 0;
20372}
db9f46a9 20373
1409cd0b 20374_ACEOF
5213506e 20375if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20376 gcc_cv_math_func_clogl=yes
1409cd0b 20377else
db9f46a9 20378 gcc_cv_math_func_clogl=no
1409cd0b 20379fi
5213506e
RW
20380rm -f core conftest.err conftest.$ac_objext \
20381 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20382fi
db9f46a9
TG
20383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20384$as_echo "$gcc_cv_math_func_clogl" >&6; }
20385 if test $gcc_cv_math_func_clogl = yes; then
f1cdfa01 20386
f38a14ca
TG
20387cat >>confdefs.h <<_ACEOF
20388#define HAVE_CLOGL 1
20389_ACEOF
db9f46a9
TG
20390
20391 fi
1409cd0b 20392
1409cd0b 20393
1409cd0b 20394
db9f46a9
TG
20395
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20397$as_echo_n "checking for log10f... " >&6; }
20398if test "${gcc_cv_math_func_log10f+set}" = set; then :
5213506e 20399 $as_echo_n "(cached) " >&6
1409cd0b 20400else
db9f46a9 20401 if test x$gcc_no_link = xyes; then
5213506e 20402 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20403fi
5213506e 20404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20405/* end confdefs.h. */
20406
db9f46a9
TG
20407#ifdef HAVE_COMPLEX_H
20408#include <complex.h>
1409cd0b 20409#endif
db9f46a9
TG
20410#ifdef HAVE_MATH_H
20411#include <math.h>
20412#endif
20413
20414int (*ptr)() = (int (*)())log10f;
20415
1409cd0b
FXC
20416int
20417main ()
20418{
1409cd0b
FXC
20419 return 0;
20420}
db9f46a9 20421
1409cd0b 20422_ACEOF
5213506e 20423if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20424 gcc_cv_math_func_log10f=yes
1409cd0b 20425else
db9f46a9 20426 gcc_cv_math_func_log10f=no
1409cd0b 20427fi
5213506e
RW
20428rm -f core conftest.err conftest.$ac_objext \
20429 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20430fi
db9f46a9
TG
20431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20432$as_echo "$gcc_cv_math_func_log10f" >&6; }
20433 if test $gcc_cv_math_func_log10f = yes; then
f1cdfa01 20434
f38a14ca
TG
20435cat >>confdefs.h <<_ACEOF
20436#define HAVE_LOG10F 1
20437_ACEOF
db9f46a9
TG
20438
20439 fi
20440
1409cd0b 20441
1409cd0b 20442
1409cd0b 20443
db9f46a9
TG
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20445$as_echo_n "checking for log10... " >&6; }
20446if test "${gcc_cv_math_func_log10+set}" = set; then :
5213506e 20447 $as_echo_n "(cached) " >&6
1409cd0b 20448else
db9f46a9 20449 if test x$gcc_no_link = xyes; then
5213506e 20450 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20451fi
5213506e 20452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20453/* end confdefs.h. */
20454
db9f46a9
TG
20455#ifdef HAVE_COMPLEX_H
20456#include <complex.h>
20457#endif
20458#ifdef HAVE_MATH_H
20459#include <math.h>
1409cd0b 20460#endif
db9f46a9
TG
20461
20462int (*ptr)() = (int (*)())log10;
20463
1409cd0b
FXC
20464int
20465main ()
20466{
1409cd0b
FXC
20467 return 0;
20468}
db9f46a9 20469
1409cd0b 20470_ACEOF
5213506e 20471if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20472 gcc_cv_math_func_log10=yes
1409cd0b 20473else
db9f46a9 20474 gcc_cv_math_func_log10=no
1409cd0b 20475fi
5213506e
RW
20476rm -f core conftest.err conftest.$ac_objext \
20477 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20478fi
db9f46a9
TG
20479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20480$as_echo "$gcc_cv_math_func_log10" >&6; }
20481 if test $gcc_cv_math_func_log10 = yes; then
f1cdfa01 20482
f38a14ca
TG
20483cat >>confdefs.h <<_ACEOF
20484#define HAVE_LOG10 1
20485_ACEOF
db9f46a9
TG
20486
20487 fi
1409cd0b 20488
1409cd0b 20489
1409cd0b 20490
db9f46a9
TG
20491
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20493$as_echo_n "checking for log10l... " >&6; }
20494if test "${gcc_cv_math_func_log10l+set}" = set; then :
5213506e 20495 $as_echo_n "(cached) " >&6
1409cd0b 20496else
db9f46a9 20497 if test x$gcc_no_link = xyes; then
5213506e 20498 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20499fi
5213506e 20500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20501/* end confdefs.h. */
20502
db9f46a9
TG
20503#ifdef HAVE_COMPLEX_H
20504#include <complex.h>
1409cd0b 20505#endif
db9f46a9
TG
20506#ifdef HAVE_MATH_H
20507#include <math.h>
20508#endif
20509
20510int (*ptr)() = (int (*)())log10l;
20511
1409cd0b
FXC
20512int
20513main ()
20514{
1409cd0b
FXC
20515 return 0;
20516}
db9f46a9 20517
1409cd0b 20518_ACEOF
5213506e 20519if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20520 gcc_cv_math_func_log10l=yes
1409cd0b 20521else
db9f46a9 20522 gcc_cv_math_func_log10l=no
1409cd0b 20523fi
5213506e
RW
20524rm -f core conftest.err conftest.$ac_objext \
20525 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20526fi
db9f46a9
TG
20527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20528$as_echo "$gcc_cv_math_func_log10l" >&6; }
20529 if test $gcc_cv_math_func_log10l = yes; then
f1cdfa01 20530
f38a14ca
TG
20531cat >>confdefs.h <<_ACEOF
20532#define HAVE_LOG10L 1
20533_ACEOF
1409cd0b 20534
db9f46a9 20535 fi
1409cd0b 20536
1409cd0b 20537
db9f46a9
TG
20538
20539
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20541$as_echo_n "checking for clog10f... " >&6; }
20542if test "${gcc_cv_math_func_clog10f+set}" = set; then :
5213506e 20543 $as_echo_n "(cached) " >&6
1409cd0b 20544else
db9f46a9 20545 if test x$gcc_no_link = xyes; then
5213506e 20546 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20547fi
5213506e 20548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20549/* end confdefs.h. */
20550
db9f46a9
TG
20551#ifdef HAVE_COMPLEX_H
20552#include <complex.h>
20553#endif
20554#ifdef HAVE_MATH_H
20555#include <math.h>
1409cd0b 20556#endif
db9f46a9
TG
20557
20558int (*ptr)() = (int (*)())clog10f;
20559
1409cd0b
FXC
20560int
20561main ()
20562{
1409cd0b
FXC
20563 return 0;
20564}
db9f46a9 20565
1409cd0b 20566_ACEOF
5213506e 20567if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20568 gcc_cv_math_func_clog10f=yes
1409cd0b 20569else
db9f46a9 20570 gcc_cv_math_func_clog10f=no
1409cd0b 20571fi
5213506e
RW
20572rm -f core conftest.err conftest.$ac_objext \
20573 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20574fi
db9f46a9
TG
20575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20576$as_echo "$gcc_cv_math_func_clog10f" >&6; }
20577 if test $gcc_cv_math_func_clog10f = yes; then
f1cdfa01 20578
f38a14ca
TG
20579cat >>confdefs.h <<_ACEOF
20580#define HAVE_CLOG10F 1
20581_ACEOF
db9f46a9
TG
20582
20583 fi
1409cd0b 20584
1409cd0b 20585
1409cd0b 20586
db9f46a9
TG
20587
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20589$as_echo_n "checking for clog10... " >&6; }
20590if test "${gcc_cv_math_func_clog10+set}" = set; then :
5213506e 20591 $as_echo_n "(cached) " >&6
1409cd0b 20592else
db9f46a9 20593 if test x$gcc_no_link = xyes; then
5213506e 20594 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20595fi
5213506e 20596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20597/* end confdefs.h. */
20598
db9f46a9
TG
20599#ifdef HAVE_COMPLEX_H
20600#include <complex.h>
1409cd0b 20601#endif
db9f46a9
TG
20602#ifdef HAVE_MATH_H
20603#include <math.h>
20604#endif
20605
20606int (*ptr)() = (int (*)())clog10;
20607
1409cd0b
FXC
20608int
20609main ()
20610{
5213506e
RW
20611 return 0;
20612}
db9f46a9 20613
5213506e
RW
20614_ACEOF
20615if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20616 gcc_cv_math_func_clog10=yes
1409cd0b 20617else
db9f46a9 20618 gcc_cv_math_func_clog10=no
1409cd0b 20619fi
5213506e
RW
20620rm -f core conftest.err conftest.$ac_objext \
20621 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20622fi
db9f46a9
TG
20623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20624$as_echo "$gcc_cv_math_func_clog10" >&6; }
20625 if test $gcc_cv_math_func_clog10 = yes; then
f1cdfa01 20626
f38a14ca
TG
20627cat >>confdefs.h <<_ACEOF
20628#define HAVE_CLOG10 1
20629_ACEOF
db9f46a9
TG
20630
20631 fi
20632
1409cd0b 20633
1409cd0b 20634
1409cd0b 20635
db9f46a9
TG
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20637$as_echo_n "checking for clog10l... " >&6; }
20638if test "${gcc_cv_math_func_clog10l+set}" = set; then :
5213506e 20639 $as_echo_n "(cached) " >&6
1409cd0b 20640else
db9f46a9 20641 if test x$gcc_no_link = xyes; then
5213506e 20642 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20643fi
5213506e 20644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20645/* end confdefs.h. */
20646
db9f46a9
TG
20647#ifdef HAVE_COMPLEX_H
20648#include <complex.h>
20649#endif
20650#ifdef HAVE_MATH_H
20651#include <math.h>
1409cd0b 20652#endif
db9f46a9
TG
20653
20654int (*ptr)() = (int (*)())clog10l;
20655
1409cd0b
FXC
20656int
20657main ()
20658{
1409cd0b
FXC
20659 return 0;
20660}
db9f46a9 20661
1409cd0b 20662_ACEOF
5213506e 20663if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20664 gcc_cv_math_func_clog10l=yes
1409cd0b 20665else
db9f46a9 20666 gcc_cv_math_func_clog10l=no
1409cd0b 20667fi
5213506e
RW
20668rm -f core conftest.err conftest.$ac_objext \
20669 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20670fi
db9f46a9
TG
20671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20672$as_echo "$gcc_cv_math_func_clog10l" >&6; }
20673 if test $gcc_cv_math_func_clog10l = yes; then
f1cdfa01 20674
f38a14ca
TG
20675cat >>confdefs.h <<_ACEOF
20676#define HAVE_CLOG10L 1
20677_ACEOF
db9f46a9
TG
20678
20679 fi
1409cd0b 20680
1409cd0b 20681
1409cd0b 20682
db9f46a9
TG
20683
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20685$as_echo_n "checking for nextafterf... " >&6; }
20686if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
5213506e 20687 $as_echo_n "(cached) " >&6
1409cd0b 20688else
db9f46a9 20689 if test x$gcc_no_link = xyes; then
5213506e 20690 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20691fi
5213506e 20692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20693/* end confdefs.h. */
20694
db9f46a9
TG
20695#ifdef HAVE_COMPLEX_H
20696#include <complex.h>
1409cd0b 20697#endif
db9f46a9
TG
20698#ifdef HAVE_MATH_H
20699#include <math.h>
20700#endif
20701
20702int (*ptr)() = (int (*)())nextafterf;
20703
1409cd0b
FXC
20704int
20705main ()
20706{
1409cd0b
FXC
20707 return 0;
20708}
db9f46a9 20709
1409cd0b 20710_ACEOF
5213506e 20711if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20712 gcc_cv_math_func_nextafterf=yes
1409cd0b 20713else
db9f46a9 20714 gcc_cv_math_func_nextafterf=no
1409cd0b 20715fi
5213506e
RW
20716rm -f core conftest.err conftest.$ac_objext \
20717 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20718fi
db9f46a9
TG
20719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20720$as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20721 if test $gcc_cv_math_func_nextafterf = yes; then
f1cdfa01 20722
f38a14ca
TG
20723cat >>confdefs.h <<_ACEOF
20724#define HAVE_NEXTAFTERF 1
20725_ACEOF
1409cd0b 20726
db9f46a9 20727 fi
1409cd0b 20728
1409cd0b 20729
db9f46a9
TG
20730
20731
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20733$as_echo_n "checking for nextafter... " >&6; }
20734if test "${gcc_cv_math_func_nextafter+set}" = set; then :
5213506e 20735 $as_echo_n "(cached) " >&6
1409cd0b 20736else
db9f46a9 20737 if test x$gcc_no_link = xyes; then
5213506e 20738 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20739fi
5213506e 20740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20741/* end confdefs.h. */
20742
db9f46a9
TG
20743#ifdef HAVE_COMPLEX_H
20744#include <complex.h>
20745#endif
20746#ifdef HAVE_MATH_H
20747#include <math.h>
1409cd0b 20748#endif
db9f46a9
TG
20749
20750int (*ptr)() = (int (*)())nextafter;
20751
1409cd0b
FXC
20752int
20753main ()
20754{
1409cd0b
FXC
20755 return 0;
20756}
db9f46a9 20757
1409cd0b 20758_ACEOF
5213506e 20759if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20760 gcc_cv_math_func_nextafter=yes
1409cd0b 20761else
db9f46a9 20762 gcc_cv_math_func_nextafter=no
1409cd0b 20763fi
5213506e
RW
20764rm -f core conftest.err conftest.$ac_objext \
20765 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20766fi
db9f46a9
TG
20767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20768$as_echo "$gcc_cv_math_func_nextafter" >&6; }
20769 if test $gcc_cv_math_func_nextafter = yes; then
f1cdfa01 20770
f38a14ca
TG
20771cat >>confdefs.h <<_ACEOF
20772#define HAVE_NEXTAFTER 1
20773_ACEOF
db9f46a9
TG
20774
20775 fi
1409cd0b 20776
1409cd0b 20777
1409cd0b 20778
db9f46a9
TG
20779
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20781$as_echo_n "checking for nextafterl... " >&6; }
20782if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
5213506e 20783 $as_echo_n "(cached) " >&6
1409cd0b 20784else
db9f46a9 20785 if test x$gcc_no_link = xyes; then
5213506e 20786 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20787fi
5213506e 20788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20789/* end confdefs.h. */
20790
db9f46a9
TG
20791#ifdef HAVE_COMPLEX_H
20792#include <complex.h>
1409cd0b 20793#endif
db9f46a9
TG
20794#ifdef HAVE_MATH_H
20795#include <math.h>
20796#endif
20797
20798int (*ptr)() = (int (*)())nextafterl;
20799
1409cd0b
FXC
20800int
20801main ()
20802{
1409cd0b
FXC
20803 return 0;
20804}
db9f46a9 20805
1409cd0b 20806_ACEOF
5213506e 20807if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20808 gcc_cv_math_func_nextafterl=yes
1409cd0b 20809else
db9f46a9 20810 gcc_cv_math_func_nextafterl=no
1409cd0b 20811fi
5213506e
RW
20812rm -f core conftest.err conftest.$ac_objext \
20813 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20814fi
db9f46a9
TG
20815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20816$as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20817 if test $gcc_cv_math_func_nextafterl = yes; then
f1cdfa01 20818
f38a14ca
TG
20819cat >>confdefs.h <<_ACEOF
20820#define HAVE_NEXTAFTERL 1
20821_ACEOF
db9f46a9
TG
20822
20823 fi
20824
1409cd0b 20825
1409cd0b 20826
1409cd0b 20827
db9f46a9
TG
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20829$as_echo_n "checking for powf... " >&6; }
20830if test "${gcc_cv_math_func_powf+set}" = set; then :
5213506e 20831 $as_echo_n "(cached) " >&6
1409cd0b 20832else
db9f46a9 20833 if test x$gcc_no_link = xyes; then
5213506e 20834 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20835fi
5213506e 20836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20837/* end confdefs.h. */
20838
db9f46a9
TG
20839#ifdef HAVE_COMPLEX_H
20840#include <complex.h>
20841#endif
20842#ifdef HAVE_MATH_H
20843#include <math.h>
1409cd0b 20844#endif
db9f46a9
TG
20845
20846int (*ptr)() = (int (*)())powf;
20847
1409cd0b
FXC
20848int
20849main ()
20850{
1409cd0b
FXC
20851 return 0;
20852}
db9f46a9 20853
1409cd0b 20854_ACEOF
5213506e 20855if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20856 gcc_cv_math_func_powf=yes
1409cd0b 20857else
db9f46a9 20858 gcc_cv_math_func_powf=no
1409cd0b 20859fi
5213506e
RW
20860rm -f core conftest.err conftest.$ac_objext \
20861 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20862fi
db9f46a9
TG
20863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20864$as_echo "$gcc_cv_math_func_powf" >&6; }
20865 if test $gcc_cv_math_func_powf = yes; then
f1cdfa01 20866
f38a14ca
TG
20867cat >>confdefs.h <<_ACEOF
20868#define HAVE_POWF 1
20869_ACEOF
db9f46a9
TG
20870
20871 fi
1409cd0b 20872
1409cd0b 20873
1409cd0b 20874
db9f46a9
TG
20875
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20877$as_echo_n "checking for pow... " >&6; }
20878if test "${gcc_cv_math_func_pow+set}" = set; then :
5213506e 20879 $as_echo_n "(cached) " >&6
1409cd0b 20880else
db9f46a9 20881 if test x$gcc_no_link = xyes; then
5213506e 20882 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20883fi
5213506e 20884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20885/* end confdefs.h. */
20886
db9f46a9
TG
20887#ifdef HAVE_COMPLEX_H
20888#include <complex.h>
1409cd0b 20889#endif
db9f46a9
TG
20890#ifdef HAVE_MATH_H
20891#include <math.h>
20892#endif
20893
20894int (*ptr)() = (int (*)())pow;
20895
1409cd0b
FXC
20896int
20897main ()
20898{
1409cd0b
FXC
20899 return 0;
20900}
db9f46a9 20901
1409cd0b 20902_ACEOF
5213506e 20903if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20904 gcc_cv_math_func_pow=yes
1409cd0b 20905else
db9f46a9 20906 gcc_cv_math_func_pow=no
1409cd0b 20907fi
5213506e
RW
20908rm -f core conftest.err conftest.$ac_objext \
20909 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20910fi
db9f46a9
TG
20911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20912$as_echo "$gcc_cv_math_func_pow" >&6; }
20913 if test $gcc_cv_math_func_pow = yes; then
f1cdfa01 20914
f38a14ca
TG
20915cat >>confdefs.h <<_ACEOF
20916#define HAVE_POW 1
20917_ACEOF
1409cd0b 20918
db9f46a9 20919 fi
1409cd0b 20920
1409cd0b 20921
db9f46a9
TG
20922
20923
db9f46a9
TG
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20925$as_echo_n "checking for cpowf... " >&6; }
20926if test "${gcc_cv_math_func_cpowf+set}" = set; then :
5213506e 20927 $as_echo_n "(cached) " >&6
1409cd0b 20928else
db9f46a9 20929 if test x$gcc_no_link = xyes; then
5213506e 20930 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20931fi
5213506e 20932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20933/* end confdefs.h. */
20934
db9f46a9
TG
20935#ifdef HAVE_COMPLEX_H
20936#include <complex.h>
1409cd0b 20937#endif
db9f46a9
TG
20938#ifdef HAVE_MATH_H
20939#include <math.h>
20940#endif
20941
20942int (*ptr)() = (int (*)())cpowf;
20943
1409cd0b
FXC
20944int
20945main ()
20946{
1409cd0b
FXC
20947 return 0;
20948}
db9f46a9 20949
1409cd0b 20950_ACEOF
5213506e 20951if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20952 gcc_cv_math_func_cpowf=yes
1409cd0b 20953else
db9f46a9 20954 gcc_cv_math_func_cpowf=no
1409cd0b 20955fi
5213506e
RW
20956rm -f core conftest.err conftest.$ac_objext \
20957 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20958fi
db9f46a9
TG
20959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20960$as_echo "$gcc_cv_math_func_cpowf" >&6; }
20961 if test $gcc_cv_math_func_cpowf = yes; then
f1cdfa01 20962
f38a14ca
TG
20963cat >>confdefs.h <<_ACEOF
20964#define HAVE_CPOWF 1
20965_ACEOF
db9f46a9
TG
20966
20967 fi
20968
1409cd0b 20969
1409cd0b 20970
1409cd0b 20971
db9f46a9
TG
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20973$as_echo_n "checking for cpow... " >&6; }
20974if test "${gcc_cv_math_func_cpow+set}" = set; then :
5213506e 20975 $as_echo_n "(cached) " >&6
1409cd0b 20976else
db9f46a9 20977 if test x$gcc_no_link = xyes; then
5213506e 20978 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20979fi
5213506e 20980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20981/* end confdefs.h. */
20982
db9f46a9
TG
20983#ifdef HAVE_COMPLEX_H
20984#include <complex.h>
20985#endif
20986#ifdef HAVE_MATH_H
20987#include <math.h>
1409cd0b 20988#endif
db9f46a9
TG
20989
20990int (*ptr)() = (int (*)())cpow;
20991
1409cd0b
FXC
20992int
20993main ()
20994{
1409cd0b
FXC
20995 return 0;
20996}
db9f46a9 20997
1409cd0b 20998_ACEOF
5213506e 20999if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21000 gcc_cv_math_func_cpow=yes
1409cd0b 21001else
db9f46a9 21002 gcc_cv_math_func_cpow=no
1409cd0b 21003fi
5213506e
RW
21004rm -f core conftest.err conftest.$ac_objext \
21005 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21006fi
db9f46a9
TG
21007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21008$as_echo "$gcc_cv_math_func_cpow" >&6; }
21009 if test $gcc_cv_math_func_cpow = yes; then
f1cdfa01 21010
f38a14ca
TG
21011cat >>confdefs.h <<_ACEOF
21012#define HAVE_CPOW 1
21013_ACEOF
db9f46a9
TG
21014
21015 fi
1409cd0b 21016
1409cd0b 21017
1409cd0b 21018
db9f46a9
TG
21019
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21021$as_echo_n "checking for cpowl... " >&6; }
21022if test "${gcc_cv_math_func_cpowl+set}" = set; then :
5213506e 21023 $as_echo_n "(cached) " >&6
1409cd0b 21024else
db9f46a9 21025 if test x$gcc_no_link = xyes; then
5213506e 21026 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21027fi
5213506e 21028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21029/* end confdefs.h. */
21030
db9f46a9
TG
21031#ifdef HAVE_COMPLEX_H
21032#include <complex.h>
1409cd0b 21033#endif
db9f46a9
TG
21034#ifdef HAVE_MATH_H
21035#include <math.h>
21036#endif
21037
21038int (*ptr)() = (int (*)())cpowl;
21039
1409cd0b
FXC
21040int
21041main ()
21042{
1409cd0b
FXC
21043 return 0;
21044}
db9f46a9 21045
1409cd0b 21046_ACEOF
5213506e 21047if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21048 gcc_cv_math_func_cpowl=yes
1409cd0b 21049else
db9f46a9 21050 gcc_cv_math_func_cpowl=no
1409cd0b 21051fi
5213506e
RW
21052rm -f core conftest.err conftest.$ac_objext \
21053 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21054fi
db9f46a9
TG
21055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21056$as_echo "$gcc_cv_math_func_cpowl" >&6; }
21057 if test $gcc_cv_math_func_cpowl = yes; then
f1cdfa01 21058
f38a14ca
TG
21059cat >>confdefs.h <<_ACEOF
21060#define HAVE_CPOWL 1
21061_ACEOF
1409cd0b 21062
db9f46a9 21063 fi
1409cd0b 21064
1409cd0b 21065
db9f46a9
TG
21066
21067
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21069$as_echo_n "checking for roundf... " >&6; }
21070if test "${gcc_cv_math_func_roundf+set}" = set; then :
5213506e 21071 $as_echo_n "(cached) " >&6
1409cd0b 21072else
db9f46a9 21073 if test x$gcc_no_link = xyes; then
5213506e 21074 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21075fi
5213506e 21076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21077/* end confdefs.h. */
21078
db9f46a9
TG
21079#ifdef HAVE_COMPLEX_H
21080#include <complex.h>
21081#endif
21082#ifdef HAVE_MATH_H
21083#include <math.h>
1409cd0b 21084#endif
db9f46a9
TG
21085
21086int (*ptr)() = (int (*)())roundf;
21087
1409cd0b
FXC
21088int
21089main ()
21090{
1409cd0b
FXC
21091 return 0;
21092}
db9f46a9 21093
1409cd0b 21094_ACEOF
5213506e 21095if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21096 gcc_cv_math_func_roundf=yes
1409cd0b 21097else
db9f46a9 21098 gcc_cv_math_func_roundf=no
1409cd0b 21099fi
5213506e
RW
21100rm -f core conftest.err conftest.$ac_objext \
21101 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21102fi
db9f46a9
TG
21103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21104$as_echo "$gcc_cv_math_func_roundf" >&6; }
21105 if test $gcc_cv_math_func_roundf = yes; then
f1cdfa01 21106
f38a14ca
TG
21107cat >>confdefs.h <<_ACEOF
21108#define HAVE_ROUNDF 1
21109_ACEOF
db9f46a9
TG
21110
21111 fi
1409cd0b 21112
1409cd0b 21113
1409cd0b 21114
db9f46a9
TG
21115
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21117$as_echo_n "checking for round... " >&6; }
21118if test "${gcc_cv_math_func_round+set}" = set; then :
5213506e 21119 $as_echo_n "(cached) " >&6
1409cd0b 21120else
db9f46a9 21121 if test x$gcc_no_link = xyes; then
5213506e 21122 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21123fi
5213506e 21124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21125/* end confdefs.h. */
21126
db9f46a9
TG
21127#ifdef HAVE_COMPLEX_H
21128#include <complex.h>
1409cd0b 21129#endif
db9f46a9
TG
21130#ifdef HAVE_MATH_H
21131#include <math.h>
21132#endif
21133
21134int (*ptr)() = (int (*)())round;
21135
1409cd0b
FXC
21136int
21137main ()
21138{
1409cd0b
FXC
21139 return 0;
21140}
db9f46a9 21141
1409cd0b 21142_ACEOF
5213506e 21143if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21144 gcc_cv_math_func_round=yes
1409cd0b 21145else
db9f46a9 21146 gcc_cv_math_func_round=no
1409cd0b 21147fi
5213506e
RW
21148rm -f core conftest.err conftest.$ac_objext \
21149 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21150fi
db9f46a9
TG
21151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21152$as_echo "$gcc_cv_math_func_round" >&6; }
21153 if test $gcc_cv_math_func_round = yes; then
f1cdfa01 21154
f38a14ca
TG
21155cat >>confdefs.h <<_ACEOF
21156#define HAVE_ROUND 1
21157_ACEOF
db9f46a9
TG
21158
21159 fi
21160
1409cd0b 21161
1409cd0b 21162
1409cd0b 21163
db9f46a9
TG
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21165$as_echo_n "checking for roundl... " >&6; }
21166if test "${gcc_cv_math_func_roundl+set}" = set; then :
5213506e 21167 $as_echo_n "(cached) " >&6
94f548c2 21168else
db9f46a9 21169 if test x$gcc_no_link = xyes; then
5213506e 21170 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21171fi
5213506e 21172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21173/* end confdefs.h. */
21174
db9f46a9
TG
21175#ifdef HAVE_COMPLEX_H
21176#include <complex.h>
21177#endif
21178#ifdef HAVE_MATH_H
21179#include <math.h>
94f548c2 21180#endif
db9f46a9
TG
21181
21182int (*ptr)() = (int (*)())roundl;
21183
94f548c2
FXC
21184int
21185main ()
21186{
94f548c2
FXC
21187 return 0;
21188}
db9f46a9 21189
94f548c2 21190_ACEOF
5213506e 21191if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21192 gcc_cv_math_func_roundl=yes
94f548c2 21193else
db9f46a9 21194 gcc_cv_math_func_roundl=no
94f548c2 21195fi
5213506e
RW
21196rm -f core conftest.err conftest.$ac_objext \
21197 conftest$ac_exeext conftest.$ac_ext
94f548c2 21198fi
db9f46a9
TG
21199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21200$as_echo "$gcc_cv_math_func_roundl" >&6; }
21201 if test $gcc_cv_math_func_roundl = yes; then
f1cdfa01 21202
f38a14ca
TG
21203cat >>confdefs.h <<_ACEOF
21204#define HAVE_ROUNDL 1
21205_ACEOF
db9f46a9
TG
21206
21207 fi
94f548c2 21208
94f548c2 21209
94f548c2 21210
db9f46a9
TG
21211
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21213$as_echo_n "checking for lroundf... " >&6; }
21214if test "${gcc_cv_math_func_lroundf+set}" = set; then :
5213506e 21215 $as_echo_n "(cached) " >&6
94f548c2 21216else
db9f46a9 21217 if test x$gcc_no_link = xyes; then
5213506e 21218 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21219fi
5213506e 21220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21221/* end confdefs.h. */
21222
db9f46a9
TG
21223#ifdef HAVE_COMPLEX_H
21224#include <complex.h>
94f548c2 21225#endif
db9f46a9
TG
21226#ifdef HAVE_MATH_H
21227#include <math.h>
21228#endif
21229
21230int (*ptr)() = (int (*)())lroundf;
21231
94f548c2
FXC
21232int
21233main ()
21234{
94f548c2
FXC
21235 return 0;
21236}
db9f46a9 21237
94f548c2 21238_ACEOF
5213506e 21239if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21240 gcc_cv_math_func_lroundf=yes
94f548c2 21241else
db9f46a9 21242 gcc_cv_math_func_lroundf=no
94f548c2 21243fi
5213506e
RW
21244rm -f core conftest.err conftest.$ac_objext \
21245 conftest$ac_exeext conftest.$ac_ext
94f548c2 21246fi
db9f46a9
TG
21247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21248$as_echo "$gcc_cv_math_func_lroundf" >&6; }
21249 if test $gcc_cv_math_func_lroundf = yes; then
f1cdfa01 21250
f38a14ca
TG
21251cat >>confdefs.h <<_ACEOF
21252#define HAVE_LROUNDF 1
21253_ACEOF
94f548c2 21254
db9f46a9 21255 fi
94f548c2 21256
94f548c2 21257
db9f46a9
TG
21258
21259
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21261$as_echo_n "checking for lround... " >&6; }
21262if test "${gcc_cv_math_func_lround+set}" = set; then :
5213506e 21263 $as_echo_n "(cached) " >&6
94f548c2 21264else
db9f46a9 21265 if test x$gcc_no_link = xyes; then
5213506e 21266 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21267fi
5213506e 21268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21269/* end confdefs.h. */
21270
db9f46a9
TG
21271#ifdef HAVE_COMPLEX_H
21272#include <complex.h>
21273#endif
21274#ifdef HAVE_MATH_H
21275#include <math.h>
94f548c2 21276#endif
db9f46a9
TG
21277
21278int (*ptr)() = (int (*)())lround;
21279
94f548c2
FXC
21280int
21281main ()
21282{
94f548c2
FXC
21283 return 0;
21284}
db9f46a9 21285
94f548c2 21286_ACEOF
5213506e 21287if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21288 gcc_cv_math_func_lround=yes
94f548c2 21289else
db9f46a9 21290 gcc_cv_math_func_lround=no
94f548c2 21291fi
5213506e
RW
21292rm -f core conftest.err conftest.$ac_objext \
21293 conftest$ac_exeext conftest.$ac_ext
94f548c2 21294fi
db9f46a9
TG
21295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21296$as_echo "$gcc_cv_math_func_lround" >&6; }
21297 if test $gcc_cv_math_func_lround = yes; then
f1cdfa01 21298
f38a14ca
TG
21299cat >>confdefs.h <<_ACEOF
21300#define HAVE_LROUND 1
21301_ACEOF
db9f46a9
TG
21302
21303 fi
21304
94f548c2 21305
94f548c2 21306
94f548c2 21307
db9f46a9
TG
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21309$as_echo_n "checking for lroundl... " >&6; }
21310if test "${gcc_cv_math_func_lroundl+set}" = set; then :
5213506e 21311 $as_echo_n "(cached) " >&6
94f548c2 21312else
db9f46a9 21313 if test x$gcc_no_link = xyes; then
5213506e 21314 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21315fi
5213506e 21316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21317/* end confdefs.h. */
21318
db9f46a9
TG
21319#ifdef HAVE_COMPLEX_H
21320#include <complex.h>
21321#endif
21322#ifdef HAVE_MATH_H
21323#include <math.h>
94f548c2 21324#endif
db9f46a9
TG
21325
21326int (*ptr)() = (int (*)())lroundl;
21327
94f548c2
FXC
21328int
21329main ()
21330{
94f548c2
FXC
21331 return 0;
21332}
db9f46a9 21333
94f548c2 21334_ACEOF
5213506e 21335if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21336 gcc_cv_math_func_lroundl=yes
94f548c2 21337else
db9f46a9 21338 gcc_cv_math_func_lroundl=no
94f548c2 21339fi
5213506e
RW
21340rm -f core conftest.err conftest.$ac_objext \
21341 conftest$ac_exeext conftest.$ac_ext
94f548c2 21342fi
db9f46a9
TG
21343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21344$as_echo "$gcc_cv_math_func_lroundl" >&6; }
21345 if test $gcc_cv_math_func_lroundl = yes; then
f1cdfa01 21346
f38a14ca
TG
21347cat >>confdefs.h <<_ACEOF
21348#define HAVE_LROUNDL 1
21349_ACEOF
94f548c2 21350
db9f46a9 21351 fi
94f548c2 21352
94f548c2 21353
db9f46a9
TG
21354
21355
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21357$as_echo_n "checking for llroundf... " >&6; }
21358if test "${gcc_cv_math_func_llroundf+set}" = set; then :
5213506e 21359 $as_echo_n "(cached) " >&6
94f548c2 21360else
db9f46a9 21361 if test x$gcc_no_link = xyes; then
5213506e 21362 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21363fi
5213506e 21364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21365/* end confdefs.h. */
21366
db9f46a9
TG
21367#ifdef HAVE_COMPLEX_H
21368#include <complex.h>
94f548c2 21369#endif
db9f46a9
TG
21370#ifdef HAVE_MATH_H
21371#include <math.h>
21372#endif
21373
21374int (*ptr)() = (int (*)())llroundf;
21375
94f548c2
FXC
21376int
21377main ()
21378{
94f548c2
FXC
21379 return 0;
21380}
db9f46a9 21381
94f548c2 21382_ACEOF
5213506e 21383if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21384 gcc_cv_math_func_llroundf=yes
94f548c2 21385else
db9f46a9 21386 gcc_cv_math_func_llroundf=no
94f548c2 21387fi
5213506e
RW
21388rm -f core conftest.err conftest.$ac_objext \
21389 conftest$ac_exeext conftest.$ac_ext
94f548c2 21390fi
db9f46a9
TG
21391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21392$as_echo "$gcc_cv_math_func_llroundf" >&6; }
21393 if test $gcc_cv_math_func_llroundf = yes; then
f1cdfa01 21394
f38a14ca
TG
21395cat >>confdefs.h <<_ACEOF
21396#define HAVE_LLROUNDF 1
21397_ACEOF
94f548c2 21398
db9f46a9 21399 fi
94f548c2 21400
94f548c2 21401
db9f46a9
TG
21402
21403
21404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21405$as_echo_n "checking for llround... " >&6; }
21406if test "${gcc_cv_math_func_llround+set}" = set; then :
5213506e 21407 $as_echo_n "(cached) " >&6
94f548c2 21408else
db9f46a9 21409 if test x$gcc_no_link = xyes; then
5213506e 21410 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21411fi
5213506e 21412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21413/* end confdefs.h. */
21414
db9f46a9
TG
21415#ifdef HAVE_COMPLEX_H
21416#include <complex.h>
21417#endif
21418#ifdef HAVE_MATH_H
21419#include <math.h>
94f548c2 21420#endif
db9f46a9
TG
21421
21422int (*ptr)() = (int (*)())llround;
21423
94f548c2
FXC
21424int
21425main ()
21426{
94f548c2
FXC
21427 return 0;
21428}
db9f46a9 21429
94f548c2 21430_ACEOF
5213506e 21431if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21432 gcc_cv_math_func_llround=yes
94f548c2 21433else
db9f46a9 21434 gcc_cv_math_func_llround=no
94f548c2 21435fi
5213506e
RW
21436rm -f core conftest.err conftest.$ac_objext \
21437 conftest$ac_exeext conftest.$ac_ext
94f548c2 21438fi
db9f46a9
TG
21439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21440$as_echo "$gcc_cv_math_func_llround" >&6; }
21441 if test $gcc_cv_math_func_llround = yes; then
f1cdfa01 21442
f38a14ca
TG
21443cat >>confdefs.h <<_ACEOF
21444#define HAVE_LLROUND 1
21445_ACEOF
db9f46a9
TG
21446
21447 fi
21448
94f548c2 21449
94f548c2 21450
94f548c2 21451
db9f46a9
TG
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21453$as_echo_n "checking for llroundl... " >&6; }
21454if test "${gcc_cv_math_func_llroundl+set}" = set; then :
5213506e 21455 $as_echo_n "(cached) " >&6
1409cd0b 21456else
db9f46a9 21457 if test x$gcc_no_link = xyes; then
5213506e 21458 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21459fi
5213506e 21460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21461/* end confdefs.h. */
21462
db9f46a9
TG
21463#ifdef HAVE_COMPLEX_H
21464#include <complex.h>
21465#endif
21466#ifdef HAVE_MATH_H
21467#include <math.h>
1409cd0b 21468#endif
db9f46a9
TG
21469
21470int (*ptr)() = (int (*)())llroundl;
21471
1409cd0b
FXC
21472int
21473main ()
21474{
1409cd0b
FXC
21475 return 0;
21476}
db9f46a9 21477
1409cd0b 21478_ACEOF
5213506e 21479if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21480 gcc_cv_math_func_llroundl=yes
1409cd0b 21481else
db9f46a9 21482 gcc_cv_math_func_llroundl=no
1409cd0b 21483fi
5213506e
RW
21484rm -f core conftest.err conftest.$ac_objext \
21485 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21486fi
db9f46a9
TG
21487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21488$as_echo "$gcc_cv_math_func_llroundl" >&6; }
21489 if test $gcc_cv_math_func_llroundl = yes; then
f1cdfa01 21490
f38a14ca
TG
21491cat >>confdefs.h <<_ACEOF
21492#define HAVE_LLROUNDL 1
21493_ACEOF
1409cd0b 21494
db9f46a9 21495 fi
1409cd0b 21496
1409cd0b 21497
db9f46a9
TG
21498
21499
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21501$as_echo_n "checking for scalbnf... " >&6; }
21502if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
5213506e 21503 $as_echo_n "(cached) " >&6
1409cd0b 21504else
db9f46a9 21505 if test x$gcc_no_link = xyes; then
5213506e 21506 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21507fi
5213506e 21508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21509/* end confdefs.h. */
21510
db9f46a9
TG
21511#ifdef HAVE_COMPLEX_H
21512#include <complex.h>
1409cd0b 21513#endif
db9f46a9
TG
21514#ifdef HAVE_MATH_H
21515#include <math.h>
21516#endif
21517
21518int (*ptr)() = (int (*)())scalbnf;
21519
1409cd0b
FXC
21520int
21521main ()
21522{
1409cd0b
FXC
21523 return 0;
21524}
db9f46a9 21525
1409cd0b 21526_ACEOF
5213506e 21527if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21528 gcc_cv_math_func_scalbnf=yes
1409cd0b 21529else
db9f46a9 21530 gcc_cv_math_func_scalbnf=no
1409cd0b 21531fi
5213506e
RW
21532rm -f core conftest.err conftest.$ac_objext \
21533 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21534fi
db9f46a9
TG
21535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21536$as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21537 if test $gcc_cv_math_func_scalbnf = yes; then
f1cdfa01 21538
f38a14ca
TG
21539cat >>confdefs.h <<_ACEOF
21540#define HAVE_SCALBNF 1
21541_ACEOF
1409cd0b 21542
db9f46a9 21543 fi
1409cd0b 21544
1409cd0b 21545
db9f46a9
TG
21546
21547
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21549$as_echo_n "checking for scalbn... " >&6; }
21550if test "${gcc_cv_math_func_scalbn+set}" = set; then :
5213506e 21551 $as_echo_n "(cached) " >&6
1409cd0b 21552else
db9f46a9 21553 if test x$gcc_no_link = xyes; then
5213506e 21554 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21555fi
5213506e 21556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21557/* end confdefs.h. */
21558
db9f46a9
TG
21559#ifdef HAVE_COMPLEX_H
21560#include <complex.h>
21561#endif
21562#ifdef HAVE_MATH_H
21563#include <math.h>
1409cd0b 21564#endif
db9f46a9
TG
21565
21566int (*ptr)() = (int (*)())scalbn;
21567
1409cd0b
FXC
21568int
21569main ()
21570{
1409cd0b
FXC
21571 return 0;
21572}
db9f46a9 21573
1409cd0b 21574_ACEOF
5213506e 21575if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21576 gcc_cv_math_func_scalbn=yes
1409cd0b 21577else
db9f46a9 21578 gcc_cv_math_func_scalbn=no
1409cd0b 21579fi
5213506e
RW
21580rm -f core conftest.err conftest.$ac_objext \
21581 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21582fi
db9f46a9
TG
21583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21584$as_echo "$gcc_cv_math_func_scalbn" >&6; }
21585 if test $gcc_cv_math_func_scalbn = yes; then
f1cdfa01 21586
f38a14ca
TG
21587cat >>confdefs.h <<_ACEOF
21588#define HAVE_SCALBN 1
21589_ACEOF
db9f46a9
TG
21590
21591 fi
21592
1409cd0b 21593
1409cd0b 21594
1409cd0b 21595
db9f46a9
TG
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21597$as_echo_n "checking for scalbnl... " >&6; }
21598if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
5213506e 21599 $as_echo_n "(cached) " >&6
1409cd0b 21600else
db9f46a9 21601 if test x$gcc_no_link = xyes; then
5213506e 21602 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21603fi
5213506e 21604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21605/* end confdefs.h. */
21606
db9f46a9
TG
21607#ifdef HAVE_COMPLEX_H
21608#include <complex.h>
21609#endif
21610#ifdef HAVE_MATH_H
21611#include <math.h>
1409cd0b 21612#endif
db9f46a9
TG
21613
21614int (*ptr)() = (int (*)())scalbnl;
21615
1409cd0b
FXC
21616int
21617main ()
21618{
1409cd0b
FXC
21619 return 0;
21620}
db9f46a9 21621
1409cd0b 21622_ACEOF
5213506e 21623if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21624 gcc_cv_math_func_scalbnl=yes
1409cd0b 21625else
db9f46a9 21626 gcc_cv_math_func_scalbnl=no
1409cd0b 21627fi
5213506e
RW
21628rm -f core conftest.err conftest.$ac_objext \
21629 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21630fi
db9f46a9
TG
21631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21632$as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21633 if test $gcc_cv_math_func_scalbnl = yes; then
f1cdfa01 21634
f38a14ca
TG
21635cat >>confdefs.h <<_ACEOF
21636#define HAVE_SCALBNL 1
21637_ACEOF
1409cd0b 21638
db9f46a9 21639 fi
1409cd0b 21640
1409cd0b 21641
db9f46a9
TG
21642
21643
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21645$as_echo_n "checking for sinf... " >&6; }
21646if test "${gcc_cv_math_func_sinf+set}" = set; then :
5213506e 21647 $as_echo_n "(cached) " >&6
1409cd0b 21648else
db9f46a9 21649 if test x$gcc_no_link = xyes; then
5213506e 21650 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21651fi
5213506e 21652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21653/* end confdefs.h. */
21654
db9f46a9
TG
21655#ifdef HAVE_COMPLEX_H
21656#include <complex.h>
1409cd0b 21657#endif
db9f46a9
TG
21658#ifdef HAVE_MATH_H
21659#include <math.h>
21660#endif
21661
21662int (*ptr)() = (int (*)())sinf;
21663
1409cd0b
FXC
21664int
21665main ()
21666{
1409cd0b
FXC
21667 return 0;
21668}
db9f46a9 21669
1409cd0b 21670_ACEOF
5213506e 21671if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21672 gcc_cv_math_func_sinf=yes
1409cd0b 21673else
db9f46a9 21674 gcc_cv_math_func_sinf=no
1409cd0b 21675fi
5213506e
RW
21676rm -f core conftest.err conftest.$ac_objext \
21677 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21678fi
db9f46a9
TG
21679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21680$as_echo "$gcc_cv_math_func_sinf" >&6; }
21681 if test $gcc_cv_math_func_sinf = yes; then
f1cdfa01 21682
f38a14ca
TG
21683cat >>confdefs.h <<_ACEOF
21684#define HAVE_SINF 1
21685_ACEOF
1409cd0b 21686
db9f46a9 21687 fi
1409cd0b 21688
1409cd0b 21689
db9f46a9
TG
21690
21691
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21693$as_echo_n "checking for sin... " >&6; }
21694if test "${gcc_cv_math_func_sin+set}" = set; then :
5213506e 21695 $as_echo_n "(cached) " >&6
1409cd0b 21696else
db9f46a9 21697 if test x$gcc_no_link = xyes; then
5213506e 21698 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21699fi
5213506e 21700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21701/* end confdefs.h. */
21702
db9f46a9
TG
21703#ifdef HAVE_COMPLEX_H
21704#include <complex.h>
1409cd0b 21705#endif
db9f46a9
TG
21706#ifdef HAVE_MATH_H
21707#include <math.h>
21708#endif
21709
21710int (*ptr)() = (int (*)())sin;
21711
1409cd0b
FXC
21712int
21713main ()
21714{
1409cd0b
FXC
21715 return 0;
21716}
db9f46a9 21717
1409cd0b 21718_ACEOF
5213506e 21719if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21720 gcc_cv_math_func_sin=yes
1409cd0b 21721else
db9f46a9 21722 gcc_cv_math_func_sin=no
1409cd0b 21723fi
5213506e
RW
21724rm -f core conftest.err conftest.$ac_objext \
21725 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21726fi
db9f46a9
TG
21727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21728$as_echo "$gcc_cv_math_func_sin" >&6; }
21729 if test $gcc_cv_math_func_sin = yes; then
f1cdfa01 21730
f38a14ca
TG
21731cat >>confdefs.h <<_ACEOF
21732#define HAVE_SIN 1
21733_ACEOF
db9f46a9
TG
21734
21735 fi
21736
1409cd0b 21737
1409cd0b 21738
1409cd0b 21739
db9f46a9
TG
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21741$as_echo_n "checking for sinl... " >&6; }
21742if test "${gcc_cv_math_func_sinl+set}" = set; then :
5213506e 21743 $as_echo_n "(cached) " >&6
1409cd0b 21744else
db9f46a9 21745 if test x$gcc_no_link = xyes; then
5213506e 21746 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21747fi
5213506e 21748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21749/* end confdefs.h. */
21750
db9f46a9
TG
21751#ifdef HAVE_COMPLEX_H
21752#include <complex.h>
1409cd0b 21753#endif
db9f46a9
TG
21754#ifdef HAVE_MATH_H
21755#include <math.h>
21756#endif
21757
21758int (*ptr)() = (int (*)())sinl;
21759
1409cd0b
FXC
21760int
21761main ()
21762{
5213506e
RW
21763 return 0;
21764}
db9f46a9 21765
5213506e
RW
21766_ACEOF
21767if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21768 gcc_cv_math_func_sinl=yes
1409cd0b 21769else
db9f46a9 21770 gcc_cv_math_func_sinl=no
1409cd0b 21771fi
5213506e
RW
21772rm -f core conftest.err conftest.$ac_objext \
21773 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21774fi
db9f46a9
TG
21775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21776$as_echo "$gcc_cv_math_func_sinl" >&6; }
21777 if test $gcc_cv_math_func_sinl = yes; then
f1cdfa01 21778
f38a14ca
TG
21779cat >>confdefs.h <<_ACEOF
21780#define HAVE_SINL 1
21781_ACEOF
db9f46a9
TG
21782
21783 fi
1409cd0b 21784
1409cd0b 21785
1409cd0b 21786
db9f46a9
TG
21787
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21789$as_echo_n "checking for csinf... " >&6; }
21790if test "${gcc_cv_math_func_csinf+set}" = set; then :
5213506e 21791 $as_echo_n "(cached) " >&6
1409cd0b 21792else
db9f46a9 21793 if test x$gcc_no_link = xyes; then
5213506e 21794 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21795fi
5213506e 21796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21797/* end confdefs.h. */
21798
db9f46a9
TG
21799#ifdef HAVE_COMPLEX_H
21800#include <complex.h>
21801#endif
21802#ifdef HAVE_MATH_H
21803#include <math.h>
1409cd0b 21804#endif
db9f46a9
TG
21805
21806int (*ptr)() = (int (*)())csinf;
21807
1409cd0b
FXC
21808int
21809main ()
21810{
1409cd0b
FXC
21811 return 0;
21812}
db9f46a9 21813
1409cd0b 21814_ACEOF
5213506e 21815if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21816 gcc_cv_math_func_csinf=yes
1409cd0b 21817else
db9f46a9 21818 gcc_cv_math_func_csinf=no
1409cd0b 21819fi
5213506e
RW
21820rm -f core conftest.err conftest.$ac_objext \
21821 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21822fi
db9f46a9
TG
21823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21824$as_echo "$gcc_cv_math_func_csinf" >&6; }
21825 if test $gcc_cv_math_func_csinf = yes; then
f1cdfa01 21826
f38a14ca
TG
21827cat >>confdefs.h <<_ACEOF
21828#define HAVE_CSINF 1
21829_ACEOF
1409cd0b 21830
db9f46a9 21831 fi
1409cd0b 21832
1409cd0b 21833
db9f46a9
TG
21834
21835
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21837$as_echo_n "checking for csin... " >&6; }
21838if test "${gcc_cv_math_func_csin+set}" = set; then :
5213506e 21839 $as_echo_n "(cached) " >&6
1409cd0b 21840else
db9f46a9 21841 if test x$gcc_no_link = xyes; then
5213506e 21842 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21843fi
5213506e 21844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21845/* end confdefs.h. */
21846
db9f46a9
TG
21847#ifdef HAVE_COMPLEX_H
21848#include <complex.h>
1409cd0b 21849#endif
db9f46a9
TG
21850#ifdef HAVE_MATH_H
21851#include <math.h>
21852#endif
21853
21854int (*ptr)() = (int (*)())csin;
21855
1409cd0b
FXC
21856int
21857main ()
21858{
1409cd0b
FXC
21859 return 0;
21860}
db9f46a9 21861
1409cd0b 21862_ACEOF
5213506e 21863if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21864 gcc_cv_math_func_csin=yes
1409cd0b 21865else
db9f46a9 21866 gcc_cv_math_func_csin=no
1409cd0b 21867fi
5213506e
RW
21868rm -f core conftest.err conftest.$ac_objext \
21869 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21870fi
db9f46a9
TG
21871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21872$as_echo "$gcc_cv_math_func_csin" >&6; }
21873 if test $gcc_cv_math_func_csin = yes; then
f1cdfa01 21874
f38a14ca
TG
21875cat >>confdefs.h <<_ACEOF
21876#define HAVE_CSIN 1
21877_ACEOF
db9f46a9
TG
21878
21879 fi
21880
1409cd0b 21881
1409cd0b 21882
1409cd0b 21883
db9f46a9
TG
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21885$as_echo_n "checking for csinl... " >&6; }
21886if test "${gcc_cv_math_func_csinl+set}" = set; then :
5213506e 21887 $as_echo_n "(cached) " >&6
1409cd0b 21888else
db9f46a9 21889 if test x$gcc_no_link = xyes; then
5213506e 21890 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21891fi
5213506e 21892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21893/* end confdefs.h. */
21894
db9f46a9
TG
21895#ifdef HAVE_COMPLEX_H
21896#include <complex.h>
1409cd0b 21897#endif
db9f46a9
TG
21898#ifdef HAVE_MATH_H
21899#include <math.h>
21900#endif
21901
21902int (*ptr)() = (int (*)())csinl;
21903
1409cd0b
FXC
21904int
21905main ()
21906{
1409cd0b
FXC
21907 return 0;
21908}
db9f46a9 21909
1409cd0b 21910_ACEOF
5213506e 21911if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21912 gcc_cv_math_func_csinl=yes
1409cd0b 21913else
db9f46a9 21914 gcc_cv_math_func_csinl=no
1409cd0b 21915fi
5213506e
RW
21916rm -f core conftest.err conftest.$ac_objext \
21917 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21918fi
db9f46a9
TG
21919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21920$as_echo "$gcc_cv_math_func_csinl" >&6; }
21921 if test $gcc_cv_math_func_csinl = yes; then
f1cdfa01 21922
f38a14ca
TG
21923cat >>confdefs.h <<_ACEOF
21924#define HAVE_CSINL 1
21925_ACEOF
db9f46a9
TG
21926
21927 fi
1409cd0b 21928
1409cd0b 21929
1409cd0b 21930
db9f46a9
TG
21931
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21933$as_echo_n "checking for sinhf... " >&6; }
21934if test "${gcc_cv_math_func_sinhf+set}" = set; then :
5213506e 21935 $as_echo_n "(cached) " >&6
1409cd0b 21936else
db9f46a9 21937 if test x$gcc_no_link = xyes; then
5213506e 21938 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21939fi
5213506e 21940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21941/* end confdefs.h. */
21942
db9f46a9
TG
21943#ifdef HAVE_COMPLEX_H
21944#include <complex.h>
21945#endif
21946#ifdef HAVE_MATH_H
21947#include <math.h>
1409cd0b 21948#endif
db9f46a9
TG
21949
21950int (*ptr)() = (int (*)())sinhf;
21951
1409cd0b
FXC
21952int
21953main ()
21954{
1409cd0b
FXC
21955 return 0;
21956}
db9f46a9 21957
1409cd0b 21958_ACEOF
5213506e 21959if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21960 gcc_cv_math_func_sinhf=yes
1409cd0b 21961else
db9f46a9 21962 gcc_cv_math_func_sinhf=no
1409cd0b 21963fi
5213506e
RW
21964rm -f core conftest.err conftest.$ac_objext \
21965 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21966fi
db9f46a9
TG
21967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21968$as_echo "$gcc_cv_math_func_sinhf" >&6; }
21969 if test $gcc_cv_math_func_sinhf = yes; then
f1cdfa01 21970
f38a14ca
TG
21971cat >>confdefs.h <<_ACEOF
21972#define HAVE_SINHF 1
21973_ACEOF
1409cd0b 21974
db9f46a9 21975 fi
1409cd0b 21976
1409cd0b 21977
db9f46a9
TG
21978
21979
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21981$as_echo_n "checking for sinh... " >&6; }
21982if test "${gcc_cv_math_func_sinh+set}" = set; then :
5213506e 21983 $as_echo_n "(cached) " >&6
1409cd0b 21984else
db9f46a9 21985 if test x$gcc_no_link = xyes; then
5213506e 21986 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21987fi
5213506e 21988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21989/* end confdefs.h. */
21990
db9f46a9
TG
21991#ifdef HAVE_COMPLEX_H
21992#include <complex.h>
1409cd0b 21993#endif
db9f46a9
TG
21994#ifdef HAVE_MATH_H
21995#include <math.h>
21996#endif
21997
21998int (*ptr)() = (int (*)())sinh;
21999
1409cd0b
FXC
22000int
22001main ()
22002{
1409cd0b
FXC
22003 return 0;
22004}
db9f46a9 22005
1409cd0b 22006_ACEOF
5213506e 22007if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22008 gcc_cv_math_func_sinh=yes
1409cd0b 22009else
db9f46a9 22010 gcc_cv_math_func_sinh=no
1409cd0b 22011fi
5213506e
RW
22012rm -f core conftest.err conftest.$ac_objext \
22013 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22014fi
db9f46a9
TG
22015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22016$as_echo "$gcc_cv_math_func_sinh" >&6; }
22017 if test $gcc_cv_math_func_sinh = yes; then
f1cdfa01 22018
f38a14ca
TG
22019cat >>confdefs.h <<_ACEOF
22020#define HAVE_SINH 1
22021_ACEOF
db9f46a9
TG
22022
22023 fi
22024
1409cd0b 22025
1409cd0b 22026
1409cd0b 22027
db9f46a9
TG
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22029$as_echo_n "checking for sinhl... " >&6; }
22030if test "${gcc_cv_math_func_sinhl+set}" = set; then :
5213506e 22031 $as_echo_n "(cached) " >&6
1409cd0b 22032else
db9f46a9 22033 if test x$gcc_no_link = xyes; then
5213506e 22034 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22035fi
5213506e 22036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22037/* end confdefs.h. */
22038
db9f46a9
TG
22039#ifdef HAVE_COMPLEX_H
22040#include <complex.h>
1409cd0b 22041#endif
db9f46a9
TG
22042#ifdef HAVE_MATH_H
22043#include <math.h>
22044#endif
22045
22046int (*ptr)() = (int (*)())sinhl;
22047
1409cd0b
FXC
22048int
22049main ()
22050{
1409cd0b
FXC
22051 return 0;
22052}
db9f46a9 22053
1409cd0b 22054_ACEOF
5213506e 22055if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22056 gcc_cv_math_func_sinhl=yes
1409cd0b 22057else
db9f46a9 22058 gcc_cv_math_func_sinhl=no
1409cd0b 22059fi
5213506e
RW
22060rm -f core conftest.err conftest.$ac_objext \
22061 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22062fi
db9f46a9
TG
22063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22064$as_echo "$gcc_cv_math_func_sinhl" >&6; }
22065 if test $gcc_cv_math_func_sinhl = yes; then
f1cdfa01 22066
f38a14ca
TG
22067cat >>confdefs.h <<_ACEOF
22068#define HAVE_SINHL 1
22069_ACEOF
db9f46a9
TG
22070
22071 fi
1409cd0b 22072
1409cd0b 22073
1409cd0b 22074
db9f46a9
TG
22075
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22077$as_echo_n "checking for csinhf... " >&6; }
22078if test "${gcc_cv_math_func_csinhf+set}" = set; then :
5213506e 22079 $as_echo_n "(cached) " >&6
1409cd0b 22080else
db9f46a9 22081 if test x$gcc_no_link = xyes; then
5213506e 22082 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22083fi
5213506e 22084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22085/* end confdefs.h. */
22086
db9f46a9
TG
22087#ifdef HAVE_COMPLEX_H
22088#include <complex.h>
22089#endif
22090#ifdef HAVE_MATH_H
22091#include <math.h>
1409cd0b 22092#endif
db9f46a9
TG
22093
22094int (*ptr)() = (int (*)())csinhf;
22095
1409cd0b
FXC
22096int
22097main ()
22098{
1409cd0b
FXC
22099 return 0;
22100}
db9f46a9 22101
1409cd0b 22102_ACEOF
5213506e 22103if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22104 gcc_cv_math_func_csinhf=yes
1409cd0b 22105else
db9f46a9 22106 gcc_cv_math_func_csinhf=no
1409cd0b 22107fi
5213506e
RW
22108rm -f core conftest.err conftest.$ac_objext \
22109 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22110fi
db9f46a9
TG
22111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22112$as_echo "$gcc_cv_math_func_csinhf" >&6; }
22113 if test $gcc_cv_math_func_csinhf = yes; then
f1cdfa01 22114
f38a14ca
TG
22115cat >>confdefs.h <<_ACEOF
22116#define HAVE_CSINHF 1
22117_ACEOF
1409cd0b 22118
db9f46a9 22119 fi
1409cd0b 22120
1409cd0b 22121
db9f46a9
TG
22122
22123
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22125$as_echo_n "checking for csinh... " >&6; }
22126if test "${gcc_cv_math_func_csinh+set}" = set; then :
5213506e 22127 $as_echo_n "(cached) " >&6
1409cd0b 22128else
db9f46a9 22129 if test x$gcc_no_link = xyes; then
5213506e 22130 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22131fi
5213506e 22132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22133/* end confdefs.h. */
22134
db9f46a9
TG
22135#ifdef HAVE_COMPLEX_H
22136#include <complex.h>
1409cd0b 22137#endif
db9f46a9
TG
22138#ifdef HAVE_MATH_H
22139#include <math.h>
22140#endif
22141
22142int (*ptr)() = (int (*)())csinh;
22143
1409cd0b
FXC
22144int
22145main ()
22146{
1409cd0b
FXC
22147 return 0;
22148}
db9f46a9 22149
1409cd0b 22150_ACEOF
5213506e 22151if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22152 gcc_cv_math_func_csinh=yes
1409cd0b 22153else
db9f46a9 22154 gcc_cv_math_func_csinh=no
1409cd0b 22155fi
5213506e
RW
22156rm -f core conftest.err conftest.$ac_objext \
22157 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22158fi
db9f46a9
TG
22159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22160$as_echo "$gcc_cv_math_func_csinh" >&6; }
22161 if test $gcc_cv_math_func_csinh = yes; then
f1cdfa01 22162
f38a14ca
TG
22163cat >>confdefs.h <<_ACEOF
22164#define HAVE_CSINH 1
22165_ACEOF
db9f46a9
TG
22166
22167 fi
22168
1409cd0b 22169
1409cd0b 22170
1409cd0b 22171
db9f46a9
TG
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22173$as_echo_n "checking for csinhl... " >&6; }
22174if test "${gcc_cv_math_func_csinhl+set}" = set; then :
5213506e 22175 $as_echo_n "(cached) " >&6
1409cd0b 22176else
db9f46a9 22177 if test x$gcc_no_link = xyes; then
5213506e 22178 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22179fi
5213506e 22180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22181/* end confdefs.h. */
22182
db9f46a9
TG
22183#ifdef HAVE_COMPLEX_H
22184#include <complex.h>
1409cd0b 22185#endif
db9f46a9
TG
22186#ifdef HAVE_MATH_H
22187#include <math.h>
22188#endif
22189
22190int (*ptr)() = (int (*)())csinhl;
22191
1409cd0b
FXC
22192int
22193main ()
22194{
1409cd0b
FXC
22195 return 0;
22196}
db9f46a9 22197
1409cd0b 22198_ACEOF
5213506e 22199if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22200 gcc_cv_math_func_csinhl=yes
1409cd0b 22201else
db9f46a9 22202 gcc_cv_math_func_csinhl=no
1409cd0b 22203fi
5213506e
RW
22204rm -f core conftest.err conftest.$ac_objext \
22205 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22206fi
db9f46a9
TG
22207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22208$as_echo "$gcc_cv_math_func_csinhl" >&6; }
22209 if test $gcc_cv_math_func_csinhl = yes; then
f1cdfa01 22210
f38a14ca
TG
22211cat >>confdefs.h <<_ACEOF
22212#define HAVE_CSINHL 1
22213_ACEOF
db9f46a9
TG
22214
22215 fi
1409cd0b 22216
1409cd0b 22217
1409cd0b 22218
db9f46a9
TG
22219
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22221$as_echo_n "checking for sqrtf... " >&6; }
22222if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
5213506e 22223 $as_echo_n "(cached) " >&6
1409cd0b 22224else
db9f46a9 22225 if test x$gcc_no_link = xyes; then
5213506e 22226 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22227fi
5213506e 22228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22229/* end confdefs.h. */
22230
db9f46a9
TG
22231#ifdef HAVE_COMPLEX_H
22232#include <complex.h>
22233#endif
22234#ifdef HAVE_MATH_H
22235#include <math.h>
1409cd0b 22236#endif
db9f46a9
TG
22237
22238int (*ptr)() = (int (*)())sqrtf;
22239
1409cd0b
FXC
22240int
22241main ()
22242{
1409cd0b
FXC
22243 return 0;
22244}
db9f46a9 22245
1409cd0b 22246_ACEOF
5213506e 22247if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22248 gcc_cv_math_func_sqrtf=yes
1409cd0b 22249else
db9f46a9 22250 gcc_cv_math_func_sqrtf=no
1409cd0b 22251fi
5213506e
RW
22252rm -f core conftest.err conftest.$ac_objext \
22253 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22254fi
db9f46a9
TG
22255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22256$as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22257 if test $gcc_cv_math_func_sqrtf = yes; then
f1cdfa01 22258
f38a14ca
TG
22259cat >>confdefs.h <<_ACEOF
22260#define HAVE_SQRTF 1
22261_ACEOF
db9f46a9
TG
22262
22263 fi
1409cd0b 22264
1409cd0b 22265
db9f46a9
TG
22266
22267
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22269$as_echo_n "checking for sqrt... " >&6; }
22270if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22271 $as_echo_n "(cached) " >&6
22272else
22273 if test x$gcc_no_link = xyes; then
22274 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22275fi
db9f46a9
TG
22276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22277/* end confdefs.h. */
22278
22279#ifdef HAVE_COMPLEX_H
22280#include <complex.h>
22281#endif
22282#ifdef HAVE_MATH_H
22283#include <math.h>
22284#endif
22285
22286int (*ptr)() = (int (*)())sqrt;
22287
22288int
22289main ()
22290{
22291 return 0;
22292}
22293
22294_ACEOF
22295if ac_fn_c_try_link "$LINENO"; then :
22296 gcc_cv_math_func_sqrt=yes
22297else
22298 gcc_cv_math_func_sqrt=no
22299fi
22300rm -f core conftest.err conftest.$ac_objext \
22301 conftest$ac_exeext conftest.$ac_ext
22302fi
22303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22304$as_echo "$gcc_cv_math_func_sqrt" >&6; }
22305 if test $gcc_cv_math_func_sqrt = yes; then
f1cdfa01 22306
f38a14ca
TG
22307cat >>confdefs.h <<_ACEOF
22308#define HAVE_SQRT 1
22309_ACEOF
db9f46a9
TG
22310
22311 fi
1409cd0b 22312
db9f46a9
TG
22313
22314
22315
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22317$as_echo_n "checking for sqrtl... " >&6; }
22318if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
5213506e 22319 $as_echo_n "(cached) " >&6
1409cd0b 22320else
db9f46a9 22321 if test x$gcc_no_link = xyes; then
5213506e 22322 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22323fi
5213506e 22324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22325/* end confdefs.h. */
22326
db9f46a9
TG
22327#ifdef HAVE_COMPLEX_H
22328#include <complex.h>
22329#endif
22330#ifdef HAVE_MATH_H
22331#include <math.h>
1409cd0b 22332#endif
db9f46a9
TG
22333
22334int (*ptr)() = (int (*)())sqrtl;
22335
1409cd0b
FXC
22336int
22337main ()
22338{
1409cd0b
FXC
22339 return 0;
22340}
db9f46a9 22341
1409cd0b 22342_ACEOF
5213506e 22343if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22344 gcc_cv_math_func_sqrtl=yes
1409cd0b 22345else
db9f46a9 22346 gcc_cv_math_func_sqrtl=no
1409cd0b 22347fi
5213506e
RW
22348rm -f core conftest.err conftest.$ac_objext \
22349 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22350fi
db9f46a9
TG
22351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22352$as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22353 if test $gcc_cv_math_func_sqrtl = yes; then
f1cdfa01 22354
f38a14ca
TG
22355cat >>confdefs.h <<_ACEOF
22356#define HAVE_SQRTL 1
22357_ACEOF
db9f46a9
TG
22358
22359 fi
1409cd0b 22360
1409cd0b 22361
1409cd0b 22362
db9f46a9
TG
22363
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22365$as_echo_n "checking for csqrtf... " >&6; }
22366if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
5213506e 22367 $as_echo_n "(cached) " >&6
1409cd0b 22368else
db9f46a9 22369 if test x$gcc_no_link = xyes; then
5213506e 22370 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22371fi
5213506e 22372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22373/* end confdefs.h. */
22374
db9f46a9
TG
22375#ifdef HAVE_COMPLEX_H
22376#include <complex.h>
1409cd0b 22377#endif
db9f46a9
TG
22378#ifdef HAVE_MATH_H
22379#include <math.h>
22380#endif
22381
22382int (*ptr)() = (int (*)())csqrtf;
22383
1409cd0b
FXC
22384int
22385main ()
22386{
1409cd0b
FXC
22387 return 0;
22388}
db9f46a9 22389
1409cd0b 22390_ACEOF
5213506e 22391if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22392 gcc_cv_math_func_csqrtf=yes
1409cd0b 22393else
db9f46a9 22394 gcc_cv_math_func_csqrtf=no
1409cd0b 22395fi
5213506e
RW
22396rm -f core conftest.err conftest.$ac_objext \
22397 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22398fi
db9f46a9
TG
22399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22400$as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22401 if test $gcc_cv_math_func_csqrtf = yes; then
f1cdfa01 22402
f38a14ca
TG
22403cat >>confdefs.h <<_ACEOF
22404#define HAVE_CSQRTF 1
22405_ACEOF
1409cd0b 22406
db9f46a9 22407 fi
1409cd0b 22408
1409cd0b 22409
db9f46a9
TG
22410
22411
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22413$as_echo_n "checking for csqrt... " >&6; }
22414if test "${gcc_cv_math_func_csqrt+set}" = set; then :
5213506e 22415 $as_echo_n "(cached) " >&6
1409cd0b 22416else
db9f46a9 22417 if test x$gcc_no_link = xyes; then
5213506e 22418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22419fi
5213506e 22420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22421/* end confdefs.h. */
22422
db9f46a9
TG
22423#ifdef HAVE_COMPLEX_H
22424#include <complex.h>
22425#endif
22426#ifdef HAVE_MATH_H
22427#include <math.h>
1409cd0b 22428#endif
db9f46a9
TG
22429
22430int (*ptr)() = (int (*)())csqrt;
22431
1409cd0b
FXC
22432int
22433main ()
22434{
1409cd0b
FXC
22435 return 0;
22436}
db9f46a9 22437
1409cd0b 22438_ACEOF
5213506e 22439if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22440 gcc_cv_math_func_csqrt=yes
1409cd0b 22441else
db9f46a9 22442 gcc_cv_math_func_csqrt=no
1409cd0b 22443fi
5213506e
RW
22444rm -f core conftest.err conftest.$ac_objext \
22445 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22446fi
db9f46a9
TG
22447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22448$as_echo "$gcc_cv_math_func_csqrt" >&6; }
22449 if test $gcc_cv_math_func_csqrt = yes; then
f1cdfa01 22450
f38a14ca
TG
22451cat >>confdefs.h <<_ACEOF
22452#define HAVE_CSQRT 1
22453_ACEOF
db9f46a9
TG
22454
22455 fi
1409cd0b 22456
1409cd0b 22457
1409cd0b 22458
db9f46a9
TG
22459
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22461$as_echo_n "checking for csqrtl... " >&6; }
22462if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
5213506e 22463 $as_echo_n "(cached) " >&6
1409cd0b 22464else
db9f46a9 22465 if test x$gcc_no_link = xyes; then
5213506e 22466 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22467fi
5213506e 22468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22469/* end confdefs.h. */
22470
db9f46a9
TG
22471#ifdef HAVE_COMPLEX_H
22472#include <complex.h>
1409cd0b 22473#endif
db9f46a9
TG
22474#ifdef HAVE_MATH_H
22475#include <math.h>
22476#endif
22477
22478int (*ptr)() = (int (*)())csqrtl;
22479
1409cd0b
FXC
22480int
22481main ()
22482{
1409cd0b
FXC
22483 return 0;
22484}
db9f46a9 22485
1409cd0b 22486_ACEOF
5213506e 22487if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22488 gcc_cv_math_func_csqrtl=yes
1409cd0b 22489else
db9f46a9 22490 gcc_cv_math_func_csqrtl=no
1409cd0b 22491fi
5213506e
RW
22492rm -f core conftest.err conftest.$ac_objext \
22493 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22494fi
db9f46a9
TG
22495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22496$as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22497 if test $gcc_cv_math_func_csqrtl = yes; then
f1cdfa01 22498
f38a14ca
TG
22499cat >>confdefs.h <<_ACEOF
22500#define HAVE_CSQRTL 1
22501_ACEOF
db9f46a9
TG
22502
22503 fi
22504
1409cd0b 22505
1409cd0b 22506
1409cd0b 22507
db9f46a9
TG
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22509$as_echo_n "checking for tanf... " >&6; }
22510if test "${gcc_cv_math_func_tanf+set}" = set; then :
5213506e 22511 $as_echo_n "(cached) " >&6
1409cd0b 22512else
db9f46a9 22513 if test x$gcc_no_link = xyes; then
5213506e 22514 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22515fi
5213506e 22516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22517/* end confdefs.h. */
22518
db9f46a9
TG
22519#ifdef HAVE_COMPLEX_H
22520#include <complex.h>
22521#endif
22522#ifdef HAVE_MATH_H
22523#include <math.h>
1409cd0b 22524#endif
db9f46a9
TG
22525
22526int (*ptr)() = (int (*)())tanf;
22527
1409cd0b
FXC
22528int
22529main ()
22530{
1409cd0b
FXC
22531 return 0;
22532}
db9f46a9 22533
1409cd0b 22534_ACEOF
5213506e 22535if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22536 gcc_cv_math_func_tanf=yes
1409cd0b 22537else
db9f46a9 22538 gcc_cv_math_func_tanf=no
1409cd0b 22539fi
5213506e
RW
22540rm -f core conftest.err conftest.$ac_objext \
22541 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22542fi
db9f46a9
TG
22543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22544$as_echo "$gcc_cv_math_func_tanf" >&6; }
22545 if test $gcc_cv_math_func_tanf = yes; then
f1cdfa01 22546
f38a14ca
TG
22547cat >>confdefs.h <<_ACEOF
22548#define HAVE_TANF 1
22549_ACEOF
db9f46a9
TG
22550
22551 fi
1409cd0b 22552
1409cd0b 22553
1409cd0b 22554
db9f46a9
TG
22555
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22557$as_echo_n "checking for tan... " >&6; }
22558if test "${gcc_cv_math_func_tan+set}" = set; then :
5213506e 22559 $as_echo_n "(cached) " >&6
1409cd0b 22560else
db9f46a9 22561 if test x$gcc_no_link = xyes; then
5213506e 22562 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22563fi
5213506e 22564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22565/* end confdefs.h. */
22566
db9f46a9
TG
22567#ifdef HAVE_COMPLEX_H
22568#include <complex.h>
1409cd0b 22569#endif
db9f46a9
TG
22570#ifdef HAVE_MATH_H
22571#include <math.h>
22572#endif
22573
22574int (*ptr)() = (int (*)())tan;
22575
1409cd0b
FXC
22576int
22577main ()
22578{
1409cd0b
FXC
22579 return 0;
22580}
db9f46a9 22581
1409cd0b 22582_ACEOF
5213506e 22583if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22584 gcc_cv_math_func_tan=yes
1409cd0b 22585else
db9f46a9 22586 gcc_cv_math_func_tan=no
1409cd0b 22587fi
5213506e
RW
22588rm -f core conftest.err conftest.$ac_objext \
22589 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22590fi
db9f46a9
TG
22591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22592$as_echo "$gcc_cv_math_func_tan" >&6; }
22593 if test $gcc_cv_math_func_tan = yes; then
f1cdfa01 22594
f38a14ca
TG
22595cat >>confdefs.h <<_ACEOF
22596#define HAVE_TAN 1
22597_ACEOF
1409cd0b 22598
db9f46a9 22599 fi
1409cd0b 22600
1409cd0b 22601
db9f46a9
TG
22602
22603
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22605$as_echo_n "checking for tanl... " >&6; }
22606if test "${gcc_cv_math_func_tanl+set}" = set; then :
5213506e 22607 $as_echo_n "(cached) " >&6
1409cd0b 22608else
db9f46a9 22609 if test x$gcc_no_link = xyes; then
5213506e 22610 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22611fi
5213506e 22612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22613/* end confdefs.h. */
22614
db9f46a9
TG
22615#ifdef HAVE_COMPLEX_H
22616#include <complex.h>
22617#endif
22618#ifdef HAVE_MATH_H
22619#include <math.h>
1409cd0b 22620#endif
db9f46a9
TG
22621
22622int (*ptr)() = (int (*)())tanl;
22623
1409cd0b
FXC
22624int
22625main ()
22626{
1409cd0b
FXC
22627 return 0;
22628}
db9f46a9 22629
1409cd0b 22630_ACEOF
5213506e 22631if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22632 gcc_cv_math_func_tanl=yes
1409cd0b 22633else
db9f46a9 22634 gcc_cv_math_func_tanl=no
1409cd0b 22635fi
5213506e
RW
22636rm -f core conftest.err conftest.$ac_objext \
22637 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22638fi
db9f46a9
TG
22639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22640$as_echo "$gcc_cv_math_func_tanl" >&6; }
22641 if test $gcc_cv_math_func_tanl = yes; then
f1cdfa01 22642
f38a14ca
TG
22643cat >>confdefs.h <<_ACEOF
22644#define HAVE_TANL 1
22645_ACEOF
db9f46a9
TG
22646
22647 fi
1409cd0b 22648
1409cd0b 22649
1409cd0b 22650
db9f46a9
TG
22651
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22653$as_echo_n "checking for ctanf... " >&6; }
22654if test "${gcc_cv_math_func_ctanf+set}" = set; then :
5213506e 22655 $as_echo_n "(cached) " >&6
1409cd0b 22656else
db9f46a9 22657 if test x$gcc_no_link = xyes; then
5213506e 22658 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22659fi
5213506e 22660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22661/* end confdefs.h. */
22662
db9f46a9
TG
22663#ifdef HAVE_COMPLEX_H
22664#include <complex.h>
1409cd0b 22665#endif
db9f46a9
TG
22666#ifdef HAVE_MATH_H
22667#include <math.h>
22668#endif
22669
22670int (*ptr)() = (int (*)())ctanf;
22671
1409cd0b
FXC
22672int
22673main ()
22674{
1409cd0b
FXC
22675 return 0;
22676}
db9f46a9 22677
1409cd0b 22678_ACEOF
5213506e 22679if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22680 gcc_cv_math_func_ctanf=yes
1409cd0b 22681else
db9f46a9 22682 gcc_cv_math_func_ctanf=no
1409cd0b 22683fi
5213506e
RW
22684rm -f core conftest.err conftest.$ac_objext \
22685 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22686fi
db9f46a9
TG
22687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22688$as_echo "$gcc_cv_math_func_ctanf" >&6; }
22689 if test $gcc_cv_math_func_ctanf = yes; then
f1cdfa01 22690
f38a14ca
TG
22691cat >>confdefs.h <<_ACEOF
22692#define HAVE_CTANF 1
22693_ACEOF
db9f46a9
TG
22694
22695 fi
22696
1409cd0b 22697
1409cd0b 22698
1409cd0b 22699
db9f46a9
TG
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22701$as_echo_n "checking for ctan... " >&6; }
22702if test "${gcc_cv_math_func_ctan+set}" = set; then :
5213506e 22703 $as_echo_n "(cached) " >&6
1409cd0b 22704else
db9f46a9 22705 if test x$gcc_no_link = xyes; then
5213506e 22706 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22707fi
5213506e 22708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22709/* end confdefs.h. */
22710
db9f46a9
TG
22711#ifdef HAVE_COMPLEX_H
22712#include <complex.h>
22713#endif
22714#ifdef HAVE_MATH_H
22715#include <math.h>
1409cd0b 22716#endif
db9f46a9
TG
22717
22718int (*ptr)() = (int (*)())ctan;
22719
1409cd0b
FXC
22720int
22721main ()
22722{
1409cd0b
FXC
22723 return 0;
22724}
db9f46a9 22725
1409cd0b 22726_ACEOF
5213506e 22727if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22728 gcc_cv_math_func_ctan=yes
1409cd0b 22729else
db9f46a9 22730 gcc_cv_math_func_ctan=no
1409cd0b 22731fi
5213506e
RW
22732rm -f core conftest.err conftest.$ac_objext \
22733 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22734fi
db9f46a9
TG
22735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22736$as_echo "$gcc_cv_math_func_ctan" >&6; }
22737 if test $gcc_cv_math_func_ctan = yes; then
f1cdfa01 22738
f38a14ca
TG
22739cat >>confdefs.h <<_ACEOF
22740#define HAVE_CTAN 1
22741_ACEOF
db9f46a9
TG
22742
22743 fi
1409cd0b 22744
1409cd0b 22745
1409cd0b 22746
db9f46a9
TG
22747
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22749$as_echo_n "checking for ctanl... " >&6; }
22750if test "${gcc_cv_math_func_ctanl+set}" = set; then :
5213506e 22751 $as_echo_n "(cached) " >&6
1409cd0b 22752else
db9f46a9 22753 if test x$gcc_no_link = xyes; then
5213506e 22754 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22755fi
5213506e 22756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22757/* end confdefs.h. */
22758
db9f46a9
TG
22759#ifdef HAVE_COMPLEX_H
22760#include <complex.h>
1409cd0b 22761#endif
db9f46a9
TG
22762#ifdef HAVE_MATH_H
22763#include <math.h>
22764#endif
22765
22766int (*ptr)() = (int (*)())ctanl;
22767
1409cd0b
FXC
22768int
22769main ()
22770{
1409cd0b
FXC
22771 return 0;
22772}
db9f46a9 22773
1409cd0b 22774_ACEOF
5213506e 22775if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22776 gcc_cv_math_func_ctanl=yes
1409cd0b 22777else
db9f46a9 22778 gcc_cv_math_func_ctanl=no
1409cd0b 22779fi
5213506e
RW
22780rm -f core conftest.err conftest.$ac_objext \
22781 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22782fi
db9f46a9
TG
22783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22784$as_echo "$gcc_cv_math_func_ctanl" >&6; }
22785 if test $gcc_cv_math_func_ctanl = yes; then
f1cdfa01 22786
f38a14ca
TG
22787cat >>confdefs.h <<_ACEOF
22788#define HAVE_CTANL 1
22789_ACEOF
1409cd0b 22790
db9f46a9 22791 fi
1409cd0b 22792
1409cd0b 22793
db9f46a9
TG
22794
22795
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22797$as_echo_n "checking for tanhf... " >&6; }
22798if test "${gcc_cv_math_func_tanhf+set}" = set; then :
5213506e 22799 $as_echo_n "(cached) " >&6
1409cd0b 22800else
db9f46a9 22801 if test x$gcc_no_link = xyes; then
5213506e 22802 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22803fi
5213506e 22804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22805/* end confdefs.h. */
22806
db9f46a9
TG
22807#ifdef HAVE_COMPLEX_H
22808#include <complex.h>
22809#endif
22810#ifdef HAVE_MATH_H
22811#include <math.h>
1409cd0b 22812#endif
db9f46a9
TG
22813
22814int (*ptr)() = (int (*)())tanhf;
22815
1409cd0b
FXC
22816int
22817main ()
22818{
1409cd0b
FXC
22819 return 0;
22820}
db9f46a9 22821
1409cd0b 22822_ACEOF
5213506e 22823if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22824 gcc_cv_math_func_tanhf=yes
1409cd0b 22825else
db9f46a9 22826 gcc_cv_math_func_tanhf=no
1409cd0b 22827fi
5213506e
RW
22828rm -f core conftest.err conftest.$ac_objext \
22829 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22830fi
db9f46a9
TG
22831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22832$as_echo "$gcc_cv_math_func_tanhf" >&6; }
22833 if test $gcc_cv_math_func_tanhf = yes; then
f1cdfa01 22834
f38a14ca
TG
22835cat >>confdefs.h <<_ACEOF
22836#define HAVE_TANHF 1
22837_ACEOF
db9f46a9
TG
22838
22839 fi
1409cd0b 22840
1409cd0b 22841
1409cd0b 22842
db9f46a9
TG
22843
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22845$as_echo_n "checking for tanh... " >&6; }
22846if test "${gcc_cv_math_func_tanh+set}" = set; then :
5213506e 22847 $as_echo_n "(cached) " >&6
1409cd0b 22848else
db9f46a9 22849 if test x$gcc_no_link = xyes; then
5213506e 22850 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22851fi
5213506e 22852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22853/* end confdefs.h. */
22854
db9f46a9
TG
22855#ifdef HAVE_COMPLEX_H
22856#include <complex.h>
1409cd0b 22857#endif
db9f46a9
TG
22858#ifdef HAVE_MATH_H
22859#include <math.h>
22860#endif
22861
22862int (*ptr)() = (int (*)())tanh;
22863
1409cd0b
FXC
22864int
22865main ()
22866{
1409cd0b
FXC
22867 return 0;
22868}
db9f46a9 22869
1409cd0b 22870_ACEOF
5213506e 22871if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22872 gcc_cv_math_func_tanh=yes
1409cd0b 22873else
db9f46a9 22874 gcc_cv_math_func_tanh=no
1409cd0b 22875fi
5213506e
RW
22876rm -f core conftest.err conftest.$ac_objext \
22877 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22878fi
db9f46a9
TG
22879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22880$as_echo "$gcc_cv_math_func_tanh" >&6; }
22881 if test $gcc_cv_math_func_tanh = yes; then
f1cdfa01 22882
f38a14ca
TG
22883cat >>confdefs.h <<_ACEOF
22884#define HAVE_TANH 1
22885_ACEOF
db9f46a9
TG
22886
22887 fi
22888
1409cd0b 22889
1409cd0b 22890
1409cd0b 22891
db9f46a9
TG
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22893$as_echo_n "checking for tanhl... " >&6; }
22894if test "${gcc_cv_math_func_tanhl+set}" = set; then :
5213506e 22895 $as_echo_n "(cached) " >&6
1409cd0b 22896else
db9f46a9 22897 if test x$gcc_no_link = xyes; then
5213506e 22898 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22899fi
5213506e 22900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22901/* end confdefs.h. */
22902
db9f46a9
TG
22903#ifdef HAVE_COMPLEX_H
22904#include <complex.h>
22905#endif
22906#ifdef HAVE_MATH_H
22907#include <math.h>
1409cd0b 22908#endif
db9f46a9
TG
22909
22910int (*ptr)() = (int (*)())tanhl;
22911
1409cd0b
FXC
22912int
22913main ()
22914{
1409cd0b
FXC
22915 return 0;
22916}
db9f46a9 22917
1409cd0b 22918_ACEOF
5213506e 22919if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22920 gcc_cv_math_func_tanhl=yes
1409cd0b 22921else
db9f46a9 22922 gcc_cv_math_func_tanhl=no
1409cd0b 22923fi
5213506e
RW
22924rm -f core conftest.err conftest.$ac_objext \
22925 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22926fi
db9f46a9
TG
22927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22928$as_echo "$gcc_cv_math_func_tanhl" >&6; }
22929 if test $gcc_cv_math_func_tanhl = yes; then
f1cdfa01 22930
f38a14ca
TG
22931cat >>confdefs.h <<_ACEOF
22932#define HAVE_TANHL 1
22933_ACEOF
db9f46a9
TG
22934
22935 fi
1409cd0b 22936
1409cd0b 22937
1409cd0b 22938
db9f46a9
TG
22939
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22941$as_echo_n "checking for ctanhf... " >&6; }
22942if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
5213506e 22943 $as_echo_n "(cached) " >&6
1409cd0b 22944else
db9f46a9 22945 if test x$gcc_no_link = xyes; then
5213506e 22946 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db9f46a9
TG
22947fi
22948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22949/* end confdefs.h. */
22950
22951#ifdef HAVE_COMPLEX_H
22952#include <complex.h>
1409cd0b 22953#endif
db9f46a9
TG
22954#ifdef HAVE_MATH_H
22955#include <math.h>
22956#endif
22957
22958int (*ptr)() = (int (*)())ctanhf;
22959
1409cd0b
FXC
22960int
22961main ()
22962{
1409cd0b
FXC
22963 return 0;
22964}
db9f46a9 22965
1409cd0b 22966_ACEOF
5213506e 22967if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22968 gcc_cv_math_func_ctanhf=yes
1409cd0b 22969else
db9f46a9 22970 gcc_cv_math_func_ctanhf=no
1409cd0b 22971fi
5213506e
RW
22972rm -f core conftest.err conftest.$ac_objext \
22973 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22974fi
db9f46a9
TG
22975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22976$as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22977 if test $gcc_cv_math_func_ctanhf = yes; then
f1cdfa01 22978
f38a14ca
TG
22979cat >>confdefs.h <<_ACEOF
22980#define HAVE_CTANHF 1
22981_ACEOF
1409cd0b 22982
db9f46a9 22983 fi
1409cd0b 22984
1409cd0b 22985
db9f46a9
TG
22986
22987
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22989$as_echo_n "checking for ctanh... " >&6; }
22990if test "${gcc_cv_math_func_ctanh+set}" = set; then :
5213506e 22991 $as_echo_n "(cached) " >&6
1409cd0b 22992else
db9f46a9 22993 if test x$gcc_no_link = xyes; then
5213506e 22994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22995fi
5213506e 22996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22997/* end confdefs.h. */
22998
db9f46a9
TG
22999#ifdef HAVE_COMPLEX_H
23000#include <complex.h>
23001#endif
23002#ifdef HAVE_MATH_H
23003#include <math.h>
1409cd0b 23004#endif
db9f46a9
TG
23005
23006int (*ptr)() = (int (*)())ctanh;
23007
1409cd0b
FXC
23008int
23009main ()
23010{
5213506e
RW
23011 return 0;
23012}
db9f46a9 23013
5213506e
RW
23014_ACEOF
23015if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23016 gcc_cv_math_func_ctanh=yes
1409cd0b 23017else
db9f46a9 23018 gcc_cv_math_func_ctanh=no
1409cd0b 23019fi
5213506e
RW
23020rm -f core conftest.err conftest.$ac_objext \
23021 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23022fi
db9f46a9
TG
23023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23024$as_echo "$gcc_cv_math_func_ctanh" >&6; }
23025 if test $gcc_cv_math_func_ctanh = yes; then
f1cdfa01 23026
f38a14ca
TG
23027cat >>confdefs.h <<_ACEOF
23028#define HAVE_CTANH 1
23029_ACEOF
db9f46a9
TG
23030
23031 fi
1409cd0b 23032
1409cd0b 23033
1409cd0b 23034
db9f46a9
TG
23035
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23037$as_echo_n "checking for ctanhl... " >&6; }
23038if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
5213506e 23039 $as_echo_n "(cached) " >&6
1409cd0b 23040else
db9f46a9 23041 if test x$gcc_no_link = xyes; then
5213506e 23042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23043fi
5213506e 23044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23045/* end confdefs.h. */
23046
db9f46a9
TG
23047#ifdef HAVE_COMPLEX_H
23048#include <complex.h>
1409cd0b 23049#endif
db9f46a9
TG
23050#ifdef HAVE_MATH_H
23051#include <math.h>
23052#endif
23053
23054int (*ptr)() = (int (*)())ctanhl;
23055
1409cd0b
FXC
23056int
23057main ()
23058{
1409cd0b
FXC
23059 return 0;
23060}
db9f46a9 23061
1409cd0b 23062_ACEOF
5213506e 23063if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23064 gcc_cv_math_func_ctanhl=yes
1409cd0b 23065else
db9f46a9 23066 gcc_cv_math_func_ctanhl=no
1409cd0b 23067fi
5213506e
RW
23068rm -f core conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23070fi
db9f46a9
TG
23071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23072$as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23073 if test $gcc_cv_math_func_ctanhl = yes; then
f1cdfa01 23074
f38a14ca
TG
23075cat >>confdefs.h <<_ACEOF
23076#define HAVE_CTANHL 1
23077_ACEOF
db9f46a9
TG
23078
23079 fi
23080
1409cd0b 23081
69a2d125 23082
69a2d125 23083
db9f46a9
TG
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23085$as_echo_n "checking for truncf... " >&6; }
23086if test "${gcc_cv_math_func_truncf+set}" = set; then :
5213506e 23087 $as_echo_n "(cached) " >&6
69a2d125 23088else
db9f46a9 23089 if test x$gcc_no_link = xyes; then
5213506e 23090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23091fi
5213506e 23092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
23093/* end confdefs.h. */
23094
db9f46a9
TG
23095#ifdef HAVE_COMPLEX_H
23096#include <complex.h>
23097#endif
23098#ifdef HAVE_MATH_H
23099#include <math.h>
69a2d125 23100#endif
db9f46a9
TG
23101
23102int (*ptr)() = (int (*)())truncf;
23103
1409cd0b
FXC
23104int
23105main ()
23106{
1409cd0b
FXC
23107 return 0;
23108}
db9f46a9 23109
1409cd0b 23110_ACEOF
5213506e 23111if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23112 gcc_cv_math_func_truncf=yes
1409cd0b 23113else
db9f46a9 23114 gcc_cv_math_func_truncf=no
1409cd0b 23115fi
5213506e
RW
23116rm -f core conftest.err conftest.$ac_objext \
23117 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23118fi
db9f46a9
TG
23119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23120$as_echo "$gcc_cv_math_func_truncf" >&6; }
23121 if test $gcc_cv_math_func_truncf = yes; then
f1cdfa01 23122
f38a14ca
TG
23123cat >>confdefs.h <<_ACEOF
23124#define HAVE_TRUNCF 1
23125_ACEOF
db9f46a9
TG
23126
23127 fi
1409cd0b 23128
1409cd0b 23129
1409cd0b 23130
db9f46a9
TG
23131
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23133$as_echo_n "checking for trunc... " >&6; }
23134if test "${gcc_cv_math_func_trunc+set}" = set; then :
5213506e 23135 $as_echo_n "(cached) " >&6
1409cd0b 23136else
db9f46a9 23137 if test x$gcc_no_link = xyes; then
5213506e 23138 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23139fi
5213506e 23140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23141/* end confdefs.h. */
23142
db9f46a9
TG
23143#ifdef HAVE_COMPLEX_H
23144#include <complex.h>
1409cd0b 23145#endif
db9f46a9
TG
23146#ifdef HAVE_MATH_H
23147#include <math.h>
23148#endif
23149
23150int (*ptr)() = (int (*)())trunc;
23151
1409cd0b
FXC
23152int
23153main ()
23154{
1409cd0b
FXC
23155 return 0;
23156}
db9f46a9 23157
1409cd0b 23158_ACEOF
5213506e 23159if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23160 gcc_cv_math_func_trunc=yes
1409cd0b 23161else
db9f46a9 23162 gcc_cv_math_func_trunc=no
1409cd0b 23163fi
5213506e
RW
23164rm -f core conftest.err conftest.$ac_objext \
23165 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23166fi
db9f46a9
TG
23167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23168$as_echo "$gcc_cv_math_func_trunc" >&6; }
23169 if test $gcc_cv_math_func_trunc = yes; then
f1cdfa01 23170
f38a14ca
TG
23171cat >>confdefs.h <<_ACEOF
23172#define HAVE_TRUNC 1
23173_ACEOF
1409cd0b 23174
db9f46a9 23175 fi
1409cd0b 23176
1409cd0b 23177
db9f46a9
TG
23178
23179
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23181$as_echo_n "checking for truncl... " >&6; }
23182if test "${gcc_cv_math_func_truncl+set}" = set; then :
5213506e 23183 $as_echo_n "(cached) " >&6
1409cd0b 23184else
db9f46a9 23185 if test x$gcc_no_link = xyes; then
5213506e 23186 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23187fi
5213506e 23188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23189/* end confdefs.h. */
23190
db9f46a9
TG
23191#ifdef HAVE_COMPLEX_H
23192#include <complex.h>
23193#endif
23194#ifdef HAVE_MATH_H
23195#include <math.h>
1409cd0b 23196#endif
db9f46a9
TG
23197
23198int (*ptr)() = (int (*)())truncl;
23199
1409cd0b
FXC
23200int
23201main ()
23202{
1409cd0b
FXC
23203 return 0;
23204}
db9f46a9 23205
1409cd0b 23206_ACEOF
5213506e 23207if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23208 gcc_cv_math_func_truncl=yes
1409cd0b 23209else
db9f46a9 23210 gcc_cv_math_func_truncl=no
1409cd0b 23211fi
5213506e
RW
23212rm -f core conftest.err conftest.$ac_objext \
23213 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23214fi
db9f46a9
TG
23215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23216$as_echo "$gcc_cv_math_func_truncl" >&6; }
23217 if test $gcc_cv_math_func_truncl = yes; then
f1cdfa01 23218
f38a14ca
TG
23219cat >>confdefs.h <<_ACEOF
23220#define HAVE_TRUNCL 1
23221_ACEOF
db9f46a9
TG
23222
23223 fi
1409cd0b 23224
1409cd0b 23225
1409cd0b 23226
db9f46a9
TG
23227
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23229$as_echo_n "checking for erff... " >&6; }
23230if test "${gcc_cv_math_func_erff+set}" = set; then :
5213506e 23231 $as_echo_n "(cached) " >&6
1409cd0b 23232else
db9f46a9 23233 if test x$gcc_no_link = xyes; then
5213506e 23234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23235fi
5213506e 23236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23237/* end confdefs.h. */
23238
db9f46a9
TG
23239#ifdef HAVE_COMPLEX_H
23240#include <complex.h>
1409cd0b 23241#endif
db9f46a9
TG
23242#ifdef HAVE_MATH_H
23243#include <math.h>
23244#endif
23245
23246int (*ptr)() = (int (*)())erff;
23247
1409cd0b
FXC
23248int
23249main ()
23250{
1409cd0b
FXC
23251 return 0;
23252}
db9f46a9 23253
1409cd0b 23254_ACEOF
5213506e 23255if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23256 gcc_cv_math_func_erff=yes
1409cd0b 23257else
db9f46a9 23258 gcc_cv_math_func_erff=no
1409cd0b 23259fi
5213506e
RW
23260rm -f core conftest.err conftest.$ac_objext \
23261 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23262fi
db9f46a9
TG
23263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23264$as_echo "$gcc_cv_math_func_erff" >&6; }
23265 if test $gcc_cv_math_func_erff = yes; then
f1cdfa01 23266
f38a14ca
TG
23267cat >>confdefs.h <<_ACEOF
23268#define HAVE_ERFF 1
23269_ACEOF
db9f46a9
TG
23270
23271 fi
23272
1409cd0b 23273
1409cd0b 23274
1409cd0b 23275
db9f46a9
TG
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23277$as_echo_n "checking for erf... " >&6; }
23278if test "${gcc_cv_math_func_erf+set}" = set; then :
5213506e 23279 $as_echo_n "(cached) " >&6
1409cd0b 23280else
db9f46a9 23281 if test x$gcc_no_link = xyes; then
5213506e 23282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23283fi
5213506e 23284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23285/* end confdefs.h. */
23286
db9f46a9
TG
23287#ifdef HAVE_COMPLEX_H
23288#include <complex.h>
23289#endif
23290#ifdef HAVE_MATH_H
23291#include <math.h>
1409cd0b 23292#endif
db9f46a9
TG
23293
23294int (*ptr)() = (int (*)())erf;
23295
1409cd0b
FXC
23296int
23297main ()
23298{
1409cd0b
FXC
23299 return 0;
23300}
db9f46a9 23301
1409cd0b 23302_ACEOF
5213506e 23303if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23304 gcc_cv_math_func_erf=yes
1409cd0b 23305else
db9f46a9 23306 gcc_cv_math_func_erf=no
1409cd0b 23307fi
5213506e
RW
23308rm -f core conftest.err conftest.$ac_objext \
23309 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23310fi
db9f46a9
TG
23311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23312$as_echo "$gcc_cv_math_func_erf" >&6; }
23313 if test $gcc_cv_math_func_erf = yes; then
f1cdfa01 23314
f38a14ca
TG
23315cat >>confdefs.h <<_ACEOF
23316#define HAVE_ERF 1
23317_ACEOF
db9f46a9
TG
23318
23319 fi
1409cd0b 23320
1409cd0b 23321
1409cd0b 23322
db9f46a9 23323
db9f46a9
TG
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23325$as_echo_n "checking for erfcf... " >&6; }
23326if test "${gcc_cv_math_func_erfcf+set}" = set; then :
5213506e 23327 $as_echo_n "(cached) " >&6
1409cd0b 23328else
db9f46a9 23329 if test x$gcc_no_link = xyes; then
5213506e 23330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23331fi
5213506e 23332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23333/* end confdefs.h. */
23334
db9f46a9
TG
23335#ifdef HAVE_COMPLEX_H
23336#include <complex.h>
23337#endif
23338#ifdef HAVE_MATH_H
23339#include <math.h>
1409cd0b 23340#endif
db9f46a9
TG
23341
23342int (*ptr)() = (int (*)())erfcf;
23343
1409cd0b
FXC
23344int
23345main ()
23346{
1409cd0b
FXC
23347 return 0;
23348}
db9f46a9 23349
1409cd0b 23350_ACEOF
5213506e 23351if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23352 gcc_cv_math_func_erfcf=yes
1409cd0b 23353else
db9f46a9 23354 gcc_cv_math_func_erfcf=no
1409cd0b 23355fi
5213506e
RW
23356rm -f core conftest.err conftest.$ac_objext \
23357 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23358fi
db9f46a9
TG
23359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23360$as_echo "$gcc_cv_math_func_erfcf" >&6; }
23361 if test $gcc_cv_math_func_erfcf = yes; then
f1cdfa01 23362
f38a14ca
TG
23363cat >>confdefs.h <<_ACEOF
23364#define HAVE_ERFCF 1
23365_ACEOF
db9f46a9
TG
23366
23367 fi
1409cd0b 23368
1409cd0b 23369
1409cd0b 23370
db9f46a9
TG
23371
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23373$as_echo_n "checking for erfc... " >&6; }
23374if test "${gcc_cv_math_func_erfc+set}" = set; then :
5213506e 23375 $as_echo_n "(cached) " >&6
1409cd0b 23376else
db9f46a9 23377 if test x$gcc_no_link = xyes; then
5213506e 23378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23379fi
5213506e 23380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23381/* end confdefs.h. */
23382
db9f46a9
TG
23383#ifdef HAVE_COMPLEX_H
23384#include <complex.h>
1409cd0b 23385#endif
db9f46a9
TG
23386#ifdef HAVE_MATH_H
23387#include <math.h>
23388#endif
23389
23390int (*ptr)() = (int (*)())erfc;
23391
69a2d125
EB
23392int
23393main ()
23394{
69a2d125
EB
23395 return 0;
23396}
db9f46a9 23397
69a2d125 23398_ACEOF
5213506e 23399if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23400 gcc_cv_math_func_erfc=yes
69a2d125 23401else
db9f46a9 23402 gcc_cv_math_func_erfc=no
69a2d125 23403fi
5213506e
RW
23404rm -f core conftest.err conftest.$ac_objext \
23405 conftest$ac_exeext conftest.$ac_ext
69a2d125 23406fi
db9f46a9
TG
23407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23408$as_echo "$gcc_cv_math_func_erfc" >&6; }
23409 if test $gcc_cv_math_func_erfc = yes; then
f1cdfa01 23410
f38a14ca
TG
23411cat >>confdefs.h <<_ACEOF
23412#define HAVE_ERFC 1
23413_ACEOF
db9f46a9
TG
23414
23415 fi
23416
69a2d125 23417
69a2d125 23418
69a2d125 23419
db9f46a9
TG
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23421$as_echo_n "checking for erfcl... " >&6; }
23422if test "${gcc_cv_math_func_erfcl+set}" = set; then :
5213506e 23423 $as_echo_n "(cached) " >&6
e8525382 23424else
db9f46a9 23425 if test x$gcc_no_link = xyes; then
5213506e 23426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23427fi
5213506e 23428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23429/* end confdefs.h. */
23430
db9f46a9
TG
23431#ifdef HAVE_COMPLEX_H
23432#include <complex.h>
23433#endif
23434#ifdef HAVE_MATH_H
23435#include <math.h>
e8525382 23436#endif
db9f46a9
TG
23437
23438int (*ptr)() = (int (*)())erfcl;
23439
e8525382
SK
23440int
23441main ()
23442{
e8525382
SK
23443 return 0;
23444}
db9f46a9 23445
e8525382 23446_ACEOF
5213506e 23447if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23448 gcc_cv_math_func_erfcl=yes
e8525382 23449else
db9f46a9 23450 gcc_cv_math_func_erfcl=no
e8525382 23451fi
5213506e
RW
23452rm -f core conftest.err conftest.$ac_objext \
23453 conftest$ac_exeext conftest.$ac_ext
e8525382 23454fi
db9f46a9
TG
23455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23456$as_echo "$gcc_cv_math_func_erfcl" >&6; }
23457 if test $gcc_cv_math_func_erfcl = yes; then
f1cdfa01 23458
f38a14ca
TG
23459cat >>confdefs.h <<_ACEOF
23460#define HAVE_ERFCL 1
23461_ACEOF
db9f46a9
TG
23462
23463 fi
e8525382 23464
e8525382 23465
e8525382 23466
db9f46a9
TG
23467
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23469$as_echo_n "checking for j0f... " >&6; }
23470if test "${gcc_cv_math_func_j0f+set}" = set; then :
5213506e 23471 $as_echo_n "(cached) " >&6
e8525382 23472else
db9f46a9 23473 if test x$gcc_no_link = xyes; then
5213506e 23474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23475fi
5213506e 23476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23477/* end confdefs.h. */
23478
db9f46a9
TG
23479#ifdef HAVE_COMPLEX_H
23480#include <complex.h>
e8525382 23481#endif
db9f46a9
TG
23482#ifdef HAVE_MATH_H
23483#include <math.h>
23484#endif
23485
23486int (*ptr)() = (int (*)())j0f;
23487
e8525382
SK
23488int
23489main ()
23490{
e8525382
SK
23491 return 0;
23492}
db9f46a9 23493
e8525382 23494_ACEOF
5213506e 23495if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23496 gcc_cv_math_func_j0f=yes
e8525382 23497else
db9f46a9 23498 gcc_cv_math_func_j0f=no
1409cd0b 23499fi
5213506e
RW
23500rm -f core conftest.err conftest.$ac_objext \
23501 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23502fi
db9f46a9
TG
23503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23504$as_echo "$gcc_cv_math_func_j0f" >&6; }
23505 if test $gcc_cv_math_func_j0f = yes; then
f1cdfa01 23506
f38a14ca
TG
23507cat >>confdefs.h <<_ACEOF
23508#define HAVE_J0F 1
23509_ACEOF
1409cd0b 23510
db9f46a9 23511 fi
1409cd0b 23512
1409cd0b 23513
db9f46a9
TG
23514
23515
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23517$as_echo_n "checking for j0... " >&6; }
23518if test "${gcc_cv_math_func_j0+set}" = set; then :
5213506e 23519 $as_echo_n "(cached) " >&6
1409cd0b 23520else
db9f46a9 23521 if test x$gcc_no_link = xyes; then
5213506e 23522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23523fi
5213506e 23524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23525/* end confdefs.h. */
23526
db9f46a9
TG
23527#ifdef HAVE_COMPLEX_H
23528#include <complex.h>
23529#endif
23530#ifdef HAVE_MATH_H
23531#include <math.h>
1409cd0b 23532#endif
db9f46a9
TG
23533
23534int (*ptr)() = (int (*)())j0;
23535
1409cd0b
FXC
23536int
23537main ()
23538{
1409cd0b
FXC
23539 return 0;
23540}
db9f46a9 23541
1409cd0b 23542_ACEOF
5213506e 23543if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23544 gcc_cv_math_func_j0=yes
1409cd0b 23545else
db9f46a9 23546 gcc_cv_math_func_j0=no
1409cd0b 23547fi
5213506e
RW
23548rm -f core conftest.err conftest.$ac_objext \
23549 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23550fi
db9f46a9
TG
23551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23552$as_echo "$gcc_cv_math_func_j0" >&6; }
23553 if test $gcc_cv_math_func_j0 = yes; then
f1cdfa01 23554
f38a14ca
TG
23555cat >>confdefs.h <<_ACEOF
23556#define HAVE_J0 1
23557_ACEOF
db9f46a9
TG
23558
23559 fi
1409cd0b 23560
1409cd0b 23561
1409cd0b 23562
db9f46a9 23563
db9f46a9
TG
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23565$as_echo_n "checking for j1f... " >&6; }
23566if test "${gcc_cv_math_func_j1f+set}" = set; then :
5213506e 23567 $as_echo_n "(cached) " >&6
1409cd0b 23568else
db9f46a9 23569 if test x$gcc_no_link = xyes; then
5213506e 23570 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23571fi
5213506e 23572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23573/* end confdefs.h. */
23574
db9f46a9
TG
23575#ifdef HAVE_COMPLEX_H
23576#include <complex.h>
23577#endif
23578#ifdef HAVE_MATH_H
23579#include <math.h>
1409cd0b 23580#endif
db9f46a9
TG
23581
23582int (*ptr)() = (int (*)())j1f;
23583
1409cd0b
FXC
23584int
23585main ()
23586{
1409cd0b
FXC
23587 return 0;
23588}
db9f46a9 23589
1409cd0b 23590_ACEOF
5213506e 23591if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23592 gcc_cv_math_func_j1f=yes
1409cd0b 23593else
db9f46a9 23594 gcc_cv_math_func_j1f=no
e8525382 23595fi
5213506e
RW
23596rm -f core conftest.err conftest.$ac_objext \
23597 conftest$ac_exeext conftest.$ac_ext
e8525382 23598fi
db9f46a9
TG
23599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23600$as_echo "$gcc_cv_math_func_j1f" >&6; }
23601 if test $gcc_cv_math_func_j1f = yes; then
f1cdfa01 23602
f38a14ca
TG
23603cat >>confdefs.h <<_ACEOF
23604#define HAVE_J1F 1
23605_ACEOF
db9f46a9
TG
23606
23607 fi
e8525382 23608
e8525382 23609
e8525382 23610
db9f46a9
TG
23611
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23613$as_echo_n "checking for j1... " >&6; }
23614if test "${gcc_cv_math_func_j1+set}" = set; then :
5213506e 23615 $as_echo_n "(cached) " >&6
e8525382 23616else
db9f46a9 23617 if test x$gcc_no_link = xyes; then
5213506e 23618 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23619fi
5213506e 23620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23621/* end confdefs.h. */
23622
db9f46a9
TG
23623#ifdef HAVE_COMPLEX_H
23624#include <complex.h>
e8525382 23625#endif
db9f46a9
TG
23626#ifdef HAVE_MATH_H
23627#include <math.h>
23628#endif
23629
23630int (*ptr)() = (int (*)())j1;
23631
e8525382
SK
23632int
23633main ()
23634{
e8525382
SK
23635 return 0;
23636}
db9f46a9 23637
e8525382 23638_ACEOF
5213506e 23639if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23640 gcc_cv_math_func_j1=yes
e8525382 23641else
db9f46a9 23642 gcc_cv_math_func_j1=no
e8525382 23643fi
5213506e
RW
23644rm -f core conftest.err conftest.$ac_objext \
23645 conftest$ac_exeext conftest.$ac_ext
e8525382 23646fi
db9f46a9
TG
23647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23648$as_echo "$gcc_cv_math_func_j1" >&6; }
23649 if test $gcc_cv_math_func_j1 = yes; then
f1cdfa01 23650
f38a14ca
TG
23651cat >>confdefs.h <<_ACEOF
23652#define HAVE_J1 1
23653_ACEOF
e8525382 23654
db9f46a9 23655 fi
e8525382 23656
e8525382 23657
db9f46a9
TG
23658
23659
db9f46a9
TG
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23661$as_echo_n "checking for jnf... " >&6; }
23662if test "${gcc_cv_math_func_jnf+set}" = set; then :
5213506e 23663 $as_echo_n "(cached) " >&6
e8525382 23664else
db9f46a9 23665 if test x$gcc_no_link = xyes; then
5213506e 23666 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23667fi
5213506e 23668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23669/* end confdefs.h. */
23670
db9f46a9
TG
23671#ifdef HAVE_COMPLEX_H
23672#include <complex.h>
e8525382 23673#endif
db9f46a9
TG
23674#ifdef HAVE_MATH_H
23675#include <math.h>
23676#endif
23677
23678int (*ptr)() = (int (*)())jnf;
23679
e8525382
SK
23680int
23681main ()
23682{
e8525382
SK
23683 return 0;
23684}
db9f46a9 23685
e8525382 23686_ACEOF
5213506e 23687if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23688 gcc_cv_math_func_jnf=yes
e8525382 23689else
db9f46a9 23690 gcc_cv_math_func_jnf=no
e8525382 23691fi
5213506e
RW
23692rm -f core conftest.err conftest.$ac_objext \
23693 conftest$ac_exeext conftest.$ac_ext
e8525382 23694fi
db9f46a9
TG
23695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23696$as_echo "$gcc_cv_math_func_jnf" >&6; }
23697 if test $gcc_cv_math_func_jnf = yes; then
f1cdfa01 23698
f38a14ca
TG
23699cat >>confdefs.h <<_ACEOF
23700#define HAVE_JNF 1
23701_ACEOF
db9f46a9
TG
23702
23703 fi
23704
e8525382 23705
e8525382 23706
e8525382 23707
db9f46a9
TG
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23709$as_echo_n "checking for jn... " >&6; }
23710if test "${gcc_cv_math_func_jn+set}" = set; then :
5213506e 23711 $as_echo_n "(cached) " >&6
e8525382 23712else
db9f46a9 23713 if test x$gcc_no_link = xyes; then
5213506e 23714 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23715fi
5213506e 23716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23717/* end confdefs.h. */
23718
db9f46a9
TG
23719#ifdef HAVE_COMPLEX_H
23720#include <complex.h>
23721#endif
23722#ifdef HAVE_MATH_H
23723#include <math.h>
e8525382 23724#endif
db9f46a9
TG
23725
23726int (*ptr)() = (int (*)())jn;
23727
e8525382
SK
23728int
23729main ()
23730{
e8525382
SK
23731 return 0;
23732}
db9f46a9 23733
e8525382 23734_ACEOF
5213506e 23735if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23736 gcc_cv_math_func_jn=yes
e8525382 23737else
db9f46a9 23738 gcc_cv_math_func_jn=no
e8525382 23739fi
5213506e
RW
23740rm -f core conftest.err conftest.$ac_objext \
23741 conftest$ac_exeext conftest.$ac_ext
e8525382 23742fi
db9f46a9
TG
23743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23744$as_echo "$gcc_cv_math_func_jn" >&6; }
23745 if test $gcc_cv_math_func_jn = yes; then
f1cdfa01 23746
f38a14ca
TG
23747cat >>confdefs.h <<_ACEOF
23748#define HAVE_JN 1
23749_ACEOF
db9f46a9
TG
23750
23751 fi
e8525382 23752
e8525382 23753
e8525382 23754
db9f46a9
TG
23755
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23757$as_echo_n "checking for jnl... " >&6; }
23758if test "${gcc_cv_math_func_jnl+set}" = set; then :
5213506e 23759 $as_echo_n "(cached) " >&6
e8525382 23760else
db9f46a9 23761 if test x$gcc_no_link = xyes; then
5213506e 23762 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23763fi
5213506e 23764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23765/* end confdefs.h. */
23766
db9f46a9
TG
23767#ifdef HAVE_COMPLEX_H
23768#include <complex.h>
e8525382 23769#endif
db9f46a9
TG
23770#ifdef HAVE_MATH_H
23771#include <math.h>
23772#endif
23773
23774int (*ptr)() = (int (*)())jnl;
23775
e8525382
SK
23776int
23777main ()
23778{
e8525382
SK
23779 return 0;
23780}
db9f46a9 23781
e8525382 23782_ACEOF
5213506e 23783if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23784 gcc_cv_math_func_jnl=yes
e8525382 23785else
db9f46a9 23786 gcc_cv_math_func_jnl=no
e8525382 23787fi
5213506e
RW
23788rm -f core conftest.err conftest.$ac_objext \
23789 conftest$ac_exeext conftest.$ac_ext
e8525382 23790fi
db9f46a9
TG
23791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23792$as_echo "$gcc_cv_math_func_jnl" >&6; }
23793 if test $gcc_cv_math_func_jnl = yes; then
f1cdfa01 23794
f38a14ca
TG
23795cat >>confdefs.h <<_ACEOF
23796#define HAVE_JNL 1
23797_ACEOF
e8525382 23798
db9f46a9 23799 fi
e8525382 23800
e8525382 23801
db9f46a9
TG
23802
23803
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23805$as_echo_n "checking for y0f... " >&6; }
23806if test "${gcc_cv_math_func_y0f+set}" = set; then :
5213506e 23807 $as_echo_n "(cached) " >&6
e8525382 23808else
db9f46a9 23809 if test x$gcc_no_link = xyes; then
5213506e 23810 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23811fi
5213506e 23812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23813/* end confdefs.h. */
23814
db9f46a9
TG
23815#ifdef HAVE_COMPLEX_H
23816#include <complex.h>
23817#endif
23818#ifdef HAVE_MATH_H
23819#include <math.h>
e8525382 23820#endif
db9f46a9
TG
23821
23822int (*ptr)() = (int (*)())y0f;
23823
e8525382
SK
23824int
23825main ()
23826{
e8525382
SK
23827 return 0;
23828}
db9f46a9 23829
e8525382 23830_ACEOF
5213506e 23831if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23832 gcc_cv_math_func_y0f=yes
e8525382 23833else
db9f46a9 23834 gcc_cv_math_func_y0f=no
e8525382 23835fi
5213506e
RW
23836rm -f core conftest.err conftest.$ac_objext \
23837 conftest$ac_exeext conftest.$ac_ext
e8525382 23838fi
db9f46a9
TG
23839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23840$as_echo "$gcc_cv_math_func_y0f" >&6; }
23841 if test $gcc_cv_math_func_y0f = yes; then
f1cdfa01 23842
f38a14ca
TG
23843cat >>confdefs.h <<_ACEOF
23844#define HAVE_Y0F 1
23845_ACEOF
db9f46a9
TG
23846
23847 fi
e8525382 23848
e8525382 23849
e8525382 23850
db9f46a9
TG
23851
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23853$as_echo_n "checking for y0... " >&6; }
23854if test "${gcc_cv_math_func_y0+set}" = set; then :
5213506e 23855 $as_echo_n "(cached) " >&6
e8525382 23856else
db9f46a9 23857 if test x$gcc_no_link = xyes; then
5213506e 23858 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23859fi
5213506e 23860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23861/* end confdefs.h. */
23862
db9f46a9
TG
23863#ifdef HAVE_COMPLEX_H
23864#include <complex.h>
e8525382 23865#endif
db9f46a9
TG
23866#ifdef HAVE_MATH_H
23867#include <math.h>
23868#endif
23869
23870int (*ptr)() = (int (*)())y0;
23871
e8525382
SK
23872int
23873main ()
23874{
e8525382
SK
23875 return 0;
23876}
db9f46a9 23877
e8525382 23878_ACEOF
5213506e 23879if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23880 gcc_cv_math_func_y0=yes
e8525382 23881else
db9f46a9 23882 gcc_cv_math_func_y0=no
e8525382 23883fi
5213506e
RW
23884rm -f core conftest.err conftest.$ac_objext \
23885 conftest$ac_exeext conftest.$ac_ext
e8525382 23886fi
db9f46a9
TG
23887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23888$as_echo "$gcc_cv_math_func_y0" >&6; }
23889 if test $gcc_cv_math_func_y0 = yes; then
f1cdfa01 23890
f38a14ca
TG
23891cat >>confdefs.h <<_ACEOF
23892#define HAVE_Y0 1
23893_ACEOF
db9f46a9
TG
23894
23895 fi
23896
e8525382 23897
e8525382 23898
e8525382 23899
db9f46a9
TG
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
23901$as_echo_n "checking for y1f... " >&6; }
23902if test "${gcc_cv_math_func_y1f+set}" = set; then :
5213506e 23903 $as_echo_n "(cached) " >&6
e8525382 23904else
db9f46a9 23905 if test x$gcc_no_link = xyes; then
5213506e 23906 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23907fi
5213506e 23908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23909/* end confdefs.h. */
23910
db9f46a9
TG
23911#ifdef HAVE_COMPLEX_H
23912#include <complex.h>
e8525382 23913#endif
db9f46a9
TG
23914#ifdef HAVE_MATH_H
23915#include <math.h>
23916#endif
23917
23918int (*ptr)() = (int (*)())y1f;
23919
e8525382
SK
23920int
23921main ()
23922{
e8525382
SK
23923 return 0;
23924}
db9f46a9 23925
e8525382 23926_ACEOF
5213506e 23927if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23928 gcc_cv_math_func_y1f=yes
e8525382 23929else
db9f46a9 23930 gcc_cv_math_func_y1f=no
e8525382 23931fi
5213506e
RW
23932rm -f core conftest.err conftest.$ac_objext \
23933 conftest$ac_exeext conftest.$ac_ext
e8525382 23934fi
db9f46a9
TG
23935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
23936$as_echo "$gcc_cv_math_func_y1f" >&6; }
23937 if test $gcc_cv_math_func_y1f = yes; then
f1cdfa01 23938
f38a14ca
TG
23939cat >>confdefs.h <<_ACEOF
23940#define HAVE_Y1F 1
23941_ACEOF
e8525382 23942
db9f46a9 23943 fi
e8525382 23944
e8525382 23945
db9f46a9
TG
23946
23947
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
23949$as_echo_n "checking for y1... " >&6; }
23950if test "${gcc_cv_math_func_y1+set}" = set; then :
5213506e 23951 $as_echo_n "(cached) " >&6
e8525382 23952else
db9f46a9 23953 if test x$gcc_no_link = xyes; then
5213506e 23954 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23955fi
5213506e 23956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23957/* end confdefs.h. */
23958
db9f46a9
TG
23959#ifdef HAVE_COMPLEX_H
23960#include <complex.h>
23961#endif
23962#ifdef HAVE_MATH_H
23963#include <math.h>
e8525382 23964#endif
db9f46a9
TG
23965
23966int (*ptr)() = (int (*)())y1;
23967
e8525382
SK
23968int
23969main ()
23970{
e8525382
SK
23971 return 0;
23972}
db9f46a9 23973
e8525382 23974_ACEOF
5213506e 23975if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23976 gcc_cv_math_func_y1=yes
e8525382 23977else
db9f46a9 23978 gcc_cv_math_func_y1=no
e8525382 23979fi
5213506e
RW
23980rm -f core conftest.err conftest.$ac_objext \
23981 conftest$ac_exeext conftest.$ac_ext
e8525382 23982fi
db9f46a9
TG
23983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
23984$as_echo "$gcc_cv_math_func_y1" >&6; }
23985 if test $gcc_cv_math_func_y1 = yes; then
f1cdfa01 23986
f38a14ca
TG
23987cat >>confdefs.h <<_ACEOF
23988#define HAVE_Y1 1
23989_ACEOF
db9f46a9
TG
23990
23991 fi
e8525382 23992
e8525382 23993
e8525382 23994
db9f46a9 23995
db9f46a9
TG
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
23997$as_echo_n "checking for ynf... " >&6; }
23998if test "${gcc_cv_math_func_ynf+set}" = set; then :
5213506e 23999 $as_echo_n "(cached) " >&6
db9f46a9
TG
24000else
24001 if test x$gcc_no_link = xyes; then
5213506e 24002 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24003fi
5213506e 24004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24005/* end confdefs.h. */
24006
db9f46a9
TG
24007#ifdef HAVE_COMPLEX_H
24008#include <complex.h>
24009#endif
24010#ifdef HAVE_MATH_H
24011#include <math.h>
e8525382 24012#endif
db9f46a9
TG
24013
24014int (*ptr)() = (int (*)())ynf;
24015
e8525382
SK
24016int
24017main ()
24018{
e8525382
SK
24019 return 0;
24020}
db9f46a9 24021
e8525382 24022_ACEOF
5213506e 24023if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24024 gcc_cv_math_func_ynf=yes
e8525382 24025else
db9f46a9 24026 gcc_cv_math_func_ynf=no
e8525382 24027fi
5213506e
RW
24028rm -f core conftest.err conftest.$ac_objext \
24029 conftest$ac_exeext conftest.$ac_ext
e8525382 24030fi
db9f46a9
TG
24031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24032$as_echo "$gcc_cv_math_func_ynf" >&6; }
24033 if test $gcc_cv_math_func_ynf = yes; then
f1cdfa01 24034
f38a14ca
TG
24035cat >>confdefs.h <<_ACEOF
24036#define HAVE_YNF 1
24037_ACEOF
db9f46a9
TG
24038
24039 fi
e8525382 24040
e8525382 24041
e8525382 24042
db9f46a9
TG
24043
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24045$as_echo_n "checking for yn... " >&6; }
24046if test "${gcc_cv_math_func_yn+set}" = set; then :
5213506e 24047 $as_echo_n "(cached) " >&6
e8525382 24048else
db9f46a9 24049 if test x$gcc_no_link = xyes; then
5213506e 24050 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24051fi
5213506e 24052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24053/* end confdefs.h. */
24054
db9f46a9
TG
24055#ifdef HAVE_COMPLEX_H
24056#include <complex.h>
e8525382 24057#endif
db9f46a9
TG
24058#ifdef HAVE_MATH_H
24059#include <math.h>
24060#endif
24061
24062int (*ptr)() = (int (*)())yn;
24063
e8525382
SK
24064int
24065main ()
24066{
e8525382
SK
24067 return 0;
24068}
db9f46a9 24069
e8525382 24070_ACEOF
5213506e 24071if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24072 gcc_cv_math_func_yn=yes
e8525382 24073else
db9f46a9 24074 gcc_cv_math_func_yn=no
e8525382 24075fi
5213506e
RW
24076rm -f core conftest.err conftest.$ac_objext \
24077 conftest$ac_exeext conftest.$ac_ext
e8525382 24078fi
db9f46a9
TG
24079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24080$as_echo "$gcc_cv_math_func_yn" >&6; }
24081 if test $gcc_cv_math_func_yn = yes; then
f1cdfa01 24082
f38a14ca
TG
24083cat >>confdefs.h <<_ACEOF
24084#define HAVE_YN 1
24085_ACEOF
db9f46a9
TG
24086
24087 fi
24088
e8525382 24089
e8525382 24090
e8525382 24091
db9f46a9
TG
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24093$as_echo_n "checking for ynl... " >&6; }
24094if test "${gcc_cv_math_func_ynl+set}" = set; then :
5213506e 24095 $as_echo_n "(cached) " >&6
e8525382 24096else
db9f46a9 24097 if test x$gcc_no_link = xyes; then
5213506e 24098 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24099fi
5213506e 24100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24101/* end confdefs.h. */
24102
db9f46a9
TG
24103#ifdef HAVE_COMPLEX_H
24104#include <complex.h>
24105#endif
24106#ifdef HAVE_MATH_H
24107#include <math.h>
e8525382 24108#endif
db9f46a9
TG
24109
24110int (*ptr)() = (int (*)())ynl;
24111
e8525382
SK
24112int
24113main ()
24114{
e8525382
SK
24115 return 0;
24116}
db9f46a9 24117
e8525382 24118_ACEOF
5213506e 24119if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24120 gcc_cv_math_func_ynl=yes
e8525382 24121else
db9f46a9 24122 gcc_cv_math_func_ynl=no
e8525382 24123fi
5213506e
RW
24124rm -f core conftest.err conftest.$ac_objext \
24125 conftest$ac_exeext conftest.$ac_ext
e8525382 24126fi
db9f46a9
TG
24127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24128$as_echo "$gcc_cv_math_func_ynl" >&6; }
24129 if test $gcc_cv_math_func_ynl = yes; then
f1cdfa01 24130
f38a14ca
TG
24131cat >>confdefs.h <<_ACEOF
24132#define HAVE_YNL 1
24133_ACEOF
db9f46a9
TG
24134
24135 fi
e8525382 24136
e8525382 24137
e8525382 24138
db9f46a9
TG
24139
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24141$as_echo_n "checking for tgamma... " >&6; }
24142if test "${gcc_cv_math_func_tgamma+set}" = set; then :
5213506e 24143 $as_echo_n "(cached) " >&6
fb0a0e15 24144else
db9f46a9 24145 if test x$gcc_no_link = xyes; then
5213506e 24146 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24147fi
5213506e 24148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24149/* end confdefs.h. */
24150
db9f46a9
TG
24151#ifdef HAVE_COMPLEX_H
24152#include <complex.h>
fb0a0e15 24153#endif
db9f46a9
TG
24154#ifdef HAVE_MATH_H
24155#include <math.h>
24156#endif
24157
24158int (*ptr)() = (int (*)())tgamma;
24159
fb0a0e15
FXC
24160int
24161main ()
24162{
fb0a0e15
FXC
24163 return 0;
24164}
db9f46a9 24165
fb0a0e15 24166_ACEOF
5213506e 24167if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24168 gcc_cv_math_func_tgamma=yes
fb0a0e15 24169else
db9f46a9 24170 gcc_cv_math_func_tgamma=no
fb0a0e15 24171fi
5213506e
RW
24172rm -f core conftest.err conftest.$ac_objext \
24173 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24174fi
db9f46a9
TG
24175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24176$as_echo "$gcc_cv_math_func_tgamma" >&6; }
24177 if test $gcc_cv_math_func_tgamma = yes; then
f1cdfa01 24178
f38a14ca
TG
24179cat >>confdefs.h <<_ACEOF
24180#define HAVE_TGAMMA 1
24181_ACEOF
fb0a0e15 24182
db9f46a9 24183 fi
fb0a0e15 24184
fb0a0e15 24185
db9f46a9
TG
24186
24187
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24189$as_echo_n "checking for tgammaf... " >&6; }
24190if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
5213506e 24191 $as_echo_n "(cached) " >&6
fb0a0e15 24192else
db9f46a9 24193 if test x$gcc_no_link = xyes; then
5213506e 24194 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24195fi
5213506e 24196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24197/* end confdefs.h. */
24198
db9f46a9
TG
24199#ifdef HAVE_COMPLEX_H
24200#include <complex.h>
24201#endif
24202#ifdef HAVE_MATH_H
24203#include <math.h>
fb0a0e15 24204#endif
db9f46a9
TG
24205
24206int (*ptr)() = (int (*)())tgammaf;
24207
fb0a0e15
FXC
24208int
24209main ()
24210{
fb0a0e15
FXC
24211 return 0;
24212}
db9f46a9 24213
fb0a0e15 24214_ACEOF
5213506e 24215if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24216 gcc_cv_math_func_tgammaf=yes
fb0a0e15 24217else
db9f46a9 24218 gcc_cv_math_func_tgammaf=no
fb0a0e15 24219fi
5213506e
RW
24220rm -f core conftest.err conftest.$ac_objext \
24221 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24222fi
db9f46a9
TG
24223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24224$as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24225 if test $gcc_cv_math_func_tgammaf = yes; then
f1cdfa01 24226
f38a14ca
TG
24227cat >>confdefs.h <<_ACEOF
24228#define HAVE_TGAMMAF 1
24229_ACEOF
db9f46a9
TG
24230
24231 fi
fb0a0e15 24232
fb0a0e15 24233
fb0a0e15 24234
db9f46a9 24235
db9f46a9
TG
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24237$as_echo_n "checking for lgamma... " >&6; }
24238if test "${gcc_cv_math_func_lgamma+set}" = set; then :
5213506e 24239 $as_echo_n "(cached) " >&6
fb0a0e15 24240else
db9f46a9 24241 if test x$gcc_no_link = xyes; then
5213506e 24242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24243fi
5213506e 24244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24245/* end confdefs.h. */
24246
db9f46a9
TG
24247#ifdef HAVE_COMPLEX_H
24248#include <complex.h>
24249#endif
24250#ifdef HAVE_MATH_H
24251#include <math.h>
fb0a0e15 24252#endif
db9f46a9
TG
24253
24254int (*ptr)() = (int (*)())lgamma;
24255
fb0a0e15
FXC
24256int
24257main ()
24258{
fb0a0e15
FXC
24259 return 0;
24260}
db9f46a9 24261
fb0a0e15 24262_ACEOF
5213506e 24263if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24264 gcc_cv_math_func_lgamma=yes
fb0a0e15 24265else
db9f46a9 24266 gcc_cv_math_func_lgamma=no
fb0a0e15 24267fi
5213506e
RW
24268rm -f core conftest.err conftest.$ac_objext \
24269 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24270fi
db9f46a9
TG
24271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24272$as_echo "$gcc_cv_math_func_lgamma" >&6; }
24273 if test $gcc_cv_math_func_lgamma = yes; then
f1cdfa01 24274
f38a14ca
TG
24275cat >>confdefs.h <<_ACEOF
24276#define HAVE_LGAMMA 1
24277_ACEOF
db9f46a9
TG
24278
24279 fi
fb0a0e15 24280
fb0a0e15 24281
fb0a0e15 24282
db9f46a9
TG
24283
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24285$as_echo_n "checking for lgammaf... " >&6; }
24286if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
5213506e 24287 $as_echo_n "(cached) " >&6
fb0a0e15 24288else
db9f46a9 24289 if test x$gcc_no_link = xyes; then
5213506e 24290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24291fi
5213506e 24292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24293/* end confdefs.h. */
24294
db9f46a9
TG
24295#ifdef HAVE_COMPLEX_H
24296#include <complex.h>
fb0a0e15 24297#endif
db9f46a9
TG
24298#ifdef HAVE_MATH_H
24299#include <math.h>
24300#endif
24301
24302int (*ptr)() = (int (*)())lgammaf;
24303
fb0a0e15
FXC
24304int
24305main ()
24306{
fb0a0e15
FXC
24307 return 0;
24308}
db9f46a9 24309
fb0a0e15 24310_ACEOF
5213506e 24311if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24312 gcc_cv_math_func_lgammaf=yes
fb0a0e15 24313else
db9f46a9 24314 gcc_cv_math_func_lgammaf=no
fb0a0e15 24315fi
5213506e
RW
24316rm -f core conftest.err conftest.$ac_objext \
24317 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24318fi
db9f46a9
TG
24319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24320$as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24321 if test $gcc_cv_math_func_lgammaf = yes; then
f1cdfa01 24322
f38a14ca
TG
24323cat >>confdefs.h <<_ACEOF
24324#define HAVE_LGAMMAF 1
24325_ACEOF
fb0a0e15 24326
db9f46a9 24327 fi
fb0a0e15 24328
fb0a0e15 24329
db1cf15c 24330# Check for GFORTRAN_C99_1.1 funcs
db9f46a9
TG
24331
24332
24333
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24335$as_echo_n "checking for cacos... " >&6; }
24336if test "${gcc_cv_math_func_cacos+set}" = set; then :
db1cf15c
IS
24337 $as_echo_n "(cached) " >&6
24338else
db9f46a9 24339 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24340 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24341fi
24342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24343/* end confdefs.h. */
24344
db9f46a9
TG
24345#ifdef HAVE_COMPLEX_H
24346#include <complex.h>
db1cf15c 24347#endif
db9f46a9
TG
24348#ifdef HAVE_MATH_H
24349#include <math.h>
24350#endif
24351
24352int (*ptr)() = (int (*)())cacos;
24353
db1cf15c
IS
24354int
24355main ()
24356{
db1cf15c
IS
24357 return 0;
24358}
db9f46a9 24359
db1cf15c
IS
24360_ACEOF
24361if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24362 gcc_cv_math_func_cacos=yes
db1cf15c 24363else
db9f46a9 24364 gcc_cv_math_func_cacos=no
db1cf15c
IS
24365fi
24366rm -f core conftest.err conftest.$ac_objext \
24367 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24368fi
db9f46a9
TG
24369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24370$as_echo "$gcc_cv_math_func_cacos" >&6; }
24371 if test $gcc_cv_math_func_cacos = yes; then
f1cdfa01 24372
f38a14ca
TG
24373cat >>confdefs.h <<_ACEOF
24374#define HAVE_CACOS 1
24375_ACEOF
db1cf15c 24376
db9f46a9 24377 fi
db1cf15c 24378
db1cf15c 24379
db9f46a9
TG
24380
24381
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24383$as_echo_n "checking for cacosf... " >&6; }
24384if test "${gcc_cv_math_func_cacosf+set}" = set; then :
db1cf15c
IS
24385 $as_echo_n "(cached) " >&6
24386else
db9f46a9 24387 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24388 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24389fi
24390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24391/* end confdefs.h. */
24392
db9f46a9
TG
24393#ifdef HAVE_COMPLEX_H
24394#include <complex.h>
24395#endif
24396#ifdef HAVE_MATH_H
24397#include <math.h>
db1cf15c 24398#endif
db9f46a9
TG
24399
24400int (*ptr)() = (int (*)())cacosf;
24401
db1cf15c
IS
24402int
24403main ()
24404{
db1cf15c
IS
24405 return 0;
24406}
db9f46a9 24407
db1cf15c
IS
24408_ACEOF
24409if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24410 gcc_cv_math_func_cacosf=yes
db1cf15c 24411else
db9f46a9 24412 gcc_cv_math_func_cacosf=no
db1cf15c
IS
24413fi
24414rm -f core conftest.err conftest.$ac_objext \
24415 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24416fi
db9f46a9
TG
24417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24418$as_echo "$gcc_cv_math_func_cacosf" >&6; }
24419 if test $gcc_cv_math_func_cacosf = yes; then
f1cdfa01 24420
f38a14ca
TG
24421cat >>confdefs.h <<_ACEOF
24422#define HAVE_CACOSF 1
24423_ACEOF
db9f46a9
TG
24424
24425 fi
db1cf15c 24426
db1cf15c 24427
db1cf15c 24428
db9f46a9
TG
24429
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24431$as_echo_n "checking for cacosh... " >&6; }
24432if test "${gcc_cv_math_func_cacosh+set}" = set; then :
db1cf15c
IS
24433 $as_echo_n "(cached) " >&6
24434else
db9f46a9 24435 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24436 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24437fi
24438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24439/* end confdefs.h. */
24440
db9f46a9
TG
24441#ifdef HAVE_COMPLEX_H
24442#include <complex.h>
db1cf15c 24443#endif
db9f46a9
TG
24444#ifdef HAVE_MATH_H
24445#include <math.h>
24446#endif
24447
24448int (*ptr)() = (int (*)())cacosh;
24449
db1cf15c
IS
24450int
24451main ()
24452{
db1cf15c
IS
24453 return 0;
24454}
db9f46a9 24455
db1cf15c
IS
24456_ACEOF
24457if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24458 gcc_cv_math_func_cacosh=yes
db1cf15c 24459else
db9f46a9 24460 gcc_cv_math_func_cacosh=no
db1cf15c
IS
24461fi
24462rm -f core conftest.err conftest.$ac_objext \
24463 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24464fi
db9f46a9
TG
24465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24466$as_echo "$gcc_cv_math_func_cacosh" >&6; }
24467 if test $gcc_cv_math_func_cacosh = yes; then
f1cdfa01 24468
f38a14ca
TG
24469cat >>confdefs.h <<_ACEOF
24470#define HAVE_CACOSH 1
24471_ACEOF
db9f46a9
TG
24472
24473 fi
24474
db1cf15c 24475
db1cf15c 24476
db1cf15c 24477
db9f46a9
TG
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24479$as_echo_n "checking for cacoshf... " >&6; }
24480if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
db1cf15c
IS
24481 $as_echo_n "(cached) " >&6
24482else
db9f46a9 24483 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24484 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24485fi
24486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24487/* end confdefs.h. */
24488
db9f46a9
TG
24489#ifdef HAVE_COMPLEX_H
24490#include <complex.h>
24491#endif
24492#ifdef HAVE_MATH_H
24493#include <math.h>
db1cf15c 24494#endif
db9f46a9
TG
24495
24496int (*ptr)() = (int (*)())cacoshf;
24497
db1cf15c
IS
24498int
24499main ()
24500{
db1cf15c
IS
24501 return 0;
24502}
db9f46a9 24503
db1cf15c
IS
24504_ACEOF
24505if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24506 gcc_cv_math_func_cacoshf=yes
db1cf15c 24507else
db9f46a9 24508 gcc_cv_math_func_cacoshf=no
db1cf15c
IS
24509fi
24510rm -f core conftest.err conftest.$ac_objext \
24511 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24512fi
db9f46a9
TG
24513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24514$as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24515 if test $gcc_cv_math_func_cacoshf = yes; then
f1cdfa01 24516
f38a14ca
TG
24517cat >>confdefs.h <<_ACEOF
24518#define HAVE_CACOSHF 1
24519_ACEOF
db9f46a9
TG
24520
24521 fi
db1cf15c 24522
db1cf15c 24523
db1cf15c 24524
db9f46a9
TG
24525
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24527$as_echo_n "checking for cacoshl... " >&6; }
24528if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
db1cf15c
IS
24529 $as_echo_n "(cached) " >&6
24530else
db9f46a9 24531 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24532 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24533fi
24534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24535/* end confdefs.h. */
24536
db9f46a9
TG
24537#ifdef HAVE_COMPLEX_H
24538#include <complex.h>
db1cf15c 24539#endif
db9f46a9
TG
24540#ifdef HAVE_MATH_H
24541#include <math.h>
24542#endif
24543
24544int (*ptr)() = (int (*)())cacoshl;
24545
db1cf15c
IS
24546int
24547main ()
24548{
db1cf15c
IS
24549 return 0;
24550}
db9f46a9 24551
db1cf15c
IS
24552_ACEOF
24553if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24554 gcc_cv_math_func_cacoshl=yes
db1cf15c 24555else
db9f46a9 24556 gcc_cv_math_func_cacoshl=no
db1cf15c
IS
24557fi
24558rm -f core conftest.err conftest.$ac_objext \
24559 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24560fi
db9f46a9
TG
24561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24562$as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24563 if test $gcc_cv_math_func_cacoshl = yes; then
f1cdfa01 24564
f38a14ca
TG
24565cat >>confdefs.h <<_ACEOF
24566#define HAVE_CACOSHL 1
24567_ACEOF
db1cf15c 24568
db9f46a9 24569 fi
db1cf15c 24570
db1cf15c 24571
db9f46a9
TG
24572
24573
24574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24575$as_echo_n "checking for cacosl... " >&6; }
24576if test "${gcc_cv_math_func_cacosl+set}" = set; then :
db1cf15c
IS
24577 $as_echo_n "(cached) " >&6
24578else
db9f46a9 24579 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24580 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24581fi
24582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24583/* end confdefs.h. */
24584
db9f46a9
TG
24585#ifdef HAVE_COMPLEX_H
24586#include <complex.h>
24587#endif
24588#ifdef HAVE_MATH_H
24589#include <math.h>
db1cf15c 24590#endif
db9f46a9
TG
24591
24592int (*ptr)() = (int (*)())cacosl;
24593
db1cf15c
IS
24594int
24595main ()
24596{
db1cf15c
IS
24597 return 0;
24598}
db9f46a9 24599
db1cf15c
IS
24600_ACEOF
24601if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24602 gcc_cv_math_func_cacosl=yes
db1cf15c 24603else
db9f46a9 24604 gcc_cv_math_func_cacosl=no
db1cf15c
IS
24605fi
24606rm -f core conftest.err conftest.$ac_objext \
24607 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24608fi
db9f46a9
TG
24609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24610$as_echo "$gcc_cv_math_func_cacosl" >&6; }
24611 if test $gcc_cv_math_func_cacosl = yes; then
f1cdfa01 24612
f38a14ca
TG
24613cat >>confdefs.h <<_ACEOF
24614#define HAVE_CACOSL 1
24615_ACEOF
db9f46a9
TG
24616
24617 fi
db1cf15c 24618
db1cf15c 24619
db1cf15c 24620
db9f46a9
TG
24621
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24623$as_echo_n "checking for casin... " >&6; }
24624if test "${gcc_cv_math_func_casin+set}" = set; then :
db1cf15c
IS
24625 $as_echo_n "(cached) " >&6
24626else
db9f46a9 24627 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24628 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24629fi
24630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24631/* end confdefs.h. */
24632
db9f46a9
TG
24633#ifdef HAVE_COMPLEX_H
24634#include <complex.h>
db1cf15c 24635#endif
db9f46a9
TG
24636#ifdef HAVE_MATH_H
24637#include <math.h>
24638#endif
24639
24640int (*ptr)() = (int (*)())casin;
24641
db1cf15c
IS
24642int
24643main ()
24644{
db1cf15c
IS
24645 return 0;
24646}
db9f46a9 24647
db1cf15c
IS
24648_ACEOF
24649if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24650 gcc_cv_math_func_casin=yes
db1cf15c 24651else
db9f46a9 24652 gcc_cv_math_func_casin=no
db1cf15c
IS
24653fi
24654rm -f core conftest.err conftest.$ac_objext \
24655 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24656fi
db9f46a9
TG
24657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24658$as_echo "$gcc_cv_math_func_casin" >&6; }
24659 if test $gcc_cv_math_func_casin = yes; then
f1cdfa01 24660
f38a14ca
TG
24661cat >>confdefs.h <<_ACEOF
24662#define HAVE_CASIN 1
24663_ACEOF
db9f46a9
TG
24664
24665 fi
24666
db1cf15c 24667
db1cf15c 24668
db1cf15c 24669
db9f46a9
TG
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24671$as_echo_n "checking for casinf... " >&6; }
24672if test "${gcc_cv_math_func_casinf+set}" = set; then :
db1cf15c
IS
24673 $as_echo_n "(cached) " >&6
24674else
db9f46a9 24675 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24676 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24677fi
24678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24679/* end confdefs.h. */
24680
db9f46a9
TG
24681#ifdef HAVE_COMPLEX_H
24682#include <complex.h>
24683#endif
24684#ifdef HAVE_MATH_H
24685#include <math.h>
db1cf15c 24686#endif
db9f46a9
TG
24687
24688int (*ptr)() = (int (*)())casinf;
24689
db1cf15c
IS
24690int
24691main ()
24692{
db1cf15c
IS
24693 return 0;
24694}
db9f46a9 24695
db1cf15c
IS
24696_ACEOF
24697if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24698 gcc_cv_math_func_casinf=yes
db1cf15c 24699else
db9f46a9 24700 gcc_cv_math_func_casinf=no
db1cf15c
IS
24701fi
24702rm -f core conftest.err conftest.$ac_objext \
24703 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24704fi
db9f46a9
TG
24705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24706$as_echo "$gcc_cv_math_func_casinf" >&6; }
24707 if test $gcc_cv_math_func_casinf = yes; then
f1cdfa01 24708
f38a14ca
TG
24709cat >>confdefs.h <<_ACEOF
24710#define HAVE_CASINF 1
24711_ACEOF
db9f46a9
TG
24712
24713 fi
db1cf15c 24714
db1cf15c 24715
db1cf15c 24716
db9f46a9
TG
24717
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24719$as_echo_n "checking for casinh... " >&6; }
24720if test "${gcc_cv_math_func_casinh+set}" = set; then :
db1cf15c
IS
24721 $as_echo_n "(cached) " >&6
24722else
db9f46a9 24723 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24724 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24725fi
24726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24727/* end confdefs.h. */
24728
db9f46a9
TG
24729#ifdef HAVE_COMPLEX_H
24730#include <complex.h>
db1cf15c 24731#endif
db9f46a9
TG
24732#ifdef HAVE_MATH_H
24733#include <math.h>
24734#endif
24735
24736int (*ptr)() = (int (*)())casinh;
24737
db1cf15c
IS
24738int
24739main ()
24740{
db1cf15c
IS
24741 return 0;
24742}
db9f46a9 24743
db1cf15c
IS
24744_ACEOF
24745if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24746 gcc_cv_math_func_casinh=yes
db1cf15c 24747else
db9f46a9 24748 gcc_cv_math_func_casinh=no
db1cf15c
IS
24749fi
24750rm -f core conftest.err conftest.$ac_objext \
24751 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24752fi
db9f46a9
TG
24753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
24754$as_echo "$gcc_cv_math_func_casinh" >&6; }
24755 if test $gcc_cv_math_func_casinh = yes; then
f1cdfa01 24756
f38a14ca
TG
24757cat >>confdefs.h <<_ACEOF
24758#define HAVE_CASINH 1
24759_ACEOF
db1cf15c 24760
db9f46a9 24761 fi
db1cf15c 24762
db1cf15c 24763
db9f46a9
TG
24764
24765
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
24767$as_echo_n "checking for casinhf... " >&6; }
24768if test "${gcc_cv_math_func_casinhf+set}" = set; then :
db1cf15c
IS
24769 $as_echo_n "(cached) " >&6
24770else
db9f46a9 24771 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24772 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24773fi
24774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24775/* end confdefs.h. */
24776
db9f46a9
TG
24777#ifdef HAVE_COMPLEX_H
24778#include <complex.h>
24779#endif
24780#ifdef HAVE_MATH_H
24781#include <math.h>
db1cf15c 24782#endif
db9f46a9
TG
24783
24784int (*ptr)() = (int (*)())casinhf;
24785
db1cf15c
IS
24786int
24787main ()
24788{
db1cf15c
IS
24789 return 0;
24790}
db9f46a9 24791
db1cf15c
IS
24792_ACEOF
24793if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24794 gcc_cv_math_func_casinhf=yes
db1cf15c 24795else
db9f46a9 24796 gcc_cv_math_func_casinhf=no
db1cf15c
IS
24797fi
24798rm -f core conftest.err conftest.$ac_objext \
24799 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24800fi
db9f46a9
TG
24801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
24802$as_echo "$gcc_cv_math_func_casinhf" >&6; }
24803 if test $gcc_cv_math_func_casinhf = yes; then
f1cdfa01 24804
f38a14ca
TG
24805cat >>confdefs.h <<_ACEOF
24806#define HAVE_CASINHF 1
24807_ACEOF
db9f46a9
TG
24808
24809 fi
db1cf15c 24810
db1cf15c 24811
db1cf15c 24812
db9f46a9
TG
24813
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
24815$as_echo_n "checking for casinhl... " >&6; }
24816if test "${gcc_cv_math_func_casinhl+set}" = set; then :
db1cf15c
IS
24817 $as_echo_n "(cached) " >&6
24818else
db9f46a9 24819 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24820 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24821fi
24822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24823/* end confdefs.h. */
24824
db9f46a9
TG
24825#ifdef HAVE_COMPLEX_H
24826#include <complex.h>
db1cf15c 24827#endif
db9f46a9
TG
24828#ifdef HAVE_MATH_H
24829#include <math.h>
24830#endif
24831
24832int (*ptr)() = (int (*)())casinhl;
24833
db1cf15c
IS
24834int
24835main ()
24836{
db1cf15c
IS
24837 return 0;
24838}
db9f46a9 24839
db1cf15c
IS
24840_ACEOF
24841if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24842 gcc_cv_math_func_casinhl=yes
db1cf15c 24843else
db9f46a9 24844 gcc_cv_math_func_casinhl=no
db1cf15c
IS
24845fi
24846rm -f core conftest.err conftest.$ac_objext \
24847 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24848fi
db9f46a9
TG
24849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
24850$as_echo "$gcc_cv_math_func_casinhl" >&6; }
24851 if test $gcc_cv_math_func_casinhl = yes; then
f1cdfa01 24852
f38a14ca
TG
24853cat >>confdefs.h <<_ACEOF
24854#define HAVE_CASINHL 1
24855_ACEOF
db9f46a9
TG
24856
24857 fi
24858
db1cf15c 24859
db1cf15c 24860
db1cf15c 24861
db9f46a9
TG
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
24863$as_echo_n "checking for casinl... " >&6; }
24864if test "${gcc_cv_math_func_casinl+set}" = set; then :
db1cf15c
IS
24865 $as_echo_n "(cached) " >&6
24866else
db9f46a9 24867 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24868 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24869fi
24870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24871/* end confdefs.h. */
24872
db9f46a9
TG
24873#ifdef HAVE_COMPLEX_H
24874#include <complex.h>
24875#endif
24876#ifdef HAVE_MATH_H
24877#include <math.h>
db1cf15c 24878#endif
db9f46a9
TG
24879
24880int (*ptr)() = (int (*)())casinl;
24881
db1cf15c
IS
24882int
24883main ()
24884{
db1cf15c
IS
24885 return 0;
24886}
db9f46a9 24887
db1cf15c
IS
24888_ACEOF
24889if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24890 gcc_cv_math_func_casinl=yes
db1cf15c 24891else
db9f46a9 24892 gcc_cv_math_func_casinl=no
db1cf15c
IS
24893fi
24894rm -f core conftest.err conftest.$ac_objext \
24895 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24896fi
db9f46a9
TG
24897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
24898$as_echo "$gcc_cv_math_func_casinl" >&6; }
24899 if test $gcc_cv_math_func_casinl = yes; then
f1cdfa01 24900
f38a14ca
TG
24901cat >>confdefs.h <<_ACEOF
24902#define HAVE_CASINL 1
24903_ACEOF
db9f46a9
TG
24904
24905 fi
db1cf15c 24906
db1cf15c 24907
db1cf15c 24908
db9f46a9
TG
24909
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
24911$as_echo_n "checking for catan... " >&6; }
24912if test "${gcc_cv_math_func_catan+set}" = set; then :
db1cf15c
IS
24913 $as_echo_n "(cached) " >&6
24914else
db9f46a9 24915 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24916 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24917fi
24918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24919/* end confdefs.h. */
24920
db9f46a9
TG
24921#ifdef HAVE_COMPLEX_H
24922#include <complex.h>
db1cf15c 24923#endif
db9f46a9
TG
24924#ifdef HAVE_MATH_H
24925#include <math.h>
24926#endif
24927
24928int (*ptr)() = (int (*)())catan;
24929
db1cf15c
IS
24930int
24931main ()
24932{
db1cf15c
IS
24933 return 0;
24934}
db9f46a9 24935
db1cf15c
IS
24936_ACEOF
24937if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24938 gcc_cv_math_func_catan=yes
db1cf15c 24939else
db9f46a9 24940 gcc_cv_math_func_catan=no
db1cf15c
IS
24941fi
24942rm -f core conftest.err conftest.$ac_objext \
24943 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24944fi
db9f46a9
TG
24945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
24946$as_echo "$gcc_cv_math_func_catan" >&6; }
24947 if test $gcc_cv_math_func_catan = yes; then
f1cdfa01 24948
f38a14ca
TG
24949cat >>confdefs.h <<_ACEOF
24950#define HAVE_CATAN 1
24951_ACEOF
db1cf15c 24952
db9f46a9 24953 fi
db1cf15c 24954
db1cf15c 24955
db9f46a9
TG
24956
24957
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
24959$as_echo_n "checking for catanf... " >&6; }
24960if test "${gcc_cv_math_func_catanf+set}" = set; then :
db1cf15c
IS
24961 $as_echo_n "(cached) " >&6
24962else
db9f46a9 24963 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24964 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24965fi
24966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24967/* end confdefs.h. */
24968
db9f46a9
TG
24969#ifdef HAVE_COMPLEX_H
24970#include <complex.h>
24971#endif
24972#ifdef HAVE_MATH_H
24973#include <math.h>
db1cf15c 24974#endif
db9f46a9
TG
24975
24976int (*ptr)() = (int (*)())catanf;
24977
db1cf15c
IS
24978int
24979main ()
24980{
db1cf15c
IS
24981 return 0;
24982}
db9f46a9 24983
db1cf15c
IS
24984_ACEOF
24985if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24986 gcc_cv_math_func_catanf=yes
db1cf15c 24987else
db9f46a9 24988 gcc_cv_math_func_catanf=no
db1cf15c
IS
24989fi
24990rm -f core conftest.err conftest.$ac_objext \
24991 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24992fi
db9f46a9
TG
24993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
24994$as_echo "$gcc_cv_math_func_catanf" >&6; }
24995 if test $gcc_cv_math_func_catanf = yes; then
f1cdfa01 24996
f38a14ca
TG
24997cat >>confdefs.h <<_ACEOF
24998#define HAVE_CATANF 1
24999_ACEOF
db9f46a9
TG
25000
25001 fi
db1cf15c 25002
db1cf15c 25003
db1cf15c 25004
db9f46a9
TG
25005
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25007$as_echo_n "checking for catanh... " >&6; }
25008if test "${gcc_cv_math_func_catanh+set}" = set; then :
db1cf15c
IS
25009 $as_echo_n "(cached) " >&6
25010else
db9f46a9 25011 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25012 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25013fi
25014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25015/* end confdefs.h. */
25016
db9f46a9
TG
25017#ifdef HAVE_COMPLEX_H
25018#include <complex.h>
db1cf15c 25019#endif
db9f46a9
TG
25020#ifdef HAVE_MATH_H
25021#include <math.h>
25022#endif
25023
25024int (*ptr)() = (int (*)())catanh;
25025
db1cf15c
IS
25026int
25027main ()
25028{
db1cf15c
IS
25029 return 0;
25030}
db9f46a9 25031
db1cf15c
IS
25032_ACEOF
25033if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25034 gcc_cv_math_func_catanh=yes
db1cf15c 25035else
db9f46a9 25036 gcc_cv_math_func_catanh=no
db1cf15c
IS
25037fi
25038rm -f core conftest.err conftest.$ac_objext \
25039 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25040fi
db9f46a9
TG
25041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25042$as_echo "$gcc_cv_math_func_catanh" >&6; }
25043 if test $gcc_cv_math_func_catanh = yes; then
f1cdfa01 25044
f38a14ca
TG
25045cat >>confdefs.h <<_ACEOF
25046#define HAVE_CATANH 1
25047_ACEOF
db9f46a9
TG
25048
25049 fi
25050
db1cf15c 25051
db1cf15c 25052
db1cf15c 25053
db9f46a9
TG
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25055$as_echo_n "checking for catanhf... " >&6; }
25056if test "${gcc_cv_math_func_catanhf+set}" = set; then :
db1cf15c
IS
25057 $as_echo_n "(cached) " >&6
25058else
db9f46a9 25059 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25060 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25061fi
25062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25063/* end confdefs.h. */
25064
db9f46a9
TG
25065#ifdef HAVE_COMPLEX_H
25066#include <complex.h>
25067#endif
25068#ifdef HAVE_MATH_H
25069#include <math.h>
db1cf15c 25070#endif
db9f46a9
TG
25071
25072int (*ptr)() = (int (*)())catanhf;
25073
db1cf15c
IS
25074int
25075main ()
25076{
db1cf15c
IS
25077 return 0;
25078}
db9f46a9 25079
db1cf15c
IS
25080_ACEOF
25081if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25082 gcc_cv_math_func_catanhf=yes
db1cf15c 25083else
db9f46a9 25084 gcc_cv_math_func_catanhf=no
db1cf15c
IS
25085fi
25086rm -f core conftest.err conftest.$ac_objext \
25087 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25088fi
db9f46a9
TG
25089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25090$as_echo "$gcc_cv_math_func_catanhf" >&6; }
25091 if test $gcc_cv_math_func_catanhf = yes; then
f1cdfa01 25092
f38a14ca
TG
25093cat >>confdefs.h <<_ACEOF
25094#define HAVE_CATANHF 1
25095_ACEOF
db9f46a9
TG
25096
25097 fi
db1cf15c 25098
db1cf15c 25099
db1cf15c 25100
db9f46a9
TG
25101
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25103$as_echo_n "checking for catanhl... " >&6; }
25104if test "${gcc_cv_math_func_catanhl+set}" = set; then :
db1cf15c
IS
25105 $as_echo_n "(cached) " >&6
25106else
db9f46a9 25107 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25108 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25109fi
25110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25111/* end confdefs.h. */
25112
db9f46a9
TG
25113#ifdef HAVE_COMPLEX_H
25114#include <complex.h>
db1cf15c 25115#endif
db9f46a9
TG
25116#ifdef HAVE_MATH_H
25117#include <math.h>
25118#endif
25119
25120int (*ptr)() = (int (*)())catanhl;
25121
db1cf15c
IS
25122int
25123main ()
25124{
db1cf15c
IS
25125 return 0;
25126}
db9f46a9 25127
db1cf15c
IS
25128_ACEOF
25129if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25130 gcc_cv_math_func_catanhl=yes
db1cf15c 25131else
db9f46a9 25132 gcc_cv_math_func_catanhl=no
db1cf15c
IS
25133fi
25134rm -f core conftest.err conftest.$ac_objext \
25135 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25136fi
db9f46a9
TG
25137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25138$as_echo "$gcc_cv_math_func_catanhl" >&6; }
25139 if test $gcc_cv_math_func_catanhl = yes; then
f1cdfa01 25140
f38a14ca
TG
25141cat >>confdefs.h <<_ACEOF
25142#define HAVE_CATANHL 1
25143_ACEOF
db1cf15c 25144
db9f46a9 25145 fi
db1cf15c 25146
db1cf15c 25147
db9f46a9
TG
25148
25149
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25151$as_echo_n "checking for catanl... " >&6; }
25152if test "${gcc_cv_math_func_catanl+set}" = set; then :
db1cf15c
IS
25153 $as_echo_n "(cached) " >&6
25154else
db9f46a9 25155 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25156 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25157fi
25158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25159/* end confdefs.h. */
25160
db9f46a9
TG
25161#ifdef HAVE_COMPLEX_H
25162#include <complex.h>
25163#endif
25164#ifdef HAVE_MATH_H
25165#include <math.h>
db1cf15c 25166#endif
db9f46a9
TG
25167
25168int (*ptr)() = (int (*)())catanl;
25169
db1cf15c
IS
25170int
25171main ()
25172{
db1cf15c
IS
25173 return 0;
25174}
db9f46a9 25175
db1cf15c
IS
25176_ACEOF
25177if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25178 gcc_cv_math_func_catanl=yes
db1cf15c 25179else
db9f46a9 25180 gcc_cv_math_func_catanl=no
db1cf15c
IS
25181fi
25182rm -f core conftest.err conftest.$ac_objext \
25183 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25184fi
db9f46a9
TG
25185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25186$as_echo "$gcc_cv_math_func_catanl" >&6; }
25187 if test $gcc_cv_math_func_catanl = yes; then
f1cdfa01 25188
f38a14ca
TG
25189cat >>confdefs.h <<_ACEOF
25190#define HAVE_CATANL 1
25191_ACEOF
db1cf15c 25192
db9f46a9 25193 fi
db1cf15c
IS
25194
25195
118ea208 25196# On AIX, clog is present in libm as __clog
5213506e
RW
25197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25198$as_echo_n "checking for __clog in -lm... " >&6; }
25199if test "${ac_cv_lib_m___clog+set}" = set; then :
25200 $as_echo_n "(cached) " >&6
e097b4f1
DE
25201else
25202 ac_check_lib_save_LIBS=$LIBS
25203LIBS="-lm $LIBS"
25204if test x$gcc_no_link = xyes; then
5213506e 25205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e097b4f1 25206fi
5213506e 25207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e097b4f1
DE
25208/* end confdefs.h. */
25209
5213506e
RW
25210/* Override any GCC internal prototype to avoid an error.
25211 Use char because int might match the return type of a GCC
25212 builtin and then its argument prototype would still apply. */
e097b4f1
DE
25213#ifdef __cplusplus
25214extern "C"
25215#endif
e097b4f1
DE
25216char __clog ();
25217int
25218main ()
25219{
5213506e 25220return __clog ();
e097b4f1
DE
25221 ;
25222 return 0;
25223}
25224_ACEOF
5213506e 25225if ac_fn_c_try_link "$LINENO"; then :
e097b4f1
DE
25226 ac_cv_lib_m___clog=yes
25227else
5213506e 25228 ac_cv_lib_m___clog=no
e097b4f1 25229fi
5213506e
RW
25230rm -f core conftest.err conftest.$ac_objext \
25231 conftest$ac_exeext conftest.$ac_ext
e097b4f1
DE
25232LIBS=$ac_check_lib_save_LIBS
25233fi
5213506e
RW
25234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25235$as_echo "$ac_cv_lib_m___clog" >&6; }
25236if test "x$ac_cv_lib_m___clog" = x""yes; then :
e097b4f1 25237
5213506e 25238$as_echo "#define HAVE_CLOG 1" >>confdefs.h
e097b4f1
DE
25239
25240fi
25241
25242
ad238e4f
FXC
25243# Check whether the system has a working stat()
25244
5213506e
RW
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25246$as_echo_n "checking whether the target stat is reliable... " >&6; }
25247if test "${libgfor_cv_have_working_stat+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
ad238e4f
FXC
25249else
25250
5213506e 25251 if test "$cross_compiling" = yes; then :
ad238e4f
FXC
25252
25253case "${target}" in
6d26724a
RW
25254 *mingw*) libgfor_cv_have_working_stat=no ;;
25255 *) libgfor_cv_have_working_stat=yes;;
ad238e4f
FXC
25256esac
25257else
5213506e 25258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad238e4f
FXC
25259/* end confdefs.h. */
25260
25261#include <stdio.h>
25262#include <sys/types.h>
25263#include <sys/stat.h>
25264#include <unistd.h>
25265
25266int main ()
25267{
25268 FILE *f, *g;
25269 struct stat st1, st2;
25270
25271 f = fopen ("foo", "w");
25272 g = fopen ("bar", "w");
25273 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25274 return 1;
25275 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25276 return 1;
25277 fclose(f);
25278 fclose(g);
25279 return 0;
25280}
25281_ACEOF
5213506e 25282if ac_fn_c_try_run "$LINENO"; then :
6d26724a 25283 libgfor_cv_have_working_stat=yes
ad238e4f 25284else
5213506e 25285 libgfor_cv_have_working_stat=no
ad238e4f 25286fi
5213506e
RW
25287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25288 conftest.$ac_objext conftest.beam conftest.$ac_ext
ad238e4f 25289fi
5213506e 25290
ad238e4f 25291fi
5213506e
RW
25292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25293$as_echo "$libgfor_cv_have_working_stat" >&6; }
6d26724a 25294if test x"$libgfor_cv_have_working_stat" = xyes; then
ad238e4f 25295
5213506e 25296$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
ad238e4f
FXC
25297
25298fi
25299
db8092dc
FXC
25300# Check whether __mingw_snprintf() is present
25301
5213506e
RW
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25303$as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25304if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25305 $as_echo_n "(cached) " >&6
db8092dc
FXC
25306else
25307
25308 if test x$gcc_no_link = xyes; then
5213506e 25309 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db8092dc 25310fi
5213506e 25311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db8092dc
FXC
25312/* end confdefs.h. */
25313
25314#include <stdio.h>
25315extern int __mingw_snprintf (char *, size_t, const char *, ...);
25316
25317int
25318main ()
25319{
25320
25321__mingw_snprintf (NULL, 0, "%d\n", 1);
25322
25323 ;
25324 return 0;
25325}
25326_ACEOF
5213506e 25327if ac_fn_c_try_link "$LINENO"; then :
6d26724a 25328 eval "libgfor_cv_have_mingw_snprintf=yes"
db8092dc 25329else
5213506e 25330 eval "libgfor_cv_have_mingw_snprintf=no"
db8092dc 25331fi
5213506e
RW
25332rm -f core conftest.err conftest.$ac_objext \
25333 conftest$ac_exeext conftest.$ac_ext
db8092dc
FXC
25334
25335fi
5213506e
RW
25336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25337$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
6d26724a 25338 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
db8092dc 25339
5213506e 25340$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
db8092dc
FXC
25341
25342 fi
25343
25344
87e6d9dc
TB
25345# Check whether libquadmath should be used
25346# Check whether --enable-libquadmath-support was given.
25347if test "${enable_libquadmath_support+set}" = set; then :
25348 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25349else
25350 ENABLE_LIBQUADMATH_SUPPORT=yes
25351fi
25352
25353enable_libquadmath_support=
25354if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25355 enable_libquadmath_support=no
25356fi
25357
25358# Check whether we have a __float128 type, depends on enable_libquadmath_support
1ec601bf
FXC
25359
25360 LIBQUADSPEC=
87e6d9dc
TB
25361
25362 if test "x$enable_libquadmath_support" != xno; then
25363
1ec601bf
FXC
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25365$as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25366if test "${libgfor_cv_have_float128+set}" = set; then :
25367 $as_echo_n "(cached) " >&6
25368else
25369
69eb61d4
TB
25370 if test x$gcc_no_link = xyes; then
25371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
25372/* end confdefs.h. */
25373
69eb61d4
TB
25374 typedef _Complex float __attribute__((mode(TC))) __complex128;
25375
25376 __float128 foo (__float128 x)
25377 {
25378
25379 __complex128 z1, z2;
25380
25381 z1 = x;
25382 z2 = x / 7.Q;
25383 z2 /= z1;
25384
25385 return (__float128) z2;
25386 }
25387
25388 __float128 bar (__float128 x)
25389 {
25390 return x * __builtin_huge_valq ();
25391 }
1ec601bf
FXC
25392
25393int
25394main ()
25395{
25396
69eb61d4
TB
25397 foo (1.2Q);
25398 bar (1.2Q);
1ec601bf 25399
69eb61d4
TB
25400 ;
25401 return 0;
25402}
25403_ACEOF
25404if ac_fn_c_try_compile "$LINENO"; then :
1ec601bf 25405
69eb61d4 25406 libgfor_cv_have_float128=yes
1ec601bf 25407
69eb61d4
TB
25408else
25409
25410 libgfor_cv_have_float128=no
25411
25412fi
25413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25414else
25415 if test x$gcc_no_link = xyes; then
25416 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25417fi
25418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25419/* end confdefs.h. */
25420
25421 typedef _Complex float __attribute__((mode(TC))) __complex128;
25422
25423 __float128 foo (__float128 x)
25424 {
25425
25426 __complex128 z1, z2;
25427
25428 z1 = x;
25429 z2 = x / 7.Q;
25430 z2 /= z1;
25431
25432 return (__float128) z2;
25433 }
25434
25435 __float128 bar (__float128 x)
25436 {
25437 return x * __builtin_huge_valq ();
25438 }
25439
25440int
25441main ()
25442{
25443
25444 foo (1.2Q);
25445 bar (1.2Q);
1ec601bf
FXC
25446
25447 ;
25448 return 0;
25449}
25450_ACEOF
25451if ac_fn_c_try_link "$LINENO"; then :
69eb61d4
TB
25452
25453 libgfor_cv_have_float128=yes
25454
1ec601bf 25455else
69eb61d4
TB
25456
25457 libgfor_cv_have_float128=no
25458
1ec601bf
FXC
25459fi
25460rm -f core conftest.err conftest.$ac_objext \
25461 conftest$ac_exeext conftest.$ac_ext
69eb61d4 25462fi
1ec601bf
FXC
25463fi
25464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25465$as_echo "$libgfor_cv_have_float128" >&6; }
25466
25467 if test "x$libgfor_cv_have_float128" = xyes; then
25468
25469$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25470
25471
25472 ac_xsave_c_werror_flag=$ac_c_werror_flag
828012a5
RO
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25474$as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
1ec601bf
FXC
25475if test "${libgfor_cv_have_as_needed+set}" = set; then :
25476 $as_echo_n "(cached) " >&6
25477else
25478
828012a5
RO
25479 # Test for native Solaris options first.
25480 # No whitespace after -z to pass it through -Wl.
25481 libgfor_cv_as_needed_option="-zignore"
25482 libgfor_cv_no_as_needed_option="-zrecord"
1ec601bf 25483 save_LDFLAGS="$LDFLAGS"
828012a5 25484 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
1ec601bf
FXC
25485 libgfor_cv_have_as_needed=no
25486
25487ac_c_werror_flag=yes
25488 if test x$gcc_no_link = xyes; then
25489 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25490fi
25491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25492/* end confdefs.h. */
25493
25494int
25495main ()
25496{
25497
25498 ;
25499 return 0;
25500}
25501_ACEOF
25502if ac_fn_c_try_link "$LINENO"; then :
25503 libgfor_cv_have_as_needed=yes
25504else
25505 libgfor_cv_have_as_needed=no
25506fi
25507rm -f core conftest.err conftest.$ac_objext \
25508 conftest$ac_exeext conftest.$ac_ext
25509 LDFLAGS="$save_LDFLAGS"
828012a5
RO
25510 if test "x$libgfor_cv_have_as_needed" = xno; then
25511 libgfor_cv_as_needed_option="--as-needed"
25512 libgfor_cv_no_as_needed_option="--no-as-needed"
25513 save_LDFLAGS="$LDFLAGS"
25514 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25515 libgfor_cv_have_as_needed=no
25516
25517ac_c_werror_flag=yes
25518 if test x$gcc_no_link = xyes; then
25519 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25520fi
25521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522/* end confdefs.h. */
25523
25524int
25525main ()
25526{
25527
25528 ;
25529 return 0;
25530}
25531_ACEOF
25532if ac_fn_c_try_link "$LINENO"; then :
25533 libgfor_cv_have_as_needed=yes
25534else
25535 libgfor_cv_have_as_needed=no
25536fi
25537rm -f core conftest.err conftest.$ac_objext \
25538 conftest$ac_exeext conftest.$ac_ext
25539 LDFLAGS="$save_LDFLAGS"
25540 fi
1ec601bf
FXC
25541 ac_c_werror_flag=$ac_xsave_c_werror_flag
25542
25543fi
25544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25545$as_echo "$libgfor_cv_have_as_needed" >&6; }
25546
25547 if test "x$libgfor_cv_have_as_needed" = xyes; then
828012a5 25548 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
1ec601bf
FXC
25549 else
25550 LIBQUADSPEC="-lquadmath"
25551 fi
25552 if test -f ../libquadmath/libquadmath.la; then
25553 LIBQUADLIB=../libquadmath/libquadmath.la
25554 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25555 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25556 else
25557 LIBQUADLIB="-lquadmath"
25558 LIBQUADLIB_DEP=
25559 LIBQUADINCLUDE=
25560 fi
25561 fi
87e6d9dc
TB
25562 else
25563 # for --disable-quadmath
25564 LIBQUADLIB=
25565 LIBQUADLIB_DEP=
25566 LIBQUADINCLUDE=
25567 fi
1ec601bf
FXC
25568
25569
25570
25571
25572
25573
25574 if test "x$libgfor_cv_have_float128" = xyes; then
25575 LIBGFOR_BUILD_QUAD_TRUE=
25576 LIBGFOR_BUILD_QUAD_FALSE='#'
25577else
25578 LIBGFOR_BUILD_QUAD_TRUE='#'
25579 LIBGFOR_BUILD_QUAD_FALSE=
25580fi
25581
25582
25583
944b8b35 25584# Check for GNU libc feenableexcept
5213506e
RW
25585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25586$as_echo_n "checking for feenableexcept in -lm... " >&6; }
25587if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25588 $as_echo_n "(cached) " >&6
944b8b35
FXC
25589else
25590 ac_check_lib_save_LIBS=$LIBS
25591LIBS="-lm $LIBS"
25592if test x$gcc_no_link = xyes; then
5213506e 25593 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
944b8b35 25594fi
5213506e 25595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944b8b35
FXC
25596/* end confdefs.h. */
25597
5213506e
RW
25598/* Override any GCC internal prototype to avoid an error.
25599 Use char because int might match the return type of a GCC
25600 builtin and then its argument prototype would still apply. */
944b8b35
FXC
25601#ifdef __cplusplus
25602extern "C"
25603#endif
944b8b35
FXC
25604char feenableexcept ();
25605int
25606main ()
25607{
5213506e 25608return feenableexcept ();
944b8b35
FXC
25609 ;
25610 return 0;
25611}
25612_ACEOF
5213506e 25613if ac_fn_c_try_link "$LINENO"; then :
944b8b35
FXC
25614 ac_cv_lib_m_feenableexcept=yes
25615else
5213506e 25616 ac_cv_lib_m_feenableexcept=no
944b8b35 25617fi
5213506e
RW
25618rm -f core conftest.err conftest.$ac_objext \
25619 conftest$ac_exeext conftest.$ac_ext
944b8b35
FXC
25620LIBS=$ac_check_lib_save_LIBS
25621fi
5213506e
RW
25622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25623$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25624if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
944b8b35 25625 have_feenableexcept=yes
5213506e 25626$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
3b14f664
FXC
25627
25628fi
25629
3b14f664 25630
5c30094f 25631# At least for glibc, clock_gettime is in librt. But don't
2aadeae2
JB
25632# pull that in if it still doesn't give us the function we want. This
25633# test is copied from libgomp, and modified to not link in -lrt as
25634# libgfortran calls clock_gettime via a weak reference if it's found
25635# in librt.
deb9dd74 25636if test "$ac_cv_func_clock_gettime" = no; then
b6e7a3d1
JB
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25638$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25639if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25640 $as_echo_n "(cached) " >&6
25641else
25642 ac_check_lib_save_LIBS=$LIBS
25643LIBS="-lrt $LIBS"
25644if test x$gcc_no_link = xyes; then
25645 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25646fi
25647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25648/* end confdefs.h. */
25649
25650/* Override any GCC internal prototype to avoid an error.
25651 Use char because int might match the return type of a GCC
25652 builtin and then its argument prototype would still apply. */
25653#ifdef __cplusplus
25654extern "C"
25655#endif
25656char clock_gettime ();
25657int
25658main ()
25659{
25660return clock_gettime ();
25661 ;
25662 return 0;
25663}
25664_ACEOF
25665if ac_fn_c_try_link "$LINENO"; then :
25666 ac_cv_lib_rt_clock_gettime=yes
25667else
25668 ac_cv_lib_rt_clock_gettime=no
25669fi
25670rm -f core conftest.err conftest.$ac_objext \
25671 conftest$ac_exeext conftest.$ac_ext
25672LIBS=$ac_check_lib_save_LIBS
25673fi
25674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25675$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25676if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
b6e7a3d1 25677
2aadeae2 25678$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
b6e7a3d1
JB
25679
25680fi
25681
25682fi
25683
5213506e 25684# Check for SysV fpsetmask
3b14f664 25685
5213506e
RW
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25687$as_echo_n "checking whether fpsetmask is present... " >&6; }
25688if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25689 $as_echo_n "(cached) " >&6
25690else
3b14f664 25691
5213506e
RW
25692 if test x$gcc_no_link = xyes; then
25693 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25694fi
25695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25696/* end confdefs.h. */
3b14f664 25697
5213506e
RW
25698#if HAVE_FLOATINGPOINT_H
25699# include <floatingpoint.h>
25700#endif /* HAVE_FLOATINGPOINT_H */
25701#if HAVE_IEEEFP_H
25702# include <ieeefp.h>
25703#endif /* HAVE_IEEEFP_H */
3b14f664
FXC
25704int
25705main ()
25706{
5213506e 25707fpsetmask(0);
3b14f664
FXC
25708 ;
25709 return 0;
25710}
25711_ACEOF
5213506e
RW
25712if ac_fn_c_try_link "$LINENO"; then :
25713 eval "libgfor_cv_have_fpsetmask=yes"
3b14f664 25714else
5213506e
RW
25715 eval "libgfor_cv_have_fpsetmask=no"
25716fi
25717rm -f core conftest.err conftest.$ac_objext \
25718 conftest$ac_exeext conftest.$ac_ext
3b14f664 25719
3b14f664 25720fi
5213506e
RW
25721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25722$as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25723 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
1b9fef3e 25724 have_fpsetmask=yes
5213506e
RW
25725
25726$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25727
25728 fi
25729
6faf4751 25730ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
67c4c164 25731#ifdef HAVE_IEEEFP_H
6faf4751 25732#include <ieeefp.h>
67c4c164 25733#endif
6faf4751
FXC
25734#include <math.h>
25735
7ae346c3
TB
25736"
25737if test "x$ac_cv_type_fp_except" = x""yes; then :
25738
25739cat >>confdefs.h <<_ACEOF
25740#define HAVE_FP_EXCEPT 1
25741_ACEOF
25742
25743
25744fi
6faf4751 25745ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
67c4c164 25746#ifdef HAVE_IEEEFP_H
6faf4751 25747#include <ieeefp.h>
67c4c164 25748#endif
6faf4751
FXC
25749#include <math.h>
25750
7ae346c3
TB
25751"
25752if test "x$ac_cv_type_fp_except_t" = x""yes; then :
25753
25754cat >>confdefs.h <<_ACEOF
25755#define HAVE_FP_EXCEPT_T 1
25756_ACEOF
25757
25758
82a4f54c
TB
25759fi
25760
6faf4751 25761ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
67c4c164 25762#ifdef HAVE_IEEEFP_H
6faf4751 25763#include <ieeefp.h>
67c4c164 25764#endif
6faf4751
FXC
25765#include <math.h>
25766
82a4f54c
TB
25767"
25768if test "x$ac_cv_type_fp_rnd" = x""yes; then :
25769
25770cat >>confdefs.h <<_ACEOF
25771#define HAVE_FP_RND 1
25772_ACEOF
25773
25774
25775fi
6faf4751 25776ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
67c4c164 25777#ifdef HAVE_IEEEFP_H
6faf4751 25778#include <ieeefp.h>
67c4c164 25779#endif
6faf4751
FXC
25780#include <math.h>
25781
82a4f54c
TB
25782"
25783if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
25784
25785cat >>confdefs.h <<_ACEOF
25786#define HAVE_FP_RND_T 1
25787_ACEOF
25788
25789
7ae346c3
TB
25790fi
25791
5213506e 25792
de51fc1b
RO
25793# Check whether we have fpsetsticky or fpresetsticky
25794ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
25795if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
25796 have_fpsetsticky=yes
25797$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
25798
25799fi
25800
25801ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
25802if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
25803 have_fpresetsticky=yes
25804$as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
25805
25806fi
25807
25808
5213506e
RW
25809# Check for AIX fp_trap and fp_enable
25810ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25811if test "x$ac_cv_func_fp_trap" = x""yes; then :
25812 have_fp_trap=yes
25813$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25814
3b14f664 25815fi
5213506e
RW
25816
25817ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25818if test "x$ac_cv_func_fp_enable" = x""yes; then :
3b14f664 25819 have_fp_enable=yes
5213506e 25820$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
3b14f664
FXC
25821
25822fi
25823
25824
944b8b35
FXC
25825# Runs configure.host to set up necessary host-dependent shell variables.
25826# We then display a message about it, and propagate them through the
25827# build chain.
25828. ${srcdir}/configure.host
5213506e
RW
25829{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25830$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
8b198102
FXC
25831{ $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
25832$as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
944b8b35
FXC
25833FPU_HOST_HEADER=config/${fpu_host}.h
25834
25835
8b198102
FXC
25836# Whether we will build the IEEE modules
25837 if test x${ieee_support} = xyes; then
25838 IEEE_SUPPORT_TRUE=
25839 IEEE_SUPPORT_FALSE='#'
25840else
25841 IEEE_SUPPORT_TRUE='#'
25842 IEEE_SUPPORT_FALSE=
25843fi
25844
25845
25846
9fc77574
KK
25847# Some targets require additional compiler options for IEEE compatibility.
25848IEEE_FLAGS="${ieee_flags}"
25849
25850
23e6d4a5
JB
25851
25852# Check for POSIX getpwuid_r
25853#
25854# There are two versions of getpwuid_r, the POSIX one with 5
25855# arguments, and another one with 4 arguments used by at least HP-UX
25856# 10.2.
25857if test "$ac_cv_func_getpwuid_r" = "yes"; then
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25859$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
25860if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
25861 $as_echo_n "(cached) " >&6
25862else
25863
25864 if test x$gcc_no_link = xyes; then
25865 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25866fi
25867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25868/* end confdefs.h. */
25869
25870#include <stdio.h>
25871#include <sys/types.h>
25872#include <pwd.h>
25873int
25874main ()
25875{
25876
25877 getpwuid_r(0, NULL, NULL, 0, NULL);
25878
25879 ;
25880 return 0;
25881}
25882_ACEOF
25883if ac_fn_c_try_link "$LINENO"; then :
25884 libgfor_cv_posix_getpwuid_r="yes"
25885else
25886 libgfor_cv_posix_getpwuid_r="no"
25887fi
25888rm -f core conftest.err conftest.$ac_objext \
25889 conftest$ac_exeext conftest.$ac_ext
25890fi
25891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
25892$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
25893fi
25894if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
25895
25896$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
25897
25898fi
25899
25900
7d7b8bfe
RH
25901# Check out attribute support.
25902
5213506e
RW
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
25904$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
25905if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
25906 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
25907else
25908
25909 save_CFLAGS="$CFLAGS"
25910 CFLAGS="$CFLAGS -Werror"
5213506e 25911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
25912/* end confdefs.h. */
25913void __attribute__((visibility("hidden"))) foo(void) { }
25914int
25915main ()
25916{
25917
25918 ;
25919 return 0;
25920}
25921_ACEOF
5213506e 25922if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 25923 libgfor_cv_have_attribute_visibility=yes
7d7b8bfe 25924else
5213506e 25925 libgfor_cv_have_attribute_visibility=no
7d7b8bfe 25926fi
5213506e 25927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
25928 CFLAGS="$save_CFLAGS"
25929fi
5213506e
RW
25930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
25931$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6d26724a 25932 if test $libgfor_cv_have_attribute_visibility = yes; then
7d7b8bfe 25933
5213506e 25934$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7d7b8bfe
RH
25935
25936 fi
25937
5213506e
RW
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
25939$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
25940if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
25941 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
25942else
25943
f02d008e 25944 if test x$gcc_no_link = xyes; then
5213506e 25945 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 25946fi
5213506e 25947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
25948/* end confdefs.h. */
25949
7d7b8bfe 25950void foo(void) { }
16a314a9 25951extern void bar(void) __attribute__((alias("foo")));
7d7b8bfe
RH
25952int
25953main ()
25954{
25955bar();
25956 ;
25957 return 0;
25958}
25959_ACEOF
5213506e 25960if ac_fn_c_try_link "$LINENO"; then :
6d26724a 25961 libgfor_cv_have_attribute_alias=yes
7d7b8bfe 25962else
5213506e 25963 libgfor_cv_have_attribute_alias=no
7d7b8bfe 25964fi
5213506e
RW
25965rm -f core conftest.err conftest.$ac_objext \
25966 conftest$ac_exeext conftest.$ac_ext
7d7b8bfe 25967fi
5213506e
RW
25968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
25969$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6d26724a 25970 if test $libgfor_cv_have_attribute_alias = yes; then
7d7b8bfe 25971
5213506e 25972$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7d7b8bfe
RH
25973
25974 fi
25975
5e805e44
JJ
25976# Check out sync builtins support.
25977
5213506e
RW
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
25979$as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
25980if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
5e805e44
JJ
25982else
25983
25984 if test x$gcc_no_link = xyes; then
5213506e 25985 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5e805e44 25986fi
5213506e 25987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44
JJ
25988/* end confdefs.h. */
25989int foovar = 0;
25990int
25991main ()
25992{
25993
25994if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
25995if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
25996 ;
25997 return 0;
25998}
25999_ACEOF
5213506e 26000if ac_fn_c_try_link "$LINENO"; then :
6d26724a 26001 libgfor_cv_have_sync_fetch_and_add=yes
5e805e44 26002else
5213506e 26003 libgfor_cv_have_sync_fetch_and_add=no
5e805e44 26004fi
5213506e
RW
26005rm -f core conftest.err conftest.$ac_objext \
26006 conftest$ac_exeext conftest.$ac_ext
5e805e44 26007fi
5213506e
RW
26008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26009$as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
6d26724a 26010 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
5e805e44 26011
5213506e 26012$as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
5e805e44
JJ
26013
26014 fi
26015
6a822a74
FXC
26016# Check out #pragma weak.
26017
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26019$as_echo_n "checking whether pragma weak works... " >&6; }
26020if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26021 $as_echo_n "(cached) " >&6
26022else
26023
26024 gfor_save_CFLAGS="$CFLAGS"
26025 CFLAGS="$CFLAGS -Wunknown-pragmas"
26026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26027/* end confdefs.h. */
26028
26029void foo (void);
26030#pragma weak foo
26031
26032int
26033main ()
26034{
26035if (foo) foo ();
26036 ;
26037 return 0;
26038}
26039_ACEOF
26040if ac_fn_c_try_compile "$LINENO"; then :
26041 libgfor_cv_have_pragma_weak=yes
26042else
26043 libgfor_cv_have_pragma_weak=no
26044fi
26045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26046fi
26047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26048$as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26049 if test $libgfor_cv_have_pragma_weak = yes; then
26050
26051$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26052
26053 fi
26054 case "$host" in
26055 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26056
26057$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26058
26059 ;;
26060 esac
26061
e7854993 26062# Check out weakref support.
5e805e44 26063
e7854993
FXC
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26065$as_echo_n "checking whether the target supports weakref... " >&6; }
26066if test "${libgfor_cv_have_weakref+set}" = set; then :
5213506e 26067 $as_echo_n "(cached) " >&6
5e805e44
JJ
26068else
26069
e7854993
FXC
26070 save_CFLAGS="$CFLAGS"
26071 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26072 if test x$gcc_no_link = xyes; then
26073 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26074fi
26075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44 26076/* end confdefs.h. */
de15ea94 26077
e7854993 26078static int mytoto (int) __attribute__((__weakref__("toto")));
de15ea94 26079
5e805e44
JJ
26080int
26081main ()
26082{
e7854993 26083return (mytoto != 0);
5e805e44
JJ
26084 ;
26085 return 0;
26086}
26087_ACEOF
e7854993
FXC
26088if ac_fn_c_try_link "$LINENO"; then :
26089 libgfor_cv_have_weakref=yes
5e805e44 26090else
e7854993 26091 libgfor_cv_have_weakref=no
5e805e44 26092fi
e7854993
FXC
26093rm -f core conftest.err conftest.$ac_objext \
26094 conftest$ac_exeext conftest.$ac_ext
26095 CFLAGS="$save_CFLAGS"
5e805e44 26096fi
e7854993
FXC
26097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26098$as_echo "$libgfor_cv_have_weakref" >&6; }
26099 if test $libgfor_cv_have_weakref = yes; then
5e805e44 26100
e7854993 26101$as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
5e805e44
JJ
26102
26103 fi
26104
10c682a0
FXC
26105# Various other checks on target
26106
5213506e
RW
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26108$as_echo_n "checking whether the target can unlink an open file... " >&6; }
26109if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26110 $as_echo_n "(cached) " >&6
10c682a0
FXC
26111else
26112
5213506e 26113 if test "$cross_compiling" = yes; then :
10c682a0
FXC
26114
26115case "${target}" in
6d26724a
RW
26116 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26117 *) libgfor_cv_have_unlink_open_file=yes;;
10c682a0
FXC
26118esac
26119else
5213506e 26120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10c682a0
FXC
26121/* end confdefs.h. */
26122
26123#include <errno.h>
26124#include <fcntl.h>
26125#include <unistd.h>
26126#include <sys/stat.h>
26127
26128int main ()
26129{
26130 int fd;
26131
42dfafa9 26132 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
10c682a0
FXC
26133 if (fd <= 0)
26134 return 0;
26135 if (unlink ("testfile") == -1)
26136 return 1;
26137 write (fd, "This is a test\n", 15);
26138 close (fd);
26139
42dfafa9 26140 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
10c682a0
FXC
26141 return 0;
26142 else
26143 return 1;
26144}
26145_ACEOF
5213506e 26146if ac_fn_c_try_run "$LINENO"; then :
6d26724a 26147 libgfor_cv_have_unlink_open_file=yes
10c682a0 26148else
5213506e 26149 libgfor_cv_have_unlink_open_file=no
10c682a0 26150fi
5213506e
RW
26151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26152 conftest.$ac_objext conftest.beam conftest.$ac_ext
10c682a0 26153fi
5213506e 26154
10c682a0 26155fi
5213506e
RW
26156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26157$as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
6d26724a 26158if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
10c682a0 26159
5213506e 26160$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
10c682a0
FXC
26161
26162fi
26163
3c127520
FXC
26164# Check whether line terminator is LF or CRLF
26165
5213506e
RW
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26167$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26168if test "${libgfor_cv_have_crlf+set}" = set; then :
26169 $as_echo_n "(cached) " >&6
3c127520
FXC
26170else
26171
5213506e 26172 if test "$cross_compiling" = yes; then :
3c127520
FXC
26173
26174case "${target}" in
6d26724a
RW
26175 *mingw*) libgfor_cv_have_crlf=yes ;;
26176 *) libgfor_cv_have_crlf=no;;
3c127520
FXC
26177esac
26178else
5213506e 26179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3c127520
FXC
26180/* end confdefs.h. */
26181
26182/* This test program should exit with status 0 if system uses a CRLF as
26183 line terminator, and status 1 otherwise.
26184 Since it is used to check for mingw systems, and should return 0 in any
26185 other case, in case of a failure we will not use CRLF. */
26186#include <sys/stat.h>
26187#include <stdlib.h>
26188#include <fcntl.h>
26189#include <stdio.h>
26190
26191int main ()
26192{
26193#ifndef O_BINARY
26194 exit(1);
26195#else
26196 int fd, bytes;
26197 char buff[5];
26198
26199 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26200 if (fd < 0)
26201 exit(1);
26202 if (write (fd, "\n", 1) < 0)
26203 perror ("write");
26204
26205 close (fd);
26206
26207 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26208 exit(1);
26209 bytes = read (fd, buff, 5);
26210 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26211 exit(0);
26212 else
26213 exit(1);
26214#endif
26215}
26216_ACEOF
5213506e 26217if ac_fn_c_try_run "$LINENO"; then :
6d26724a 26218 libgfor_cv_have_crlf=yes
3c127520 26219else
5213506e 26220 libgfor_cv_have_crlf=no
3c127520 26221fi
5213506e
RW
26222rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26223 conftest.$ac_objext conftest.beam conftest.$ac_ext
3c127520 26224fi
5213506e 26225
3c127520 26226fi
5213506e
RW
26227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26228$as_echo "$libgfor_cv_have_crlf" >&6; }
6d26724a 26229if test x"$libgfor_cv_have_crlf" = xyes; then
3c127520 26230
5213506e 26231$as_echo "#define HAVE_CRLF 1" >>confdefs.h
3c127520
FXC
26232
26233fi
26234
31cfd832
TK
26235# Check whether we support AVX extensions
26236
26237 ac_save_CFLAGS="$CFLAGS"
26238 CFLAGS="-O2 -mavx"
26239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240/* end confdefs.h. */
26241
26242 void _mm256_zeroall (void)
26243 {
26244 __builtin_ia32_vzeroall ();
26245 }
26246int
26247main ()
26248{
26249
26250 ;
26251 return 0;
26252}
26253_ACEOF
26254if ac_fn_c_try_compile "$LINENO"; then :
26255
26256$as_echo "#define HAVE_AVX 1" >>confdefs.h
26257
26258fi
26259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26260 CFLAGS="$ac_save_CFLAGS"
26261
26262
26263# Check wether we support AVX2 extensions
26264
26265 ac_save_CFLAGS="$CFLAGS"
26266 CFLAGS="-O2 -mavx2"
26267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26268/* end confdefs.h. */
26269
26270 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26271 __v4di
26272 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26273 {
26274 return __builtin_ia32_andnotsi256 (__X, __Y);
26275 }
26276int
26277main ()
26278{
26279
26280 ;
26281 return 0;
26282}
26283_ACEOF
26284if ac_fn_c_try_compile "$LINENO"; then :
26285
26286$as_echo "#define HAVE_AVX2 1" >>confdefs.h
26287
26288fi
26289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26290 CFLAGS="$ac_save_CFLAGS"
26291
26292
26293# Check wether we support AVX512f extensions
26294
26295 ac_save_CFLAGS="$CFLAGS"
26296 CFLAGS="-O2 -mavx512f"
26297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26298/* end confdefs.h. */
26299
26300 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26301 __m512d _mm512_add (__m512d a)
26302 {
26303 return __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26304 }
26305int
26306main ()
26307{
26308
26309 ;
26310 return 0;
26311}
26312_ACEOF
26313if ac_fn_c_try_compile "$LINENO"; then :
26314
26315$as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26316
26317fi
26318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26319 CFLAGS="$ac_save_CFLAGS"
26320
26321
3c36aa6b
JJ
26322# Determine what GCC version number to use in filesystem paths.
26323
26324 get_gcc_base_ver="cat"
26325
26326# Check whether --with-gcc-major-version-only was given.
26327if test "${with_gcc_major_version_only+set}" = set; then :
26328 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
26329 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
26330 fi
26331
26332fi
26333
26334
26335
26336
6de9cd9a
DN
26337cat >confcache <<\_ACEOF
26338# This file is a shell script that caches the results of configure
26339# tests run on this system so they can be shared between configure
26340# scripts and configure runs, see configure's option --config-cache.
26341# It is not useful on other systems. If it contains results you don't
26342# want to keep, you may remove or edit it.
26343#
26344# config.status only pays attention to the cache file if you give it
26345# the --recheck option to rerun configure.
26346#
26347# `ac_cv_env_foo' variables (set or unset) will be overridden when
26348# loading this file, other *unset* `ac_cv_foo' will be assigned the
26349# following values.
26350
26351_ACEOF
26352
26353# The following way of writing the cache mishandles newlines in values,
26354# but we know of no workaround that is simple, portable, and efficient.
5213506e 26355# So, we kill variables containing newlines.
6de9cd9a
DN
26356# Ultrix sh set writes to stderr and can't be redirected directly,
26357# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
26358(
26359 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26360 eval ac_val=\$$ac_var
26361 case $ac_val in #(
26362 *${as_nl}*)
26363 case $ac_var in #(
26364 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26365$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26366 esac
26367 case $ac_var in #(
26368 _ | IFS | as_nl) ;; #(
26369 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26370 *) { eval $ac_var=; unset $ac_var;} ;;
26371 esac ;;
26372 esac
26373 done
26374
6de9cd9a 26375 (set) 2>&1 |
5213506e
RW
26376 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26377 *${as_nl}ac_space=\ *)
26378 # `set' does not quote correctly, so add quotes: double-quote
26379 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
26380 sed -n \
26381 "s/'/'\\\\''/g;
26382 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 26383 ;; #(
6de9cd9a
DN
26384 *)
26385 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 26386 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 26387 ;;
5213506e
RW
26388 esac |
26389 sort
26390) |
6de9cd9a 26391 sed '
5213506e 26392 /^ac_cv_env_/b end
6de9cd9a 26393 t clear
5213506e 26394 :clear
6de9cd9a
DN
26395 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26396 t end
5213506e
RW
26397 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26398 :end' >>confcache
26399if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26400 if test -w "$cache_file"; then
26401 test "x$cache_file" != "x/dev/null" &&
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26403$as_echo "$as_me: updating cache $cache_file" >&6;}
6de9cd9a
DN
26404 cat confcache >$cache_file
26405 else
5213506e
RW
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26407$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
26408 fi
26409fi
26410rm -f confcache
26411
96b8a615
AJ
26412if test ${multilib} = yes; then
26413 multilib_arg="--enable-multilib"
6de9cd9a 26414else
96b8a615 26415 multilib_arg=
6de9cd9a 26416fi
6de9cd9a 26417
1ec601bf
FXC
26418# Write our Makefile and spec file.
26419ac_config_files="$ac_config_files Makefile libgfortran.spec"
96b8a615 26420
6de9cd9a
DN
26421cat >confcache <<\_ACEOF
26422# This file is a shell script that caches the results of configure
26423# tests run on this system so they can be shared between configure
26424# scripts and configure runs, see configure's option --config-cache.
26425# It is not useful on other systems. If it contains results you don't
26426# want to keep, you may remove or edit it.
26427#
26428# config.status only pays attention to the cache file if you give it
26429# the --recheck option to rerun configure.
26430#
26431# `ac_cv_env_foo' variables (set or unset) will be overridden when
26432# loading this file, other *unset* `ac_cv_foo' will be assigned the
26433# following values.
26434
26435_ACEOF
26436
26437# The following way of writing the cache mishandles newlines in values,
26438# but we know of no workaround that is simple, portable, and efficient.
5213506e 26439# So, we kill variables containing newlines.
6de9cd9a
DN
26440# Ultrix sh set writes to stderr and can't be redirected directly,
26441# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
26442(
26443 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26444 eval ac_val=\$$ac_var
26445 case $ac_val in #(
26446 *${as_nl}*)
26447 case $ac_var in #(
26448 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26449$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26450 esac
26451 case $ac_var in #(
26452 _ | IFS | as_nl) ;; #(
26453 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26454 *) { eval $ac_var=; unset $ac_var;} ;;
26455 esac ;;
26456 esac
26457 done
26458
6de9cd9a 26459 (set) 2>&1 |
5213506e
RW
26460 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26461 *${as_nl}ac_space=\ *)
26462 # `set' does not quote correctly, so add quotes: double-quote
26463 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
26464 sed -n \
26465 "s/'/'\\\\''/g;
26466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 26467 ;; #(
6de9cd9a
DN
26468 *)
26469 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 26470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 26471 ;;
5213506e
RW
26472 esac |
26473 sort
26474) |
6de9cd9a 26475 sed '
5213506e 26476 /^ac_cv_env_/b end
6de9cd9a 26477 t clear
5213506e 26478 :clear
6de9cd9a
DN
26479 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26480 t end
5213506e
RW
26481 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26482 :end' >>confcache
26483if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26484 if test -w "$cache_file"; then
26485 test "x$cache_file" != "x/dev/null" &&
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26487$as_echo "$as_me: updating cache $cache_file" >&6;}
6de9cd9a
DN
26488 cat confcache >$cache_file
26489 else
5213506e
RW
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26491$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
26492 fi
26493fi
26494rm -f confcache
26495
26496test "x$prefix" = xNONE && prefix=$ac_default_prefix
26497# Let make expand exec_prefix.
26498test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26499
6de9cd9a
DN
26500DEFS=-DHAVE_CONFIG_H
26501
26502ac_libobjs=
26503ac_ltlibobjs=
26504for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26505 # 1. Remove the extension, and $U if already installed.
5213506e
RW
26506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26507 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26509 # will be set to the directory where LIBOBJS objects are built.
26510 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26511 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6de9cd9a
DN
26512done
26513LIBOBJS=$ac_libobjs
26514
26515LTLIBOBJS=$ac_ltlibobjs
26516
26517
b808ac33 26518if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
5213506e
RW
26519 as_fn_error "conditional \"onestep\" was never defined.
26520Usually this means the macro was only invoked conditionally." "$LINENO" 5
26521fi
26522 if test -n "$EXEEXT"; then
26523 am__EXEEXT_TRUE=
26524 am__EXEEXT_FALSE='#'
26525else
26526 am__EXEEXT_TRUE='#'
26527 am__EXEEXT_FALSE=
b808ac33 26528fi
5213506e 26529
6de9cd9a 26530if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
26531 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26532Usually this means the macro was only invoked conditionally." "$LINENO" 5
6de9cd9a 26533fi
679c0f9a 26534if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
26535 as_fn_error "conditional \"AMDEP\" was never defined.
26536Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a
TT
26537fi
26538if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
26539 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26540Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a 26541fi
21be0a5a
JB
26542if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26543 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26544Usually this means the macro was only invoked conditionally." "$LINENO" 5
26545fi
c0e7e2bf 26546if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
5213506e
RW
26547 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26548Usually this means the macro was only invoked conditionally." "$LINENO" 5
c0e7e2bf 26549fi
49ea7a0e
RO
26550if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26551 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26552Usually this means the macro was only invoked conditionally." "$LINENO" 5
26553fi
26554if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26555 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26556Usually this means the macro was only invoked conditionally." "$LINENO" 5
26557fi
ee95f928
BS
26558if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
26559 as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined.
26560Usually this means the macro was only invoked conditionally." "$LINENO" 5
26561fi
66dbcf2d
RO
26562if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
26563 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
26564Usually this means the macro was only invoked conditionally." "$LINENO" 5
26565fi
1ec601bf
FXC
26566if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26567 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26568Usually this means the macro was only invoked conditionally." "$LINENO" 5
26569fi
8b198102
FXC
26570if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26571 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26572Usually this means the macro was only invoked conditionally." "$LINENO" 5
26573fi
6de9cd9a
DN
26574
26575: ${CONFIG_STATUS=./config.status}
5213506e 26576ac_write_fail=0
6de9cd9a
DN
26577ac_clean_files_save=$ac_clean_files
26578ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
26579{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26580$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26581as_write_fail=0
26582cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6de9cd9a
DN
26583#! $SHELL
26584# Generated by $as_me.
26585# Run this file to recreate the current configuration.
26586# Compiler output produced by configure, useful for debugging
26587# configure, is in config.log if it exists.
26588
26589debug=false
26590ac_cs_recheck=false
26591ac_cs_silent=false
6de9cd9a 26592
5213506e
RW
26593SHELL=\${CONFIG_SHELL-$SHELL}
26594export SHELL
26595_ASEOF
26596cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26597## -------------------- ##
26598## M4sh Initialization. ##
26599## -------------------- ##
26600
26601# Be more Bourne compatible
26602DUALCASE=1; export DUALCASE # for MKS sh
26603if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6de9cd9a
DN
26604 emulate sh
26605 NULLCMD=:
5213506e 26606 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6de9cd9a
DN
26607 # is contrary to our usage. Disable this feature.
26608 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
26609 setopt NO_GLOB_SUBST
26610else
26611 case `(set -o) 2>/dev/null` in #(
26612 *posix*) :
26613 set -o posix ;; #(
26614 *) :
26615 ;;
26616esac
6de9cd9a 26617fi
6de9cd9a 26618
5213506e
RW
26619
26620as_nl='
26621'
26622export as_nl
26623# Printing a long string crashes Solaris 7 /usr/bin/printf.
26624as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26625as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26626as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26627# Prefer a ksh shell builtin over an external printf program on Solaris,
26628# but without wasting forks for bash or zsh.
26629if test -z "$BASH_VERSION$ZSH_VERSION" \
26630 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26631 as_echo='print -r --'
26632 as_echo_n='print -rn --'
26633elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26634 as_echo='printf %s\n'
26635 as_echo_n='printf %s'
26636else
26637 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26638 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26639 as_echo_n='/usr/ucb/echo -n'
26640 else
26641 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26642 as_echo_n_body='eval
26643 arg=$1;
26644 case $arg in #(
26645 *"$as_nl"*)
26646 expr "X$arg" : "X\\(.*\\)$as_nl";
26647 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26648 esac;
26649 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26650 '
26651 export as_echo_n_body
26652 as_echo_n='sh -c $as_echo_n_body as_echo'
26653 fi
26654 export as_echo_body
26655 as_echo='sh -c $as_echo_body as_echo'
26656fi
26657
26658# The user is always right.
26659if test "${PATH_SEPARATOR+set}" != set; then
26660 PATH_SEPARATOR=:
26661 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26662 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26663 PATH_SEPARATOR=';'
26664 }
6de9cd9a
DN
26665fi
26666
26667
5213506e
RW
26668# IFS
26669# We need space, tab and new line, in precisely that order. Quoting is
26670# there to prevent editors from complaining about space-tab.
26671# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26672# splitting by setting IFS to empty value.)
26673IFS=" "" $as_nl"
26674
26675# Find who we are. Look in the path if we contain no directory separator.
26676case $0 in #((
26677 *[\\/]* ) as_myself=$0 ;;
26678 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26679for as_dir in $PATH
26680do
26681 IFS=$as_save_IFS
26682 test -z "$as_dir" && as_dir=.
26683 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26684 done
26685IFS=$as_save_IFS
26686
26687 ;;
26688esac
26689# We did not find ourselves, most probably we were run as `sh COMMAND'
26690# in which case we are not to be found in the path.
26691if test "x$as_myself" = x; then
26692 as_myself=$0
26693fi
26694if test ! -f "$as_myself"; then
26695 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26696 exit 1
26697fi
26698
26699# Unset variables that we do not need and which cause bugs (e.g. in
26700# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26701# suppresses any "Segmentation fault" message there. '((' could
26702# trigger a bug in pdksh 5.2.14.
26703for as_var in BASH_ENV ENV MAIL MAILPATH
26704do eval test x\${$as_var+set} = xset \
26705 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26706done
6de9cd9a
DN
26707PS1='$ '
26708PS2='> '
26709PS4='+ '
26710
26711# NLS nuisances.
5213506e
RW
26712LC_ALL=C
26713export LC_ALL
26714LANGUAGE=C
26715export LANGUAGE
26716
26717# CDPATH.
26718(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26719
26720
26721# as_fn_error ERROR [LINENO LOG_FD]
26722# ---------------------------------
26723# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26724# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26725# script with status $?, using 1 if that was 0.
26726as_fn_error ()
26727{
26728 as_status=$?; test $as_status -eq 0 && as_status=1
26729 if test "$3"; then
26730 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26731 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6de9cd9a 26732 fi
5213506e
RW
26733 $as_echo "$as_me: error: $1" >&2
26734 as_fn_exit $as_status
26735} # as_fn_error
26736
26737
26738# as_fn_set_status STATUS
26739# -----------------------
26740# Set $? to STATUS, without forking.
26741as_fn_set_status ()
26742{
26743 return $1
26744} # as_fn_set_status
26745
26746# as_fn_exit STATUS
26747# -----------------
26748# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26749as_fn_exit ()
26750{
26751 set +e
26752 as_fn_set_status $1
26753 exit $1
26754} # as_fn_exit
26755
26756# as_fn_unset VAR
26757# ---------------
26758# Portably unset VAR.
26759as_fn_unset ()
26760{
26761 { eval $1=; unset $1;}
26762}
26763as_unset=as_fn_unset
26764# as_fn_append VAR VALUE
26765# ----------------------
26766# Append the text in VALUE to the end of the definition contained in VAR. Take
26767# advantage of any shell optimizations that allow amortized linear growth over
26768# repeated appends, instead of the typical quadratic growth present in naive
26769# implementations.
26770if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26771 eval 'as_fn_append ()
26772 {
26773 eval $1+=\$2
26774 }'
26775else
26776 as_fn_append ()
26777 {
26778 eval $1=\$$1\$2
26779 }
26780fi # as_fn_append
26781
26782# as_fn_arith ARG...
26783# ------------------
26784# Perform arithmetic evaluation on the ARGs, and store the result in the
26785# global $as_val. Take advantage of shells that can avoid forks. The arguments
26786# must be portable across $(()) and expr.
26787if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26788 eval 'as_fn_arith ()
26789 {
26790 as_val=$(( $* ))
26791 }'
26792else
26793 as_fn_arith ()
26794 {
26795 as_val=`expr "$@" || test $? -eq 1`
26796 }
26797fi # as_fn_arith
6de9cd9a 26798
5213506e
RW
26799
26800if expr a : '\(a\)' >/dev/null 2>&1 &&
26801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
26802 as_expr=expr
26803else
26804 as_expr=false
26805fi
26806
5213506e 26807if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
26808 as_basename=basename
26809else
26810 as_basename=false
26811fi
26812
5213506e
RW
26813if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26814 as_dirname=dirname
26815else
26816 as_dirname=false
26817fi
6de9cd9a 26818
5213506e 26819as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
26820$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26821 X"$0" : 'X\(//\)$' \| \
5213506e
RW
26822 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26823$as_echo X/"$0" |
26824 sed '/^.*\/\([^/][^/]*\)\/*$/{
26825 s//\1/
26826 q
26827 }
26828 /^X\/\(\/\/\)$/{
26829 s//\1/
26830 q
26831 }
26832 /^X\/\(\/\).*/{
26833 s//\1/
26834 q
26835 }
26836 s/.*/./; q'`
38d24731 26837
38d24731
RW
26838# Avoid depending upon Character Ranges.
26839as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26840as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26841as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26842as_cr_digits='0123456789'
26843as_cr_alnum=$as_cr_Letters$as_cr_digits
26844
5213506e
RW
26845ECHO_C= ECHO_N= ECHO_T=
26846case `echo -n x` in #(((((
26847-n*)
26848 case `echo 'xy\c'` in
26849 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26850 xy) ECHO_C='\c';;
26851 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26852 ECHO_T=' ';;
26853 esac;;
26854*)
26855 ECHO_N='-n';;
6de9cd9a
DN
26856esac
26857
5213506e
RW
26858rm -f conf$$ conf$$.exe conf$$.file
26859if test -d conf$$.dir; then
26860 rm -f conf$$.dir/conf$$.file
6de9cd9a 26861else
5213506e
RW
26862 rm -f conf$$.dir
26863 mkdir conf$$.dir 2>/dev/null
6de9cd9a 26864fi
5213506e
RW
26865if (echo >conf$$.file) 2>/dev/null; then
26866 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 26867 as_ln_s='ln -s'
5213506e
RW
26868 # ... but there are two gotchas:
26869 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26870 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26871 # In both cases, we have to default to `cp -p'.
26872 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26873 as_ln_s='cp -p'
26874 elif ln conf$$.file conf$$ 2>/dev/null; then
26875 as_ln_s=ln
26876 else
26877 as_ln_s='cp -p'
38d24731 26878 fi
6de9cd9a
DN
26879else
26880 as_ln_s='cp -p'
26881fi
5213506e
RW
26882rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26883rmdir conf$$.dir 2>/dev/null
26884
26885
26886# as_fn_mkdir_p
26887# -------------
26888# Create "$as_dir" as a directory, including parents if necessary.
26889as_fn_mkdir_p ()
26890{
26891
26892 case $as_dir in #(
26893 -*) as_dir=./$as_dir;;
26894 esac
26895 test -d "$as_dir" || eval $as_mkdir_p || {
26896 as_dirs=
26897 while :; do
26898 case $as_dir in #(
26899 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26900 *) as_qdir=$as_dir;;
26901 esac
26902 as_dirs="'$as_qdir' $as_dirs"
26903 as_dir=`$as_dirname -- "$as_dir" ||
26904$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26905 X"$as_dir" : 'X\(//\)[^/]' \| \
26906 X"$as_dir" : 'X\(//\)$' \| \
26907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26908$as_echo X"$as_dir" |
26909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26910 s//\1/
26911 q
26912 }
26913 /^X\(\/\/\)[^/].*/{
26914 s//\1/
26915 q
26916 }
26917 /^X\(\/\/\)$/{
26918 s//\1/
26919 q
26920 }
26921 /^X\(\/\).*/{
26922 s//\1/
26923 q
26924 }
26925 s/.*/./; q'`
26926 test -d "$as_dir" && break
26927 done
26928 test -z "$as_dirs" || eval "mkdir $as_dirs"
26929 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26930
6de9cd9a 26931
5213506e 26932} # as_fn_mkdir_p
6de9cd9a 26933if mkdir -p . 2>/dev/null; then
5213506e 26934 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
26935else
26936 test -d ./-p && rmdir ./-p
26937 as_mkdir_p=false
26938fi
26939
5213506e
RW
26940if test -x / >/dev/null 2>&1; then
26941 as_test_x='test -x'
26942else
26943 if ls -dL / >/dev/null 2>&1; then
26944 as_ls_L_option=L
26945 else
26946 as_ls_L_option=
26947 fi
26948 as_test_x='
26949 eval sh -c '\''
26950 if test -d "$1"; then
26951 test -d "$1/.";
26952 else
26953 case $1 in #(
26954 -*)set "./$1";;
26955 esac;
26956 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26957 ???[sx]*):;;*)false;;esac;fi
26958 '\'' sh
26959 '
26960fi
26961as_executable_p=$as_test_x
6de9cd9a
DN
26962
26963# Sed expression to map a string onto a valid CPP name.
26964as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26965
26966# Sed expression to map a string onto a valid variable name.
26967as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26968
26969
6de9cd9a 26970exec 6>&1
5213506e
RW
26971## ----------------------------------- ##
26972## Main body of $CONFIG_STATUS script. ##
26973## ----------------------------------- ##
26974_ASEOF
26975test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26976
26977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26978# Save the log message, to keep $0 and so on meaningful, and to
6de9cd9a 26979# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
26980# values after options handling.
26981ac_log="
0dce3ca1 26982This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
5213506e 26983generated by GNU Autoconf 2.64. Invocation command line was
6de9cd9a
DN
26984
26985 CONFIG_FILES = $CONFIG_FILES
26986 CONFIG_HEADERS = $CONFIG_HEADERS
26987 CONFIG_LINKS = $CONFIG_LINKS
26988 CONFIG_COMMANDS = $CONFIG_COMMANDS
26989 $ $0 $@
26990
5213506e
RW
26991on `(hostname || uname -n) 2>/dev/null | sed 1q`
26992"
26993
6de9cd9a
DN
26994_ACEOF
26995
5213506e
RW
26996case $ac_config_files in *"
26997"*) set x $ac_config_files; shift; ac_config_files=$*;;
26998esac
78511f8b 26999
5213506e
RW
27000case $ac_config_headers in *"
27001"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27002esac
38d24731 27003
38d24731 27004
5213506e
RW
27005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27006# Files that config.status was made for.
27007config_files="$ac_config_files"
27008config_headers="$ac_config_headers"
27009config_commands="$ac_config_commands"
6de9cd9a 27010
5213506e 27011_ACEOF
38d24731 27012
5213506e 27013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a 27014ac_cs_usage="\
5213506e
RW
27015\`$as_me' instantiates files and other configuration actions
27016from templates according to the current configuration. Unless the files
27017and actions are specified as TAGs, all are instantiated by default.
6de9cd9a 27018
5213506e 27019Usage: $0 [OPTION]... [TAG]...
6de9cd9a
DN
27020
27021 -h, --help print this help, then exit
5213506e
RW
27022 -V, --version print version number and configuration settings, then exit
27023 -q, --quiet, --silent
27024 do not print progress messages
6de9cd9a
DN
27025 -d, --debug don't remove temporary files
27026 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
27027 --file=FILE[:TEMPLATE]
27028 instantiate the configuration file FILE
27029 --header=FILE[:TEMPLATE]
27030 instantiate the configuration header FILE
6de9cd9a
DN
27031
27032Configuration files:
27033$config_files
27034
27035Configuration headers:
27036$config_headers
27037
27038Configuration commands:
27039$config_commands
27040
5213506e
RW
27041Report bugs to the package provider.
27042GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27043General help using GNU software: <http://www.gnu.org/gethelp/>."
38d24731 27044
5213506e
RW
27045_ACEOF
27046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 27047ac_cs_version="\\
0dce3ca1 27048GNU Fortran Runtime Library config.status 0.3
5213506e
RW
27049configured by $0, generated by GNU Autoconf 2.64,
27050 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6de9cd9a 27051
5213506e 27052Copyright (C) 2009 Free Software Foundation, Inc.
6de9cd9a
DN
27053This config.status script is free software; the Free Software Foundation
27054gives unlimited permission to copy, distribute and modify it."
5213506e
RW
27055
27056ac_pwd='$ac_pwd'
27057srcdir='$srcdir'
27058INSTALL='$INSTALL'
27059MKDIR_P='$MKDIR_P'
27060AWK='$AWK'
27061test -n "\$AWK" || AWK=awk
6de9cd9a
DN
27062_ACEOF
27063
5213506e
RW
27064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27065# The default lists apply if the user does not specify any file.
6de9cd9a
DN
27066ac_need_defaults=:
27067while test $# != 0
27068do
27069 case $1 in
27070 --*=*)
5213506e
RW
27071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27072 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6de9cd9a
DN
27073 ac_shift=:
27074 ;;
5213506e 27075 *)
6de9cd9a
DN
27076 ac_option=$1
27077 ac_optarg=$2
27078 ac_shift=shift
27079 ;;
6de9cd9a
DN
27080 esac
27081
27082 case $ac_option in
27083 # Handling of the options.
6de9cd9a
DN
27084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27085 ac_cs_recheck=: ;;
5213506e
RW
27086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27087 $as_echo "$ac_cs_version"; exit ;;
27088 --debug | --debu | --deb | --de | --d | -d )
6de9cd9a
DN
27089 debug=: ;;
27090 --file | --fil | --fi | --f )
27091 $ac_shift
5213506e
RW
27092 case $ac_optarg in
27093 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27094 esac
27095 as_fn_append CONFIG_FILES " '$ac_optarg'"
6de9cd9a
DN
27096 ac_need_defaults=false;;
27097 --header | --heade | --head | --hea )
27098 $ac_shift
5213506e
RW
27099 case $ac_optarg in
27100 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27101 esac
27102 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6de9cd9a 27103 ac_need_defaults=false;;
5213506e
RW
27104 --he | --h)
27105 # Conflict between --help and --header
27106 as_fn_error "ambiguous option: \`$1'
27107Try \`$0 --help' for more information.";;
27108 --help | --hel | -h )
27109 $as_echo "$ac_cs_usage"; exit ;;
6de9cd9a
DN
27110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27111 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27112 ac_cs_silent=: ;;
27113
27114 # This is an error.
5213506e
RW
27115 -*) as_fn_error "unrecognized option: \`$1'
27116Try \`$0 --help' for more information." ;;
6de9cd9a 27117
5213506e
RW
27118 *) as_fn_append ac_config_targets " $1"
27119 ac_need_defaults=false ;;
6de9cd9a
DN
27120
27121 esac
27122 shift
27123done
27124
27125ac_configure_extra_args=
27126
27127if $ac_cs_silent; then
27128 exec 6>/dev/null
27129 ac_configure_extra_args="$ac_configure_extra_args --silent"
27130fi
27131
27132_ACEOF
5213506e 27133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 27134if \$ac_cs_recheck; then
5213506e
RW
27135 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27136 shift
27137 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27138 CONFIG_SHELL='$SHELL'
27139 export CONFIG_SHELL
27140 exec "\$@"
6de9cd9a
DN
27141fi
27142
1cf3d07d 27143_ACEOF
5213506e
RW
27144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27145exec 5>>config.log
27146{
27147 echo
27148 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27149## Running $as_me. ##
27150_ASBOX
27151 $as_echo "$ac_log"
27152} >&5
1cf3d07d 27153
5213506e
RW
27154_ACEOF
27155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 27156#
5213506e 27157# INIT-COMMANDS
1cf3d07d
SE
27158#
27159
1cf3d07d
SE
27160srcdir="$srcdir"
27161host="$host"
27162target="$target"
27163with_multisubdir="$with_multisubdir"
27164with_multisrctop="$with_multisrctop"
27165with_target_subdir="$with_target_subdir"
27166ac_configure_args="${multilib_arg} ${ac_configure_args}"
27167multi_basedir="$multi_basedir"
27168CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27169CC="$CC"
2017c370
JB
27170CXX="$CXX"
27171GFORTRAN="$GFORTRAN"
1cf3d07d
SE
27172AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27173
27174
27175# The HP-UX ksh and POSIX shell print the target directory to stdout
27176# if CDPATH is set.
27177(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27178
27179sed_quote_subst='$sed_quote_subst'
27180double_quote_subst='$double_quote_subst'
27181delay_variable_subst='$delay_variable_subst'
66dbcf2d
RO
27182SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27183Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27184GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27185EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27186FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27187SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27188ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27189LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
27190macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27191macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27192enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27193enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27194pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27195enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
27196host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27197host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27198host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27199build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27200build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27201build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
27202NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27203LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27204max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27205ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27206exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27207lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27208lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27209lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27210reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27211reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27212OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27213deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27214file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27215AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27216AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27217STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27218RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27219old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27220old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27221old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27222lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27223CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27224CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27225compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27226GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27227lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27228lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27229lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27230lt_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"`'
27231objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27232MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27233lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27234lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27235lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27236lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27237lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27238need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27239DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27240NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27241LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27242OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27243OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27244libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27245shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27246extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27247archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27248enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27249export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27250whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27251compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27252old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27253old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27254archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27255archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27256module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27257module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27258with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27259allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27260no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27261hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27262hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27263hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27264hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27265hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27266hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27267hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27268hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27269inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27270link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27271fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27272always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27273export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27274exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27275include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27276prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27277file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27278variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27279need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27280need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27281version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27282runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27283shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27284shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27285libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27286library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27287soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27288install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27289postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27290postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27291finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27292finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27293hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27294sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27295sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27296hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27297enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27298enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27299enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27300old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27301striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27302compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27303predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27304postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27305predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27306postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27307compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27308LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27309reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27310reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27311old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27312compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27313GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27314lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27315lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27316lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27317lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27318lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27319archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27320enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27321export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27322whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27323compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27324old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27325old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27326archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27327archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27328module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27329module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27330with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27331allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27332no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27333hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27334hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27335hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27336hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27337hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27338hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27339hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27340hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27341inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27342link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27343fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27344always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27345export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27346exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27347include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27348prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27349file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27350hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27351compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27352predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27353postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27354predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27355postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27356compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
27357
27358LTCC='$LTCC'
27359LTCFLAGS='$LTCFLAGS'
27360compiler='$compiler_DEFAULT'
27361
43e02a8a
RW
27362# A function that is used when there is no print builtin or printf.
27363func_fallback_echo ()
27364{
27365 eval 'cat <<_LTECHO_EOF
27366\$1
27367_LTECHO_EOF'
27368}
27369
1cf3d07d 27370# Quote evaled strings.
66dbcf2d 27371for var in SED \
1cf3d07d
SE
27372GREP \
27373EGREP \
27374FGREP \
66dbcf2d
RO
27375SHELL \
27376ECHO \
1cf3d07d
SE
27377LD \
27378NM \
27379LN_S \
27380lt_SP2NL \
27381lt_NL2SP \
27382reload_flag \
d58dead8 27383OBJDUMP \
1cf3d07d
SE
27384deplibs_check_method \
27385file_magic_cmd \
27386AR \
27387AR_FLAGS \
27388STRIP \
27389RANLIB \
27390CC \
27391CFLAGS \
27392compiler \
27393lt_cv_sys_global_symbol_pipe \
27394lt_cv_sys_global_symbol_to_cdecl \
27395lt_cv_sys_global_symbol_to_c_name_address \
d58dead8 27396lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
27397lt_prog_compiler_no_builtin_flag \
27398lt_prog_compiler_wl \
27399lt_prog_compiler_pic \
27400lt_prog_compiler_static \
27401lt_cv_prog_compiler_c_o \
27402need_locks \
d58dead8
PG
27403DSYMUTIL \
27404NMEDIT \
27405LIPO \
27406OTOOL \
27407OTOOL64 \
1cf3d07d
SE
27408shrext_cmds \
27409export_dynamic_flag_spec \
27410whole_archive_flag_spec \
27411compiler_needs_object \
27412with_gnu_ld \
27413allow_undefined_flag \
27414no_undefined_flag \
27415hardcode_libdir_flag_spec \
27416hardcode_libdir_flag_spec_ld \
27417hardcode_libdir_separator \
27418fix_srcfile_path \
27419exclude_expsyms \
27420include_expsyms \
27421file_list_spec \
27422variables_saved_for_relink \
27423libname_spec \
27424library_names_spec \
27425soname_spec \
43e02a8a 27426install_override_mode \
1cf3d07d
SE
27427finish_eval \
27428old_striplib \
27429striplib \
d58dead8 27430compiler_lib_search_dirs \
1cf3d07d
SE
27431predep_objects \
27432postdep_objects \
27433predeps \
27434postdeps \
27435compiler_lib_search_path \
27436LD_FC \
43e02a8a 27437reload_flag_FC \
1cf3d07d
SE
27438compiler_FC \
27439lt_prog_compiler_no_builtin_flag_FC \
27440lt_prog_compiler_wl_FC \
27441lt_prog_compiler_pic_FC \
27442lt_prog_compiler_static_FC \
27443lt_cv_prog_compiler_c_o_FC \
27444export_dynamic_flag_spec_FC \
27445whole_archive_flag_spec_FC \
27446compiler_needs_object_FC \
27447with_gnu_ld_FC \
27448allow_undefined_flag_FC \
27449no_undefined_flag_FC \
27450hardcode_libdir_flag_spec_FC \
27451hardcode_libdir_flag_spec_ld_FC \
27452hardcode_libdir_separator_FC \
27453fix_srcfile_path_FC \
27454exclude_expsyms_FC \
27455include_expsyms_FC \
27456file_list_spec_FC \
d58dead8 27457compiler_lib_search_dirs_FC \
1cf3d07d
SE
27458predep_objects_FC \
27459postdep_objects_FC \
27460predeps_FC \
27461postdeps_FC \
27462compiler_lib_search_path_FC; do
43e02a8a 27463 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 27464 *[\\\\\\\`\\"\\\$]*)
43e02a8a 27465 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
27466 ;;
27467 *)
27468 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27469 ;;
27470 esac
27471done
27472
27473# Double-quote double-evaled strings.
27474for var in reload_cmds \
27475old_postinstall_cmds \
27476old_postuninstall_cmds \
27477old_archive_cmds \
27478extract_expsyms_cmds \
27479old_archive_from_new_cmds \
27480old_archive_from_expsyms_cmds \
27481archive_cmds \
27482archive_expsym_cmds \
27483module_cmds \
27484module_expsym_cmds \
27485export_symbols_cmds \
27486prelink_cmds \
27487postinstall_cmds \
27488postuninstall_cmds \
27489finish_cmds \
27490sys_lib_search_path_spec \
27491sys_lib_dlsearch_path_spec \
43e02a8a 27492reload_cmds_FC \
1cf3d07d
SE
27493old_archive_cmds_FC \
27494old_archive_from_new_cmds_FC \
27495old_archive_from_expsyms_cmds_FC \
27496archive_cmds_FC \
27497archive_expsym_cmds_FC \
27498module_cmds_FC \
27499module_expsym_cmds_FC \
27500export_symbols_cmds_FC \
27501prelink_cmds_FC; do
43e02a8a 27502 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 27503 *[\\\\\\\`\\"\\\$]*)
43e02a8a 27504 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
27505 ;;
27506 *)
27507 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27508 ;;
27509 esac
27510done
27511
1cf3d07d
SE
27512ac_aux_dir='$ac_aux_dir'
27513xsi_shell='$xsi_shell'
27514lt_shell_append='$lt_shell_append'
27515
27516# See if we are running on zsh, and set the options which allow our
27517# commands through without removal of \ escapes INIT.
27518if test -n "\${ZSH_VERSION+set}" ; then
27519 setopt NO_GLOB_SUBST
27520fi
27521
27522
27523 PACKAGE='$PACKAGE'
27524 VERSION='$VERSION'
27525 TIMESTAMP='$TIMESTAMP'
27526 RM='$RM'
27527 ofile='$ofile'
27528
27529
6de9cd9a 27530
6de9cd9a 27531
78511f8b 27532
6de9cd9a 27533
c13e029b
PB
27534GCC="$GCC"
27535CC="$CC"
27536acx_cv_header_stdint="$acx_cv_header_stdint"
27537acx_cv_type_int8_t="$acx_cv_type_int8_t"
27538acx_cv_type_int16_t="$acx_cv_type_int16_t"
27539acx_cv_type_int32_t="$acx_cv_type_int32_t"
27540acx_cv_type_int64_t="$acx_cv_type_int64_t"
27541acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27542ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27543ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27544ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27545ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27546ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
4c4b3eb0
PB
27547ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27548ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
c13e029b 27549ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
4c4b3eb0
PB
27550
27551
6de9cd9a
DN
27552_ACEOF
27553
5213506e 27554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f489fba1 27555
5213506e 27556# Handling of arguments.
6de9cd9a
DN
27557for ac_config_target in $ac_config_targets
27558do
5213506e
RW
27559 case $ac_config_target in
27560 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27561 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27562 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27563 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27564 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27565 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1ec601bf 27566 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
5213506e
RW
27567
27568 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6de9cd9a
DN
27569 esac
27570done
27571
5213506e 27572
6de9cd9a
DN
27573# If the user did not use the arguments to specify the items to instantiate,
27574# then the envvar interface is used. Set only those that are not.
27575# We use the long form for the default assignment because of an extremely
27576# bizarre bug on SunOS 4.1.3.
27577if $ac_need_defaults; then
27578 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27579 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27580 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27581fi
27582
27583# Have a temporary directory for convenience. Make it in the build tree
5213506e 27584# simply because there is no reason against having it here, and in addition,
6de9cd9a 27585# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
27586# Hook for its removal unless debugging.
27587# Note that there is a small window in which the directory will not be cleaned:
27588# after its creation but before its name has been assigned to `$tmp'.
6de9cd9a
DN
27589$debug ||
27590{
5213506e
RW
27591 tmp=
27592 trap 'exit_status=$?
27593 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27594' 0
27595 trap 'as_fn_exit 1' 1 2 13 15
6de9cd9a 27596}
6de9cd9a
DN
27597# Create a (secure) tmp directory for tmp files.
27598
27599{
5213506e 27600 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6de9cd9a
DN
27601 test -n "$tmp" && test -d "$tmp"
27602} ||
27603{
5213506e
RW
27604 tmp=./conf$$-$RANDOM
27605 (umask 077 && mkdir "$tmp")
27606} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27607
27608# Set up the scripts for CONFIG_FILES section.
27609# No need to generate them if there are no CONFIG_FILES.
27610# This happens for instance with `./config.status config.h'.
27611if test -n "$CONFIG_FILES"; then
27612
27613
27614ac_cr=`echo X | tr X '\015'`
27615# On cygwin, bash can eat \r inside `` if the user requested igncr.
27616# But we know of no other shell where ac_cr would be empty at this
27617# point, so we can use a bashism as a fallback.
27618if test "x$ac_cr" = x; then
27619 eval ac_cr=\$\'\\r\'
27620fi
27621ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27622if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27623 ac_cs_awk_cr='\r'
27624else
27625 ac_cs_awk_cr=$ac_cr
27626fi
27627
27628echo 'BEGIN {' >"$tmp/subs1.awk" &&
27629_ACEOF
27630
27631
6de9cd9a 27632{
5213506e
RW
27633 echo "cat >conf$$subs.awk <<_ACEOF" &&
27634 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27635 echo "_ACEOF"
27636} >conf$$subs.sh ||
27637 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27638ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27639ac_delim='%!_!# '
27640for ac_last_try in false false false false false :; do
27641 . ./conf$$subs.sh ||
27642 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27643
27644 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27645 if test $ac_delim_n = $ac_delim_num; then
27646 break
27647 elif $ac_last_try; then
27648 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27649 else
27650 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27651 fi
27652done
27653rm -f conf$$subs.sh
27654
27655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27656cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27657_ACEOF
27658sed -n '
27659h
27660s/^/S["/; s/!.*/"]=/
27661p
27662g
27663s/^[^!]*!//
27664:repl
27665t repl
27666s/'"$ac_delim"'$//
27667t delim
27668:nl
27669h
27670s/\(.\{148\}\).*/\1/
27671t more1
27672s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27673p
27674n
27675b repl
27676:more1
27677s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27678p
27679g
27680s/.\{148\}//
27681t nl
27682:delim
27683h
27684s/\(.\{148\}\).*/\1/
27685t more2
27686s/["\\]/\\&/g; s/^/"/; s/$/"/
27687p
27688b
27689:more2
27690s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27691p
27692g
27693s/.\{148\}//
27694t delim
27695' <conf$$subs.awk | sed '
27696/^[^""]/{
27697 N
27698 s/\n//
27699}
27700' >>$CONFIG_STATUS || ac_write_fail=1
27701rm -f conf$$subs.awk
27702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27703_ACAWK
27704cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27705 for (key in S) S_is_set[key] = 1
27706 FS = "\a"
27707
27708}
27709{
27710 line = $ 0
27711 nfields = split(line, field, "@")
27712 substed = 0
27713 len = length(field[1])
27714 for (i = 2; i < nfields; i++) {
27715 key = field[i]
27716 keylen = length(key)
27717 if (S_is_set[key]) {
27718 value = S[key]
27719 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27720 len += length(value) + length(field[++i])
27721 substed = 1
27722 } else
27723 len += 1 + keylen
27724 }
27725
27726 print line
6de9cd9a
DN
27727}
27728
5213506e
RW
27729_ACAWK
27730_ACEOF
27731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27732if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27733 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27734else
27735 cat
27736fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27737 || as_fn_error "could not setup config files machinery" "$LINENO" 5
38d24731
RW
27738_ACEOF
27739
5213506e
RW
27740# VPATH may cause trouble with some makes, so we remove $(srcdir),
27741# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27742# trailing colons and then remove the whole line if VPATH becomes empty
27743# (actually we leave an empty line to preserve line numbers).
27744if test "x$srcdir" = x.; then
27745 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27746s/:*\$(srcdir):*/:/
27747s/:*\${srcdir}:*/:/
27748s/:*@srcdir@:*/:/
27749s/^\([^=]*=[ ]*\):*/\1/
27750s/:*$//
27751s/^[^=]*=[ ]*$//
27752}'
27753fi
38d24731 27754
5213506e
RW
27755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27756fi # test -n "$CONFIG_FILES"
6de9cd9a 27757
5213506e
RW
27758# Set up the scripts for CONFIG_HEADERS section.
27759# No need to generate them if there are no CONFIG_HEADERS.
27760# This happens for instance with `./config.status Makefile'.
27761if test -n "$CONFIG_HEADERS"; then
27762cat >"$tmp/defines.awk" <<\_ACAWK ||
27763BEGIN {
27764_ACEOF
27765
27766# Transform confdefs.h into an awk script `defines.awk', embedded as
27767# here-document in config.status, that substitutes the proper values into
27768# config.h.in to produce config.h.
27769
27770# Create a delimiter string that does not exist in confdefs.h, to ease
27771# handling of long lines.
27772ac_delim='%!_!# '
27773for ac_last_try in false false :; do
27774 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27775 if test -z "$ac_t"; then
27776 break
27777 elif $ac_last_try; then
27778 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27779 else
27780 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
f489fba1 27781 fi
5213506e 27782done
c0e7e2bf 27783
5213506e
RW
27784# For the awk script, D is an array of macro values keyed by name,
27785# likewise P contains macro parameters if any. Preserve backslash
27786# newline sequences.
27787
27788ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27789sed -n '
27790s/.\{148\}/&'"$ac_delim"'/g
27791t rset
27792:rset
27793s/^[ ]*#[ ]*define[ ][ ]*/ /
27794t def
27795d
27796:def
27797s/\\$//
27798t bsnl
27799s/["\\]/\\&/g
27800s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27801D["\1"]=" \3"/p
27802s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27803d
27804:bsnl
27805s/["\\]/\\&/g
27806s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27807D["\1"]=" \3\\\\\\n"\\/p
27808t cont
27809s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27810t cont
27811d
27812:cont
27813n
27814s/.\{148\}/&'"$ac_delim"'/g
27815t clear
27816:clear
27817s/\\$//
27818t bsnlc
27819s/["\\]/\\&/g; s/^/"/; s/$/"/p
27820d
27821:bsnlc
27822s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27823b cont
27824' <confdefs.h | sed '
27825s/'"$ac_delim"'/"\\\
27826"/g' >>$CONFIG_STATUS || ac_write_fail=1
27827
27828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27829 for (key in D) D_is_set[key] = 1
27830 FS = "\a"
27831}
27832/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27833 line = \$ 0
27834 split(line, arg, " ")
27835 if (arg[1] == "#") {
27836 defundef = arg[2]
27837 mac1 = arg[3]
27838 } else {
27839 defundef = substr(arg[1], 2)
27840 mac1 = arg[2]
27841 }
27842 split(mac1, mac2, "(") #)
27843 macro = mac2[1]
27844 prefix = substr(line, 1, index(line, defundef) - 1)
27845 if (D_is_set[macro]) {
27846 # Preserve the white space surrounding the "#".
27847 print prefix "define", macro P[macro] D[macro]
27848 next
27849 } else {
27850 # Replace #undef with comments. This is necessary, for example,
27851 # in the case of _POSIX_SOURCE, which is predefined and required
27852 # on some systems where configure will not decide to define it.
27853 if (defundef == "undef") {
27854 print "/*", prefix defundef, macro, "*/"
27855 next
27856 }
27857 }
27858}
27859{ print }
27860_ACAWK
6de9cd9a 27861_ACEOF
5213506e
RW
27862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27863 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27864fi # test -n "$CONFIG_HEADERS"
27865
27866
27867eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27868shift
27869for ac_tag
27870do
27871 case $ac_tag in
27872 :[FHLC]) ac_mode=$ac_tag; continue;;
27873 esac
27874 case $ac_mode$ac_tag in
27875 :[FHL]*:*);;
27876 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27877 :[FH]-) ac_tag=-:-;;
27878 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27879 esac
27880 ac_save_IFS=$IFS
27881 IFS=:
27882 set x $ac_tag
27883 IFS=$ac_save_IFS
27884 shift
27885 ac_file=$1
27886 shift
27887
27888 case $ac_mode in
27889 :L) ac_source=$1;;
27890 :[FH])
27891 ac_file_inputs=
27892 for ac_f
27893 do
27894 case $ac_f in
27895 -) ac_f="$tmp/stdin";;
27896 *) # Look for the file first in the build tree, then in the source tree
27897 # (if the path is not absolute). The absolute path cannot be DOS-style,
27898 # because $ac_f cannot contain `:'.
27899 test -f "$ac_f" ||
27900 case $ac_f in
27901 [\\/$]*) false;;
27902 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27903 esac ||
27904 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27905 esac
27906 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27907 as_fn_append ac_file_inputs " '$ac_f'"
27908 done
27909
27910 # Let's still pretend it is `configure' which instantiates (i.e., don't
27911 # use $as_me), people would be surprised to read:
27912 # /* config.h. Generated by config.status. */
27913 configure_input='Generated from '`
27914 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27915 `' by configure.'
27916 if test x"$ac_file" != x-; then
27917 configure_input="$ac_file. $configure_input"
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27919$as_echo "$as_me: creating $ac_file" >&6;}
27920 fi
27921 # Neutralize special characters interpreted by sed in replacement strings.
27922 case $configure_input in #(
27923 *\&* | *\|* | *\\* )
27924 ac_sed_conf_input=`$as_echo "$configure_input" |
27925 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27926 *) ac_sed_conf_input=$configure_input;;
27927 esac
27928
27929 case $ac_tag in
27930 *:-:* | *:-) cat >"$tmp/stdin" \
27931 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27932 esac
27933 ;;
6de9cd9a
DN
27934 esac
27935
5213506e 27936 ac_dir=`$as_dirname -- "$ac_file" ||
6de9cd9a
DN
27937$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27938 X"$ac_file" : 'X\(//\)[^/]' \| \
27939 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
27940 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27941$as_echo X"$ac_file" |
27942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27943 s//\1/
27944 q
27945 }
27946 /^X\(\/\/\)[^/].*/{
27947 s//\1/
27948 q
27949 }
27950 /^X\(\/\/\)$/{
27951 s//\1/
27952 q
27953 }
27954 /^X\(\/\).*/{
27955 s//\1/
27956 q
27957 }
27958 s/.*/./; q'`
27959 as_dir="$ac_dir"; as_fn_mkdir_p
6de9cd9a
DN
27960 ac_builddir=.
27961
5213506e
RW
27962case "$ac_dir" in
27963.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27964*)
27965 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27966 # A ".." for each directory in $ac_dir_suffix.
27967 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27968 case $ac_top_builddir_sub in
27969 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27970 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27971 esac ;;
27972esac
27973ac_abs_top_builddir=$ac_pwd
27974ac_abs_builddir=$ac_pwd$ac_dir_suffix
27975# for backward compatibility:
27976ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
27977
27978case $srcdir in
5213506e 27979 .) # We are building in place.
6de9cd9a 27980 ac_srcdir=.
5213506e
RW
27981 ac_top_srcdir=$ac_top_builddir_sub
27982 ac_abs_top_srcdir=$ac_pwd ;;
27983 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 27984 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
27985 ac_top_srcdir=$srcdir
27986 ac_abs_top_srcdir=$srcdir ;;
27987 *) # Relative name.
27988 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27989 ac_top_srcdir=$ac_top_build_prefix$srcdir
27990 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6de9cd9a 27991esac
5213506e 27992ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6de9cd9a 27993
6de9cd9a 27994
5213506e
RW
27995 case $ac_mode in
27996 :F)
27997 #
27998 # CONFIG_FILE
27999 #
6de9cd9a
DN
28000
28001 case $INSTALL in
28002 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
28003 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28004 esac
28005 ac_MKDIR_P=$MKDIR_P
28006 case $MKDIR_P in
28007 [\\/$]* | ?:[\\/]* ) ;;
28008 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6de9cd9a 28009 esac
5213506e 28010_ACEOF
6de9cd9a 28011
5213506e
RW
28012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28013# If the template does not know about datarootdir, expand it.
28014# FIXME: This hack should be removed a few years after 2.60.
28015ac_datarootdir_hack=; ac_datarootdir_seen=
28016ac_sed_dataroot='
28017/datarootdir/ {
28018 p
28019 q
28020}
28021/@datadir@/p
28022/@docdir@/p
28023/@infodir@/p
28024/@localedir@/p
28025/@mandir@/p'
28026case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28027*datarootdir*) ac_datarootdir_seen=yes;;
28028*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28030$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28031_ACEOF
28032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28033 ac_datarootdir_hack='
28034 s&@datadir@&$datadir&g
28035 s&@docdir@&$docdir&g
28036 s&@infodir@&$infodir&g
28037 s&@localedir@&$localedir&g
28038 s&@mandir@&$mandir&g
28039 s&\\\${datarootdir}&$datarootdir&g' ;;
28040esac
78511f8b 28041_ACEOF
5213506e
RW
28042
28043# Neutralize VPATH when `$srcdir' = `.'.
28044# Shell code in configure.ac might set extrasub.
28045# FIXME: do we really want to maintain this feature?
28046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28047ac_sed_extra="$ac_vpsub
6de9cd9a
DN
28048$extrasub
28049_ACEOF
5213506e 28050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a
DN
28051:t
28052/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
28053s|@configure_input@|$ac_sed_conf_input|;t t
28054s&@top_builddir@&$ac_top_builddir_sub&;t t
28055s&@top_build_prefix@&$ac_top_build_prefix&;t t
28056s&@srcdir@&$ac_srcdir&;t t
28057s&@abs_srcdir@&$ac_abs_srcdir&;t t
28058s&@top_srcdir@&$ac_top_srcdir&;t t
28059s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28060s&@builddir@&$ac_builddir&;t t
28061s&@abs_builddir@&$ac_abs_builddir&;t t
28062s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28063s&@INSTALL@&$ac_INSTALL&;t t
28064s&@MKDIR_P@&$ac_MKDIR_P&;t t
28065$ac_datarootdir_hack
28066"
28067eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28068 || as_fn_error "could not create $ac_file" "$LINENO" 5
28069
28070test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28071 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28072 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28074which seems to be undefined. Please make sure it is defined." >&5
28075$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28076which seems to be undefined. Please make sure it is defined." >&2;}
28077
28078 rm -f "$tmp/stdin"
6de9cd9a 28079 case $ac_file in
5213506e
RW
28080 -) cat "$tmp/out" && rm -f "$tmp/out";;
28081 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28082 esac \
28083 || as_fn_error "could not create $ac_file" "$LINENO" 5
28084 ;;
28085 :H)
28086 #
28087 # CONFIG_HEADER
28088 #
6de9cd9a 28089 if test x"$ac_file" != x-; then
5213506e
RW
28090 {
28091 $as_echo "/* $configure_input */" \
28092 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28093 } >"$tmp/config.h" \
28094 || as_fn_error "could not create $ac_file" "$LINENO" 5
28095 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28097$as_echo "$as_me: $ac_file is unchanged" >&6;}
6de9cd9a 28098 else
5213506e
RW
28099 rm -f "$ac_file"
28100 mv "$tmp/config.h" "$ac_file" \
28101 || as_fn_error "could not create $ac_file" "$LINENO" 5
6de9cd9a
DN
28102 fi
28103 else
5213506e
RW
28104 $as_echo "/* $configure_input */" \
28105 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28106 || as_fn_error "could not create -" "$LINENO" 5
6de9cd9a 28107 fi
5213506e
RW
28108# Compute "$ac_file"'s index in $config_headers.
28109_am_arg="$ac_file"
6de9cd9a
DN
28110_am_stamp_count=1
28111for _am_header in $config_headers :; do
28112 case $_am_header in
5213506e 28113 $_am_arg | $_am_arg:* )
6de9cd9a
DN
28114 break ;;
28115 * )
28116 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28117 esac
28118done
5213506e
RW
28119echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28120$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28121 X"$_am_arg" : 'X\(//\)[^/]' \| \
28122 X"$_am_arg" : 'X\(//\)$' \| \
28123 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28124$as_echo X"$_am_arg" |
28125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28126 s//\1/
28127 q
28128 }
28129 /^X\(\/\/\)[^/].*/{
28130 s//\1/
28131 q
28132 }
28133 /^X\(\/\/\)$/{
28134 s//\1/
28135 q
28136 }
28137 /^X\(\/\).*/{
28138 s//\1/
28139 q
28140 }
28141 s/.*/./; q'`/stamp-h$_am_stamp_count
28142 ;;
38d24731 28143
5213506e
RW
28144 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28145$as_echo "$as_me: executing $ac_file commands" >&6;}
28146 ;;
28147 esac
6de9cd9a
DN
28148
28149
5213506e
RW
28150 case $ac_file$ac_mode in
28151 "default-1":C)
96b8a615
AJ
28152# Only add multilib support code if we just rebuilt the top-level
28153# Makefile.
28154case " $CONFIG_FILES " in
28155 *" Makefile "*)
28156 ac_file=Makefile . ${multi_basedir}/config-ml.in
28157 ;;
28158esac ;;
5213506e
RW
28159 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28160 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28161 # are listed without --file. Let's play safe and only enable the eval
28162 # if we detect the quoting.
28163 case $CONFIG_FILES in
28164 *\'*) eval set x "$CONFIG_FILES" ;;
28165 *) set x $CONFIG_FILES ;;
28166 esac
28167 shift
28168 for mf
28169 do
28170 # Strip MF so we end up with the name of the file.
28171 mf=`echo "$mf" | sed -e 's/:.*$//'`
28172 # Check whether this is an Automake generated Makefile or not.
28173 # We used to match only the files named `Makefile.in', but
28174 # some people rename them; so instead we look at the file content.
28175 # Grep'ing the first line is not enough: some people post-process
28176 # each Makefile.in and add a new line on top of each file to say so.
28177 # Grep'ing the whole file is not good either: AIX grep has a line
28178 # limit of 2048, but all sed's we know have understand at least 4000.
28179 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28180 dirpart=`$as_dirname -- "$mf" ||
679c0f9a
TT
28181$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28182 X"$mf" : 'X\(//\)[^/]' \| \
28183 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
28184 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28185$as_echo X"$mf" |
28186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28187 s//\1/
28188 q
28189 }
28190 /^X\(\/\/\)[^/].*/{
28191 s//\1/
28192 q
28193 }
28194 /^X\(\/\/\)$/{
28195 s//\1/
28196 q
28197 }
28198 /^X\(\/\).*/{
28199 s//\1/
28200 q
28201 }
28202 s/.*/./; q'`
28203 else
28204 continue
28205 fi
28206 # Extract the definition of DEPDIR, am__include, and am__quote
28207 # from the Makefile without running `make'.
28208 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28209 test -z "$DEPDIR" && continue
28210 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28211 test -z "am__include" && continue
28212 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28213 # When using ansi2knr, U may be empty or an underscore; expand it
28214 U=`sed -n 's/^U = //p' < "$mf"`
28215 # Find all dependency output files, they are included files with
28216 # $(DEPDIR) in their names. We invoke sed twice because it is the
28217 # simplest approach to changing $(DEPDIR) to its actual value in the
28218 # expansion.
28219 for file in `sed -n "
28220 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28221 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28222 # Make sure the directory exists.
28223 test -f "$dirpart/$file" && continue
28224 fdir=`$as_dirname -- "$file" ||
679c0f9a
TT
28225$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28226 X"$file" : 'X\(//\)[^/]' \| \
28227 X"$file" : 'X\(//\)$' \| \
5213506e
RW
28228 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28229$as_echo X"$file" |
28230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28231 s//\1/
28232 q
28233 }
28234 /^X\(\/\/\)[^/].*/{
28235 s//\1/
28236 q
28237 }
28238 /^X\(\/\/\)$/{
28239 s//\1/
28240 q
28241 }
28242 /^X\(\/\).*/{
28243 s//\1/
28244 q
28245 }
28246 s/.*/./; q'`
28247 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28248 # echo "creating $dirpart/$file"
28249 echo '# dummy' > "$dirpart/$file"
679c0f9a 28250 done
679c0f9a 28251 done
5213506e 28252}
1cf3d07d 28253 ;;
5213506e 28254 "libtool":C)
1cf3d07d
SE
28255
28256 # See if we are running on zsh, and set the options which allow our
28257 # commands through without removal of \ escapes.
28258 if test -n "${ZSH_VERSION+set}" ; then
28259 setopt NO_GLOB_SUBST
28260 fi
28261
28262 cfgfile="${ofile}T"
28263 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28264 $RM "$cfgfile"
28265
28266 cat <<_LT_EOF >> "$cfgfile"
28267#! $SHELL
28268
28269# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
d58dead8 28270# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
28271# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28272# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28273#
d58dead8 28274# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 28275# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d58dead8 28276# Written by Gordon Matzigkeit, 1996
1cf3d07d 28277#
d58dead8 28278# This file is part of GNU Libtool.
1cf3d07d 28279#
d58dead8
PG
28280# GNU Libtool is free software; you can redistribute it and/or
28281# modify it under the terms of the GNU General Public License as
28282# published by the Free Software Foundation; either version 2 of
28283# the License, or (at your option) any later version.
1cf3d07d 28284#
d58dead8
PG
28285# As a special exception to the GNU General Public License,
28286# if you distribute this file as part of a program or library that
28287# is built using GNU Libtool, you may include this file under the
28288# same distribution terms that you use for the rest of that program.
1cf3d07d 28289#
d58dead8
PG
28290# GNU Libtool is distributed in the hope that it will be useful,
28291# but WITHOUT ANY WARRANTY; without even the implied warranty of
28292# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28293# GNU General Public License for more details.
1cf3d07d 28294#
d58dead8
PG
28295# You should have received a copy of the GNU General Public License
28296# along with GNU Libtool; see the file COPYING. If not, a copy
28297# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28298# obtained by writing to the Free Software Foundation, Inc.,
28299# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
28300
28301
28302# The names of the tagged configurations supported by this script.
28303available_tags="FC "
28304
28305# ### BEGIN LIBTOOL CONFIG
28306
66dbcf2d
RO
28307# A sed program that does not truncate output.
28308SED=$lt_SED
28309
28310# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28311Xsed="\$SED -e 1s/^X//"
28312
28313# A grep program that handles long lines.
28314GREP=$lt_GREP
28315
28316# An ERE matcher.
28317EGREP=$lt_EGREP
28318
28319# A literal string matcher.
28320FGREP=$lt_FGREP
28321
28322# Shell to use when invoking shell scripts.
28323SHELL=$lt_SHELL
28324
28325# An echo program that protects backslashes.
28326ECHO=$lt_ECHO
28327
1cf3d07d
SE
28328# Which release of libtool.m4 was used?
28329macro_version=$macro_version
28330macro_revision=$macro_revision
28331
28332# Whether or not to build shared libraries.
28333build_libtool_libs=$enable_shared
28334
28335# Whether or not to build static libraries.
28336build_old_libs=$enable_static
28337
28338# What type of objects to build.
28339pic_mode=$pic_mode
28340
28341# Whether or not to optimize for fast installation.
28342fast_install=$enable_fast_install
28343
28344# The host system.
28345host_alias=$host_alias
28346host=$host
28347host_os=$host_os
28348
28349# The build system.
28350build_alias=$build_alias
28351build=$build
28352build_os=$build_os
28353
1cf3d07d
SE
28354# A BSD- or MS-compatible name lister.
28355NM=$lt_NM
28356
28357# Whether we need soft or hard links.
28358LN_S=$lt_LN_S
28359
28360# What is the maximum length of a command?
28361max_cmd_len=$max_cmd_len
28362
28363# Object file suffix (normally "o").
28364objext=$ac_objext
28365
28366# Executable file suffix (normally "").
28367exeext=$exeext
28368
28369# whether the shell understands "unset".
28370lt_unset=$lt_unset
28371
28372# turn spaces into newlines.
28373SP2NL=$lt_lt_SP2NL
28374
28375# turn newlines into spaces.
28376NL2SP=$lt_lt_NL2SP
28377
d58dead8
PG
28378# An object symbol dumper.
28379OBJDUMP=$lt_OBJDUMP
28380
1cf3d07d
SE
28381# Method to check whether dependent libraries are shared objects.
28382deplibs_check_method=$lt_deplibs_check_method
28383
28384# Command to use when deplibs_check_method == "file_magic".
28385file_magic_cmd=$lt_file_magic_cmd
28386
28387# The archiver.
28388AR=$lt_AR
28389AR_FLAGS=$lt_AR_FLAGS
28390
28391# A symbol stripping program.
28392STRIP=$lt_STRIP
28393
28394# Commands used to install an old-style archive.
28395RANLIB=$lt_RANLIB
28396old_postinstall_cmds=$lt_old_postinstall_cmds
28397old_postuninstall_cmds=$lt_old_postuninstall_cmds
28398
43e02a8a
RW
28399# Whether to use a lock for old archive extraction.
28400lock_old_archive_extraction=$lock_old_archive_extraction
28401
1cf3d07d
SE
28402# A C compiler.
28403LTCC=$lt_CC
28404
28405# LTCC compiler flags.
28406LTCFLAGS=$lt_CFLAGS
28407
28408# Take the output of nm and produce a listing of raw symbols and C names.
28409global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28410
28411# Transform the output of nm in a proper C declaration.
28412global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28413
28414# Transform the output of nm in a C name address pair.
28415global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28416
d58dead8
PG
28417# Transform the output of nm in a C name address pair when lib prefix is needed.
28418global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28419
1cf3d07d
SE
28420# The name of the directory that contains temporary libtool files.
28421objdir=$objdir
28422
1cf3d07d
SE
28423# Used to examine libraries when file_magic_cmd begins with "file".
28424MAGIC_CMD=$MAGIC_CMD
28425
28426# Must we lock files when doing compilation?
28427need_locks=$lt_need_locks
28428
d58dead8
PG
28429# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28430DSYMUTIL=$lt_DSYMUTIL
28431
28432# Tool to change global to local symbols on Mac OS X.
28433NMEDIT=$lt_NMEDIT
28434
28435# Tool to manipulate fat objects and archives on Mac OS X.
28436LIPO=$lt_LIPO
28437
28438# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28439OTOOL=$lt_OTOOL
28440
28441# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28442OTOOL64=$lt_OTOOL64
28443
1cf3d07d
SE
28444# Old archive suffix (normally "a").
28445libext=$libext
28446
28447# Shared library suffix (normally ".so").
28448shrext_cmds=$lt_shrext_cmds
28449
28450# The commands to extract the exported symbol list from a shared archive.
28451extract_expsyms_cmds=$lt_extract_expsyms_cmds
28452
28453# Variables whose values should be saved in libtool wrapper scripts and
28454# restored at link time.
28455variables_saved_for_relink=$lt_variables_saved_for_relink
28456
28457# Do we need the "lib" prefix for modules?
28458need_lib_prefix=$need_lib_prefix
28459
28460# Do we need a version for libraries?
28461need_version=$need_version
28462
28463# Library versioning type.
28464version_type=$version_type
28465
28466# Shared library runtime path variable.
28467runpath_var=$runpath_var
28468
28469# Shared library path variable.
28470shlibpath_var=$shlibpath_var
28471
28472# Is shlibpath searched before the hard-coded library search path?
28473shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28474
28475# Format of library name prefix.
28476libname_spec=$lt_libname_spec
28477
28478# List of archive names. First name is the real one, the rest are links.
28479# The last name is the one that the linker finds with -lNAME
28480library_names_spec=$lt_library_names_spec
28481
28482# The coded name of the library, if different from the real name.
28483soname_spec=$lt_soname_spec
28484
43e02a8a
RW
28485# Permission mode override for installation of shared libraries.
28486install_override_mode=$lt_install_override_mode
28487
1cf3d07d
SE
28488# Command to use after installation of a shared archive.
28489postinstall_cmds=$lt_postinstall_cmds
28490
28491# Command to use after uninstallation of a shared archive.
28492postuninstall_cmds=$lt_postuninstall_cmds
28493
28494# Commands used to finish a libtool library installation in a directory.
28495finish_cmds=$lt_finish_cmds
28496
28497# As "finish_cmds", except a single script fragment to be evaled but
28498# not shown.
28499finish_eval=$lt_finish_eval
28500
28501# Whether we should hardcode library paths into libraries.
28502hardcode_into_libs=$hardcode_into_libs
28503
28504# Compile-time system search path for libraries.
28505sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28506
28507# Run-time system search path for libraries.
28508sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28509
28510# Whether dlopen is supported.
28511dlopen_support=$enable_dlopen
28512
28513# Whether dlopen of programs is supported.
28514dlopen_self=$enable_dlopen_self
28515
28516# Whether dlopen of statically linked programs is supported.
28517dlopen_self_static=$enable_dlopen_self_static
28518
28519# Commands to strip libraries.
28520old_striplib=$lt_old_striplib
28521striplib=$lt_striplib
28522
28523
28524# The linker used to build libraries.
28525LD=$lt_LD
28526
43e02a8a
RW
28527# How to create reloadable object files.
28528reload_flag=$lt_reload_flag
28529reload_cmds=$lt_reload_cmds
28530
1cf3d07d
SE
28531# Commands used to build an old-style archive.
28532old_archive_cmds=$lt_old_archive_cmds
28533
28534# A language specific compiler.
28535CC=$lt_compiler
28536
28537# Is the compiler the GNU compiler?
28538with_gcc=$GCC
28539
28540# Compiler flag to turn off builtin functions.
28541no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28542
28543# How to pass a linker flag through the compiler.
28544wl=$lt_lt_prog_compiler_wl
28545
28546# Additional compiler flags for building library objects.
28547pic_flag=$lt_lt_prog_compiler_pic
28548
28549# Compiler flag to prevent dynamic linking.
28550link_static_flag=$lt_lt_prog_compiler_static
28551
28552# Does compiler simultaneously support -c and -o options?
28553compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28554
28555# Whether or not to add -lc for building shared libraries.
28556build_libtool_need_lc=$archive_cmds_need_lc
28557
28558# Whether or not to disallow shared libs when runtime libs are static.
28559allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28560
28561# Compiler flag to allow reflexive dlopens.
28562export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28563
28564# Compiler flag to generate shared objects directly from archives.
28565whole_archive_flag_spec=$lt_whole_archive_flag_spec
28566
28567# Whether the compiler copes with passing no objects directly.
28568compiler_needs_object=$lt_compiler_needs_object
28569
28570# Create an old-style archive from a shared archive.
28571old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28572
28573# Create a temporary old-style archive to link instead of a shared archive.
28574old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28575
28576# Commands used to build a shared archive.
28577archive_cmds=$lt_archive_cmds
28578archive_expsym_cmds=$lt_archive_expsym_cmds
28579
28580# Commands used to build a loadable module if different from building
28581# a shared archive.
28582module_cmds=$lt_module_cmds
28583module_expsym_cmds=$lt_module_expsym_cmds
28584
28585# Whether we are building with GNU ld or not.
28586with_gnu_ld=$lt_with_gnu_ld
28587
28588# Flag that allows shared libraries with undefined symbols to be built.
28589allow_undefined_flag=$lt_allow_undefined_flag
28590
28591# Flag that enforces no undefined symbols.
28592no_undefined_flag=$lt_no_undefined_flag
28593
28594# Flag to hardcode \$libdir into a binary during linking.
28595# This must work even if \$libdir does not exist
28596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28597
28598# If ld is used when linking, flag to hardcode \$libdir into a binary
28599# during linking. This must work even if \$libdir does not exist.
28600hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28601
28602# Whether we need a single "-rpath" flag with a separated argument.
28603hardcode_libdir_separator=$lt_hardcode_libdir_separator
28604
28605# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28606# DIR into the resulting binary.
28607hardcode_direct=$hardcode_direct
28608
28609# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28610# DIR into the resulting binary and the resulting library dependency is
28611# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28612# library is relocated.
28613hardcode_direct_absolute=$hardcode_direct_absolute
28614
28615# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28616# into the resulting binary.
28617hardcode_minus_L=$hardcode_minus_L
28618
28619# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28620# into the resulting binary.
28621hardcode_shlibpath_var=$hardcode_shlibpath_var
28622
28623# Set to "yes" if building a shared library automatically hardcodes DIR
28624# into the library and all subsequent libraries and executables linked
28625# against it.
28626hardcode_automatic=$hardcode_automatic
28627
28628# Set to yes if linker adds runtime paths of dependent libraries
28629# to runtime path list.
28630inherit_rpath=$inherit_rpath
28631
28632# Whether libtool must link a program against all its dependency libraries.
28633link_all_deplibs=$link_all_deplibs
28634
28635# Fix the shell variable \$srcfile for the compiler.
28636fix_srcfile_path=$lt_fix_srcfile_path
28637
28638# Set to "yes" if exported symbols are required.
28639always_export_symbols=$always_export_symbols
28640
28641# The commands to list exported symbols.
28642export_symbols_cmds=$lt_export_symbols_cmds
28643
28644# Symbols that should not be listed in the preloaded symbols.
28645exclude_expsyms=$lt_exclude_expsyms
28646
28647# Symbols that must always be exported.
28648include_expsyms=$lt_include_expsyms
28649
28650# Commands necessary for linking programs (against libraries) with templates.
28651prelink_cmds=$lt_prelink_cmds
28652
28653# Specify filename containing input files.
28654file_list_spec=$lt_file_list_spec
28655
28656# How to hardcode a shared library path into an executable.
28657hardcode_action=$hardcode_action
28658
d58dead8
PG
28659# The directories searched by this compiler when creating a shared library.
28660compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28661
1cf3d07d
SE
28662# Dependencies to place before and after the objects being linked to
28663# create a shared library.
28664predep_objects=$lt_predep_objects
28665postdep_objects=$lt_postdep_objects
28666predeps=$lt_predeps
28667postdeps=$lt_postdeps
28668
28669# The library search path used internally by the compiler when linking
28670# a shared library.
28671compiler_lib_search_path=$lt_compiler_lib_search_path
28672
28673# ### END LIBTOOL CONFIG
28674
28675_LT_EOF
28676
28677 case $host_os in
28678 aix3*)
28679 cat <<\_LT_EOF >> "$cfgfile"
28680# AIX sometimes has problems with the GCC collect2 program. For some
28681# reason, if we set the COLLECT_NAMES environment variable, the problems
28682# vanish in a puff of smoke.
28683if test "X${COLLECT_NAMES+set}" != Xset; then
28684 COLLECT_NAMES=
28685 export COLLECT_NAMES
28686fi
28687_LT_EOF
28688 ;;
28689 esac
28690
28691
28692ltmain="$ac_aux_dir/ltmain.sh"
28693
28694
28695 # We use sed instead of cat because bash on DJGPP gets confused if
28696 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28697 # text mode, it properly converts lines to CR/LF. This bash problem
28698 # is reportedly fixed, but why not run on old versions too?
28699 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28700 || (rm -f "$cfgfile"; exit 1)
28701
28702 case $xsi_shell in
28703 yes)
28704 cat << \_LT_EOF >> "$cfgfile"
d58dead8 28705
1cf3d07d
SE
28706# func_dirname file append nondir_replacement
28707# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28708# otherwise set result to NONDIR_REPLACEMENT.
28709func_dirname ()
28710{
28711 case ${1} in
28712 */*) func_dirname_result="${1%/*}${2}" ;;
28713 * ) func_dirname_result="${3}" ;;
28714 esac
28715}
28716
28717# func_basename file
28718func_basename ()
28719{
28720 func_basename_result="${1##*/}"
28721}
28722
d58dead8
PG
28723# func_dirname_and_basename file append nondir_replacement
28724# perform func_basename and func_dirname in a single function
28725# call:
28726# dirname: Compute the dirname of FILE. If nonempty,
28727# add APPEND to the result, otherwise set result
28728# to NONDIR_REPLACEMENT.
28729# value returned in "$func_dirname_result"
28730# basename: Compute filename of FILE.
28731# value retuned in "$func_basename_result"
28732# Implementation must be kept synchronized with func_dirname
28733# and func_basename. For efficiency, we do not delegate to
28734# those functions but instead duplicate the functionality here.
28735func_dirname_and_basename ()
28736{
28737 case ${1} in
28738 */*) func_dirname_result="${1%/*}${2}" ;;
28739 * ) func_dirname_result="${3}" ;;
28740 esac
28741 func_basename_result="${1##*/}"
28742}
28743
1cf3d07d
SE
28744# func_stripname prefix suffix name
28745# strip PREFIX and SUFFIX off of NAME.
28746# PREFIX and SUFFIX must not contain globbing or regex special
28747# characters, hashes, percent signs, but SUFFIX may contain a leading
28748# dot (in which case that matches only a dot).
28749func_stripname ()
28750{
28751 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28752 # positional parameters, so assign one to ordinary parameter first.
28753 func_stripname_result=${3}
28754 func_stripname_result=${func_stripname_result#"${1}"}
28755 func_stripname_result=${func_stripname_result%"${2}"}
28756}
28757
28758# func_opt_split
28759func_opt_split ()
28760{
28761 func_opt_split_opt=${1%%=*}
28762 func_opt_split_arg=${1#*=}
28763}
28764
28765# func_lo2o object
28766func_lo2o ()
28767{
28768 case ${1} in
28769 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28770 *) func_lo2o_result=${1} ;;
28771 esac
28772}
d58dead8
PG
28773
28774# func_xform libobj-or-source
28775func_xform ()
28776{
28777 func_xform_result=${1%.*}.lo
28778}
28779
28780# func_arith arithmetic-term...
28781func_arith ()
28782{
28783 func_arith_result=$(( $* ))
28784}
28785
28786# func_len string
28787# STRING may not start with a hyphen.
28788func_len ()
28789{
28790 func_len_result=${#1}
28791}
28792
1cf3d07d
SE
28793_LT_EOF
28794 ;;
28795 *) # Bourne compatible functions.
28796 cat << \_LT_EOF >> "$cfgfile"
d58dead8 28797
1cf3d07d
SE
28798# func_dirname file append nondir_replacement
28799# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28800# otherwise set result to NONDIR_REPLACEMENT.
28801func_dirname ()
28802{
28803 # Extract subdirectory from the argument.
43e02a8a 28804 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
28805 if test "X$func_dirname_result" = "X${1}"; then
28806 func_dirname_result="${3}"
28807 else
28808 func_dirname_result="$func_dirname_result${2}"
28809 fi
28810}
28811
28812# func_basename file
28813func_basename ()
28814{
43e02a8a 28815 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
28816}
28817
d58dead8 28818
1cf3d07d
SE
28819# func_stripname prefix suffix name
28820# strip PREFIX and SUFFIX off of NAME.
28821# PREFIX and SUFFIX must not contain globbing or regex special
28822# characters, hashes, percent signs, but SUFFIX may contain a leading
28823# dot (in which case that matches only a dot).
28824# func_strip_suffix prefix name
28825func_stripname ()
28826{
28827 case ${2} in
43e02a8a
RW
28828 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28829 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
28830 esac
28831}
28832
28833# sed scripts:
28834my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28835my_sed_long_arg='1s/^-[^=]*=//'
28836
28837# func_opt_split
28838func_opt_split ()
28839{
43e02a8a
RW
28840 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28841 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
28842}
28843
28844# func_lo2o object
28845func_lo2o ()
28846{
43e02a8a 28847 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 28848}
d58dead8
PG
28849
28850# func_xform libobj-or-source
28851func_xform ()
28852{
43e02a8a 28853 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d58dead8
PG
28854}
28855
28856# func_arith arithmetic-term...
28857func_arith ()
28858{
28859 func_arith_result=`expr "$@"`
28860}
28861
28862# func_len string
28863# STRING may not start with a hyphen.
28864func_len ()
28865{
28866 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28867}
28868
1cf3d07d
SE
28869_LT_EOF
28870esac
28871
28872case $lt_shell_append in
28873 yes)
28874 cat << \_LT_EOF >> "$cfgfile"
28875
28876# func_append var value
28877# Append VALUE to the end of shell variable VAR.
28878func_append ()
28879{
28880 eval "$1+=\$2"
28881}
28882_LT_EOF
28883 ;;
28884 *)
28885 cat << \_LT_EOF >> "$cfgfile"
28886
28887# func_append var value
28888# Append VALUE to the end of shell variable VAR.
28889func_append ()
28890{
28891 eval "$1=\$$1\$2"
28892}
d58dead8 28893
1cf3d07d
SE
28894_LT_EOF
28895 ;;
28896 esac
28897
28898
28899 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28900 || (rm -f "$cfgfile"; exit 1)
28901
28902 mv -f "$cfgfile" "$ofile" ||
28903 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28904 chmod +x "$ofile"
28905
28906
28907 cat <<_LT_EOF >> "$ofile"
28908
28909# ### BEGIN LIBTOOL TAG CONFIG: FC
28910
28911# The linker used to build libraries.
28912LD=$lt_LD_FC
28913
43e02a8a
RW
28914# How to create reloadable object files.
28915reload_flag=$lt_reload_flag_FC
28916reload_cmds=$lt_reload_cmds_FC
28917
1cf3d07d
SE
28918# Commands used to build an old-style archive.
28919old_archive_cmds=$lt_old_archive_cmds_FC
28920
28921# A language specific compiler.
28922CC=$lt_compiler_FC
28923
28924# Is the compiler the GNU compiler?
28925with_gcc=$GCC_FC
28926
28927# Compiler flag to turn off builtin functions.
28928no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
28929
28930# How to pass a linker flag through the compiler.
28931wl=$lt_lt_prog_compiler_wl_FC
28932
28933# Additional compiler flags for building library objects.
28934pic_flag=$lt_lt_prog_compiler_pic_FC
28935
28936# Compiler flag to prevent dynamic linking.
28937link_static_flag=$lt_lt_prog_compiler_static_FC
28938
28939# Does compiler simultaneously support -c and -o options?
28940compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
28941
28942# Whether or not to add -lc for building shared libraries.
28943build_libtool_need_lc=$archive_cmds_need_lc_FC
28944
28945# Whether or not to disallow shared libs when runtime libs are static.
28946allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
28947
28948# Compiler flag to allow reflexive dlopens.
28949export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
28950
28951# Compiler flag to generate shared objects directly from archives.
28952whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
28953
28954# Whether the compiler copes with passing no objects directly.
28955compiler_needs_object=$lt_compiler_needs_object_FC
28956
28957# Create an old-style archive from a shared archive.
28958old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
28959
28960# Create a temporary old-style archive to link instead of a shared archive.
28961old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
28962
28963# Commands used to build a shared archive.
28964archive_cmds=$lt_archive_cmds_FC
28965archive_expsym_cmds=$lt_archive_expsym_cmds_FC
28966
28967# Commands used to build a loadable module if different from building
28968# a shared archive.
28969module_cmds=$lt_module_cmds_FC
28970module_expsym_cmds=$lt_module_expsym_cmds_FC
28971
28972# Whether we are building with GNU ld or not.
28973with_gnu_ld=$lt_with_gnu_ld_FC
28974
28975# Flag that allows shared libraries with undefined symbols to be built.
28976allow_undefined_flag=$lt_allow_undefined_flag_FC
28977
28978# Flag that enforces no undefined symbols.
28979no_undefined_flag=$lt_no_undefined_flag_FC
28980
28981# Flag to hardcode \$libdir into a binary during linking.
28982# This must work even if \$libdir does not exist
28983hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
28984
28985# If ld is used when linking, flag to hardcode \$libdir into a binary
28986# during linking. This must work even if \$libdir does not exist.
28987hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
28988
28989# Whether we need a single "-rpath" flag with a separated argument.
28990hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
28991
28992# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28993# DIR into the resulting binary.
28994hardcode_direct=$hardcode_direct_FC
28995
28996# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28997# DIR into the resulting binary and the resulting library dependency is
28998# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28999# library is relocated.
29000hardcode_direct_absolute=$hardcode_direct_absolute_FC
29001
29002# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29003# into the resulting binary.
29004hardcode_minus_L=$hardcode_minus_L_FC
29005
29006# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29007# into the resulting binary.
29008hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29009
29010# Set to "yes" if building a shared library automatically hardcodes DIR
29011# into the library and all subsequent libraries and executables linked
29012# against it.
29013hardcode_automatic=$hardcode_automatic_FC
29014
29015# Set to yes if linker adds runtime paths of dependent libraries
29016# to runtime path list.
29017inherit_rpath=$inherit_rpath_FC
29018
29019# Whether libtool must link a program against all its dependency libraries.
29020link_all_deplibs=$link_all_deplibs_FC
29021
29022# Fix the shell variable \$srcfile for the compiler.
29023fix_srcfile_path=$lt_fix_srcfile_path_FC
29024
29025# Set to "yes" if exported symbols are required.
29026always_export_symbols=$always_export_symbols_FC
29027
29028# The commands to list exported symbols.
29029export_symbols_cmds=$lt_export_symbols_cmds_FC
29030
29031# Symbols that should not be listed in the preloaded symbols.
29032exclude_expsyms=$lt_exclude_expsyms_FC
29033
29034# Symbols that must always be exported.
29035include_expsyms=$lt_include_expsyms_FC
29036
29037# Commands necessary for linking programs (against libraries) with templates.
29038prelink_cmds=$lt_prelink_cmds_FC
29039
29040# Specify filename containing input files.
29041file_list_spec=$lt_file_list_spec_FC
29042
29043# How to hardcode a shared library path into an executable.
29044hardcode_action=$hardcode_action_FC
29045
d58dead8
PG
29046# The directories searched by this compiler when creating a shared library.
29047compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29048
1cf3d07d
SE
29049# Dependencies to place before and after the objects being linked to
29050# create a shared library.
29051predep_objects=$lt_predep_objects_FC
29052postdep_objects=$lt_postdep_objects_FC
29053predeps=$lt_predeps_FC
29054postdeps=$lt_postdeps_FC
29055
29056# The library search path used internally by the compiler when linking
29057# a shared library.
29058compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29059
29060# ### END LIBTOOL TAG CONFIG: FC
29061_LT_EOF
29062
679c0f9a 29063 ;;
5213506e 29064 "gstdint.h":C)
c13e029b
PB
29065if test "$GCC" = yes; then
29066 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29067else
29068 echo "/* generated for $CC */" > tmp-stdint.h
29069fi
4c4b3eb0 29070
c13e029b
PB
29071sed 's/^ *//' >> tmp-stdint.h <<EOF
29072
29073 #ifndef GCC_GENERATED_STDINT_H
29074 #define GCC_GENERATED_STDINT_H 1
29075
29076 #include <sys/types.h>
4c4b3eb0 29077EOF
4c4b3eb0 29078
c13e029b
PB
29079if test "$acx_cv_header_stdint" != stdint.h; then
29080 echo "#include <stddef.h>" >> tmp-stdint.h
29081fi
29082if test "$acx_cv_header_stdint" != stddef.h; then
29083 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29084fi
29085
29086sed 's/^ *//' >> tmp-stdint.h <<EOF
29087 /* glibc uses these symbols as guards to prevent redefinitions. */
29088 #ifdef __int8_t_defined
29089 #define _INT8_T
29090 #define _INT16_T
29091 #define _INT32_T
29092 #endif
29093 #ifdef __uint32_t_defined
29094 #define _UINT32_T
29095 #endif
29096
29097EOF
29098
29099# ----------------- done header, emit basic int types -------------
29100if test "$acx_cv_header_stdint" = stddef.h; then
29101 sed 's/^ *//' >> tmp-stdint.h <<EOF
29102
29103 #ifndef _UINT8_T
29104 #define _UINT8_T
29105 #ifndef __uint8_t_defined
29106 #define __uint8_t_defined
b9497ab5 29107 #ifndef uint8_t
c13e029b
PB
29108 typedef unsigned $acx_cv_type_int8_t uint8_t;
29109 #endif
29110 #endif
b9497ab5 29111 #endif
c13e029b
PB
29112
29113 #ifndef _UINT16_T
29114 #define _UINT16_T
29115 #ifndef __uint16_t_defined
29116 #define __uint16_t_defined
b9497ab5 29117 #ifndef uint16_t
c13e029b
PB
29118 typedef unsigned $acx_cv_type_int16_t uint16_t;
29119 #endif
29120 #endif
b9497ab5 29121 #endif
c13e029b
PB
29122
29123 #ifndef _UINT32_T
29124 #define _UINT32_T
29125 #ifndef __uint32_t_defined
29126 #define __uint32_t_defined
b9497ab5 29127 #ifndef uint32_t
c13e029b
PB
29128 typedef unsigned $acx_cv_type_int32_t uint32_t;
29129 #endif
29130 #endif
b9497ab5 29131 #endif
c13e029b
PB
29132
29133 #ifndef _INT8_T
29134 #define _INT8_T
29135 #ifndef __int8_t_defined
29136 #define __int8_t_defined
b9497ab5 29137 #ifndef int8_t
c13e029b
PB
29138 typedef $acx_cv_type_int8_t int8_t;
29139 #endif
29140 #endif
b9497ab5 29141 #endif
c13e029b
PB
29142
29143 #ifndef _INT16_T
29144 #define _INT16_T
29145 #ifndef __int16_t_defined
29146 #define __int16_t_defined
b9497ab5 29147 #ifndef int16_t
c13e029b
PB
29148 typedef $acx_cv_type_int16_t int16_t;
29149 #endif
29150 #endif
b9497ab5 29151 #endif
c13e029b
PB
29152
29153 #ifndef _INT32_T
29154 #define _INT32_T
29155 #ifndef __int32_t_defined
29156 #define __int32_t_defined
b9497ab5 29157 #ifndef int32_t
c13e029b
PB
29158 typedef $acx_cv_type_int32_t int32_t;
29159 #endif
29160 #endif
b9497ab5 29161 #endif
c13e029b
PB
29162EOF
29163elif test "$ac_cv_type_u_int32_t" = yes; then
29164 sed 's/^ *//' >> tmp-stdint.h <<EOF
29165
29166 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29167 #ifndef _INT8_T
29168 #define _INT8_T
29169 #endif
29170 #ifndef _INT16_T
29171 #define _INT16_T
29172 #endif
29173 #ifndef _INT32_T
29174 #define _INT32_T
29175 #endif
29176
29177 #ifndef _UINT8_T
29178 #define _UINT8_T
29179 #ifndef __uint8_t_defined
29180 #define __uint8_t_defined
b9497ab5 29181 #ifndef uint8_t
c13e029b
PB
29182 typedef u_int8_t uint8_t;
29183 #endif
29184 #endif
b9497ab5 29185 #endif
c13e029b
PB
29186
29187 #ifndef _UINT16_T
29188 #define _UINT16_T
29189 #ifndef __uint16_t_defined
29190 #define __uint16_t_defined
b9497ab5 29191 #ifndef uint16_t
c13e029b
PB
29192 typedef u_int16_t uint16_t;
29193 #endif
29194 #endif
b9497ab5 29195 #endif
c13e029b
PB
29196
29197 #ifndef _UINT32_T
29198 #define _UINT32_T
29199 #ifndef __uint32_t_defined
29200 #define __uint32_t_defined
b9497ab5 29201 #ifndef uint32_t
c13e029b
PB
29202 typedef u_int32_t uint32_t;
29203 #endif
29204 #endif
b9497ab5 29205 #endif
c13e029b
PB
29206EOF
29207else
29208 sed 's/^ *//' >> tmp-stdint.h <<EOF
29209
29210 /* Some systems have guard macros to prevent redefinitions, define them. */
29211 #ifndef _INT8_T
29212 #define _INT8_T
29213 #endif
29214 #ifndef _INT16_T
29215 #define _INT16_T
29216 #endif
29217 #ifndef _INT32_T
29218 #define _INT32_T
29219 #endif
29220 #ifndef _UINT8_T
29221 #define _UINT8_T
29222 #endif
29223 #ifndef _UINT16_T
29224 #define _UINT16_T
29225 #endif
29226 #ifndef _UINT32_T
29227 #define _UINT32_T
29228 #endif
29229EOF
29230fi
29231
29232# ------------- done basic int types, emit int64_t types ------------
29233if test "$ac_cv_type_uint64_t" = yes; then
29234 sed 's/^ *//' >> tmp-stdint.h <<EOF
29235
29236 /* system headers have good uint64_t and int64_t */
29237 #ifndef _INT64_T
29238 #define _INT64_T
29239 #endif
29240 #ifndef _UINT64_T
29241 #define _UINT64_T
29242 #endif
29243EOF
29244elif test "$ac_cv_type_u_int64_t" = yes; then
29245 sed 's/^ *//' >> tmp-stdint.h <<EOF
29246
29247 /* system headers have an u_int64_t (and int64_t) */
29248 #ifndef _INT64_T
29249 #define _INT64_T
29250 #endif
29251 #ifndef _UINT64_T
29252 #define _UINT64_T
29253 #ifndef __uint64_t_defined
29254 #define __uint64_t_defined
b9497ab5 29255 #ifndef uint64_t
c13e029b
PB
29256 typedef u_int64_t uint64_t;
29257 #endif
29258 #endif
b9497ab5 29259 #endif
c13e029b
PB
29260EOF
29261elif test -n "$acx_cv_type_int64_t"; then
29262 sed 's/^ *//' >> tmp-stdint.h <<EOF
29263
29264 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29265 #ifndef _INT64_T
29266 #define _INT64_T
b9497ab5 29267 #ifndef int64_t
c13e029b
PB
29268 typedef $acx_cv_type_int64_t int64_t;
29269 #endif
b9497ab5 29270 #endif
c13e029b
PB
29271 #ifndef _UINT64_T
29272 #define _UINT64_T
29273 #ifndef __uint64_t_defined
29274 #define __uint64_t_defined
b9497ab5 29275 #ifndef uint64_t
c13e029b
PB
29276 typedef unsigned $acx_cv_type_int64_t uint64_t;
29277 #endif
29278 #endif
b9497ab5 29279 #endif
c13e029b
PB
29280EOF
29281else
29282 sed 's/^ *//' >> tmp-stdint.h <<EOF
29283
29284 /* some common heuristics for int64_t, using compiler-specific tests */
29285 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29286 #ifndef _INT64_T
29287 #define _INT64_T
29288 #ifndef __int64_t_defined
b9497ab5 29289 #ifndef int64_t
c13e029b
PB
29290 typedef long long int64_t;
29291 #endif
29292 #endif
b9497ab5 29293 #endif
c13e029b
PB
29294 #ifndef _UINT64_T
29295 #define _UINT64_T
b9497ab5 29296 #ifndef uint64_t
c13e029b
PB
29297 typedef unsigned long long uint64_t;
29298 #endif
b9497ab5 29299 #endif
c13e029b
PB
29300
29301 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29302 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29303 does not implement __extension__. But that compiler doesn't define
29304 __GNUC_MINOR__. */
29305 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29306 # define __extension__
29307 # endif
29308
29309 # ifndef _INT64_T
29310 # define _INT64_T
b9497ab5 29311 # ifndef int64_t
c13e029b
PB
29312 __extension__ typedef long long int64_t;
29313 # endif
b9497ab5 29314 # endif
c13e029b
PB
29315 # ifndef _UINT64_T
29316 # define _UINT64_T
b9497ab5 29317 # ifndef uint64_t
c13e029b
PB
29318 __extension__ typedef unsigned long long uint64_t;
29319 # endif
b9497ab5 29320 # endif
c13e029b
PB
29321
29322 #elif !defined __STRICT_ANSI__
29323 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29324
29325 # ifndef _INT64_T
29326 # define _INT64_T
b9497ab5 29327 # ifndef int64_t
c13e029b
PB
29328 typedef __int64 int64_t;
29329 # endif
b9497ab5 29330 # endif
c13e029b
PB
29331 # ifndef _UINT64_T
29332 # define _UINT64_T
b9497ab5 29333 # ifndef uint64_t
c13e029b
PB
29334 typedef unsigned __int64 uint64_t;
29335 # endif
b9497ab5 29336 # endif
c13e029b
PB
29337 # endif /* compiler */
29338
29339 #endif /* ANSI version */
29340EOF
29341fi
29342
29343# ------------- done int64_t types, emit intptr types ------------
29344if test "$ac_cv_type_uintptr_t" != yes; then
29345 sed 's/^ *//' >> tmp-stdint.h <<EOF
29346
29347 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29348 #ifndef __uintptr_t_defined
b9497ab5 29349 #ifndef uintptr_t
c13e029b
PB
29350 typedef u$acx_cv_type_intptr_t uintptr_t;
29351 #endif
b9497ab5 29352 #endif
c13e029b 29353 #ifndef __intptr_t_defined
b9497ab5 29354 #ifndef intptr_t
c13e029b
PB
29355 typedef $acx_cv_type_intptr_t intptr_t;
29356 #endif
b9497ab5 29357 #endif
c13e029b
PB
29358EOF
29359fi
29360
29361# ------------- done intptr types, emit int_least types ------------
4c4b3eb0 29362if test "$ac_cv_type_int_least32_t" != yes; then
c13e029b 29363 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
29364
29365 /* Define int_least types */
29366 typedef int8_t int_least8_t;
29367 typedef int16_t int_least16_t;
29368 typedef int32_t int_least32_t;
c13e029b 29369 #ifdef _INT64_T
4c4b3eb0 29370 typedef int64_t int_least64_t;
c13e029b 29371 #endif
4c4b3eb0
PB
29372
29373 typedef uint8_t uint_least8_t;
29374 typedef uint16_t uint_least16_t;
29375 typedef uint32_t uint_least32_t;
c13e029b 29376 #ifdef _UINT64_T
4c4b3eb0 29377 typedef uint64_t uint_least64_t;
c13e029b 29378 #endif
4c4b3eb0
PB
29379EOF
29380fi
29381
c13e029b 29382# ------------- done intptr types, emit int_fast types ------------
4c4b3eb0 29383if test "$ac_cv_type_int_fast32_t" != yes; then
c13e029b 29384 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
29385
29386 /* Define int_fast types. short is often slow */
29387 typedef int8_t int_fast8_t;
29388 typedef int int_fast16_t;
29389 typedef int32_t int_fast32_t;
c13e029b 29390 #ifdef _INT64_T
4c4b3eb0 29391 typedef int64_t int_fast64_t;
c13e029b 29392 #endif
4c4b3eb0
PB
29393
29394 typedef uint8_t uint_fast8_t;
29395 typedef unsigned int uint_fast16_t;
29396 typedef uint32_t uint_fast32_t;
c13e029b 29397 #ifdef _UINT64_T
4c4b3eb0 29398 typedef uint64_t uint_fast64_t;
c13e029b
PB
29399 #endif
29400EOF
29401fi
29402
29403if test "$ac_cv_type_uintmax_t" != yes; then
29404 sed 's/^ *//' >> tmp-stdint.h <<EOF
29405
29406 /* Define intmax based on what we found */
b9497ab5 29407 #ifndef intmax_t
c13e029b
PB
29408 #ifdef _INT64_T
29409 typedef int64_t intmax_t;
29410 #else
29411 typedef long intmax_t;
29412 #endif
b9497ab5
RO
29413 #endif
29414 #ifndef uintmax_t
c13e029b
PB
29415 #ifdef _UINT64_T
29416 typedef uint64_t uintmax_t;
29417 #else
29418 typedef unsigned long uintmax_t;
29419 #endif
b9497ab5 29420 #endif
4c4b3eb0
PB
29421EOF
29422fi
29423
c13e029b
PB
29424sed 's/^ *//' >> tmp-stdint.h <<EOF
29425
29426 #endif /* GCC_GENERATED_STDINT_H */
29427EOF
4c4b3eb0 29428
c13e029b
PB
29429if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29430 rm -f tmp-stdint.h
4c4b3eb0 29431else
c13e029b 29432 mv -f tmp-stdint.h gstdint.h
4c4b3eb0
PB
29433fi
29434
29435 ;;
5213506e 29436
6de9cd9a 29437 esac
5213506e 29438done # for ac_tag
6de9cd9a 29439
6de9cd9a 29440
5213506e 29441as_fn_exit 0
6de9cd9a 29442_ACEOF
6de9cd9a
DN
29443ac_clean_files=$ac_clean_files_save
29444
5213506e
RW
29445test $ac_write_fail = 0 ||
29446 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29447
6de9cd9a
DN
29448
29449# configure is writing to config.log, and then calls config.status.
29450# config.status does its own redirection, appending to config.log.
29451# Unfortunately, on DOS this fails, as config.log is still kept open
29452# by configure, so config.status won't be able to write to it; its
29453# output is simply discarded. So we exec the FD to /dev/null,
29454# effectively closing config.log, so it can be properly (re)opened and
29455# appended to by config.status. When coming back to configure, we
29456# need to make the FD available again.
29457if test "$no_create" != yes; then
29458 ac_cs_success=:
29459 ac_config_status_args=
29460 test "$silent" = yes &&
29461 ac_config_status_args="$ac_config_status_args --quiet"
29462 exec 5>/dev/null
29463 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29464 exec 5>>config.log
29465 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29466 # would make configure fail if this is the last instruction.
5213506e
RW
29467 $ac_cs_success || as_fn_exit $?
29468fi
29469if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29471$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6de9cd9a
DN
29472fi
29473