]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
PR other/79046
[thirdparty/gcc.git] / libgfortran / configure
CommitLineData
4ee9c684 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cd9a469c 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.
4ee9c684 8#
4ee9c684 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
cd9a469c 11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
4ee9c684 14
cd9a469c 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 :
4ee9c684 18 emulate sh
19 NULLCMD=:
cd9a469c 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4ee9c684 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
cd9a469c 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
4ee9c684 31fi
4ee9c684 32
cd9a469c 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 }
4ee9c684 79fi
80
81
cd9a469c 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
4ee9c684 121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
cd9a469c 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
d5d92632 172test \$(( 1 + 1 )) = 2 || exit 1
e6408286 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\" \\
d5d92632 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cd9a469c 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
4ee9c684 192do
cd9a469c 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."
4ee9c684 236 else
cd9a469c 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."
4ee9c684 241 fi
cd9a469c 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
4ee9c684 380
cd9a469c 381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4ee9c684 383 as_expr=expr
384else
385 as_expr=false
386fi
387
cd9a469c 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4ee9c684 389 as_basename=basename
390else
391 as_basename=false
392fi
393
cd9a469c 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
4ee9c684 399
cd9a469c 400as_me=`$as_basename -- "$0" ||
4ee9c684 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
cd9a469c 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'`
ce1a737c 418
82eaf560 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
ff4425cf 425
4ee9c684 426
cd9a469c 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 |
4ee9c684 436 sed '
cd9a469c 437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
4ee9c684 441 N
cd9a469c 442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4ee9c684 444 t loop
cd9a469c 445 s/-\n.*//
4ee9c684 446 ' >$as_me.lineno &&
cd9a469c 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; }
4ee9c684 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
cd9a469c 452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
4ee9c684 454 # Exit status is that of the last command.
455 exit
456}
457
cd9a469c 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';;
4ee9c684 469esac
470
cd9a469c 471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
4ee9c684 474else
cd9a469c 475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
4ee9c684 477fi
cd9a469c 478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
82eaf560 480 as_ln_s='ln -s'
cd9a469c 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'
82eaf560 491 fi
4ee9c684 492else
493 as_ln_s='cp -p'
494fi
cd9a469c 495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
4ee9c684 497
498if mkdir -p . 2>/dev/null; then
cd9a469c 499 as_mkdir_p='mkdir -p "$as_dir"'
4ee9c684 500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
cd9a469c 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
4ee9c684 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
542f9784 534SHELL=${CONFIG_SHELL-/bin/sh}
535
542f9784 536
cd9a469c 537exec 7<&0 </dev/null 6>&1
538
4ee9c684 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
4ee9c684 544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
cd9a469c 548ac_clean_files=
4ee9c684 549ac_config_libobj_dir=.
cd9a469c 550LIBOBJS=
4ee9c684 551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
82eaf560 555
4ee9c684 556# Identity of this package.
557PACKAGE_NAME='GNU Fortran Runtime Library'
558PACKAGE_TARNAME='libgfortran'
76c0a846 559PACKAGE_VERSION='0.3'
560PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
4ee9c684 561PACKAGE_BUGREPORT=''
cd9a469c 562PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
4ee9c684 563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
cd9a469c 567#ifdef HAVE_SYS_TYPES_H
4ee9c684 568# include <sys/types.h>
569#endif
cd9a469c 570#ifdef HAVE_SYS_STAT_H
4ee9c684 571# include <sys/stat.h>
572#endif
cd9a469c 573#ifdef STDC_HEADERS
4ee9c684 574# include <stdlib.h>
575# include <stddef.h>
576#else
cd9a469c 577# ifdef HAVE_STDLIB_H
4ee9c684 578# include <stdlib.h>
579# endif
580#endif
cd9a469c 581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
4ee9c684 583# include <memory.h>
584# endif
585# include <string.h>
586#endif
cd9a469c 587#ifdef HAVE_STRINGS_H
4ee9c684 588# include <strings.h>
589#endif
cd9a469c 590#ifdef HAVE_INTTYPES_H
4ee9c684 591# include <inttypes.h>
4ee9c684 592#endif
cd9a469c 593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
4ee9c684 597# include <unistd.h>
598#endif"
599
a1aa1d30 600ac_header_list=
601ac_func_list=
87969c8c 602ac_c_werror_flag=
b14cf757 603ac_c_werror_flag=
cd9a469c 604ac_subst_vars='am__EXEEXT_FALSE
605am__EXEEXT_TRUE
606LTLIBOBJS
607LIBOBJS
0812bb06 608get_gcc_base_ver
cd9a469c 609IEEE_FLAGS
d566c3e0 610IEEE_SUPPORT
611IEEE_SUPPORT_FALSE
612IEEE_SUPPORT_TRUE
cd9a469c 613FPU_HOST_HEADER
87969c8c 614LIBGFOR_BUILD_QUAD_FALSE
615LIBGFOR_BUILD_QUAD_TRUE
616LIBQUADINCLUDE
617LIBQUADLIB_DEP
618LIBQUADLIB
619LIBQUADSPEC
cd9a469c 620extra_ldflags_libgfortran
621ac_ct_FC
622FCFLAGS
623FC
624enable_static
625enable_shared
8c35d268 626lt_host_flags
cd9a469c 627OTOOL64
628OTOOL
629LIPO
630NMEDIT
631DSYMUTIL
cd9a469c 632OBJDUMP
633LN_S
634NM
635ac_ct_DUMPBIN
636DUMPBIN
cd9a469c 637LIBTOOL
638RANLIB
639AR
640AS
18ce903b 641HAVE_HWCAP_FALSE
642HAVE_HWCAP_TRUE
643HWCAP_LDFLAGS
644LD
645FGREP
646SED
cd9a469c 647SECTION_FLAGS
eb00e55c 648LIBGFOR_MINIMAL_FALSE
649LIBGFOR_MINIMAL_TRUE
019fb48a 650LIBGFOR_USE_SYMVER_SUN_FALSE
651LIBGFOR_USE_SYMVER_SUN_TRUE
652LIBGFOR_USE_SYMVER_GNU_FALSE
653LIBGFOR_USE_SYMVER_GNU_TRUE
cd9a469c 654LIBGFOR_USE_SYMVER_FALSE
655LIBGFOR_USE_SYMVER_TRUE
656AM_CFLAGS
657AM_FCFLAGS
d5d92632 658toolexeclibdir
659toolexecdir
660EGREP
661GREP
662CPP
cd9a469c 663am__fastdepCC_FALSE
664am__fastdepCC_TRUE
665CCDEPMODE
544db64f 666am__nodep
cd9a469c 667AMDEPBACKSLASH
668AMDEP_FALSE
669AMDEP_TRUE
670am__quote
671am__include
672DEPDIR
673OBJEXT
674EXEEXT
675ac_ct_CC
676CPPFLAGS
677LDFLAGS
678CFLAGS
679CC
cd9a469c 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
7eda0fb7 707target_noncanonical
cd9a469c 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'
4ee9c684 765ac_subst_files=''
cd9a469c 766ac_user_opts='
767enable_option_checking
768with_build_libsubdir
769enable_version_specific_runtime_libs
770enable_intermodule
771enable_maintainer_mode
772enable_multilib
773enable_dependency_tracking
bbb514dc 774enable_symvers
18ce903b 775with_gnu_ld
cd9a469c 776enable_shared
777enable_static
778with_pic
779enable_fast_install
cd9a469c 780enable_libtool_lock
781enable_largefile
d9d975ae 782enable_libquadmath_support
0812bb06 783with_gcc_major_version_only
cd9a469c 784'
785 ac_precious_vars='build_alias
786host_alias
787target_alias
d5d92632 788CC
789CFLAGS
790LDFLAGS
791LIBS
cd9a469c 792CPPFLAGS
d5d92632 793CPP
cd9a469c 794FC
d5d92632 795FCFLAGS'
cd9a469c 796
4ee9c684 797
798# Initialize some variables set by options.
799ac_init_help=
800ac_init_version=false
cd9a469c 801ac_unrecognized_opts=
802ac_unrecognized_sep=
4ee9c684 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.
cd9a469c 825# (The list follows the same order as the GNU Coding Standards.)
4ee9c684 826bindir='${exec_prefix}/bin'
827sbindir='${exec_prefix}/sbin'
828libexecdir='${exec_prefix}/libexec'
cd9a469c 829datarootdir='${prefix}/share'
830datadir='${datarootdir}'
4ee9c684 831sysconfdir='${prefix}/etc'
832sharedstatedir='${prefix}/com'
833localstatedir='${prefix}/var'
4ee9c684 834includedir='${prefix}/include'
835oldincludedir='/usr/include'
cd9a469c 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'
4ee9c684 845
846ac_prev=
cd9a469c 847ac_dashdash=
4ee9c684 848for ac_option
849do
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
cd9a469c 852 eval $ac_prev=\$ac_option
4ee9c684 853 ac_prev=
854 continue
855 fi
856
cd9a469c 857 case $ac_option in
858 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 *) ac_optarg=yes ;;
860 esac
4ee9c684 861
862 # Accept the important Cygnus configure options, so we can diagnose typos.
863
cd9a469c 864 case $ac_dashdash$ac_option in
865 --)
866 ac_dashdash=yes ;;
4ee9c684 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
cd9a469c 888 -datadir | --datadir | --datadi | --datad)
4ee9c684 889 ac_prev=datadir ;;
cd9a469c 890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
4ee9c684 891 datadir=$ac_optarg ;;
892
cd9a469c 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
4ee9c684 900 -disable-* | --disable-*)
cd9a469c 901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
4ee9c684 902 # Reject names that are not valid shell variable names.
cd9a469c 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 ;;
4ee9c684 925
926 -enable-* | --enable-*)
cd9a469c 927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
4ee9c684 928 # Reject names that are not valid shell variable names.
cd9a469c 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=', ';;
82eaf560 939 esac
cd9a469c 940 eval enable_$ac_useropt=\$ac_optarg ;;
4ee9c684 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
cd9a469c 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
4ee9c684 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
cd9a469c 997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1001
4ee9c684 1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 1003 | --localstate | --localstat | --localsta | --localst | --locals)
4ee9c684 1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
4ee9c684 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
cd9a469c 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
4ee9c684 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-*)
cd9a469c 1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
4ee9c684 1132 # Reject names that are not valid shell variable names.
cd9a469c 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=', ';;
82eaf560 1143 esac
cd9a469c 1144 eval with_$ac_useropt=\$ac_optarg ;;
4ee9c684 1145
1146 -without-* | --without-*)
cd9a469c 1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
4ee9c684 1148 # Reject names that are not valid shell variable names.
cd9a469c 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 ;;
4ee9c684 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
cd9a469c 1180 -*) as_fn_error "unrecognized option: \`$ac_option'
1181Try \`$0 --help' for more information."
4ee9c684 1182 ;;
1183
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
cd9a469c 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
4ee9c684 1192 export $ac_envvar ;;
1193
1194 *)
1195 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
4ee9c684 1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
4ee9c684 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'`
cd9a469c 1207 as_fn_error "missing argument to $ac_option"
4ee9c684 1208fi
1209
cd9a469c 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 ;;
82eaf560 1215 esac
cd9a469c 1216fi
82eaf560 1217
cd9a469c 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
82eaf560 1223do
cd9a469c 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.
82eaf560 1232 case $ac_val in
cd9a469c 1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
4ee9c684 1235 esac
cd9a469c 1236 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
4ee9c684 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
cd9a469c 1250 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
4ee9c684 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
cd9a469c 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
4ee9c684 1271# Find the source files, if location was not specified.
1272if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
cd9a469c 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'`
4ee9c684 1298 srcdir=$ac_confdir
cd9a469c 1299 if test ! -r "$srcdir/$ac_unique_file"; then
4ee9c684 1300 srcdir=..
1301 fi
1302else
1303 ac_srcdir_defaulted=no
1304fi
cd9a469c 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
4ee9c684 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
76c0a846 1337\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
4ee9c684 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
4ee9c684 1357Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1359 [$ac_default_prefix]
4ee9c684 1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1361 [PREFIX]
4ee9c684 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:
cd9a469c 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]
4ee9c684 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]
90973b19 1402 --target=TARGET configure for building compilers for TARGET [HOST]
4ee9c684 1403_ACEOF
1404fi
1405
1406if test -n "$ac_init_help"; then
1407 case $ac_init_help in
76c0a846 1408 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
4ee9c684 1409 esac
1410 cat <<\_ACEOF
1411
1412Optional Features:
cd9a469c 1413 --disable-option-checking ignore unrecognized --enable/--with options
4ee9c684 1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d9d975ae 1416 --enable-version-specific-runtime-libs
1417 specify that runtime libraries should be installed
1418 in a compiler-specific directory
93773f82 1419 --enable-intermodule build the library in one step
4ee9c684 1420 --enable-maintainer-mode enable make rules and dependencies not useful
1421 (and sometimes confusing) to the casual installer
90973b19 1422 --enable-multilib build many library versions (default)
2fd61f51 1423 --disable-dependency-tracking speeds up one-time build
1424 --enable-dependency-tracking do not reject slow dependency extractors
bbb514dc 1425 --disable-symvers disable symbol versioning for libgfortran
cd9a469c 1426 --enable-shared[=PKGS] build shared libraries [default=yes]
1427 --enable-static[=PKGS] build static libraries [default=yes]
542f9784 1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
4ee9c684 1430 --disable-libtool-lock avoid locking (might break parallel builds)
90e67cff 1431 --disable-largefile omit support for large files
d9d975ae 1432 --disable-libquadmath-support
1433 disable libquadmath support for Fortran
4ee9c684 1434
1435Optional Packages:
1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3e427a9c 1438 --with-build-libsubdir=DIR Directory where to find libraries for build system
18ce903b 1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
542f9784 1440 --with-pic try to use only PIC/non-PIC objects [default=use
1441 both]
0812bb06 1442 --with-gcc-major-version-only
1443 use only GCC major number in filesystem paths
4ee9c684 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>
cd9a469c 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>
542f9784 1453 CPP C preprocessor
6d73cceb 1454 FC Fortran compiler command
1455 FCFLAGS Fortran compiler flags
4ee9c684 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
cd9a469c 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/>.
4ee9c684 1463_ACEOF
cd9a469c 1464ac_status=$?
4ee9c684 1465fi
1466
1467if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
4ee9c684 1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 continue
4ee9c684 1473 ac_builddir=.
1474
cd9a469c 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
4ee9c684 1490
1491case $srcdir in
cd9a469c 1492 .) # We are building in place.
4ee9c684 1493 ac_srcdir=.
cd9a469c 1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
4ee9c684 1497 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 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 ;;
a106dabe 1504esac
cd9a469c 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
4ee9c684 1515 else
cd9a469c 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; }
4ee9c684 1519 done
1520fi
1521
cd9a469c 1522test -n "$ac_init_help" && exit $ac_status
4ee9c684 1523if $ac_init_version; then
1524 cat <<\_ACEOF
76c0a846 1525GNU Fortran Runtime Library configure 0.3
cd9a469c 1526generated by GNU Autoconf 2.64
4ee9c684 1527
cd9a469c 1528Copyright (C) 2009 Free Software Foundation, Inc.
4ee9c684 1529This configure script is free software; the Free Software Foundation
1530gives unlimited permission to copy, distribute and modify it.
1531_ACEOF
cd9a469c 1532 exit
4ee9c684 1533fi
4ee9c684 1534
cd9a469c 1535## ------------------------ ##
1536## Autoconf initialization. ##
1537## ------------------------ ##
4ee9c684 1538
cd9a469c 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
4ee9c684 1569
cd9a469c 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
d5d92632 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 ()
4ee9c684 1581{
cd9a469c 1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d5d92632 1583 if { { ac_try="$ac_cpp conftest.$ac_ext"
cd9a469c 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
d5d92632 1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cd9a469c 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
d5d92632 1598 test $ac_status = 0; } >/dev/null && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
cd9a469c 1600 test ! -s conftest.err
cd9a469c 1601 }; then :
1602 ac_retval=0
1603else
1604 $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1606
d5d92632 1607 ac_retval=1
cd9a469c 1608fi
cd9a469c 1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval
4ee9c684 1611
d5d92632 1612} # ac_fn_c_try_cpp
4ee9c684 1613
d5d92632 1614# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
cd9a469c 1615# -------------------------------------------------------
d5d92632 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 ()
cd9a469c 1620{
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d5d92632 1622 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cd9a469c 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
d5d92632 1627fi
1628eval ac_res=\$$3
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630$as_echo "$ac_res" >&6; }
cd9a469c 1631else
d5d92632 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
cd9a469c 1636/* end confdefs.h. */
1637$4
1638#include <$2>
1639_ACEOF
1640if ac_fn_c_try_compile "$LINENO"; then :
d5d92632 1641 ac_header_compiler=yes
cd9a469c 1642else
d5d92632 1643 ac_header_compiler=no
cd9a469c 1644fi
1645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5d92632 1646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1647$as_echo "$ac_header_compiler" >&6; }
4ee9c684 1648
d5d92632 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; }
4ee9c684 1664
d5d92632 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 ;;
cd9a469c 1685esac
d5d92632 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
cd9a469c 1690else
d5d92632 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; }
cd9a469c 1696fi
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
4ee9c684 1698
d5d92632 1699} # ac_fn_c_check_header_mongrel
4ee9c684 1700
cd9a469c 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
4ee9c684 1734
cd9a469c 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
4ee9c684 1740
cd9a469c 1741} # ac_fn_c_try_run
4ee9c684 1742
d5d92632 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
cd9a469c 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
4ee9c684 1839
cd9a469c 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. */
4ee9c684 1844
cd9a469c 1845#ifdef __STDC__
1846# include <limits.h>
1847#else
1848# include <assert.h>
1849#endif
4ee9c684 1850
cd9a469c 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 ()
82eaf560 1869{
cd9a469c 1870return $2 ();
1871 ;
1872 return 0;
82eaf560 1873}
cd9a469c 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;}
4ee9c684 1887
cd9a469c 1888} # ac_fn_c_check_func
4ee9c684 1889
cd9a469c 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
4ee9c684 1920
cd9a469c 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
4ee9c684 1925
cd9a469c 1926} # ac_fn_fc_try_compile
4ee9c684 1927
cd9a469c 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
4ee9c684 1961
cd9a469c 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
4ee9c684 1971
cd9a469c 1972} # ac_fn_fc_try_link
4ee9c684 1973
cd9a469c 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}
4ee9c684 1998_ACEOF
cd9a469c 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}
4ee9c684 2011_ACEOF
cd9a469c 2012if ac_fn_c_try_compile "$LINENO"; then :
4ee9c684 2013
cd9a469c 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;}
4ee9c684 2025
cd9a469c 2026} # ac_fn_c_check_type
4ee9c684 2027
d5d92632 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 ()
cd9a469c 2034{
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069752c 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
cd9a469c 2039/* end confdefs.h. */
2069752c 2040$4
cd9a469c 2041int
2042main ()
2043{
2069752c 2044static int test_array [1 - 2 * !(($2) >= 0)];
cd9a469c 2045test_array [0] = 0
4ee9c684 2046
cd9a469c 2047 ;
2048 return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
2069752c 2052 ac_lo=0 ac_mid=0
2053 while :; do
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 2055/* end confdefs.h. */
2069752c 2056$4
cd9a469c 2057int
2058main ()
2059{
2069752c 2060static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cd9a469c 2061test_array [0] = 0
4ee9c684 2062
cd9a469c 2063 ;
2064 return 0;
2065}
2066_ACEOF
2067if ac_fn_c_try_compile "$LINENO"; then :
2069752c 2068 ac_hi=$ac_mid; break
cd9a469c 2069else
2069752c 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
cd9a469c 2076fi
2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069752c 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
cd9a469c 2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069752c 2120 done
ea6b3890 2121else
2069752c 2122 ac_lo= ac_hi=
cd9a469c 2123fi
2069752c 2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea6b3890 2125fi
2069752c 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
cd9a469c 2131/* end confdefs.h. */
2069752c 2132$4
cd9a469c 2133int
2134main ()
2135{
2069752c 2136static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cd9a469c 2137test_array [0] = 0
4ee9c684 2138
cd9a469c 2139 ;
2140 return 0;
2141}
2142_ACEOF
2143if ac_fn_c_try_compile "$LINENO"; then :
2069752c 2144 ac_hi=$ac_mid
2145else
2146 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
cd9a469c 2147fi
2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069752c 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{
4ee9c684 2165
2069752c 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
cd9a469c 2193else
2069752c 2194 ac_retval=1
ea6b3890 2195fi
2069752c 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
cd9a469c 2201 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069752c 2202 return $ac_retval
4ee9c684 2203
2069752c 2204} # ac_fn_c_compute_int
4ee9c684 2205
cd9a469c 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;}
4ee9c684 2260
cd9a469c 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.
4ee9c684 2265
cd9a469c 2266It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2267generated by GNU Autoconf 2.64. Invocation command line was
4ee9c684 2268
cd9a469c 2269 $ $0 $@
4ee9c684 2270
cd9a469c 2271_ACEOF
2272exec 5>>config.log
2273{
2274cat <<_ASUNAME
2275## --------- ##
2276## Platform. ##
2277## --------- ##
4ee9c684 2278
cd9a469c 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`
4ee9c684 2284
cd9a469c 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`
4ee9c684 2287
cd9a469c 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`
4ee9c684 2295
cd9a469c 2296_ASUNAME
5b2c7553 2297
cd9a469c 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
5b2c7553 2306
cd9a469c 2307} >&5
5b2c7553 2308
cd9a469c 2309cat >&5 <<_ACEOF
4ee9c684 2310
2311
cd9a469c 2312## ----------- ##
2313## Core tests. ##
2314## ----------- ##
a106dabe 2315
cd9a469c 2316_ACEOF
82eaf560 2317
90973b19 2318
cd9a469c 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
4ee9c684 2363done
cd9a469c 2364{ ac_configure_args0=; unset ac_configure_args0;}
2365{ ac_configure_args1=; unset ac_configure_args1;}
90973b19 2366
cd9a469c 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
90973b19 2376
cd9a469c 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
a1aa1d30 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"
553e7cef 2556as_fn_append ac_header_list " fpxcp.h"
a1aa1d30 2557as_fn_append ac_header_list " pwd.h"
2558as_fn_append ac_header_list " complex.h"
b8a8c7bc 2559as_fn_append ac_header_list " xlocale.h"
a1aa1d30 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"
a1aa1d30 2579as_fn_append ac_func_list " setmode"
7520a494 2580as_fn_append ac_func_list " fcntl"
a1aa1d30 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"
a1aa1d30 2591as_fn_append ac_func_list " getpwuid_r"
2592as_fn_append ac_func_list " ttyname_r"
2593as_fn_append ac_func_list " clock_gettime"
a1aa1d30 2594as_fn_append ac_func_list " getgid"
2595as_fn_append ac_func_list " getpid"
a1aa1d30 2596as_fn_append ac_func_list " getuid"
2597as_fn_append ac_func_list " geteuid"
ffb6d1fd 2598as_fn_append ac_func_list " umask"
a291e3b6 2599as_fn_append ac_func_list " getegid"
5935a97b 2600as_fn_append ac_func_list " secure_getenv"
a291e3b6 2601as_fn_append ac_func_list " __secure_getenv"
544db64f 2602as_fn_append ac_func_list " mkostemp"
fc3d374a 2603as_fn_append ac_func_list " strnlen"
2604as_fn_append ac_func_list " strndup"
b8a8c7bc 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"
7d9455ce 2609as_fn_append ac_header_list " math.h"
cd9a469c 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
4c82c0dd 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
3e427a9c 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.
4c82c0dd 2770build_subdir="build-${build_noncanonical}"
3e427a9c 2771
cd9a469c 2772# Check whether --with-build-libsubdir was given.
2773if test "${with_build_libsubdir+set}" = set; then :
2774 withval=$with_build_libsubdir; build_libsubdir="$withval"
3e427a9c 2775else
2776 build_libsubdir="$build_subdir"
cd9a469c 2777fi
2778
4c82c0dd 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
cd9a469c 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
4c82c0dd 2799 yes) version_specific_libs=yes ;;
2800 no) version_specific_libs=no ;;
cd9a469c 2801 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4c82c0dd 2802 esac
2803else
2804 version_specific_libs=no
cd9a469c 2805fi
2806
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2808$as_echo "$version_specific_libs" >&6; }
4c82c0dd 2809
93773f82 2810# Build with intermodule optimisations
cd9a469c 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
93773f82 2816 yes) onestep="-onestep";;
2817 *) onestep="";;
2818esac
2819else
2820 onestep=""
cd9a469c 2821fi
93773f82 2822
cd9a469c 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
93773f82 2826 onestep_TRUE=
2827 onestep_FALSE='#'
2828else
2829 onestep_TRUE='#'
2830 onestep_FALSE=
2831fi
2832
2833
4c82c0dd 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
cd9a469c 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
90973b19 2869host=$ac_cv_host
cd9a469c 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
82eaf560 2881
2882
cd9a469c 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
90973b19 2887else
cd9a469c 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
90973b19 2894
2895fi
cd9a469c 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
90973b19 2902target=$ac_cv_target
cd9a469c 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
90973b19 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}-
cd9a469c 2922
7eda0fb7 2923
2924
2925
90973b19 2926target_alias=${target_alias-$host_alias}
2927
7eda0fb7 2928
90973b19 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.
2fd61f51 2931# 1.9.6: minimum required version
90973b19 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.
5dbeae57 2937# no-dist: we don't want 'dist' and related rules.
90973b19 2938# -Wall: turns on all automake warnings...
2939# -Wno-portability: ...except this one, since GNU make is required.
cd9a469c 2940am__api_version='1.11'
2941
4ee9c684 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.
82eaf560 2955# Reject install programs that cannot install multiple files.
cd9a469c 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; }
4ee9c684 2958if test -z "$INSTALL"; then
cd9a469c 2959if test "${ac_cv_path_install+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
4ee9c684 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=.
cd9a469c 2967 # Account for people who put trailing slashes in PATH elements.
2968case $as_dir/ in #((
2969 ./ | .// | /[cC]/* | \
4ee9c684 2970 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 2971 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4ee9c684 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
cd9a469c 2979 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4ee9c684 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
82eaf560 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
4ee9c684 3001 fi
3002 fi
3003 done
3004 done
3005 ;;
3006esac
cd9a469c 3007
3008 done
3009IFS=$as_save_IFS
4ee9c684 3010
82eaf560 3011rm -rf conftest.one conftest.two conftest.dir
4ee9c684 3012
3013fi
3014 if test "${ac_cv_path_install+set}" = set; then
3015 INSTALL=$ac_cv_path_install
3016 else
ff4425cf 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
4ee9c684 3019 # break other packages using the cache if that directory is
ff4425cf 3020 # removed, or if the value is a relative name.
4ee9c684 3021 INSTALL=$ac_install_sh
3022 fi
3023fi
cd9a469c 3024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3025$as_echo "$INSTALL" >&6; }
4ee9c684 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
cd9a469c 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; }
4ee9c684 3037# Just in case
3038sleep 1
3039echo timestamp > conftest.file
cd9a469c 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
4ee9c684 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 (
cd9a469c 3059 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4ee9c684 3060 if test "$*" = "X"; then
3061 # -L didn't work.
cd9a469c 3062 set X `ls -t "$srcdir/configure" conftest.file`
4ee9c684 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".
cd9a469c 3072 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3073alias in your environment" "$LINENO" 5
4ee9c684 3074 fi
3075
3076 test "$2" = conftest.file
3077 )
3078then
3079 # Ok.
3080 :
3081else
cd9a469c 3082 as_fn_error "newly created file is older than distributed files!
3083Check your system clock" "$LINENO" 5
4ee9c684 3084fi
cd9a469c 3085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086$as_echo "yes" >&6; }
4ee9c684 3087test "$program_prefix" != NONE &&
cd9a469c 3088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4ee9c684 3089# Use a double $ so make ignores it.
3090test "$program_suffix" != NONE &&
cd9a469c 3091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3092# Double any \ or $.
4ee9c684 3093# By default was `s,x,x', remove it if useless.
cd9a469c 3094ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3095program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4ee9c684 3096
3097# expand $ac_aux_dir to an absolute path
3098am_aux_dir=`cd $ac_aux_dir && pwd`
3099
cd9a469c 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
4ee9c684 3108# Use eval to expand $SHELL
3109if eval "$MISSING --run true"; then
3110 am_missing_run="$MISSING --run "
3111else
3112 am_missing_run=
cd9a469c 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;}
4ee9c684 3115fi
3116
cd9a469c 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
4ee9c684 3138else
cd9a469c 3139 if test -n "$STRIP"; then
3140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4ee9c684 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=.
cd9a469c 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
4ee9c684 3151 break 2
3152 fi
3153done
cd9a469c 3154 done
3155IFS=$as_save_IFS
4ee9c684 3156
3157fi
3158fi
cd9a469c 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; }
4ee9c684 3163else
cd9a469c 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165$as_echo "no" >&6; }
4ee9c684 3166fi
3167
4ee9c684 3168
cd9a469c 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
4ee9c684 3178else
cd9a469c 3179 if test -n "$ac_ct_STRIP"; then
3180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
82eaf560 3181else
cd9a469c 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
82eaf560 3197fi
4ee9c684 3198fi
cd9a469c 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; }
4ee9c684 3340 SET_MAKE=
3341else
cd9a469c 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343$as_echo "no" >&6; }
4ee9c684 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
cd9a469c 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
4ee9c684 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'
76c0a846 3378 VERSION='0.3'
4ee9c684 3379
3380
4ee9c684 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
4ee9c684 3397# We need awk for the "check" target. The system "awk" is bad on
3398# some platforms.
544db64f 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}'
6745c9de 3402
544db64f 3403am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6745c9de 3404
3405
4ee9c684 3406
3407
3408
4ee9c684 3409
cd9a469c 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
4ee9c684 3416else
3417 USE_MAINTAINER_MODE=no
cd9a469c 3418fi
4ee9c684 3419
cd9a469c 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
4ee9c684 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
90973b19 3433# Default to --enable-multilib
cd9a469c 3434# Check whether --enable-multilib was given.
3435if test "${enable_multilib+set}" = set; then :
3436 enableval=$enable_multilib; case "$enableval" in
90973b19 3437 yes) multilib=yes ;;
3438 no) multilib=no ;;
cd9a469c 3439 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
90973b19 3440 esac
3441else
3442 multilib=yes
cd9a469c 3443fi
3444
90973b19 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
04c8b51e 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
cd9a469c 3468ac_config_commands="$ac_config_commands default-1"
90973b19 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
b52ee437 3479
90973b19 3480else
3481 LIBGFOR_IS_NATIVE=true
3482fi
3483
d5d92632 3484DEPDIR="${am__leading_dot}deps"
90973b19 3485
d5d92632 3486ac_config_commands="$ac_config_commands depfiles"
90973b19 3487
4ee9c684 3488
d5d92632 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
87969c8c 3522
4ee9c684 3523
d5d92632 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='\'
544db64f 3536 am__nodep='_no'
d5d92632 3537fi
3538 if test "x$enable_dependency_tracking" != xno; then
3539 AMDEP_TRUE=
3540 AMDEP_FALSE='#'
3541else
3542 AMDEP_TRUE='#'
3543 AMDEP_FALSE=
3544fi
4ee9c684 3545
3546
4ee9c684 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
cd9a469c 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
4ee9c684 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=.
cd9a469c 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
4ee9c684 3570 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3572 break 2
3573 fi
3574done
cd9a469c 3575 done
3576IFS=$as_save_IFS
4ee9c684 3577
3578fi
3579fi
3580CC=$ac_cv_prog_CC
3581if test -n "$CC"; then
cd9a469c 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3583$as_echo "$CC" >&6; }
4ee9c684 3584else
cd9a469c 3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586$as_echo "no" >&6; }
4ee9c684 3587fi
3588
cd9a469c 3589
4ee9c684 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
cd9a469c 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
4ee9c684 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=.
cd9a469c 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
4ee9c684 3610 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 3611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3612 break 2
3613 fi
3614done
cd9a469c 3615 done
3616IFS=$as_save_IFS
4ee9c684 3617
3618fi
3619fi
3620ac_ct_CC=$ac_cv_prog_ac_ct_CC
3621if test -n "$ac_ct_CC"; then
cd9a469c 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3623$as_echo "$ac_ct_CC" >&6; }
4ee9c684 3624else
cd9a469c 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626$as_echo "no" >&6; }
4ee9c684 3627fi
3628
cd9a469c 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
4ee9c684 3640else
3641 CC="$ac_cv_prog_CC"
3642fi
3643
3644if test -z "$CC"; then
cd9a469c 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.
4ee9c684 3647set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 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
4ee9c684 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=.
cd9a469c 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
4ee9c684 3663 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3665 break 2
3666 fi
3667done
cd9a469c 3668 done
3669IFS=$as_save_IFS
4ee9c684 3670
3671fi
3672fi
3673CC=$ac_cv_prog_CC
3674if test -n "$CC"; then
cd9a469c 3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676$as_echo "$CC" >&6; }
82eaf560 3677else
cd9a469c 3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679$as_echo "no" >&6; }
82eaf560 3680fi
3681
82eaf560 3682
cd9a469c 3683 fi
4ee9c684 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
cd9a469c 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
4ee9c684 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=.
cd9a469c 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
4ee9c684 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"
cd9a469c 3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3710 break 2
3711 fi
3712done
cd9a469c 3713 done
3714IFS=$as_save_IFS
4ee9c684 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
cd9a469c 3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733$as_echo "$CC" >&6; }
4ee9c684 3734else
cd9a469c 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736$as_echo "no" >&6; }
4ee9c684 3737fi
3738
cd9a469c 3739
4ee9c684 3740fi
3741if test -z "$CC"; then
3742 if test -n "$ac_tool_prefix"; then
cd9a469c 3743 for ac_prog in cl.exe
4ee9c684 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
cd9a469c 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
4ee9c684 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=.
cd9a469c 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
4ee9c684 3762 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3764 break 2
3765 fi
3766done
cd9a469c 3767 done
3768IFS=$as_save_IFS
4ee9c684 3769
3770fi
3771fi
3772CC=$ac_cv_prog_CC
3773if test -n "$CC"; then
cd9a469c 3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775$as_echo "$CC" >&6; }
4ee9c684 3776else
cd9a469c 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778$as_echo "no" >&6; }
4ee9c684 3779fi
3780
cd9a469c 3781
4ee9c684 3782 test -n "$CC" && break
3783 done
3784fi
3785if test -z "$CC"; then
3786 ac_ct_CC=$CC
cd9a469c 3787 for ac_prog in cl.exe
4ee9c684 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
cd9a469c 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
4ee9c684 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=.
cd9a469c 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
4ee9c684 3806 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3808 break 2
3809 fi
3810done
cd9a469c 3811 done
3812IFS=$as_save_IFS
4ee9c684 3813
3814fi
3815fi
3816ac_ct_CC=$ac_cv_prog_ac_ct_CC
3817if test -n "$ac_ct_CC"; then
cd9a469c 3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3819$as_echo "$ac_ct_CC" >&6; }
4ee9c684 3820else
cd9a469c 3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822$as_echo "no" >&6; }
4ee9c684 3823fi
3824
cd9a469c 3825
4ee9c684 3826 test -n "$ac_ct_CC" && break
3827done
3828
cd9a469c 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
4ee9c684 3840fi
3841
3842fi
3843
3844
cd9a469c 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; }
4ee9c684 3849
3850# Provide some information about the compiler.
cd9a469c 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
4ee9c684 3863 ac_status=$?
cd9a469c 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
4ee9c684 3874
cd9a469c 3875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 3876/* end confdefs.h. */
3877
b52ee437 3878int
3879main ()
3880{
3881
3882 ;
3883 return 0;
3884}
3885_ACEOF
3886# FIXME: Cleanup?
cd9a469c 3887if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
b52ee437 3888 (eval $ac_link) 2>&5
3889 ac_status=$?
cd9a469c 3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }; then :
b52ee437 3892 gcc_no_link=no
3893else
3894 gcc_no_link=yes
3895fi
b52ee437 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
cd9a469c 3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 3904/* end confdefs.h. */
3905
4ee9c684 3906int
3907main ()
3908{
3909
3910 ;
3911 return 0;
3912}
3913_ACEOF
3914ac_clean_files_save=$ac_clean_files
cd9a469c 3915ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4ee9c684 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.
cd9a469c 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 ''
4ee9c684 3953do
3954 test -f "$ac_file" || continue
3955 case $ac_file in
cd9a469c 3956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4ee9c684 3957 ;;
3958 [ab].out )
3959 # We found the default executable, but exeext='' is most
3960 # certainly right.
3961 break;;
3962 *.* )
cd9a469c 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.
4ee9c684 3972 break;;
3973 * )
3974 break;;
3975 esac
3976done
cd9a469c 3977test "$ac_cv_exeext" = no && ac_cv_exeext=
3978
4ee9c684 3979else
cd9a469c 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
4ee9c684 3986sed 's/^/| /' conftest.$ac_ext >&5
3987
cd9a469c 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; }; }
4ee9c684 3993fi
4ee9c684 3994ac_exeext=$ac_cv_exeext
4ee9c684 3995
cd9a469c 3996# Check that the compiler produces executables we can run. If not, either
4ee9c684 3997# the compiler is broken, or we cross compile.
cd9a469c 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; }
4ee9c684 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'
cd9a469c 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
4ee9c684 4010 ac_status=$?
cd9a469c 4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; }; then
4ee9c684 4013 cross_compiling=no
4014 else
4015 if test "$cross_compiling" = maybe; then
4016 cross_compiling=yes
4017 else
cd9a469c 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.
4ee9c684 4021If you meant to cross compile, use \`--host'.
cd9a469c 4022See \`config.log' for more details." "$LINENO" 5; }
4ee9c684 4023 fi
4024 fi
4025fi
cd9a469c 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4027$as_echo "yes" >&6; }
4ee9c684 4028
cd9a469c 4029rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4ee9c684 4030ac_clean_files=$ac_clean_files_save
cd9a469c 4031# Check that the compiler produces executables we can run. If not, either
4ee9c684 4032# the compiler is broken, or we cross compile.
cd9a469c 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
4ee9c684 4048 ac_status=$?
cd9a469c 4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }; then :
4ee9c684 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
cd9a469c 4058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4ee9c684 4059 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4ee9c684 4060 break;;
4061 * ) break;;
4062 esac
4063done
4064else
cd9a469c 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; }
4ee9c684 4069fi
4ee9c684 4070rm -f conftest$ac_cv_exeext
cd9a469c 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4072$as_echo "$ac_cv_exeext" >&6; }
4ee9c684 4073
4074rm -f conftest.$ac_ext
4075EXEEXT=$ac_cv_exeext
4076ac_exeext=$EXEEXT
b52ee437 4077fi
cd9a469c 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
4ee9c684 4082else
cd9a469c 4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 4084/* end confdefs.h. */
4085
4086int
4087main ()
4088{
4089
4090 ;
4091 return 0;
4092}
4093_ACEOF
4094rm -f conftest.o conftest.obj
cd9a469c 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;
4ee9c684 4108 case $ac_file in
cd9a469c 4109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4ee9c684 4110 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4111 break;;
4112 esac
4113done
4114else
cd9a469c 4115 $as_echo "$as_me: failed program was:" >&5
4ee9c684 4116sed 's/^/| /' conftest.$ac_ext >&5
4117
cd9a469c 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; }
a106dabe 4122fi
a106dabe 4123rm -f conftest.$ac_cv_objext conftest.$ac_ext
4124fi
cd9a469c 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4126$as_echo "$ac_cv_objext" >&6; }
a106dabe 4127OBJEXT=$ac_cv_objext
4128ac_objext=$OBJEXT
cd9a469c 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
a106dabe 4133else
cd9a469c 4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 4135/* end confdefs.h. */
4ee9c684 4136
4ee9c684 4137int
4138main ()
4139{
a106dabe 4140#ifndef __GNUC__
4141 choke me
4142#endif
ce1a737c 4143
4ee9c684 4144 ;
4145 return 0;
4146}
4147_ACEOF
cd9a469c 4148if ac_fn_c_try_compile "$LINENO"; then :
a106dabe 4149 ac_compiler_gnu=yes
4ee9c684 4150else
cd9a469c 4151 ac_compiler_gnu=no
a106dabe 4152fi
cd9a469c 4153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a106dabe 4154ac_cv_c_compiler_gnu=$ac_compiler_gnu
4155
4156fi
cd9a469c 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
a106dabe 4164ac_test_CFLAGS=${CFLAGS+set}
4165ac_save_CFLAGS=$CFLAGS
cd9a469c 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
a106dabe 4170else
cd9a469c 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
4ee9c684 4176/* end confdefs.h. */
ce1a737c 4177
4ee9c684 4178int
4179main ()
4180{
ce1a737c 4181
4ee9c684 4182 ;
4183 return 0;
4184}
4185_ACEOF
cd9a469c 4186if ac_fn_c_try_compile "$LINENO"; then :
ff4425cf 4187 ac_cv_prog_cc_g=yes
4188else
cd9a469c 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. */
ff4425cf 4208
cd9a469c 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
82eaf560 4221fi
cd9a469c 4222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82eaf560 4223fi
cd9a469c 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; }
82eaf560 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
cd9a469c 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
82eaf560 4248else
cd9a469c 4249 ac_cv_prog_cc_c89=no
82eaf560 4250ac_save_CC=$CC
cd9a469c 4251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff4425cf 4252/* end confdefs.h. */
82eaf560 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}
ff4425cf 4275
82eaf560 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
cd9a469c 4279 as 'x'. The following induces an error, until -std is added to get
82eaf560 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
cd9a469c 4282 that's true only with -std. */
82eaf560 4283int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4284
cd9a469c 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
82eaf560 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;
ff4425cf 4296int
4297main ()
4298{
82eaf560 4299return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
ff4425cf 4300 ;
4301 return 0;
4302}
4303_ACEOF
cd9a469c 4304for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
82eaf560 4306do
4307 CC="$ac_save_CC $ac_arg"
cd9a469c 4308 if ac_fn_c_try_compile "$LINENO"; then :
4309 ac_cv_prog_cc_c89=$ac_arg
82eaf560 4310fi
cd9a469c 4311rm -f core conftest.err conftest.$ac_objext
4312 test "x$ac_cv_prog_cc_c89" != "xno" && break
82eaf560 4313done
cd9a469c 4314rm -f conftest.$ac_ext
82eaf560 4315CC=$ac_save_CC
4316
4317fi
cd9a469c 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; } ;;
82eaf560 4326 *)
cd9a469c 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; } ;;
82eaf560 4330esac
cd9a469c 4331if test "x$ac_cv_prog_cc_c89" != xno; then :
4ee9c684 4332
4333fi
4ee9c684 4334
4ee9c684 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
2fd61f51 4340
2fd61f51 4341depcc="$CC" am_compiler_list=
4342
cd9a469c 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
2fd61f51 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'.
544db64f 4354 rm -rf conftest.dir
2fd61f51 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
cd9a469c 4372 am__universal=false
4373 case " $depcc " in #(
4374 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4375 esac
4376
2fd61f51 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
cd9a469c 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"
2fd61f51 4400 case $depmode in
cd9a469c 4401 gcc)
4402 # This depmode causes a compiler race in universal mode.
4403 test "$am__universal" = false || continue
4404 ;;
2fd61f51 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 ;;
544db64f 4414 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cd9a469c 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 ;;
2fd61f51 4421 none) break ;;
4422 esac
2fd61f51 4423 if depmode=$depmode \
cd9a469c 4424 source=sub/conftest.c object=$am__obj \
2fd61f51 4425 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cd9a469c 4426 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2fd61f51 4427 >/dev/null 2>conftest.err &&
cd9a469c 4428 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2fd61f51 4429 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cd9a469c 4430 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2fd61f51 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
cd9a469c 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; }
2fd61f51 4456CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4457
cd9a469c 4458 if
2fd61f51 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
4ee9c684 4468
4ee9c684 4469
d5d92632 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=
4ee9c684 4480fi
d5d92632 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
ce1a737c 4498/* end confdefs.h. */
d5d92632 4499#ifdef __STDC__
4500# include <limits.h>
4501#else
4502# include <assert.h>
4503#endif
4504 Syntax error
ce1a737c 4505_ACEOF
d5d92632 4506if ac_fn_c_try_cpp "$LINENO"; then :
4507
019fb48a 4508else
d5d92632 4509 # Broken: fails on valid input.
4510continue
019fb48a 4511fi
d5d92632 4512rm -f conftest.err conftest.$ac_ext
019fb48a 4513
d5d92632 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>
019fb48a 4519_ACEOF
d5d92632 4520if ac_fn_c_try_cpp "$LINENO"; then :
4521 # Broken: success on invalid input.
4522continue
ce1a737c 4523else
d5d92632 4524 # Passes both tests.
4525ac_preproc_ok=:
4526break
019fb48a 4527fi
d5d92632 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
ce1a737c 4535fi
4536
d5d92632 4537 done
4538 ac_cv_prog_CPP=$CPP
4539
4540fi
4541 CPP=$ac_cv_prog_CPP
019fb48a 4542else
d5d92632 4543 ac_cv_prog_CPP=$CPP
019fb48a 4544fi
d5d92632 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 :
019fb48a 4566
019fb48a 4567else
d5d92632 4568 # Broken: fails on valid input.
4569continue
019fb48a 4570fi
d5d92632 4571rm -f conftest.err conftest.$ac_ext
019fb48a 4572
d5d92632 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
3443eac1 4576/* end confdefs.h. */
d5d92632 4577#include <ac_nonexistent.h>
3443eac1 4578_ACEOF
d5d92632 4579if ac_fn_c_try_cpp "$LINENO"; then :
4580 # Broken: success on invalid input.
4581continue
3443eac1 4582else
d5d92632 4583 # Passes both tests.
4584ac_preproc_ok=:
4585break
3443eac1 4586fi
d5d92632 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
3443eac1 4594else
d5d92632 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; }
3443eac1 4599fi
3443eac1 4600
d5d92632 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
3443eac1 4606
d5d92632 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 :
cd9a469c 4611 $as_echo_n "(cached) " >&6
4ee9c684 4612else
d5d92632 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
90973b19 4618do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
d5d92632 4621 for ac_prog in grep ggrep; do
cd9a469c 4622 for ac_exec_ext in '' $ac_executable_extensions; do
d5d92632 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
cd9a469c 4649 done
d5d92632 4650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651esac
4ee9c684 4652
d5d92632 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
4ee9c684 4661else
d5d92632 4662 ac_cv_path_GREP=$GREP
4ee9c684 4663fi
4664
4ee9c684 4665fi
d5d92632 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"
4ee9c684 4669
d5d92632 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 :
cd9a469c 4674 $as_echo_n "(cached) " >&6
4ee9c684 4675else
d5d92632 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
4ee9c684 4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
d5d92632 4687 for ac_prog in egrep; do
cd9a469c 4688 for ac_exec_ext in '' $ac_executable_extensions; do
d5d92632 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
cd9a469c 4715 done
d5d92632 4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717esac
4ee9c684 4718
d5d92632 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
4ee9c684 4727else
d5d92632 4728 ac_cv_path_EGREP=$EGREP
4ee9c684 4729fi
4730
d5d92632 4731 fi
4ee9c684 4732fi
d5d92632 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 :
cd9a469c 4741 $as_echo_n "(cached) " >&6
4ee9c684 4742else
d5d92632 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
4ee9c684 4760else
d5d92632 4761 ac_cv_header_stdc=no
4762fi
4763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 4764
d5d92632 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
4ee9c684 4777fi
d5d92632 4778rm -f conftest*
4779
4ee9c684 4780fi
d5d92632 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
4ee9c684 4792else
d5d92632 4793 ac_cv_header_stdc=no
4ee9c684 4794fi
d5d92632 4795rm -f conftest*
4ee9c684 4796
4ee9c684 4797fi
4798
d5d92632 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
7eda0fb7 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
d5d92632 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
cd9a469c 4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986$as_echo_n "checking for $ac_word... " >&6; }
d5d92632 4987if test "${ac_cv_prog_CC+set}" = set; then :
cd9a469c 4988 $as_echo_n "(cached) " >&6
4ee9c684 4989else
d5d92632 4990 if test -n "$CC"; then
4991 ac_cv_prog_CC="$CC" # Let the user override the test.
4ee9c684 4992else
90973b19 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=.
cd9a469c 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
d5d92632 5000 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 5002 break 2
5003 fi
5004done
cd9a469c 5005 done
5006IFS=$as_save_IFS
4ee9c684 5007
4ee9c684 5008fi
90973b19 5009fi
d5d92632 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; }
90973b19 5014else
cd9a469c 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016$as_echo "no" >&6; }
90973b19 5017fi
4ee9c684 5018
cd9a469c 5019
4ee9c684 5020fi
d5d92632 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
cd9a469c 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026$as_echo_n "checking for $ac_word... " >&6; }
d5d92632 5027if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cd9a469c 5028 $as_echo_n "(cached) " >&6
4ee9c684 5029else
d5d92632 5030 if test -n "$ac_ct_CC"; then
5031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4ee9c684 5032else
90973b19 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=.
cd9a469c 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
d5d92632 5040 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 5042 break 2
5043 fi
5044done
cd9a469c 5045 done
5046IFS=$as_save_IFS
4ee9c684 5047
4ee9c684 5048fi
4ee9c684 5049fi
d5d92632 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; }
4ee9c684 5054else
cd9a469c 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056$as_echo "no" >&6; }
4ee9c684 5057fi
5058
d5d92632 5059 if test "x$ac_ct_CC" = x; then
5060 CC=""
cd9a469c 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
d5d92632 5068 CC=$ac_ct_CC
cd9a469c 5069 fi
90973b19 5070else
d5d92632 5071 CC="$ac_cv_prog_CC"
4ee9c684 5072fi
90973b19 5073
d5d92632 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 :
cd9a469c 5081 $as_echo_n "(cached) " >&6
4ee9c684 5082else
d5d92632 5083 if test -n "$CC"; then
5084 ac_cv_prog_CC="$CC" # Let the user override the test.
4ee9c684 5085else
d5d92632 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'.
544db64f 5530 rm -rf conftest.dir
d5d92632 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 ;;
544db64f 5590 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d5d92632 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
7eda0fb7 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
d5d92632 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"
a159faeb 5779 ## We like to use C11 and C99 routines when available. This makes
5780 ## sure that
d5d92632 5781 ## __STDC_VERSION__ is set such that libc includes make them available.
2cb567cf 5782 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
d5d92632 5783 ## Compile the following tests with the same system header contents
5784 ## that we'll encounter when compiling our own source files.
a159faeb 5785 CFLAGS="-std=gnu11 $CFLAGS"
d5d92632 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; }
bbb514dc 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
06e4a265 5801if test "x$gfortran_use_symver" != xno; then
bbb514dc 5802 save_LDFLAGS="$LDFLAGS"
5803 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5804 cat > conftest.map <<EOF
d5d92632 5805FOO_1.0 {
5806 global: *foo*; bar; local: *;
5807};
5808EOF
bbb514dc 5809 if test x$gcc_no_link = xyes; then
d5d92632 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
bbb514dc 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
d5d92632 5837FOO_1.0 {
5838 global: foo; local: *;
5839};
5840EOF
bbb514dc 5841 if test x$gcc_no_link = xyes; then
d5d92632 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
bbb514dc 5862 ;;
5863 esac
5864 fi
5865 LDFLAGS="$save_LDFLAGS"
d5d92632 5866fi
d5d92632 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
eb00e55c 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
d5d92632 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
18ce903b 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 :
d5d92632 5956 $as_echo_n "(cached) " >&6
5957else
18ce903b 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
d5d92632 5968for as_dir in $PATH
5969do
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
18ce903b 5972 for ac_prog in sed gsed; do
d5d92632 5973 for ac_exec_ext in '' $ac_executable_extensions; do
18ce903b 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
d5d92632 6000 done
18ce903b 6001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6002esac
d5d92632 6003
18ce903b 6004 $ac_path_SED_found && break 3
6005 done
6006 done
d5d92632 6007 done
6008IFS=$as_save_IFS
18ce903b 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
d5d92632 6012else
18ce903b 6013 ac_cv_path_SED=$SED
d5d92632 6014fi
6015
d5d92632 6016fi
18ce903b 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
d5d92632 6021
18ce903b 6022test -z "$SED" && SED=sed
6023Xsed="$SED -e 1s/^X//"
d5d92632 6024
d5d92632 6025
6026
18ce903b 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 :
d5d92632 6038 $as_echo_n "(cached) " >&6
6039else
18ce903b 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
d5d92632 6048do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
18ce903b 6051 for ac_prog in fgrep; do
d5d92632 6052 for ac_exec_ext in '' $ac_executable_extensions; do
18ce903b 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
d5d92632 6086 done
6087IFS=$as_save_IFS
18ce903b 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
d5d92632 6094
18ce903b 6095 fi
d5d92632 6096fi
18ce903b 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"
542f9784 6100
6101
18ce903b 6102test -z "$GREP" && GREP=grep
542f9784 6103
6104
6105
6106
4ee9c684 6107
542f9784 6108
6109
6110
6111
6112
6113
6114
e6408286 6115
e6408286 6116
e6408286 6117
e6408286 6118
e6408286 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
d5d92632 6170
6171
cd9a469c 6172
cd9a469c 6173
18ce903b 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
542f9784 6179fi
d5d92632 6180
18ce903b 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
d5d92632 6276
6277
6278
6279
6280
6281
6282
6283
542f9784 6284
6285
18ce903b 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 :
cd9a469c 6342 $as_echo_n "(cached) " >&6
82eaf560 6343else
18ce903b 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
cd9a469c 6349do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
cd9a469c 6352 for ac_exec_ext in '' $ac_executable_extensions; do
18ce903b 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
cd9a469c 6359 done
18ce903b 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 ;;
cd9a469c 6421esac
18ce903b 6422 AS=$ac_ct_AS
6423 fi
6424else
6425 AS="$ac_cv_prog_AS"
6426fi
cd9a469c 6427
18ce903b 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
cd9a469c 6451 done
18ce903b 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
cd9a469c 6583 done
6584IFS=$as_save_IFS
18ce903b 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; }
cd9a469c 6592else
18ce903b 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594$as_echo "no" >&6; }
542f9784 6595fi
cd9a469c 6596
18ce903b 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"
cd9a469c 6610fi
542f9784 6611
18ce903b 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
542f9784 6642
6643
6644
18ce903b 6645# Configure libtool
6646#AC_MSG_NOTICE([====== Starting libtool configuration])
6647enable_dlopen=yes
542f9784 6648
6649
6650
18ce903b 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
542f9784 6656
6657
6658
18ce903b 6659macro_version='2.2.7a'
6660macro_revision='1.3134'
542f9784 6661
6662
6663
6664
6665
6666
6667
6668
cd9a469c 6669
90973b19 6670
90973b19 6671
6672
90973b19 6673
18ce903b 6674ltmain="$ac_aux_dir/ltmain.sh"
542f9784 6675
18ce903b 6676# Backslashify metacharacters that are still active within
6677# double-quoted strings.
6678sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
542f9784 6679
18ce903b 6680# Same as above, but do not quote variable references.
6681double_quote_subst='s/\(["`\\]\)/\\\1/g'
542f9784 6682
18ce903b 6683# Sed substitution to delay expansion of an escaped shell variable in a
6684# double_quote_subst'ed string.
6685delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
542f9784 6686
18ce903b 6687# Sed substitution to delay expansion of an escaped single quote.
6688delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
542f9784 6689
18ce903b 6690# Sed substitution to avoid accidental globbing in evaled expressions
6691no_glob_subst='s/\*/\\\*/g'
542f9784 6692
cd9a469c 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
90973b19 6697else
6698 if test -n "$NM"; then
6699 # Let the user override the test.
6700 lt_cv_path_NM="$NM"
6701else
542f9784 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
cd9a469c 6742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6743$as_echo "$lt_cv_path_NM" >&6; }
542f9784 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.
e6408286 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"
542f9784 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
cd9a469c 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
542f9784 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=.
cd9a469c 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
542f9784 6771 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cd9a469c 6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 6773 break 2
6774 fi
6775done
cd9a469c 6776 done
6777IFS=$as_save_IFS
542f9784 6778
6779fi
6780fi
6781DUMPBIN=$ac_cv_prog_DUMPBIN
6782if test -n "$DUMPBIN"; then
cd9a469c 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6784$as_echo "$DUMPBIN" >&6; }
542f9784 6785else
cd9a469c 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787$as_echo "no" >&6; }
542f9784 6788fi
6789
cd9a469c 6790
542f9784 6791 test -n "$DUMPBIN" && break
6792 done
6793fi
6794if test -z "$DUMPBIN"; then
6795 ac_ct_DUMPBIN=$DUMPBIN
e6408286 6796 for ac_prog in dumpbin "link -dump"
542f9784 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
cd9a469c 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
542f9784 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=.
cd9a469c 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
542f9784 6815 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cd9a469c 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 6817 break 2
6818 fi
6819done
cd9a469c 6820 done
6821IFS=$as_save_IFS
542f9784 6822
6823fi
6824fi
6825ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6826if test -n "$ac_ct_DUMPBIN"; then
cd9a469c 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6828$as_echo "$ac_ct_DUMPBIN" >&6; }
542f9784 6829else
cd9a469c 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831$as_echo "no" >&6; }
542f9784 6832fi
6833
cd9a469c 6834
542f9784 6835 test -n "$ac_ct_DUMPBIN" && break
6836done
542f9784 6837
cd9a469c 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
90973b19 6849fi
542f9784 6850
e6408286 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
542f9784 6860
6861 if test "$DUMPBIN" != ":"; then
6862 NM="$DUMPBIN"
6863 fi
90973b19 6864fi
542f9784 6865test -z "$NM" && NM=nm
6866
6867
90973b19 6868
542f9784 6869
6870
6871
cd9a469c 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
542f9784 6876else
6877 lt_cv_nm_interface="BSD nm"
6878 echo "int some_variable = 0;" > conftest.$ac_ext
e6408286 6879 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
542f9784 6880 (eval "$ac_compile" 2>conftest.err)
6881 cat conftest.err >&5
e6408286 6882 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
542f9784 6883 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6884 cat conftest.err >&5
e6408286 6885 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
542f9784 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
cd9a469c 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6893$as_echo "$lt_cv_nm_interface" >&6; }
90973b19 6894
cd9a469c 6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6896$as_echo_n "checking whether ln -s works... " >&6; }
90973b19 6897LN_S=$as_ln_s
6898if test "$LN_S" = "ln -s"; then
cd9a469c 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900$as_echo "yes" >&6; }
90973b19 6901else
cd9a469c 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6903$as_echo "no, using $LN_S" >&6; }
90973b19 6904fi
6905
542f9784 6906# find the maximum length of command line arguments
cd9a469c 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
542f9784 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
00aafda4 6931 cygwin* | mingw* | cegcc*)
542f9784 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
e6408286 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
542f9784 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 *)
00aafda4 6997 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6998 if test -n "$lt_cv_sys_max_cmd_len"; then
07c46636 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.
e6408286 7011 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7012 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
07c46636 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
542f9784 7026 ;;
7027 esac
7028
7029fi
7030
7031if test -n $lt_cv_sys_max_cmd_len ; then
cd9a469c 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; }
542f9784 7034else
cd9a469c 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7036$as_echo "none" >&6; }
542f9784 7037fi
7038max_cmd_len=$lt_cv_sys_max_cmd_len
7039
7040
7041
7042
7043
7044
542f9784 7045: ${CP="cp -f"}
7046: ${MV="mv -f"}
7047: ${RM="rm -f"}
7048
cd9a469c 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; }
542f9784 7051# Try some XSI features
7052xsi_shell=no
7053( _lt_dummy="a/b/c"
7054 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
00aafda4 7055 = c,a/b,, \
7056 && eval 'test $(( 1 + 1 )) -eq 2 \
7057 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
542f9784 7058 && xsi_shell=yes
cd9a469c 7059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7060$as_echo "$xsi_shell" >&6; }
542f9784 7061
7062
cd9a469c 7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7064$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
542f9784 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
cd9a469c 7069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7070$as_echo "$lt_shell_append" >&6; }
542f9784 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
cd9a469c 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
542f9784 7108else
7109 lt_cv_ld_reload_flag='-r'
7110fi
cd9a469c 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7112$as_echo "$lt_cv_ld_reload_flag" >&6; }
542f9784 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
00aafda4 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
cd9a469c 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
00aafda4 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=.
cd9a469c 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
00aafda4 7155 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cd9a469c 7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 7157 break 2
7158 fi
7159done
cd9a469c 7160 done
7161IFS=$as_save_IFS
00aafda4 7162
7163fi
7164fi
7165OBJDUMP=$ac_cv_prog_OBJDUMP
7166if test -n "$OBJDUMP"; then
cd9a469c 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7168$as_echo "$OBJDUMP" >&6; }
00aafda4 7169else
cd9a469c 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171$as_echo "no" >&6; }
00aafda4 7172fi
7173
cd9a469c 7174
00aafda4 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
cd9a469c 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
00aafda4 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=.
cd9a469c 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
00aafda4 7195 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cd9a469c 7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 7197 break 2
7198 fi
7199done
cd9a469c 7200 done
7201IFS=$as_save_IFS
00aafda4 7202
00aafda4 7203fi
7204fi
7205ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7206if test -n "$ac_ct_OBJDUMP"; then
cd9a469c 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7208$as_echo "$ac_ct_OBJDUMP" >&6; }
00aafda4 7209else
cd9a469c 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211$as_echo "no" >&6; }
00aafda4 7212fi
7213
cd9a469c 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
00aafda4 7225else
7226 OBJDUMP="$ac_cv_prog_OBJDUMP"
7227fi
7228
7229test -z "$OBJDUMP" && OBJDUMP=objdump
7230
7231
7232
7233
7234
7235
7236
7237
542f9784 7238
cd9a469c 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
90973b19 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.
542f9784 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.
90973b19 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
21e07d2f 7259aix[4-9]*)
90973b19 7260 lt_cv_deplibs_check_method=pass_all
7261 ;;
7262
7263beos*)
7264 lt_cv_deplibs_check_method=pass_all
7265 ;;
7266
542f9784 7267bsdi[45]*)
90973b19 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
542f9784 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.
e6408286 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
542f9784 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
90973b19 7291 ;;
7292
e6408286 7293cegcc*)
00aafda4 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
90973b19 7299darwin* | rhapsody*)
90973b19 7300 lt_cv_deplibs_check_method=pass_all
7301 ;;
7302
542f9784 7303freebsd* | dragonfly*)
7304 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
90973b19 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.
542f9784 7309 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
90973b19 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
e6408286 7323haiku*)
7324 lt_cv_deplibs_check_method=pass_all
7325 ;;
7326
542f9784 7327hpux10.20* | hpux11*)
7328 lt_cv_file_magic_cmd=/usr/bin/file
90973b19 7329 case $host_cpu in
90973b19 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'
90973b19 7332 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7333 ;;
542f9784 7334 hppa*64*)
e6408286 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]'
542f9784 7336 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
90973b19 7337 ;;
7338 *)
e6408286 7339 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
542f9784 7340 lt_cv_file_magic_test_file=/usr/lib/libc.sl
90973b19 7341 ;;
7342 esac
542f9784 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
90973b19 7357 lt_cv_deplibs_check_method=pass_all
7358 ;;
7359
7360# This must be Linux ELF.
9af964d4 7361linux* | k*bsd*-gnu | kopensolaris*-gnu)
7f93fe7a 7362 lt_cv_deplibs_check_method=pass_all
90973b19 7363 ;;
7364
542f9784 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)$'
90973b19 7368 else
542f9784 7369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
90973b19 7370 fi
7371 ;;
7372
542f9784 7373newos6*)
90973b19 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
542f9784 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
90973b19 7391osf3* | osf4* | osf5*)
90973b19 7392 lt_cv_deplibs_check_method=pass_all
7393 ;;
7394
542f9784 7395rdos*)
90973b19 7396 lt_cv_deplibs_check_method=pass_all
7397 ;;
7398
7399solaris*)
7400 lt_cv_deplibs_check_method=pass_all
90973b19 7401 ;;
7402
542f9784 7403sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
90973b19 7404 lt_cv_deplibs_check_method=pass_all
7405 ;;
7406
542f9784 7407sysv4 | sysv4.3*)
90973b19 7408 case $host_vendor in
90973b19 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 ;;
542f9784 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 ;;
90973b19 7431 esac
7432 ;;
542f9784 7433
7434tpf*)
7435 lt_cv_deplibs_check_method=pass_all
7436 ;;
90973b19 7437esac
7438
7439fi
cd9a469c 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7441$as_echo "$lt_cv_deplibs_check_method" >&6; }
90973b19 7442file_magic_cmd=$lt_cv_file_magic_cmd
7443deplibs_check_method=$lt_cv_deplibs_check_method
542f9784 7444test -z "$deplibs_check_method" && deplibs_check_method=unknown
90973b19 7445
7446
7447
7448
90973b19 7449
90973b19 7450
90973b19 7451
90973b19 7452
4ee9c684 7453
4ee9c684 7454
4ee9c684 7455
4ee9c684 7456
90973b19 7457if test -n "$ac_tool_prefix"; then
542f9784 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
cd9a469c 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
4ee9c684 7464else
542f9784 7465 if test -n "$AR"; then
7466 ac_cv_prog_AR="$AR" # Let the user override the test.
90973b19 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=.
cd9a469c 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
542f9784 7475 ac_cv_prog_AR="${ac_tool_prefix}ar"
cd9a469c 7476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7477 break 2
7478 fi
7479done
cd9a469c 7480 done
7481IFS=$as_save_IFS
4ee9c684 7482
90973b19 7483fi
7484fi
542f9784 7485AR=$ac_cv_prog_AR
7486if test -n "$AR"; then
cd9a469c 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7488$as_echo "$AR" >&6; }
90973b19 7489else
cd9a469c 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491$as_echo "no" >&6; }
4ee9c684 7492fi
7493
cd9a469c 7494
90973b19 7495fi
542f9784 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
cd9a469c 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
90973b19 7504else
542f9784 7505 if test -n "$ac_ct_AR"; then
7506 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
90973b19 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=.
cd9a469c 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
542f9784 7515 ac_cv_prog_ac_ct_AR="ar"
cd9a469c 7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7517 break 2
7518 fi
7519done
cd9a469c 7520 done
7521IFS=$as_save_IFS
4ee9c684 7522
90973b19 7523fi
7524fi
542f9784 7525ac_ct_AR=$ac_cv_prog_ac_ct_AR
7526if test -n "$ac_ct_AR"; then
cd9a469c 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7528$as_echo "$ac_ct_AR" >&6; }
4ee9c684 7529else
cd9a469c 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531$as_echo "no" >&6; }
4ee9c684 7532fi
4ee9c684 7533
cd9a469c 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
90973b19 7545else
542f9784 7546 AR="$ac_cv_prog_AR"
4ee9c684 7547fi
7548
542f9784 7549test -z "$AR" && AR=ar
7550test -z "$AR_FLAGS" && AR_FLAGS=cru
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
90973b19 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
cd9a469c 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
4ee9c684 7569else
90973b19 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=.
cd9a469c 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
90973b19 7580 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cd9a469c 7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7582 break 2
7583 fi
7584done
cd9a469c 7585 done
7586IFS=$as_save_IFS
4ee9c684 7587
90973b19 7588fi
7589fi
7590STRIP=$ac_cv_prog_STRIP
7591if test -n "$STRIP"; then
cd9a469c 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7593$as_echo "$STRIP" >&6; }
4ee9c684 7594else
cd9a469c 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596$as_echo "no" >&6; }
90973b19 7597fi
4ee9c684 7598
cd9a469c 7599
4ee9c684 7600fi
90973b19 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
cd9a469c 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
90973b19 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=.
cd9a469c 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
90973b19 7620 ac_cv_prog_ac_ct_STRIP="strip"
cd9a469c 7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7622 break 2
7623 fi
7624done
cd9a469c 7625 done
7626IFS=$as_save_IFS
90973b19 7627
4ee9c684 7628fi
7629fi
90973b19 7630ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7631if test -n "$ac_ct_STRIP"; then
cd9a469c 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7633$as_echo "$ac_ct_STRIP" >&6; }
90973b19 7634else
cd9a469c 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636$as_echo "no" >&6; }
4ee9c684 7637fi
4ee9c684 7638
cd9a469c 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
90973b19 7650else
7651 STRIP="$ac_cv_prog_STRIP"
4ee9c684 7652fi
7653
542f9784 7654test -z "$STRIP" && STRIP=:
4ee9c684 7655
7656
7657
7658
7659
7660
542f9784 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
cd9a469c 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
4ee9c684 7668else
542f9784 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=.
cd9a469c 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
542f9784 7679 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cd9a469c 7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 7681 break 2
7682 fi
7683done
cd9a469c 7684 done
7685IFS=$as_save_IFS
542f9784 7686
7687fi
7688fi
7689RANLIB=$ac_cv_prog_RANLIB
7690if test -n "$RANLIB"; then
cd9a469c 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7692$as_echo "$RANLIB" >&6; }
542f9784 7693else
cd9a469c 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695$as_echo "no" >&6; }
542f9784 7696fi
7697
cd9a469c 7698
542f9784 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
cd9a469c 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
542f9784 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=.
cd9a469c 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
542f9784 7719 ac_cv_prog_ac_ct_RANLIB="ranlib"
cd9a469c 7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 7721 break 2
7722 fi
7723done
cd9a469c 7724 done
7725IFS=$as_save_IFS
542f9784 7726
542f9784 7727fi
7728fi
7729ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7730if test -n "$ac_ct_RANLIB"; then
cd9a469c 7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7732$as_echo "$ac_ct_RANLIB" >&6; }
542f9784 7733else
cd9a469c 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735$as_echo "no" >&6; }
542f9784 7736fi
7737
cd9a469c 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
542f9784 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.
00aafda4 7761old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
542f9784 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
e6408286 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
542f9784 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.
cd9a469c 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
542f9784 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 ;;
00aafda4 7853cygwin* | mingw* | pw32* | cegcc*)
542f9784 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'"
00aafda4 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'"
542f9784 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
cd9a469c 7951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 7952 (eval $ac_compile) 2>&5
7953 ac_status=$?
cd9a469c 7954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7955 test $ac_status = 0; }; then
542f9784 7956 # Now try to grab the symbols.
7957 nlist=conftest.nm
e6408286 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
542f9784 7960 ac_status=$?
cd9a469c 7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; } && test -s "$nlist"; then
542f9784 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"
cd9a469c 8015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 8016 (eval $ac_link) 2>&5
8017 ac_status=$?
cd9a469c 8018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8019 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
542f9784 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
00aafda4 8037 rm -rf conftest* conftst*
542f9784 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
cd9a469c 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8054$as_echo "failed" >&6; }
542f9784 8055else
cd9a469c 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8057$as_echo "ok" >&6; }
542f9784 8058fi
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
00aafda4 8074
8075
8076
8077
8078
542f9784 8079
8080
cd9a469c 8081# Check whether --enable-libtool-lock was given.
8082if test "${enable_libtool_lock+set}" = set; then :
8083 enableval=$enable_libtool_lock;
8084fi
542f9784 8085
542f9784 8086test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4ee9c684 8087
90973b19 8088# Some flags need to be propagated to the compiler or linker for good
8089# libtool support.
8090case $host in
542f9784 8091ia64-*-hpux*)
90973b19 8092 # Find out which ABI we are using.
542f9784 8093 echo 'int i;' > conftest.$ac_ext
cd9a469c 8094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
90973b19 8095 (eval $ac_compile) 2>&5
4ee9c684 8096 ac_status=$?
cd9a469c 8097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8098 test $ac_status = 0; }; then
90973b19 8099 case `/usr/bin/file conftest.$ac_objext` in
542f9784 8100 *ELF-32*)
8101 HPUX_IA64_MODE="32"
8102 ;;
8103 *ELF-64*)
8104 HPUX_IA64_MODE="64"
8105 ;;
90973b19 8106 esac
90973b19 8107 fi
8108 rm -rf conftest*
8109 ;;
542f9784 8110*-*-irix6*)
90973b19 8111 # Find out which ABI we are using.
e6408286 8112 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cd9a469c 8113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
90973b19 8114 (eval $ac_compile) 2>&5
4ee9c684 8115 ac_status=$?
cd9a469c 8116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8117 test $ac_status = 0; }; then
542f9784 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
90973b19 8143 fi
8144 rm -rf conftest*
8145 ;;
4ee9c684 8146
9613c003 8147x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
542f9784 8148s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
90973b19 8149 # Find out which ABI we are using.
8150 echo 'int i;' > conftest.$ac_ext
cd9a469c 8151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
90973b19 8152 (eval $ac_compile) 2>&5
4ee9c684 8153 ac_status=$?
cd9a469c 8154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8155 test $ac_status = 0; }; then
542f9784 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*)
b4b3bbba 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
542f9784 8171 ;;
9613c003 8172 powerpc64le-*linux*)
8173 LD="${LD-ld} -m elf32lppclinux"
8174 ;;
8175 powerpc64-*linux*)
542f9784 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 ;;
9613c003 8194 powerpcle-*linux*)
8195 LD="${LD-ld} -m elf64lppc"
8196 ;;
8197 powerpc-*linux*)
542f9784 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 ;;
90973b19 8208 esac
4ee9c684 8209 fi
90973b19 8210 rm -rf conftest*
8211 ;;
4ee9c684 8212
90973b19 8213*-*-sco3.2v5*)
8214 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8215 SAVE_CFLAGS="$CFLAGS"
8216 CFLAGS="$CFLAGS -belf"
cd9a469c 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
4ee9c684 8221else
542f9784 8222 ac_ext=c
90973b19 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
4ee9c684 8227
b52ee437 8228 if test x$gcc_no_link = xyes; then
cd9a469c 8229 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 8230fi
cd9a469c 8231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 8232/* end confdefs.h. */
4ee9c684 8233
8234int
8235main ()
8236{
90973b19 8237
4ee9c684 8238 ;
8239 return 0;
8240}
8241_ACEOF
cd9a469c 8242if ac_fn_c_try_link "$LINENO"; then :
90973b19 8243 lt_cv_cc_needs_belf=yes
4ee9c684 8244else
cd9a469c 8245 lt_cv_cc_needs_belf=no
4ee9c684 8246fi
cd9a469c 8247rm -f core conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
90973b19 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
4ee9c684 8255fi
cd9a469c 8256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8257$as_echo "$lt_cv_cc_needs_belf" >&6; }
90973b19 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 ;;
542f9784 8263sparc*-*solaris*)
8264 # Find out which ABI we are using.
8265 echo 'int i;' > conftest.$ac_ext
cd9a469c 8266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 8267 (eval $ac_compile) 2>&5
8268 ac_status=$?
cd9a469c 8269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8270 test $ac_status = 0; }; then
542f9784 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" ;;
00aafda4 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 ;;
542f9784 8280 esac
8281 ;;
8282 esac
8283 fi
8284 rm -rf conftest*
8285 ;;
90973b19 8286esac
8287
542f9784 8288need_locks="$enable_libtool_lock"
90973b19 8289
00aafda4 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
cd9a469c 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
00aafda4 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=.
cd9a469c 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
00aafda4 8311 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cd9a469c 8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8313 break 2
8314 fi
8315done
cd9a469c 8316 done
8317IFS=$as_save_IFS
00aafda4 8318
8319fi
8320fi
8321DSYMUTIL=$ac_cv_prog_DSYMUTIL
8322if test -n "$DSYMUTIL"; then
cd9a469c 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8324$as_echo "$DSYMUTIL" >&6; }
00aafda4 8325else
cd9a469c 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327$as_echo "no" >&6; }
00aafda4 8328fi
8329
cd9a469c 8330
00aafda4 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
cd9a469c 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
00aafda4 8340else
d5d92632 8341 if test -n "$ac_ct_DSYMUTIL"; then
8342 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
00aafda4 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=.
cd9a469c 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
d5d92632 8351 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cd9a469c 8352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8353 break 2
8354 fi
8355done
cd9a469c 8356 done
8357IFS=$as_save_IFS
00aafda4 8358
00aafda4 8359fi
8360fi
d5d92632 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; }
00aafda4 8365else
cd9a469c 8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367$as_echo "no" >&6; }
00aafda4 8368fi
8369
d5d92632 8370 if test "x$ac_ct_DSYMUTIL" = x; then
8371 DSYMUTIL=":"
cd9a469c 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
d5d92632 8379 DSYMUTIL=$ac_ct_DSYMUTIL
cd9a469c 8380 fi
00aafda4 8381else
d5d92632 8382 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
00aafda4 8383fi
8384
8385 if test -n "$ac_tool_prefix"; then
d5d92632 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
cd9a469c 8388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389$as_echo_n "checking for $ac_word... " >&6; }
d5d92632 8390if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cd9a469c 8391 $as_echo_n "(cached) " >&6
00aafda4 8392else
d5d92632 8393 if test -n "$NMEDIT"; then
8394 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
00aafda4 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=.
cd9a469c 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
d5d92632 8403 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cd9a469c 8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8405 break 2
8406 fi
8407done
cd9a469c 8408 done
8409IFS=$as_save_IFS
00aafda4 8410
8411fi
8412fi
d5d92632 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; }
00aafda4 8417else
cd9a469c 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419$as_echo "no" >&6; }
00aafda4 8420fi
8421
cd9a469c 8422
00aafda4 8423fi
d5d92632 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
cd9a469c 8428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429$as_echo_n "checking for $ac_word... " >&6; }
d5d92632 8430if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cd9a469c 8431 $as_echo_n "(cached) " >&6
00aafda4 8432else
d5d92632 8433 if test -n "$ac_ct_NMEDIT"; then
8434 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
00aafda4 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=.
cd9a469c 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
d5d92632 8443 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cd9a469c 8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8445 break 2
8446 fi
8447done
cd9a469c 8448 done
8449IFS=$as_save_IFS
00aafda4 8450
00aafda4 8451fi
8452fi
d5d92632 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; }
00aafda4 8457else
cd9a469c 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459$as_echo "no" >&6; }
00aafda4 8460fi
8461
d5d92632 8462 if test "x$ac_ct_NMEDIT" = x; then
8463 NMEDIT=":"
cd9a469c 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
d5d92632 8471 NMEDIT=$ac_ct_NMEDIT
cd9a469c 8472 fi
00aafda4 8473else
d5d92632 8474 NMEDIT="$ac_cv_prog_NMEDIT"
00aafda4 8475fi
8476
8477 if test -n "$ac_tool_prefix"; then
d5d92632 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
cd9a469c 8480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481$as_echo_n "checking for $ac_word... " >&6; }
d5d92632 8482if test "${ac_cv_prog_LIPO+set}" = set; then :
cd9a469c 8483 $as_echo_n "(cached) " >&6
00aafda4 8484else
d5d92632 8485 if test -n "$LIPO"; then
8486 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
00aafda4 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=.
cd9a469c 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
d5d92632 8495 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cd9a469c 8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8497 break 2
8498 fi
8499done
cd9a469c 8500 done
8501IFS=$as_save_IFS
00aafda4 8502
8503fi
8504fi
d5d92632 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; }
00aafda4 8509else
cd9a469c 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511$as_echo "no" >&6; }
00aafda4 8512fi
8513
cd9a469c 8514
00aafda4 8515fi
d5d92632 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
cd9a469c 8520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521$as_echo_n "checking for $ac_word... " >&6; }
d5d92632 8522if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cd9a469c 8523 $as_echo_n "(cached) " >&6
00aafda4 8524else
d5d92632 8525 if test -n "$ac_ct_LIPO"; then
8526 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
00aafda4 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=.
cd9a469c 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
d5d92632 8535 ac_cv_prog_ac_ct_LIPO="lipo"
cd9a469c 8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8537 break 2
8538 fi
8539done
cd9a469c 8540 done
8541IFS=$as_save_IFS
00aafda4 8542
00aafda4 8543fi
8544fi
d5d92632 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; }
00aafda4 8549else
cd9a469c 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551$as_echo "no" >&6; }
00aafda4 8552fi
8553
d5d92632 8554 if test "x$ac_ct_LIPO" = x; then
8555 LIPO=":"
cd9a469c 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
d5d92632 8563 LIPO=$ac_ct_LIPO
cd9a469c 8564 fi
00aafda4 8565else
d5d92632 8566 LIPO="$ac_cv_prog_LIPO"
00aafda4 8567fi
8568
d5d92632 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 :
cd9a469c 8575 $as_echo_n "(cached) " >&6
00aafda4 8576else
d5d92632 8577 if test -n "$OTOOL"; then
8578 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
e6408286 8579else
d5d92632 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
e6408286 8594
8595fi
d5d92632 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
00aafda4 8606
542f9784 8607fi
d5d92632 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 :
cd9a469c 8615 $as_echo_n "(cached) " >&6
542f9784 8616else
d5d92632 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
542f9784 8622do
d5d92632 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
4ee9c684 8634
d5d92632 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; }
cd9a469c 8641else
d5d92632 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643$as_echo "no" >&6; }
542f9784 8644fi
90973b19 8645
d5d92632 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
542f9784 8657else
d5d92632 8658 OTOOL="$ac_cv_prog_OTOOL"
542f9784 8659fi
4ee9c684 8660
d5d92632 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
542f9784 8683done
d5d92632 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; }
542f9784 8696fi
4ee9c684 8697
90973b19 8698
542f9784 8699fi
d5d92632 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
90973b19 8708else
d5d92632 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
90973b19 8714do
d5d92632 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
90973b19 8726
d5d92632 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; }
cd9a469c 8733else
d5d92632 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735$as_echo "no" >&6; }
90973b19 8736fi
8737
d5d92632 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
4ee9c684 8749else
d5d92632 8750 OTOOL64="$ac_cv_prog_OTOOL64"
4ee9c684 8751fi
4ee9c684 8752
cd9a469c 8753
542f9784 8754
542f9784 8755
8756
4ee9c684 8757
542f9784 8758
4ee9c684 8759
542f9784 8760
cd9a469c 8761
4ee9c684 8762
9cf1c244 8763
2e4ef4e4 8764
cd9a469c 8765
2e4ef4e4 8766
2e4ef4e4 8767
d5d92632 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
542f9784 8783else
d5d92632 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
542f9784 8821/* end confdefs.h. */
2e4ef4e4 8822
542f9784 8823int
8824main ()
8825{
d5d92632 8826
8827 ;
cd9a469c 8828 return 0;
542f9784 8829}
2e4ef4e4 8830_ACEOF
d5d92632 8831if ac_fn_c_try_link "$LINENO"; then :
8832 lt_cv_ld_exported_symbols_list=yes
cd9a469c 8833else
d5d92632 8834 lt_cv_ld_exported_symbols_list=no
542f9784 8835fi
d5d92632 8836rm -f core conftest.err conftest.$ac_objext \
8837 conftest$ac_exeext conftest.$ac_ext
8838 LDFLAGS="$save_LDFLAGS"
2e4ef4e4 8839
8840fi
d5d92632 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
542f9784 8869
8870fi
d5d92632 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' ;;
7c407808 8885 10.[012][,.]*)
d5d92632 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
542f9784 8907
542f9784 8908for ac_header in dlfcn.h
cd9a469c 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 :
542f9784 8913 cat >>confdefs.h <<_ACEOF
cd9a469c 8914#define HAVE_DLFCN_H 1
90e67cff 8915_ACEOF
90e67cff 8916
542f9784 8917fi
8918
8919done
8920
8921
8922
e6408286 8923
8924
00aafda4 8925# Set options
8926
8927
8928
8929
8930 enable_win32_dll=no
8931
8932
cd9a469c 8933 # Check whether --enable-shared was given.
8934if test "${enable_shared+set}" = set; then :
8935 enableval=$enable_shared; p=${PACKAGE-default}
00aafda4 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
cd9a469c 8954fi
8955
00aafda4 8956
8957
8958
8959
8960
8961
8962
8963
cd9a469c 8964 # Check whether --enable-static was given.
8965if test "${enable_static+set}" = set; then :
8966 enableval=$enable_static; p=${PACKAGE-default}
00aafda4 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
cd9a469c 8985fi
8986
00aafda4 8987
8988
8989
8990
8991
8992
8993
8994
8995
cd9a469c 8996# Check whether --with-pic was given.
8997if test "${with_pic+set}" = set; then :
8998 withval=$with_pic; pic_mode="$withval"
00aafda4 8999else
9000 pic_mode=default
cd9a469c 9001fi
9002
00aafda4 9003
9004test -z "$pic_mode" && pic_mode=default
9005
9006
9007
9008
9009
9010
9011
cd9a469c 9012 # Check whether --enable-fast-install was given.
9013if test "${enable_fast_install+set}" = set; then :
9014 enableval=$enable_fast_install; p=${PACKAGE-default}
00aafda4 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
cd9a469c 9033fi
9034
00aafda4 9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
542f9784 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
e6408286 9073
542f9784 9074
9075
9076test -z "$LN_S" && LN_S="ln -s"
9077
9078
9079
9080
9081
90e67cff 9082
542f9784 9083
9084
9085
9086
9087
9088
9089
9090
9091if test -n "${ZSH_VERSION+set}" ; then
9092 setopt NO_GLOB_SUBST
90e67cff 9093fi
90e67cff 9094
cd9a469c 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
90e67cff 9099else
542f9784 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
90e67cff 9107fi
542f9784 9108rmdir .libs 2>/dev/null
90e67cff 9109fi
cd9a469c 9110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9111$as_echo "$lt_cv_objdir" >&6; }
542f9784 9112objdir=$lt_cv_objdir
9113
9114
9115
9116
90e67cff 9117
9118cat >>confdefs.h <<_ACEOF
542f9784 9119#define LT_OBJDIR "$lt_cv_objdir/"
90e67cff 9120_ACEOF
9121
542f9784 9122
9123
9124
542f9784 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
542f9784 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
e6408286 9165cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 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
cd9a469c 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
90e67cff 9177else
542f9784 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
90e67cff 9201
542f9784 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
cd9a469c 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9227$as_echo "$MAGIC_CMD" >&6; }
542f9784 9228else
cd9a469c 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230$as_echo "no" >&6; }
542f9784 9231fi
9232
9233
9234
9235
9236
9237if test -z "$lt_cv_path_MAGIC_CMD"; then
9238 if test -n "$ac_tool_prefix"; then
cd9a469c 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
542f9784 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
cd9a469c 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9293$as_echo "$MAGIC_CMD" >&6; }
542f9784 9294else
cd9a469c 9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296$as_echo "no" >&6; }
542f9784 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`
00aafda4 9362$RM -r conftest*
542f9784 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
e6408286 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
542f9784 9380
cd9a469c 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
542f9784 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:'`
e6408286 9399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 9400 (eval "$lt_compile" 2>conftest.err)
9401 ac_status=$?
9402 cat conftest.err >&5
e6408286 9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 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.
e6408286 9407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 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
cd9a469c 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; }
542f9784 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
cd9a469c 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; }
542f9784 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
ccc0b0f9 9450 lt_prog_compiler_pic='-fPIC'
542f9784 9451 ;;
9452
9453 amigaos*)
00aafda4 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
542f9784 9466 ;;
9467
9468 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9469 # PIC is the default for these OSes.
9470 ;;
9471
00aafda4 9472 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 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
e6408286 9486 haiku*)
9487 # PIC is the default for Haiku.
9488 # The "-static" flag exists, but is broken.
9489 lt_prog_compiler_static=
9490 ;;
9491
542f9784 9492 hpux*)
00aafda4 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.
542f9784 9496 case $host_cpu in
00aafda4 9497 hppa*64*)
542f9784 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
e6408286 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
542f9784 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 ;;
542f9784 9553
00aafda4 9554 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 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
9af964d4 9582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 9583 case $cc_basename in
00aafda4 9584 # old Intel for x86_64 which still supported -KPIC.
9585 ecc*)
542f9784 9586 lt_prog_compiler_wl='-Wl,'
9587 lt_prog_compiler_pic='-KPIC'
9588 lt_prog_compiler_static='-static'
9589 ;;
00aafda4 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 ;;
e6408286 9603 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 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 ;;
e6408286 9615 xl* | bgxl* | bgf* | mpixl*)
9616 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
00aafda4 9617 lt_prog_compiler_wl='-Wl,'
9618 lt_prog_compiler_pic='-qpic'
9619 lt_prog_compiler_static='-qstaticlink'
9620 ;;
542f9784 9621 *)
9622 case `$CC -V 2>&1 | sed 5q` in
e6408286 9623 *Sun\ F* | *Sun*Fortran*)
9624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 9625 lt_prog_compiler_pic='-KPIC'
9626 lt_prog_compiler_static='-Bstatic'
e6408286 9627 lt_prog_compiler_wl=''
542f9784 9628 ;;
e6408286 9629 *Sun\ C*)
9630 # Sun C 5.9
542f9784 9631 lt_prog_compiler_pic='-KPIC'
9632 lt_prog_compiler_static='-Bstatic'
e6408286 9633 lt_prog_compiler_wl='-Wl,'
542f9784 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
cd9a469c 9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9723$as_echo "$lt_prog_compiler_pic" >&6; }
542f9784 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
cd9a469c 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
542f9784 9738else
00aafda4 9739 lt_cv_prog_compiler_pic_works=no
542f9784 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:'`
e6408286 9752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 9753 (eval "$lt_compile" 2>conftest.err)
9754 ac_status=$?
9755 cat conftest.err >&5
e6408286 9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 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.
e6408286 9760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 9761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 9763 lt_cv_prog_compiler_pic_works=yes
542f9784 9764 fi
9765 fi
9766 $RM conftest*
9767
9768fi
cd9a469c 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; }
542f9784 9771
00aafda4 9772if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
542f9784 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\"
cd9a469c 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
542f9784 9797else
00aafda4 9798 lt_cv_prog_compiler_static_works=no
542f9784 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
e6408286 9808 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 9809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9810 if diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 9811 lt_cv_prog_compiler_static_works=yes
542f9784 9812 fi
9813 else
00aafda4 9814 lt_cv_prog_compiler_static_works=yes
542f9784 9815 fi
9816 fi
00aafda4 9817 $RM -r conftest*
542f9784 9818 LDFLAGS="$save_LDFLAGS"
9819
9820fi
cd9a469c 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; }
542f9784 9823
00aafda4 9824if test x"$lt_cv_prog_compiler_static_works" = xyes; then
542f9784 9825 :
9826else
9827 lt_prog_compiler_static=
9828fi
9829
9830
9831
9832
9833
9834
9835
cd9a469c 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
542f9784 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:'`
e6408286 9857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 9858 (eval "$lt_compile" 2>out/conftest.err)
9859 ac_status=$?
9860 cat out/conftest.err >&5
e6408286 9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 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
e6408286 9866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 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
cd9a469c 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; }
542f9784 9885
9886
9887
9888
9889
9890
cd9a469c 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
542f9784 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:'`
e6408286 9912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 9913 (eval "$lt_compile" 2>out/conftest.err)
9914 ac_status=$?
9915 cat out/conftest.err >&5
e6408286 9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 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
e6408286 9921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 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
cd9a469c 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; }
542f9784 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
cd9a469c 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; }
542f9784 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
cd9a469c 9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9956$as_echo "$hard_links" >&6; }
542f9784 9957 if test "$hard_links" = no; then
cd9a469c 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;}
542f9784 9960 need_locks=warn
9961 fi
9962else
9963 need_locks=no
9964fi
9965
9966
9967
9968
9969
9970
cd9a469c 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; }
542f9784 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'.
00aafda4 10006 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 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.
00aafda4 10012 # Exclude shared library initialization/finalization symbols.
542f9784 10013 extract_expsyms_cmds=
10014
10015 case $host_os in
00aafda4 10016 cygwin* | mingw* | pw32* | cegcc*)
542f9784 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
e6408286 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
542f9784 10038 if test "$with_gnu_ld" = yes; then
e6408286 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
542f9784 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
e6408286 10078 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 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
21e07d2f 10088 aix[3-9]*)
542f9784 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
e6408286 10094*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 10095*** to be unable to reliably create shared libraries on AIX.
10096*** Therefore, libtool is disabling shared libraries support. If you
e6408286 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.
542f9784 10100
10101_LT_EOF
10102 fi
10103 ;;
10104
10105 amigaos*)
00aafda4 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
542f9784 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
00aafda4 10131 cygwin* | mingw* | pw32* | cegcc*)
542f9784 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'
e6408286 10135 export_dynamic_flag_spec='${wl}--export-all-symbols'
542f9784 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
e6408286 10157 haiku*)
10158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10159 link_all_deplibs=yes
10160 ;;
10161
542f9784 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
9af964d4 10177 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 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
4e8a08d4 10187 tmp_addflag=' $pic_flag'
00aafda4 10188 tmp_sharedflag='-shared'
542f9784 10189 case $cc_basename,$host_cpu in
10190 pgcc*) # Portland Group C compiler
e6408286 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'
542f9784 10192 tmp_addflag=' $pic_flag'
10193 ;;
e6408286 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'
542f9784 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' ;;
00aafda4 10204 lf95*) # Lahey Fortran 8.1
10205 whole_archive_flag_spec=
10206 tmp_sharedflag='--shared' ;;
e6408286 10207 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
00aafda4 10208 tmp_sharedflag='-qmkshrobj'
10209 tmp_addflag= ;;
e6408286 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 ;;
542f9784 10214 esac
10215 case `$CC -V 2>&1 | sed 5q` in
10216 *Sun\ C*) # Sun C 5.9
e6408286 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'
542f9784 10218 compiler_needs_object=yes
10219 tmp_sharedflag='-G' ;;
10220 *Sun\ F*) # Sun Fortran 8.3
10221 tmp_sharedflag='-G' ;;
542f9784 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
00aafda4 10231
10232 case $cc_basename in
e6408286 10233 xlf* | bgf* | bgxlf* | mpixlf*)
00aafda4 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
542f9784 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
21e07d2f 10354 aix[4-9]*)
542f9784 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
e6408286 10364 # Also, AIX nm treats weak defined symbols like other global
10365 # defined symbols, whereas GNU nm marks them as "W".
542f9784 10366 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 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'
542f9784 10368 else
8c596dcc 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'
542f9784 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.
21e07d2f 10376 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 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
00aafda4 10444 export_dynamic_flag_spec='${wl}-bexpall'
542f9784 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
cd9a469c 10455 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 10456fi
cd9a469c 10457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10458/* end confdefs.h. */
10459
10460int
10461main ()
10462{
10463
10464 ;
10465 return 0;
10466}
10467_ACEOF
cd9a469c 10468if ac_fn_c_try_link "$LINENO"; then :
542f9784 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
542f9784 10482fi
cd9a469c 10483rm -f core conftest.err conftest.$ac_objext \
10484 conftest$ac_exeext conftest.$ac_ext
542f9784 10485if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10486
10487 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 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"
542f9784 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
cd9a469c 10498 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 10499fi
cd9a469c 10500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10501/* end confdefs.h. */
10502
10503int
10504main ()
10505{
10506
10507 ;
10508 return 0;
10509}
10510_ACEOF
cd9a469c 10511if ac_fn_c_try_link "$LINENO"; then :
542f9784 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
542f9784 10525fi
cd9a469c 10526rm -f core conftest.err conftest.$ac_objext \
10527 conftest$ac_exeext conftest.$ac_ext
542f9784 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'
e6408286 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
542f9784 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*)
00aafda4 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
542f9784 10562 ;;
10563
10564 bsdi[45]*)
10565 export_dynamic_flag_spec=-rdynamic
10566 ;;
10567
00aafda4 10568 cygwin* | mingw* | pw32* | cegcc*)
542f9784 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.
e6408286 10580 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 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*)
542f9784 10590
00aafda4 10591
10592 archive_cmds_need_lc=no
10593 hardcode_direct=no
10594 hardcode_automatic=yes
10595 hardcode_shlibpath_var=unsupported
e6408286 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
00aafda4 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
e6408286 10608 output_verbose_link_cmd=func_echo_all
00aafda4 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
542f9784 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
542f9784 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.
30369aff 10638 freebsd2.*)
542f9784 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*)
e6408286 10670 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 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*)
e6408286 10689 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 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*)
00aafda4 10695 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 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 *)
e6408286 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
542f9784 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
e6408286 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'
542f9784 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
cd9a469c 10784 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 10785fi
cd9a469c 10786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787/* end confdefs.h. */
542f9784 10788int foo(void) {}
10789_ACEOF
cd9a469c 10790if ac_fn_c_try_link "$LINENO"; then :
e6408286 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'
542f9784 10792
542f9784 10793fi
cd9a469c 10794rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
542f9784 10796 LDFLAGS="$save_LDFLAGS"
10797 else
e6408286 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'
542f9784 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*)
00aafda4 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
542f9784 10836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
00aafda4 10837 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 10838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
00aafda4 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
542f9784 10854 fi
10855 ;;
10856
10857 os2*)
10858 hardcode_libdir_flag_spec='-L$libdir'
10859 hardcode_minus_L=yes
10860 allow_undefined_flag=unsupported
e6408286 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'
542f9784 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}\*'
e6408286 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'
542f9784 10869 else
10870 allow_undefined_flag=' -expect_unresolved \*'
e6408286 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'
542f9784 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}\*'
e6408286 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'
542f9784 10882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10883 else
10884 allow_undefined_flag=' -expect_unresolved \*'
e6408286 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'
542f9784 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~
e6408286 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'
542f9784 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
cd9a469c 11051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11052$as_echo "$ld_shlibs" >&6; }
542f9784 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.
cd9a469c 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
9e6fd619 11092else
11093 $RM conftest*
11094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 11095
cd9a469c 11096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 11097 (eval $ac_compile) 2>&5
11098 ac_status=$?
cd9a469c 11099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11100 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 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=
cd9a469c 11114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 11115 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11116 ac_status=$?
cd9a469c 11117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11118 test $ac_status = 0; }
9e6fd619 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
cd9a469c 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; }
9e6fd619 11133 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
542f9784 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
cd9a469c 11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11297$as_echo_n "checking dynamic linker characteristics... " >&6; }
00aafda4 11298
11299if test "$GCC" = yes; then
542f9784 11300 case $host_os in
11301 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11302 *) lt_awk_arg="/^libraries:/" ;;
11303 esac
e6408286 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 *\;*)
542f9784 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.
e6408286 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
542f9784 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
e6408286 11333 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
542f9784 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}'`
e6408286 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`
542f9784 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
21e07d2f 11393aix[4-9]*)
542f9784 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*)
00aafda4 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)
542f9784 11445 library_names_spec='$libname.ixlibrary $libname.a'
11446 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 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'
00aafda4 11448 ;;
11449 esac
542f9784 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
00aafda4 11472cygwin* | mingw* | pw32* | cegcc*)
542f9784 11473 version_type=windows
11474 shrext_cmds=".dll"
11475 need_version=no
11476 need_lib_prefix=no
11477
00aafda4 11478 case $GCC,$host_os in
11479 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 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}'
e6408286 11500
11501 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
542f9784 11502 ;;
00aafda4 11503 mingw* | cegcc*)
542f9784 11504 # MinGW DLLs use traditional 'lib' prefix
11505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 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
542f9784 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
30369aff 11554 freebsd[23].*) objformat=aout ;;
542f9784 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
30369aff 11572 freebsd2.*)
542f9784 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
e6408286 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
542f9784 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
e6408286 11656 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 11657 postinstall_cmds='chmod 555 $lib'
e6408286 11658 # or fails outright, so override atomically:
11659 install_override_mode=555
542f9784 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.
9af964d4 11717linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 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
9e6fd619 11726
542f9784 11727 # Some binutils ld are patched to set DT_RUNPATH
cd9a469c 11728 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11729 $as_echo_n "(cached) " >&6
9e6fd619 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
cd9a469c 11737 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 11738fi
cd9a469c 11739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 11740/* end confdefs.h. */
11741
11742int
11743main ()
11744{
11745
11746 ;
11747 return 0;
11748}
11749_ACEOF
cd9a469c 11750if ac_fn_c_try_link "$LINENO"; then :
11751 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 11752 lt_cv_shlibpath_overrides_runpath=yes
542f9784 11753fi
542f9784 11754fi
cd9a469c 11755rm -f core conftest.err conftest.$ac_objext \
11756 conftest$ac_exeext conftest.$ac_ext
9e6fd619 11757 LDFLAGS=$save_LDFLAGS
11758 libdir=$save_libdir
11759
11760fi
11761
11762 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 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
e6408286 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' ' '`
542f9784 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
00aafda4 11955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 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
cd9a469c 11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11973$as_echo "$dynamic_linker" >&6; }
542f9784 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
00aafda4 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
542f9784 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
e6408286 12068
12069
12070
12071
12072
542f9784 12073
12074
12075
12076
12077
12078
cd9a469c 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; }
542f9784 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
cd9a469c 12104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12105$as_echo "$hardcode_action" >&6; }
542f9784 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
00aafda4 12137 mingw* | pw32* | cegcc*)
542f9784 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
cd9a469c 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
542f9784 12153else
12154 ac_check_lib_save_LIBS=$LIBS
12155LIBS="-ldl $LIBS"
12156if test x$gcc_no_link = xyes; then
cd9a469c 12157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12158fi
cd9a469c 12159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12160/* end confdefs.h. */
12161
cd9a469c 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. */
542f9784 12165#ifdef __cplusplus
12166extern "C"
12167#endif
542f9784 12168char dlopen ();
12169int
12170main ()
12171{
cd9a469c 12172return dlopen ();
542f9784 12173 ;
12174 return 0;
12175}
12176_ACEOF
cd9a469c 12177if ac_fn_c_try_link "$LINENO"; then :
542f9784 12178 ac_cv_lib_dl_dlopen=yes
12179else
cd9a469c 12180 ac_cv_lib_dl_dlopen=no
542f9784 12181fi
cd9a469c 12182rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
542f9784 12184LIBS=$ac_check_lib_save_LIBS
12185fi
cd9a469c 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 :
542f9784 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 *)
cd9a469c 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 :
542f9784 12203 lt_cv_dlopen="shl_load"
12204else
cd9a469c 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
542f9784 12209else
12210 ac_check_lib_save_LIBS=$LIBS
12211LIBS="-ldld $LIBS"
12212if test x$gcc_no_link = xyes; then
cd9a469c 12213 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12214fi
cd9a469c 12215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12216/* end confdefs.h. */
12217
cd9a469c 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. */
542f9784 12221#ifdef __cplusplus
12222extern "C"
12223#endif
542f9784 12224char shl_load ();
12225int
12226main ()
12227{
cd9a469c 12228return shl_load ();
542f9784 12229 ;
12230 return 0;
12231}
12232_ACEOF
cd9a469c 12233if ac_fn_c_try_link "$LINENO"; then :
542f9784 12234 ac_cv_lib_dld_shl_load=yes
12235else
cd9a469c 12236 ac_cv_lib_dld_shl_load=no
542f9784 12237fi
cd9a469c 12238rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
542f9784 12240LIBS=$ac_check_lib_save_LIBS
12241fi
cd9a469c 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 :
00aafda4 12245 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
542f9784 12246else
cd9a469c 12247 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12248if test "x$ac_cv_func_dlopen" = x""yes; then :
542f9784 12249 lt_cv_dlopen="dlopen"
12250else
cd9a469c 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
542f9784 12255else
12256 ac_check_lib_save_LIBS=$LIBS
12257LIBS="-ldl $LIBS"
12258if test x$gcc_no_link = xyes; then
cd9a469c 12259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12260fi
cd9a469c 12261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12262/* end confdefs.h. */
12263
cd9a469c 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. */
542f9784 12267#ifdef __cplusplus
12268extern "C"
12269#endif
542f9784 12270char dlopen ();
12271int
12272main ()
12273{
cd9a469c 12274return dlopen ();
542f9784 12275 ;
12276 return 0;
12277}
12278_ACEOF
cd9a469c 12279if ac_fn_c_try_link "$LINENO"; then :
542f9784 12280 ac_cv_lib_dl_dlopen=yes
12281else
cd9a469c 12282 ac_cv_lib_dl_dlopen=no
542f9784 12283fi
cd9a469c 12284rm -f core conftest.err conftest.$ac_objext \
12285 conftest$ac_exeext conftest.$ac_ext
542f9784 12286LIBS=$ac_check_lib_save_LIBS
12287fi
cd9a469c 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 :
542f9784 12291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12292else
cd9a469c 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
542f9784 12297else
12298 ac_check_lib_save_LIBS=$LIBS
12299LIBS="-lsvld $LIBS"
12300if test x$gcc_no_link = xyes; then
cd9a469c 12301 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12302fi
cd9a469c 12303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12304/* end confdefs.h. */
12305
cd9a469c 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. */
542f9784 12309#ifdef __cplusplus
12310extern "C"
12311#endif
542f9784 12312char dlopen ();
12313int
12314main ()
12315{
cd9a469c 12316return dlopen ();
542f9784 12317 ;
12318 return 0;
12319}
12320_ACEOF
cd9a469c 12321if ac_fn_c_try_link "$LINENO"; then :
542f9784 12322 ac_cv_lib_svld_dlopen=yes
12323else
cd9a469c 12324 ac_cv_lib_svld_dlopen=no
542f9784 12325fi
cd9a469c 12326rm -f core conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
542f9784 12328LIBS=$ac_check_lib_save_LIBS
12329fi
cd9a469c 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 :
542f9784 12333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12334else
cd9a469c 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
542f9784 12339else
12340 ac_check_lib_save_LIBS=$LIBS
12341LIBS="-ldld $LIBS"
12342if test x$gcc_no_link = xyes; then
cd9a469c 12343 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12344fi
cd9a469c 12345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12346/* end confdefs.h. */
12347
cd9a469c 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. */
542f9784 12351#ifdef __cplusplus
12352extern "C"
12353#endif
542f9784 12354char dld_link ();
12355int
12356main ()
12357{
cd9a469c 12358return dld_link ();
542f9784 12359 ;
12360 return 0;
12361}
12362_ACEOF
cd9a469c 12363if ac_fn_c_try_link "$LINENO"; then :
542f9784 12364 ac_cv_lib_dld_dld_link=yes
12365else
cd9a469c 12366 ac_cv_lib_dld_dld_link=no
542f9784 12367fi
cd9a469c 12368rm -f core conftest.err conftest.$ac_objext \
12369 conftest$ac_exeext conftest.$ac_ext
542f9784 12370LIBS=$ac_check_lib_save_LIBS
12371fi
cd9a469c 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 :
00aafda4 12375 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
542f9784 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
cd9a469c 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
542f9784 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
0812bb06 12424#line 12424 "configure"
542f9784 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
e6408286 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; }
542f9784 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;
e6408286 12480 else
12481 {
12482 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12483 else puts (dlerror ());
12484 }
542f9784 12485 /* dlclose (self); */
12486 }
12487 else
12488 puts (dlerror ());
12489
00aafda4 12490 return status;
542f9784 12491}
12492_LT_EOF
cd9a469c 12493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 12494 (eval $ac_link) 2>&5
12495 ac_status=$?
cd9a469c 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
542f9784 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
cd9a469c 12514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12515$as_echo "$lt_cv_dlopen_self" >&6; }
542f9784 12516
12517 if test "x$lt_cv_dlopen_self" = xyes; then
12518 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cd9a469c 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
542f9784 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
0812bb06 12530#line 12530 "configure"
542f9784 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
e6408286 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; }
542f9784 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;
e6408286 12586 else
12587 {
12588 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12589 else puts (dlerror ());
12590 }
542f9784 12591 /* dlclose (self); */
12592 }
12593 else
12594 puts (dlerror ());
12595
00aafda4 12596 return status;
542f9784 12597}
12598_LT_EOF
cd9a469c 12599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 12600 (eval $ac_link) 2>&5
12601 ac_status=$?
cd9a469c 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
542f9784 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
cd9a469c 12620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12621$as_echo "$lt_cv_dlopen_self_static" >&6; }
542f9784 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=
cd9a469c 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; }
542f9784 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"
cd9a469c 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12665$as_echo "yes" >&6; }
542f9784 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"
cd9a469c 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12674$as_echo "yes" >&6; }
542f9784 12675 else
cd9a469c 12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677$as_echo "no" >&6; }
542f9784 12678 fi
12679 ;;
12680 *)
cd9a469c 12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12682$as_echo "no" >&6; }
542f9784 12683 ;;
12684 esac
12685fi
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
e6408286 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; }
542f9784 12703
e6408286 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
542f9784 12707
e6408286 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 ;;
542f9784 12718
e6408286 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; }
542f9784 12727
e6408286 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; }
542f9784 12734
542f9784 12735
542f9784 12736
542f9784 12737
12738fi
542f9784 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
e6408286 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
8c35d268 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
e6408286 12791#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
542f9784 12792
e6408286 12793# We need gfortran to compile parts of the library
12794#AC_PROG_FC(gfortran)
12795FC="$GFORTRAN"
cd9a469c 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'
542f9784 12799ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12800if test -n "$ac_tool_prefix"; then
e6408286 12801 for ac_prog in gfortran
542f9784 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
cd9a469c 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
542f9784 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=.
cd9a469c 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
542f9784 12820 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
cd9a469c 12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 12822 break 2
12823 fi
12824done
cd9a469c 12825 done
12826IFS=$as_save_IFS
542f9784 12827
12828fi
12829fi
12830FC=$ac_cv_prog_FC
12831if test -n "$FC"; then
cd9a469c 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12833$as_echo "$FC" >&6; }
542f9784 12834else
cd9a469c 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
542f9784 12837fi
12838
cd9a469c 12839
542f9784 12840 test -n "$FC" && break
12841 done
12842fi
12843if test -z "$FC"; then
12844 ac_ct_FC=$FC
e6408286 12845 for ac_prog in gfortran
542f9784 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
cd9a469c 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
542f9784 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=.
cd9a469c 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
542f9784 12864 ac_cv_prog_ac_ct_FC="$ac_prog"
cd9a469c 12865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 12866 break 2
12867 fi
12868done
cd9a469c 12869 done
12870IFS=$as_save_IFS
542f9784 12871
12872fi
12873fi
12874ac_ct_FC=$ac_cv_prog_ac_ct_FC
12875if test -n "$ac_ct_FC"; then
cd9a469c 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12877$as_echo "$ac_ct_FC" >&6; }
542f9784 12878else
cd9a469c 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880$as_echo "no" >&6; }
542f9784 12881fi
12882
cd9a469c 12883
542f9784 12884 test -n "$ac_ct_FC" && break
82eaf560 12885done
12886
cd9a469c 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
542f9784 12898fi
12899
12900
12901# Provide some information about the compiler.
cd9a469c 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
542f9784 12914 ac_status=$?
cd9a469c 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
542f9784 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
cd9a469c 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
542f9784 12935else
cd9a469c 12936 cat > conftest.$ac_ext <<_ACEOF
542f9784 12937 program main
12938#ifndef __GNUC__
12939 choke me
12940#endif
12941
12942 end
12943_ACEOF
cd9a469c 12944if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 12945 ac_compiler_gnu=yes
12946else
cd9a469c 12947 ac_compiler_gnu=no
542f9784 12948fi
cd9a469c 12949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 12950ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12951
12952fi
cd9a469c 12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12954$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
542f9784 12955ac_ext=$ac_save_ext
cd9a469c 12956ac_test_FCFLAGS=${FCFLAGS+set}
12957ac_save_FCFLAGS=$FCFLAGS
542f9784 12958FCFLAGS=
cd9a469c 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
542f9784 12963else
12964 FCFLAGS=-g
cd9a469c 12965cat > conftest.$ac_ext <<_ACEOF
542f9784 12966 program main
12967
12968 end
12969_ACEOF
cd9a469c 12970if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 12971 ac_cv_prog_fc_g=yes
12972else
cd9a469c 12973 ac_cv_prog_fc_g=no
542f9784 12974fi
cd9a469c 12975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 12976
12977fi
cd9a469c 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
542f9784 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
cd9a469c 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'
542f9784 13005ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13006
13007
e6408286 13008if test -z "$FC" || test "X$FC" = "Xno"; then
13009 _lt_disable_FC=yes
13010fi
13011
542f9784 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
e6408286 13029reload_flag_FC=$reload_flag
13030reload_cmds_FC=$reload_cmds
542f9784 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`
00aafda4 13088$RM -r conftest*
542f9784 13089
13090
13091 # Allow CC to be a program name with arguments.
13092 lt_save_CC="$CC"
00aafda4 13093 lt_save_GCC=$GCC
542f9784 13094 CC=${FC-"f95"}
13095 compiler=$CC
00aafda4 13096 GCC=$ac_cv_fc_compiler_gnu
13097
542f9784 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
e6408286 13107cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 13108
13109
13110 if test -n "$compiler"; then
cd9a469c 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; }
542f9784 13115
cd9a469c 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; }
542f9784 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 ;;
21e07d2f 13130 aix[4-9]*)
542f9784 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
cd9a469c 13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13137$as_echo "$enable_shared" >&6; }
542f9784 13138
cd9a469c 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; }
542f9784 13141 # Make sure either enable_shared or enable_static is yes.
13142 test "$enable_shared" = yes || enable_static=yes
cd9a469c 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13144$as_echo "$enable_static" >&6; }
542f9784 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
cd9a469c 13169if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 13170 (eval $ac_compile) 2>&5
13171 ac_status=$?
cd9a469c 13172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13173 test $ac_status = 0; }; then
542f9784 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
00aafda4 13181 for p in `eval "$output_verbose_link_cmd"`; do
542f9784 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
00aafda4 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
542f9784 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
cd9a469c 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; }
542f9784 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
ccc0b0f9 13314 lt_prog_compiler_pic_FC='-fPIC'
542f9784 13315 ;;
13316
13317 amigaos*)
00aafda4 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
542f9784 13330 ;;
13331
13332 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13333 # PIC is the default for these OSes.
13334 ;;
13335
00aafda4 13336 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 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
e6408286 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
542f9784 13356 hpux*)
00aafda4 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.
542f9784 13360 case $host_cpu in
00aafda4 13361 hppa*64*)
542f9784 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
e6408286 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
542f9784 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 ;;
542f9784 13417
00aafda4 13418 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 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
9af964d4 13446 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 13447 case $cc_basename in
00aafda4 13448 # old Intel for x86_64 which still supported -KPIC.
13449 ecc*)
542f9784 13450 lt_prog_compiler_wl_FC='-Wl,'
13451 lt_prog_compiler_pic_FC='-KPIC'
13452 lt_prog_compiler_static_FC='-static'
13453 ;;
00aafda4 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 ;;
e6408286 13467 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 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 ;;
e6408286 13479 xl* | bgxl* | bgf* | mpixl*)
13480 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
00aafda4 13481 lt_prog_compiler_wl_FC='-Wl,'
13482 lt_prog_compiler_pic_FC='-qpic'
13483 lt_prog_compiler_static_FC='-qstaticlink'
13484 ;;
542f9784 13485 *)
13486 case `$CC -V 2>&1 | sed 5q` in
e6408286 13487 *Sun\ F* | *Sun*Fortran*)
13488 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 13489 lt_prog_compiler_pic_FC='-KPIC'
13490 lt_prog_compiler_static_FC='-Bstatic'
e6408286 13491 lt_prog_compiler_wl_FC=''
542f9784 13492 ;;
e6408286 13493 *Sun\ C*)
13494 # Sun C 5.9
542f9784 13495 lt_prog_compiler_pic_FC='-KPIC'
13496 lt_prog_compiler_static_FC='-Bstatic'
e6408286 13497 lt_prog_compiler_wl_FC='-Wl,'
542f9784 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
cd9a469c 13586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13587$as_echo "$lt_prog_compiler_pic_FC" >&6; }
542f9784 13588
13589
13590
13591#
13592# Check to make sure the PIC flag actually works.
13593#
13594if test -n "$lt_prog_compiler_pic_FC"; then
cd9a469c 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
542f9784 13599else
00aafda4 13600 lt_cv_prog_compiler_pic_works_FC=no
542f9784 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:'`
e6408286 13613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 13614 (eval "$lt_compile" 2>conftest.err)
13615 ac_status=$?
13616 cat conftest.err >&5
e6408286 13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 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.
e6408286 13621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 13622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13623 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 13624 lt_cv_prog_compiler_pic_works_FC=yes
542f9784 13625 fi
13626 fi
13627 $RM conftest*
13628
13629fi
cd9a469c 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; }
542f9784 13632
00aafda4 13633if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
542f9784 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\"
cd9a469c 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
542f9784 13655else
00aafda4 13656 lt_cv_prog_compiler_static_works_FC=no
542f9784 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
e6408286 13666 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 13667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13668 if diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 13669 lt_cv_prog_compiler_static_works_FC=yes
542f9784 13670 fi
13671 else
00aafda4 13672 lt_cv_prog_compiler_static_works_FC=yes
542f9784 13673 fi
13674 fi
00aafda4 13675 $RM -r conftest*
542f9784 13676 LDFLAGS="$save_LDFLAGS"
13677
13678fi
cd9a469c 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; }
542f9784 13681
00aafda4 13682if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
542f9784 13683 :
13684else
13685 lt_prog_compiler_static_FC=
13686fi
13687
13688
13689
13690
cd9a469c 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
542f9784 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:'`
e6408286 13712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 13713 (eval "$lt_compile" 2>out/conftest.err)
13714 ac_status=$?
13715 cat out/conftest.err >&5
e6408286 13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 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
e6408286 13721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 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
cd9a469c 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; }
542f9784 13740
13741
13742
cd9a469c 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
542f9784 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:'`
e6408286 13764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 13765 (eval "$lt_compile" 2>out/conftest.err)
13766 ac_status=$?
13767 cat out/conftest.err >&5
e6408286 13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 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
e6408286 13773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 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
cd9a469c 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; }
542f9784 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
cd9a469c 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; }
542f9784 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
cd9a469c 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13808$as_echo "$hard_links" >&6; }
542f9784 13809 if test "$hard_links" = no; then
cd9a469c 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;}
542f9784 13812 need_locks=warn
13813 fi
13814else
13815 need_locks=no
13816fi
13817
13818
13819
cd9a469c 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; }
542f9784 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'.
00aafda4 13855 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 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.
00aafda4 13861 # Exclude shared library initialization/finalization symbols.
542f9784 13862 extract_expsyms_cmds=
13863
13864 case $host_os in
00aafda4 13865 cygwin* | mingw* | pw32* | cegcc*)
542f9784 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
e6408286 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
542f9784 13887 if test "$with_gnu_ld" = yes; then
e6408286 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
542f9784 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
e6408286 13927 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 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
21e07d2f 13937 aix[3-9]*)
542f9784 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
e6408286 13943*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 13944*** to be unable to reliably create shared libraries on AIX.
13945*** Therefore, libtool is disabling shared libraries support. If you
e6408286 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.
542f9784 13949
13950_LT_EOF
13951 fi
13952 ;;
13953
13954 amigaos*)
00aafda4 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
542f9784 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
00aafda4 13980 cygwin* | mingw* | pw32* | cegcc*)
542f9784 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'
e6408286 13984 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
542f9784 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
e6408286 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
542f9784 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
9af964d4 14026 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 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
4e8a08d4 14036 tmp_addflag=' $pic_flag'
00aafda4 14037 tmp_sharedflag='-shared'
542f9784 14038 case $cc_basename,$host_cpu in
14039 pgcc*) # Portland Group C compiler
e6408286 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'
542f9784 14041 tmp_addflag=' $pic_flag'
14042 ;;
e6408286 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'
542f9784 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' ;;
00aafda4 14053 lf95*) # Lahey Fortran 8.1
14054 whole_archive_flag_spec_FC=
14055 tmp_sharedflag='--shared' ;;
e6408286 14056 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
00aafda4 14057 tmp_sharedflag='-qmkshrobj'
14058 tmp_addflag= ;;
e6408286 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 ;;
542f9784 14063 esac
14064 case `$CC -V 2>&1 | sed 5q` in
14065 *Sun\ C*) # Sun C 5.9
e6408286 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'
542f9784 14067 compiler_needs_object_FC=yes
14068 tmp_sharedflag='-G' ;;
14069 *Sun\ F*) # Sun Fortran 8.3
14070 tmp_sharedflag='-G' ;;
542f9784 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
00aafda4 14080
14081 case $cc_basename in
e6408286 14082 xlf* | bgf* | bgxlf* | mpixlf*)
00aafda4 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
542f9784 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
21e07d2f 14203 aix[4-9]*)
542f9784 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
e6408286 14213 # Also, AIX nm treats weak defined symbols like other global
14214 # defined symbols, whereas GNU nm marks them as "W".
542f9784 14215 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 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'
542f9784 14217 else
8c596dcc 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'
542f9784 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.
21e07d2f 14225 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 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
00aafda4 14293 export_dynamic_flag_spec_FC='${wl}-bexpall'
542f9784 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
cd9a469c 14304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 14305fi
cd9a469c 14306cat > conftest.$ac_ext <<_ACEOF
542f9784 14307 program main
14308
14309 end
14310_ACEOF
cd9a469c 14311if ac_fn_fc_try_link "$LINENO"; then :
542f9784 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
542f9784 14325fi
cd9a469c 14326rm -f core conftest.err conftest.$ac_objext \
14327 conftest$ac_exeext conftest.$ac_ext
542f9784 14328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14329
14330 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 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"
542f9784 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
cd9a469c 14341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 14342fi
cd9a469c 14343cat > conftest.$ac_ext <<_ACEOF
542f9784 14344 program main
14345
14346 end
14347_ACEOF
cd9a469c 14348if ac_fn_fc_try_link "$LINENO"; then :
542f9784 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
542f9784 14362fi
cd9a469c 14363rm -f core conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
542f9784 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'
e6408286 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
542f9784 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*)
00aafda4 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
542f9784 14399 ;;
14400
14401 bsdi[45]*)
14402 export_dynamic_flag_spec_FC=-rdynamic
14403 ;;
14404
00aafda4 14405 cygwin* | mingw* | pw32* | cegcc*)
542f9784 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.
e6408286 14417 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 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*)
542f9784 14427
00aafda4 14428
14429 archive_cmds_need_lc_FC=no
14430 hardcode_direct_FC=no
14431 hardcode_automatic_FC=yes
14432 hardcode_shlibpath_var_FC=unsupported
e6408286 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
00aafda4 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
e6408286 14445 output_verbose_link_cmd=func_echo_all
00aafda4 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
542f9784 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
542f9784 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.
30369aff 14475 freebsd2.*)
542f9784 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*)
e6408286 14507 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 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*)
e6408286 14526 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 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*)
00aafda4 14532 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 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 *)
e6408286 14547 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
542f9784 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
e6408286 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'
542f9784 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
cd9a469c 14582 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 14583fi
cd9a469c 14584cat > conftest.$ac_ext <<_ACEOF
542f9784 14585int foo(void) {}
14586_ACEOF
cd9a469c 14587if ac_fn_fc_try_link "$LINENO"; then :
e6408286 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'
542f9784 14589
542f9784 14590fi
cd9a469c 14591rm -f core conftest.err conftest.$ac_objext \
14592 conftest$ac_exeext conftest.$ac_ext
542f9784 14593 LDFLAGS="$save_LDFLAGS"
14594 else
e6408286 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'
542f9784 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*)
00aafda4 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
542f9784 14633 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
00aafda4 14634 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 14635 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
00aafda4 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
542f9784 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
e6408286 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'
542f9784 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}\*'
e6408286 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'
542f9784 14666 else
14667 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 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'
542f9784 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}\*'
e6408286 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'
542f9784 14679 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14680 else
14681 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 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'
542f9784 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~
e6408286 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'
542f9784 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
cd9a469c 14848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14849$as_echo "$ld_shlibs_FC" >&6; }
542f9784 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.
cd9a469c 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
9e6fd619 14880else
14881 $RM conftest*
14882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 14883
cd9a469c 14884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 14885 (eval $ac_compile) 2>&5
14886 ac_status=$?
cd9a469c 14887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14888 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 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=
cd9a469c 14902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 14903 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
90e67cff 14904 ac_status=$?
cd9a469c 14905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14906 test $ac_status = 0; }
9e6fd619 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
cd9a469c 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; }
9e6fd619 14921 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
542f9784 14922 ;;
14923 esac
14924 fi
14925 ;;
14926esac
90e67cff 14927
90e67cff 14928
542f9784 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
cd9a469c 14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14992$as_echo_n "checking dynamic linker characteristics... " >&6; }
00aafda4 14993
542f9784 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
21e07d2f 15024aix[4-9]*)
542f9784 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*)
00aafda4 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)
542f9784 15076 library_names_spec='$libname.ixlibrary $libname.a'
15077 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 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'
00aafda4 15079 ;;
15080 esac
542f9784 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
00aafda4 15103cygwin* | mingw* | pw32* | cegcc*)
542f9784 15104 version_type=windows
15105 shrext_cmds=".dll"
15106 need_version=no
15107 need_lib_prefix=no
15108
00aafda4 15109 case $GCC,$host_os in
15110 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 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}'
e6408286 15131
542f9784 15132 ;;
00aafda4 15133 mingw* | cegcc*)
542f9784 15134 # MinGW DLLs use traditional 'lib' prefix
15135 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 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
542f9784 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
30369aff 15183 freebsd[23].*) objformat=aout ;;
542f9784 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
30369aff 15201 freebsd2.*)
542f9784 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
e6408286 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
542f9784 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
e6408286 15285 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 15286 postinstall_cmds='chmod 555 $lib'
e6408286 15287 # or fails outright, so override atomically:
15288 install_override_mode=555
542f9784 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.
9af964d4 15346linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 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
9e6fd619 15355
542f9784 15356 # Some binutils ld are patched to set DT_RUNPATH
cd9a469c 15357 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15358 $as_echo_n "(cached) " >&6
9e6fd619 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
cd9a469c 15366 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 15367fi
cd9a469c 15368cat > conftest.$ac_ext <<_ACEOF
542f9784 15369 program main
15370
15371 end
90e67cff 15372_ACEOF
cd9a469c 15373if ac_fn_fc_try_link "$LINENO"; then :
15374 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 15375 lt_cv_shlibpath_overrides_runpath=yes
542f9784 15376fi
90e67cff 15377fi
cd9a469c 15378rm -f core conftest.err conftest.$ac_objext \
15379 conftest$ac_exeext conftest.$ac_ext
9e6fd619 15380 LDFLAGS=$save_LDFLAGS
15381 libdir=$save_libdir
15382
15383fi
15384
15385 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 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
e6408286 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' ' '`
542f9784 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
00aafda4 15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 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
cd9a469c 15595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15596$as_echo "$dynamic_linker" >&6; }
542f9784 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"
90e67cff 15602fi
90e67cff 15603
00aafda4 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
90e67cff 15611
542f9784 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
e6408286 15643
15644
542f9784 15645
15646
15647
cd9a469c 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; }
542f9784 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
90e67cff 15672fi
cd9a469c 15673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15674$as_echo "$hardcode_action_FC" >&6; }
542f9784 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
90e67cff 15684fi
15685
542f9784 15686
15687
15688
15689
15690
15691
15692 fi # test -n "$compiler"
15693
00aafda4 15694 GCC=$lt_save_GCC
542f9784 15695 CC="$lt_save_CC"
15696fi # test "$_lt_disable_FC" != yes
15697
5c88bcbb 15698ac_ext=c
90973b19 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
542f9784 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
cd9a469c 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'
542f9784 15723ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15724
cd9a469c 15725cat > conftest.$ac_ext <<_ACEOF
542f9784 15726
15727 program foo
15728 real, parameter :: bar = sin (12.34 / 2.5)
15729 end program foo
4ee9c684 15730_ACEOF
cd9a469c 15731if ac_fn_fc_try_compile "$LINENO"; then :
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15733$as_echo "yes" >&6; }
4ee9c684 15734else
cd9a469c 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
4ee9c684 15738
90973b19 15739fi
cd9a469c 15740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 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
90973b19 15746
90973b19 15747
542f9784 15748
cd9a469c 15749# Check whether --enable-largefile was given.
15750if test "${enable_largefile+set}" = set; then :
15751 enableval=$enable_largefile;
15752fi
542f9784 15753
542f9784 15754if test "$enable_largefile" != no; then
15755
cd9a469c 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
90973b19 15760else
542f9784 15761 ac_cv_sys_largefile_CC=no
15762 if test "$GCC" != yes; then
15763 ac_save_CC=$CC
15764 while :; do
cd9a469c 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
90973b19 15768/* end confdefs.h. */
542f9784 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))
cd9a469c 15775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15776 && LARGE_OFF_T % 2147483647 == 1)
15777 ? 1 : -1];
56c15991 15778int
15779main ()
15780{
56c15991 15781
15782 ;
15783 return 0;
15784}
15785_ACEOF
cd9a469c 15786 if ac_fn_c_try_compile "$LINENO"; then :
15787 break
56c15991 15788fi
cd9a469c 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
56c15991 15806
cd9a469c 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
56c15991 15814/* end confdefs.h. */
cd9a469c 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];
56c15991 15824int
15825main ()
15826{
56c15991 15827
15828 ;
15829 return 0;
15830}
15831_ACEOF
cd9a469c 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
56c15991 15837/* end confdefs.h. */
cd9a469c 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];
56c15991 15848int
15849main ()
15850{
56c15991 15851
15852 ;
15853 return 0;
15854}
15855_ACEOF
cd9a469c 15856if ac_fn_c_try_compile "$LINENO"; then :
15857 ac_cv_sys_file_offset_bits=64; break
56c15991 15858fi
cd9a469c 15859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860 ac_cv_sys_file_offset_bits=unknown
15861 break
15862done
56c15991 15863fi
cd9a469c 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
56c15991 15871_ACEOF
cd9a469c 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
56c15991 15883/* end confdefs.h. */
cd9a469c 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];
56c15991 15893int
15894main ()
15895{
56c15991 15896
15897 ;
15898 return 0;
15899}
15900_ACEOF
cd9a469c 15901if ac_fn_c_try_compile "$LINENO"; then :
15902 ac_cv_sys_large_files=no; break
56c15991 15903fi
cd9a469c 15904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56c15991 15906/* end confdefs.h. */
cd9a469c 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];
56c15991 15917int
15918main ()
15919{
15920
56c15991 15921 ;
15922 return 0;
15923}
15924_ACEOF
cd9a469c 15925if ac_fn_c_try_compile "$LINENO"; then :
15926 ac_cv_sys_large_files=1; break
56c15991 15927fi
cd9a469c 15928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 ac_cv_sys_large_files=unknown
15930 break
15931done
82eaf560 15932fi
cd9a469c 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 *)
56c15991 15938cat >>confdefs.h <<_ACEOF
cd9a469c 15939#define _LARGE_FILES $ac_cv_sys_large_files
56c15991 15940_ACEOF
cd9a469c 15941;;
15942esac
15943rm -rf conftest*
15944 fi
56c15991 15945fi
15946
c75dca49 15947
15948# Types
cd9a469c 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 :
56c15991 15951
cd9a469c 15952else
56c15991 15953
cd9a469c 15954cat >>confdefs.h <<_ACEOF
15955#define off_t long int
15956_ACEOF
56c15991 15957
c75dca49 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
56c15991 16039fi
16040
56c15991 16041
a1aa1d30 16042# check header files (we assume C89 is available, so don't check for that)
771c1b50 16043
cd9a469c 16044
771c1b50 16045
a1aa1d30 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
771c1b50 16055_ACEOF
16056
cd9a469c 16057fi
771c1b50 16058
a1aa1d30 16059done
771c1b50 16060
cd9a469c 16061
cd9a469c 16062
771c1b50 16063
cd9a469c 16064
cd9a469c 16065
771c1b50 16066
771c1b50 16067
771c1b50 16068
16069
771c1b50 16070
771c1b50 16071
771c1b50 16072
16073
771c1b50 16074
16075
7dfba97b 16076
5e7b82bb 16077
c436f700 16078
a54b1ce7 16079
16080
14c3c235 16081
4dd3972f 16082
4dd3972f 16083
4dd3972f 16084
4dd3972f 16085
4dd3972f 16086
4dd3972f 16087
553e7cef 16088
16089
b8a8c7bc 16090
16091
4dd3972f 16092
4dd3972f 16093
4ee9c684 16094
2069752c 16095inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
4ee9c684 16096
2069752c 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
cd9a469c 16111else
2069752c 16112 continue
cd9a469c 16113fi
4ee9c684 16114
2069752c 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 :
90973b19 16119
cd9a469c 16120else
2069752c 16121 acx_cv_header_stdint_kind="(mostly complete)"
cd9a469c 16122fi
90973b19 16123
2069752c 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
4dd3972f 16129else
2069752c 16130 acx_cv_header_stdint_kind="(mostly complete)"
cd9a469c 16131fi
cd9a469c 16132
2069752c 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 :
4dd3972f 16137
2069752c 16138else
16139 acx_cv_header_stdint_kind="(mostly complete)"
16140fi
ea6b3890 16141
2069752c 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 :
ea6b3890 16146
cd9a469c 16147else
2069752c 16148 acx_cv_header_stdint_kind="(lacks uint64_t)"
16149fi
4dd3972f 16150
2069752c 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
cd9a469c 16167fi
4dd3972f 16168
2069752c 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 :
f2c0a16d 16173
2069752c 16174fi
247981ce 16175
2069752c 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 :
247981ce 16180
2069752c 16181fi
b902b078 16182
2069752c 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
ea6b3890 16197else
2069752c 16198 continue
16199fi
d2fc5bb1 16200
2069752c 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 :
d2fc5bb1 16205
2069752c 16206fi
d2fc5bb1 16207
2069752c 16208 break
16209 done
d2fc5bb1 16210fi
2069752c 16211if test "$acx_cv_header_stdint" = stddef.h; then
16212 acx_cv_header_stdint_kind="(using manual detection)"
cd9a469c 16213fi
d2fc5bb1 16214
2069752c 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
d2fc5bb1 16220
2069752c 16221# ----------------- Summarize what we found so far
cd9a469c 16222
2069752c 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; }
d2fc5bb1 16225
2069752c 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
d2fc5bb1 16250
2069752c 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; }
e93cd318 16253
2069752c 16254# ----------------- done included file, check C basic types --------
99798ba4 16255
2069752c 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 :
99798ba4 16268
2069752c 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
ea6b3890 16280
2069752c 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; }
ea6b3890 16284
99798ba4 16285
16286
ea6b3890 16287cat >>confdefs.h <<_ACEOF
2069752c 16288#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
ea6b3890 16289_ACEOF
ea6b3890 16290
2069752c 16291 ;;
16292esac
ea6b3890 16293
2069752c 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 :
cd9a469c 16303 $as_echo_n "(cached) " >&6
16304else
2069752c 16305 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
ea6b3890 16306
c634bedf 16307else
2069752c 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
cd9a469c 16317fi
c634bedf 16318
2069752c 16319fi
16320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16321$as_echo "$ac_cv_sizeof_long" >&6; }
ea6b3890 16322
c634bedf 16323
ea6b3890 16324
16325cat >>confdefs.h <<_ACEOF
2069752c 16326#define SIZEOF_LONG $ac_cv_sizeof_long
ea6b3890 16327_ACEOF
c634bedf 16328
2069752c 16329 ;;
16330esac
74b918e9 16331
2069752c 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 :
c0e8efbe 16344
2069752c 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
5a037dbd 16356
2069752c 16357fi
16358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16359$as_echo "$ac_cv_sizeof_int" >&6; }
e0582811 16360
16361
99798ba4 16362
ea6b3890 16363cat >>confdefs.h <<_ACEOF
2069752c 16364#define SIZEOF_INT $ac_cv_sizeof_int
ea6b3890 16365_ACEOF
16366
ea6b3890 16367
2069752c 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 :
ea6b3890 16378
2069752c 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
ea6b3890 16390
2069752c 16391fi
16392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16393$as_echo "$ac_cv_sizeof_short" >&6; }
ea6b3890 16394
16395
16396
2069752c 16397cat >>confdefs.h <<_ACEOF
16398#define SIZEOF_SHORT $ac_cv_sizeof_short
16399_ACEOF
ea6b3890 16400
16401
2069752c 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 :
ea6b3890 16412
2069752c 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
ea6b3890 16424
2069752c 16425fi
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16427$as_echo "$ac_cv_sizeof_char" >&6; }
ea6b3890 16428
16429
ea6b3890 16430
cd9a469c 16431cat >>confdefs.h <<_ACEOF
2069752c 16432#define SIZEOF_CHAR $ac_cv_sizeof_char
99798ba4 16433_ACEOF
99798ba4 16434
99798ba4 16435
eaae6999 16436
2069752c 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 ;;
9b15a251 16441 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
2069752c 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 ;;
9b15a251 16451 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
2069752c 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 ;;
9b15a251 16461 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
2069752c 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; }
cd9a469c 16465fi
16466
2069752c 16467# These tests are here to make the output prettier
ea6b3890 16468
2069752c 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 ;;
9b15a251 16488 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
2069752c 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
ea6b3890 16493
2069752c 16494# ----------------- done all checks, emit header -------------
cd9a469c 16495ac_config_commands="$ac_config_commands gstdint.h"
eaae6999 16496
eaae6999 16497
cd9a469c 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
eaae6999 16505_ACEOF
eaae6999 16506
cd9a469c 16507
eaae6999 16508fi
cd9a469c 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
eaae6999 16514_ACEOF
16515
cd9a469c 16516
eaae6999 16517fi
cd9a469c 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 :
eaae6999 16520
cd9a469c 16521cat >>confdefs.h <<_ACEOF
16522#define HAVE_STRUCT_STAT_ST_RDEV 1
16523_ACEOF
99798ba4 16524
16525
b52ee437 16526fi
cd9a469c 16527
16528
0d9d2088 16529case "${host}--x${with_newlib}" in
16530 mips*--xyes)
16531 hardwire_newlib=1;;
8c596dcc 16532 nvptx*--xyes)
16533 hardwire_newlib=1;;
0d9d2088 16534esac
16535
cd9a469c 16536# Check for library functions.
0d9d2088 16537if test "${hardwire_newlib:-0}" -eq 1; then
e4812daa 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
e4812daa 16548$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16549
16550
e4812daa 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
cec5cd66 16559
4531a456 16560$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16561
16562
16563$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16564
16565
cec5cd66 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
e4812daa 16574else
4dd3972f 16575
4dd3972f 16576
a1aa1d30 16577
16578 for ac_func in $ac_func_list
cd9a469c 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
4dd3972f 16587
cd9a469c 16588fi
16589done
4dd3972f 16590
4dd3972f 16591
cd9a469c 16592
90973b19 16593
cd9a469c 16594
cd9a469c 16595
cd9a469c 16596
4ee9c684 16597
4ee9c684 16598
a2c0dc0f 16599
a2c0dc0f 16600
4ee9c684 16601
adad6c74 16602
adad6c74 16603
adad6c74 16604
adad6c74 16605
adad6c74 16606
adad6c74 16607
adad6c74 16608
adad6c74 16609
99798ba4 16610
99798ba4 16611
99798ba4 16612
99798ba4 16613
adad6c74 16614
adad6c74 16615
adad6c74 16616
adad6c74 16617
c0e8efbe 16618
c0e8efbe 16619
c0e8efbe 16620
a1aa1d30 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
a291e3b6 16677
5935a97b 16678
b8a8c7bc 16679
16680
fc3d374a 16681
16682
7520a494 16683
16684
7f0d992b 16685
16686
5935a97b 16687
ffb6d1fd 16688
16689
e4812daa 16690fi
a1aa1d30 16691
a8d8f723 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"
c0e8efbe 16739
adad6c74 16740
8f838781 16741# Check for C99 (and other IEEE) math functions
7d9455ce 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 :
cd9a469c 16745 $as_echo_n "(cached) " >&6
8f838781 16746else
16747 ac_check_lib_save_LIBS=$LIBS
16748LIBS="-lm $LIBS"
b52ee437 16749if test x$gcc_no_link = xyes; then
cd9a469c 16750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16751fi
cd9a469c 16752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 16753/* end confdefs.h. */
16754
cd9a469c 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. */
8f838781 16758#ifdef __cplusplus
16759extern "C"
16760#endif
7d9455ce 16761char sin ();
8f838781 16762int
16763main ()
16764{
7d9455ce 16765return sin ();
8f838781 16766 ;
16767 return 0;
16768}
16769_ACEOF
cd9a469c 16770if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 16771 ac_cv_lib_m_sin=yes
8f838781 16772else
7d9455ce 16773 ac_cv_lib_m_sin=no
8f838781 16774fi
cd9a469c 16775rm -f core conftest.err conftest.$ac_objext \
16776 conftest$ac_exeext conftest.$ac_ext
8f838781 16777LIBS=$ac_check_lib_save_LIBS
16778fi
7d9455ce 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
8f838781 16785
7d9455ce 16786 LIBS="-lm $LIBS"
8f838781 16787
16788fi
16789
7d9455ce 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 :
cd9a469c 16799 $as_echo_n "(cached) " >&6
b52ee437 16800else
7d9455ce 16801 if test x$gcc_no_link = xyes; then
cd9a469c 16802 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16803fi
cd9a469c 16804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 16805/* end confdefs.h. */
16806
7d9455ce 16807#ifdef HAVE_COMPLEX_H
16808#include <complex.h>
16809#endif
16810#ifdef HAVE_MATH_H
16811#include <math.h>
b52ee437 16812#endif
7d9455ce 16813
16814int (*ptr)() = (int (*)())acosf;
16815
b52ee437 16816int
16817main ()
16818{
b52ee437 16819 return 0;
16820}
7d9455ce 16821
b52ee437 16822_ACEOF
cd9a469c 16823if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 16824 gcc_cv_math_func_acosf=yes
b52ee437 16825else
7d9455ce 16826 gcc_cv_math_func_acosf=no
b52ee437 16827fi
cd9a469c 16828rm -f core conftest.err conftest.$ac_objext \
16829 conftest$ac_exeext conftest.$ac_ext
b52ee437 16830fi
7d9455ce 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
bd647a17 16834
6affa8e1 16835cat >>confdefs.h <<_ACEOF
16836#define HAVE_ACOSF 1
16837_ACEOF
7d9455ce 16838
16839 fi
b52ee437 16840
b52ee437 16841
b52ee437 16842
7d9455ce 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 :
cd9a469c 16847 $as_echo_n "(cached) " >&6
8f838781 16848else
7d9455ce 16849 if test x$gcc_no_link = xyes; then
cd9a469c 16850 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16851fi
cd9a469c 16852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 16853/* end confdefs.h. */
16854
7d9455ce 16855#ifdef HAVE_COMPLEX_H
16856#include <complex.h>
8f838781 16857#endif
7d9455ce 16858#ifdef HAVE_MATH_H
16859#include <math.h>
16860#endif
16861
16862int (*ptr)() = (int (*)())acos;
16863
8f838781 16864int
16865main ()
16866{
8f838781 16867 return 0;
16868}
7d9455ce 16869
8f838781 16870_ACEOF
cd9a469c 16871if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 16872 gcc_cv_math_func_acos=yes
8f838781 16873else
7d9455ce 16874 gcc_cv_math_func_acos=no
8f838781 16875fi
cd9a469c 16876rm -f core conftest.err conftest.$ac_objext \
16877 conftest$ac_exeext conftest.$ac_ext
8f838781 16878fi
7d9455ce 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
bd647a17 16882
6affa8e1 16883cat >>confdefs.h <<_ACEOF
16884#define HAVE_ACOS 1
16885_ACEOF
7d9455ce 16886
16887 fi
16888
8f838781 16889
8f838781 16890
8f838781 16891
7d9455ce 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 :
cd9a469c 16895 $as_echo_n "(cached) " >&6
b52ee437 16896else
7d9455ce 16897 if test x$gcc_no_link = xyes; then
cd9a469c 16898 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16899fi
cd9a469c 16900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 16901/* end confdefs.h. */
16902
7d9455ce 16903#ifdef HAVE_COMPLEX_H
16904#include <complex.h>
16905#endif
16906#ifdef HAVE_MATH_H
16907#include <math.h>
b52ee437 16908#endif
7d9455ce 16909
16910int (*ptr)() = (int (*)())acosl;
16911
b52ee437 16912int
16913main ()
16914{
b52ee437 16915 return 0;
16916}
7d9455ce 16917
b52ee437 16918_ACEOF
cd9a469c 16919if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 16920 gcc_cv_math_func_acosl=yes
b52ee437 16921else
7d9455ce 16922 gcc_cv_math_func_acosl=no
b52ee437 16923fi
cd9a469c 16924rm -f core conftest.err conftest.$ac_objext \
16925 conftest$ac_exeext conftest.$ac_ext
b52ee437 16926fi
7d9455ce 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
bd647a17 16930
6affa8e1 16931cat >>confdefs.h <<_ACEOF
16932#define HAVE_ACOSL 1
16933_ACEOF
7d9455ce 16934
16935 fi
b52ee437 16936
b52ee437 16937
b52ee437 16938
7d9455ce 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 :
cd9a469c 16943 $as_echo_n "(cached) " >&6
8f838781 16944else
7d9455ce 16945 if test x$gcc_no_link = xyes; then
cd9a469c 16946 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16947fi
cd9a469c 16948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 16949/* end confdefs.h. */
16950
7d9455ce 16951#ifdef HAVE_COMPLEX_H
16952#include <complex.h>
8f838781 16953#endif
7d9455ce 16954#ifdef HAVE_MATH_H
16955#include <math.h>
16956#endif
16957
16958int (*ptr)() = (int (*)())acoshf;
16959
8f838781 16960int
16961main ()
16962{
8f838781 16963 return 0;
16964}
7d9455ce 16965
8f838781 16966_ACEOF
cd9a469c 16967if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 16968 gcc_cv_math_func_acoshf=yes
8f838781 16969else
7d9455ce 16970 gcc_cv_math_func_acoshf=no
8f838781 16971fi
cd9a469c 16972rm -f core conftest.err conftest.$ac_objext \
16973 conftest$ac_exeext conftest.$ac_ext
8f838781 16974fi
7d9455ce 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
bd647a17 16978
6affa8e1 16979cat >>confdefs.h <<_ACEOF
16980#define HAVE_ACOSHF 1
16981_ACEOF
8f838781 16982
7d9455ce 16983 fi
8f838781 16984
8f838781 16985
7d9455ce 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 :
cd9a469c 16991 $as_echo_n "(cached) " >&6
8f838781 16992else
7d9455ce 16993 if test x$gcc_no_link = xyes; then
cd9a469c 16994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16995fi
cd9a469c 16996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 16997/* end confdefs.h. */
16998
7d9455ce 16999#ifdef HAVE_COMPLEX_H
17000#include <complex.h>
17001#endif
17002#ifdef HAVE_MATH_H
17003#include <math.h>
8f838781 17004#endif
7d9455ce 17005
17006int (*ptr)() = (int (*)())acosh;
17007
8f838781 17008int
17009main ()
17010{
cd9a469c 17011 return 0;
17012}
7d9455ce 17013
cd9a469c 17014_ACEOF
17015if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17016 gcc_cv_math_func_acosh=yes
8f838781 17017else
7d9455ce 17018 gcc_cv_math_func_acosh=no
8f838781 17019fi
cd9a469c 17020rm -f core conftest.err conftest.$ac_objext \
17021 conftest$ac_exeext conftest.$ac_ext
8f838781 17022fi
7d9455ce 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
bd647a17 17026
6affa8e1 17027cat >>confdefs.h <<_ACEOF
17028#define HAVE_ACOSH 1
17029_ACEOF
7d9455ce 17030
17031 fi
8f838781 17032
8f838781 17033
8f838781 17034
7d9455ce 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 :
cd9a469c 17039 $as_echo_n "(cached) " >&6
b52ee437 17040else
7d9455ce 17041 if test x$gcc_no_link = xyes; then
cd9a469c 17042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17043fi
cd9a469c 17044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 17045/* end confdefs.h. */
17046
7d9455ce 17047#ifdef HAVE_COMPLEX_H
17048#include <complex.h>
b52ee437 17049#endif
7d9455ce 17050#ifdef HAVE_MATH_H
17051#include <math.h>
17052#endif
17053
17054int (*ptr)() = (int (*)())acoshl;
17055
b52ee437 17056int
17057main ()
17058{
b52ee437 17059 return 0;
17060}
7d9455ce 17061
b52ee437 17062_ACEOF
cd9a469c 17063if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17064 gcc_cv_math_func_acoshl=yes
b52ee437 17065else
7d9455ce 17066 gcc_cv_math_func_acoshl=no
b52ee437 17067fi
cd9a469c 17068rm -f core conftest.err conftest.$ac_objext \
17069 conftest$ac_exeext conftest.$ac_ext
b52ee437 17070fi
7d9455ce 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
bd647a17 17074
6affa8e1 17075cat >>confdefs.h <<_ACEOF
17076#define HAVE_ACOSHL 1
17077_ACEOF
7d9455ce 17078
17079 fi
17080
b52ee437 17081
b52ee437 17082
b52ee437 17083
7d9455ce 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 :
cd9a469c 17087 $as_echo_n "(cached) " >&6
8f838781 17088else
7d9455ce 17089 if test x$gcc_no_link = xyes; then
cd9a469c 17090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17091fi
cd9a469c 17092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17093/* end confdefs.h. */
17094
7d9455ce 17095#ifdef HAVE_COMPLEX_H
17096#include <complex.h>
17097#endif
17098#ifdef HAVE_MATH_H
17099#include <math.h>
8f838781 17100#endif
7d9455ce 17101
17102int (*ptr)() = (int (*)())asinf;
17103
8f838781 17104int
17105main ()
17106{
8f838781 17107 return 0;
17108}
7d9455ce 17109
8f838781 17110_ACEOF
cd9a469c 17111if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17112 gcc_cv_math_func_asinf=yes
8f838781 17113else
7d9455ce 17114 gcc_cv_math_func_asinf=no
8f838781 17115fi
cd9a469c 17116rm -f core conftest.err conftest.$ac_objext \
17117 conftest$ac_exeext conftest.$ac_ext
8f838781 17118fi
7d9455ce 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
bd647a17 17122
6affa8e1 17123cat >>confdefs.h <<_ACEOF
17124#define HAVE_ASINF 1
17125_ACEOF
7d9455ce 17126
17127 fi
8f838781 17128
8f838781 17129
8f838781 17130
7d9455ce 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 :
cd9a469c 17135 $as_echo_n "(cached) " >&6
8f838781 17136else
7d9455ce 17137 if test x$gcc_no_link = xyes; then
cd9a469c 17138 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17139fi
cd9a469c 17140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17141/* end confdefs.h. */
17142
7d9455ce 17143#ifdef HAVE_COMPLEX_H
17144#include <complex.h>
8f838781 17145#endif
7d9455ce 17146#ifdef HAVE_MATH_H
17147#include <math.h>
17148#endif
17149
17150int (*ptr)() = (int (*)())asin;
17151
8f838781 17152int
17153main ()
17154{
8f838781 17155 return 0;
17156}
7d9455ce 17157
8f838781 17158_ACEOF
cd9a469c 17159if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17160 gcc_cv_math_func_asin=yes
8f838781 17161else
7d9455ce 17162 gcc_cv_math_func_asin=no
8f838781 17163fi
cd9a469c 17164rm -f core conftest.err conftest.$ac_objext \
17165 conftest$ac_exeext conftest.$ac_ext
8f838781 17166fi
7d9455ce 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
bd647a17 17170
6affa8e1 17171cat >>confdefs.h <<_ACEOF
17172#define HAVE_ASIN 1
17173_ACEOF
8f838781 17174
7d9455ce 17175 fi
8f838781 17176
8f838781 17177
7d9455ce 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 :
cd9a469c 17183 $as_echo_n "(cached) " >&6
8f838781 17184else
7d9455ce 17185 if test x$gcc_no_link = xyes; then
cd9a469c 17186 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17187fi
cd9a469c 17188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17189/* end confdefs.h. */
17190
7d9455ce 17191#ifdef HAVE_COMPLEX_H
17192#include <complex.h>
17193#endif
17194#ifdef HAVE_MATH_H
17195#include <math.h>
8f838781 17196#endif
7d9455ce 17197
17198int (*ptr)() = (int (*)())asinl;
17199
8f838781 17200int
17201main ()
17202{
8f838781 17203 return 0;
17204}
7d9455ce 17205
8f838781 17206_ACEOF
cd9a469c 17207if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17208 gcc_cv_math_func_asinl=yes
8f838781 17209else
7d9455ce 17210 gcc_cv_math_func_asinl=no
8f838781 17211fi
cd9a469c 17212rm -f core conftest.err conftest.$ac_objext \
17213 conftest$ac_exeext conftest.$ac_ext
8f838781 17214fi
7d9455ce 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
bd647a17 17218
6affa8e1 17219cat >>confdefs.h <<_ACEOF
17220#define HAVE_ASINL 1
17221_ACEOF
7d9455ce 17222
17223 fi
8f838781 17224
8f838781 17225
8f838781 17226
7d9455ce 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 :
cd9a469c 17231 $as_echo_n "(cached) " >&6
8f838781 17232else
7d9455ce 17233 if test x$gcc_no_link = xyes; then
cd9a469c 17234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17235fi
cd9a469c 17236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17237/* end confdefs.h. */
17238
7d9455ce 17239#ifdef HAVE_COMPLEX_H
17240#include <complex.h>
8f838781 17241#endif
7d9455ce 17242#ifdef HAVE_MATH_H
17243#include <math.h>
17244#endif
17245
17246int (*ptr)() = (int (*)())asinhf;
17247
8f838781 17248int
17249main ()
17250{
8f838781 17251 return 0;
17252}
7d9455ce 17253
8f838781 17254_ACEOF
cd9a469c 17255if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17256 gcc_cv_math_func_asinhf=yes
8f838781 17257else
7d9455ce 17258 gcc_cv_math_func_asinhf=no
8f838781 17259fi
cd9a469c 17260rm -f core conftest.err conftest.$ac_objext \
17261 conftest$ac_exeext conftest.$ac_ext
8f838781 17262fi
7d9455ce 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
bd647a17 17266
6affa8e1 17267cat >>confdefs.h <<_ACEOF
17268#define HAVE_ASINHF 1
17269_ACEOF
7d9455ce 17270
17271 fi
17272
8f838781 17273
8f838781 17274
8f838781 17275
7d9455ce 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 :
cd9a469c 17279 $as_echo_n "(cached) " >&6
8f838781 17280else
7d9455ce 17281 if test x$gcc_no_link = xyes; then
cd9a469c 17282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17283fi
cd9a469c 17284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17285/* end confdefs.h. */
17286
7d9455ce 17287#ifdef HAVE_COMPLEX_H
17288#include <complex.h>
17289#endif
17290#ifdef HAVE_MATH_H
17291#include <math.h>
8f838781 17292#endif
7d9455ce 17293
17294int (*ptr)() = (int (*)())asinh;
17295
8f838781 17296int
17297main ()
17298{
8f838781 17299 return 0;
17300}
7d9455ce 17301
8f838781 17302_ACEOF
cd9a469c 17303if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17304 gcc_cv_math_func_asinh=yes
8f838781 17305else
7d9455ce 17306 gcc_cv_math_func_asinh=no
8f838781 17307fi
cd9a469c 17308rm -f core conftest.err conftest.$ac_objext \
17309 conftest$ac_exeext conftest.$ac_ext
8f838781 17310fi
7d9455ce 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
bd647a17 17314
6affa8e1 17315cat >>confdefs.h <<_ACEOF
17316#define HAVE_ASINH 1
17317_ACEOF
7d9455ce 17318
17319 fi
8f838781 17320
8f838781 17321
8f838781 17322
7d9455ce 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 :
cd9a469c 17327 $as_echo_n "(cached) " >&6
334f03a1 17328else
7d9455ce 17329 if test x$gcc_no_link = xyes; then
cd9a469c 17330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17331fi
cd9a469c 17332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
334f03a1 17333/* end confdefs.h. */
17334
7d9455ce 17335#ifdef HAVE_COMPLEX_H
17336#include <complex.h>
334f03a1 17337#endif
7d9455ce 17338#ifdef HAVE_MATH_H
17339#include <math.h>
17340#endif
17341
17342int (*ptr)() = (int (*)())asinhl;
17343
334f03a1 17344int
17345main ()
17346{
334f03a1 17347 return 0;
17348}
7d9455ce 17349
334f03a1 17350_ACEOF
cd9a469c 17351if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17352 gcc_cv_math_func_asinhl=yes
334f03a1 17353else
7d9455ce 17354 gcc_cv_math_func_asinhl=no
334f03a1 17355fi
cd9a469c 17356rm -f core conftest.err conftest.$ac_objext \
17357 conftest$ac_exeext conftest.$ac_ext
334f03a1 17358fi
7d9455ce 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
bd647a17 17362
6affa8e1 17363cat >>confdefs.h <<_ACEOF
17364#define HAVE_ASINHL 1
17365_ACEOF
334f03a1 17366
7d9455ce 17367 fi
334f03a1 17368
334f03a1 17369
7d9455ce 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 :
cd9a469c 17375 $as_echo_n "(cached) " >&6
8f838781 17376else
7d9455ce 17377 if test x$gcc_no_link = xyes; then
cd9a469c 17378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17379fi
cd9a469c 17380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17381/* end confdefs.h. */
17382
7d9455ce 17383#ifdef HAVE_COMPLEX_H
17384#include <complex.h>
8f838781 17385#endif
7d9455ce 17386#ifdef HAVE_MATH_H
17387#include <math.h>
17388#endif
17389
17390int (*ptr)() = (int (*)())atan2f;
17391
17392int
8f838781 17393main ()
17394{
8f838781 17395 return 0;
17396}
7d9455ce 17397
8f838781 17398_ACEOF
cd9a469c 17399if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17400 gcc_cv_math_func_atan2f=yes
8f838781 17401else
7d9455ce 17402 gcc_cv_math_func_atan2f=no
8f838781 17403fi
cd9a469c 17404rm -f core conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
8f838781 17406fi
7d9455ce 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
bd647a17 17410
6affa8e1 17411cat >>confdefs.h <<_ACEOF
17412#define HAVE_ATAN2F 1
17413_ACEOF
7d9455ce 17414
17415 fi
8f838781 17416
8f838781 17417
8f838781 17418
7d9455ce 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 :
cd9a469c 17423 $as_echo_n "(cached) " >&6
8f838781 17424else
7d9455ce 17425 if test x$gcc_no_link = xyes; then
cd9a469c 17426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17427fi
cd9a469c 17428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17429/* end confdefs.h. */
17430
7d9455ce 17431#ifdef HAVE_COMPLEX_H
17432#include <complex.h>
8f838781 17433#endif
7d9455ce 17434#ifdef HAVE_MATH_H
17435#include <math.h>
17436#endif
17437
17438int (*ptr)() = (int (*)())atan2;
17439
8f838781 17440int
17441main ()
17442{
8f838781 17443 return 0;
17444}
7d9455ce 17445
8f838781 17446_ACEOF
cd9a469c 17447if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17448 gcc_cv_math_func_atan2=yes
8f838781 17449else
7d9455ce 17450 gcc_cv_math_func_atan2=no
8f838781 17451fi
cd9a469c 17452rm -f core conftest.err conftest.$ac_objext \
17453 conftest$ac_exeext conftest.$ac_ext
8f838781 17454fi
7d9455ce 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
bd647a17 17458
6affa8e1 17459cat >>confdefs.h <<_ACEOF
17460#define HAVE_ATAN2 1
17461_ACEOF
8f838781 17462
7d9455ce 17463 fi
8f838781 17464
8f838781 17465
7d9455ce 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 :
cd9a469c 17471 $as_echo_n "(cached) " >&6
8f838781 17472else
7d9455ce 17473 if test x$gcc_no_link = xyes; then
cd9a469c 17474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17475fi
cd9a469c 17476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17477/* end confdefs.h. */
17478
7d9455ce 17479#ifdef HAVE_COMPLEX_H
17480#include <complex.h>
17481#endif
17482#ifdef HAVE_MATH_H
17483#include <math.h>
8f838781 17484#endif
7d9455ce 17485
17486int (*ptr)() = (int (*)())atan2l;
17487
8f838781 17488int
17489main ()
17490{
8f838781 17491 return 0;
17492}
7d9455ce 17493
8f838781 17494_ACEOF
cd9a469c 17495if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17496 gcc_cv_math_func_atan2l=yes
8f838781 17497else
7d9455ce 17498 gcc_cv_math_func_atan2l=no
8f838781 17499fi
cd9a469c 17500rm -f core conftest.err conftest.$ac_objext \
17501 conftest$ac_exeext conftest.$ac_ext
8f838781 17502fi
7d9455ce 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
bd647a17 17506
6affa8e1 17507cat >>confdefs.h <<_ACEOF
17508#define HAVE_ATAN2L 1
17509_ACEOF
7d9455ce 17510
17511 fi
8f838781 17512
8f838781 17513
8f838781 17514
7d9455ce 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 :
cd9a469c 17519 $as_echo_n "(cached) " >&6
8f838781 17520else
7d9455ce 17521 if test x$gcc_no_link = xyes; then
cd9a469c 17522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17523fi
cd9a469c 17524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17525/* end confdefs.h. */
17526
7d9455ce 17527#ifdef HAVE_COMPLEX_H
17528#include <complex.h>
8f838781 17529#endif
7d9455ce 17530#ifdef HAVE_MATH_H
17531#include <math.h>
17532#endif
17533
17534int (*ptr)() = (int (*)())atanf;
17535
8f838781 17536int
17537main ()
17538{
8f838781 17539 return 0;
17540}
7d9455ce 17541
8f838781 17542_ACEOF
cd9a469c 17543if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17544 gcc_cv_math_func_atanf=yes
8f838781 17545else
7d9455ce 17546 gcc_cv_math_func_atanf=no
8f838781 17547fi
cd9a469c 17548rm -f core conftest.err conftest.$ac_objext \
17549 conftest$ac_exeext conftest.$ac_ext
8f838781 17550fi
7d9455ce 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
bd647a17 17554
6affa8e1 17555cat >>confdefs.h <<_ACEOF
17556#define HAVE_ATANF 1
17557_ACEOF
7d9455ce 17558
17559 fi
17560
8f838781 17561
8f838781 17562
8f838781 17563
7d9455ce 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 :
cd9a469c 17567 $as_echo_n "(cached) " >&6
8f838781 17568else
7d9455ce 17569 if test x$gcc_no_link = xyes; then
cd9a469c 17570 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17571fi
cd9a469c 17572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17573/* end confdefs.h. */
17574
7d9455ce 17575#ifdef HAVE_COMPLEX_H
17576#include <complex.h>
17577#endif
17578#ifdef HAVE_MATH_H
17579#include <math.h>
8f838781 17580#endif
7d9455ce 17581
17582int (*ptr)() = (int (*)())atan;
17583
8f838781 17584int
17585main ()
17586{
8f838781 17587 return 0;
17588}
7d9455ce 17589
8f838781 17590_ACEOF
cd9a469c 17591if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17592 gcc_cv_math_func_atan=yes
8f838781 17593else
7d9455ce 17594 gcc_cv_math_func_atan=no
8f838781 17595fi
cd9a469c 17596rm -f core conftest.err conftest.$ac_objext \
17597 conftest$ac_exeext conftest.$ac_ext
8f838781 17598fi
7d9455ce 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
bd647a17 17602
6affa8e1 17603cat >>confdefs.h <<_ACEOF
17604#define HAVE_ATAN 1
17605_ACEOF
7d9455ce 17606
17607 fi
8f838781 17608
8f838781 17609
8f838781 17610
7d9455ce 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 :
cd9a469c 17615 $as_echo_n "(cached) " >&6
14c3c235 17616else
7d9455ce 17617 if test x$gcc_no_link = xyes; then
cd9a469c 17618 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17619fi
cd9a469c 17620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14c3c235 17621/* end confdefs.h. */
17622
7d9455ce 17623#ifdef HAVE_COMPLEX_H
17624#include <complex.h>
14c3c235 17625#endif
7d9455ce 17626#ifdef HAVE_MATH_H
17627#include <math.h>
17628#endif
17629
17630int (*ptr)() = (int (*)())atanl;
17631
14c3c235 17632int
17633main ()
17634{
14c3c235 17635 return 0;
17636}
7d9455ce 17637
14c3c235 17638_ACEOF
cd9a469c 17639if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17640 gcc_cv_math_func_atanl=yes
14c3c235 17641else
7d9455ce 17642 gcc_cv_math_func_atanl=no
14c3c235 17643fi
cd9a469c 17644rm -f core conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
14c3c235 17646fi
7d9455ce 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
bd647a17 17650
6affa8e1 17651cat >>confdefs.h <<_ACEOF
17652#define HAVE_ATANL 1
17653_ACEOF
14c3c235 17654
7d9455ce 17655 fi
14c3c235 17656
14c3c235 17657
7d9455ce 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 :
cd9a469c 17663 $as_echo_n "(cached) " >&6
8f838781 17664else
7d9455ce 17665 if test x$gcc_no_link = xyes; then
cd9a469c 17666 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17667fi
cd9a469c 17668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17669/* end confdefs.h. */
17670
7d9455ce 17671#ifdef HAVE_COMPLEX_H
17672#include <complex.h>
17673#endif
17674#ifdef HAVE_MATH_H
17675#include <math.h>
8f838781 17676#endif
7d9455ce 17677
17678int (*ptr)() = (int (*)())atanhf;
17679
8f838781 17680int
17681main ()
17682{
8f838781 17683 return 0;
17684}
7d9455ce 17685
8f838781 17686_ACEOF
cd9a469c 17687if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17688 gcc_cv_math_func_atanhf=yes
8f838781 17689else
7d9455ce 17690 gcc_cv_math_func_atanhf=no
8f838781 17691fi
cd9a469c 17692rm -f core conftest.err conftest.$ac_objext \
17693 conftest$ac_exeext conftest.$ac_ext
8f838781 17694fi
7d9455ce 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
bd647a17 17698
6affa8e1 17699cat >>confdefs.h <<_ACEOF
17700#define HAVE_ATANHF 1
17701_ACEOF
7d9455ce 17702
17703 fi
8f838781 17704
8f838781 17705
8f838781 17706
7d9455ce 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 :
cd9a469c 17711 $as_echo_n "(cached) " >&6
8f838781 17712else
7d9455ce 17713 if test x$gcc_no_link = xyes; then
cd9a469c 17714 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17715fi
cd9a469c 17716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17717/* end confdefs.h. */
17718
7d9455ce 17719#ifdef HAVE_COMPLEX_H
17720#include <complex.h>
8f838781 17721#endif
7d9455ce 17722#ifdef HAVE_MATH_H
17723#include <math.h>
17724#endif
17725
17726int (*ptr)() = (int (*)())atanh;
17727
8f838781 17728int
17729main ()
17730{
8f838781 17731 return 0;
17732}
7d9455ce 17733
8f838781 17734_ACEOF
cd9a469c 17735if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17736 gcc_cv_math_func_atanh=yes
8f838781 17737else
7d9455ce 17738 gcc_cv_math_func_atanh=no
8f838781 17739fi
cd9a469c 17740rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
8f838781 17742fi
7d9455ce 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
bd647a17 17746
6affa8e1 17747cat >>confdefs.h <<_ACEOF
17748#define HAVE_ATANH 1
17749_ACEOF
7d9455ce 17750
17751 fi
17752
8f838781 17753
8f838781 17754
8f838781 17755
7d9455ce 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 :
cd9a469c 17759 $as_echo_n "(cached) " >&6
a2d7a3ff 17760else
7d9455ce 17761 if test x$gcc_no_link = xyes; then
cd9a469c 17762 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17763fi
cd9a469c 17764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2d7a3ff 17765/* end confdefs.h. */
17766
7d9455ce 17767#ifdef HAVE_COMPLEX_H
17768#include <complex.h>
17769#endif
17770#ifdef HAVE_MATH_H
17771#include <math.h>
a2d7a3ff 17772#endif
7d9455ce 17773
17774int (*ptr)() = (int (*)())atanhl;
17775
a2d7a3ff 17776int
17777main ()
17778{
a2d7a3ff 17779 return 0;
17780}
7d9455ce 17781
a2d7a3ff 17782_ACEOF
cd9a469c 17783if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17784 gcc_cv_math_func_atanhl=yes
a2d7a3ff 17785else
7d9455ce 17786 gcc_cv_math_func_atanhl=no
a2d7a3ff 17787fi
cd9a469c 17788rm -f core conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
a2d7a3ff 17790fi
7d9455ce 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
bd647a17 17794
6affa8e1 17795cat >>confdefs.h <<_ACEOF
17796#define HAVE_ATANHL 1
17797_ACEOF
7d9455ce 17798
17799 fi
a2d7a3ff 17800
a2d7a3ff 17801
a2d7a3ff 17802
7d9455ce 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 :
cd9a469c 17807 $as_echo_n "(cached) " >&6
a31bd8a4 17808else
7d9455ce 17809 if test x$gcc_no_link = xyes; then
cd9a469c 17810 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17811fi
cd9a469c 17812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a31bd8a4 17813/* end confdefs.h. */
17814
7d9455ce 17815#ifdef HAVE_COMPLEX_H
17816#include <complex.h>
a31bd8a4 17817#endif
7d9455ce 17818#ifdef HAVE_MATH_H
17819#include <math.h>
17820#endif
17821
17822int (*ptr)() = (int (*)())cargf;
17823
8f838781 17824int
17825main ()
17826{
8f838781 17827 return 0;
17828}
7d9455ce 17829
8f838781 17830_ACEOF
cd9a469c 17831if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17832 gcc_cv_math_func_cargf=yes
8f838781 17833else
7d9455ce 17834 gcc_cv_math_func_cargf=no
8f838781 17835fi
cd9a469c 17836rm -f core conftest.err conftest.$ac_objext \
17837 conftest$ac_exeext conftest.$ac_ext
8f838781 17838fi
7d9455ce 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
bd647a17 17842
6affa8e1 17843cat >>confdefs.h <<_ACEOF
17844#define HAVE_CARGF 1
17845_ACEOF
8f838781 17846
7d9455ce 17847 fi
8f838781 17848
8f838781 17849
7d9455ce 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 :
cd9a469c 17855 $as_echo_n "(cached) " >&6
8f838781 17856else
7d9455ce 17857 if test x$gcc_no_link = xyes; then
cd9a469c 17858 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17859fi
cd9a469c 17860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17861/* end confdefs.h. */
17862
7d9455ce 17863#ifdef HAVE_COMPLEX_H
17864#include <complex.h>
17865#endif
17866#ifdef HAVE_MATH_H
17867#include <math.h>
8f838781 17868#endif
7d9455ce 17869
17870int (*ptr)() = (int (*)())carg;
17871
a31bd8a4 17872int
17873main ()
17874{
a31bd8a4 17875 return 0;
17876}
7d9455ce 17877
a31bd8a4 17878_ACEOF
cd9a469c 17879if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17880 gcc_cv_math_func_carg=yes
a31bd8a4 17881else
7d9455ce 17882 gcc_cv_math_func_carg=no
a31bd8a4 17883fi
cd9a469c 17884rm -f core conftest.err conftest.$ac_objext \
17885 conftest$ac_exeext conftest.$ac_ext
a31bd8a4 17886fi
7d9455ce 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
bd647a17 17890
6affa8e1 17891cat >>confdefs.h <<_ACEOF
17892#define HAVE_CARG 1
17893_ACEOF
7d9455ce 17894
17895 fi
a31bd8a4 17896
a31bd8a4 17897
a31bd8a4 17898
7d9455ce 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 :
cd9a469c 17903 $as_echo_n "(cached) " >&6
a31bd8a4 17904else
7d9455ce 17905 if test x$gcc_no_link = xyes; then
cd9a469c 17906 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17907fi
cd9a469c 17908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a31bd8a4 17909/* end confdefs.h. */
17910
7d9455ce 17911#ifdef HAVE_COMPLEX_H
17912#include <complex.h>
a31bd8a4 17913#endif
7d9455ce 17914#ifdef HAVE_MATH_H
17915#include <math.h>
17916#endif
17917
17918int (*ptr)() = (int (*)())cargl;
17919
a31bd8a4 17920int
17921main ()
17922{
a31bd8a4 17923 return 0;
17924}
7d9455ce 17925
a31bd8a4 17926_ACEOF
cd9a469c 17927if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17928 gcc_cv_math_func_cargl=yes
a31bd8a4 17929else
7d9455ce 17930 gcc_cv_math_func_cargl=no
a31bd8a4 17931fi
cd9a469c 17932rm -f core conftest.err conftest.$ac_objext \
17933 conftest$ac_exeext conftest.$ac_ext
a31bd8a4 17934fi
7d9455ce 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
bd647a17 17938
6affa8e1 17939cat >>confdefs.h <<_ACEOF
17940#define HAVE_CARGL 1
17941_ACEOF
7d9455ce 17942
17943 fi
17944
a31bd8a4 17945
a31bd8a4 17946
a31bd8a4 17947
7d9455ce 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 :
cd9a469c 17951 $as_echo_n "(cached) " >&6
97844b15 17952else
7d9455ce 17953 if test x$gcc_no_link = xyes; then
cd9a469c 17954 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17955fi
cd9a469c 17956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97844b15 17957/* end confdefs.h. */
17958
7d9455ce 17959#ifdef HAVE_COMPLEX_H
17960#include <complex.h>
17961#endif
17962#ifdef HAVE_MATH_H
17963#include <math.h>
97844b15 17964#endif
7d9455ce 17965
17966int (*ptr)() = (int (*)())ceilf;
17967
97844b15 17968int
17969main ()
17970{
97844b15 17971 return 0;
17972}
7d9455ce 17973
97844b15 17974_ACEOF
cd9a469c 17975if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17976 gcc_cv_math_func_ceilf=yes
97844b15 17977else
7d9455ce 17978 gcc_cv_math_func_ceilf=no
97844b15 17979fi
cd9a469c 17980rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
97844b15 17982fi
7d9455ce 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
bd647a17 17986
6affa8e1 17987cat >>confdefs.h <<_ACEOF
17988#define HAVE_CEILF 1
17989_ACEOF
7d9455ce 17990
17991 fi
97844b15 17992
97844b15 17993
97844b15 17994
7d9455ce 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 :
cd9a469c 17999 $as_echo_n "(cached) " >&6
4db2deda 18000else
7d9455ce 18001 if test x$gcc_no_link = xyes; then
cd9a469c 18002 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18003fi
cd9a469c 18004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4db2deda 18005/* end confdefs.h. */
18006
7d9455ce 18007#ifdef HAVE_COMPLEX_H
18008#include <complex.h>
4db2deda 18009#endif
7d9455ce 18010#ifdef HAVE_MATH_H
18011#include <math.h>
18012#endif
18013
18014int (*ptr)() = (int (*)())ceil;
18015
4db2deda 18016int
18017main ()
18018{
4db2deda 18019 return 0;
18020}
7d9455ce 18021
4db2deda 18022_ACEOF
cd9a469c 18023if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18024 gcc_cv_math_func_ceil=yes
4db2deda 18025else
7d9455ce 18026 gcc_cv_math_func_ceil=no
4db2deda 18027fi
cd9a469c 18028rm -f core conftest.err conftest.$ac_objext \
18029 conftest$ac_exeext conftest.$ac_ext
4db2deda 18030fi
7d9455ce 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
bd647a17 18034
6affa8e1 18035cat >>confdefs.h <<_ACEOF
18036#define HAVE_CEIL 1
18037_ACEOF
4db2deda 18038
7d9455ce 18039 fi
4db2deda 18040
4db2deda 18041
7d9455ce 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 :
cd9a469c 18047 $as_echo_n "(cached) " >&6
4db2deda 18048else
7d9455ce 18049 if test x$gcc_no_link = xyes; then
cd9a469c 18050 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18051fi
cd9a469c 18052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4db2deda 18053/* end confdefs.h. */
18054
7d9455ce 18055#ifdef HAVE_COMPLEX_H
18056#include <complex.h>
18057#endif
18058#ifdef HAVE_MATH_H
18059#include <math.h>
4db2deda 18060#endif
7d9455ce 18061
18062int (*ptr)() = (int (*)())ceill;
18063
4db2deda 18064int
18065main ()
18066{
4db2deda 18067 return 0;
18068}
7d9455ce 18069
4db2deda 18070_ACEOF
cd9a469c 18071if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18072 gcc_cv_math_func_ceill=yes
4db2deda 18073else
7d9455ce 18074 gcc_cv_math_func_ceill=no
4db2deda 18075fi
cd9a469c 18076rm -f core conftest.err conftest.$ac_objext \
18077 conftest$ac_exeext conftest.$ac_ext
4db2deda 18078fi
7d9455ce 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
bd647a17 18082
6affa8e1 18083cat >>confdefs.h <<_ACEOF
18084#define HAVE_CEILL 1
18085_ACEOF
7d9455ce 18086
18087 fi
4db2deda 18088
8f838781 18089
8f838781 18090
7d9455ce 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 :
cd9a469c 18095 $as_echo_n "(cached) " >&6
8f838781 18096else
7d9455ce 18097 if test x$gcc_no_link = xyes; then
cd9a469c 18098 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18099fi
cd9a469c 18100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 18101/* end confdefs.h. */
18102
7d9455ce 18103#ifdef HAVE_COMPLEX_H
18104#include <complex.h>
8f838781 18105#endif
7d9455ce 18106#ifdef HAVE_MATH_H
18107#include <math.h>
18108#endif
18109
18110int (*ptr)() = (int (*)())copysignf;
18111
8f838781 18112int
18113main ()
18114{
8f838781 18115 return 0;
18116}
7d9455ce 18117
8f838781 18118_ACEOF
cd9a469c 18119if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18120 gcc_cv_math_func_copysignf=yes
8f838781 18121else
7d9455ce 18122 gcc_cv_math_func_copysignf=no
8f838781 18123fi
cd9a469c 18124rm -f core conftest.err conftest.$ac_objext \
18125 conftest$ac_exeext conftest.$ac_ext
8f838781 18126fi
7d9455ce 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
bd647a17 18130
6affa8e1 18131cat >>confdefs.h <<_ACEOF
18132#define HAVE_COPYSIGNF 1
18133_ACEOF
7d9455ce 18134
18135 fi
18136
8f838781 18137
8f838781 18138
8f838781 18139
7d9455ce 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 :
cd9a469c 18143 $as_echo_n "(cached) " >&6
8f838781 18144else
7d9455ce 18145 if test x$gcc_no_link = xyes; then
cd9a469c 18146 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18147fi
cd9a469c 18148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 18149/* end confdefs.h. */
18150
7d9455ce 18151#ifdef HAVE_COMPLEX_H
18152#include <complex.h>
18153#endif
18154#ifdef HAVE_MATH_H
18155#include <math.h>
8f838781 18156#endif
7d9455ce 18157
18158int (*ptr)() = (int (*)())copysign;
18159
8f838781 18160int
18161main ()
18162{
8f838781 18163 return 0;
18164}
7d9455ce 18165
8f838781 18166_ACEOF
cd9a469c 18167if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18168 gcc_cv_math_func_copysign=yes
8f838781 18169else
7d9455ce 18170 gcc_cv_math_func_copysign=no
8f838781 18171fi
cd9a469c 18172rm -f core conftest.err conftest.$ac_objext \
18173 conftest$ac_exeext conftest.$ac_ext
8f838781 18174fi
7d9455ce 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
bd647a17 18178
6affa8e1 18179cat >>confdefs.h <<_ACEOF
18180#define HAVE_COPYSIGN 1
18181_ACEOF
7d9455ce 18182
18183 fi
8f838781 18184
8f838781 18185
8f838781 18186
7d9455ce 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 :
cd9a469c 18191 $as_echo_n "(cached) " >&6
8f838781 18192else
7d9455ce 18193 if test x$gcc_no_link = xyes; then
cd9a469c 18194 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18195fi
cd9a469c 18196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 18197/* end confdefs.h. */
18198
7d9455ce 18199#ifdef HAVE_COMPLEX_H
18200#include <complex.h>
8f838781 18201#endif
7d9455ce 18202#ifdef HAVE_MATH_H
18203#include <math.h>
18204#endif
18205
18206int (*ptr)() = (int (*)())copysignl;
18207
8f838781 18208int
18209main ()
18210{
cd9a469c 18211 return 0;
18212}
7d9455ce 18213
cd9a469c 18214_ACEOF
18215if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18216 gcc_cv_math_func_copysignl=yes
8f838781 18217else
7d9455ce 18218 gcc_cv_math_func_copysignl=no
8f838781 18219fi
cd9a469c 18220rm -f core conftest.err conftest.$ac_objext \
18221 conftest$ac_exeext conftest.$ac_ext
8f838781 18222fi
7d9455ce 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
bd647a17 18226
6affa8e1 18227cat >>confdefs.h <<_ACEOF
18228#define HAVE_COPYSIGNL 1
18229_ACEOF
8f838781 18230
7d9455ce 18231 fi
4db2deda 18232
4db2deda 18233
7d9455ce 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 :
cd9a469c 18239 $as_echo_n "(cached) " >&6
50f0ca0a 18240else
7d9455ce 18241 if test x$gcc_no_link = xyes; then
cd9a469c 18242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18243fi
cd9a469c 18244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50f0ca0a 18245/* end confdefs.h. */
18246
7d9455ce 18247#ifdef HAVE_COMPLEX_H
18248#include <complex.h>
18249#endif
18250#ifdef HAVE_MATH_H
18251#include <math.h>
50f0ca0a 18252#endif
7d9455ce 18253
18254int (*ptr)() = (int (*)())cosf;
18255
50f0ca0a 18256int
18257main ()
18258{
50f0ca0a 18259 return 0;
18260}
7d9455ce 18261
50f0ca0a 18262_ACEOF
cd9a469c 18263if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18264 gcc_cv_math_func_cosf=yes
50f0ca0a 18265else
7d9455ce 18266 gcc_cv_math_func_cosf=no
50f0ca0a 18267fi
cd9a469c 18268rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
50f0ca0a 18270fi
7d9455ce 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
bd647a17 18274
6affa8e1 18275cat >>confdefs.h <<_ACEOF
18276#define HAVE_COSF 1
18277_ACEOF
7d9455ce 18278
18279 fi
50f0ca0a 18280
d213114b 18281
d213114b 18282
7d9455ce 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 :
cd9a469c 18287 $as_echo_n "(cached) " >&6
d213114b 18288else
7d9455ce 18289 if test x$gcc_no_link = xyes; then
cd9a469c 18290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18291fi
cd9a469c 18292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18293/* end confdefs.h. */
18294
7d9455ce 18295#ifdef HAVE_COMPLEX_H
18296#include <complex.h>
d213114b 18297#endif
7d9455ce 18298#ifdef HAVE_MATH_H
18299#include <math.h>
18300#endif
18301
18302int (*ptr)() = (int (*)())cos;
18303
d213114b 18304int
18305main ()
18306{
d213114b 18307 return 0;
18308}
7d9455ce 18309
d213114b 18310_ACEOF
cd9a469c 18311if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18312 gcc_cv_math_func_cos=yes
d213114b 18313else
7d9455ce 18314 gcc_cv_math_func_cos=no
d213114b 18315fi
cd9a469c 18316rm -f core conftest.err conftest.$ac_objext \
18317 conftest$ac_exeext conftest.$ac_ext
d213114b 18318fi
7d9455ce 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
bd647a17 18322
6affa8e1 18323cat >>confdefs.h <<_ACEOF
18324#define HAVE_COS 1
18325_ACEOF
7d9455ce 18326
18327 fi
18328
d213114b 18329
d213114b 18330
d213114b 18331
7d9455ce 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 :
cd9a469c 18335 $as_echo_n "(cached) " >&6
d213114b 18336else
7d9455ce 18337 if test x$gcc_no_link = xyes; then
cd9a469c 18338 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18339fi
cd9a469c 18340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18341/* end confdefs.h. */
18342
7d9455ce 18343#ifdef HAVE_COMPLEX_H
18344#include <complex.h>
18345#endif
18346#ifdef HAVE_MATH_H
18347#include <math.h>
d213114b 18348#endif
7d9455ce 18349
18350int (*ptr)() = (int (*)())cosl;
18351
d213114b 18352int
18353main ()
18354{
d213114b 18355 return 0;
18356}
7d9455ce 18357
d213114b 18358_ACEOF
cd9a469c 18359if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18360 gcc_cv_math_func_cosl=yes
d213114b 18361else
7d9455ce 18362 gcc_cv_math_func_cosl=no
d213114b 18363fi
cd9a469c 18364rm -f core conftest.err conftest.$ac_objext \
18365 conftest$ac_exeext conftest.$ac_ext
d213114b 18366fi
7d9455ce 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
bd647a17 18370
6affa8e1 18371cat >>confdefs.h <<_ACEOF
18372#define HAVE_COSL 1
18373_ACEOF
7d9455ce 18374
18375 fi
d213114b 18376
d213114b 18377
d213114b 18378
7d9455ce 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 :
cd9a469c 18383 $as_echo_n "(cached) " >&6
d213114b 18384else
7d9455ce 18385 if test x$gcc_no_link = xyes; then
cd9a469c 18386 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18387fi
cd9a469c 18388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18389/* end confdefs.h. */
18390
7d9455ce 18391#ifdef HAVE_COMPLEX_H
18392#include <complex.h>
d213114b 18393#endif
7d9455ce 18394#ifdef HAVE_MATH_H
18395#include <math.h>
18396#endif
18397
18398int (*ptr)() = (int (*)())ccosf;
18399
d213114b 18400int
18401main ()
18402{
d213114b 18403 return 0;
18404}
7d9455ce 18405
d213114b 18406_ACEOF
cd9a469c 18407if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18408 gcc_cv_math_func_ccosf=yes
d213114b 18409else
7d9455ce 18410 gcc_cv_math_func_ccosf=no
d213114b 18411fi
cd9a469c 18412rm -f core conftest.err conftest.$ac_objext \
18413 conftest$ac_exeext conftest.$ac_ext
d213114b 18414fi
7d9455ce 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
bd647a17 18418
6affa8e1 18419cat >>confdefs.h <<_ACEOF
18420#define HAVE_CCOSF 1
18421_ACEOF
d213114b 18422
7d9455ce 18423 fi
d213114b 18424
d213114b 18425
7d9455ce 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 :
cd9a469c 18431 $as_echo_n "(cached) " >&6
d213114b 18432else
7d9455ce 18433 if test x$gcc_no_link = xyes; then
cd9a469c 18434 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18435fi
cd9a469c 18436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18437/* end confdefs.h. */
18438
7d9455ce 18439#ifdef HAVE_COMPLEX_H
18440#include <complex.h>
18441#endif
18442#ifdef HAVE_MATH_H
18443#include <math.h>
d213114b 18444#endif
7d9455ce 18445
18446int (*ptr)() = (int (*)())ccos;
18447
d213114b 18448int
18449main ()
18450{
d213114b 18451 return 0;
18452}
7d9455ce 18453
d213114b 18454_ACEOF
cd9a469c 18455if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18456 gcc_cv_math_func_ccos=yes
d213114b 18457else
7d9455ce 18458 gcc_cv_math_func_ccos=no
d213114b 18459fi
cd9a469c 18460rm -f core conftest.err conftest.$ac_objext \
18461 conftest$ac_exeext conftest.$ac_ext
d213114b 18462fi
7d9455ce 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
bd647a17 18466
6affa8e1 18467cat >>confdefs.h <<_ACEOF
18468#define HAVE_CCOS 1
18469_ACEOF
7d9455ce 18470
18471 fi
d213114b 18472
d213114b 18473
d213114b 18474
7d9455ce 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 :
cd9a469c 18479 $as_echo_n "(cached) " >&6
d213114b 18480else
7d9455ce 18481 if test x$gcc_no_link = xyes; then
cd9a469c 18482 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18483fi
cd9a469c 18484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18485/* end confdefs.h. */
18486
7d9455ce 18487#ifdef HAVE_COMPLEX_H
18488#include <complex.h>
d213114b 18489#endif
7d9455ce 18490#ifdef HAVE_MATH_H
18491#include <math.h>
18492#endif
18493
18494int (*ptr)() = (int (*)())ccosl;
18495
d213114b 18496int
18497main ()
18498{
d213114b 18499 return 0;
18500}
7d9455ce 18501
d213114b 18502_ACEOF
cd9a469c 18503if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18504 gcc_cv_math_func_ccosl=yes
d213114b 18505else
7d9455ce 18506 gcc_cv_math_func_ccosl=no
d213114b 18507fi
cd9a469c 18508rm -f core conftest.err conftest.$ac_objext \
18509 conftest$ac_exeext conftest.$ac_ext
d213114b 18510fi
7d9455ce 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
bd647a17 18514
6affa8e1 18515cat >>confdefs.h <<_ACEOF
18516#define HAVE_CCOSL 1
18517_ACEOF
7d9455ce 18518
18519 fi
18520
d213114b 18521
d213114b 18522
d213114b 18523
7d9455ce 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 :
cd9a469c 18527 $as_echo_n "(cached) " >&6
d213114b 18528else
7d9455ce 18529 if test x$gcc_no_link = xyes; then
cd9a469c 18530 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18531fi
cd9a469c 18532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18533/* end confdefs.h. */
18534
7d9455ce 18535#ifdef HAVE_COMPLEX_H
18536#include <complex.h>
18537#endif
18538#ifdef HAVE_MATH_H
18539#include <math.h>
d213114b 18540#endif
7d9455ce 18541
18542int (*ptr)() = (int (*)())coshf;
18543
d213114b 18544int
18545main ()
18546{
d213114b 18547 return 0;
18548}
7d9455ce 18549
d213114b 18550_ACEOF
cd9a469c 18551if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18552 gcc_cv_math_func_coshf=yes
d213114b 18553else
7d9455ce 18554 gcc_cv_math_func_coshf=no
d213114b 18555fi
cd9a469c 18556rm -f core conftest.err conftest.$ac_objext \
18557 conftest$ac_exeext conftest.$ac_ext
d213114b 18558fi
7d9455ce 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
bd647a17 18562
6affa8e1 18563cat >>confdefs.h <<_ACEOF
18564#define HAVE_COSHF 1
18565_ACEOF
7d9455ce 18566
18567 fi
d213114b 18568
d213114b 18569
d213114b 18570
7d9455ce 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 :
cd9a469c 18575 $as_echo_n "(cached) " >&6
d213114b 18576else
7d9455ce 18577 if test x$gcc_no_link = xyes; then
cd9a469c 18578 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18579fi
cd9a469c 18580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18581/* end confdefs.h. */
18582
7d9455ce 18583#ifdef HAVE_COMPLEX_H
18584#include <complex.h>
d213114b 18585#endif
7d9455ce 18586#ifdef HAVE_MATH_H
18587#include <math.h>
18588#endif
18589
18590int (*ptr)() = (int (*)())cosh;
18591
d213114b 18592int
18593main ()
18594{
d213114b 18595 return 0;
18596}
7d9455ce 18597
d213114b 18598_ACEOF
cd9a469c 18599if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18600 gcc_cv_math_func_cosh=yes
d213114b 18601else
7d9455ce 18602 gcc_cv_math_func_cosh=no
d213114b 18603fi
cd9a469c 18604rm -f core conftest.err conftest.$ac_objext \
18605 conftest$ac_exeext conftest.$ac_ext
d213114b 18606fi
7d9455ce 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
bd647a17 18610
6affa8e1 18611cat >>confdefs.h <<_ACEOF
18612#define HAVE_COSH 1
18613_ACEOF
d213114b 18614
7d9455ce 18615 fi
d213114b 18616
d213114b 18617
7d9455ce 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 :
cd9a469c 18623 $as_echo_n "(cached) " >&6
d213114b 18624else
7d9455ce 18625 if test x$gcc_no_link = xyes; then
cd9a469c 18626 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18627fi
cd9a469c 18628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18629/* end confdefs.h. */
18630
7d9455ce 18631#ifdef HAVE_COMPLEX_H
18632#include <complex.h>
18633#endif
18634#ifdef HAVE_MATH_H
18635#include <math.h>
d213114b 18636#endif
7d9455ce 18637
18638int (*ptr)() = (int (*)())coshl;
18639
d213114b 18640int
18641main ()
18642{
d213114b 18643 return 0;
18644}
7d9455ce 18645
d213114b 18646_ACEOF
cd9a469c 18647if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18648 gcc_cv_math_func_coshl=yes
d213114b 18649else
7d9455ce 18650 gcc_cv_math_func_coshl=no
d213114b 18651fi
cd9a469c 18652rm -f core conftest.err conftest.$ac_objext \
18653 conftest$ac_exeext conftest.$ac_ext
d213114b 18654fi
7d9455ce 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
bd647a17 18658
6affa8e1 18659cat >>confdefs.h <<_ACEOF
18660#define HAVE_COSHL 1
18661_ACEOF
7d9455ce 18662
18663 fi
d213114b 18664
d213114b 18665
d213114b 18666
7d9455ce 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 :
cd9a469c 18671 $as_echo_n "(cached) " >&6
d213114b 18672else
7d9455ce 18673 if test x$gcc_no_link = xyes; then
cd9a469c 18674 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18675fi
cd9a469c 18676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18677/* end confdefs.h. */
18678
7d9455ce 18679#ifdef HAVE_COMPLEX_H
18680#include <complex.h>
d213114b 18681#endif
7d9455ce 18682#ifdef HAVE_MATH_H
18683#include <math.h>
18684#endif
18685
18686int (*ptr)() = (int (*)())ccoshf;
18687
d213114b 18688int
18689main ()
18690{
d213114b 18691 return 0;
18692}
7d9455ce 18693
d213114b 18694_ACEOF
cd9a469c 18695if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18696 gcc_cv_math_func_ccoshf=yes
d213114b 18697else
7d9455ce 18698 gcc_cv_math_func_ccoshf=no
d213114b 18699fi
cd9a469c 18700rm -f core conftest.err conftest.$ac_objext \
18701 conftest$ac_exeext conftest.$ac_ext
d213114b 18702fi
7d9455ce 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
bd647a17 18706
6affa8e1 18707cat >>confdefs.h <<_ACEOF
18708#define HAVE_CCOSHF 1
18709_ACEOF
7d9455ce 18710
18711 fi
18712
d213114b 18713
d213114b 18714
d213114b 18715
7d9455ce 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 :
cd9a469c 18719 $as_echo_n "(cached) " >&6
d213114b 18720else
7d9455ce 18721 if test x$gcc_no_link = xyes; then
cd9a469c 18722 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18723fi
cd9a469c 18724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18725/* end confdefs.h. */
18726
7d9455ce 18727#ifdef HAVE_COMPLEX_H
18728#include <complex.h>
18729#endif
18730#ifdef HAVE_MATH_H
18731#include <math.h>
d213114b 18732#endif
7d9455ce 18733
18734int (*ptr)() = (int (*)())ccosh;
18735
d213114b 18736int
18737main ()
18738{
d213114b 18739 return 0;
18740}
7d9455ce 18741
d213114b 18742_ACEOF
cd9a469c 18743if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18744 gcc_cv_math_func_ccosh=yes
d213114b 18745else
7d9455ce 18746 gcc_cv_math_func_ccosh=no
d213114b 18747fi
cd9a469c 18748rm -f core conftest.err conftest.$ac_objext \
18749 conftest$ac_exeext conftest.$ac_ext
d213114b 18750fi
7d9455ce 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
bd647a17 18754
6affa8e1 18755cat >>confdefs.h <<_ACEOF
18756#define HAVE_CCOSH 1
18757_ACEOF
7d9455ce 18758
18759 fi
d213114b 18760
d213114b 18761
d213114b 18762
7d9455ce 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 :
cd9a469c 18767 $as_echo_n "(cached) " >&6
d213114b 18768else
7d9455ce 18769 if test x$gcc_no_link = xyes; then
cd9a469c 18770 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18771fi
cd9a469c 18772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18773/* end confdefs.h. */
18774
7d9455ce 18775#ifdef HAVE_COMPLEX_H
18776#include <complex.h>
d213114b 18777#endif
7d9455ce 18778#ifdef HAVE_MATH_H
18779#include <math.h>
18780#endif
18781
18782int (*ptr)() = (int (*)())ccoshl;
18783
d213114b 18784int
18785main ()
18786{
d213114b 18787 return 0;
18788}
7d9455ce 18789
d213114b 18790_ACEOF
cd9a469c 18791if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18792 gcc_cv_math_func_ccoshl=yes
d213114b 18793else
7d9455ce 18794 gcc_cv_math_func_ccoshl=no
d213114b 18795fi
cd9a469c 18796rm -f core conftest.err conftest.$ac_objext \
18797 conftest$ac_exeext conftest.$ac_ext
d213114b 18798fi
7d9455ce 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
bd647a17 18802
6affa8e1 18803cat >>confdefs.h <<_ACEOF
18804#define HAVE_CCOSHL 1
18805_ACEOF
d213114b 18806
7d9455ce 18807 fi
d213114b 18808
d213114b 18809
7d9455ce 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 :
cd9a469c 18815 $as_echo_n "(cached) " >&6
d213114b 18816else
7d9455ce 18817 if test x$gcc_no_link = xyes; then
cd9a469c 18818 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18819fi
cd9a469c 18820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18821/* end confdefs.h. */
18822
7d9455ce 18823#ifdef HAVE_COMPLEX_H
18824#include <complex.h>
18825#endif
18826#ifdef HAVE_MATH_H
18827#include <math.h>
d213114b 18828#endif
7d9455ce 18829
18830int (*ptr)() = (int (*)())expf;
18831
d213114b 18832int
18833main ()
18834{
d213114b 18835 return 0;
18836}
7d9455ce 18837
d213114b 18838_ACEOF
cd9a469c 18839if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18840 gcc_cv_math_func_expf=yes
d213114b 18841else
7d9455ce 18842 gcc_cv_math_func_expf=no
d213114b 18843fi
cd9a469c 18844rm -f core conftest.err conftest.$ac_objext \
18845 conftest$ac_exeext conftest.$ac_ext
d213114b 18846fi
7d9455ce 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
bd647a17 18850
6affa8e1 18851cat >>confdefs.h <<_ACEOF
18852#define HAVE_EXPF 1
18853_ACEOF
7d9455ce 18854
18855 fi
d213114b 18856
d213114b 18857
d213114b 18858
7d9455ce 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 :
cd9a469c 18863 $as_echo_n "(cached) " >&6
d213114b 18864else
7d9455ce 18865 if test x$gcc_no_link = xyes; then
cd9a469c 18866 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18867fi
cd9a469c 18868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18869/* end confdefs.h. */
18870
7d9455ce 18871#ifdef HAVE_COMPLEX_H
18872#include <complex.h>
d213114b 18873#endif
7d9455ce 18874#ifdef HAVE_MATH_H
18875#include <math.h>
18876#endif
18877
18878int (*ptr)() = (int (*)())exp;
18879
d213114b 18880int
18881main ()
18882{
d213114b 18883 return 0;
18884}
7d9455ce 18885
d213114b 18886_ACEOF
cd9a469c 18887if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18888 gcc_cv_math_func_exp=yes
d213114b 18889else
7d9455ce 18890 gcc_cv_math_func_exp=no
d213114b 18891fi
cd9a469c 18892rm -f core conftest.err conftest.$ac_objext \
18893 conftest$ac_exeext conftest.$ac_ext
d213114b 18894fi
7d9455ce 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
bd647a17 18898
6affa8e1 18899cat >>confdefs.h <<_ACEOF
18900#define HAVE_EXP 1
18901_ACEOF
7d9455ce 18902
18903 fi
18904
d213114b 18905
d213114b 18906
d213114b 18907
7d9455ce 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 :
cd9a469c 18911 $as_echo_n "(cached) " >&6
d213114b 18912else
7d9455ce 18913 if test x$gcc_no_link = xyes; then
cd9a469c 18914 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18915fi
cd9a469c 18916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18917/* end confdefs.h. */
18918
7d9455ce 18919#ifdef HAVE_COMPLEX_H
18920#include <complex.h>
18921#endif
18922#ifdef HAVE_MATH_H
18923#include <math.h>
d213114b 18924#endif
7d9455ce 18925
18926int (*ptr)() = (int (*)())expl;
18927
d213114b 18928int
18929main ()
18930{
d213114b 18931 return 0;
18932}
7d9455ce 18933
d213114b 18934_ACEOF
cd9a469c 18935if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18936 gcc_cv_math_func_expl=yes
d213114b 18937else
7d9455ce 18938 gcc_cv_math_func_expl=no
d213114b 18939fi
cd9a469c 18940rm -f core conftest.err conftest.$ac_objext \
18941 conftest$ac_exeext conftest.$ac_ext
d213114b 18942fi
7d9455ce 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
bd647a17 18946
6affa8e1 18947cat >>confdefs.h <<_ACEOF
18948#define HAVE_EXPL 1
18949_ACEOF
7d9455ce 18950
18951 fi
d213114b 18952
d213114b 18953
d213114b 18954
7d9455ce 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 :
cd9a469c 18959 $as_echo_n "(cached) " >&6
d213114b 18960else
7d9455ce 18961 if test x$gcc_no_link = xyes; then
cd9a469c 18962 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18963fi
cd9a469c 18964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18965/* end confdefs.h. */
18966
7d9455ce 18967#ifdef HAVE_COMPLEX_H
18968#include <complex.h>
d213114b 18969#endif
7d9455ce 18970#ifdef HAVE_MATH_H
18971#include <math.h>
18972#endif
18973
18974int (*ptr)() = (int (*)())cexpf;
18975
d213114b 18976int
18977main ()
18978{
d213114b 18979 return 0;
18980}
7d9455ce 18981
d213114b 18982_ACEOF
cd9a469c 18983if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18984 gcc_cv_math_func_cexpf=yes
d213114b 18985else
7d9455ce 18986 gcc_cv_math_func_cexpf=no
d213114b 18987fi
cd9a469c 18988rm -f core conftest.err conftest.$ac_objext \
18989 conftest$ac_exeext conftest.$ac_ext
d213114b 18990fi
7d9455ce 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
bd647a17 18994
6affa8e1 18995cat >>confdefs.h <<_ACEOF
18996#define HAVE_CEXPF 1
18997_ACEOF
d213114b 18998
7d9455ce 18999 fi
d213114b 19000
d213114b 19001
7d9455ce 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 :
cd9a469c 19007 $as_echo_n "(cached) " >&6
d213114b 19008else
7d9455ce 19009 if test x$gcc_no_link = xyes; then
cd9a469c 19010 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19011fi
cd9a469c 19012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19013/* end confdefs.h. */
19014
7d9455ce 19015#ifdef HAVE_COMPLEX_H
19016#include <complex.h>
19017#endif
19018#ifdef HAVE_MATH_H
19019#include <math.h>
d213114b 19020#endif
7d9455ce 19021
19022int (*ptr)() = (int (*)())cexp;
19023
d213114b 19024int
19025main ()
19026{
d213114b 19027 return 0;
19028}
7d9455ce 19029
d213114b 19030_ACEOF
cd9a469c 19031if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19032 gcc_cv_math_func_cexp=yes
d213114b 19033else
7d9455ce 19034 gcc_cv_math_func_cexp=no
d213114b 19035fi
cd9a469c 19036rm -f core conftest.err conftest.$ac_objext \
19037 conftest$ac_exeext conftest.$ac_ext
d213114b 19038fi
7d9455ce 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
bd647a17 19042
6affa8e1 19043cat >>confdefs.h <<_ACEOF
19044#define HAVE_CEXP 1
19045_ACEOF
7d9455ce 19046
19047 fi
d213114b 19048
d213114b 19049
d213114b 19050
7d9455ce 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 :
cd9a469c 19055 $as_echo_n "(cached) " >&6
d213114b 19056else
7d9455ce 19057 if test x$gcc_no_link = xyes; then
cd9a469c 19058 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19059fi
cd9a469c 19060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19061/* end confdefs.h. */
19062
7d9455ce 19063#ifdef HAVE_COMPLEX_H
19064#include <complex.h>
d213114b 19065#endif
7d9455ce 19066#ifdef HAVE_MATH_H
19067#include <math.h>
19068#endif
19069
19070int (*ptr)() = (int (*)())cexpl;
19071
d213114b 19072int
19073main ()
19074{
d213114b 19075 return 0;
19076}
7d9455ce 19077
d213114b 19078_ACEOF
cd9a469c 19079if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19080 gcc_cv_math_func_cexpl=yes
d213114b 19081else
7d9455ce 19082 gcc_cv_math_func_cexpl=no
d213114b 19083fi
cd9a469c 19084rm -f core conftest.err conftest.$ac_objext \
19085 conftest$ac_exeext conftest.$ac_ext
d213114b 19086fi
7d9455ce 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
bd647a17 19090
6affa8e1 19091cat >>confdefs.h <<_ACEOF
19092#define HAVE_CEXPL 1
19093_ACEOF
7d9455ce 19094
19095 fi
19096
d213114b 19097
d213114b 19098
d213114b 19099
7d9455ce 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 :
cd9a469c 19103 $as_echo_n "(cached) " >&6
d213114b 19104else
7d9455ce 19105 if test x$gcc_no_link = xyes; then
cd9a469c 19106 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19107fi
cd9a469c 19108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19109/* end confdefs.h. */
19110
7d9455ce 19111#ifdef HAVE_COMPLEX_H
19112#include <complex.h>
19113#endif
19114#ifdef HAVE_MATH_H
19115#include <math.h>
d213114b 19116#endif
7d9455ce 19117
19118int (*ptr)() = (int (*)())fabsf;
19119
d213114b 19120int
19121main ()
19122{
d213114b 19123 return 0;
19124}
7d9455ce 19125
d213114b 19126_ACEOF
cd9a469c 19127if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19128 gcc_cv_math_func_fabsf=yes
d213114b 19129else
7d9455ce 19130 gcc_cv_math_func_fabsf=no
d213114b 19131fi
cd9a469c 19132rm -f core conftest.err conftest.$ac_objext \
19133 conftest$ac_exeext conftest.$ac_ext
d213114b 19134fi
7d9455ce 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
bd647a17 19138
6affa8e1 19139cat >>confdefs.h <<_ACEOF
19140#define HAVE_FABSF 1
19141_ACEOF
7d9455ce 19142
19143 fi
d213114b 19144
d213114b 19145
d213114b 19146
7d9455ce 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 :
cd9a469c 19151 $as_echo_n "(cached) " >&6
d213114b 19152else
7d9455ce 19153 if test x$gcc_no_link = xyes; then
cd9a469c 19154 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19155fi
cd9a469c 19156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19157/* end confdefs.h. */
19158
7d9455ce 19159#ifdef HAVE_COMPLEX_H
19160#include <complex.h>
d213114b 19161#endif
7d9455ce 19162#ifdef HAVE_MATH_H
19163#include <math.h>
19164#endif
19165
19166int (*ptr)() = (int (*)())fabs;
19167
d213114b 19168int
19169main ()
19170{
d213114b 19171 return 0;
19172}
7d9455ce 19173
d213114b 19174_ACEOF
cd9a469c 19175if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19176 gcc_cv_math_func_fabs=yes
d213114b 19177else
7d9455ce 19178 gcc_cv_math_func_fabs=no
d213114b 19179fi
cd9a469c 19180rm -f core conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
d213114b 19182fi
7d9455ce 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
bd647a17 19186
6affa8e1 19187cat >>confdefs.h <<_ACEOF
19188#define HAVE_FABS 1
19189_ACEOF
d213114b 19190
7d9455ce 19191 fi
d213114b 19192
d213114b 19193
7d9455ce 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 :
cd9a469c 19199 $as_echo_n "(cached) " >&6
d213114b 19200else
7d9455ce 19201 if test x$gcc_no_link = xyes; then
cd9a469c 19202 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19203fi
cd9a469c 19204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19205/* end confdefs.h. */
19206
7d9455ce 19207#ifdef HAVE_COMPLEX_H
19208#include <complex.h>
19209#endif
19210#ifdef HAVE_MATH_H
19211#include <math.h>
d213114b 19212#endif
7d9455ce 19213
19214int (*ptr)() = (int (*)())fabsl;
19215
d213114b 19216int
19217main ()
19218{
d213114b 19219 return 0;
19220}
7d9455ce 19221
d213114b 19222_ACEOF
cd9a469c 19223if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19224 gcc_cv_math_func_fabsl=yes
d213114b 19225else
7d9455ce 19226 gcc_cv_math_func_fabsl=no
d213114b 19227fi
cd9a469c 19228rm -f core conftest.err conftest.$ac_objext \
19229 conftest$ac_exeext conftest.$ac_ext
d213114b 19230fi
7d9455ce 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
bd647a17 19234
6affa8e1 19235cat >>confdefs.h <<_ACEOF
19236#define HAVE_FABSL 1
19237_ACEOF
7d9455ce 19238
19239 fi
d213114b 19240
d213114b 19241
d213114b 19242
7d9455ce 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 :
cd9a469c 19247 $as_echo_n "(cached) " >&6
d213114b 19248else
7d9455ce 19249 if test x$gcc_no_link = xyes; then
cd9a469c 19250 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19251fi
cd9a469c 19252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19253/* end confdefs.h. */
19254
7d9455ce 19255#ifdef HAVE_COMPLEX_H
19256#include <complex.h>
d213114b 19257#endif
7d9455ce 19258#ifdef HAVE_MATH_H
19259#include <math.h>
19260#endif
19261
19262int (*ptr)() = (int (*)())cabsf;
19263
d213114b 19264int
19265main ()
19266{
d213114b 19267 return 0;
19268}
7d9455ce 19269
d213114b 19270_ACEOF
cd9a469c 19271if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19272 gcc_cv_math_func_cabsf=yes
d213114b 19273else
7d9455ce 19274 gcc_cv_math_func_cabsf=no
d213114b 19275fi
cd9a469c 19276rm -f core conftest.err conftest.$ac_objext \
19277 conftest$ac_exeext conftest.$ac_ext
d213114b 19278fi
7d9455ce 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
bd647a17 19282
6affa8e1 19283cat >>confdefs.h <<_ACEOF
19284#define HAVE_CABSF 1
19285_ACEOF
7d9455ce 19286
19287 fi
19288
d213114b 19289
d213114b 19290
d213114b 19291
7d9455ce 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 :
cd9a469c 19295 $as_echo_n "(cached) " >&6
d213114b 19296else
7d9455ce 19297 if test x$gcc_no_link = xyes; then
cd9a469c 19298 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19299fi
cd9a469c 19300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19301/* end confdefs.h. */
19302
7d9455ce 19303#ifdef HAVE_COMPLEX_H
19304#include <complex.h>
19305#endif
19306#ifdef HAVE_MATH_H
19307#include <math.h>
d213114b 19308#endif
7d9455ce 19309
19310int (*ptr)() = (int (*)())cabs;
19311
d213114b 19312int
19313main ()
19314{
d213114b 19315 return 0;
19316}
7d9455ce 19317
d213114b 19318_ACEOF
cd9a469c 19319if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19320 gcc_cv_math_func_cabs=yes
d213114b 19321else
7d9455ce 19322 gcc_cv_math_func_cabs=no
d213114b 19323fi
cd9a469c 19324rm -f core conftest.err conftest.$ac_objext \
19325 conftest$ac_exeext conftest.$ac_ext
d213114b 19326fi
7d9455ce 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
bd647a17 19330
6affa8e1 19331cat >>confdefs.h <<_ACEOF
19332#define HAVE_CABS 1
19333_ACEOF
7d9455ce 19334
19335 fi
d213114b 19336
d213114b 19337
d213114b 19338
7d9455ce 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 :
cd9a469c 19343 $as_echo_n "(cached) " >&6
d213114b 19344else
7d9455ce 19345 if test x$gcc_no_link = xyes; then
cd9a469c 19346 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19347fi
cd9a469c 19348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19349/* end confdefs.h. */
19350
7d9455ce 19351#ifdef HAVE_COMPLEX_H
19352#include <complex.h>
d213114b 19353#endif
7d9455ce 19354#ifdef HAVE_MATH_H
19355#include <math.h>
19356#endif
19357
19358int (*ptr)() = (int (*)())cabsl;
19359
d213114b 19360int
19361main ()
19362{
d213114b 19363 return 0;
19364}
7d9455ce 19365
d213114b 19366_ACEOF
cd9a469c 19367if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19368 gcc_cv_math_func_cabsl=yes
d213114b 19369else
7d9455ce 19370 gcc_cv_math_func_cabsl=no
d213114b 19371fi
cd9a469c 19372rm -f core conftest.err conftest.$ac_objext \
19373 conftest$ac_exeext conftest.$ac_ext
d213114b 19374fi
7d9455ce 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
bd647a17 19378
6affa8e1 19379cat >>confdefs.h <<_ACEOF
19380#define HAVE_CABSL 1
19381_ACEOF
d213114b 19382
7d9455ce 19383 fi
d213114b 19384
d213114b 19385
7d9455ce 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 :
cd9a469c 19391 $as_echo_n "(cached) " >&6
d213114b 19392else
7d9455ce 19393 if test x$gcc_no_link = xyes; then
cd9a469c 19394 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19395fi
cd9a469c 19396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19397/* end confdefs.h. */
19398
7d9455ce 19399#ifdef HAVE_COMPLEX_H
19400#include <complex.h>
19401#endif
19402#ifdef HAVE_MATH_H
19403#include <math.h>
d213114b 19404#endif
7d9455ce 19405
19406int (*ptr)() = (int (*)())floorf;
19407
d213114b 19408int
19409main ()
19410{
cd9a469c 19411 return 0;
19412}
7d9455ce 19413
cd9a469c 19414_ACEOF
19415if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19416 gcc_cv_math_func_floorf=yes
d213114b 19417else
7d9455ce 19418 gcc_cv_math_func_floorf=no
d213114b 19419fi
cd9a469c 19420rm -f core conftest.err conftest.$ac_objext \
19421 conftest$ac_exeext conftest.$ac_ext
d213114b 19422fi
7d9455ce 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
bd647a17 19426
6affa8e1 19427cat >>confdefs.h <<_ACEOF
19428#define HAVE_FLOORF 1
19429_ACEOF
7d9455ce 19430
19431 fi
d213114b 19432
d213114b 19433
d213114b 19434
7d9455ce 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 :
cd9a469c 19439 $as_echo_n "(cached) " >&6
d213114b 19440else
7d9455ce 19441 if test x$gcc_no_link = xyes; then
cd9a469c 19442 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19443fi
cd9a469c 19444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19445/* end confdefs.h. */
19446
7d9455ce 19447#ifdef HAVE_COMPLEX_H
19448#include <complex.h>
d213114b 19449#endif
7d9455ce 19450#ifdef HAVE_MATH_H
19451#include <math.h>
19452#endif
19453
19454int (*ptr)() = (int (*)())floor;
19455
d213114b 19456int
19457main ()
19458{
d213114b 19459 return 0;
19460}
7d9455ce 19461
d213114b 19462_ACEOF
cd9a469c 19463if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19464 gcc_cv_math_func_floor=yes
d213114b 19465else
7d9455ce 19466 gcc_cv_math_func_floor=no
d213114b 19467fi
cd9a469c 19468rm -f core conftest.err conftest.$ac_objext \
19469 conftest$ac_exeext conftest.$ac_ext
d213114b 19470fi
7d9455ce 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
bd647a17 19474
6affa8e1 19475cat >>confdefs.h <<_ACEOF
19476#define HAVE_FLOOR 1
19477_ACEOF
7d9455ce 19478
19479 fi
19480
d213114b 19481
d213114b 19482
d213114b 19483
7d9455ce 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 :
cd9a469c 19487 $as_echo_n "(cached) " >&6
71d5b534 19488else
7d9455ce 19489 if test x$gcc_no_link = xyes; then
cd9a469c 19490 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d5b534 19491fi
cd9a469c 19492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d5b534 19493/* end confdefs.h. */
19494
7d9455ce 19495#ifdef HAVE_COMPLEX_H
19496#include <complex.h>
19497#endif
19498#ifdef HAVE_MATH_H
19499#include <math.h>
71d5b534 19500#endif
7d9455ce 19501
19502int (*ptr)() = (int (*)())floorl;
19503
71d5b534 19504int
19505main ()
19506{
71d5b534 19507 return 0;
19508}
7d9455ce 19509
71d5b534 19510_ACEOF
cd9a469c 19511if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19512 gcc_cv_math_func_floorl=yes
71d5b534 19513else
7d9455ce 19514 gcc_cv_math_func_floorl=no
71d5b534 19515fi
cd9a469c 19516rm -f core conftest.err conftest.$ac_objext \
19517 conftest$ac_exeext conftest.$ac_ext
71d5b534 19518fi
7d9455ce 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
bd647a17 19522
6affa8e1 19523cat >>confdefs.h <<_ACEOF
19524#define HAVE_FLOORL 1
19525_ACEOF
7d9455ce 19526
19527 fi
71d5b534 19528
71d5b534 19529
71d5b534 19530
7d9455ce 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 :
cd9a469c 19535 $as_echo_n "(cached) " >&6
71d5b534 19536else
7d9455ce 19537 if test x$gcc_no_link = xyes; then
cd9a469c 19538 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d5b534 19539fi
cd9a469c 19540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d5b534 19541/* end confdefs.h. */
19542
7d9455ce 19543#ifdef HAVE_COMPLEX_H
19544#include <complex.h>
71d5b534 19545#endif
7d9455ce 19546#ifdef HAVE_MATH_H
19547#include <math.h>
19548#endif
19549
19550int (*ptr)() = (int (*)())fmodf;
19551
71d5b534 19552int
19553main ()
19554{
71d5b534 19555 return 0;
19556}
7d9455ce 19557
71d5b534 19558_ACEOF
cd9a469c 19559if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19560 gcc_cv_math_func_fmodf=yes
71d5b534 19561else
7d9455ce 19562 gcc_cv_math_func_fmodf=no
71d5b534 19563fi
cd9a469c 19564rm -f core conftest.err conftest.$ac_objext \
19565 conftest$ac_exeext conftest.$ac_ext
71d5b534 19566fi
7d9455ce 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
bd647a17 19570
6affa8e1 19571cat >>confdefs.h <<_ACEOF
19572#define HAVE_FMODF 1
19573_ACEOF
71d5b534 19574
7d9455ce 19575 fi
71d5b534 19576
71d5b534 19577
7d9455ce 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 :
cd9a469c 19583 $as_echo_n "(cached) " >&6
71d5b534 19584else
7d9455ce 19585 if test x$gcc_no_link = xyes; then
cd9a469c 19586 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d5b534 19587fi
cd9a469c 19588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d5b534 19589/* end confdefs.h. */
19590
7d9455ce 19591#ifdef HAVE_COMPLEX_H
19592#include <complex.h>
19593#endif
19594#ifdef HAVE_MATH_H
19595#include <math.h>
71d5b534 19596#endif
7d9455ce 19597
19598int (*ptr)() = (int (*)())fmod;
19599
71d5b534 19600int
19601main ()
19602{
71d5b534 19603 return 0;
19604}
7d9455ce 19605
71d5b534 19606_ACEOF
cd9a469c 19607if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19608 gcc_cv_math_func_fmod=yes
71d5b534 19609else
7d9455ce 19610 gcc_cv_math_func_fmod=no
71d5b534 19611fi
cd9a469c 19612rm -f core conftest.err conftest.$ac_objext \
19613 conftest$ac_exeext conftest.$ac_ext
71d5b534 19614fi
7d9455ce 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
bd647a17 19618
6affa8e1 19619cat >>confdefs.h <<_ACEOF
19620#define HAVE_FMOD 1
19621_ACEOF
7d9455ce 19622
19623 fi
71d5b534 19624
71d5b534 19625
71d5b534 19626
7d9455ce 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 :
cd9a469c 19631 $as_echo_n "(cached) " >&6
d213114b 19632else
7d9455ce 19633 if test x$gcc_no_link = xyes; then
cd9a469c 19634 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19635fi
cd9a469c 19636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19637/* end confdefs.h. */
19638
7d9455ce 19639#ifdef HAVE_COMPLEX_H
19640#include <complex.h>
d213114b 19641#endif
7d9455ce 19642#ifdef HAVE_MATH_H
19643#include <math.h>
19644#endif
19645
19646int (*ptr)() = (int (*)())fmodl;
19647
d213114b 19648int
19649main ()
19650{
d213114b 19651 return 0;
19652}
7d9455ce 19653
d213114b 19654_ACEOF
cd9a469c 19655if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19656 gcc_cv_math_func_fmodl=yes
d213114b 19657else
7d9455ce 19658 gcc_cv_math_func_fmodl=no
d213114b 19659fi
cd9a469c 19660rm -f core conftest.err conftest.$ac_objext \
19661 conftest$ac_exeext conftest.$ac_ext
d213114b 19662fi
7d9455ce 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
bd647a17 19666
6affa8e1 19667cat >>confdefs.h <<_ACEOF
19668#define HAVE_FMODL 1
19669_ACEOF
7d9455ce 19670
19671 fi
19672
d213114b 19673
d213114b 19674
d213114b 19675
7d9455ce 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 :
cd9a469c 19679 $as_echo_n "(cached) " >&6
d213114b 19680else
7d9455ce 19681 if test x$gcc_no_link = xyes; then
cd9a469c 19682 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19683fi
cd9a469c 19684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19685/* end confdefs.h. */
19686
7d9455ce 19687#ifdef HAVE_COMPLEX_H
19688#include <complex.h>
19689#endif
19690#ifdef HAVE_MATH_H
19691#include <math.h>
d213114b 19692#endif
7d9455ce 19693
19694int (*ptr)() = (int (*)())frexpf;
19695
d213114b 19696int
19697main ()
19698{
d213114b 19699 return 0;
19700}
7d9455ce 19701
d213114b 19702_ACEOF
cd9a469c 19703if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19704 gcc_cv_math_func_frexpf=yes
d213114b 19705else
7d9455ce 19706 gcc_cv_math_func_frexpf=no
d213114b 19707fi
cd9a469c 19708rm -f core conftest.err conftest.$ac_objext \
19709 conftest$ac_exeext conftest.$ac_ext
d213114b 19710fi
7d9455ce 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
bd647a17 19714
6affa8e1 19715cat >>confdefs.h <<_ACEOF
19716#define HAVE_FREXPF 1
19717_ACEOF
7d9455ce 19718
19719 fi
d213114b 19720
d213114b 19721
d213114b 19722
7d9455ce 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 :
cd9a469c 19727 $as_echo_n "(cached) " >&6
d213114b 19728else
7d9455ce 19729 if test x$gcc_no_link = xyes; then
cd9a469c 19730 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19731fi
cd9a469c 19732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19733/* end confdefs.h. */
19734
7d9455ce 19735#ifdef HAVE_COMPLEX_H
19736#include <complex.h>
d213114b 19737#endif
7d9455ce 19738#ifdef HAVE_MATH_H
19739#include <math.h>
19740#endif
19741
19742int (*ptr)() = (int (*)())frexp;
19743
d213114b 19744int
19745main ()
19746{
d213114b 19747 return 0;
19748}
7d9455ce 19749
d213114b 19750_ACEOF
cd9a469c 19751if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19752 gcc_cv_math_func_frexp=yes
d213114b 19753else
7d9455ce 19754 gcc_cv_math_func_frexp=no
d213114b 19755fi
cd9a469c 19756rm -f core conftest.err conftest.$ac_objext \
19757 conftest$ac_exeext conftest.$ac_ext
d213114b 19758fi
7d9455ce 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
bd647a17 19762
6affa8e1 19763cat >>confdefs.h <<_ACEOF
19764#define HAVE_FREXP 1
19765_ACEOF
d213114b 19766
7d9455ce 19767 fi
d213114b 19768
d213114b 19769
7d9455ce 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 :
cd9a469c 19775 $as_echo_n "(cached) " >&6
d213114b 19776else
7d9455ce 19777 if test x$gcc_no_link = xyes; then
cd9a469c 19778 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19779fi
cd9a469c 19780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19781/* end confdefs.h. */
19782
7d9455ce 19783#ifdef HAVE_COMPLEX_H
19784#include <complex.h>
19785#endif
19786#ifdef HAVE_MATH_H
19787#include <math.h>
d213114b 19788#endif
7d9455ce 19789
19790int (*ptr)() = (int (*)())frexpl;
19791
d213114b 19792int
19793main ()
19794{
d213114b 19795 return 0;
19796}
7d9455ce 19797
d213114b 19798_ACEOF
cd9a469c 19799if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19800 gcc_cv_math_func_frexpl=yes
d213114b 19801else
7d9455ce 19802 gcc_cv_math_func_frexpl=no
d213114b 19803fi
cd9a469c 19804rm -f core conftest.err conftest.$ac_objext \
19805 conftest$ac_exeext conftest.$ac_ext
d213114b 19806fi
7d9455ce 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
bd647a17 19810
6affa8e1 19811cat >>confdefs.h <<_ACEOF
19812#define HAVE_FREXPL 1
19813_ACEOF
7d9455ce 19814
19815 fi
d213114b 19816
d213114b 19817
d213114b 19818
7d9455ce 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 :
cd9a469c 19823 $as_echo_n "(cached) " >&6
d213114b 19824else
7d9455ce 19825 if test x$gcc_no_link = xyes; then
cd9a469c 19826 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19827fi
cd9a469c 19828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19829/* end confdefs.h. */
19830
7d9455ce 19831#ifdef HAVE_COMPLEX_H
19832#include <complex.h>
d213114b 19833#endif
7d9455ce 19834#ifdef HAVE_MATH_H
19835#include <math.h>
19836#endif
19837
19838int (*ptr)() = (int (*)())hypotf;
19839
d213114b 19840int
19841main ()
19842{
d213114b 19843 return 0;
19844}
7d9455ce 19845
d213114b 19846_ACEOF
cd9a469c 19847if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19848 gcc_cv_math_func_hypotf=yes
d213114b 19849else
7d9455ce 19850 gcc_cv_math_func_hypotf=no
d213114b 19851fi
cd9a469c 19852rm -f core conftest.err conftest.$ac_objext \
19853 conftest$ac_exeext conftest.$ac_ext
d213114b 19854fi
7d9455ce 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
bd647a17 19858
6affa8e1 19859cat >>confdefs.h <<_ACEOF
19860#define HAVE_HYPOTF 1
19861_ACEOF
7d9455ce 19862
19863 fi
19864
d213114b 19865
d213114b 19866
d213114b 19867
7d9455ce 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 :
cd9a469c 19871 $as_echo_n "(cached) " >&6
d213114b 19872else
7d9455ce 19873 if test x$gcc_no_link = xyes; then
cd9a469c 19874 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19875fi
cd9a469c 19876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19877/* end confdefs.h. */
19878
7d9455ce 19879#ifdef HAVE_COMPLEX_H
19880#include <complex.h>
19881#endif
19882#ifdef HAVE_MATH_H
19883#include <math.h>
d213114b 19884#endif
7d9455ce 19885
19886int (*ptr)() = (int (*)())hypot;
19887
d213114b 19888int
19889main ()
19890{
d213114b 19891 return 0;
19892}
7d9455ce 19893
d213114b 19894_ACEOF
cd9a469c 19895if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19896 gcc_cv_math_func_hypot=yes
d213114b 19897else
7d9455ce 19898 gcc_cv_math_func_hypot=no
d213114b 19899fi
cd9a469c 19900rm -f core conftest.err conftest.$ac_objext \
19901 conftest$ac_exeext conftest.$ac_ext
d213114b 19902fi
7d9455ce 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
bd647a17 19906
6affa8e1 19907cat >>confdefs.h <<_ACEOF
19908#define HAVE_HYPOT 1
19909_ACEOF
7d9455ce 19910
19911 fi
d213114b 19912
d213114b 19913
d213114b 19914
7d9455ce 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 :
cd9a469c 19919 $as_echo_n "(cached) " >&6
71d90ac4 19920else
7d9455ce 19921 if test x$gcc_no_link = xyes; then
cd9a469c 19922 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d90ac4 19923fi
cd9a469c 19924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d90ac4 19925/* end confdefs.h. */
19926
7d9455ce 19927#ifdef HAVE_COMPLEX_H
19928#include <complex.h>
71d90ac4 19929#endif
7d9455ce 19930#ifdef HAVE_MATH_H
19931#include <math.h>
19932#endif
19933
19934int (*ptr)() = (int (*)())hypotl;
19935
71d90ac4 19936int
19937main ()
19938{
71d90ac4 19939 return 0;
19940}
7d9455ce 19941
71d90ac4 19942_ACEOF
cd9a469c 19943if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19944 gcc_cv_math_func_hypotl=yes
71d90ac4 19945else
7d9455ce 19946 gcc_cv_math_func_hypotl=no
71d90ac4 19947fi
cd9a469c 19948rm -f core conftest.err conftest.$ac_objext \
19949 conftest$ac_exeext conftest.$ac_ext
71d90ac4 19950fi
7d9455ce 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
bd647a17 19954
6affa8e1 19955cat >>confdefs.h <<_ACEOF
19956#define HAVE_HYPOTL 1
19957_ACEOF
71d90ac4 19958
7d9455ce 19959 fi
71d90ac4 19960
71d90ac4 19961
7d9455ce 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 :
cd9a469c 19967 $as_echo_n "(cached) " >&6
71d90ac4 19968else
7d9455ce 19969 if test x$gcc_no_link = xyes; then
cd9a469c 19970 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d90ac4 19971fi
cd9a469c 19972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d90ac4 19973/* end confdefs.h. */
19974
7d9455ce 19975#ifdef HAVE_COMPLEX_H
19976#include <complex.h>
19977#endif
19978#ifdef HAVE_MATH_H
19979#include <math.h>
71d90ac4 19980#endif
7d9455ce 19981
19982int (*ptr)() = (int (*)())ldexpf;
19983
71d90ac4 19984int
19985main ()
19986{
71d90ac4 19987 return 0;
19988}
7d9455ce 19989
71d90ac4 19990_ACEOF
cd9a469c 19991if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19992 gcc_cv_math_func_ldexpf=yes
71d90ac4 19993else
7d9455ce 19994 gcc_cv_math_func_ldexpf=no
71d90ac4 19995fi
cd9a469c 19996rm -f core conftest.err conftest.$ac_objext \
19997 conftest$ac_exeext conftest.$ac_ext
71d90ac4 19998fi
7d9455ce 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
bd647a17 20002
6affa8e1 20003cat >>confdefs.h <<_ACEOF
20004#define HAVE_LDEXPF 1
20005_ACEOF
7d9455ce 20006
20007 fi
71d90ac4 20008
71d90ac4 20009
71d90ac4 20010
7d9455ce 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 :
cd9a469c 20015 $as_echo_n "(cached) " >&6
71d90ac4 20016else
7d9455ce 20017 if test x$gcc_no_link = xyes; then
cd9a469c 20018 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d90ac4 20019fi
cd9a469c 20020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d90ac4 20021/* end confdefs.h. */
20022
7d9455ce 20023#ifdef HAVE_COMPLEX_H
20024#include <complex.h>
71d90ac4 20025#endif
7d9455ce 20026#ifdef HAVE_MATH_H
20027#include <math.h>
20028#endif
20029
20030int (*ptr)() = (int (*)())ldexp;
20031
71d90ac4 20032int
20033main ()
20034{
71d90ac4 20035 return 0;
20036}
7d9455ce 20037
71d90ac4 20038_ACEOF
cd9a469c 20039if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20040 gcc_cv_math_func_ldexp=yes
71d90ac4 20041else
7d9455ce 20042 gcc_cv_math_func_ldexp=no
71d90ac4 20043fi
cd9a469c 20044rm -f core conftest.err conftest.$ac_objext \
20045 conftest$ac_exeext conftest.$ac_ext
71d90ac4 20046fi
7d9455ce 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
bd647a17 20050
6affa8e1 20051cat >>confdefs.h <<_ACEOF
20052#define HAVE_LDEXP 1
20053_ACEOF
7d9455ce 20054
20055 fi
20056
71d90ac4 20057
71d90ac4 20058
71d90ac4 20059
7d9455ce 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 :
cd9a469c 20063 $as_echo_n "(cached) " >&6
d213114b 20064else
7d9455ce 20065 if test x$gcc_no_link = xyes; then
cd9a469c 20066 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20067fi
cd9a469c 20068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20069/* end confdefs.h. */
20070
7d9455ce 20071#ifdef HAVE_COMPLEX_H
20072#include <complex.h>
20073#endif
20074#ifdef HAVE_MATH_H
20075#include <math.h>
d213114b 20076#endif
7d9455ce 20077
20078int (*ptr)() = (int (*)())ldexpl;
20079
d213114b 20080int
20081main ()
20082{
d213114b 20083 return 0;
20084}
7d9455ce 20085
d213114b 20086_ACEOF
cd9a469c 20087if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20088 gcc_cv_math_func_ldexpl=yes
d213114b 20089else
7d9455ce 20090 gcc_cv_math_func_ldexpl=no
d213114b 20091fi
cd9a469c 20092rm -f core conftest.err conftest.$ac_objext \
20093 conftest$ac_exeext conftest.$ac_ext
d213114b 20094fi
7d9455ce 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
bd647a17 20098
6affa8e1 20099cat >>confdefs.h <<_ACEOF
20100#define HAVE_LDEXPL 1
20101_ACEOF
7d9455ce 20102
20103 fi
d213114b 20104
d213114b 20105
d213114b 20106
7d9455ce 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 :
cd9a469c 20111 $as_echo_n "(cached) " >&6
d213114b 20112else
7d9455ce 20113 if test x$gcc_no_link = xyes; then
cd9a469c 20114 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20115fi
cd9a469c 20116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20117/* end confdefs.h. */
20118
7d9455ce 20119#ifdef HAVE_COMPLEX_H
20120#include <complex.h>
d213114b 20121#endif
7d9455ce 20122#ifdef HAVE_MATH_H
20123#include <math.h>
20124#endif
20125
20126int (*ptr)() = (int (*)())logf;
20127
d213114b 20128int
20129main ()
20130{
d213114b 20131 return 0;
20132}
7d9455ce 20133
d213114b 20134_ACEOF
cd9a469c 20135if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20136 gcc_cv_math_func_logf=yes
d213114b 20137else
7d9455ce 20138 gcc_cv_math_func_logf=no
d213114b 20139fi
cd9a469c 20140rm -f core conftest.err conftest.$ac_objext \
20141 conftest$ac_exeext conftest.$ac_ext
d213114b 20142fi
7d9455ce 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
bd647a17 20146
6affa8e1 20147cat >>confdefs.h <<_ACEOF
20148#define HAVE_LOGF 1
20149_ACEOF
d213114b 20150
7d9455ce 20151 fi
d213114b 20152
d213114b 20153
7d9455ce 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 :
cd9a469c 20159 $as_echo_n "(cached) " >&6
d213114b 20160else
7d9455ce 20161 if test x$gcc_no_link = xyes; then
cd9a469c 20162 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20163fi
cd9a469c 20164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20165/* end confdefs.h. */
20166
7d9455ce 20167#ifdef HAVE_COMPLEX_H
20168#include <complex.h>
20169#endif
20170#ifdef HAVE_MATH_H
20171#include <math.h>
d213114b 20172#endif
7d9455ce 20173
20174int (*ptr)() = (int (*)())log;
20175
d213114b 20176int
20177main ()
20178{
d213114b 20179 return 0;
20180}
7d9455ce 20181
d213114b 20182_ACEOF
cd9a469c 20183if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20184 gcc_cv_math_func_log=yes
d213114b 20185else
7d9455ce 20186 gcc_cv_math_func_log=no
d213114b 20187fi
cd9a469c 20188rm -f core conftest.err conftest.$ac_objext \
20189 conftest$ac_exeext conftest.$ac_ext
d213114b 20190fi
7d9455ce 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
bd647a17 20194
6affa8e1 20195cat >>confdefs.h <<_ACEOF
20196#define HAVE_LOG 1
20197_ACEOF
7d9455ce 20198
20199 fi
d213114b 20200
d213114b 20201
d213114b 20202
7d9455ce 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 :
cd9a469c 20207 $as_echo_n "(cached) " >&6
d213114b 20208else
7d9455ce 20209 if test x$gcc_no_link = xyes; then
cd9a469c 20210 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20211fi
cd9a469c 20212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20213/* end confdefs.h. */
20214
7d9455ce 20215#ifdef HAVE_COMPLEX_H
20216#include <complex.h>
d213114b 20217#endif
7d9455ce 20218#ifdef HAVE_MATH_H
20219#include <math.h>
20220#endif
20221
20222int (*ptr)() = (int (*)())logl;
20223
d213114b 20224int
20225main ()
20226{
d213114b 20227 return 0;
20228}
7d9455ce 20229
d213114b 20230_ACEOF
cd9a469c 20231if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20232 gcc_cv_math_func_logl=yes
d213114b 20233else
7d9455ce 20234 gcc_cv_math_func_logl=no
d213114b 20235fi
cd9a469c 20236rm -f core conftest.err conftest.$ac_objext \
20237 conftest$ac_exeext conftest.$ac_ext
d213114b 20238fi
7d9455ce 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
bd647a17 20242
6affa8e1 20243cat >>confdefs.h <<_ACEOF
20244#define HAVE_LOGL 1
20245_ACEOF
7d9455ce 20246
20247 fi
20248
d213114b 20249
d213114b 20250
d213114b 20251
7d9455ce 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 :
cd9a469c 20255 $as_echo_n "(cached) " >&6
d213114b 20256else
7d9455ce 20257 if test x$gcc_no_link = xyes; then
cd9a469c 20258 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20259fi
cd9a469c 20260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20261/* end confdefs.h. */
20262
7d9455ce 20263#ifdef HAVE_COMPLEX_H
20264#include <complex.h>
20265#endif
20266#ifdef HAVE_MATH_H
20267#include <math.h>
d213114b 20268#endif
7d9455ce 20269
20270int (*ptr)() = (int (*)())clogf;
20271
d213114b 20272int
20273main ()
20274{
d213114b 20275 return 0;
20276}
7d9455ce 20277
d213114b 20278_ACEOF
cd9a469c 20279if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20280 gcc_cv_math_func_clogf=yes
d213114b 20281else
7d9455ce 20282 gcc_cv_math_func_clogf=no
d213114b 20283fi
cd9a469c 20284rm -f core conftest.err conftest.$ac_objext \
20285 conftest$ac_exeext conftest.$ac_ext
d213114b 20286fi
7d9455ce 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
bd647a17 20290
6affa8e1 20291cat >>confdefs.h <<_ACEOF
20292#define HAVE_CLOGF 1
20293_ACEOF
7d9455ce 20294
20295 fi
d213114b 20296
d213114b 20297
d213114b 20298
7d9455ce 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 :
cd9a469c 20303 $as_echo_n "(cached) " >&6
d213114b 20304else
7d9455ce 20305 if test x$gcc_no_link = xyes; then
cd9a469c 20306 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20307fi
cd9a469c 20308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20309/* end confdefs.h. */
20310
7d9455ce 20311#ifdef HAVE_COMPLEX_H
20312#include <complex.h>
d213114b 20313#endif
7d9455ce 20314#ifdef HAVE_MATH_H
20315#include <math.h>
20316#endif
20317
20318int (*ptr)() = (int (*)())clog;
20319
d213114b 20320int
20321main ()
20322{
d213114b 20323 return 0;
20324}
7d9455ce 20325
d213114b 20326_ACEOF
cd9a469c 20327if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20328 gcc_cv_math_func_clog=yes
d213114b 20329else
7d9455ce 20330 gcc_cv_math_func_clog=no
d213114b 20331fi
cd9a469c 20332rm -f core conftest.err conftest.$ac_objext \
20333 conftest$ac_exeext conftest.$ac_ext
d213114b 20334fi
7d9455ce 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
bd647a17 20338
6affa8e1 20339cat >>confdefs.h <<_ACEOF
20340#define HAVE_CLOG 1
20341_ACEOF
d213114b 20342
7d9455ce 20343 fi
d213114b 20344
d213114b 20345
7d9455ce 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 :
cd9a469c 20351 $as_echo_n "(cached) " >&6
d213114b 20352else
7d9455ce 20353 if test x$gcc_no_link = xyes; then
cd9a469c 20354 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20355fi
cd9a469c 20356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20357/* end confdefs.h. */
20358
7d9455ce 20359#ifdef HAVE_COMPLEX_H
20360#include <complex.h>
20361#endif
20362#ifdef HAVE_MATH_H
20363#include <math.h>
d213114b 20364#endif
7d9455ce 20365
20366int (*ptr)() = (int (*)())clogl;
20367
d213114b 20368int
20369main ()
20370{
d213114b 20371 return 0;
20372}
7d9455ce 20373
d213114b 20374_ACEOF
cd9a469c 20375if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20376 gcc_cv_math_func_clogl=yes
d213114b 20377else
7d9455ce 20378 gcc_cv_math_func_clogl=no
d213114b 20379fi
cd9a469c 20380rm -f core conftest.err conftest.$ac_objext \
20381 conftest$ac_exeext conftest.$ac_ext
d213114b 20382fi
7d9455ce 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
bd647a17 20386
6affa8e1 20387cat >>confdefs.h <<_ACEOF
20388#define HAVE_CLOGL 1
20389_ACEOF
7d9455ce 20390
20391 fi
d213114b 20392
d213114b 20393
d213114b 20394
7d9455ce 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 :
cd9a469c 20399 $as_echo_n "(cached) " >&6
d213114b 20400else
7d9455ce 20401 if test x$gcc_no_link = xyes; then
cd9a469c 20402 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20403fi
cd9a469c 20404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20405/* end confdefs.h. */
20406
7d9455ce 20407#ifdef HAVE_COMPLEX_H
20408#include <complex.h>
d213114b 20409#endif
7d9455ce 20410#ifdef HAVE_MATH_H
20411#include <math.h>
20412#endif
20413
20414int (*ptr)() = (int (*)())log10f;
20415
d213114b 20416int
20417main ()
20418{
d213114b 20419 return 0;
20420}
7d9455ce 20421
d213114b 20422_ACEOF
cd9a469c 20423if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20424 gcc_cv_math_func_log10f=yes
d213114b 20425else
7d9455ce 20426 gcc_cv_math_func_log10f=no
d213114b 20427fi
cd9a469c 20428rm -f core conftest.err conftest.$ac_objext \
20429 conftest$ac_exeext conftest.$ac_ext
d213114b 20430fi
7d9455ce 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
bd647a17 20434
6affa8e1 20435cat >>confdefs.h <<_ACEOF
20436#define HAVE_LOG10F 1
20437_ACEOF
7d9455ce 20438
20439 fi
20440
d213114b 20441
d213114b 20442
d213114b 20443
7d9455ce 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 :
cd9a469c 20447 $as_echo_n "(cached) " >&6
d213114b 20448else
7d9455ce 20449 if test x$gcc_no_link = xyes; then
cd9a469c 20450 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20451fi
cd9a469c 20452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20453/* end confdefs.h. */
20454
7d9455ce 20455#ifdef HAVE_COMPLEX_H
20456#include <complex.h>
20457#endif
20458#ifdef HAVE_MATH_H
20459#include <math.h>
d213114b 20460#endif
7d9455ce 20461
20462int (*ptr)() = (int (*)())log10;
20463
d213114b 20464int
20465main ()
20466{
d213114b 20467 return 0;
20468}
7d9455ce 20469
d213114b 20470_ACEOF
cd9a469c 20471if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20472 gcc_cv_math_func_log10=yes
d213114b 20473else
7d9455ce 20474 gcc_cv_math_func_log10=no
d213114b 20475fi
cd9a469c 20476rm -f core conftest.err conftest.$ac_objext \
20477 conftest$ac_exeext conftest.$ac_ext
d213114b 20478fi
7d9455ce 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
bd647a17 20482
6affa8e1 20483cat >>confdefs.h <<_ACEOF
20484#define HAVE_LOG10 1
20485_ACEOF
7d9455ce 20486
20487 fi
d213114b 20488
d213114b 20489
d213114b 20490
7d9455ce 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 :
cd9a469c 20495 $as_echo_n "(cached) " >&6
d213114b 20496else
7d9455ce 20497 if test x$gcc_no_link = xyes; then
cd9a469c 20498 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20499fi
cd9a469c 20500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20501/* end confdefs.h. */
20502
7d9455ce 20503#ifdef HAVE_COMPLEX_H
20504#include <complex.h>
d213114b 20505#endif
7d9455ce 20506#ifdef HAVE_MATH_H
20507#include <math.h>
20508#endif
20509
20510int (*ptr)() = (int (*)())log10l;
20511
d213114b 20512int
20513main ()
20514{
d213114b 20515 return 0;
20516}
7d9455ce 20517
d213114b 20518_ACEOF
cd9a469c 20519if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20520 gcc_cv_math_func_log10l=yes
d213114b 20521else
7d9455ce 20522 gcc_cv_math_func_log10l=no
d213114b 20523fi
cd9a469c 20524rm -f core conftest.err conftest.$ac_objext \
20525 conftest$ac_exeext conftest.$ac_ext
d213114b 20526fi
7d9455ce 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
bd647a17 20530
6affa8e1 20531cat >>confdefs.h <<_ACEOF
20532#define HAVE_LOG10L 1
20533_ACEOF
d213114b 20534
7d9455ce 20535 fi
d213114b 20536
d213114b 20537
7d9455ce 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 :
cd9a469c 20543 $as_echo_n "(cached) " >&6
d213114b 20544else
7d9455ce 20545 if test x$gcc_no_link = xyes; then
cd9a469c 20546 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20547fi
cd9a469c 20548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20549/* end confdefs.h. */
20550
7d9455ce 20551#ifdef HAVE_COMPLEX_H
20552#include <complex.h>
20553#endif
20554#ifdef HAVE_MATH_H
20555#include <math.h>
d213114b 20556#endif
7d9455ce 20557
20558int (*ptr)() = (int (*)())clog10f;
20559
d213114b 20560int
20561main ()
20562{
d213114b 20563 return 0;
20564}
7d9455ce 20565
d213114b 20566_ACEOF
cd9a469c 20567if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20568 gcc_cv_math_func_clog10f=yes
d213114b 20569else
7d9455ce 20570 gcc_cv_math_func_clog10f=no
d213114b 20571fi
cd9a469c 20572rm -f core conftest.err conftest.$ac_objext \
20573 conftest$ac_exeext conftest.$ac_ext
d213114b 20574fi
7d9455ce 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
bd647a17 20578
6affa8e1 20579cat >>confdefs.h <<_ACEOF
20580#define HAVE_CLOG10F 1
20581_ACEOF
7d9455ce 20582
20583 fi
d213114b 20584
d213114b 20585
d213114b 20586
7d9455ce 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 :
cd9a469c 20591 $as_echo_n "(cached) " >&6
d213114b 20592else
7d9455ce 20593 if test x$gcc_no_link = xyes; then
cd9a469c 20594 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20595fi
cd9a469c 20596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20597/* end confdefs.h. */
20598
7d9455ce 20599#ifdef HAVE_COMPLEX_H
20600#include <complex.h>
d213114b 20601#endif
7d9455ce 20602#ifdef HAVE_MATH_H
20603#include <math.h>
20604#endif
20605
20606int (*ptr)() = (int (*)())clog10;
20607
d213114b 20608int
20609main ()
20610{
cd9a469c 20611 return 0;
20612}
7d9455ce 20613
cd9a469c 20614_ACEOF
20615if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20616 gcc_cv_math_func_clog10=yes
d213114b 20617else
7d9455ce 20618 gcc_cv_math_func_clog10=no
d213114b 20619fi
cd9a469c 20620rm -f core conftest.err conftest.$ac_objext \
20621 conftest$ac_exeext conftest.$ac_ext
d213114b 20622fi
7d9455ce 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
bd647a17 20626
6affa8e1 20627cat >>confdefs.h <<_ACEOF
20628#define HAVE_CLOG10 1
20629_ACEOF
7d9455ce 20630
20631 fi
20632
d213114b 20633
d213114b 20634
d213114b 20635
7d9455ce 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 :
cd9a469c 20639 $as_echo_n "(cached) " >&6
d213114b 20640else
7d9455ce 20641 if test x$gcc_no_link = xyes; then
cd9a469c 20642 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20643fi
cd9a469c 20644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20645/* end confdefs.h. */
20646
7d9455ce 20647#ifdef HAVE_COMPLEX_H
20648#include <complex.h>
20649#endif
20650#ifdef HAVE_MATH_H
20651#include <math.h>
d213114b 20652#endif
7d9455ce 20653
20654int (*ptr)() = (int (*)())clog10l;
20655
d213114b 20656int
20657main ()
20658{
d213114b 20659 return 0;
20660}
7d9455ce 20661
d213114b 20662_ACEOF
cd9a469c 20663if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20664 gcc_cv_math_func_clog10l=yes
d213114b 20665else
7d9455ce 20666 gcc_cv_math_func_clog10l=no
d213114b 20667fi
cd9a469c 20668rm -f core conftest.err conftest.$ac_objext \
20669 conftest$ac_exeext conftest.$ac_ext
d213114b 20670fi
7d9455ce 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
bd647a17 20674
6affa8e1 20675cat >>confdefs.h <<_ACEOF
20676#define HAVE_CLOG10L 1
20677_ACEOF
7d9455ce 20678
20679 fi
d213114b 20680
d213114b 20681
d213114b 20682
7d9455ce 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 :
cd9a469c 20687 $as_echo_n "(cached) " >&6
d213114b 20688else
7d9455ce 20689 if test x$gcc_no_link = xyes; then
cd9a469c 20690 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20691fi
cd9a469c 20692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20693/* end confdefs.h. */
20694
7d9455ce 20695#ifdef HAVE_COMPLEX_H
20696#include <complex.h>
d213114b 20697#endif
7d9455ce 20698#ifdef HAVE_MATH_H
20699#include <math.h>
20700#endif
20701
20702int (*ptr)() = (int (*)())nextafterf;
20703
d213114b 20704int
20705main ()
20706{
d213114b 20707 return 0;
20708}
7d9455ce 20709
d213114b 20710_ACEOF
cd9a469c 20711if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20712 gcc_cv_math_func_nextafterf=yes
d213114b 20713else
7d9455ce 20714 gcc_cv_math_func_nextafterf=no
d213114b 20715fi
cd9a469c 20716rm -f core conftest.err conftest.$ac_objext \
20717 conftest$ac_exeext conftest.$ac_ext
d213114b 20718fi
7d9455ce 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
bd647a17 20722
6affa8e1 20723cat >>confdefs.h <<_ACEOF
20724#define HAVE_NEXTAFTERF 1
20725_ACEOF
d213114b 20726
7d9455ce 20727 fi
d213114b 20728
d213114b 20729
7d9455ce 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 :
cd9a469c 20735 $as_echo_n "(cached) " >&6
d213114b 20736else
7d9455ce 20737 if test x$gcc_no_link = xyes; then
cd9a469c 20738 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20739fi
cd9a469c 20740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20741/* end confdefs.h. */
20742
7d9455ce 20743#ifdef HAVE_COMPLEX_H
20744#include <complex.h>
20745#endif
20746#ifdef HAVE_MATH_H
20747#include <math.h>
d213114b 20748#endif
7d9455ce 20749
20750int (*ptr)() = (int (*)())nextafter;
20751
d213114b 20752int
20753main ()
20754{
d213114b 20755 return 0;
20756}
7d9455ce 20757
d213114b 20758_ACEOF
cd9a469c 20759if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20760 gcc_cv_math_func_nextafter=yes
d213114b 20761else
7d9455ce 20762 gcc_cv_math_func_nextafter=no
d213114b 20763fi
cd9a469c 20764rm -f core conftest.err conftest.$ac_objext \
20765 conftest$ac_exeext conftest.$ac_ext
d213114b 20766fi
7d9455ce 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
bd647a17 20770
6affa8e1 20771cat >>confdefs.h <<_ACEOF
20772#define HAVE_NEXTAFTER 1
20773_ACEOF
7d9455ce 20774
20775 fi
d213114b 20776
d213114b 20777
d213114b 20778
7d9455ce 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 :
cd9a469c 20783 $as_echo_n "(cached) " >&6
d213114b 20784else
7d9455ce 20785 if test x$gcc_no_link = xyes; then
cd9a469c 20786 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20787fi
cd9a469c 20788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20789/* end confdefs.h. */
20790
7d9455ce 20791#ifdef HAVE_COMPLEX_H
20792#include <complex.h>
d213114b 20793#endif
7d9455ce 20794#ifdef HAVE_MATH_H
20795#include <math.h>
20796#endif
20797
20798int (*ptr)() = (int (*)())nextafterl;
20799
d213114b 20800int
20801main ()
20802{
d213114b 20803 return 0;
20804}
7d9455ce 20805
d213114b 20806_ACEOF
cd9a469c 20807if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20808 gcc_cv_math_func_nextafterl=yes
d213114b 20809else
7d9455ce 20810 gcc_cv_math_func_nextafterl=no
d213114b 20811fi
cd9a469c 20812rm -f core conftest.err conftest.$ac_objext \
20813 conftest$ac_exeext conftest.$ac_ext
d213114b 20814fi
7d9455ce 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
bd647a17 20818
6affa8e1 20819cat >>confdefs.h <<_ACEOF
20820#define HAVE_NEXTAFTERL 1
20821_ACEOF
7d9455ce 20822
20823 fi
20824
d213114b 20825
d213114b 20826
d213114b 20827
7d9455ce 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 :
cd9a469c 20831 $as_echo_n "(cached) " >&6
d213114b 20832else
7d9455ce 20833 if test x$gcc_no_link = xyes; then
cd9a469c 20834 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20835fi
cd9a469c 20836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20837/* end confdefs.h. */
20838
7d9455ce 20839#ifdef HAVE_COMPLEX_H
20840#include <complex.h>
20841#endif
20842#ifdef HAVE_MATH_H
20843#include <math.h>
d213114b 20844#endif
7d9455ce 20845
20846int (*ptr)() = (int (*)())powf;
20847
d213114b 20848int
20849main ()
20850{
d213114b 20851 return 0;
20852}
7d9455ce 20853
d213114b 20854_ACEOF
cd9a469c 20855if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20856 gcc_cv_math_func_powf=yes
d213114b 20857else
7d9455ce 20858 gcc_cv_math_func_powf=no
d213114b 20859fi
cd9a469c 20860rm -f core conftest.err conftest.$ac_objext \
20861 conftest$ac_exeext conftest.$ac_ext
d213114b 20862fi
7d9455ce 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
bd647a17 20866
6affa8e1 20867cat >>confdefs.h <<_ACEOF
20868#define HAVE_POWF 1
20869_ACEOF
7d9455ce 20870
20871 fi
d213114b 20872
d213114b 20873
d213114b 20874
7d9455ce 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 :
cd9a469c 20879 $as_echo_n "(cached) " >&6
d213114b 20880else
7d9455ce 20881 if test x$gcc_no_link = xyes; then
cd9a469c 20882 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20883fi
cd9a469c 20884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20885/* end confdefs.h. */
20886
7d9455ce 20887#ifdef HAVE_COMPLEX_H
20888#include <complex.h>
d213114b 20889#endif
7d9455ce 20890#ifdef HAVE_MATH_H
20891#include <math.h>
20892#endif
20893
20894int (*ptr)() = (int (*)())pow;
20895
d213114b 20896int
20897main ()
20898{
d213114b 20899 return 0;
20900}
7d9455ce 20901
d213114b 20902_ACEOF
cd9a469c 20903if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20904 gcc_cv_math_func_pow=yes
d213114b 20905else
7d9455ce 20906 gcc_cv_math_func_pow=no
d213114b 20907fi
cd9a469c 20908rm -f core conftest.err conftest.$ac_objext \
20909 conftest$ac_exeext conftest.$ac_ext
d213114b 20910fi
7d9455ce 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
bd647a17 20914
6affa8e1 20915cat >>confdefs.h <<_ACEOF
20916#define HAVE_POW 1
20917_ACEOF
d213114b 20918
7d9455ce 20919 fi
d213114b 20920
d213114b 20921
7d9455ce 20922
20923
7d9455ce 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 :
cd9a469c 20927 $as_echo_n "(cached) " >&6
d213114b 20928else
7d9455ce 20929 if test x$gcc_no_link = xyes; then
cd9a469c 20930 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20931fi
cd9a469c 20932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20933/* end confdefs.h. */
20934
7d9455ce 20935#ifdef HAVE_COMPLEX_H
20936#include <complex.h>
d213114b 20937#endif
7d9455ce 20938#ifdef HAVE_MATH_H
20939#include <math.h>
20940#endif
20941
20942int (*ptr)() = (int (*)())cpowf;
20943
d213114b 20944int
20945main ()
20946{
d213114b 20947 return 0;
20948}
7d9455ce 20949
d213114b 20950_ACEOF
cd9a469c 20951if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20952 gcc_cv_math_func_cpowf=yes
d213114b 20953else
7d9455ce 20954 gcc_cv_math_func_cpowf=no
d213114b 20955fi
cd9a469c 20956rm -f core conftest.err conftest.$ac_objext \
20957 conftest$ac_exeext conftest.$ac_ext
d213114b 20958fi
7d9455ce 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
bd647a17 20962
6affa8e1 20963cat >>confdefs.h <<_ACEOF
20964#define HAVE_CPOWF 1
20965_ACEOF
7d9455ce 20966
20967 fi
20968
d213114b 20969
d213114b 20970
d213114b 20971
7d9455ce 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 :
cd9a469c 20975 $as_echo_n "(cached) " >&6
d213114b 20976else
7d9455ce 20977 if test x$gcc_no_link = xyes; then
cd9a469c 20978 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20979fi
cd9a469c 20980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20981/* end confdefs.h. */
20982
7d9455ce 20983#ifdef HAVE_COMPLEX_H
20984#include <complex.h>
20985#endif
20986#ifdef HAVE_MATH_H
20987#include <math.h>
d213114b 20988#endif
7d9455ce 20989
20990int (*ptr)() = (int (*)())cpow;
20991
d213114b 20992int
20993main ()
20994{
d213114b 20995 return 0;
20996}
7d9455ce 20997
d213114b 20998_ACEOF
cd9a469c 20999if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21000 gcc_cv_math_func_cpow=yes
d213114b 21001else
7d9455ce 21002 gcc_cv_math_func_cpow=no
d213114b 21003fi
cd9a469c 21004rm -f core conftest.err conftest.$ac_objext \
21005 conftest$ac_exeext conftest.$ac_ext
d213114b 21006fi
7d9455ce 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
bd647a17 21010
6affa8e1 21011cat >>confdefs.h <<_ACEOF
21012#define HAVE_CPOW 1
21013_ACEOF
7d9455ce 21014
21015 fi
d213114b 21016
d213114b 21017
d213114b 21018
7d9455ce 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 :
cd9a469c 21023 $as_echo_n "(cached) " >&6
d213114b 21024else
7d9455ce 21025 if test x$gcc_no_link = xyes; then
cd9a469c 21026 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21027fi
cd9a469c 21028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21029/* end confdefs.h. */
21030
7d9455ce 21031#ifdef HAVE_COMPLEX_H
21032#include <complex.h>
d213114b 21033#endif
7d9455ce 21034#ifdef HAVE_MATH_H
21035#include <math.h>
21036#endif
21037
21038int (*ptr)() = (int (*)())cpowl;
21039
d213114b 21040int
21041main ()
21042{
d213114b 21043 return 0;
21044}
7d9455ce 21045
d213114b 21046_ACEOF
cd9a469c 21047if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21048 gcc_cv_math_func_cpowl=yes
d213114b 21049else
7d9455ce 21050 gcc_cv_math_func_cpowl=no
d213114b 21051fi
cd9a469c 21052rm -f core conftest.err conftest.$ac_objext \
21053 conftest$ac_exeext conftest.$ac_ext
d213114b 21054fi
7d9455ce 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
bd647a17 21058
6affa8e1 21059cat >>confdefs.h <<_ACEOF
21060#define HAVE_CPOWL 1
21061_ACEOF
d213114b 21062
7d9455ce 21063 fi
d213114b 21064
d213114b 21065
7d9455ce 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 :
cd9a469c 21071 $as_echo_n "(cached) " >&6
d213114b 21072else
7d9455ce 21073 if test x$gcc_no_link = xyes; then
cd9a469c 21074 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21075fi
cd9a469c 21076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21077/* end confdefs.h. */
21078
7d9455ce 21079#ifdef HAVE_COMPLEX_H
21080#include <complex.h>
21081#endif
21082#ifdef HAVE_MATH_H
21083#include <math.h>
d213114b 21084#endif
7d9455ce 21085
21086int (*ptr)() = (int (*)())roundf;
21087
d213114b 21088int
21089main ()
21090{
d213114b 21091 return 0;
21092}
7d9455ce 21093
d213114b 21094_ACEOF
cd9a469c 21095if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21096 gcc_cv_math_func_roundf=yes
d213114b 21097else
7d9455ce 21098 gcc_cv_math_func_roundf=no
d213114b 21099fi
cd9a469c 21100rm -f core conftest.err conftest.$ac_objext \
21101 conftest$ac_exeext conftest.$ac_ext
d213114b 21102fi
7d9455ce 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
bd647a17 21106
6affa8e1 21107cat >>confdefs.h <<_ACEOF
21108#define HAVE_ROUNDF 1
21109_ACEOF
7d9455ce 21110
21111 fi
d213114b 21112
d213114b 21113
d213114b 21114
7d9455ce 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 :
cd9a469c 21119 $as_echo_n "(cached) " >&6
d213114b 21120else
7d9455ce 21121 if test x$gcc_no_link = xyes; then
cd9a469c 21122 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21123fi
cd9a469c 21124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21125/* end confdefs.h. */
21126
7d9455ce 21127#ifdef HAVE_COMPLEX_H
21128#include <complex.h>
d213114b 21129#endif
7d9455ce 21130#ifdef HAVE_MATH_H
21131#include <math.h>
21132#endif
21133
21134int (*ptr)() = (int (*)())round;
21135
d213114b 21136int
21137main ()
21138{
d213114b 21139 return 0;
21140}
7d9455ce 21141
d213114b 21142_ACEOF
cd9a469c 21143if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21144 gcc_cv_math_func_round=yes
d213114b 21145else
7d9455ce 21146 gcc_cv_math_func_round=no
d213114b 21147fi
cd9a469c 21148rm -f core conftest.err conftest.$ac_objext \
21149 conftest$ac_exeext conftest.$ac_ext
d213114b 21150fi
7d9455ce 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
bd647a17 21154
6affa8e1 21155cat >>confdefs.h <<_ACEOF
21156#define HAVE_ROUND 1
21157_ACEOF
7d9455ce 21158
21159 fi
21160
d213114b 21161
d213114b 21162
d213114b 21163
7d9455ce 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 :
cd9a469c 21167 $as_echo_n "(cached) " >&6
ef080b63 21168else
7d9455ce 21169 if test x$gcc_no_link = xyes; then
cd9a469c 21170 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21171fi
cd9a469c 21172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21173/* end confdefs.h. */
21174
7d9455ce 21175#ifdef HAVE_COMPLEX_H
21176#include <complex.h>
21177#endif
21178#ifdef HAVE_MATH_H
21179#include <math.h>
ef080b63 21180#endif
7d9455ce 21181
21182int (*ptr)() = (int (*)())roundl;
21183
ef080b63 21184int
21185main ()
21186{
ef080b63 21187 return 0;
21188}
7d9455ce 21189
ef080b63 21190_ACEOF
cd9a469c 21191if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21192 gcc_cv_math_func_roundl=yes
ef080b63 21193else
7d9455ce 21194 gcc_cv_math_func_roundl=no
ef080b63 21195fi
cd9a469c 21196rm -f core conftest.err conftest.$ac_objext \
21197 conftest$ac_exeext conftest.$ac_ext
ef080b63 21198fi
7d9455ce 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
bd647a17 21202
6affa8e1 21203cat >>confdefs.h <<_ACEOF
21204#define HAVE_ROUNDL 1
21205_ACEOF
7d9455ce 21206
21207 fi
ef080b63 21208
ef080b63 21209
ef080b63 21210
7d9455ce 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 :
cd9a469c 21215 $as_echo_n "(cached) " >&6
ef080b63 21216else
7d9455ce 21217 if test x$gcc_no_link = xyes; then
cd9a469c 21218 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21219fi
cd9a469c 21220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21221/* end confdefs.h. */
21222
7d9455ce 21223#ifdef HAVE_COMPLEX_H
21224#include <complex.h>
ef080b63 21225#endif
7d9455ce 21226#ifdef HAVE_MATH_H
21227#include <math.h>
21228#endif
21229
21230int (*ptr)() = (int (*)())lroundf;
21231
ef080b63 21232int
21233main ()
21234{
ef080b63 21235 return 0;
21236}
7d9455ce 21237
ef080b63 21238_ACEOF
cd9a469c 21239if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21240 gcc_cv_math_func_lroundf=yes
ef080b63 21241else
7d9455ce 21242 gcc_cv_math_func_lroundf=no
ef080b63 21243fi
cd9a469c 21244rm -f core conftest.err conftest.$ac_objext \
21245 conftest$ac_exeext conftest.$ac_ext
ef080b63 21246fi
7d9455ce 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
bd647a17 21250
6affa8e1 21251cat >>confdefs.h <<_ACEOF
21252#define HAVE_LROUNDF 1
21253_ACEOF
ef080b63 21254
7d9455ce 21255 fi
ef080b63 21256
ef080b63 21257
7d9455ce 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 :
cd9a469c 21263 $as_echo_n "(cached) " >&6
ef080b63 21264else
7d9455ce 21265 if test x$gcc_no_link = xyes; then
cd9a469c 21266 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21267fi
cd9a469c 21268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21269/* end confdefs.h. */
21270
7d9455ce 21271#ifdef HAVE_COMPLEX_H
21272#include <complex.h>
21273#endif
21274#ifdef HAVE_MATH_H
21275#include <math.h>
ef080b63 21276#endif
7d9455ce 21277
21278int (*ptr)() = (int (*)())lround;
21279
ef080b63 21280int
21281main ()
21282{
ef080b63 21283 return 0;
21284}
7d9455ce 21285
ef080b63 21286_ACEOF
cd9a469c 21287if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21288 gcc_cv_math_func_lround=yes
ef080b63 21289else
7d9455ce 21290 gcc_cv_math_func_lround=no
ef080b63 21291fi
cd9a469c 21292rm -f core conftest.err conftest.$ac_objext \
21293 conftest$ac_exeext conftest.$ac_ext
ef080b63 21294fi
7d9455ce 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
bd647a17 21298
6affa8e1 21299cat >>confdefs.h <<_ACEOF
21300#define HAVE_LROUND 1
21301_ACEOF
7d9455ce 21302
21303 fi
21304
ef080b63 21305
ef080b63 21306
ef080b63 21307
7d9455ce 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 :
cd9a469c 21311 $as_echo_n "(cached) " >&6
ef080b63 21312else
7d9455ce 21313 if test x$gcc_no_link = xyes; then
cd9a469c 21314 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21315fi
cd9a469c 21316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21317/* end confdefs.h. */
21318
7d9455ce 21319#ifdef HAVE_COMPLEX_H
21320#include <complex.h>
21321#endif
21322#ifdef HAVE_MATH_H
21323#include <math.h>
ef080b63 21324#endif
7d9455ce 21325
21326int (*ptr)() = (int (*)())lroundl;
21327
ef080b63 21328int
21329main ()
21330{
ef080b63 21331 return 0;
21332}
7d9455ce 21333
ef080b63 21334_ACEOF
cd9a469c 21335if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21336 gcc_cv_math_func_lroundl=yes
ef080b63 21337else
7d9455ce 21338 gcc_cv_math_func_lroundl=no
ef080b63 21339fi
cd9a469c 21340rm -f core conftest.err conftest.$ac_objext \
21341 conftest$ac_exeext conftest.$ac_ext
ef080b63 21342fi
7d9455ce 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
bd647a17 21346
6affa8e1 21347cat >>confdefs.h <<_ACEOF
21348#define HAVE_LROUNDL 1
21349_ACEOF
ef080b63 21350
7d9455ce 21351 fi
ef080b63 21352
ef080b63 21353
7d9455ce 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 :
cd9a469c 21359 $as_echo_n "(cached) " >&6
ef080b63 21360else
7d9455ce 21361 if test x$gcc_no_link = xyes; then
cd9a469c 21362 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21363fi
cd9a469c 21364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21365/* end confdefs.h. */
21366
7d9455ce 21367#ifdef HAVE_COMPLEX_H
21368#include <complex.h>
ef080b63 21369#endif
7d9455ce 21370#ifdef HAVE_MATH_H
21371#include <math.h>
21372#endif
21373
21374int (*ptr)() = (int (*)())llroundf;
21375
ef080b63 21376int
21377main ()
21378{
ef080b63 21379 return 0;
21380}
7d9455ce 21381
ef080b63 21382_ACEOF
cd9a469c 21383if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21384 gcc_cv_math_func_llroundf=yes
ef080b63 21385else
7d9455ce 21386 gcc_cv_math_func_llroundf=no
ef080b63 21387fi
cd9a469c 21388rm -f core conftest.err conftest.$ac_objext \
21389 conftest$ac_exeext conftest.$ac_ext
ef080b63 21390fi
7d9455ce 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
bd647a17 21394
6affa8e1 21395cat >>confdefs.h <<_ACEOF
21396#define HAVE_LLROUNDF 1
21397_ACEOF
ef080b63 21398
7d9455ce 21399 fi
ef080b63 21400
ef080b63 21401
7d9455ce 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 :
cd9a469c 21407 $as_echo_n "(cached) " >&6
ef080b63 21408else
7d9455ce 21409 if test x$gcc_no_link = xyes; then
cd9a469c 21410 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21411fi
cd9a469c 21412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21413/* end confdefs.h. */
21414
7d9455ce 21415#ifdef HAVE_COMPLEX_H
21416#include <complex.h>
21417#endif
21418#ifdef HAVE_MATH_H
21419#include <math.h>
ef080b63 21420#endif
7d9455ce 21421
21422int (*ptr)() = (int (*)())llround;
21423
ef080b63 21424int
21425main ()
21426{
ef080b63 21427 return 0;
21428}
7d9455ce 21429
ef080b63 21430_ACEOF
cd9a469c 21431if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21432 gcc_cv_math_func_llround=yes
ef080b63 21433else
7d9455ce 21434 gcc_cv_math_func_llround=no
ef080b63 21435fi
cd9a469c 21436rm -f core conftest.err conftest.$ac_objext \
21437 conftest$ac_exeext conftest.$ac_ext
ef080b63 21438fi
7d9455ce 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
bd647a17 21442
6affa8e1 21443cat >>confdefs.h <<_ACEOF
21444#define HAVE_LLROUND 1
21445_ACEOF
7d9455ce 21446
21447 fi
21448
ef080b63 21449
ef080b63 21450
ef080b63 21451
7d9455ce 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 :
cd9a469c 21455 $as_echo_n "(cached) " >&6
d213114b 21456else
7d9455ce 21457 if test x$gcc_no_link = xyes; then
cd9a469c 21458 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21459fi
cd9a469c 21460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21461/* end confdefs.h. */
21462
7d9455ce 21463#ifdef HAVE_COMPLEX_H
21464#include <complex.h>
21465#endif
21466#ifdef HAVE_MATH_H
21467#include <math.h>
d213114b 21468#endif
7d9455ce 21469
21470int (*ptr)() = (int (*)())llroundl;
21471
d213114b 21472int
21473main ()
21474{
d213114b 21475 return 0;
21476}
7d9455ce 21477
d213114b 21478_ACEOF
cd9a469c 21479if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21480 gcc_cv_math_func_llroundl=yes
d213114b 21481else
7d9455ce 21482 gcc_cv_math_func_llroundl=no
d213114b 21483fi
cd9a469c 21484rm -f core conftest.err conftest.$ac_objext \
21485 conftest$ac_exeext conftest.$ac_ext
d213114b 21486fi
7d9455ce 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
bd647a17 21490
6affa8e1 21491cat >>confdefs.h <<_ACEOF
21492#define HAVE_LLROUNDL 1
21493_ACEOF
d213114b 21494
7d9455ce 21495 fi
d213114b 21496
d213114b 21497
7d9455ce 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 :
cd9a469c 21503 $as_echo_n "(cached) " >&6
d213114b 21504else
7d9455ce 21505 if test x$gcc_no_link = xyes; then
cd9a469c 21506 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21507fi
cd9a469c 21508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21509/* end confdefs.h. */
21510
7d9455ce 21511#ifdef HAVE_COMPLEX_H
21512#include <complex.h>
d213114b 21513#endif
7d9455ce 21514#ifdef HAVE_MATH_H
21515#include <math.h>
21516#endif
21517
21518int (*ptr)() = (int (*)())scalbnf;
21519
d213114b 21520int
21521main ()
21522{
d213114b 21523 return 0;
21524}
7d9455ce 21525
d213114b 21526_ACEOF
cd9a469c 21527if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21528 gcc_cv_math_func_scalbnf=yes
d213114b 21529else
7d9455ce 21530 gcc_cv_math_func_scalbnf=no
d213114b 21531fi
cd9a469c 21532rm -f core conftest.err conftest.$ac_objext \
21533 conftest$ac_exeext conftest.$ac_ext
d213114b 21534fi
7d9455ce 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
bd647a17 21538
6affa8e1 21539cat >>confdefs.h <<_ACEOF
21540#define HAVE_SCALBNF 1
21541_ACEOF
d213114b 21542
7d9455ce 21543 fi
d213114b 21544
d213114b 21545
7d9455ce 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 :
cd9a469c 21551 $as_echo_n "(cached) " >&6
d213114b 21552else
7d9455ce 21553 if test x$gcc_no_link = xyes; then
cd9a469c 21554 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21555fi
cd9a469c 21556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21557/* end confdefs.h. */
21558
7d9455ce 21559#ifdef HAVE_COMPLEX_H
21560#include <complex.h>
21561#endif
21562#ifdef HAVE_MATH_H
21563#include <math.h>
d213114b 21564#endif
7d9455ce 21565
21566int (*ptr)() = (int (*)())scalbn;
21567
d213114b 21568int
21569main ()
21570{
d213114b 21571 return 0;
21572}
7d9455ce 21573
d213114b 21574_ACEOF
cd9a469c 21575if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21576 gcc_cv_math_func_scalbn=yes
d213114b 21577else
7d9455ce 21578 gcc_cv_math_func_scalbn=no
d213114b 21579fi
cd9a469c 21580rm -f core conftest.err conftest.$ac_objext \
21581 conftest$ac_exeext conftest.$ac_ext
d213114b 21582fi
7d9455ce 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
bd647a17 21586
6affa8e1 21587cat >>confdefs.h <<_ACEOF
21588#define HAVE_SCALBN 1
21589_ACEOF
7d9455ce 21590
21591 fi
21592
d213114b 21593
d213114b 21594
d213114b 21595
7d9455ce 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 :
cd9a469c 21599 $as_echo_n "(cached) " >&6
d213114b 21600else
7d9455ce 21601 if test x$gcc_no_link = xyes; then
cd9a469c 21602 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21603fi
cd9a469c 21604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21605/* end confdefs.h. */
21606
7d9455ce 21607#ifdef HAVE_COMPLEX_H
21608#include <complex.h>
21609#endif
21610#ifdef HAVE_MATH_H
21611#include <math.h>
d213114b 21612#endif
7d9455ce 21613
21614int (*ptr)() = (int (*)())scalbnl;
21615
d213114b 21616int
21617main ()
21618{
d213114b 21619 return 0;
21620}
7d9455ce 21621
d213114b 21622_ACEOF
cd9a469c 21623if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21624 gcc_cv_math_func_scalbnl=yes
d213114b 21625else
7d9455ce 21626 gcc_cv_math_func_scalbnl=no
d213114b 21627fi
cd9a469c 21628rm -f core conftest.err conftest.$ac_objext \
21629 conftest$ac_exeext conftest.$ac_ext
d213114b 21630fi
7d9455ce 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
bd647a17 21634
6affa8e1 21635cat >>confdefs.h <<_ACEOF
21636#define HAVE_SCALBNL 1
21637_ACEOF
d213114b 21638
7d9455ce 21639 fi
d213114b 21640
d213114b 21641
7d9455ce 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 :
cd9a469c 21647 $as_echo_n "(cached) " >&6
d213114b 21648else
7d9455ce 21649 if test x$gcc_no_link = xyes; then
cd9a469c 21650 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21651fi
cd9a469c 21652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21653/* end confdefs.h. */
21654
7d9455ce 21655#ifdef HAVE_COMPLEX_H
21656#include <complex.h>
d213114b 21657#endif
7d9455ce 21658#ifdef HAVE_MATH_H
21659#include <math.h>
21660#endif
21661
21662int (*ptr)() = (int (*)())sinf;
21663
d213114b 21664int
21665main ()
21666{
d213114b 21667 return 0;
21668}
7d9455ce 21669
d213114b 21670_ACEOF
cd9a469c 21671if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21672 gcc_cv_math_func_sinf=yes
d213114b 21673else
7d9455ce 21674 gcc_cv_math_func_sinf=no
d213114b 21675fi
cd9a469c 21676rm -f core conftest.err conftest.$ac_objext \
21677 conftest$ac_exeext conftest.$ac_ext
d213114b 21678fi
7d9455ce 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
bd647a17 21682
6affa8e1 21683cat >>confdefs.h <<_ACEOF
21684#define HAVE_SINF 1
21685_ACEOF
d213114b 21686
7d9455ce 21687 fi
d213114b 21688
d213114b 21689
7d9455ce 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 :
cd9a469c 21695 $as_echo_n "(cached) " >&6
d213114b 21696else
7d9455ce 21697 if test x$gcc_no_link = xyes; then
cd9a469c 21698 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21699fi
cd9a469c 21700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21701/* end confdefs.h. */
21702
7d9455ce 21703#ifdef HAVE_COMPLEX_H
21704#include <complex.h>
d213114b 21705#endif
7d9455ce 21706#ifdef HAVE_MATH_H
21707#include <math.h>
21708#endif
21709
21710int (*ptr)() = (int (*)())sin;
21711
d213114b 21712int
21713main ()
21714{
d213114b 21715 return 0;
21716}
7d9455ce 21717
d213114b 21718_ACEOF
cd9a469c 21719if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21720 gcc_cv_math_func_sin=yes
d213114b 21721else
7d9455ce 21722 gcc_cv_math_func_sin=no
d213114b 21723fi
cd9a469c 21724rm -f core conftest.err conftest.$ac_objext \
21725 conftest$ac_exeext conftest.$ac_ext
d213114b 21726fi
7d9455ce 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
bd647a17 21730
6affa8e1 21731cat >>confdefs.h <<_ACEOF
21732#define HAVE_SIN 1
21733_ACEOF
7d9455ce 21734
21735 fi
21736
d213114b 21737
d213114b 21738
d213114b 21739
7d9455ce 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 :
cd9a469c 21743 $as_echo_n "(cached) " >&6
d213114b 21744else
7d9455ce 21745 if test x$gcc_no_link = xyes; then
cd9a469c 21746 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21747fi
cd9a469c 21748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21749/* end confdefs.h. */
21750
7d9455ce 21751#ifdef HAVE_COMPLEX_H
21752#include <complex.h>
d213114b 21753#endif
7d9455ce 21754#ifdef HAVE_MATH_H
21755#include <math.h>
21756#endif
21757
21758int (*ptr)() = (int (*)())sinl;
21759
d213114b 21760int
21761main ()
21762{
cd9a469c 21763 return 0;
21764}
7d9455ce 21765
cd9a469c 21766_ACEOF
21767if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21768 gcc_cv_math_func_sinl=yes
d213114b 21769else
7d9455ce 21770 gcc_cv_math_func_sinl=no
d213114b 21771fi
cd9a469c 21772rm -f core conftest.err conftest.$ac_objext \
21773 conftest$ac_exeext conftest.$ac_ext
d213114b 21774fi
7d9455ce 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
bd647a17 21778
6affa8e1 21779cat >>confdefs.h <<_ACEOF
21780#define HAVE_SINL 1
21781_ACEOF
7d9455ce 21782
21783 fi
d213114b 21784
d213114b 21785
d213114b 21786
7d9455ce 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 :
cd9a469c 21791 $as_echo_n "(cached) " >&6
d213114b 21792else
7d9455ce 21793 if test x$gcc_no_link = xyes; then
cd9a469c 21794 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21795fi
cd9a469c 21796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21797/* end confdefs.h. */
21798
7d9455ce 21799#ifdef HAVE_COMPLEX_H
21800#include <complex.h>
21801#endif
21802#ifdef HAVE_MATH_H
21803#include <math.h>
d213114b 21804#endif
7d9455ce 21805
21806int (*ptr)() = (int (*)())csinf;
21807
d213114b 21808int
21809main ()
21810{
d213114b 21811 return 0;
21812}
7d9455ce 21813
d213114b 21814_ACEOF
cd9a469c 21815if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21816 gcc_cv_math_func_csinf=yes
d213114b 21817else
7d9455ce 21818 gcc_cv_math_func_csinf=no
d213114b 21819fi
cd9a469c 21820rm -f core conftest.err conftest.$ac_objext \
21821 conftest$ac_exeext conftest.$ac_ext
d213114b 21822fi
7d9455ce 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
bd647a17 21826
6affa8e1 21827cat >>confdefs.h <<_ACEOF
21828#define HAVE_CSINF 1
21829_ACEOF
d213114b 21830
7d9455ce 21831 fi
d213114b 21832
d213114b 21833
7d9455ce 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 :
cd9a469c 21839 $as_echo_n "(cached) " >&6
d213114b 21840else
7d9455ce 21841 if test x$gcc_no_link = xyes; then
cd9a469c 21842 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21843fi
cd9a469c 21844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21845/* end confdefs.h. */
21846
7d9455ce 21847#ifdef HAVE_COMPLEX_H
21848#include <complex.h>
d213114b 21849#endif
7d9455ce 21850#ifdef HAVE_MATH_H
21851#include <math.h>
21852#endif
21853
21854int (*ptr)() = (int (*)())csin;
21855
d213114b 21856int
21857main ()
21858{
d213114b 21859 return 0;
21860}
7d9455ce 21861
d213114b 21862_ACEOF
cd9a469c 21863if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21864 gcc_cv_math_func_csin=yes
d213114b 21865else
7d9455ce 21866 gcc_cv_math_func_csin=no
d213114b 21867fi
cd9a469c 21868rm -f core conftest.err conftest.$ac_objext \
21869 conftest$ac_exeext conftest.$ac_ext
d213114b 21870fi
7d9455ce 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
bd647a17 21874
6affa8e1 21875cat >>confdefs.h <<_ACEOF
21876#define HAVE_CSIN 1
21877_ACEOF
7d9455ce 21878
21879 fi
21880
d213114b 21881
d213114b 21882
d213114b 21883
7d9455ce 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 :
cd9a469c 21887 $as_echo_n "(cached) " >&6
d213114b 21888else
7d9455ce 21889 if test x$gcc_no_link = xyes; then
cd9a469c 21890 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21891fi
cd9a469c 21892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21893/* end confdefs.h. */
21894
7d9455ce 21895#ifdef HAVE_COMPLEX_H
21896#include <complex.h>
d213114b 21897#endif
7d9455ce 21898#ifdef HAVE_MATH_H
21899#include <math.h>
21900#endif
21901
21902int (*ptr)() = (int (*)())csinl;
21903
d213114b 21904int
21905main ()
21906{
d213114b 21907 return 0;
21908}
7d9455ce 21909
d213114b 21910_ACEOF
cd9a469c 21911if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21912 gcc_cv_math_func_csinl=yes
d213114b 21913else
7d9455ce 21914 gcc_cv_math_func_csinl=no
d213114b 21915fi
cd9a469c 21916rm -f core conftest.err conftest.$ac_objext \
21917 conftest$ac_exeext conftest.$ac_ext
d213114b 21918fi
7d9455ce 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
bd647a17 21922
6affa8e1 21923cat >>confdefs.h <<_ACEOF
21924#define HAVE_CSINL 1
21925_ACEOF
7d9455ce 21926
21927 fi
d213114b 21928
d213114b 21929
d213114b 21930
7d9455ce 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 :
cd9a469c 21935 $as_echo_n "(cached) " >&6
d213114b 21936else
7d9455ce 21937 if test x$gcc_no_link = xyes; then
cd9a469c 21938 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21939fi
cd9a469c 21940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21941/* end confdefs.h. */
21942
7d9455ce 21943#ifdef HAVE_COMPLEX_H
21944#include <complex.h>
21945#endif
21946#ifdef HAVE_MATH_H
21947#include <math.h>
d213114b 21948#endif
7d9455ce 21949
21950int (*ptr)() = (int (*)())sinhf;
21951
d213114b 21952int
21953main ()
21954{
d213114b 21955 return 0;
21956}
7d9455ce 21957
d213114b 21958_ACEOF
cd9a469c 21959if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21960 gcc_cv_math_func_sinhf=yes
d213114b 21961else
7d9455ce 21962 gcc_cv_math_func_sinhf=no
d213114b 21963fi
cd9a469c 21964rm -f core conftest.err conftest.$ac_objext \
21965 conftest$ac_exeext conftest.$ac_ext
d213114b 21966fi
7d9455ce 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
bd647a17 21970
6affa8e1 21971cat >>confdefs.h <<_ACEOF
21972#define HAVE_SINHF 1
21973_ACEOF
d213114b 21974
7d9455ce 21975 fi
d213114b 21976
d213114b 21977
7d9455ce 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 :
cd9a469c 21983 $as_echo_n "(cached) " >&6
d213114b 21984else
7d9455ce 21985 if test x$gcc_no_link = xyes; then
cd9a469c 21986 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21987fi
cd9a469c 21988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21989/* end confdefs.h. */
21990
7d9455ce 21991#ifdef HAVE_COMPLEX_H
21992#include <complex.h>
d213114b 21993#endif
7d9455ce 21994#ifdef HAVE_MATH_H
21995#include <math.h>
21996#endif
21997
21998int (*ptr)() = (int (*)())sinh;
21999
d213114b 22000int
22001main ()
22002{
d213114b 22003 return 0;
22004}
7d9455ce 22005
d213114b 22006_ACEOF
cd9a469c 22007if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22008 gcc_cv_math_func_sinh=yes
d213114b 22009else
7d9455ce 22010 gcc_cv_math_func_sinh=no
d213114b 22011fi
cd9a469c 22012rm -f core conftest.err conftest.$ac_objext \
22013 conftest$ac_exeext conftest.$ac_ext
d213114b 22014fi
7d9455ce 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
bd647a17 22018
6affa8e1 22019cat >>confdefs.h <<_ACEOF
22020#define HAVE_SINH 1
22021_ACEOF
7d9455ce 22022
22023 fi
22024
d213114b 22025
d213114b 22026
d213114b 22027
7d9455ce 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 :
cd9a469c 22031 $as_echo_n "(cached) " >&6
d213114b 22032else
7d9455ce 22033 if test x$gcc_no_link = xyes; then
cd9a469c 22034 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22035fi
cd9a469c 22036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22037/* end confdefs.h. */
22038
7d9455ce 22039#ifdef HAVE_COMPLEX_H
22040#include <complex.h>
d213114b 22041#endif
7d9455ce 22042#ifdef HAVE_MATH_H
22043#include <math.h>
22044#endif
22045
22046int (*ptr)() = (int (*)())sinhl;
22047
d213114b 22048int
22049main ()
22050{
d213114b 22051 return 0;
22052}
7d9455ce 22053
d213114b 22054_ACEOF
cd9a469c 22055if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22056 gcc_cv_math_func_sinhl=yes
d213114b 22057else
7d9455ce 22058 gcc_cv_math_func_sinhl=no
d213114b 22059fi
cd9a469c 22060rm -f core conftest.err conftest.$ac_objext \
22061 conftest$ac_exeext conftest.$ac_ext
d213114b 22062fi
7d9455ce 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
bd647a17 22066
6affa8e1 22067cat >>confdefs.h <<_ACEOF
22068#define HAVE_SINHL 1
22069_ACEOF
7d9455ce 22070
22071 fi
d213114b 22072
d213114b 22073
d213114b 22074
7d9455ce 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 :
cd9a469c 22079 $as_echo_n "(cached) " >&6
d213114b 22080else
7d9455ce 22081 if test x$gcc_no_link = xyes; then
cd9a469c 22082 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22083fi
cd9a469c 22084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22085/* end confdefs.h. */
22086
7d9455ce 22087#ifdef HAVE_COMPLEX_H
22088#include <complex.h>
22089#endif
22090#ifdef HAVE_MATH_H
22091#include <math.h>
d213114b 22092#endif
7d9455ce 22093
22094int (*ptr)() = (int (*)())csinhf;
22095
d213114b 22096int
22097main ()
22098{
d213114b 22099 return 0;
22100}
7d9455ce 22101
d213114b 22102_ACEOF
cd9a469c 22103if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22104 gcc_cv_math_func_csinhf=yes
d213114b 22105else
7d9455ce 22106 gcc_cv_math_func_csinhf=no
d213114b 22107fi
cd9a469c 22108rm -f core conftest.err conftest.$ac_objext \
22109 conftest$ac_exeext conftest.$ac_ext
d213114b 22110fi
7d9455ce 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
bd647a17 22114
6affa8e1 22115cat >>confdefs.h <<_ACEOF
22116#define HAVE_CSINHF 1
22117_ACEOF
d213114b 22118
7d9455ce 22119 fi
d213114b 22120
d213114b 22121
7d9455ce 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 :
cd9a469c 22127 $as_echo_n "(cached) " >&6
d213114b 22128else
7d9455ce 22129 if test x$gcc_no_link = xyes; then
cd9a469c 22130 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22131fi
cd9a469c 22132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22133/* end confdefs.h. */
22134
7d9455ce 22135#ifdef HAVE_COMPLEX_H
22136#include <complex.h>
d213114b 22137#endif
7d9455ce 22138#ifdef HAVE_MATH_H
22139#include <math.h>
22140#endif
22141
22142int (*ptr)() = (int (*)())csinh;
22143
d213114b 22144int
22145main ()
22146{
d213114b 22147 return 0;
22148}
7d9455ce 22149
d213114b 22150_ACEOF
cd9a469c 22151if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22152 gcc_cv_math_func_csinh=yes
d213114b 22153else
7d9455ce 22154 gcc_cv_math_func_csinh=no
d213114b 22155fi
cd9a469c 22156rm -f core conftest.err conftest.$ac_objext \
22157 conftest$ac_exeext conftest.$ac_ext
d213114b 22158fi
7d9455ce 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
bd647a17 22162
6affa8e1 22163cat >>confdefs.h <<_ACEOF
22164#define HAVE_CSINH 1
22165_ACEOF
7d9455ce 22166
22167 fi
22168
d213114b 22169
d213114b 22170
d213114b 22171
7d9455ce 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 :
cd9a469c 22175 $as_echo_n "(cached) " >&6
d213114b 22176else
7d9455ce 22177 if test x$gcc_no_link = xyes; then
cd9a469c 22178 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22179fi
cd9a469c 22180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22181/* end confdefs.h. */
22182
7d9455ce 22183#ifdef HAVE_COMPLEX_H
22184#include <complex.h>
d213114b 22185#endif
7d9455ce 22186#ifdef HAVE_MATH_H
22187#include <math.h>
22188#endif
22189
22190int (*ptr)() = (int (*)())csinhl;
22191
d213114b 22192int
22193main ()
22194{
d213114b 22195 return 0;
22196}
7d9455ce 22197
d213114b 22198_ACEOF
cd9a469c 22199if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22200 gcc_cv_math_func_csinhl=yes
d213114b 22201else
7d9455ce 22202 gcc_cv_math_func_csinhl=no
d213114b 22203fi
cd9a469c 22204rm -f core conftest.err conftest.$ac_objext \
22205 conftest$ac_exeext conftest.$ac_ext
d213114b 22206fi
7d9455ce 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
bd647a17 22210
6affa8e1 22211cat >>confdefs.h <<_ACEOF
22212#define HAVE_CSINHL 1
22213_ACEOF
7d9455ce 22214
22215 fi
d213114b 22216
d213114b 22217
d213114b 22218
7d9455ce 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 :
cd9a469c 22223 $as_echo_n "(cached) " >&6
d213114b 22224else
7d9455ce 22225 if test x$gcc_no_link = xyes; then
cd9a469c 22226 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22227fi
cd9a469c 22228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22229/* end confdefs.h. */
22230
7d9455ce 22231#ifdef HAVE_COMPLEX_H
22232#include <complex.h>
22233#endif
22234#ifdef HAVE_MATH_H
22235#include <math.h>
d213114b 22236#endif
7d9455ce 22237
22238int (*ptr)() = (int (*)())sqrtf;
22239
d213114b 22240int
22241main ()
22242{
d213114b 22243 return 0;
22244}
7d9455ce 22245
d213114b 22246_ACEOF
cd9a469c 22247if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22248 gcc_cv_math_func_sqrtf=yes
d213114b 22249else
7d9455ce 22250 gcc_cv_math_func_sqrtf=no
d213114b 22251fi
cd9a469c 22252rm -f core conftest.err conftest.$ac_objext \
22253 conftest$ac_exeext conftest.$ac_ext
d213114b 22254fi
7d9455ce 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
bd647a17 22258
6affa8e1 22259cat >>confdefs.h <<_ACEOF
22260#define HAVE_SQRTF 1
22261_ACEOF
7d9455ce 22262
22263 fi
d213114b 22264
d213114b 22265
7d9455ce 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
d213114b 22275fi
7d9455ce 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
bd647a17 22306
6affa8e1 22307cat >>confdefs.h <<_ACEOF
22308#define HAVE_SQRT 1
22309_ACEOF
7d9455ce 22310
22311 fi
d213114b 22312
7d9455ce 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 :
cd9a469c 22319 $as_echo_n "(cached) " >&6
d213114b 22320else
7d9455ce 22321 if test x$gcc_no_link = xyes; then
cd9a469c 22322 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22323fi
cd9a469c 22324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22325/* end confdefs.h. */
22326
7d9455ce 22327#ifdef HAVE_COMPLEX_H
22328#include <complex.h>
22329#endif
22330#ifdef HAVE_MATH_H
22331#include <math.h>
d213114b 22332#endif
7d9455ce 22333
22334int (*ptr)() = (int (*)())sqrtl;
22335
d213114b 22336int
22337main ()
22338{
d213114b 22339 return 0;
22340}
7d9455ce 22341
d213114b 22342_ACEOF
cd9a469c 22343if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22344 gcc_cv_math_func_sqrtl=yes
d213114b 22345else
7d9455ce 22346 gcc_cv_math_func_sqrtl=no
d213114b 22347fi
cd9a469c 22348rm -f core conftest.err conftest.$ac_objext \
22349 conftest$ac_exeext conftest.$ac_ext
d213114b 22350fi
7d9455ce 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
bd647a17 22354
6affa8e1 22355cat >>confdefs.h <<_ACEOF
22356#define HAVE_SQRTL 1
22357_ACEOF
7d9455ce 22358
22359 fi
d213114b 22360
d213114b 22361
d213114b 22362
7d9455ce 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 :
cd9a469c 22367 $as_echo_n "(cached) " >&6
d213114b 22368else
7d9455ce 22369 if test x$gcc_no_link = xyes; then
cd9a469c 22370 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22371fi
cd9a469c 22372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22373/* end confdefs.h. */
22374
7d9455ce 22375#ifdef HAVE_COMPLEX_H
22376#include <complex.h>
d213114b 22377#endif
7d9455ce 22378#ifdef HAVE_MATH_H
22379#include <math.h>
22380#endif
22381
22382int (*ptr)() = (int (*)())csqrtf;
22383
d213114b 22384int
22385main ()
22386{
d213114b 22387 return 0;
22388}
7d9455ce 22389
d213114b 22390_ACEOF
cd9a469c 22391if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22392 gcc_cv_math_func_csqrtf=yes
d213114b 22393else
7d9455ce 22394 gcc_cv_math_func_csqrtf=no
d213114b 22395fi
cd9a469c 22396rm -f core conftest.err conftest.$ac_objext \
22397 conftest$ac_exeext conftest.$ac_ext
d213114b 22398fi
7d9455ce 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
bd647a17 22402
6affa8e1 22403cat >>confdefs.h <<_ACEOF
22404#define HAVE_CSQRTF 1
22405_ACEOF
d213114b 22406
7d9455ce 22407 fi
d213114b 22408
d213114b 22409
7d9455ce 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 :
cd9a469c 22415 $as_echo_n "(cached) " >&6
d213114b 22416else
7d9455ce 22417 if test x$gcc_no_link = xyes; then
cd9a469c 22418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22419fi
cd9a469c 22420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22421/* end confdefs.h. */
22422
7d9455ce 22423#ifdef HAVE_COMPLEX_H
22424#include <complex.h>
22425#endif
22426#ifdef HAVE_MATH_H
22427#include <math.h>
d213114b 22428#endif
7d9455ce 22429
22430int (*ptr)() = (int (*)())csqrt;
22431
d213114b 22432int
22433main ()
22434{
d213114b 22435 return 0;
22436}
7d9455ce 22437
d213114b 22438_ACEOF
cd9a469c 22439if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22440 gcc_cv_math_func_csqrt=yes
d213114b 22441else
7d9455ce 22442 gcc_cv_math_func_csqrt=no
d213114b 22443fi
cd9a469c 22444rm -f core conftest.err conftest.$ac_objext \
22445 conftest$ac_exeext conftest.$ac_ext
d213114b 22446fi
7d9455ce 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
bd647a17 22450
6affa8e1 22451cat >>confdefs.h <<_ACEOF
22452#define HAVE_CSQRT 1
22453_ACEOF
7d9455ce 22454
22455 fi
d213114b 22456
d213114b 22457
d213114b 22458
7d9455ce 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 :
cd9a469c 22463 $as_echo_n "(cached) " >&6
d213114b 22464else
7d9455ce 22465 if test x$gcc_no_link = xyes; then
cd9a469c 22466 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22467fi
cd9a469c 22468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22469/* end confdefs.h. */
22470
7d9455ce 22471#ifdef HAVE_COMPLEX_H
22472#include <complex.h>
d213114b 22473#endif
7d9455ce 22474#ifdef HAVE_MATH_H
22475#include <math.h>
22476#endif
22477
22478int (*ptr)() = (int (*)())csqrtl;
22479
d213114b 22480int
22481main ()
22482{
d213114b 22483 return 0;
22484}
7d9455ce 22485
d213114b 22486_ACEOF
cd9a469c 22487if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22488 gcc_cv_math_func_csqrtl=yes
d213114b 22489else
7d9455ce 22490 gcc_cv_math_func_csqrtl=no
d213114b 22491fi
cd9a469c 22492rm -f core conftest.err conftest.$ac_objext \
22493 conftest$ac_exeext conftest.$ac_ext
d213114b 22494fi
7d9455ce 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
bd647a17 22498
6affa8e1 22499cat >>confdefs.h <<_ACEOF
22500#define HAVE_CSQRTL 1
22501_ACEOF
7d9455ce 22502
22503 fi
22504
d213114b 22505
d213114b 22506
d213114b 22507
7d9455ce 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 :
cd9a469c 22511 $as_echo_n "(cached) " >&6
d213114b 22512else
7d9455ce 22513 if test x$gcc_no_link = xyes; then
cd9a469c 22514 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22515fi
cd9a469c 22516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22517/* end confdefs.h. */
22518
7d9455ce 22519#ifdef HAVE_COMPLEX_H
22520#include <complex.h>
22521#endif
22522#ifdef HAVE_MATH_H
22523#include <math.h>
d213114b 22524#endif
7d9455ce 22525
22526int (*ptr)() = (int (*)())tanf;
22527
d213114b 22528int
22529main ()
22530{
d213114b 22531 return 0;
22532}
7d9455ce 22533
d213114b 22534_ACEOF
cd9a469c 22535if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22536 gcc_cv_math_func_tanf=yes
d213114b 22537else
7d9455ce 22538 gcc_cv_math_func_tanf=no
d213114b 22539fi
cd9a469c 22540rm -f core conftest.err conftest.$ac_objext \
22541 conftest$ac_exeext conftest.$ac_ext
d213114b 22542fi
7d9455ce 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
bd647a17 22546
6affa8e1 22547cat >>confdefs.h <<_ACEOF
22548#define HAVE_TANF 1
22549_ACEOF
7d9455ce 22550
22551 fi
d213114b 22552
d213114b 22553
d213114b 22554
7d9455ce 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 :
cd9a469c 22559 $as_echo_n "(cached) " >&6
d213114b 22560else
7d9455ce 22561 if test x$gcc_no_link = xyes; then
cd9a469c 22562 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22563fi
cd9a469c 22564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22565/* end confdefs.h. */
22566
7d9455ce 22567#ifdef HAVE_COMPLEX_H
22568#include <complex.h>
d213114b 22569#endif
7d9455ce 22570#ifdef HAVE_MATH_H
22571#include <math.h>
22572#endif
22573
22574int (*ptr)() = (int (*)())tan;
22575
d213114b 22576int
22577main ()
22578{
d213114b 22579 return 0;
22580}
7d9455ce 22581
d213114b 22582_ACEOF
cd9a469c 22583if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22584 gcc_cv_math_func_tan=yes
d213114b 22585else
7d9455ce 22586 gcc_cv_math_func_tan=no
d213114b 22587fi
cd9a469c 22588rm -f core conftest.err conftest.$ac_objext \
22589 conftest$ac_exeext conftest.$ac_ext
d213114b 22590fi
7d9455ce 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
bd647a17 22594
6affa8e1 22595cat >>confdefs.h <<_ACEOF
22596#define HAVE_TAN 1
22597_ACEOF
d213114b 22598
7d9455ce 22599 fi
d213114b 22600
d213114b 22601
7d9455ce 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 :
cd9a469c 22607 $as_echo_n "(cached) " >&6
d213114b 22608else
7d9455ce 22609 if test x$gcc_no_link = xyes; then
cd9a469c 22610 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22611fi
cd9a469c 22612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22613/* end confdefs.h. */
22614
7d9455ce 22615#ifdef HAVE_COMPLEX_H
22616#include <complex.h>
22617#endif
22618#ifdef HAVE_MATH_H
22619#include <math.h>
d213114b 22620#endif
7d9455ce 22621
22622int (*ptr)() = (int (*)())tanl;
22623
d213114b 22624int
22625main ()
22626{
d213114b 22627 return 0;
22628}
7d9455ce 22629
d213114b 22630_ACEOF
cd9a469c 22631if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22632 gcc_cv_math_func_tanl=yes
d213114b 22633else
7d9455ce 22634 gcc_cv_math_func_tanl=no
d213114b 22635fi
cd9a469c 22636rm -f core conftest.err conftest.$ac_objext \
22637 conftest$ac_exeext conftest.$ac_ext
d213114b 22638fi
7d9455ce 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
bd647a17 22642
6affa8e1 22643cat >>confdefs.h <<_ACEOF
22644#define HAVE_TANL 1
22645_ACEOF
7d9455ce 22646
22647 fi
d213114b 22648
d213114b 22649
d213114b 22650
7d9455ce 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 :
cd9a469c 22655 $as_echo_n "(cached) " >&6
d213114b 22656else
7d9455ce 22657 if test x$gcc_no_link = xyes; then
cd9a469c 22658 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22659fi
cd9a469c 22660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22661/* end confdefs.h. */
22662
7d9455ce 22663#ifdef HAVE_COMPLEX_H
22664#include <complex.h>
d213114b 22665#endif
7d9455ce 22666#ifdef HAVE_MATH_H
22667#include <math.h>
22668#endif
22669
22670int (*ptr)() = (int (*)())ctanf;
22671
d213114b 22672int
22673main ()
22674{
d213114b 22675 return 0;
22676}
7d9455ce 22677
d213114b 22678_ACEOF
cd9a469c 22679if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22680 gcc_cv_math_func_ctanf=yes
d213114b 22681else
7d9455ce 22682 gcc_cv_math_func_ctanf=no
d213114b 22683fi
cd9a469c 22684rm -f core conftest.err conftest.$ac_objext \
22685 conftest$ac_exeext conftest.$ac_ext
d213114b 22686fi
7d9455ce 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
bd647a17 22690
6affa8e1 22691cat >>confdefs.h <<_ACEOF
22692#define HAVE_CTANF 1
22693_ACEOF
7d9455ce 22694
22695 fi
22696
d213114b 22697
d213114b 22698
d213114b 22699
7d9455ce 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 :
cd9a469c 22703 $as_echo_n "(cached) " >&6
d213114b 22704else
7d9455ce 22705 if test x$gcc_no_link = xyes; then
cd9a469c 22706 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22707fi
cd9a469c 22708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22709/* end confdefs.h. */
22710
7d9455ce 22711#ifdef HAVE_COMPLEX_H
22712#include <complex.h>
22713#endif
22714#ifdef HAVE_MATH_H
22715#include <math.h>
d213114b 22716#endif
7d9455ce 22717
22718int (*ptr)() = (int (*)())ctan;
22719
d213114b 22720int
22721main ()
22722{
d213114b 22723 return 0;
22724}
7d9455ce 22725
d213114b 22726_ACEOF
cd9a469c 22727if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22728 gcc_cv_math_func_ctan=yes
d213114b 22729else
7d9455ce 22730 gcc_cv_math_func_ctan=no
d213114b 22731fi
cd9a469c 22732rm -f core conftest.err conftest.$ac_objext \
22733 conftest$ac_exeext conftest.$ac_ext
d213114b 22734fi
7d9455ce 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
bd647a17 22738
6affa8e1 22739cat >>confdefs.h <<_ACEOF
22740#define HAVE_CTAN 1
22741_ACEOF
7d9455ce 22742
22743 fi
d213114b 22744
d213114b 22745
d213114b 22746
7d9455ce 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 :
cd9a469c 22751 $as_echo_n "(cached) " >&6
d213114b 22752else
7d9455ce 22753 if test x$gcc_no_link = xyes; then
cd9a469c 22754 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22755fi
cd9a469c 22756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22757/* end confdefs.h. */
22758
7d9455ce 22759#ifdef HAVE_COMPLEX_H
22760#include <complex.h>
d213114b 22761#endif
7d9455ce 22762#ifdef HAVE_MATH_H
22763#include <math.h>
22764#endif
22765
22766int (*ptr)() = (int (*)())ctanl;
22767
d213114b 22768int
22769main ()
22770{
d213114b 22771 return 0;
22772}
7d9455ce 22773
d213114b 22774_ACEOF
cd9a469c 22775if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22776 gcc_cv_math_func_ctanl=yes
d213114b 22777else
7d9455ce 22778 gcc_cv_math_func_ctanl=no
d213114b 22779fi
cd9a469c 22780rm -f core conftest.err conftest.$ac_objext \
22781 conftest$ac_exeext conftest.$ac_ext
d213114b 22782fi
7d9455ce 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
bd647a17 22786
6affa8e1 22787cat >>confdefs.h <<_ACEOF
22788#define HAVE_CTANL 1
22789_ACEOF
d213114b 22790
7d9455ce 22791 fi
d213114b 22792
d213114b 22793
7d9455ce 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 :
cd9a469c 22799 $as_echo_n "(cached) " >&6
d213114b 22800else
7d9455ce 22801 if test x$gcc_no_link = xyes; then
cd9a469c 22802 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22803fi
cd9a469c 22804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22805/* end confdefs.h. */
22806
7d9455ce 22807#ifdef HAVE_COMPLEX_H
22808#include <complex.h>
22809#endif
22810#ifdef HAVE_MATH_H
22811#include <math.h>
d213114b 22812#endif
7d9455ce 22813
22814int (*ptr)() = (int (*)())tanhf;
22815
d213114b 22816int
22817main ()
22818{
d213114b 22819 return 0;
22820}
7d9455ce 22821
d213114b 22822_ACEOF
cd9a469c 22823if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22824 gcc_cv_math_func_tanhf=yes
d213114b 22825else
7d9455ce 22826 gcc_cv_math_func_tanhf=no
d213114b 22827fi
cd9a469c 22828rm -f core conftest.err conftest.$ac_objext \
22829 conftest$ac_exeext conftest.$ac_ext
d213114b 22830fi
7d9455ce 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
bd647a17 22834
6affa8e1 22835cat >>confdefs.h <<_ACEOF
22836#define HAVE_TANHF 1
22837_ACEOF
7d9455ce 22838
22839 fi
d213114b 22840
d213114b 22841
d213114b 22842
7d9455ce 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 :
cd9a469c 22847 $as_echo_n "(cached) " >&6
d213114b 22848else
7d9455ce 22849 if test x$gcc_no_link = xyes; then
cd9a469c 22850 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22851fi
cd9a469c 22852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22853/* end confdefs.h. */
22854
7d9455ce 22855#ifdef HAVE_COMPLEX_H
22856#include <complex.h>
d213114b 22857#endif
7d9455ce 22858#ifdef HAVE_MATH_H
22859#include <math.h>
22860#endif
22861
22862int (*ptr)() = (int (*)())tanh;
22863
d213114b 22864int
22865main ()
22866{
d213114b 22867 return 0;
22868}
7d9455ce 22869
d213114b 22870_ACEOF
cd9a469c 22871if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22872 gcc_cv_math_func_tanh=yes
d213114b 22873else
7d9455ce 22874 gcc_cv_math_func_tanh=no
d213114b 22875fi
cd9a469c 22876rm -f core conftest.err conftest.$ac_objext \
22877 conftest$ac_exeext conftest.$ac_ext
d213114b 22878fi
7d9455ce 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
bd647a17 22882
6affa8e1 22883cat >>confdefs.h <<_ACEOF
22884#define HAVE_TANH 1
22885_ACEOF
7d9455ce 22886
22887 fi
22888
d213114b 22889
d213114b 22890
d213114b 22891
7d9455ce 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 :
cd9a469c 22895 $as_echo_n "(cached) " >&6
d213114b 22896else
7d9455ce 22897 if test x$gcc_no_link = xyes; then
cd9a469c 22898 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22899fi
cd9a469c 22900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22901/* end confdefs.h. */
22902
7d9455ce 22903#ifdef HAVE_COMPLEX_H
22904#include <complex.h>
22905#endif
22906#ifdef HAVE_MATH_H
22907#include <math.h>
d213114b 22908#endif
7d9455ce 22909
22910int (*ptr)() = (int (*)())tanhl;
22911
d213114b 22912int
22913main ()
22914{
d213114b 22915 return 0;
22916}
7d9455ce 22917
d213114b 22918_ACEOF
cd9a469c 22919if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22920 gcc_cv_math_func_tanhl=yes
d213114b 22921else
7d9455ce 22922 gcc_cv_math_func_tanhl=no
d213114b 22923fi
cd9a469c 22924rm -f core conftest.err conftest.$ac_objext \
22925 conftest$ac_exeext conftest.$ac_ext
d213114b 22926fi
7d9455ce 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
bd647a17 22930
6affa8e1 22931cat >>confdefs.h <<_ACEOF
22932#define HAVE_TANHL 1
22933_ACEOF
7d9455ce 22934
22935 fi
d213114b 22936
d213114b 22937
d213114b 22938
7d9455ce 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 :
cd9a469c 22943 $as_echo_n "(cached) " >&6
d213114b 22944else
7d9455ce 22945 if test x$gcc_no_link = xyes; then
cd9a469c 22946 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7d9455ce 22947fi
22948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22949/* end confdefs.h. */
22950
22951#ifdef HAVE_COMPLEX_H
22952#include <complex.h>
d213114b 22953#endif
7d9455ce 22954#ifdef HAVE_MATH_H
22955#include <math.h>
22956#endif
22957
22958int (*ptr)() = (int (*)())ctanhf;
22959
d213114b 22960int
22961main ()
22962{
d213114b 22963 return 0;
22964}
7d9455ce 22965
d213114b 22966_ACEOF
cd9a469c 22967if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22968 gcc_cv_math_func_ctanhf=yes
d213114b 22969else
7d9455ce 22970 gcc_cv_math_func_ctanhf=no
d213114b 22971fi
cd9a469c 22972rm -f core conftest.err conftest.$ac_objext \
22973 conftest$ac_exeext conftest.$ac_ext
d213114b 22974fi
7d9455ce 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
bd647a17 22978
6affa8e1 22979cat >>confdefs.h <<_ACEOF
22980#define HAVE_CTANHF 1
22981_ACEOF
d213114b 22982
7d9455ce 22983 fi
d213114b 22984
d213114b 22985
7d9455ce 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 :
cd9a469c 22991 $as_echo_n "(cached) " >&6
d213114b 22992else
7d9455ce 22993 if test x$gcc_no_link = xyes; then
cd9a469c 22994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22995fi
cd9a469c 22996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22997/* end confdefs.h. */
22998
7d9455ce 22999#ifdef HAVE_COMPLEX_H
23000#include <complex.h>
23001#endif
23002#ifdef HAVE_MATH_H
23003#include <math.h>
d213114b 23004#endif
7d9455ce 23005
23006int (*ptr)() = (int (*)())ctanh;
23007
d213114b 23008int
23009main ()
23010{
cd9a469c 23011 return 0;
23012}
7d9455ce 23013
cd9a469c 23014_ACEOF
23015if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23016 gcc_cv_math_func_ctanh=yes
d213114b 23017else
7d9455ce 23018 gcc_cv_math_func_ctanh=no
d213114b 23019fi
cd9a469c 23020rm -f core conftest.err conftest.$ac_objext \
23021 conftest$ac_exeext conftest.$ac_ext
d213114b 23022fi
7d9455ce 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
bd647a17 23026
6affa8e1 23027cat >>confdefs.h <<_ACEOF
23028#define HAVE_CTANH 1
23029_ACEOF
7d9455ce 23030
23031 fi
d213114b 23032
d213114b 23033
d213114b 23034
7d9455ce 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 :
cd9a469c 23039 $as_echo_n "(cached) " >&6
d213114b 23040else
7d9455ce 23041 if test x$gcc_no_link = xyes; then
cd9a469c 23042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23043fi
cd9a469c 23044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23045/* end confdefs.h. */
23046
7d9455ce 23047#ifdef HAVE_COMPLEX_H
23048#include <complex.h>
d213114b 23049#endif
7d9455ce 23050#ifdef HAVE_MATH_H
23051#include <math.h>
23052#endif
23053
23054int (*ptr)() = (int (*)())ctanhl;
23055
d213114b 23056int
23057main ()
23058{
d213114b 23059 return 0;
23060}
7d9455ce 23061
d213114b 23062_ACEOF
cd9a469c 23063if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23064 gcc_cv_math_func_ctanhl=yes
d213114b 23065else
7d9455ce 23066 gcc_cv_math_func_ctanhl=no
d213114b 23067fi
cd9a469c 23068rm -f core conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
d213114b 23070fi
7d9455ce 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
bd647a17 23074
6affa8e1 23075cat >>confdefs.h <<_ACEOF
23076#define HAVE_CTANHL 1
23077_ACEOF
7d9455ce 23078
23079 fi
23080
d213114b 23081
50f0ca0a 23082
50f0ca0a 23083
7d9455ce 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 :
cd9a469c 23087 $as_echo_n "(cached) " >&6
50f0ca0a 23088else
7d9455ce 23089 if test x$gcc_no_link = xyes; then
cd9a469c 23090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23091fi
cd9a469c 23092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50f0ca0a 23093/* end confdefs.h. */
23094
7d9455ce 23095#ifdef HAVE_COMPLEX_H
23096#include <complex.h>
23097#endif
23098#ifdef HAVE_MATH_H
23099#include <math.h>
50f0ca0a 23100#endif
7d9455ce 23101
23102int (*ptr)() = (int (*)())truncf;
23103
d213114b 23104int
23105main ()
23106{
d213114b 23107 return 0;
23108}
7d9455ce 23109
d213114b 23110_ACEOF
cd9a469c 23111if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23112 gcc_cv_math_func_truncf=yes
d213114b 23113else
7d9455ce 23114 gcc_cv_math_func_truncf=no
d213114b 23115fi
cd9a469c 23116rm -f core conftest.err conftest.$ac_objext \
23117 conftest$ac_exeext conftest.$ac_ext
d213114b 23118fi
7d9455ce 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
bd647a17 23122
6affa8e1 23123cat >>confdefs.h <<_ACEOF
23124#define HAVE_TRUNCF 1
23125_ACEOF
7d9455ce 23126
23127 fi
d213114b 23128
d213114b 23129
d213114b 23130
7d9455ce 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 :
cd9a469c 23135 $as_echo_n "(cached) " >&6
d213114b 23136else
7d9455ce 23137 if test x$gcc_no_link = xyes; then
cd9a469c 23138 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23139fi
cd9a469c 23140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23141/* end confdefs.h. */
23142
7d9455ce 23143#ifdef HAVE_COMPLEX_H
23144#include <complex.h>
d213114b 23145#endif
7d9455ce 23146#ifdef HAVE_MATH_H
23147#include <math.h>
23148#endif
23149
23150int (*ptr)() = (int (*)())trunc;
23151
d213114b 23152int
23153main ()
23154{
d213114b 23155 return 0;
23156}
7d9455ce 23157
d213114b 23158_ACEOF
cd9a469c 23159if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23160 gcc_cv_math_func_trunc=yes
d213114b 23161else
7d9455ce 23162 gcc_cv_math_func_trunc=no
d213114b 23163fi
cd9a469c 23164rm -f core conftest.err conftest.$ac_objext \
23165 conftest$ac_exeext conftest.$ac_ext
d213114b 23166fi
7d9455ce 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
bd647a17 23170
6affa8e1 23171cat >>confdefs.h <<_ACEOF
23172#define HAVE_TRUNC 1
23173_ACEOF
d213114b 23174
7d9455ce 23175 fi
d213114b 23176
d213114b 23177
7d9455ce 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 :
cd9a469c 23183 $as_echo_n "(cached) " >&6
d213114b 23184else
7d9455ce 23185 if test x$gcc_no_link = xyes; then
cd9a469c 23186 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23187fi
cd9a469c 23188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23189/* end confdefs.h. */
23190
7d9455ce 23191#ifdef HAVE_COMPLEX_H
23192#include <complex.h>
23193#endif
23194#ifdef HAVE_MATH_H
23195#include <math.h>
d213114b 23196#endif
7d9455ce 23197
23198int (*ptr)() = (int (*)())truncl;
23199
d213114b 23200int
23201main ()
23202{
d213114b 23203 return 0;
23204}
7d9455ce 23205
d213114b 23206_ACEOF
cd9a469c 23207if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23208 gcc_cv_math_func_truncl=yes
d213114b 23209else
7d9455ce 23210 gcc_cv_math_func_truncl=no
d213114b 23211fi
cd9a469c 23212rm -f core conftest.err conftest.$ac_objext \
23213 conftest$ac_exeext conftest.$ac_ext
d213114b 23214fi
7d9455ce 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
bd647a17 23218
6affa8e1 23219cat >>confdefs.h <<_ACEOF
23220#define HAVE_TRUNCL 1
23221_ACEOF
7d9455ce 23222
23223 fi
d213114b 23224
d213114b 23225
d213114b 23226
7d9455ce 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 :
cd9a469c 23231 $as_echo_n "(cached) " >&6
d213114b 23232else
7d9455ce 23233 if test x$gcc_no_link = xyes; then
cd9a469c 23234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23235fi
cd9a469c 23236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23237/* end confdefs.h. */
23238
7d9455ce 23239#ifdef HAVE_COMPLEX_H
23240#include <complex.h>
d213114b 23241#endif
7d9455ce 23242#ifdef HAVE_MATH_H
23243#include <math.h>
23244#endif
23245
23246int (*ptr)() = (int (*)())erff;
23247
d213114b 23248int
23249main ()
23250{
d213114b 23251 return 0;
23252}
7d9455ce 23253
d213114b 23254_ACEOF
cd9a469c 23255if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23256 gcc_cv_math_func_erff=yes
d213114b 23257else
7d9455ce 23258 gcc_cv_math_func_erff=no
d213114b 23259fi
cd9a469c 23260rm -f core conftest.err conftest.$ac_objext \
23261 conftest$ac_exeext conftest.$ac_ext
d213114b 23262fi
7d9455ce 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
bd647a17 23266
6affa8e1 23267cat >>confdefs.h <<_ACEOF
23268#define HAVE_ERFF 1
23269_ACEOF
7d9455ce 23270
23271 fi
23272
d213114b 23273
d213114b 23274
d213114b 23275
7d9455ce 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 :
cd9a469c 23279 $as_echo_n "(cached) " >&6
d213114b 23280else
7d9455ce 23281 if test x$gcc_no_link = xyes; then
cd9a469c 23282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23283fi
cd9a469c 23284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23285/* end confdefs.h. */
23286
7d9455ce 23287#ifdef HAVE_COMPLEX_H
23288#include <complex.h>
23289#endif
23290#ifdef HAVE_MATH_H
23291#include <math.h>
d213114b 23292#endif
7d9455ce 23293
23294int (*ptr)() = (int (*)())erf;
23295
d213114b 23296int
23297main ()
23298{
d213114b 23299 return 0;
23300}
7d9455ce 23301
d213114b 23302_ACEOF
cd9a469c 23303if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23304 gcc_cv_math_func_erf=yes
d213114b 23305else
7d9455ce 23306 gcc_cv_math_func_erf=no
d213114b 23307fi
cd9a469c 23308rm -f core conftest.err conftest.$ac_objext \
23309 conftest$ac_exeext conftest.$ac_ext
d213114b 23310fi
7d9455ce 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
bd647a17 23314
6affa8e1 23315cat >>confdefs.h <<_ACEOF
23316#define HAVE_ERF 1
23317_ACEOF
7d9455ce 23318
23319 fi
d213114b 23320
d213114b 23321
d213114b 23322
7d9455ce 23323
7d9455ce 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 :
cd9a469c 23327 $as_echo_n "(cached) " >&6
d213114b 23328else
7d9455ce 23329 if test x$gcc_no_link = xyes; then
cd9a469c 23330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23331fi
cd9a469c 23332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23333/* end confdefs.h. */
23334
7d9455ce 23335#ifdef HAVE_COMPLEX_H
23336#include <complex.h>
23337#endif
23338#ifdef HAVE_MATH_H
23339#include <math.h>
d213114b 23340#endif
7d9455ce 23341
23342int (*ptr)() = (int (*)())erfcf;
23343
d213114b 23344int
23345main ()
23346{
d213114b 23347 return 0;
23348}
7d9455ce 23349
d213114b 23350_ACEOF
cd9a469c 23351if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23352 gcc_cv_math_func_erfcf=yes
d213114b 23353else
7d9455ce 23354 gcc_cv_math_func_erfcf=no
d213114b 23355fi
cd9a469c 23356rm -f core conftest.err conftest.$ac_objext \
23357 conftest$ac_exeext conftest.$ac_ext
d213114b 23358fi
7d9455ce 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
bd647a17 23362
6affa8e1 23363cat >>confdefs.h <<_ACEOF
23364#define HAVE_ERFCF 1
23365_ACEOF
7d9455ce 23366
23367 fi
d213114b 23368
d213114b 23369
d213114b 23370
7d9455ce 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 :
cd9a469c 23375 $as_echo_n "(cached) " >&6
d213114b 23376else
7d9455ce 23377 if test x$gcc_no_link = xyes; then
cd9a469c 23378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23379fi
cd9a469c 23380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23381/* end confdefs.h. */
23382
7d9455ce 23383#ifdef HAVE_COMPLEX_H
23384#include <complex.h>
d213114b 23385#endif
7d9455ce 23386#ifdef HAVE_MATH_H
23387#include <math.h>
23388#endif
23389
23390int (*ptr)() = (int (*)())erfc;
23391
50f0ca0a 23392int
23393main ()
23394{
50f0ca0a 23395 return 0;
23396}
7d9455ce 23397
50f0ca0a 23398_ACEOF
cd9a469c 23399if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23400 gcc_cv_math_func_erfc=yes
50f0ca0a 23401else
7d9455ce 23402 gcc_cv_math_func_erfc=no
50f0ca0a 23403fi
cd9a469c 23404rm -f core conftest.err conftest.$ac_objext \
23405 conftest$ac_exeext conftest.$ac_ext
50f0ca0a 23406fi
7d9455ce 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
bd647a17 23410
6affa8e1 23411cat >>confdefs.h <<_ACEOF
23412#define HAVE_ERFC 1
23413_ACEOF
7d9455ce 23414
23415 fi
23416
50f0ca0a 23417
50f0ca0a 23418
50f0ca0a 23419
7d9455ce 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 :
cd9a469c 23423 $as_echo_n "(cached) " >&6
158e0e64 23424else
7d9455ce 23425 if test x$gcc_no_link = xyes; then
cd9a469c 23426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23427fi
cd9a469c 23428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23429/* end confdefs.h. */
23430
7d9455ce 23431#ifdef HAVE_COMPLEX_H
23432#include <complex.h>
23433#endif
23434#ifdef HAVE_MATH_H
23435#include <math.h>
158e0e64 23436#endif
7d9455ce 23437
23438int (*ptr)() = (int (*)())erfcl;
23439
158e0e64 23440int
23441main ()
23442{
158e0e64 23443 return 0;
23444}
7d9455ce 23445
158e0e64 23446_ACEOF
cd9a469c 23447if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23448 gcc_cv_math_func_erfcl=yes
158e0e64 23449else
7d9455ce 23450 gcc_cv_math_func_erfcl=no
158e0e64 23451fi
cd9a469c 23452rm -f core conftest.err conftest.$ac_objext \
23453 conftest$ac_exeext conftest.$ac_ext
158e0e64 23454fi
7d9455ce 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
bd647a17 23458
6affa8e1 23459cat >>confdefs.h <<_ACEOF
23460#define HAVE_ERFCL 1
23461_ACEOF
7d9455ce 23462
23463 fi
158e0e64 23464
158e0e64 23465
158e0e64 23466
7d9455ce 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 :
cd9a469c 23471 $as_echo_n "(cached) " >&6
158e0e64 23472else
7d9455ce 23473 if test x$gcc_no_link = xyes; then
cd9a469c 23474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23475fi
cd9a469c 23476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23477/* end confdefs.h. */
23478
7d9455ce 23479#ifdef HAVE_COMPLEX_H
23480#include <complex.h>
158e0e64 23481#endif
7d9455ce 23482#ifdef HAVE_MATH_H
23483#include <math.h>
23484#endif
23485
23486int (*ptr)() = (int (*)())j0f;
23487
158e0e64 23488int
23489main ()
23490{
158e0e64 23491 return 0;
23492}
7d9455ce 23493
158e0e64 23494_ACEOF
cd9a469c 23495if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23496 gcc_cv_math_func_j0f=yes
158e0e64 23497else
7d9455ce 23498 gcc_cv_math_func_j0f=no
d213114b 23499fi
cd9a469c 23500rm -f core conftest.err conftest.$ac_objext \
23501 conftest$ac_exeext conftest.$ac_ext
d213114b 23502fi
7d9455ce 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
bd647a17 23506
6affa8e1 23507cat >>confdefs.h <<_ACEOF
23508#define HAVE_J0F 1
23509_ACEOF
d213114b 23510
7d9455ce 23511 fi
d213114b 23512
d213114b 23513
7d9455ce 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 :
cd9a469c 23519 $as_echo_n "(cached) " >&6
d213114b 23520else
7d9455ce 23521 if test x$gcc_no_link = xyes; then
cd9a469c 23522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23523fi
cd9a469c 23524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23525/* end confdefs.h. */
23526
7d9455ce 23527#ifdef HAVE_COMPLEX_H
23528#include <complex.h>
23529#endif
23530#ifdef HAVE_MATH_H
23531#include <math.h>
d213114b 23532#endif
7d9455ce 23533
23534int (*ptr)() = (int (*)())j0;
23535
d213114b 23536int
23537main ()
23538{
d213114b 23539 return 0;
23540}
7d9455ce 23541
d213114b 23542_ACEOF
cd9a469c 23543if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23544 gcc_cv_math_func_j0=yes
d213114b 23545else
7d9455ce 23546 gcc_cv_math_func_j0=no
d213114b 23547fi
cd9a469c 23548rm -f core conftest.err conftest.$ac_objext \
23549 conftest$ac_exeext conftest.$ac_ext
d213114b 23550fi
7d9455ce 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
bd647a17 23554
6affa8e1 23555cat >>confdefs.h <<_ACEOF
23556#define HAVE_J0 1
23557_ACEOF
7d9455ce 23558
23559 fi
d213114b 23560
d213114b 23561
d213114b 23562
7d9455ce 23563
7d9455ce 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 :
cd9a469c 23567 $as_echo_n "(cached) " >&6
d213114b 23568else
7d9455ce 23569 if test x$gcc_no_link = xyes; then
cd9a469c 23570 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23571fi
cd9a469c 23572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23573/* end confdefs.h. */
23574
7d9455ce 23575#ifdef HAVE_COMPLEX_H
23576#include <complex.h>
23577#endif
23578#ifdef HAVE_MATH_H
23579#include <math.h>
d213114b 23580#endif
7d9455ce 23581
23582int (*ptr)() = (int (*)())j1f;
23583
d213114b 23584int
23585main ()
23586{
d213114b 23587 return 0;
23588}
7d9455ce 23589
d213114b 23590_ACEOF
cd9a469c 23591if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23592 gcc_cv_math_func_j1f=yes
d213114b 23593else
7d9455ce 23594 gcc_cv_math_func_j1f=no
158e0e64 23595fi
cd9a469c 23596rm -f core conftest.err conftest.$ac_objext \
23597 conftest$ac_exeext conftest.$ac_ext
158e0e64 23598fi
7d9455ce 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
bd647a17 23602
6affa8e1 23603cat >>confdefs.h <<_ACEOF
23604#define HAVE_J1F 1
23605_ACEOF
7d9455ce 23606
23607 fi
158e0e64 23608
158e0e64 23609
158e0e64 23610
7d9455ce 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 :
cd9a469c 23615 $as_echo_n "(cached) " >&6
158e0e64 23616else
7d9455ce 23617 if test x$gcc_no_link = xyes; then
cd9a469c 23618 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23619fi
cd9a469c 23620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23621/* end confdefs.h. */
23622
7d9455ce 23623#ifdef HAVE_COMPLEX_H
23624#include <complex.h>
158e0e64 23625#endif
7d9455ce 23626#ifdef HAVE_MATH_H
23627#include <math.h>
23628#endif
23629
23630int (*ptr)() = (int (*)())j1;
23631
158e0e64 23632int
23633main ()
23634{
158e0e64 23635 return 0;
23636}
7d9455ce 23637
158e0e64 23638_ACEOF
cd9a469c 23639if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23640 gcc_cv_math_func_j1=yes
158e0e64 23641else
7d9455ce 23642 gcc_cv_math_func_j1=no
158e0e64 23643fi
cd9a469c 23644rm -f core conftest.err conftest.$ac_objext \
23645 conftest$ac_exeext conftest.$ac_ext
158e0e64 23646fi
7d9455ce 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
bd647a17 23650
6affa8e1 23651cat >>confdefs.h <<_ACEOF
23652#define HAVE_J1 1
23653_ACEOF
158e0e64 23654
7d9455ce 23655 fi
158e0e64 23656
158e0e64 23657
7d9455ce 23658
23659
7d9455ce 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 :
cd9a469c 23663 $as_echo_n "(cached) " >&6
158e0e64 23664else
7d9455ce 23665 if test x$gcc_no_link = xyes; then
cd9a469c 23666 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23667fi
cd9a469c 23668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23669/* end confdefs.h. */
23670
7d9455ce 23671#ifdef HAVE_COMPLEX_H
23672#include <complex.h>
158e0e64 23673#endif
7d9455ce 23674#ifdef HAVE_MATH_H
23675#include <math.h>
23676#endif
23677
23678int (*ptr)() = (int (*)())jnf;
23679
158e0e64 23680int
23681main ()
23682{
158e0e64 23683 return 0;
23684}
7d9455ce 23685
158e0e64 23686_ACEOF
cd9a469c 23687if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23688 gcc_cv_math_func_jnf=yes
158e0e64 23689else
7d9455ce 23690 gcc_cv_math_func_jnf=no
158e0e64 23691fi
cd9a469c 23692rm -f core conftest.err conftest.$ac_objext \
23693 conftest$ac_exeext conftest.$ac_ext
158e0e64 23694fi
7d9455ce 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
bd647a17 23698
6affa8e1 23699cat >>confdefs.h <<_ACEOF
23700#define HAVE_JNF 1
23701_ACEOF
7d9455ce 23702
23703 fi
23704
158e0e64 23705
158e0e64 23706
158e0e64 23707
7d9455ce 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 :
cd9a469c 23711 $as_echo_n "(cached) " >&6
158e0e64 23712else
7d9455ce 23713 if test x$gcc_no_link = xyes; then
cd9a469c 23714 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23715fi
cd9a469c 23716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23717/* end confdefs.h. */
23718
7d9455ce 23719#ifdef HAVE_COMPLEX_H
23720#include <complex.h>
23721#endif
23722#ifdef HAVE_MATH_H
23723#include <math.h>
158e0e64 23724#endif
7d9455ce 23725
23726int (*ptr)() = (int (*)())jn;
23727
158e0e64 23728int
23729main ()
23730{
158e0e64 23731 return 0;
23732}
7d9455ce 23733
158e0e64 23734_ACEOF
cd9a469c 23735if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23736 gcc_cv_math_func_jn=yes
158e0e64 23737else
7d9455ce 23738 gcc_cv_math_func_jn=no
158e0e64 23739fi
cd9a469c 23740rm -f core conftest.err conftest.$ac_objext \
23741 conftest$ac_exeext conftest.$ac_ext
158e0e64 23742fi
7d9455ce 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
bd647a17 23746
6affa8e1 23747cat >>confdefs.h <<_ACEOF
23748#define HAVE_JN 1
23749_ACEOF
7d9455ce 23750
23751 fi
158e0e64 23752
158e0e64 23753
158e0e64 23754
7d9455ce 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 :
cd9a469c 23759 $as_echo_n "(cached) " >&6
158e0e64 23760else
7d9455ce 23761 if test x$gcc_no_link = xyes; then
cd9a469c 23762 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23763fi
cd9a469c 23764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23765/* end confdefs.h. */
23766
7d9455ce 23767#ifdef HAVE_COMPLEX_H
23768#include <complex.h>
158e0e64 23769#endif
7d9455ce 23770#ifdef HAVE_MATH_H
23771#include <math.h>
23772#endif
23773
23774int (*ptr)() = (int (*)())jnl;
23775
158e0e64 23776int
23777main ()
23778{
158e0e64 23779 return 0;
23780}
7d9455ce 23781
158e0e64 23782_ACEOF
cd9a469c 23783if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23784 gcc_cv_math_func_jnl=yes
158e0e64 23785else
7d9455ce 23786 gcc_cv_math_func_jnl=no
158e0e64 23787fi
cd9a469c 23788rm -f core conftest.err conftest.$ac_objext \
23789 conftest$ac_exeext conftest.$ac_ext
158e0e64 23790fi
7d9455ce 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
bd647a17 23794
6affa8e1 23795cat >>confdefs.h <<_ACEOF
23796#define HAVE_JNL 1
23797_ACEOF
158e0e64 23798
7d9455ce 23799 fi
158e0e64 23800
158e0e64 23801
7d9455ce 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 :
cd9a469c 23807 $as_echo_n "(cached) " >&6
158e0e64 23808else
7d9455ce 23809 if test x$gcc_no_link = xyes; then
cd9a469c 23810 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23811fi
cd9a469c 23812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23813/* end confdefs.h. */
23814
7d9455ce 23815#ifdef HAVE_COMPLEX_H
23816#include <complex.h>
23817#endif
23818#ifdef HAVE_MATH_H
23819#include <math.h>
158e0e64 23820#endif
7d9455ce 23821
23822int (*ptr)() = (int (*)())y0f;
23823
158e0e64 23824int
23825main ()
23826{
158e0e64 23827 return 0;
23828}
7d9455ce 23829
158e0e64 23830_ACEOF
cd9a469c 23831if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23832 gcc_cv_math_func_y0f=yes
158e0e64 23833else
7d9455ce 23834 gcc_cv_math_func_y0f=no
158e0e64 23835fi
cd9a469c 23836rm -f core conftest.err conftest.$ac_objext \
23837 conftest$ac_exeext conftest.$ac_ext
158e0e64 23838fi
7d9455ce 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
bd647a17 23842
6affa8e1 23843cat >>confdefs.h <<_ACEOF
23844#define HAVE_Y0F 1
23845_ACEOF
7d9455ce 23846
23847 fi
158e0e64 23848
158e0e64 23849
158e0e64 23850
7d9455ce 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 :
cd9a469c 23855 $as_echo_n "(cached) " >&6
158e0e64 23856else
7d9455ce 23857 if test x$gcc_no_link = xyes; then
cd9a469c 23858 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23859fi
cd9a469c 23860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23861/* end confdefs.h. */
23862
7d9455ce 23863#ifdef HAVE_COMPLEX_H
23864#include <complex.h>
158e0e64 23865#endif
7d9455ce 23866#ifdef HAVE_MATH_H
23867#include <math.h>
23868#endif
23869
23870int (*ptr)() = (int (*)())y0;
23871
158e0e64 23872int
23873main ()
23874{
158e0e64 23875 return 0;
23876}
7d9455ce 23877
158e0e64 23878_ACEOF
cd9a469c 23879if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23880 gcc_cv_math_func_y0=yes
158e0e64 23881else
7d9455ce 23882 gcc_cv_math_func_y0=no
158e0e64 23883fi
cd9a469c 23884rm -f core conftest.err conftest.$ac_objext \
23885 conftest$ac_exeext conftest.$ac_ext
158e0e64 23886fi
7d9455ce 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
bd647a17 23890
6affa8e1 23891cat >>confdefs.h <<_ACEOF
23892#define HAVE_Y0 1
23893_ACEOF
7d9455ce 23894
23895 fi
23896
158e0e64 23897
158e0e64 23898
158e0e64 23899
7d9455ce 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 :
cd9a469c 23903 $as_echo_n "(cached) " >&6
158e0e64 23904else
7d9455ce 23905 if test x$gcc_no_link = xyes; then
cd9a469c 23906 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23907fi
cd9a469c 23908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23909/* end confdefs.h. */
23910
7d9455ce 23911#ifdef HAVE_COMPLEX_H
23912#include <complex.h>
158e0e64 23913#endif
7d9455ce 23914#ifdef HAVE_MATH_H
23915#include <math.h>
23916#endif
23917
23918int (*ptr)() = (int (*)())y1f;
23919
158e0e64 23920int
23921main ()
23922{
158e0e64 23923 return 0;
23924}
7d9455ce 23925
158e0e64 23926_ACEOF
cd9a469c 23927if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23928 gcc_cv_math_func_y1f=yes
158e0e64 23929else
7d9455ce 23930 gcc_cv_math_func_y1f=no
158e0e64 23931fi
cd9a469c 23932rm -f core conftest.err conftest.$ac_objext \
23933 conftest$ac_exeext conftest.$ac_ext
158e0e64 23934fi
7d9455ce 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
bd647a17 23938
6affa8e1 23939cat >>confdefs.h <<_ACEOF
23940#define HAVE_Y1F 1
23941_ACEOF
158e0e64 23942
7d9455ce 23943 fi
158e0e64 23944
158e0e64 23945
7d9455ce 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 :
cd9a469c 23951 $as_echo_n "(cached) " >&6
158e0e64 23952else
7d9455ce 23953 if test x$gcc_no_link = xyes; then
cd9a469c 23954 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23955fi
cd9a469c 23956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23957/* end confdefs.h. */
23958
7d9455ce 23959#ifdef HAVE_COMPLEX_H
23960#include <complex.h>
23961#endif
23962#ifdef HAVE_MATH_H
23963#include <math.h>
158e0e64 23964#endif
7d9455ce 23965
23966int (*ptr)() = (int (*)())y1;
23967
158e0e64 23968int
23969main ()
23970{
158e0e64 23971 return 0;
23972}
7d9455ce 23973
158e0e64 23974_ACEOF
cd9a469c 23975if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23976 gcc_cv_math_func_y1=yes
158e0e64 23977else
7d9455ce 23978 gcc_cv_math_func_y1=no
158e0e64 23979fi
cd9a469c 23980rm -f core conftest.err conftest.$ac_objext \
23981 conftest$ac_exeext conftest.$ac_ext
158e0e64 23982fi
7d9455ce 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
bd647a17 23986
6affa8e1 23987cat >>confdefs.h <<_ACEOF
23988#define HAVE_Y1 1
23989_ACEOF
7d9455ce 23990
23991 fi
158e0e64 23992
158e0e64 23993
158e0e64 23994
7d9455ce 23995
7d9455ce 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 :
cd9a469c 23999 $as_echo_n "(cached) " >&6
7d9455ce 24000else
24001 if test x$gcc_no_link = xyes; then
cd9a469c 24002 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24003fi
cd9a469c 24004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24005/* end confdefs.h. */
24006
7d9455ce 24007#ifdef HAVE_COMPLEX_H
24008#include <complex.h>
24009#endif
24010#ifdef HAVE_MATH_H
24011#include <math.h>
158e0e64 24012#endif
7d9455ce 24013
24014int (*ptr)() = (int (*)())ynf;
24015
158e0e64 24016int
24017main ()
24018{
158e0e64 24019 return 0;
24020}
7d9455ce 24021
158e0e64 24022_ACEOF
cd9a469c 24023if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24024 gcc_cv_math_func_ynf=yes
158e0e64 24025else
7d9455ce 24026 gcc_cv_math_func_ynf=no
158e0e64 24027fi
cd9a469c 24028rm -f core conftest.err conftest.$ac_objext \
24029 conftest$ac_exeext conftest.$ac_ext
158e0e64 24030fi
7d9455ce 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
bd647a17 24034
6affa8e1 24035cat >>confdefs.h <<_ACEOF
24036#define HAVE_YNF 1
24037_ACEOF
7d9455ce 24038
24039 fi
158e0e64 24040
158e0e64 24041
158e0e64 24042
7d9455ce 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 :
cd9a469c 24047 $as_echo_n "(cached) " >&6
158e0e64 24048else
7d9455ce 24049 if test x$gcc_no_link = xyes; then
cd9a469c 24050 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24051fi
cd9a469c 24052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24053/* end confdefs.h. */
24054
7d9455ce 24055#ifdef HAVE_COMPLEX_H
24056#include <complex.h>
158e0e64 24057#endif
7d9455ce 24058#ifdef HAVE_MATH_H
24059#include <math.h>
24060#endif
24061
24062int (*ptr)() = (int (*)())yn;
24063
158e0e64 24064int
24065main ()
24066{
158e0e64 24067 return 0;
24068}
7d9455ce 24069
158e0e64 24070_ACEOF
cd9a469c 24071if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24072 gcc_cv_math_func_yn=yes
158e0e64 24073else
7d9455ce 24074 gcc_cv_math_func_yn=no
158e0e64 24075fi
cd9a469c 24076rm -f core conftest.err conftest.$ac_objext \
24077 conftest$ac_exeext conftest.$ac_ext
158e0e64 24078fi
7d9455ce 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
bd647a17 24082
6affa8e1 24083cat >>confdefs.h <<_ACEOF
24084#define HAVE_YN 1
24085_ACEOF
7d9455ce 24086
24087 fi
24088
158e0e64 24089
158e0e64 24090
158e0e64 24091
7d9455ce 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 :
cd9a469c 24095 $as_echo_n "(cached) " >&6
158e0e64 24096else
7d9455ce 24097 if test x$gcc_no_link = xyes; then
cd9a469c 24098 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24099fi
cd9a469c 24100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24101/* end confdefs.h. */
24102
7d9455ce 24103#ifdef HAVE_COMPLEX_H
24104#include <complex.h>
24105#endif
24106#ifdef HAVE_MATH_H
24107#include <math.h>
158e0e64 24108#endif
7d9455ce 24109
24110int (*ptr)() = (int (*)())ynl;
24111
158e0e64 24112int
24113main ()
24114{
158e0e64 24115 return 0;
24116}
7d9455ce 24117
158e0e64 24118_ACEOF
cd9a469c 24119if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24120 gcc_cv_math_func_ynl=yes
158e0e64 24121else
7d9455ce 24122 gcc_cv_math_func_ynl=no
158e0e64 24123fi
cd9a469c 24124rm -f core conftest.err conftest.$ac_objext \
24125 conftest$ac_exeext conftest.$ac_ext
158e0e64 24126fi
7d9455ce 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
bd647a17 24130
6affa8e1 24131cat >>confdefs.h <<_ACEOF
24132#define HAVE_YNL 1
24133_ACEOF
7d9455ce 24134
24135 fi
158e0e64 24136
158e0e64 24137
158e0e64 24138
7d9455ce 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 :
cd9a469c 24143 $as_echo_n "(cached) " >&6
6d516d29 24144else
7d9455ce 24145 if test x$gcc_no_link = xyes; then
cd9a469c 24146 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 24147fi
cd9a469c 24148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 24149/* end confdefs.h. */
24150
7d9455ce 24151#ifdef HAVE_COMPLEX_H
24152#include <complex.h>
6d516d29 24153#endif
7d9455ce 24154#ifdef HAVE_MATH_H
24155#include <math.h>
24156#endif
24157
24158int (*ptr)() = (int (*)())tgamma;
24159
6d516d29 24160int
24161main ()
24162{
6d516d29 24163 return 0;
24164}
7d9455ce 24165
6d516d29 24166_ACEOF
cd9a469c 24167if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24168 gcc_cv_math_func_tgamma=yes
6d516d29 24169else
7d9455ce 24170 gcc_cv_math_func_tgamma=no
6d516d29 24171fi
cd9a469c 24172rm -f core conftest.err conftest.$ac_objext \
24173 conftest$ac_exeext conftest.$ac_ext
6d516d29 24174fi
7d9455ce 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
bd647a17 24178
6affa8e1 24179cat >>confdefs.h <<_ACEOF
24180#define HAVE_TGAMMA 1
24181_ACEOF
6d516d29 24182
7d9455ce 24183 fi
6d516d29 24184
6d516d29 24185
7d9455ce 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 :
cd9a469c 24191 $as_echo_n "(cached) " >&6
6d516d29 24192else
7d9455ce 24193 if test x$gcc_no_link = xyes; then
cd9a469c 24194 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 24195fi
cd9a469c 24196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 24197/* end confdefs.h. */
24198
7d9455ce 24199#ifdef HAVE_COMPLEX_H
24200#include <complex.h>
24201#endif
24202#ifdef HAVE_MATH_H
24203#include <math.h>
6d516d29 24204#endif
7d9455ce 24205
24206int (*ptr)() = (int (*)())tgammaf;
24207
6d516d29 24208int
24209main ()
24210{
6d516d29 24211 return 0;
24212}
7d9455ce 24213
6d516d29 24214_ACEOF
cd9a469c 24215if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24216 gcc_cv_math_func_tgammaf=yes
6d516d29 24217else
7d9455ce 24218 gcc_cv_math_func_tgammaf=no
6d516d29 24219fi
cd9a469c 24220rm -f core conftest.err conftest.$ac_objext \
24221 conftest$ac_exeext conftest.$ac_ext
6d516d29 24222fi
7d9455ce 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
bd647a17 24226
6affa8e1 24227cat >>confdefs.h <<_ACEOF
24228#define HAVE_TGAMMAF 1
24229_ACEOF
7d9455ce 24230
24231 fi
6d516d29 24232
6d516d29 24233
6d516d29 24234
7d9455ce 24235
7d9455ce 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 :
cd9a469c 24239 $as_echo_n "(cached) " >&6
6d516d29 24240else
7d9455ce 24241 if test x$gcc_no_link = xyes; then
cd9a469c 24242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 24243fi
cd9a469c 24244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 24245/* end confdefs.h. */
24246
7d9455ce 24247#ifdef HAVE_COMPLEX_H
24248#include <complex.h>
24249#endif
24250#ifdef HAVE_MATH_H
24251#include <math.h>
6d516d29 24252#endif
7d9455ce 24253
24254int (*ptr)() = (int (*)())lgamma;
24255
6d516d29 24256int
24257main ()
24258{
6d516d29 24259 return 0;
24260}
7d9455ce 24261
6d516d29 24262_ACEOF
cd9a469c 24263if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24264 gcc_cv_math_func_lgamma=yes
6d516d29 24265else
7d9455ce 24266 gcc_cv_math_func_lgamma=no
6d516d29 24267fi
cd9a469c 24268rm -f core conftest.err conftest.$ac_objext \
24269 conftest$ac_exeext conftest.$ac_ext
6d516d29 24270fi
7d9455ce 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
bd647a17 24274
6affa8e1 24275cat >>confdefs.h <<_ACEOF
24276#define HAVE_LGAMMA 1
24277_ACEOF
7d9455ce 24278
24279 fi
6d516d29 24280
6d516d29 24281
6d516d29 24282
7d9455ce 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 :
cd9a469c 24287 $as_echo_n "(cached) " >&6
6d516d29 24288else
7d9455ce 24289 if test x$gcc_no_link = xyes; then
cd9a469c 24290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 24291fi
cd9a469c 24292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 24293/* end confdefs.h. */
24294
7d9455ce 24295#ifdef HAVE_COMPLEX_H
24296#include <complex.h>
6d516d29 24297#endif
7d9455ce 24298#ifdef HAVE_MATH_H
24299#include <math.h>
24300#endif
24301
24302int (*ptr)() = (int (*)())lgammaf;
24303
6d516d29 24304int
24305main ()
24306{
6d516d29 24307 return 0;
24308}
7d9455ce 24309
6d516d29 24310_ACEOF
cd9a469c 24311if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24312 gcc_cv_math_func_lgammaf=yes
6d516d29 24313else
7d9455ce 24314 gcc_cv_math_func_lgammaf=no
6d516d29 24315fi
cd9a469c 24316rm -f core conftest.err conftest.$ac_objext \
24317 conftest$ac_exeext conftest.$ac_ext
6d516d29 24318fi
7d9455ce 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
bd647a17 24322
6affa8e1 24323cat >>confdefs.h <<_ACEOF
24324#define HAVE_LGAMMAF 1
24325_ACEOF
6d516d29 24326
7d9455ce 24327 fi
6d516d29 24328
6d516d29 24329
89b803c8 24330# Check for GFORTRAN_C99_1.1 funcs
7d9455ce 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 :
89b803c8 24337 $as_echo_n "(cached) " >&6
24338else
7d9455ce 24339 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24345#ifdef HAVE_COMPLEX_H
24346#include <complex.h>
89b803c8 24347#endif
7d9455ce 24348#ifdef HAVE_MATH_H
24349#include <math.h>
24350#endif
24351
24352int (*ptr)() = (int (*)())cacos;
24353
89b803c8 24354int
24355main ()
24356{
89b803c8 24357 return 0;
24358}
7d9455ce 24359
89b803c8 24360_ACEOF
24361if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24362 gcc_cv_math_func_cacos=yes
89b803c8 24363else
7d9455ce 24364 gcc_cv_math_func_cacos=no
89b803c8 24365fi
24366rm -f core conftest.err conftest.$ac_objext \
24367 conftest$ac_exeext conftest.$ac_ext
89b803c8 24368fi
7d9455ce 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
bd647a17 24372
6affa8e1 24373cat >>confdefs.h <<_ACEOF
24374#define HAVE_CACOS 1
24375_ACEOF
89b803c8 24376
7d9455ce 24377 fi
89b803c8 24378
89b803c8 24379
7d9455ce 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 :
89b803c8 24385 $as_echo_n "(cached) " >&6
24386else
7d9455ce 24387 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24393#ifdef HAVE_COMPLEX_H
24394#include <complex.h>
24395#endif
24396#ifdef HAVE_MATH_H
24397#include <math.h>
89b803c8 24398#endif
7d9455ce 24399
24400int (*ptr)() = (int (*)())cacosf;
24401
89b803c8 24402int
24403main ()
24404{
89b803c8 24405 return 0;
24406}
7d9455ce 24407
89b803c8 24408_ACEOF
24409if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24410 gcc_cv_math_func_cacosf=yes
89b803c8 24411else
7d9455ce 24412 gcc_cv_math_func_cacosf=no
89b803c8 24413fi
24414rm -f core conftest.err conftest.$ac_objext \
24415 conftest$ac_exeext conftest.$ac_ext
89b803c8 24416fi
7d9455ce 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
bd647a17 24420
6affa8e1 24421cat >>confdefs.h <<_ACEOF
24422#define HAVE_CACOSF 1
24423_ACEOF
7d9455ce 24424
24425 fi
89b803c8 24426
89b803c8 24427
89b803c8 24428
7d9455ce 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 :
89b803c8 24433 $as_echo_n "(cached) " >&6
24434else
7d9455ce 24435 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24441#ifdef HAVE_COMPLEX_H
24442#include <complex.h>
89b803c8 24443#endif
7d9455ce 24444#ifdef HAVE_MATH_H
24445#include <math.h>
24446#endif
24447
24448int (*ptr)() = (int (*)())cacosh;
24449
89b803c8 24450int
24451main ()
24452{
89b803c8 24453 return 0;
24454}
7d9455ce 24455
89b803c8 24456_ACEOF
24457if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24458 gcc_cv_math_func_cacosh=yes
89b803c8 24459else
7d9455ce 24460 gcc_cv_math_func_cacosh=no
89b803c8 24461fi
24462rm -f core conftest.err conftest.$ac_objext \
24463 conftest$ac_exeext conftest.$ac_ext
89b803c8 24464fi
7d9455ce 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
bd647a17 24468
6affa8e1 24469cat >>confdefs.h <<_ACEOF
24470#define HAVE_CACOSH 1
24471_ACEOF
7d9455ce 24472
24473 fi
24474
89b803c8 24475
89b803c8 24476
89b803c8 24477
7d9455ce 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 :
89b803c8 24481 $as_echo_n "(cached) " >&6
24482else
7d9455ce 24483 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24489#ifdef HAVE_COMPLEX_H
24490#include <complex.h>
24491#endif
24492#ifdef HAVE_MATH_H
24493#include <math.h>
89b803c8 24494#endif
7d9455ce 24495
24496int (*ptr)() = (int (*)())cacoshf;
24497
89b803c8 24498int
24499main ()
24500{
89b803c8 24501 return 0;
24502}
7d9455ce 24503
89b803c8 24504_ACEOF
24505if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24506 gcc_cv_math_func_cacoshf=yes
89b803c8 24507else
7d9455ce 24508 gcc_cv_math_func_cacoshf=no
89b803c8 24509fi
24510rm -f core conftest.err conftest.$ac_objext \
24511 conftest$ac_exeext conftest.$ac_ext
89b803c8 24512fi
7d9455ce 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
bd647a17 24516
6affa8e1 24517cat >>confdefs.h <<_ACEOF
24518#define HAVE_CACOSHF 1
24519_ACEOF
7d9455ce 24520
24521 fi
89b803c8 24522
89b803c8 24523
89b803c8 24524
7d9455ce 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 :
89b803c8 24529 $as_echo_n "(cached) " >&6
24530else
7d9455ce 24531 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24537#ifdef HAVE_COMPLEX_H
24538#include <complex.h>
89b803c8 24539#endif
7d9455ce 24540#ifdef HAVE_MATH_H
24541#include <math.h>
24542#endif
24543
24544int (*ptr)() = (int (*)())cacoshl;
24545
89b803c8 24546int
24547main ()
24548{
89b803c8 24549 return 0;
24550}
7d9455ce 24551
89b803c8 24552_ACEOF
24553if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24554 gcc_cv_math_func_cacoshl=yes
89b803c8 24555else
7d9455ce 24556 gcc_cv_math_func_cacoshl=no
89b803c8 24557fi
24558rm -f core conftest.err conftest.$ac_objext \
24559 conftest$ac_exeext conftest.$ac_ext
89b803c8 24560fi
7d9455ce 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
bd647a17 24564
6affa8e1 24565cat >>confdefs.h <<_ACEOF
24566#define HAVE_CACOSHL 1
24567_ACEOF
89b803c8 24568
7d9455ce 24569 fi
89b803c8 24570
89b803c8 24571
7d9455ce 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 :
89b803c8 24577 $as_echo_n "(cached) " >&6
24578else
7d9455ce 24579 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24585#ifdef HAVE_COMPLEX_H
24586#include <complex.h>
24587#endif
24588#ifdef HAVE_MATH_H
24589#include <math.h>
89b803c8 24590#endif
7d9455ce 24591
24592int (*ptr)() = (int (*)())cacosl;
24593
89b803c8 24594int
24595main ()
24596{
89b803c8 24597 return 0;
24598}
7d9455ce 24599
89b803c8 24600_ACEOF
24601if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24602 gcc_cv_math_func_cacosl=yes
89b803c8 24603else
7d9455ce 24604 gcc_cv_math_func_cacosl=no
89b803c8 24605fi
24606rm -f core conftest.err conftest.$ac_objext \
24607 conftest$ac_exeext conftest.$ac_ext
89b803c8 24608fi
7d9455ce 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
bd647a17 24612
6affa8e1 24613cat >>confdefs.h <<_ACEOF
24614#define HAVE_CACOSL 1
24615_ACEOF
7d9455ce 24616
24617 fi
89b803c8 24618
89b803c8 24619
89b803c8 24620
7d9455ce 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 :
89b803c8 24625 $as_echo_n "(cached) " >&6
24626else
7d9455ce 24627 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24633#ifdef HAVE_COMPLEX_H
24634#include <complex.h>
89b803c8 24635#endif
7d9455ce 24636#ifdef HAVE_MATH_H
24637#include <math.h>
24638#endif
24639
24640int (*ptr)() = (int (*)())casin;
24641
89b803c8 24642int
24643main ()
24644{
89b803c8 24645 return 0;
24646}
7d9455ce 24647
89b803c8 24648_ACEOF
24649if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24650 gcc_cv_math_func_casin=yes
89b803c8 24651else
7d9455ce 24652 gcc_cv_math_func_casin=no
89b803c8 24653fi
24654rm -f core conftest.err conftest.$ac_objext \
24655 conftest$ac_exeext conftest.$ac_ext
89b803c8 24656fi
7d9455ce 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
bd647a17 24660
6affa8e1 24661cat >>confdefs.h <<_ACEOF
24662#define HAVE_CASIN 1
24663_ACEOF
7d9455ce 24664
24665 fi
24666
89b803c8 24667
89b803c8 24668
89b803c8 24669
7d9455ce 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 :
89b803c8 24673 $as_echo_n "(cached) " >&6
24674else
7d9455ce 24675 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24681#ifdef HAVE_COMPLEX_H
24682#include <complex.h>
24683#endif
24684#ifdef HAVE_MATH_H
24685#include <math.h>
89b803c8 24686#endif
7d9455ce 24687
24688int (*ptr)() = (int (*)())casinf;
24689
89b803c8 24690int
24691main ()
24692{
89b803c8 24693 return 0;
24694}
7d9455ce 24695
89b803c8 24696_ACEOF
24697if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24698 gcc_cv_math_func_casinf=yes
89b803c8 24699else
7d9455ce 24700 gcc_cv_math_func_casinf=no
89b803c8 24701fi
24702rm -f core conftest.err conftest.$ac_objext \
24703 conftest$ac_exeext conftest.$ac_ext
89b803c8 24704fi
7d9455ce 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
bd647a17 24708
6affa8e1 24709cat >>confdefs.h <<_ACEOF
24710#define HAVE_CASINF 1
24711_ACEOF
7d9455ce 24712
24713 fi
89b803c8 24714
89b803c8 24715
89b803c8 24716
7d9455ce 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 :
89b803c8 24721 $as_echo_n "(cached) " >&6
24722else
7d9455ce 24723 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24729#ifdef HAVE_COMPLEX_H
24730#include <complex.h>
89b803c8 24731#endif
7d9455ce 24732#ifdef HAVE_MATH_H
24733#include <math.h>
24734#endif
24735
24736int (*ptr)() = (int (*)())casinh;
24737
89b803c8 24738int
24739main ()
24740{
89b803c8 24741 return 0;
24742}
7d9455ce 24743
89b803c8 24744_ACEOF
24745if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24746 gcc_cv_math_func_casinh=yes
89b803c8 24747else
7d9455ce 24748 gcc_cv_math_func_casinh=no
89b803c8 24749fi
24750rm -f core conftest.err conftest.$ac_objext \
24751 conftest$ac_exeext conftest.$ac_ext
89b803c8 24752fi
7d9455ce 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
bd647a17 24756
6affa8e1 24757cat >>confdefs.h <<_ACEOF
24758#define HAVE_CASINH 1
24759_ACEOF
89b803c8 24760
7d9455ce 24761 fi
89b803c8 24762
89b803c8 24763
7d9455ce 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 :
89b803c8 24769 $as_echo_n "(cached) " >&6
24770else
7d9455ce 24771 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24777#ifdef HAVE_COMPLEX_H
24778#include <complex.h>
24779#endif
24780#ifdef HAVE_MATH_H
24781#include <math.h>
89b803c8 24782#endif
7d9455ce 24783
24784int (*ptr)() = (int (*)())casinhf;
24785
89b803c8 24786int
24787main ()
24788{
89b803c8 24789 return 0;
24790}
7d9455ce 24791
89b803c8 24792_ACEOF
24793if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24794 gcc_cv_math_func_casinhf=yes
89b803c8 24795else
7d9455ce 24796 gcc_cv_math_func_casinhf=no
89b803c8 24797fi
24798rm -f core conftest.err conftest.$ac_objext \
24799 conftest$ac_exeext conftest.$ac_ext
89b803c8 24800fi
7d9455ce 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
bd647a17 24804
6affa8e1 24805cat >>confdefs.h <<_ACEOF
24806#define HAVE_CASINHF 1
24807_ACEOF
7d9455ce 24808
24809 fi
89b803c8 24810
89b803c8 24811
89b803c8 24812
7d9455ce 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 :
89b803c8 24817 $as_echo_n "(cached) " >&6
24818else
7d9455ce 24819 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24825#ifdef HAVE_COMPLEX_H
24826#include <complex.h>
89b803c8 24827#endif
7d9455ce 24828#ifdef HAVE_MATH_H
24829#include <math.h>
24830#endif
24831
24832int (*ptr)() = (int (*)())casinhl;
24833
89b803c8 24834int
24835main ()
24836{
89b803c8 24837 return 0;
24838}
7d9455ce 24839
89b803c8 24840_ACEOF
24841if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24842 gcc_cv_math_func_casinhl=yes
89b803c8 24843else
7d9455ce 24844 gcc_cv_math_func_casinhl=no
89b803c8 24845fi
24846rm -f core conftest.err conftest.$ac_objext \
24847 conftest$ac_exeext conftest.$ac_ext
89b803c8 24848fi
7d9455ce 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
bd647a17 24852
6affa8e1 24853cat >>confdefs.h <<_ACEOF
24854#define HAVE_CASINHL 1
24855_ACEOF
7d9455ce 24856
24857 fi
24858
89b803c8 24859
89b803c8 24860
89b803c8 24861
7d9455ce 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 :
89b803c8 24865 $as_echo_n "(cached) " >&6
24866else
7d9455ce 24867 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24873#ifdef HAVE_COMPLEX_H
24874#include <complex.h>
24875#endif
24876#ifdef HAVE_MATH_H
24877#include <math.h>
89b803c8 24878#endif
7d9455ce 24879
24880int (*ptr)() = (int (*)())casinl;
24881
89b803c8 24882int
24883main ()
24884{
89b803c8 24885 return 0;
24886}
7d9455ce 24887
89b803c8 24888_ACEOF
24889if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24890 gcc_cv_math_func_casinl=yes
89b803c8 24891else
7d9455ce 24892 gcc_cv_math_func_casinl=no
89b803c8 24893fi
24894rm -f core conftest.err conftest.$ac_objext \
24895 conftest$ac_exeext conftest.$ac_ext
89b803c8 24896fi
7d9455ce 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
bd647a17 24900
6affa8e1 24901cat >>confdefs.h <<_ACEOF
24902#define HAVE_CASINL 1
24903_ACEOF
7d9455ce 24904
24905 fi
89b803c8 24906
89b803c8 24907
89b803c8 24908
7d9455ce 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 :
89b803c8 24913 $as_echo_n "(cached) " >&6
24914else
7d9455ce 24915 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24921#ifdef HAVE_COMPLEX_H
24922#include <complex.h>
89b803c8 24923#endif
7d9455ce 24924#ifdef HAVE_MATH_H
24925#include <math.h>
24926#endif
24927
24928int (*ptr)() = (int (*)())catan;
24929
89b803c8 24930int
24931main ()
24932{
89b803c8 24933 return 0;
24934}
7d9455ce 24935
89b803c8 24936_ACEOF
24937if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24938 gcc_cv_math_func_catan=yes
89b803c8 24939else
7d9455ce 24940 gcc_cv_math_func_catan=no
89b803c8 24941fi
24942rm -f core conftest.err conftest.$ac_objext \
24943 conftest$ac_exeext conftest.$ac_ext
89b803c8 24944fi
7d9455ce 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
bd647a17 24948
6affa8e1 24949cat >>confdefs.h <<_ACEOF
24950#define HAVE_CATAN 1
24951_ACEOF
89b803c8 24952
7d9455ce 24953 fi
89b803c8 24954
89b803c8 24955
7d9455ce 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 :
89b803c8 24961 $as_echo_n "(cached) " >&6
24962else
7d9455ce 24963 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 24969#ifdef HAVE_COMPLEX_H
24970#include <complex.h>
24971#endif
24972#ifdef HAVE_MATH_H
24973#include <math.h>
89b803c8 24974#endif
7d9455ce 24975
24976int (*ptr)() = (int (*)())catanf;
24977
89b803c8 24978int
24979main ()
24980{
89b803c8 24981 return 0;
24982}
7d9455ce 24983
89b803c8 24984_ACEOF
24985if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24986 gcc_cv_math_func_catanf=yes
89b803c8 24987else
7d9455ce 24988 gcc_cv_math_func_catanf=no
89b803c8 24989fi
24990rm -f core conftest.err conftest.$ac_objext \
24991 conftest$ac_exeext conftest.$ac_ext
89b803c8 24992fi
7d9455ce 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
bd647a17 24996
6affa8e1 24997cat >>confdefs.h <<_ACEOF
24998#define HAVE_CATANF 1
24999_ACEOF
7d9455ce 25000
25001 fi
89b803c8 25002
89b803c8 25003
89b803c8 25004
7d9455ce 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 :
89b803c8 25009 $as_echo_n "(cached) " >&6
25010else
7d9455ce 25011 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 25017#ifdef HAVE_COMPLEX_H
25018#include <complex.h>
89b803c8 25019#endif
7d9455ce 25020#ifdef HAVE_MATH_H
25021#include <math.h>
25022#endif
25023
25024int (*ptr)() = (int (*)())catanh;
25025
89b803c8 25026int
25027main ()
25028{
89b803c8 25029 return 0;
25030}
7d9455ce 25031
89b803c8 25032_ACEOF
25033if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25034 gcc_cv_math_func_catanh=yes
89b803c8 25035else
7d9455ce 25036 gcc_cv_math_func_catanh=no
89b803c8 25037fi
25038rm -f core conftest.err conftest.$ac_objext \
25039 conftest$ac_exeext conftest.$ac_ext
89b803c8 25040fi
7d9455ce 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
bd647a17 25044
6affa8e1 25045cat >>confdefs.h <<_ACEOF
25046#define HAVE_CATANH 1
25047_ACEOF
7d9455ce 25048
25049 fi
25050
89b803c8 25051
89b803c8 25052
89b803c8 25053
7d9455ce 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 :
89b803c8 25057 $as_echo_n "(cached) " >&6
25058else
7d9455ce 25059 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 25065#ifdef HAVE_COMPLEX_H
25066#include <complex.h>
25067#endif
25068#ifdef HAVE_MATH_H
25069#include <math.h>
89b803c8 25070#endif
7d9455ce 25071
25072int (*ptr)() = (int (*)())catanhf;
25073
89b803c8 25074int
25075main ()
25076{
89b803c8 25077 return 0;
25078}
7d9455ce 25079
89b803c8 25080_ACEOF
25081if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25082 gcc_cv_math_func_catanhf=yes
89b803c8 25083else
7d9455ce 25084 gcc_cv_math_func_catanhf=no
89b803c8 25085fi
25086rm -f core conftest.err conftest.$ac_objext \
25087 conftest$ac_exeext conftest.$ac_ext
89b803c8 25088fi
7d9455ce 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
bd647a17 25092
6affa8e1 25093cat >>confdefs.h <<_ACEOF
25094#define HAVE_CATANHF 1
25095_ACEOF
7d9455ce 25096
25097 fi
89b803c8 25098
89b803c8 25099
89b803c8 25100
7d9455ce 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 :
89b803c8 25105 $as_echo_n "(cached) " >&6
25106else
7d9455ce 25107 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 25113#ifdef HAVE_COMPLEX_H
25114#include <complex.h>
89b803c8 25115#endif
7d9455ce 25116#ifdef HAVE_MATH_H
25117#include <math.h>
25118#endif
25119
25120int (*ptr)() = (int (*)())catanhl;
25121
89b803c8 25122int
25123main ()
25124{
89b803c8 25125 return 0;
25126}
7d9455ce 25127
89b803c8 25128_ACEOF
25129if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25130 gcc_cv_math_func_catanhl=yes
89b803c8 25131else
7d9455ce 25132 gcc_cv_math_func_catanhl=no
89b803c8 25133fi
25134rm -f core conftest.err conftest.$ac_objext \
25135 conftest$ac_exeext conftest.$ac_ext
89b803c8 25136fi
7d9455ce 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
bd647a17 25140
6affa8e1 25141cat >>confdefs.h <<_ACEOF
25142#define HAVE_CATANHL 1
25143_ACEOF
89b803c8 25144
7d9455ce 25145 fi
89b803c8 25146
89b803c8 25147
7d9455ce 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 :
89b803c8 25153 $as_echo_n "(cached) " >&6
25154else
7d9455ce 25155 if test x$gcc_no_link = xyes; then
89b803c8 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
7d9455ce 25161#ifdef HAVE_COMPLEX_H
25162#include <complex.h>
25163#endif
25164#ifdef HAVE_MATH_H
25165#include <math.h>
89b803c8 25166#endif
7d9455ce 25167
25168int (*ptr)() = (int (*)())catanl;
25169
89b803c8 25170int
25171main ()
25172{
89b803c8 25173 return 0;
25174}
7d9455ce 25175
89b803c8 25176_ACEOF
25177if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25178 gcc_cv_math_func_catanl=yes
89b803c8 25179else
7d9455ce 25180 gcc_cv_math_func_catanl=no
89b803c8 25181fi
25182rm -f core conftest.err conftest.$ac_objext \
25183 conftest$ac_exeext conftest.$ac_ext
89b803c8 25184fi
7d9455ce 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
bd647a17 25188
6affa8e1 25189cat >>confdefs.h <<_ACEOF
25190#define HAVE_CATANL 1
25191_ACEOF
89b803c8 25192
7d9455ce 25193 fi
89b803c8 25194
25195
839904a0 25196# On AIX, clog is present in libm as __clog
cd9a469c 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
62a413d5 25201else
25202 ac_check_lib_save_LIBS=$LIBS
25203LIBS="-lm $LIBS"
25204if test x$gcc_no_link = xyes; then
cd9a469c 25205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
62a413d5 25206fi
cd9a469c 25207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62a413d5 25208/* end confdefs.h. */
25209
cd9a469c 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. */
62a413d5 25213#ifdef __cplusplus
25214extern "C"
25215#endif
62a413d5 25216char __clog ();
25217int
25218main ()
25219{
cd9a469c 25220return __clog ();
62a413d5 25221 ;
25222 return 0;
25223}
25224_ACEOF
cd9a469c 25225if ac_fn_c_try_link "$LINENO"; then :
62a413d5 25226 ac_cv_lib_m___clog=yes
25227else
cd9a469c 25228 ac_cv_lib_m___clog=no
62a413d5 25229fi
cd9a469c 25230rm -f core conftest.err conftest.$ac_objext \
25231 conftest$ac_exeext conftest.$ac_ext
62a413d5 25232LIBS=$ac_check_lib_save_LIBS
25233fi
cd9a469c 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 :
62a413d5 25237
cd9a469c 25238$as_echo "#define HAVE_CLOG 1" >>confdefs.h
62a413d5 25239
25240fi
25241
25242
daad4fd5 25243# Check whether the system has a working stat()
25244
cd9a469c 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
daad4fd5 25249else
25250
cd9a469c 25251 if test "$cross_compiling" = yes; then :
daad4fd5 25252
25253case "${target}" in
6992582a 25254 *mingw*) libgfor_cv_have_working_stat=no ;;
25255 *) libgfor_cv_have_working_stat=yes;;
daad4fd5 25256esac
25257else
cd9a469c 25258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
daad4fd5 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
cd9a469c 25282if ac_fn_c_try_run "$LINENO"; then :
6992582a 25283 libgfor_cv_have_working_stat=yes
daad4fd5 25284else
cd9a469c 25285 libgfor_cv_have_working_stat=no
daad4fd5 25286fi
cd9a469c 25287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25288 conftest.$ac_objext conftest.beam conftest.$ac_ext
daad4fd5 25289fi
cd9a469c 25290
daad4fd5 25291fi
cd9a469c 25292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25293$as_echo "$libgfor_cv_have_working_stat" >&6; }
6992582a 25294if test x"$libgfor_cv_have_working_stat" = xyes; then
daad4fd5 25295
cd9a469c 25296$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
daad4fd5 25297
25298fi
25299
3b99ec70 25300# Check whether __mingw_snprintf() is present
25301
cd9a469c 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
3b99ec70 25306else
25307
25308 if test x$gcc_no_link = xyes; then
cd9a469c 25309 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
3b99ec70 25310fi
cd9a469c 25311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3b99ec70 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
cd9a469c 25327if ac_fn_c_try_link "$LINENO"; then :
6992582a 25328 eval "libgfor_cv_have_mingw_snprintf=yes"
3b99ec70 25329else
cd9a469c 25330 eval "libgfor_cv_have_mingw_snprintf=no"
3b99ec70 25331fi
cd9a469c 25332rm -f core conftest.err conftest.$ac_objext \
25333 conftest$ac_exeext conftest.$ac_ext
3b99ec70 25334
25335fi
cd9a469c 25336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25337$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
6992582a 25338 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
3b99ec70 25339
cd9a469c 25340$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
3b99ec70 25341
25342 fi
25343
25344
d9d975ae 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
87969c8c 25359
25360 LIBQUADSPEC=
d9d975ae 25361
25362 if test "x$enable_libquadmath_support" != xno; then
25363
87969c8c 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
9af9660c 25370 if test x$gcc_no_link = xyes; then
25371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 25372/* end confdefs.h. */
25373
9af9660c 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 }
87969c8c 25392
25393int
25394main ()
25395{
25396
9af9660c 25397 foo (1.2Q);
25398 bar (1.2Q);
87969c8c 25399
9af9660c 25400 ;
25401 return 0;
25402}
25403_ACEOF
25404if ac_fn_c_try_compile "$LINENO"; then :
87969c8c 25405
9af9660c 25406 libgfor_cv_have_float128=yes
87969c8c 25407
9af9660c 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);
87969c8c 25446
25447 ;
25448 return 0;
25449}
25450_ACEOF
25451if ac_fn_c_try_link "$LINENO"; then :
9af9660c 25452
25453 libgfor_cv_have_float128=yes
25454
87969c8c 25455else
9af9660c 25456
25457 libgfor_cv_have_float128=no
25458
87969c8c 25459fi
25460rm -f core conftest.err conftest.$ac_objext \
25461 conftest$ac_exeext conftest.$ac_ext
9af9660c 25462fi
87969c8c 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
b14cf757 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; }
87969c8c 25475if test "${libgfor_cv_have_as_needed+set}" = set; then :
25476 $as_echo_n "(cached) " >&6
25477else
25478
b14cf757 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"
87969c8c 25483 save_LDFLAGS="$LDFLAGS"
b14cf757 25484 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
87969c8c 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"
b14cf757 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
87969c8c 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
b14cf757 25548 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
87969c8c 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
d9d975ae 25562 else
25563 # for --disable-quadmath
25564 LIBQUADLIB=
25565 LIBQUADLIB_DEP=
25566 LIBQUADINCLUDE=
25567 fi
87969c8c 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
8c84a5de 25584# Check for GNU libc feenableexcept
cd9a469c 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
8c84a5de 25589else
25590 ac_check_lib_save_LIBS=$LIBS
25591LIBS="-lm $LIBS"
25592if test x$gcc_no_link = xyes; then
cd9a469c 25593 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8c84a5de 25594fi
cd9a469c 25595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8c84a5de 25596/* end confdefs.h. */
25597
cd9a469c 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. */
8c84a5de 25601#ifdef __cplusplus
25602extern "C"
25603#endif
8c84a5de 25604char feenableexcept ();
25605int
25606main ()
25607{
cd9a469c 25608return feenableexcept ();
8c84a5de 25609 ;
25610 return 0;
25611}
25612_ACEOF
cd9a469c 25613if ac_fn_c_try_link "$LINENO"; then :
8c84a5de 25614 ac_cv_lib_m_feenableexcept=yes
25615else
cd9a469c 25616 ac_cv_lib_m_feenableexcept=no
8c84a5de 25617fi
cd9a469c 25618rm -f core conftest.err conftest.$ac_objext \
25619 conftest$ac_exeext conftest.$ac_ext
8c84a5de 25620LIBS=$ac_check_lib_save_LIBS
25621fi
cd9a469c 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 :
8c84a5de 25625 have_feenableexcept=yes
cd9a469c 25626$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
aaa798ba 25627
25628fi
25629
aaa798ba 25630
126b6848 25631# At least for glibc, clock_gettime is in librt. But don't
d90d0997 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.
20dc315f 25636if test "$ac_cv_func_clock_gettime" = no; then
a2c0dc0f 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 :
a2c0dc0f 25677
d90d0997 25678$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
a2c0dc0f 25679
25680fi
25681
25682fi
25683
cd9a469c 25684# Check for SysV fpsetmask
aaa798ba 25685
cd9a469c 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
aaa798ba 25691
cd9a469c 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. */
aaa798ba 25697
cd9a469c 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 */
aaa798ba 25704int
25705main ()
25706{
cd9a469c 25707fpsetmask(0);
aaa798ba 25708 ;
25709 return 0;
25710}
25711_ACEOF
cd9a469c 25712if ac_fn_c_try_link "$LINENO"; then :
25713 eval "libgfor_cv_have_fpsetmask=yes"
aaa798ba 25714else
cd9a469c 25715 eval "libgfor_cv_have_fpsetmask=no"
25716fi
25717rm -f core conftest.err conftest.$ac_objext \
25718 conftest$ac_exeext conftest.$ac_ext
aaa798ba 25719
aaa798ba 25720fi
cd9a469c 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
b00fa2cf 25724 have_fpsetmask=yes
cd9a469c 25725
25726$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25727
25728 fi
25729
dd81f5d9 25730ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
c4d9d1ea 25731#ifdef HAVE_IEEEFP_H
dd81f5d9 25732#include <ieeefp.h>
c4d9d1ea 25733#endif
dd81f5d9 25734#include <math.h>
25735
f1fd8f6e 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
dd81f5d9 25745ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
c4d9d1ea 25746#ifdef HAVE_IEEEFP_H
dd81f5d9 25747#include <ieeefp.h>
c4d9d1ea 25748#endif
dd81f5d9 25749#include <math.h>
25750
f1fd8f6e 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
eb429e06 25759fi
25760
dd81f5d9 25761ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
c4d9d1ea 25762#ifdef HAVE_IEEEFP_H
dd81f5d9 25763#include <ieeefp.h>
c4d9d1ea 25764#endif
dd81f5d9 25765#include <math.h>
25766
eb429e06 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
dd81f5d9 25776ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
c4d9d1ea 25777#ifdef HAVE_IEEEFP_H
dd81f5d9 25778#include <ieeefp.h>
c4d9d1ea 25779#endif
dd81f5d9 25780#include <math.h>
25781
eb429e06 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
f1fd8f6e 25790fi
25791
cd9a469c 25792
53b9b372 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
cd9a469c 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
aaa798ba 25815fi
cd9a469c 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 :
aaa798ba 25819 have_fp_enable=yes
cd9a469c 25820$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
aaa798ba 25821
25822fi
25823
25824
8c84a5de 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
cd9a469c 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;}
d566c3e0 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;}
8c84a5de 25833FPU_HOST_HEADER=config/${fpu_host}.h
25834
25835
d566c3e0 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
72934c53 25847# Some targets require additional compiler options for IEEE compatibility.
25848IEEE_FLAGS="${ieee_flags}"
25849
25850
d78db4a0 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
7b6cb5bd 25901# Check out attribute support.
25902
cd9a469c 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
7b6cb5bd 25907else
25908
25909 save_CFLAGS="$CFLAGS"
25910 CFLAGS="$CFLAGS -Werror"
cd9a469c 25911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7b6cb5bd 25912/* end confdefs.h. */
25913void __attribute__((visibility("hidden"))) foo(void) { }
25914int
25915main ()
25916{
25917
25918 ;
25919 return 0;
25920}
25921_ACEOF
cd9a469c 25922if ac_fn_c_try_compile "$LINENO"; then :
6992582a 25923 libgfor_cv_have_attribute_visibility=yes
7b6cb5bd 25924else
cd9a469c 25925 libgfor_cv_have_attribute_visibility=no
7b6cb5bd 25926fi
cd9a469c 25927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7b6cb5bd 25928 CFLAGS="$save_CFLAGS"
25929fi
cd9a469c 25930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
25931$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6992582a 25932 if test $libgfor_cv_have_attribute_visibility = yes; then
7b6cb5bd 25933
cd9a469c 25934$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7b6cb5bd 25935
25936 fi
25937
cd9a469c 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
7b6cb5bd 25942else
25943
b52ee437 25944 if test x$gcc_no_link = xyes; then
cd9a469c 25945 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 25946fi
cd9a469c 25947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7b6cb5bd 25948/* end confdefs.h. */
25949
7b6cb5bd 25950void foo(void) { }
5a2b0c34 25951extern void bar(void) __attribute__((alias("foo")));
7b6cb5bd 25952int
25953main ()
25954{
25955bar();
25956 ;
25957 return 0;
25958}
25959_ACEOF
cd9a469c 25960if ac_fn_c_try_link "$LINENO"; then :
6992582a 25961 libgfor_cv_have_attribute_alias=yes
7b6cb5bd 25962else
cd9a469c 25963 libgfor_cv_have_attribute_alias=no
7b6cb5bd 25964fi
cd9a469c 25965rm -f core conftest.err conftest.$ac_objext \
25966 conftest$ac_exeext conftest.$ac_ext
7b6cb5bd 25967fi
cd9a469c 25968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
25969$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6992582a 25970 if test $libgfor_cv_have_attribute_alias = yes; then
7b6cb5bd 25971
cd9a469c 25972$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7b6cb5bd 25973
25974 fi
25975
60c514ba 25976# Check out sync builtins support.
25977
cd9a469c 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
60c514ba 25982else
25983
25984 if test x$gcc_no_link = xyes; then
cd9a469c 25985 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
60c514ba 25986fi
cd9a469c 25987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60c514ba 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
cd9a469c 26000if ac_fn_c_try_link "$LINENO"; then :
6992582a 26001 libgfor_cv_have_sync_fetch_and_add=yes
60c514ba 26002else
cd9a469c 26003 libgfor_cv_have_sync_fetch_and_add=no
60c514ba 26004fi
cd9a469c 26005rm -f core conftest.err conftest.$ac_objext \
26006 conftest$ac_exeext conftest.$ac_ext
60c514ba 26007fi
cd9a469c 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; }
6992582a 26010 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
60c514ba 26011
cd9a469c 26012$as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
60c514ba 26013
26014 fi
26015
04c14146 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
1d9726df 26062# Check out weakref support.
60c514ba 26063
1d9726df 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 :
cd9a469c 26067 $as_echo_n "(cached) " >&6
60c514ba 26068else
26069
1d9726df 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
60c514ba 26076/* end confdefs.h. */
b9a8e1d9 26077
1d9726df 26078static int mytoto (int) __attribute__((__weakref__("toto")));
b9a8e1d9 26079
60c514ba 26080int
26081main ()
26082{
1d9726df 26083return (mytoto != 0);
60c514ba 26084 ;
26085 return 0;
26086}
26087_ACEOF
1d9726df 26088if ac_fn_c_try_link "$LINENO"; then :
26089 libgfor_cv_have_weakref=yes
60c514ba 26090else
1d9726df 26091 libgfor_cv_have_weakref=no
60c514ba 26092fi
1d9726df 26093rm -f core conftest.err conftest.$ac_objext \
26094 conftest$ac_exeext conftest.$ac_ext
26095 CFLAGS="$save_CFLAGS"
60c514ba 26096fi
1d9726df 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
60c514ba 26100
1d9726df 26101$as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
60c514ba 26102
26103 fi
26104
1dc95e51 26105# Various other checks on target
26106
cd9a469c 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
1dc95e51 26111else
26112
cd9a469c 26113 if test "$cross_compiling" = yes; then :
1dc95e51 26114
26115case "${target}" in
6992582a 26116 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26117 *) libgfor_cv_have_unlink_open_file=yes;;
1dc95e51 26118esac
26119else
cd9a469c 26120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1dc95e51 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
ec55604a 26132 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
1dc95e51 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
ec55604a 26140 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
1dc95e51 26141 return 0;
26142 else
26143 return 1;
26144}
26145_ACEOF
cd9a469c 26146if ac_fn_c_try_run "$LINENO"; then :
6992582a 26147 libgfor_cv_have_unlink_open_file=yes
1dc95e51 26148else
cd9a469c 26149 libgfor_cv_have_unlink_open_file=no
1dc95e51 26150fi
cd9a469c 26151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26152 conftest.$ac_objext conftest.beam conftest.$ac_ext
1dc95e51 26153fi
cd9a469c 26154
1dc95e51 26155fi
cd9a469c 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; }
6992582a 26158if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
1dc95e51 26159
cd9a469c 26160$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
1dc95e51 26161
26162fi
26163
cf55c3cf 26164# Check whether line terminator is LF or CRLF
26165
cd9a469c 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
cf55c3cf 26170else
26171
cd9a469c 26172 if test "$cross_compiling" = yes; then :
cf55c3cf 26173
26174case "${target}" in
6992582a 26175 *mingw*) libgfor_cv_have_crlf=yes ;;
26176 *) libgfor_cv_have_crlf=no;;
cf55c3cf 26177esac
26178else
cd9a469c 26179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cf55c3cf 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
cd9a469c 26217if ac_fn_c_try_run "$LINENO"; then :
6992582a 26218 libgfor_cv_have_crlf=yes
cf55c3cf 26219else
cd9a469c 26220 libgfor_cv_have_crlf=no
cf55c3cf 26221fi
cd9a469c 26222rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26223 conftest.$ac_objext conftest.beam conftest.$ac_ext
cf55c3cf 26224fi
cd9a469c 26225
cf55c3cf 26226fi
cd9a469c 26227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26228$as_echo "$libgfor_cv_have_crlf" >&6; }
6992582a 26229if test x"$libgfor_cv_have_crlf" = xyes; then
cf55c3cf 26230
cd9a469c 26231$as_echo "#define HAVE_CRLF 1" >>confdefs.h
cf55c3cf 26232
26233fi
26234
25df644f 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
0812bb06 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
4ee9c684 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.
cd9a469c 26355# So, we kill variables containing newlines.
4ee9c684 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.
cd9a469c 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
4ee9c684 26375 (set) 2>&1 |
cd9a469c 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 \.
4ee9c684 26380 sed -n \
26381 "s/'/'\\\\''/g;
26382 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 26383 ;; #(
4ee9c684 26384 *)
26385 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 26386 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4ee9c684 26387 ;;
cd9a469c 26388 esac |
26389 sort
26390) |
4ee9c684 26391 sed '
cd9a469c 26392 /^ac_cv_env_/b end
4ee9c684 26393 t clear
cd9a469c 26394 :clear
4ee9c684 26395 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26396 t end
cd9a469c 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;}
4ee9c684 26404 cat confcache >$cache_file
26405 else
cd9a469c 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;}
4ee9c684 26408 fi
26409fi
26410rm -f confcache
26411
90973b19 26412if test ${multilib} = yes; then
26413 multilib_arg="--enable-multilib"
4ee9c684 26414else
90973b19 26415 multilib_arg=
4ee9c684 26416fi
4ee9c684 26417
87969c8c 26418# Write our Makefile and spec file.
26419ac_config_files="$ac_config_files Makefile libgfortran.spec"
90973b19 26420
4ee9c684 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.
cd9a469c 26439# So, we kill variables containing newlines.
4ee9c684 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.
cd9a469c 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
4ee9c684 26459 (set) 2>&1 |
cd9a469c 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 \.
4ee9c684 26464 sed -n \
26465 "s/'/'\\\\''/g;
26466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 26467 ;; #(
4ee9c684 26468 *)
26469 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 26470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4ee9c684 26471 ;;
cd9a469c 26472 esac |
26473 sort
26474) |
4ee9c684 26475 sed '
cd9a469c 26476 /^ac_cv_env_/b end
4ee9c684 26477 t clear
cd9a469c 26478 :clear
4ee9c684 26479 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26480 t end
cd9a469c 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;}
4ee9c684 26488 cat confcache >$cache_file
26489 else
cd9a469c 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;}
4ee9c684 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
4ee9c684 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.
cd9a469c 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'
4ee9c684 26512done
26513LIBOBJS=$ac_libobjs
26514
26515LTLIBOBJS=$ac_ltlibobjs
26516
26517
93773f82 26518if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
cd9a469c 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=
93773f82 26528fi
cd9a469c 26529
4ee9c684 26530if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cd9a469c 26531 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26532Usually this means the macro was only invoked conditionally." "$LINENO" 5
4ee9c684 26533fi
2fd61f51 26534if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cd9a469c 26535 as_fn_error "conditional \"AMDEP\" was never defined.
26536Usually this means the macro was only invoked conditionally." "$LINENO" 5
2fd61f51 26537fi
26538if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cd9a469c 26539 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26540Usually this means the macro was only invoked conditionally." "$LINENO" 5
2fd61f51 26541fi
d5d92632 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
ce1a737c 26546if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
cd9a469c 26547 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26548Usually this means the macro was only invoked conditionally." "$LINENO" 5
ce1a737c 26549fi
019fb48a 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
eb00e55c 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
18ce903b 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
87969c8c 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
d566c3e0 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
4ee9c684 26574
26575: ${CONFIG_STATUS=./config.status}
cd9a469c 26576ac_write_fail=0
4ee9c684 26577ac_clean_files_save=$ac_clean_files
26578ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 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
4ee9c684 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
4ee9c684 26592
cd9a469c 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 :
4ee9c684 26604 emulate sh
26605 NULLCMD=:
cd9a469c 26606 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4ee9c684 26607 # is contrary to our usage. Disable this feature.
26608 alias -g '${1+"$@"}'='"$@"'
cd9a469c 26609 setopt NO_GLOB_SUBST
26610else
26611 case `(set -o) 2>/dev/null` in #(
26612 *posix*) :
26613 set -o posix ;; #(
26614 *) :
26615 ;;
26616esac
4ee9c684 26617fi
4ee9c684 26618
cd9a469c 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 }
4ee9c684 26665fi
26666
26667
cd9a469c 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
4ee9c684 26707PS1='$ '
26708PS2='> '
26709PS4='+ '
26710
26711# NLS nuisances.
cd9a469c 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
4ee9c684 26732 fi
cd9a469c 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
4ee9c684 26798
cd9a469c 26799
26800if expr a : '\(a\)' >/dev/null 2>&1 &&
26801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4ee9c684 26802 as_expr=expr
26803else
26804 as_expr=false
26805fi
26806
cd9a469c 26807if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4ee9c684 26808 as_basename=basename
26809else
26810 as_basename=false
26811fi
26812
cd9a469c 26813if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26814 as_dirname=dirname
26815else
26816 as_dirname=false
26817fi
4ee9c684 26818
cd9a469c 26819as_me=`$as_basename -- "$0" ||
4ee9c684 26820$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26821 X"$0" : 'X\(//\)$' \| \
cd9a469c 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'`
82eaf560 26837
82eaf560 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
cd9a469c 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';;
4ee9c684 26856esac
26857
cd9a469c 26858rm -f conf$$ conf$$.exe conf$$.file
26859if test -d conf$$.dir; then
26860 rm -f conf$$.dir/conf$$.file
4ee9c684 26861else
cd9a469c 26862 rm -f conf$$.dir
26863 mkdir conf$$.dir 2>/dev/null
4ee9c684 26864fi
cd9a469c 26865if (echo >conf$$.file) 2>/dev/null; then
26866 if ln -s conf$$.file conf$$ 2>/dev/null; then
82eaf560 26867 as_ln_s='ln -s'
cd9a469c 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'
82eaf560 26878 fi
4ee9c684 26879else
26880 as_ln_s='cp -p'
26881fi
cd9a469c 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
4ee9c684 26931
cd9a469c 26932} # as_fn_mkdir_p
4ee9c684 26933if mkdir -p . 2>/dev/null; then
cd9a469c 26934 as_mkdir_p='mkdir -p "$as_dir"'
4ee9c684 26935else
26936 test -d ./-p && rmdir ./-p
26937 as_mkdir_p=false
26938fi
26939
cd9a469c 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
4ee9c684 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
4ee9c684 26970exec 6>&1
cd9a469c 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
4ee9c684 26979# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 26980# values after options handling.
26981ac_log="
76c0a846 26982This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
cd9a469c 26983generated by GNU Autoconf 2.64. Invocation command line was
4ee9c684 26984
26985 CONFIG_FILES = $CONFIG_FILES
26986 CONFIG_HEADERS = $CONFIG_HEADERS
26987 CONFIG_LINKS = $CONFIG_LINKS
26988 CONFIG_COMMANDS = $CONFIG_COMMANDS
26989 $ $0 $@
26990
cd9a469c 26991on `(hostname || uname -n) 2>/dev/null | sed 1q`
26992"
26993
4ee9c684 26994_ACEOF
26995
cd9a469c 26996case $ac_config_files in *"
26997"*) set x $ac_config_files; shift; ac_config_files=$*;;
26998esac
a106dabe 26999
cd9a469c 27000case $ac_config_headers in *"
27001"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27002esac
82eaf560 27003
82eaf560 27004
cd9a469c 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"
4ee9c684 27010
cd9a469c 27011_ACEOF
82eaf560 27012
cd9a469c 27013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4ee9c684 27014ac_cs_usage="\
cd9a469c 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.
4ee9c684 27018
cd9a469c 27019Usage: $0 [OPTION]... [TAG]...
4ee9c684 27020
27021 -h, --help print this help, then exit
cd9a469c 27022 -V, --version print version number and configuration settings, then exit
27023 -q, --quiet, --silent
27024 do not print progress messages
4ee9c684 27025 -d, --debug don't remove temporary files
27026 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 27027 --file=FILE[:TEMPLATE]
27028 instantiate the configuration file FILE
27029 --header=FILE[:TEMPLATE]
27030 instantiate the configuration header FILE
4ee9c684 27031
27032Configuration files:
27033$config_files
27034
27035Configuration headers:
27036$config_headers
27037
27038Configuration commands:
27039$config_commands
27040
cd9a469c 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/>."
82eaf560 27044
cd9a469c 27045_ACEOF
27046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4ee9c684 27047ac_cs_version="\\
76c0a846 27048GNU Fortran Runtime Library config.status 0.3
cd9a469c 27049configured by $0, generated by GNU Autoconf 2.64,
27050 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4ee9c684 27051
cd9a469c 27052Copyright (C) 2009 Free Software Foundation, Inc.
4ee9c684 27053This config.status script is free software; the Free Software Foundation
27054gives unlimited permission to copy, distribute and modify it."
cd9a469c 27055
27056ac_pwd='$ac_pwd'
27057srcdir='$srcdir'
27058INSTALL='$INSTALL'
27059MKDIR_P='$MKDIR_P'
27060AWK='$AWK'
27061test -n "\$AWK" || AWK=awk
4ee9c684 27062_ACEOF
27063
cd9a469c 27064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27065# The default lists apply if the user does not specify any file.
4ee9c684 27066ac_need_defaults=:
27067while test $# != 0
27068do
27069 case $1 in
27070 --*=*)
cd9a469c 27071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27072 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4ee9c684 27073 ac_shift=:
27074 ;;
cd9a469c 27075 *)
4ee9c684 27076 ac_option=$1
27077 ac_optarg=$2
27078 ac_shift=shift
27079 ;;
4ee9c684 27080 esac
27081
27082 case $ac_option in
27083 # Handling of the options.
4ee9c684 27084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27085 ac_cs_recheck=: ;;
cd9a469c 27086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27087 $as_echo "$ac_cs_version"; exit ;;
27088 --debug | --debu | --deb | --de | --d | -d )
4ee9c684 27089 debug=: ;;
27090 --file | --fil | --fi | --f )
27091 $ac_shift
cd9a469c 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'"
4ee9c684 27096 ac_need_defaults=false;;
27097 --header | --heade | --head | --hea )
27098 $ac_shift
cd9a469c 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'"
4ee9c684 27103 ac_need_defaults=false;;
cd9a469c 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 ;;
4ee9c684 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.
cd9a469c 27115 -*) as_fn_error "unrecognized option: \`$1'
27116Try \`$0 --help' for more information." ;;
4ee9c684 27117
cd9a469c 27118 *) as_fn_append ac_config_targets " $1"
27119 ac_need_defaults=false ;;
4ee9c684 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
cd9a469c 27133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4ee9c684 27134if \$ac_cs_recheck; then
cd9a469c 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 "\$@"
4ee9c684 27141fi
27142
542f9784 27143_ACEOF
cd9a469c 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
542f9784 27153
cd9a469c 27154_ACEOF
27155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
542f9784 27156#
cd9a469c 27157# INIT-COMMANDS
542f9784 27158#
27159
542f9784 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"
eaae6999 27170CXX="$CXX"
27171GFORTRAN="$GFORTRAN"
542f9784 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'
18ce903b 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"`'
e6408286 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"`'
e6408286 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"`'
e6408286 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"`'
542f9784 27357
27358LTCC='$LTCC'
27359LTCFLAGS='$LTCFLAGS'
27360compiler='$compiler_DEFAULT'
27361
e6408286 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
542f9784 27370# Quote evaled strings.
18ce903b 27371for var in SED \
542f9784 27372GREP \
27373EGREP \
27374FGREP \
18ce903b 27375SHELL \
27376ECHO \
542f9784 27377LD \
27378NM \
27379LN_S \
27380lt_SP2NL \
27381lt_NL2SP \
27382reload_flag \
00aafda4 27383OBJDUMP \
542f9784 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 \
00aafda4 27396lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
542f9784 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 \
00aafda4 27403DSYMUTIL \
27404NMEDIT \
27405LIPO \
27406OTOOL \
27407OTOOL64 \
542f9784 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 \
e6408286 27426install_override_mode \
542f9784 27427finish_eval \
27428old_striplib \
27429striplib \
00aafda4 27430compiler_lib_search_dirs \
542f9784 27431predep_objects \
27432postdep_objects \
27433predeps \
27434postdeps \
27435compiler_lib_search_path \
27436LD_FC \
e6408286 27437reload_flag_FC \
542f9784 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 \
00aafda4 27457compiler_lib_search_dirs_FC \
542f9784 27458predep_objects_FC \
27459postdep_objects_FC \
27460predeps_FC \
27461postdeps_FC \
27462compiler_lib_search_path_FC; do
e6408286 27463 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 27464 *[\\\\\\\`\\"\\\$]*)
e6408286 27465 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
542f9784 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 \
e6408286 27492reload_cmds_FC \
542f9784 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
e6408286 27502 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 27503 *[\\\\\\\`\\"\\\$]*)
e6408286 27504 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
542f9784 27505 ;;
27506 *)
27507 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27508 ;;
27509 esac
27510done
27511
542f9784 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
4ee9c684 27530
4ee9c684 27531
a106dabe 27532
4ee9c684 27533
2069752c 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"
56c15991 27547ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27548ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
2069752c 27549ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
56c15991 27550
27551
4ee9c684 27552_ACEOF
27553
cd9a469c 27554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ff4425cf 27555
cd9a469c 27556# Handling of arguments.
4ee9c684 27557for ac_config_target in $ac_config_targets
27558do
cd9a469c 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" ;;
87969c8c 27566 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
cd9a469c 27567
27568 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4ee9c684 27569 esac
27570done
27571
cd9a469c 27572
4ee9c684 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
cd9a469c 27584# simply because there is no reason against having it here, and in addition,
4ee9c684 27585# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 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'.
4ee9c684 27589$debug ||
27590{
cd9a469c 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
4ee9c684 27596}
4ee9c684 27597# Create a (secure) tmp directory for tmp files.
27598
27599{
cd9a469c 27600 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4ee9c684 27601 test -n "$tmp" && test -d "$tmp"
27602} ||
27603{
cd9a469c 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
4ee9c684 27632{
cd9a469c 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
4ee9c684 27727}
27728
cd9a469c 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
82eaf560 27738_ACEOF
27739
cd9a469c 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
82eaf560 27754
cd9a469c 27755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27756fi # test -n "$CONFIG_FILES"
4ee9c684 27757
cd9a469c 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!! "
ff4425cf 27781 fi
cd9a469c 27782done
ce1a737c 27783
cd9a469c 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
4ee9c684 27861_ACEOF
cd9a469c 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 ;;
4ee9c684 27934 esac
27935
cd9a469c 27936 ac_dir=`$as_dirname -- "$ac_file" ||
4ee9c684 27937$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27938 X"$ac_file" : 'X\(//\)[^/]' \| \
27939 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 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
4ee9c684 27960 ac_builddir=.
27961
cd9a469c 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
4ee9c684 27977
27978case $srcdir in
cd9a469c 27979 .) # We are building in place.
4ee9c684 27980 ac_srcdir=.
cd9a469c 27981 ac_top_srcdir=$ac_top_builddir_sub
27982 ac_abs_top_srcdir=$ac_pwd ;;
27983 [\\/]* | ?:[\\/]* ) # Absolute name.
4ee9c684 27984 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 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 ;;
4ee9c684 27991esac
cd9a469c 27992ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4ee9c684 27993
4ee9c684 27994
cd9a469c 27995 case $ac_mode in
27996 :F)
27997 #
27998 # CONFIG_FILE
27999 #
4ee9c684 28000
28001 case $INSTALL in
28002 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 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 ;;
4ee9c684 28009 esac
cd9a469c 28010_ACEOF
4ee9c684 28011
cd9a469c 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
a106dabe 28041_ACEOF
cd9a469c 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
4ee9c684 28048$extrasub
28049_ACEOF
cd9a469c 28050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4ee9c684 28051:t
28052/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 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"
4ee9c684 28079 case $ac_file in
cd9a469c 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 #
4ee9c684 28089 if test x"$ac_file" != x-; then
cd9a469c 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;}
4ee9c684 28098 else
cd9a469c 28099 rm -f "$ac_file"
28100 mv "$tmp/config.h" "$ac_file" \
28101 || as_fn_error "could not create $ac_file" "$LINENO" 5
4ee9c684 28102 fi
28103 else
cd9a469c 28104 $as_echo "/* $configure_input */" \
28105 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28106 || as_fn_error "could not create -" "$LINENO" 5
4ee9c684 28107 fi
cd9a469c 28108# Compute "$ac_file"'s index in $config_headers.
28109_am_arg="$ac_file"
4ee9c684 28110_am_stamp_count=1
28111for _am_header in $config_headers :; do
28112 case $_am_header in
cd9a469c 28113 $_am_arg | $_am_arg:* )
4ee9c684 28114 break ;;
28115 * )
28116 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28117 esac
28118done
cd9a469c 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 ;;
82eaf560 28143
cd9a469c 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
4ee9c684 28148
28149
cd9a469c 28150 case $ac_file$ac_mode in
28151 "default-1":C)
90973b19 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 ;;
cd9a469c 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" ||
2fd61f51 28181$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28182 X"$mf" : 'X\(//\)[^/]' \| \
28183 X"$mf" : 'X\(//\)$' \| \
cd9a469c 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" ||
2fd61f51 28225$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28226 X"$file" : 'X\(//\)[^/]' \| \
28227 X"$file" : 'X\(//\)$' \| \
cd9a469c 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"
2fd61f51 28250 done
2fd61f51 28251 done
cd9a469c 28252}
542f9784 28253 ;;
cd9a469c 28254 "libtool":C)
542f9784 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.
00aafda4 28270# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
542f9784 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#
00aafda4 28274# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
e6408286 28275# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
00aafda4 28276# Written by Gordon Matzigkeit, 1996
542f9784 28277#
00aafda4 28278# This file is part of GNU Libtool.
542f9784 28279#
00aafda4 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.
542f9784 28284#
00aafda4 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.
542f9784 28289#
00aafda4 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.
542f9784 28294#
00aafda4 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.
542f9784 28300
28301
28302# The names of the tagged configurations supported by this script.
28303available_tags="FC "
28304
28305# ### BEGIN LIBTOOL CONFIG
28306
18ce903b 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
542f9784 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
542f9784 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
00aafda4 28378# An object symbol dumper.
28379OBJDUMP=$lt_OBJDUMP
28380
542f9784 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
e6408286 28399# Whether to use a lock for old archive extraction.
28400lock_old_archive_extraction=$lock_old_archive_extraction
28401
542f9784 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
00aafda4 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
542f9784 28420# The name of the directory that contains temporary libtool files.
28421objdir=$objdir
28422
542f9784 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
00aafda4 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
542f9784 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
e6408286 28485# Permission mode override for installation of shared libraries.
28486install_override_mode=$lt_install_override_mode
28487
542f9784 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
e6408286 28527# How to create reloadable object files.
28528reload_flag=$lt_reload_flag
28529reload_cmds=$lt_reload_cmds
28530
542f9784 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
00aafda4 28659# The directories searched by this compiler when creating a shared library.
28660compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28661
542f9784 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"
00aafda4 28705
542f9784 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
00aafda4 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
542f9784 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}
00aafda4 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
542f9784 28793_LT_EOF
28794 ;;
28795 *) # Bourne compatible functions.
28796 cat << \_LT_EOF >> "$cfgfile"
00aafda4 28797
542f9784 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.
e6408286 28804 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
542f9784 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{
e6408286 28815 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
542f9784 28816}
28817
00aafda4 28818
542f9784 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
e6408286 28828 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28829 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
542f9784 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{
e6408286 28840 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28841 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
542f9784 28842}
28843
28844# func_lo2o object
28845func_lo2o ()
28846{
e6408286 28847 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
542f9784 28848}
00aafda4 28849
28850# func_xform libobj-or-source
28851func_xform ()
28852{
e6408286 28853 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
00aafda4 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
542f9784 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}
00aafda4 28893
542f9784 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
e6408286 28914# How to create reloadable object files.
28915reload_flag=$lt_reload_flag_FC
28916reload_cmds=$lt_reload_cmds_FC
28917
542f9784 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
00aafda4 29046# The directories searched by this compiler when creating a shared library.
29047compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29048
542f9784 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
2fd61f51 29063 ;;
cd9a469c 29064 "gstdint.h":C)
2069752c 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
56c15991 29070
2069752c 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>
56c15991 29077EOF
56c15991 29078
2069752c 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
9ad2e3f3 29107 #ifndef uint8_t
2069752c 29108 typedef unsigned $acx_cv_type_int8_t uint8_t;
29109 #endif
29110 #endif
9ad2e3f3 29111 #endif
2069752c 29112
29113 #ifndef _UINT16_T
29114 #define _UINT16_T
29115 #ifndef __uint16_t_defined
29116 #define __uint16_t_defined
9ad2e3f3 29117 #ifndef uint16_t
2069752c 29118 typedef unsigned $acx_cv_type_int16_t uint16_t;
29119 #endif
29120 #endif
9ad2e3f3 29121 #endif
2069752c 29122
29123 #ifndef _UINT32_T
29124 #define _UINT32_T
29125 #ifndef __uint32_t_defined
29126 #define __uint32_t_defined
9ad2e3f3 29127 #ifndef uint32_t
2069752c 29128 typedef unsigned $acx_cv_type_int32_t uint32_t;
29129 #endif
29130 #endif
9ad2e3f3 29131 #endif
2069752c 29132
29133 #ifndef _INT8_T
29134 #define _INT8_T
29135 #ifndef __int8_t_defined
29136 #define __int8_t_defined
9ad2e3f3 29137 #ifndef int8_t
2069752c 29138 typedef $acx_cv_type_int8_t int8_t;
29139 #endif
29140 #endif
9ad2e3f3 29141 #endif
2069752c 29142
29143 #ifndef _INT16_T
29144 #define _INT16_T
29145 #ifndef __int16_t_defined
29146 #define __int16_t_defined
9ad2e3f3 29147 #ifndef int16_t
2069752c 29148 typedef $acx_cv_type_int16_t int16_t;
29149 #endif
29150 #endif
9ad2e3f3 29151 #endif
2069752c 29152
29153 #ifndef _INT32_T
29154 #define _INT32_T
29155 #ifndef __int32_t_defined
29156 #define __int32_t_defined
9ad2e3f3 29157 #ifndef int32_t
2069752c 29158 typedef $acx_cv_type_int32_t int32_t;
29159 #endif
29160 #endif
9ad2e3f3 29161 #endif
2069752c 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
9ad2e3f3 29181 #ifndef uint8_t
2069752c 29182 typedef u_int8_t uint8_t;
29183 #endif
29184 #endif
9ad2e3f3 29185 #endif
2069752c 29186
29187 #ifndef _UINT16_T
29188 #define _UINT16_T
29189 #ifndef __uint16_t_defined
29190 #define __uint16_t_defined
9ad2e3f3 29191 #ifndef uint16_t
2069752c 29192 typedef u_int16_t uint16_t;
29193 #endif
29194 #endif
9ad2e3f3 29195 #endif
2069752c 29196
29197 #ifndef _UINT32_T
29198 #define _UINT32_T
29199 #ifndef __uint32_t_defined
29200 #define __uint32_t_defined
9ad2e3f3 29201 #ifndef uint32_t
2069752c 29202 typedef u_int32_t uint32_t;
29203 #endif
29204 #endif
9ad2e3f3 29205 #endif
2069752c 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
9ad2e3f3 29255 #ifndef uint64_t
2069752c 29256 typedef u_int64_t uint64_t;
29257 #endif
29258 #endif
9ad2e3f3 29259 #endif
2069752c 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
9ad2e3f3 29267 #ifndef int64_t
2069752c 29268 typedef $acx_cv_type_int64_t int64_t;
29269 #endif
9ad2e3f3 29270 #endif
2069752c 29271 #ifndef _UINT64_T
29272 #define _UINT64_T
29273 #ifndef __uint64_t_defined
29274 #define __uint64_t_defined
9ad2e3f3 29275 #ifndef uint64_t
2069752c 29276 typedef unsigned $acx_cv_type_int64_t uint64_t;
29277 #endif
29278 #endif
9ad2e3f3 29279 #endif
2069752c 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
9ad2e3f3 29289 #ifndef int64_t
2069752c 29290 typedef long long int64_t;
29291 #endif
29292 #endif
9ad2e3f3 29293 #endif
2069752c 29294 #ifndef _UINT64_T
29295 #define _UINT64_T
9ad2e3f3 29296 #ifndef uint64_t
2069752c 29297 typedef unsigned long long uint64_t;
29298 #endif
9ad2e3f3 29299 #endif
2069752c 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
9ad2e3f3 29311 # ifndef int64_t
2069752c 29312 __extension__ typedef long long int64_t;
29313 # endif
9ad2e3f3 29314 # endif
2069752c 29315 # ifndef _UINT64_T
29316 # define _UINT64_T
9ad2e3f3 29317 # ifndef uint64_t
2069752c 29318 __extension__ typedef unsigned long long uint64_t;
29319 # endif
9ad2e3f3 29320 # endif
2069752c 29321
29322 #elif !defined __STRICT_ANSI__
29323 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29324
29325 # ifndef _INT64_T
29326 # define _INT64_T
9ad2e3f3 29327 # ifndef int64_t
2069752c 29328 typedef __int64 int64_t;
29329 # endif
9ad2e3f3 29330 # endif
2069752c 29331 # ifndef _UINT64_T
29332 # define _UINT64_T
9ad2e3f3 29333 # ifndef uint64_t
2069752c 29334 typedef unsigned __int64 uint64_t;
29335 # endif
9ad2e3f3 29336 # endif
2069752c 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
9ad2e3f3 29349 #ifndef uintptr_t
2069752c 29350 typedef u$acx_cv_type_intptr_t uintptr_t;
29351 #endif
9ad2e3f3 29352 #endif
2069752c 29353 #ifndef __intptr_t_defined
9ad2e3f3 29354 #ifndef intptr_t
2069752c 29355 typedef $acx_cv_type_intptr_t intptr_t;
29356 #endif
9ad2e3f3 29357 #endif
2069752c 29358EOF
29359fi
29360
29361# ------------- done intptr types, emit int_least types ------------
56c15991 29362if test "$ac_cv_type_int_least32_t" != yes; then
2069752c 29363 sed 's/^ *//' >> tmp-stdint.h <<EOF
56c15991 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;
2069752c 29369 #ifdef _INT64_T
56c15991 29370 typedef int64_t int_least64_t;
2069752c 29371 #endif
56c15991 29372
29373 typedef uint8_t uint_least8_t;
29374 typedef uint16_t uint_least16_t;
29375 typedef uint32_t uint_least32_t;
2069752c 29376 #ifdef _UINT64_T
56c15991 29377 typedef uint64_t uint_least64_t;
2069752c 29378 #endif
56c15991 29379EOF
29380fi
29381
2069752c 29382# ------------- done intptr types, emit int_fast types ------------
56c15991 29383if test "$ac_cv_type_int_fast32_t" != yes; then
2069752c 29384 sed 's/^ *//' >> tmp-stdint.h <<EOF
56c15991 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;
2069752c 29390 #ifdef _INT64_T
56c15991 29391 typedef int64_t int_fast64_t;
2069752c 29392 #endif
56c15991 29393
29394 typedef uint8_t uint_fast8_t;
29395 typedef unsigned int uint_fast16_t;
29396 typedef uint32_t uint_fast32_t;
2069752c 29397 #ifdef _UINT64_T
56c15991 29398 typedef uint64_t uint_fast64_t;
2069752c 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 */
9ad2e3f3 29407 #ifndef intmax_t
2069752c 29408 #ifdef _INT64_T
29409 typedef int64_t intmax_t;
29410 #else
29411 typedef long intmax_t;
29412 #endif
9ad2e3f3 29413 #endif
29414 #ifndef uintmax_t
2069752c 29415 #ifdef _UINT64_T
29416 typedef uint64_t uintmax_t;
29417 #else
29418 typedef unsigned long uintmax_t;
29419 #endif
9ad2e3f3 29420 #endif
56c15991 29421EOF
29422fi
29423
2069752c 29424sed 's/^ *//' >> tmp-stdint.h <<EOF
29425
29426 #endif /* GCC_GENERATED_STDINT_H */
29427EOF
56c15991 29428
2069752c 29429if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29430 rm -f tmp-stdint.h
56c15991 29431else
2069752c 29432 mv -f tmp-stdint.h gstdint.h
56c15991 29433fi
29434
29435 ;;
cd9a469c 29436
4ee9c684 29437 esac
cd9a469c 29438done # for ac_tag
4ee9c684 29439
4ee9c684 29440
cd9a469c 29441as_fn_exit 0
4ee9c684 29442_ACEOF
4ee9c684 29443ac_clean_files=$ac_clean_files_save
29444
cd9a469c 29445test $ac_write_fail = 0 ||
29446 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29447
4ee9c684 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.
cd9a469c 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;}
4ee9c684 29472fi
29473