]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
Add myself to MAINTAINERS
[thirdparty/gcc.git] / libgfortran / configure
CommitLineData
4ee9c684 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
f00f02a3 3# Generated by GNU Autoconf 2.69 for GNU Fortran Runtime Library 0.3.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cd9a469c 7#
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.
f00f02a3 90as_myself=
cd9a469c 91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
4ee9c684 122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
cd9a469c 127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
f00f02a3 135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
cd9a469c 160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
f00f02a3 193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
cd9a469c 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
d5d92632 199test \$(( 1 + 1 )) = 2 || exit 1
e6408286 200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
d5d92632 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cd9a469c 208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4ee9c684 219do
cd9a469c 220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
f00f02a3 247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
cd9a469c 266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
4ee9c684 274 else
cd9a469c 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
4ee9c684 279 fi
cd9a469c 280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
f00f02a3 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cd9a469c 364
365
366} # as_fn_mkdir_p
f00f02a3 367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
cd9a469c 375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
f00f02a3 411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
cd9a469c 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
f00f02a3 415# script with STATUS, using 1 if that was 0.
cd9a469c 416as_fn_error ()
417{
f00f02a3 418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cd9a469c 422 fi
f00f02a3 423 $as_echo "$as_me: error: $2" >&2
cd9a469c 424 as_fn_exit $as_status
425} # as_fn_error
4ee9c684 426
cd9a469c 427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4ee9c684 429 as_expr=expr
430else
431 as_expr=false
432fi
433
cd9a469c 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4ee9c684 435 as_basename=basename
436else
437 as_basename=false
438fi
439
cd9a469c 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
4ee9c684 445
cd9a469c 446as_me=`$as_basename -- "$0" ||
4ee9c684 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
cd9a469c 449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
ce1a737c 464
82eaf560 465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
ff4425cf 471
4ee9c684 472
cd9a469c 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
4ee9c684 482 sed '
cd9a469c 483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
4ee9c684 487 N
cd9a469c 488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4ee9c684 490 t loop
cd9a469c 491 s/-\n.*//
4ee9c684 492 ' >$as_me.lineno &&
cd9a469c 493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4ee9c684 495
f00f02a3 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
4ee9c684 500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
cd9a469c 502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
4ee9c684 504 # Exit status is that of the last command.
505 exit
506}
507
cd9a469c 508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
4ee9c684 519esac
520
cd9a469c 521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
4ee9c684 524else
cd9a469c 525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
4ee9c684 527fi
cd9a469c 528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
82eaf560 530 as_ln_s='ln -s'
cd9a469c 531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f00f02a3 534 # In both cases, we have to default to `cp -pR'.
cd9a469c 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 536 as_ln_s='cp -pR'
cd9a469c 537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
f00f02a3 540 as_ln_s='cp -pR'
82eaf560 541 fi
4ee9c684 542else
f00f02a3 543 as_ln_s='cp -pR'
4ee9c684 544fi
cd9a469c 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
4ee9c684 547
548if mkdir -p . 2>/dev/null; then
cd9a469c 549 as_mkdir_p='mkdir -p "$as_dir"'
4ee9c684 550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
f00f02a3 555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
4ee9c684 557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
542f9784 564SHELL=${CONFIG_SHELL-/bin/sh}
565
542f9784 566
f00f02a3 567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
cd9a469c 569
4ee9c684 570# Name of the host.
f00f02a3 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
4ee9c684 572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
4ee9c684 575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
cd9a469c 579ac_clean_files=
4ee9c684 580ac_config_libobj_dir=.
cd9a469c 581LIBOBJS=
4ee9c684 582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
82eaf560 586
4ee9c684 587# Identity of this package.
588PACKAGE_NAME='GNU Fortran Runtime Library'
589PACKAGE_TARNAME='libgfortran'
76c0a846 590PACKAGE_VERSION='0.3'
591PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
4ee9c684 592PACKAGE_BUGREPORT=''
cd9a469c 593PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
4ee9c684 594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
cd9a469c 598#ifdef HAVE_SYS_TYPES_H
4ee9c684 599# include <sys/types.h>
600#endif
cd9a469c 601#ifdef HAVE_SYS_STAT_H
4ee9c684 602# include <sys/stat.h>
603#endif
cd9a469c 604#ifdef STDC_HEADERS
4ee9c684 605# include <stdlib.h>
606# include <stddef.h>
607#else
cd9a469c 608# ifdef HAVE_STDLIB_H
4ee9c684 609# include <stdlib.h>
610# endif
611#endif
cd9a469c 612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
4ee9c684 614# include <memory.h>
615# endif
616# include <string.h>
617#endif
cd9a469c 618#ifdef HAVE_STRINGS_H
4ee9c684 619# include <strings.h>
620#endif
cd9a469c 621#ifdef HAVE_INTTYPES_H
4ee9c684 622# include <inttypes.h>
4ee9c684 623#endif
cd9a469c 624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
4ee9c684 628# include <unistd.h>
629#endif"
630
a1aa1d30 631ac_header_list=
632ac_func_list=
87969c8c 633ac_c_werror_flag=
b14cf757 634ac_c_werror_flag=
cd9a469c 635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
0812bb06 639get_gcc_base_ver
b4e409cb 640HAVE_AVX128_FALSE
641HAVE_AVX128_TRUE
cd9a469c 642IEEE_FLAGS
d566c3e0 643IEEE_SUPPORT
644IEEE_SUPPORT_FALSE
645IEEE_SUPPORT_TRUE
cd9a469c 646FPU_HOST_HEADER
87969c8c 647LIBGFOR_BUILD_QUAD_FALSE
648LIBGFOR_BUILD_QUAD_TRUE
649LIBQUADINCLUDE
650LIBQUADLIB_DEP
651LIBQUADLIB
652LIBQUADSPEC
cd9a469c 653extra_ldflags_libgfortran
654ac_ct_FC
655FCFLAGS
656FC
657enable_static
658enable_shared
8c35d268 659lt_host_flags
cd9a469c 660OTOOL64
661OTOOL
662LIPO
663NMEDIT
664DSYMUTIL
cd9a469c 665OBJDUMP
666LN_S
667NM
668ac_ct_DUMPBIN
669DUMPBIN
cd9a469c 670LIBTOOL
671RANLIB
672AR
673AS
18ce903b 674HAVE_HWCAP_FALSE
675HAVE_HWCAP_TRUE
676HWCAP_LDFLAGS
677LD
678FGREP
679SED
cd9a469c 680SECTION_FLAGS
eb00e55c 681LIBGFOR_MINIMAL_FALSE
682LIBGFOR_MINIMAL_TRUE
019fb48a 683LIBGFOR_USE_SYMVER_SUN_FALSE
684LIBGFOR_USE_SYMVER_SUN_TRUE
685LIBGFOR_USE_SYMVER_GNU_FALSE
686LIBGFOR_USE_SYMVER_GNU_TRUE
cd9a469c 687LIBGFOR_USE_SYMVER_FALSE
688LIBGFOR_USE_SYMVER_TRUE
689AM_CFLAGS
690AM_FCFLAGS
d5d92632 691toolexeclibdir
692toolexecdir
693EGREP
694GREP
695CPP
cd9a469c 696am__fastdepCC_FALSE
697am__fastdepCC_TRUE
698CCDEPMODE
544db64f 699am__nodep
cd9a469c 700AMDEPBACKSLASH
701AMDEP_FALSE
702AMDEP_TRUE
703am__quote
704am__include
705DEPDIR
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
cd9a469c 713multi_basedir
714MAINT
715MAINTAINER_MODE_FALSE
716MAINTAINER_MODE_TRUE
f00f02a3 717AM_BACKSLASH
718AM_DEFAULT_VERBOSITY
719AM_DEFAULT_V
720AM_V
cd9a469c 721am__untar
722am__tar
723AMTAR
724am__leading_dot
725SET_MAKE
726AWK
727mkdir_p
728MKDIR_P
729INSTALL_STRIP_PROGRAM
730STRIP
731install_sh
732MAKEINFO
733AUTOHEADER
734AUTOMAKE
735AUTOCONF
736ACLOCAL
737VERSION
738PACKAGE
739CYGPATH_W
740am__isrc
741INSTALL_DATA
742INSTALL_SCRIPT
743INSTALL_PROGRAM
7eda0fb7 744target_noncanonical
cd9a469c 745target_os
746target_vendor
747target_cpu
748target
749host_os
750host_vendor
751host_cpu
752host
753onestep
754onestep_FALSE
755onestep_TRUE
756target_subdir
757host_subdir
758build_subdir
759build_libsubdir
760build_os
761build_vendor
762build_cpu
763build
764target_alias
765host_alias
766build_alias
767LIBS
768ECHO_T
769ECHO_N
770ECHO_C
771DEFS
772mandir
773localedir
774libdir
775psdir
776pdfdir
777dvidir
778htmldir
779infodir
780docdir
781oldincludedir
782includedir
783localstatedir
784sharedstatedir
785sysconfdir
786datadir
787datarootdir
788libexecdir
789sbindir
790bindir
791program_transform_name
792prefix
793exec_prefix
794PACKAGE_URL
795PACKAGE_BUGREPORT
796PACKAGE_STRING
797PACKAGE_VERSION
798PACKAGE_TARNAME
799PACKAGE_NAME
800PATH_SEPARATOR
801SHELL'
4ee9c684 802ac_subst_files=''
cd9a469c 803ac_user_opts='
804enable_option_checking
805with_build_libsubdir
806enable_version_specific_runtime_libs
807enable_intermodule
f00f02a3 808enable_silent_rules
cd9a469c 809enable_maintainer_mode
810enable_multilib
811enable_dependency_tracking
42ea2de2 812enable_cet
bbb514dc 813enable_symvers
18ce903b 814with_gnu_ld
cd9a469c 815enable_shared
816enable_static
817with_pic
818enable_fast_install
cd9a469c 819enable_libtool_lock
820enable_largefile
d9d975ae 821enable_libquadmath_support
0812bb06 822with_gcc_major_version_only
cd9a469c 823'
824 ac_precious_vars='build_alias
825host_alias
826target_alias
d5d92632 827CC
828CFLAGS
829LDFLAGS
830LIBS
cd9a469c 831CPPFLAGS
d5d92632 832CPP
cd9a469c 833FC
d5d92632 834FCFLAGS'
cd9a469c 835
4ee9c684 836
837# Initialize some variables set by options.
838ac_init_help=
839ac_init_version=false
cd9a469c 840ac_unrecognized_opts=
841ac_unrecognized_sep=
4ee9c684 842# The variables have the same names as the options, with
843# dashes changed to underlines.
844cache_file=/dev/null
845exec_prefix=NONE
846no_create=
847no_recursion=
848prefix=NONE
849program_prefix=NONE
850program_suffix=NONE
851program_transform_name=s,x,x,
852silent=
853site=
854srcdir=
855verbose=
856x_includes=NONE
857x_libraries=NONE
858
859# Installation directory options.
860# These are left unexpanded so users can "make install exec_prefix=/foo"
861# and all the variables that are supposed to be based on exec_prefix
862# by default will actually change.
863# Use braces instead of parens because sh, perl, etc. also accept them.
cd9a469c 864# (The list follows the same order as the GNU Coding Standards.)
4ee9c684 865bindir='${exec_prefix}/bin'
866sbindir='${exec_prefix}/sbin'
867libexecdir='${exec_prefix}/libexec'
cd9a469c 868datarootdir='${prefix}/share'
869datadir='${datarootdir}'
4ee9c684 870sysconfdir='${prefix}/etc'
871sharedstatedir='${prefix}/com'
872localstatedir='${prefix}/var'
4ee9c684 873includedir='${prefix}/include'
874oldincludedir='/usr/include'
cd9a469c 875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
4ee9c684 884
885ac_prev=
cd9a469c 886ac_dashdash=
4ee9c684 887for ac_option
888do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
cd9a469c 891 eval $ac_prev=\$ac_option
4ee9c684 892 ac_prev=
893 continue
894 fi
895
cd9a469c 896 case $ac_option in
f00f02a3 897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
cd9a469c 900 esac
4ee9c684 901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
cd9a469c 904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
4ee9c684 907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
cd9a469c 928 -datadir | --datadir | --datadi | --datad)
4ee9c684 929 ac_prev=datadir ;;
cd9a469c 930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
4ee9c684 931 datadir=$ac_optarg ;;
932
cd9a469c 933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
4ee9c684 940 -disable-* | --disable-*)
cd9a469c 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
4ee9c684 942 # Reject names that are not valid shell variable names.
cd9a469c 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 944 as_fn_error $? "invalid feature name: $ac_useropt"
cd9a469c 945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
4ee9c684 965
966 -enable-* | --enable-*)
cd9a469c 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
4ee9c684 968 # Reject names that are not valid shell variable names.
cd9a469c 969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 970 as_fn_error $? "invalid feature name: $ac_useropt"
cd9a469c 971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975"enable_$ac_useropt"
976"*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
82eaf560 979 esac
cd9a469c 980 eval enable_$ac_useropt=\$ac_optarg ;;
4ee9c684 981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
cd9a469c 1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
4ee9c684 1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
cd9a469c 1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
4ee9c684 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 1043 | --localstate | --localstat | --localsta | --localst | --locals)
4ee9c684 1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
4ee9c684 1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
cd9a469c 1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
4ee9c684 1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
cd9a469c 1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
4ee9c684 1172 # Reject names that are not valid shell variable names.
cd9a469c 1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1174 as_fn_error $? "invalid package name: $ac_useropt"
cd9a469c 1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
82eaf560 1183 esac
cd9a469c 1184 eval with_$ac_useropt=\$ac_optarg ;;
4ee9c684 1185
1186 -without-* | --without-*)
cd9a469c 1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
4ee9c684 1188 # Reject names that are not valid shell variable names.
cd9a469c 1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1190 as_fn_error $? "invalid package name: $ac_useropt"
cd9a469c 1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195"with_$ac_useropt"
1196"*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
4ee9c684 1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
f00f02a3 1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information"
4ee9c684 1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
cd9a469c 1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
f00f02a3 1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cd9a469c 1230 esac
1231 eval $ac_envvar=\$ac_optarg
4ee9c684 1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
4ee9c684 1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
f00f02a3 1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
4ee9c684 1240 ;;
1241
1242 esac
1243done
1244
1245if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f00f02a3 1247 as_fn_error $? "missing argument to $ac_option"
4ee9c684 1248fi
1249
cd9a469c 1250if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
f00f02a3 1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cd9a469c 1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
82eaf560 1255 esac
cd9a469c 1256fi
82eaf560 1257
cd9a469c 1258# Check all directory arguments for consistency.
1259for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
77ddff12 1262 libdir localedir mandir
82eaf560 1263do
cd9a469c 1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
82eaf560 1272 case $ac_val in
cd9a469c 1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
4ee9c684 1275 esac
f00f02a3 1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
4ee9c684 1277done
1278
1279# There might be people who depend on the old broken behavior: `$host'
1280# used to hold the argument of --host etc.
1281# FIXME: To remove some day.
1282build=$build_alias
1283host=$host_alias
1284target=$target_alias
1285
1286# FIXME: To remove some day.
1287if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
4ee9c684 1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293fi
1294
1295ac_tool_prefix=
1296test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298test "$silent" = yes && exec 6>/dev/null
1299
1300
cd9a469c 1301ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302ac_ls_di=`ls -di .` &&
1303ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f00f02a3 1304 as_fn_error $? "working directory cannot be determined"
cd9a469c 1305test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f00f02a3 1306 as_fn_error $? "pwd does not report name of working directory"
cd9a469c 1307
1308
4ee9c684 1309# Find the source files, if location was not specified.
1310if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
cd9a469c 1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318$as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
4ee9c684 1336 srcdir=$ac_confdir
cd9a469c 1337 if test ! -r "$srcdir/$ac_unique_file"; then
4ee9c684 1338 srcdir=..
1339 fi
1340else
1341 ac_srcdir_defaulted=no
1342fi
cd9a469c 1343if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f00f02a3 1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cd9a469c 1346fi
1347ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348ac_abs_confdir=`(
f00f02a3 1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cd9a469c 1350 pwd)`
1351# When building in place, set srcdir=.
1352if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1354fi
1355# Remove unnecessary trailing slashes from srcdir.
1356# Double slashes in file names in object file debugging info
1357# mess up M-x gdb in Emacs.
1358case $srcdir in
1359*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360esac
1361for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366done
4ee9c684 1367
1368#
1369# Report the --help message.
1370#
1371if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
76c0a846 1375\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
4ee9c684 1376
1377Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380VAR=VALUE. See below for descriptions of some of the useful variables.
1381
1382Defaults for the options are specified in brackets.
1383
1384Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
f00f02a3 1389 -q, --quiet, --silent do not print \`checking ...' messages
4ee9c684 1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394
4ee9c684 1395Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1397 [$ac_default_prefix]
4ee9c684 1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1399 [PREFIX]
4ee9c684 1400
1401By default, \`make install' will install all the files in
1402\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404for instance \`--prefix=\$HOME'.
1405
1406For better control, use the options below.
1407
1408Fine tuning of the installation directories:
cd9a469c 1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
4ee9c684 1428_ACEOF
1429
1430 cat <<\_ACEOF
1431
1432Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
90973b19 1440 --target=TARGET configure for building compilers for TARGET [HOST]
4ee9c684 1441_ACEOF
1442fi
1443
1444if test -n "$ac_init_help"; then
1445 case $ac_init_help in
76c0a846 1446 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
4ee9c684 1447 esac
1448 cat <<\_ACEOF
1449
1450Optional Features:
cd9a469c 1451 --disable-option-checking ignore unrecognized --enable/--with options
4ee9c684 1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d9d975ae 1454 --enable-version-specific-runtime-libs
1455 specify that runtime libraries should be installed
1456 in a compiler-specific directory
93773f82 1457 --enable-intermodule build the library in one step
f00f02a3 1458 --enable-silent-rules less verbose build output (undo: "make V=1")
1459 --disable-silent-rules verbose build output (undo: "make V=0")
1460 --enable-maintainer-mode
1461 enable make rules and dependencies not useful (and
1462 sometimes confusing) to the casual installer
90973b19 1463 --enable-multilib build many library versions (default)
f00f02a3 1464 --enable-dependency-tracking
1465 do not reject slow dependency extractors
1466 --disable-dependency-tracking
1467 speeds up one-time build
ee8fea81 1468 --enable-cet enable Intel CET in target libraries [default=no]
bbb514dc 1469 --disable-symvers disable symbol versioning for libgfortran
cd9a469c 1470 --enable-shared[=PKGS] build shared libraries [default=yes]
1471 --enable-static[=PKGS] build static libraries [default=yes]
542f9784 1472 --enable-fast-install[=PKGS]
1473 optimize for fast installation [default=yes]
4ee9c684 1474 --disable-libtool-lock avoid locking (might break parallel builds)
90e67cff 1475 --disable-largefile omit support for large files
d9d975ae 1476 --disable-libquadmath-support
1477 disable libquadmath support for Fortran
4ee9c684 1478
1479Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3e427a9c 1482 --with-build-libsubdir=DIR Directory where to find libraries for build system
18ce903b 1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
542f9784 1484 --with-pic try to use only PIC/non-PIC objects [default=use
1485 both]
0812bb06 1486 --with-gcc-major-version-only
1487 use only GCC major number in filesystem paths
4ee9c684 1488
1489Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
cd9a469c 1494 LIBS libraries to pass to the linker, e.g. -l<library>
f00f02a3 1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cd9a469c 1496 you have headers in a nonstandard directory <include dir>
542f9784 1497 CPP C preprocessor
6d73cceb 1498 FC Fortran compiler command
1499 FCFLAGS Fortran compiler flags
4ee9c684 1500
1501Use these variables to override the choices made by `configure' or to help
1502it to find libraries and programs with nonstandard names/locations.
1503
cd9a469c 1504Report bugs to the package provider.
1505GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1506General help using GNU software: <http://www.gnu.org/gethelp/>.
4ee9c684 1507_ACEOF
cd9a469c 1508ac_status=$?
4ee9c684 1509fi
1510
1511if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
4ee9c684 1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 continue
4ee9c684 1517 ac_builddir=.
1518
cd9a469c 1519case "$ac_dir" in
1520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521*)
1522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529esac
1530ac_abs_top_builddir=$ac_pwd
1531ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532# for backward compatibility:
1533ac_top_builddir=$ac_top_build_prefix
4ee9c684 1534
1535case $srcdir in
cd9a469c 1536 .) # We are building in place.
4ee9c684 1537 ac_srcdir=.
cd9a469c 1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
4ee9c684 1541 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a106dabe 1548esac
cd9a469c 1549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
4ee9c684 1559 else
cd9a469c 1560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
4ee9c684 1563 done
1564fi
1565
cd9a469c 1566test -n "$ac_init_help" && exit $ac_status
4ee9c684 1567if $ac_init_version; then
1568 cat <<\_ACEOF
76c0a846 1569GNU Fortran Runtime Library configure 0.3
f00f02a3 1570generated by GNU Autoconf 2.69
4ee9c684 1571
f00f02a3 1572Copyright (C) 2012 Free Software Foundation, Inc.
4ee9c684 1573This configure script is free software; the Free Software Foundation
1574gives unlimited permission to copy, distribute and modify it.
1575_ACEOF
cd9a469c 1576 exit
4ee9c684 1577fi
4ee9c684 1578
cd9a469c 1579## ------------------------ ##
1580## Autoconf initialization. ##
1581## ------------------------ ##
4ee9c684 1582
cd9a469c 1583# ac_fn_c_try_compile LINENO
1584# --------------------------
1585# Try to compile conftest.$ac_ext, and return whether this succeeded.
1586ac_fn_c_try_compile ()
1587{
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1591case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594esac
1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596$as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1603 fi
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext; then :
1609 ac_retval=0
1610else
1611 $as_echo "$as_me: failed program was:" >&5
1612sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1613
cd9a469c 1614 ac_retval=1
1615fi
f00f02a3 1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
cd9a469c 1618
1619} # ac_fn_c_try_compile
1620
d5d92632 1621# ac_fn_c_try_cpp LINENO
1622# ----------------------
1623# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624ac_fn_c_try_cpp ()
4ee9c684 1625{
cd9a469c 1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d5d92632 1627 if { { ac_try="$ac_cpp conftest.$ac_ext"
cd9a469c 1628case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633$as_echo "$ac_try_echo"; } >&5
d5d92632 1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cd9a469c 1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f00f02a3 1642 test $ac_status = 0; } > conftest.i && {
d5d92632 1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
cd9a469c 1644 test ! -s conftest.err
cd9a469c 1645 }; then :
1646 ac_retval=0
1647else
1648 $as_echo "$as_me: failed program was:" >&5
1649sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1650
d5d92632 1651 ac_retval=1
cd9a469c 1652fi
f00f02a3 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
4ee9c684 1655
d5d92632 1656} # ac_fn_c_try_cpp
4ee9c684 1657
d5d92632 1658# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
cd9a469c 1659# -------------------------------------------------------
d5d92632 1660# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1661# the include files in INCLUDES and setting the cache variable VAR
1662# accordingly.
1663ac_fn_c_check_header_mongrel ()
cd9a469c 1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
f00f02a3 1666 if eval \${$3+:} false; then :
cd9a469c 1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668$as_echo_n "checking for $2... " >&6; }
f00f02a3 1669if eval \${$3+:} false; then :
cd9a469c 1670 $as_echo_n "(cached) " >&6
d5d92632 1671fi
1672eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674$as_echo "$ac_res" >&6; }
cd9a469c 1675else
d5d92632 1676 # Is the header compilable?
1677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1678$as_echo_n "checking $2 usability... " >&6; }
1679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 1680/* end confdefs.h. */
1681$4
1682#include <$2>
1683_ACEOF
1684if ac_fn_c_try_compile "$LINENO"; then :
d5d92632 1685 ac_header_compiler=yes
cd9a469c 1686else
d5d92632 1687 ac_header_compiler=no
cd9a469c 1688fi
1689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5d92632 1690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1691$as_echo "$ac_header_compiler" >&6; }
4ee9c684 1692
d5d92632 1693# Is the header present?
1694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1695$as_echo_n "checking $2 presence... " >&6; }
1696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697/* end confdefs.h. */
1698#include <$2>
1699_ACEOF
1700if ac_fn_c_try_cpp "$LINENO"; then :
1701 ac_header_preproc=yes
1702else
1703 ac_header_preproc=no
1704fi
f00f02a3 1705rm -f conftest.err conftest.i conftest.$ac_ext
d5d92632 1706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1707$as_echo "$ac_header_preproc" >&6; }
4ee9c684 1708
d5d92632 1709# So? What about this header?
1710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1711 yes:no: )
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1713$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716 ;;
1717 no:yes:* )
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1719$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1721$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1723$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1725$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1728 ;;
cd9a469c 1729esac
d5d92632 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731$as_echo_n "checking for $2... " >&6; }
f00f02a3 1732if eval \${$3+:} false; then :
d5d92632 1733 $as_echo_n "(cached) " >&6
cd9a469c 1734else
d5d92632 1735 eval "$3=\$ac_header_compiler"
1736fi
1737eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739$as_echo "$ac_res" >&6; }
cd9a469c 1740fi
f00f02a3 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4ee9c684 1742
d5d92632 1743} # ac_fn_c_check_header_mongrel
4ee9c684 1744
cd9a469c 1745# ac_fn_c_try_run LINENO
1746# ----------------------
1747# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1748# that executables *can* be run.
1749ac_fn_c_try_run ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_link"
1753case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758$as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>&5
1760 ac_status=$?
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1763 { { case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766esac
1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768$as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_try") 2>&5
1770 ac_status=$?
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; }; }; then :
1773 ac_retval=0
1774else
1775 $as_echo "$as_me: program exited with status $ac_status" >&5
1776 $as_echo "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1778
cd9a469c 1779 ac_retval=$ac_status
1780fi
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
4ee9c684 1784
cd9a469c 1785} # ac_fn_c_try_run
4ee9c684 1786
d5d92632 1787# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1788# -------------------------------------------------------
1789# Tests whether HEADER exists and can be compiled using the include files in
1790# INCLUDES, setting the cache variable VAR accordingly.
1791ac_fn_c_check_header_compile ()
1792{
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
f00f02a3 1796if eval \${$3+:} false; then :
d5d92632 1797 $as_echo_n "(cached) " >&6
1798else
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h. */
1801$4
1802#include <$2>
1803_ACEOF
1804if ac_fn_c_try_compile "$LINENO"; then :
1805 eval "$3=yes"
1806else
1807 eval "$3=no"
1808fi
1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810fi
1811eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813$as_echo "$ac_res" >&6; }
f00f02a3 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d5d92632 1815
1816} # ac_fn_c_check_header_compile
1817
1818# ac_fn_c_try_link LINENO
1819# -----------------------
1820# Try to link conftest.$ac_ext, and return whether this succeeded.
1821ac_fn_c_try_link ()
1822{
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext conftest$ac_exeext
1825 if { { ac_try="$ac_link"
1826case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829esac
1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831$as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_link") 2>conftest.err
1833 ac_status=$?
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1838 fi
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest$ac_exeext && {
1844 test "$cross_compiling" = yes ||
f00f02a3 1845 test -x conftest$ac_exeext
d5d92632 1846 }; then :
1847 ac_retval=0
1848else
1849 $as_echo "$as_me: failed program was:" >&5
1850sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=1
1853fi
1854 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1855 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1856 # interfere with the next link command; also delete a directory that is
1857 # left behind by Apple's compiler. We do this before executing the actions.
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
d5d92632 1861
1862} # ac_fn_c_try_link
1863
cd9a469c 1864# ac_fn_c_check_func LINENO FUNC VAR
1865# ----------------------------------
1866# Tests whether FUNC exists, setting the cache variable VAR accordingly
1867ac_fn_c_check_func ()
1868{
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871$as_echo_n "checking for $2... " >&6; }
f00f02a3 1872if eval \${$3+:} false; then :
cd9a469c 1873 $as_echo_n "(cached) " >&6
1874else
1875 if test x$gcc_no_link = xyes; then
f00f02a3 1876 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cd9a469c 1877fi
1878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879/* end confdefs.h. */
1880/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1882#define $2 innocuous_$2
4ee9c684 1883
cd9a469c 1884/* System header to define __stub macros and hopefully few prototypes,
1885 which can conflict with char $2 (); below.
1886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1887 <limits.h> exists even on freestanding compilers. */
4ee9c684 1888
cd9a469c 1889#ifdef __STDC__
1890# include <limits.h>
1891#else
1892# include <assert.h>
1893#endif
4ee9c684 1894
cd9a469c 1895#undef $2
1896
1897/* Override any GCC internal prototype to avoid an error.
1898 Use char because int might match the return type of a GCC
1899 builtin and then its argument prototype would still apply. */
1900#ifdef __cplusplus
1901extern "C"
1902#endif
1903char $2 ();
1904/* The GNU C library defines this for functions which it implements
1905 to always fail with ENOSYS. Some functions are actually named
1906 something starting with __ and the normal name is an alias. */
1907#if defined __stub_$2 || defined __stub___$2
1908choke me
1909#endif
1910
1911int
1912main ()
82eaf560 1913{
cd9a469c 1914return $2 ();
1915 ;
1916 return 0;
82eaf560 1917}
cd9a469c 1918_ACEOF
1919if ac_fn_c_try_link "$LINENO"; then :
1920 eval "$3=yes"
1921else
1922 eval "$3=no"
1923fi
1924rm -f core conftest.err conftest.$ac_objext \
1925 conftest$ac_exeext conftest.$ac_ext
1926fi
1927eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929$as_echo "$ac_res" >&6; }
f00f02a3 1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4ee9c684 1931
cd9a469c 1932} # ac_fn_c_check_func
4ee9c684 1933
cd9a469c 1934# ac_fn_fc_try_compile LINENO
1935# ---------------------------
1936# Try to compile conftest.$ac_ext, and return whether this succeeded.
1937ac_fn_fc_try_compile ()
1938{
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 rm -f conftest.$ac_objext
1941 if { { ac_try="$ac_compile"
1942case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945esac
1946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947$as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_compile") 2>conftest.err
1949 ac_status=$?
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1954 fi
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && {
1957 test -z "$ac_fc_werror_flag" ||
1958 test ! -s conftest.err
1959 } && test -s conftest.$ac_objext; then :
1960 ac_retval=0
1961else
1962 $as_echo "$as_me: failed program was:" >&5
1963sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1964
cd9a469c 1965 ac_retval=1
1966fi
f00f02a3 1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
4ee9c684 1969
cd9a469c 1970} # ac_fn_fc_try_compile
4ee9c684 1971
cd9a469c 1972# ac_fn_fc_try_link LINENO
1973# ------------------------
1974# Try to link conftest.$ac_ext, and return whether this succeeded.
1975ac_fn_fc_try_link ()
1976{
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 rm -f conftest.$ac_objext conftest$ac_exeext
1979 if { { ac_try="$ac_link"
1980case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983esac
1984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985$as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>conftest.err
1987 ac_status=$?
1988 if test -s conftest.err; then
1989 grep -v '^ *+' conftest.err >conftest.er1
1990 cat conftest.er1 >&5
1991 mv -f conftest.er1 conftest.err
1992 fi
1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994 test $ac_status = 0; } && {
1995 test -z "$ac_fc_werror_flag" ||
1996 test ! -s conftest.err
1997 } && test -s conftest$ac_exeext && {
1998 test "$cross_compiling" = yes ||
f00f02a3 1999 test -x conftest$ac_exeext
cd9a469c 2000 }; then :
2001 ac_retval=0
2002else
2003 $as_echo "$as_me: failed program was:" >&5
2004sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 2005
cd9a469c 2006 ac_retval=1
2007fi
2008 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2009 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2010 # interfere with the next link command; also delete a directory that is
2011 # left behind by Apple's compiler. We do this before executing the actions.
2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 as_fn_set_status $ac_retval
4ee9c684 2015
cd9a469c 2016} # ac_fn_fc_try_link
4ee9c684 2017
cd9a469c 2018# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2019# -------------------------------------------
2020# Tests whether TYPE exists after having included INCLUDES, setting cache
2021# variable VAR accordingly.
2022ac_fn_c_check_type ()
2023{
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026$as_echo_n "checking for $2... " >&6; }
f00f02a3 2027if eval \${$3+:} false; then :
cd9a469c 2028 $as_echo_n "(cached) " >&6
2029else
2030 eval "$3=no"
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h. */
2033$4
2034int
2035main ()
2036{
2037if (sizeof ($2))
2038 return 0;
2039 ;
2040 return 0;
2041}
4ee9c684 2042_ACEOF
cd9a469c 2043if ac_fn_c_try_compile "$LINENO"; then :
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h. */
2046$4
2047int
2048main ()
2049{
2050if (sizeof (($2)))
2051 return 0;
2052 ;
2053 return 0;
2054}
4ee9c684 2055_ACEOF
cd9a469c 2056if ac_fn_c_try_compile "$LINENO"; then :
4ee9c684 2057
cd9a469c 2058else
2059 eval "$3=yes"
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062fi
2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064fi
2065eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067$as_echo "$ac_res" >&6; }
f00f02a3 2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4ee9c684 2069
cd9a469c 2070} # ac_fn_c_check_type
4ee9c684 2071
d5d92632 2072# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2073# --------------------------------------------
2074# Tries to find the compile-time value of EXPR in a program that includes
2075# INCLUDES, setting VAR accordingly. Returns whether the value could be
2076# computed
2077ac_fn_c_compute_int ()
cd9a469c 2078{
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069752c 2080 if test "$cross_compiling" = yes; then
2081 # Depending upon the size, compute the lo and hi bounds.
2082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 2083/* end confdefs.h. */
2069752c 2084$4
cd9a469c 2085int
2086main ()
2087{
2069752c 2088static int test_array [1 - 2 * !(($2) >= 0)];
f00f02a3 2089test_array [0] = 0;
2090return test_array [0];
4ee9c684 2091
cd9a469c 2092 ;
2093 return 0;
2094}
2095_ACEOF
2096if ac_fn_c_try_compile "$LINENO"; then :
2069752c 2097 ac_lo=0 ac_mid=0
2098 while :; do
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 2100/* end confdefs.h. */
2069752c 2101$4
cd9a469c 2102int
2103main ()
2104{
2069752c 2105static int test_array [1 - 2 * !(($2) <= $ac_mid)];
f00f02a3 2106test_array [0] = 0;
2107return test_array [0];
4ee9c684 2108
cd9a469c 2109 ;
2110 return 0;
2111}
2112_ACEOF
2113if ac_fn_c_try_compile "$LINENO"; then :
2069752c 2114 ac_hi=$ac_mid; break
cd9a469c 2115else
2069752c 2116 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2117 if test $ac_lo -le $ac_mid; then
2118 ac_lo= ac_hi=
2119 break
2120 fi
2121 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
cd9a469c 2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069752c 2124 done
2125else
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127/* end confdefs.h. */
2128$4
2129int
2130main ()
2131{
2132static int test_array [1 - 2 * !(($2) < 0)];
f00f02a3 2133test_array [0] = 0;
2134return test_array [0];
2069752c 2135
2136 ;
2137 return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_hi=-1 ac_mid=-1
2142 while :; do
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$4
2146int
2147main ()
2148{
2149static int test_array [1 - 2 * !(($2) >= $ac_mid)];
f00f02a3 2150test_array [0] = 0;
2151return test_array [0];
2069752c 2152
2153 ;
2154 return 0;
2155}
2156_ACEOF
2157if ac_fn_c_try_compile "$LINENO"; then :
2158 ac_lo=$ac_mid; break
2159else
2160 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2161 if test $ac_mid -le $ac_hi; then
2162 ac_lo= ac_hi=
2163 break
2164 fi
2165 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
cd9a469c 2166fi
2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069752c 2168 done
ea6b3890 2169else
2069752c 2170 ac_lo= ac_hi=
cd9a469c 2171fi
2069752c 2172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea6b3890 2173fi
2069752c 2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175# Binary search between lo and hi bounds.
2176while test "x$ac_lo" != "x$ac_hi"; do
2177 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 2179/* end confdefs.h. */
2069752c 2180$4
cd9a469c 2181int
2182main ()
2183{
2069752c 2184static int test_array [1 - 2 * !(($2) <= $ac_mid)];
f00f02a3 2185test_array [0] = 0;
2186return test_array [0];
4ee9c684 2187
cd9a469c 2188 ;
2189 return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2069752c 2193 ac_hi=$ac_mid
2194else
2195 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
cd9a469c 2196fi
2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069752c 2198done
2199case $ac_lo in #((
2200?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2201'') ac_retval=1 ;;
2202esac
2203 else
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h. */
2206$4
2207static long int longval () { return $2; }
2208static unsigned long int ulongval () { return $2; }
2209#include <stdio.h>
2210#include <stdlib.h>
2211int
2212main ()
2213{
4ee9c684 2214
2069752c 2215 FILE *f = fopen ("conftest.val", "w");
2216 if (! f)
2217 return 1;
2218 if (($2) < 0)
2219 {
2220 long int i = longval ();
2221 if (i != ($2))
2222 return 1;
2223 fprintf (f, "%ld", i);
2224 }
2225 else
2226 {
2227 unsigned long int i = ulongval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%lu", i);
2231 }
2232 /* Do not output a trailing newline, as this causes \r\n confusion
2233 on some platforms. */
2234 return ferror (f) || fclose (f) != 0;
2235
2236 ;
2237 return 0;
2238}
2239_ACEOF
2240if ac_fn_c_try_run "$LINENO"; then :
2241 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
cd9a469c 2242else
2069752c 2243 ac_retval=1
ea6b3890 2244fi
2069752c 2245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2246 conftest.$ac_objext conftest.beam conftest.$ac_ext
2247rm -f conftest.val
2248
2249 fi
f00f02a3 2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 as_fn_set_status $ac_retval
4ee9c684 2252
2069752c 2253} # ac_fn_c_compute_int
4ee9c684 2254
cd9a469c 2255# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2256# ----------------------------------------------------
2257# Tries to find if the field MEMBER exists in type AGGR, after including
2258# INCLUDES, setting cache variable VAR accordingly.
2259ac_fn_c_check_member ()
2260{
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2263$as_echo_n "checking for $2.$3... " >&6; }
f00f02a3 2264if eval \${$4+:} false; then :
cd9a469c 2265 $as_echo_n "(cached) " >&6
2266else
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268/* end confdefs.h. */
2269$5
2270int
2271main ()
2272{
2273static $2 ac_aggr;
2274if (ac_aggr.$3)
2275return 0;
2276 ;
2277 return 0;
2278}
2279_ACEOF
2280if ac_fn_c_try_compile "$LINENO"; then :
2281 eval "$4=yes"
2282else
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284/* end confdefs.h. */
2285$5
2286int
2287main ()
2288{
2289static $2 ac_aggr;
2290if (sizeof ac_aggr.$3)
2291return 0;
2292 ;
2293 return 0;
2294}
2295_ACEOF
2296if ac_fn_c_try_compile "$LINENO"; then :
2297 eval "$4=yes"
2298else
2299 eval "$4=no"
2300fi
2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304fi
2305eval ac_res=\$$4
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307$as_echo "$ac_res" >&6; }
f00f02a3 2308 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4ee9c684 2309
cd9a469c 2310} # ac_fn_c_check_member
2311cat >config.log <<_ACEOF
2312This file contains any messages produced by compilers while
2313running configure, to aid debugging if configure makes a mistake.
4ee9c684 2314
cd9a469c 2315It was created by GNU Fortran Runtime Library $as_me 0.3, which was
f00f02a3 2316generated by GNU Autoconf 2.69. Invocation command line was
4ee9c684 2317
cd9a469c 2318 $ $0 $@
4ee9c684 2319
cd9a469c 2320_ACEOF
2321exec 5>>config.log
2322{
2323cat <<_ASUNAME
2324## --------- ##
2325## Platform. ##
2326## --------- ##
4ee9c684 2327
cd9a469c 2328hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2329uname -m = `(uname -m) 2>/dev/null || echo unknown`
2330uname -r = `(uname -r) 2>/dev/null || echo unknown`
2331uname -s = `(uname -s) 2>/dev/null || echo unknown`
2332uname -v = `(uname -v) 2>/dev/null || echo unknown`
4ee9c684 2333
cd9a469c 2334/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2335/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
4ee9c684 2336
cd9a469c 2337/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2338/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2339/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2340/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2341/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2342/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2343/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
4ee9c684 2344
cd9a469c 2345_ASUNAME
5b2c7553 2346
cd9a469c 2347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348for as_dir in $PATH
2349do
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 $as_echo "PATH: $as_dir"
2353 done
2354IFS=$as_save_IFS
5b2c7553 2355
cd9a469c 2356} >&5
5b2c7553 2357
cd9a469c 2358cat >&5 <<_ACEOF
4ee9c684 2359
2360
cd9a469c 2361## ----------- ##
2362## Core tests. ##
2363## ----------- ##
a106dabe 2364
cd9a469c 2365_ACEOF
82eaf560 2366
90973b19 2367
cd9a469c 2368# Keep a trace of the command line.
2369# Strip out --no-create and --no-recursion so they do not pile up.
2370# Strip out --silent because we don't want to record it for future runs.
2371# Also quote any args containing shell meta-characters.
2372# Make two passes to allow for proper duplicate-argument suppression.
2373ac_configure_args=
2374ac_configure_args0=
2375ac_configure_args1=
2376ac_must_keep_next=false
2377for ac_pass in 1 2
2378do
2379 for ac_arg
2380 do
2381 case $ac_arg in
2382 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2384 | -silent | --silent | --silen | --sile | --sil)
2385 continue ;;
2386 *\'*)
2387 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 esac
2389 case $ac_pass in
2390 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2391 2)
2392 as_fn_append ac_configure_args1 " '$ac_arg'"
2393 if test $ac_must_keep_next = true; then
2394 ac_must_keep_next=false # Got value, back to normal.
2395 else
2396 case $ac_arg in
2397 *=* | --config-cache | -C | -disable-* | --disable-* \
2398 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2399 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2400 | -with-* | --with-* | -without-* | --without-* | --x)
2401 case "$ac_configure_args0 " in
2402 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2403 esac
2404 ;;
2405 -* ) ac_must_keep_next=true ;;
2406 esac
2407 fi
2408 as_fn_append ac_configure_args " '$ac_arg'"
2409 ;;
2410 esac
2411 done
4ee9c684 2412done
cd9a469c 2413{ ac_configure_args0=; unset ac_configure_args0;}
2414{ ac_configure_args1=; unset ac_configure_args1;}
90973b19 2415
cd9a469c 2416# When interrupted or exit'd, cleanup temporary files, and complete
2417# config.log. We remove comments because anyway the quotes in there
2418# would cause problems or look ugly.
2419# WARNING: Use '\'' to represent an apostrophe within the trap.
2420# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2421trap 'exit_status=$?
2422 # Save into config.log some information that might help in debugging.
2423 {
2424 echo
90973b19 2425
f00f02a3 2426 $as_echo "## ---------------- ##
cd9a469c 2427## Cache variables. ##
f00f02a3 2428## ---------------- ##"
cd9a469c 2429 echo
2430 # The following way of writing the cache mishandles newlines in values,
2431(
2432 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2433 eval ac_val=\$$ac_var
2434 case $ac_val in #(
2435 *${as_nl}*)
2436 case $ac_var in #(
2437 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2438$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2439 esac
2440 case $ac_var in #(
2441 _ | IFS | as_nl) ;; #(
2442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2443 *) { eval $ac_var=; unset $ac_var;} ;;
2444 esac ;;
2445 esac
2446 done
2447 (set) 2>&1 |
2448 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2449 *${as_nl}ac_space=\ *)
2450 sed -n \
2451 "s/'\''/'\''\\\\'\'''\''/g;
2452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2453 ;; #(
2454 *)
2455 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2456 ;;
2457 esac |
2458 sort
2459)
2460 echo
2461
f00f02a3 2462 $as_echo "## ----------------- ##
cd9a469c 2463## Output variables. ##
f00f02a3 2464## ----------------- ##"
cd9a469c 2465 echo
2466 for ac_var in $ac_subst_vars
2467 do
2468 eval ac_val=\$$ac_var
2469 case $ac_val in
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 esac
2472 $as_echo "$ac_var='\''$ac_val'\''"
2473 done | sort
2474 echo
2475
2476 if test -n "$ac_subst_files"; then
f00f02a3 2477 $as_echo "## ------------------- ##
cd9a469c 2478## File substitutions. ##
f00f02a3 2479## ------------------- ##"
cd9a469c 2480 echo
2481 for ac_var in $ac_subst_files
2482 do
2483 eval ac_val=\$$ac_var
2484 case $ac_val in
2485 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2486 esac
2487 $as_echo "$ac_var='\''$ac_val'\''"
2488 done | sort
2489 echo
2490 fi
2491
2492 if test -s confdefs.h; then
f00f02a3 2493 $as_echo "## ----------- ##
cd9a469c 2494## confdefs.h. ##
f00f02a3 2495## ----------- ##"
cd9a469c 2496 echo
2497 cat confdefs.h
2498 echo
2499 fi
2500 test "$ac_signal" != 0 &&
2501 $as_echo "$as_me: caught signal $ac_signal"
2502 $as_echo "$as_me: exit $exit_status"
2503 } >&5
2504 rm -f core *.core core.conftest.* &&
2505 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2506 exit $exit_status
2507' 0
2508for ac_signal in 1 2 13 15; do
2509 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2510done
2511ac_signal=0
2512
2513# confdefs.h avoids OS command line length limits that DEFS can exceed.
2514rm -f -r conftest* confdefs.h
2515
2516$as_echo "/* confdefs.h */" > confdefs.h
2517
2518# Predefined preprocessor variables.
2519
2520cat >>confdefs.h <<_ACEOF
2521#define PACKAGE_NAME "$PACKAGE_NAME"
2522_ACEOF
2523
2524cat >>confdefs.h <<_ACEOF
2525#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2526_ACEOF
2527
2528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_VERSION "$PACKAGE_VERSION"
2530_ACEOF
2531
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_STRING "$PACKAGE_STRING"
2534_ACEOF
2535
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2538_ACEOF
2539
2540cat >>confdefs.h <<_ACEOF
2541#define PACKAGE_URL "$PACKAGE_URL"
2542_ACEOF
2543
2544
2545# Let the site file select an alternate cache file if it wants to.
2546# Prefer an explicitly selected file to automatically selected ones.
2547ac_site_file1=NONE
2548ac_site_file2=NONE
2549if test -n "$CONFIG_SITE"; then
f00f02a3 2550 # We do not want a PATH search for config.site.
2551 case $CONFIG_SITE in #((
2552 -*) ac_site_file1=./$CONFIG_SITE;;
2553 */*) ac_site_file1=$CONFIG_SITE;;
2554 *) ac_site_file1=./$CONFIG_SITE;;
2555 esac
cd9a469c 2556elif test "x$prefix" != xNONE; then
2557 ac_site_file1=$prefix/share/config.site
2558 ac_site_file2=$prefix/etc/config.site
2559else
2560 ac_site_file1=$ac_default_prefix/share/config.site
2561 ac_site_file2=$ac_default_prefix/etc/config.site
2562fi
2563for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2564do
2565 test "x$ac_site_file" = xNONE && continue
f00f02a3 2566 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cd9a469c 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2568$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2569 sed 's/^/| /' "$ac_site_file" >&5
f00f02a3 2570 . "$ac_site_file" \
2571 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573as_fn_error $? "failed to load site script $ac_site_file
2574See \`config.log' for more details" "$LINENO" 5; }
cd9a469c 2575 fi
2576done
2577
2578if test -r "$cache_file"; then
f00f02a3 2579 # Some versions of bash will fail to source /dev/null (special files
2580 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2581 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cd9a469c 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2583$as_echo "$as_me: loading cache $cache_file" >&6;}
2584 case $cache_file in
2585 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2586 *) . "./$cache_file";;
2587 esac
2588 fi
2589else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2591$as_echo "$as_me: creating cache $cache_file" >&6;}
2592 >$cache_file
2593fi
2594
a1aa1d30 2595as_fn_append ac_header_list " unistd.h"
1c383045 2596as_fn_append ac_header_list " sys/random.h"
a1aa1d30 2597as_fn_append ac_header_list " sys/time.h"
2598as_fn_append ac_header_list " sys/times.h"
2599as_fn_append ac_header_list " sys/resource.h"
2600as_fn_append ac_header_list " sys/types.h"
2601as_fn_append ac_header_list " sys/stat.h"
9680a5f4 2602as_fn_append ac_header_list " sys/uio.h"
a1aa1d30 2603as_fn_append ac_header_list " sys/wait.h"
2604as_fn_append ac_header_list " floatingpoint.h"
2605as_fn_append ac_header_list " ieeefp.h"
2606as_fn_append ac_header_list " fenv.h"
2607as_fn_append ac_header_list " fptrap.h"
553e7cef 2608as_fn_append ac_header_list " fpxcp.h"
a1aa1d30 2609as_fn_append ac_header_list " pwd.h"
2610as_fn_append ac_header_list " complex.h"
b8a8c7bc 2611as_fn_append ac_header_list " xlocale.h"
a1aa1d30 2612as_fn_append ac_func_list " getrusage"
2613as_fn_append ac_func_list " times"
2614as_fn_append ac_func_list " mkstemp"
2615as_fn_append ac_func_list " strtof"
2616as_fn_append ac_func_list " strtold"
2617as_fn_append ac_func_list " snprintf"
2618as_fn_append ac_func_list " ftruncate"
2619as_fn_append ac_func_list " chsize"
2620as_fn_append ac_func_list " chdir"
75535607 2621as_fn_append ac_func_list " getentropy"
a1aa1d30 2622as_fn_append ac_func_list " getlogin"
2623as_fn_append ac_func_list " gethostname"
2624as_fn_append ac_func_list " kill"
2625as_fn_append ac_func_list " link"
2626as_fn_append ac_func_list " symlink"
2627as_fn_append ac_func_list " sleep"
2628as_fn_append ac_func_list " ttyname"
2629as_fn_append ac_func_list " alarm"
2630as_fn_append ac_func_list " access"
2631as_fn_append ac_func_list " fork"
a1aa1d30 2632as_fn_append ac_func_list " setmode"
7520a494 2633as_fn_append ac_func_list " fcntl"
9680a5f4 2634as_fn_append ac_func_list " writev"
a1aa1d30 2635as_fn_append ac_func_list " gettimeofday"
2636as_fn_append ac_func_list " stat"
2637as_fn_append ac_func_list " fstat"
2638as_fn_append ac_func_list " lstat"
2639as_fn_append ac_func_list " getpwuid"
2640as_fn_append ac_func_list " vsnprintf"
2641as_fn_append ac_func_list " dup"
2642as_fn_append ac_func_list " getcwd"
2643as_fn_append ac_func_list " localtime_r"
2644as_fn_append ac_func_list " gmtime_r"
a1aa1d30 2645as_fn_append ac_func_list " getpwuid_r"
2646as_fn_append ac_func_list " ttyname_r"
2647as_fn_append ac_func_list " clock_gettime"
a1aa1d30 2648as_fn_append ac_func_list " getgid"
2649as_fn_append ac_func_list " getpid"
a1aa1d30 2650as_fn_append ac_func_list " getuid"
2651as_fn_append ac_func_list " geteuid"
ffb6d1fd 2652as_fn_append ac_func_list " umask"
a291e3b6 2653as_fn_append ac_func_list " getegid"
5935a97b 2654as_fn_append ac_func_list " secure_getenv"
a291e3b6 2655as_fn_append ac_func_list " __secure_getenv"
544db64f 2656as_fn_append ac_func_list " mkostemp"
fc3d374a 2657as_fn_append ac_func_list " strnlen"
2658as_fn_append ac_func_list " strndup"
b8a8c7bc 2659as_fn_append ac_func_list " newlocale"
2660as_fn_append ac_func_list " freelocale"
2661as_fn_append ac_func_list " uselocale"
2662as_fn_append ac_func_list " strerror_l"
7d9455ce 2663as_fn_append ac_header_list " math.h"
cd9a469c 2664# Check that the precious variables saved in the cache have kept the same
2665# value.
2666ac_cache_corrupted=false
2667for ac_var in $ac_precious_vars; do
2668 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2669 eval ac_new_set=\$ac_env_${ac_var}_set
2670 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2671 eval ac_new_val=\$ac_env_${ac_var}_value
2672 case $ac_old_set,$ac_new_set in
2673 set,)
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2675$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2676 ac_cache_corrupted=: ;;
2677 ,set)
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2679$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2680 ac_cache_corrupted=: ;;
2681 ,);;
2682 *)
2683 if test "x$ac_old_val" != "x$ac_new_val"; then
2684 # differences in whitespace do not lead to failure.
2685 ac_old_val_w=`echo x $ac_old_val`
2686 ac_new_val_w=`echo x $ac_new_val`
2687 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2689$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2690 ac_cache_corrupted=:
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2693$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2694 eval $ac_var=\$ac_old_val
2695 fi
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2697$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2699$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2700 fi;;
2701 esac
2702 # Pass precious variables to config.status.
2703 if test "$ac_new_set" = set; then
2704 case $ac_new_val in
2705 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2706 *) ac_arg=$ac_var=$ac_new_val ;;
2707 esac
2708 case " $ac_configure_args " in
2709 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2710 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2711 esac
2712 fi
2713done
2714if $ac_cache_corrupted; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2718$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
f00f02a3 2719 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cd9a469c 2720fi
2721## -------------------- ##
2722## Main body of script. ##
2723## -------------------- ##
2724
2725ac_ext=c
2726ac_cpp='$CPP $CPPFLAGS'
2727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
2731
2732
2733
2734
2735ac_config_headers="$ac_config_headers config.h"
2736
2737ac_aux_dir=
2738for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
f00f02a3 2739 if test -f "$ac_dir/install-sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/install-sh -c"
2742 break
2743 elif test -f "$ac_dir/install.sh"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/install.sh -c"
2746 break
2747 elif test -f "$ac_dir/shtool"; then
2748 ac_aux_dir=$ac_dir
2749 ac_install_sh="$ac_aux_dir/shtool install -c"
2750 break
2751 fi
cd9a469c 2752done
2753if test -z "$ac_aux_dir"; then
f00f02a3 2754 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
cd9a469c 2755fi
2756
2757# These three variables are undocumented and unsupported,
2758# and are intended to be withdrawn in a future Autoconf release.
2759# They can cause serious problems if a builder's source tree is in a directory
2760# whose full name contains unusual characters.
2761ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2762ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2763ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2764
2765
2766# Make sure we can run config.sub.
2767$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
f00f02a3 2768 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cd9a469c 2769
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2771$as_echo_n "checking build system type... " >&6; }
f00f02a3 2772if ${ac_cv_build+:} false; then :
cd9a469c 2773 $as_echo_n "(cached) " >&6
2774else
2775 ac_build_alias=$build_alias
2776test "x$ac_build_alias" = x &&
2777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2778test "x$ac_build_alias" = x &&
f00f02a3 2779 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cd9a469c 2780ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
f00f02a3 2781 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cd9a469c 2782
2783fi
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2785$as_echo "$ac_cv_build" >&6; }
2786case $ac_cv_build in
2787*-*-*) ;;
f00f02a3 2788*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cd9a469c 2789esac
2790build=$ac_cv_build
2791ac_save_IFS=$IFS; IFS='-'
2792set x $ac_cv_build
2793shift
2794build_cpu=$1
2795build_vendor=$2
2796shift; shift
2797# Remember, the first character of IFS is used to create $*,
2798# except with old shells:
2799build_os=$*
2800IFS=$ac_save_IFS
2801case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2802
2803
2804 case ${build_alias} in
2805 "") build_noncanonical=${build} ;;
2806 *) build_noncanonical=${build_alias} ;;
2807esac
4c82c0dd 2808
2809 case ${host_alias} in
2810 "") host_noncanonical=${build_noncanonical} ;;
2811 *) host_noncanonical=${host_alias} ;;
2812esac
2813
2814 case ${target_alias} in
2815 "") target_noncanonical=${host_noncanonical} ;;
2816 *) target_noncanonical=${target_alias} ;;
2817esac
2818
3e427a9c 2819
2820# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2821# have matching libraries, they should use host libraries: Makefile.tpl
2822# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2823# However, they still use the build modules, because the corresponding
2824# host modules (e.g. bison) are only built for the host when bootstrap
2825# finishes. So:
2826# - build_subdir is where we find build modules, and never changes.
2827# - build_libsubdir is where we find build libraries, and can be overridden.
2828
2829# Prefix 'build-' so this never conflicts with target_subdir.
4c82c0dd 2830build_subdir="build-${build_noncanonical}"
3e427a9c 2831
cd9a469c 2832# Check whether --with-build-libsubdir was given.
2833if test "${with_build_libsubdir+set}" = set; then :
2834 withval=$with_build_libsubdir; build_libsubdir="$withval"
3e427a9c 2835else
2836 build_libsubdir="$build_subdir"
cd9a469c 2837fi
2838
4c82c0dd 2839# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2840if ( test $srcdir = . && test -d gcc ) \
2841 || test -d $srcdir/../host-${host_noncanonical}; then
2842 host_subdir="host-${host_noncanonical}"
2843else
2844 host_subdir=.
2845fi
2846# No prefix.
2847target_subdir=${target_noncanonical}
2848
2849
2850# -------
2851# Options
2852# -------
2853
cd9a469c 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2855$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2856# Check whether --enable-version-specific-runtime-libs was given.
2857if test "${enable_version_specific_runtime_libs+set}" = set; then :
2858 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4c82c0dd 2859 yes) version_specific_libs=yes ;;
2860 no) version_specific_libs=no ;;
f00f02a3 2861 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4c82c0dd 2862 esac
2863else
2864 version_specific_libs=no
cd9a469c 2865fi
2866
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2868$as_echo "$version_specific_libs" >&6; }
4c82c0dd 2869
93773f82 2870# Build with intermodule optimisations
cd9a469c 2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2872$as_echo_n "checking for --enable-intermodule... " >&6; }
2873# Check whether --enable-intermodule was given.
2874if test "${enable_intermodule+set}" = set; then :
2875 enableval=$enable_intermodule; case "$enable_intermodule" in
93773f82 2876 yes) onestep="-onestep";;
2877 *) onestep="";;
2878esac
2879else
2880 onestep=""
cd9a469c 2881fi
93773f82 2882
cd9a469c 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2884$as_echo "$enable_intermodule" >&6; }
2885 if test x$onestep = x-onestep; then
93773f82 2886 onestep_TRUE=
2887 onestep_FALSE='#'
2888else
2889 onestep_TRUE='#'
2890 onestep_FALSE=
2891fi
2892
2893
4c82c0dd 2894
2895# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2896#
2897# You will slowly go insane if you do not grok the following fact: when
2898# building this library, the top-level /target/ becomes the library's /host/.
2899#
2900# configure then causes --target to default to --host, exactly like any
2901# other package using autoconf. Therefore, 'target' and 'host' will
2902# always be the same. This makes sense both for native and cross compilers
2903# just think about it for a little while. :-)
2904#
2905# Also, if this library is being configured as part of a cross compiler, the
2906# top-level configure script will pass the "real" host as $with_cross_host.
2907#
2908# Do not delete or change the following two lines. For why, see
2909# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
cd9a469c 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2911$as_echo_n "checking host system type... " >&6; }
f00f02a3 2912if ${ac_cv_host+:} false; then :
cd9a469c 2913 $as_echo_n "(cached) " >&6
2914else
2915 if test "x$host_alias" = x; then
2916 ac_cv_host=$ac_cv_build
2917else
2918 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
f00f02a3 2919 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cd9a469c 2920fi
2921
2922fi
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2924$as_echo "$ac_cv_host" >&6; }
2925case $ac_cv_host in
2926*-*-*) ;;
f00f02a3 2927*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cd9a469c 2928esac
90973b19 2929host=$ac_cv_host
cd9a469c 2930ac_save_IFS=$IFS; IFS='-'
2931set x $ac_cv_host
2932shift
2933host_cpu=$1
2934host_vendor=$2
2935shift; shift
2936# Remember, the first character of IFS is used to create $*,
2937# except with old shells:
2938host_os=$*
2939IFS=$ac_save_IFS
2940case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
82eaf560 2941
2942
cd9a469c 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2944$as_echo_n "checking target system type... " >&6; }
f00f02a3 2945if ${ac_cv_target+:} false; then :
cd9a469c 2946 $as_echo_n "(cached) " >&6
90973b19 2947else
cd9a469c 2948 if test "x$target_alias" = x; then
2949 ac_cv_target=$ac_cv_host
2950else
2951 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
f00f02a3 2952 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cd9a469c 2953fi
90973b19 2954
2955fi
cd9a469c 2956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2957$as_echo "$ac_cv_target" >&6; }
2958case $ac_cv_target in
2959*-*-*) ;;
f00f02a3 2960*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cd9a469c 2961esac
90973b19 2962target=$ac_cv_target
cd9a469c 2963ac_save_IFS=$IFS; IFS='-'
2964set x $ac_cv_target
2965shift
2966target_cpu=$1
2967target_vendor=$2
2968shift; shift
2969# Remember, the first character of IFS is used to create $*,
2970# except with old shells:
2971target_os=$*
2972IFS=$ac_save_IFS
2973case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
90973b19 2974
2975
2976# The aliases save the names the user supplied, while $host etc.
2977# will get canonicalized.
2978test -n "$target_alias" &&
2979 test "$program_prefix$program_suffix$program_transform_name" = \
2980 NONENONEs,x,x, &&
2981 program_prefix=${target_alias}-
cd9a469c 2982
7eda0fb7 2983
2984
2985
90973b19 2986target_alias=${target_alias-$host_alias}
2987
7eda0fb7 2988
90973b19 2989# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2990# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2fd61f51 2991# 1.9.6: minimum required version
90973b19 2992# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2993# of other PACKAGE_* variables will, however, and there's nothing
2994# we can do about that; they come from AC_INIT).
2995# foreign: we don't follow the normal rules for GNU packages (no COPYING
2996# file in the top srcdir, etc, etc), so stop complaining.
5dbeae57 2997# no-dist: we don't want 'dist' and related rules.
90973b19 2998# -Wall: turns on all automake warnings...
2999# -Wno-portability: ...except this one, since GNU make is required.
f00f02a3 3000am__api_version='1.15'
cd9a469c 3001
4ee9c684 3002# Find a good install program. We prefer a C program (faster),
3003# so one script is as good as another. But avoid the broken or
3004# incompatible versions:
3005# SysV /etc/install, /usr/sbin/install
3006# SunOS /usr/etc/install
3007# IRIX /sbin/install
3008# AIX /bin/install
3009# AmigaOS /C/install, which installs bootblocks on floppy discs
3010# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3011# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3012# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3013# OS/2's system install, which has a completely different semantic
3014# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 3015# Reject install programs that cannot install multiple files.
cd9a469c 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3017$as_echo_n "checking for a BSD-compatible install... " >&6; }
4ee9c684 3018if test -z "$INSTALL"; then
f00f02a3 3019if ${ac_cv_path_install+:} false; then :
cd9a469c 3020 $as_echo_n "(cached) " >&6
4ee9c684 3021else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
cd9a469c 3027 # Account for people who put trailing slashes in PATH elements.
3028case $as_dir/ in #((
3029 ./ | .// | /[cC]/* | \
4ee9c684 3030 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 3031 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4ee9c684 3032 /usr/ucb/* ) ;;
3033 *)
3034 # OSF1 and SCO ODT 3.0 have their own names for install.
3035 # Don't use installbsd from OSF since it installs stuff as root
3036 # by default.
3037 for ac_prog in ginstall scoinst install; do
3038 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3039 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4ee9c684 3040 if test $ac_prog = install &&
3041 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3042 # AIX install. It has an incompatible calling convention.
3043 :
3044 elif test $ac_prog = install &&
3045 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3046 # program-specific install script used by HP pwplus--don't use.
3047 :
3048 else
82eaf560 3049 rm -rf conftest.one conftest.two conftest.dir
3050 echo one > conftest.one
3051 echo two > conftest.two
3052 mkdir conftest.dir
3053 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3054 test -s conftest.one && test -s conftest.two &&
3055 test -s conftest.dir/conftest.one &&
3056 test -s conftest.dir/conftest.two
3057 then
3058 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3059 break 3
3060 fi
4ee9c684 3061 fi
3062 fi
3063 done
3064 done
3065 ;;
3066esac
cd9a469c 3067
3068 done
3069IFS=$as_save_IFS
4ee9c684 3070
82eaf560 3071rm -rf conftest.one conftest.two conftest.dir
4ee9c684 3072
3073fi
3074 if test "${ac_cv_path_install+set}" = set; then
3075 INSTALL=$ac_cv_path_install
3076 else
ff4425cf 3077 # As a last resort, use the slow shell script. Don't cache a
3078 # value for INSTALL within a source directory, because that will
4ee9c684 3079 # break other packages using the cache if that directory is
ff4425cf 3080 # removed, or if the value is a relative name.
4ee9c684 3081 INSTALL=$ac_install_sh
3082 fi
3083fi
cd9a469c 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3085$as_echo "$INSTALL" >&6; }
4ee9c684 3086
3087# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3088# It thinks the first close brace ends the variable substitution.
3089test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3090
3091test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3092
3093test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3094
cd9a469c 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3096$as_echo_n "checking whether build environment is sane... " >&6; }
cd9a469c 3097# Reject unsafe characters in $srcdir or the absolute working directory
3098# name. Accept space and tab only in the latter.
3099am_lf='
3100'
3101case `pwd` in
3102 *[\\\"\#\$\&\'\`$am_lf]*)
f00f02a3 3103 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cd9a469c 3104esac
3105case $srcdir in
3106 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
f00f02a3 3107 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cd9a469c 3108esac
3109
f00f02a3 3110# Do 'set' in a subshell so we don't clobber the current shell's
4ee9c684 3111# arguments. Must try -L first in case configure is actually a
3112# symlink; some systems play weird games with the mod time of symlinks
3113# (eg FreeBSD returns the mod time of the symlink's containing
3114# directory).
3115if (
f00f02a3 3116 am_has_slept=no
3117 for am_try in 1 2; do
3118 echo "timestamp, slept: $am_has_slept" > conftest.file
3119 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3120 if test "$*" = "X"; then
3121 # -L didn't work.
3122 set X `ls -t "$srcdir/configure" conftest.file`
3123 fi
3124 if test "$*" != "X $srcdir/configure conftest.file" \
3125 && test "$*" != "X conftest.file $srcdir/configure"; then
3126
3127 # If neither matched, then we have a broken ls. This can happen
3128 # if, for instance, CONFIG_SHELL is bash and it inherits a
3129 # broken ls alias from the environment. This has actually
3130 # happened. Such a system could not be considered "sane".
3131 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3132 alias in your environment" "$LINENO" 5
3133 fi
3134 if test "$2" = conftest.file || test $am_try -eq 2; then
3135 break
3136 fi
3137 # Just in case.
3138 sleep 1
3139 am_has_slept=yes
3140 done
4ee9c684 3141 test "$2" = conftest.file
3142 )
3143then
3144 # Ok.
3145 :
3146else
f00f02a3 3147 as_fn_error $? "newly created file is older than distributed files!
cd9a469c 3148Check your system clock" "$LINENO" 5
4ee9c684 3149fi
cd9a469c 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3151$as_echo "yes" >&6; }
f00f02a3 3152# If we didn't sleep, we still need to ensure time stamps of config.status and
3153# generated files are strictly newer.
3154am_sleep_pid=
3155if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3156 ( sleep 1 ) &
3157 am_sleep_pid=$!
3158fi
3159
3160rm -f conftest.file
3161
4ee9c684 3162test "$program_prefix" != NONE &&
cd9a469c 3163 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4ee9c684 3164# Use a double $ so make ignores it.
3165test "$program_suffix" != NONE &&
cd9a469c 3166 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3167# Double any \ or $.
4ee9c684 3168# By default was `s,x,x', remove it if useless.
cd9a469c 3169ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3170program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4ee9c684 3171
f00f02a3 3172# Expand $ac_aux_dir to an absolute path.
3173am_aux_dir=`cd "$ac_aux_dir" && pwd`
4ee9c684 3174
cd9a469c 3175if test x"${MISSING+set}" != xset; then
3176 case $am_aux_dir in
3177 *\ * | *\ *)
3178 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3179 *)
3180 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3181 esac
3182fi
4ee9c684 3183# Use eval to expand $SHELL
f00f02a3 3184if eval "$MISSING --is-lightweight"; then
3185 am_missing_run="$MISSING "
4ee9c684 3186else
3187 am_missing_run=
f00f02a3 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3189$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4ee9c684 3190fi
3191
f00f02a3 3192if test x"${install_sh+set}" != xset; then
cd9a469c 3193 case $am_aux_dir in
3194 *\ * | *\ *)
3195 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3196 *)
3197 install_sh="\${SHELL} $am_aux_dir/install-sh"
3198 esac
3199fi
3200
f00f02a3 3201# Installed binaries are usually stripped using 'strip' when the user
3202# run "make install-strip". However 'strip' might not be the right
cd9a469c 3203# tool to use in cross-compilation environments, therefore Automake
f00f02a3 3204# will honor the 'STRIP' environment variable to overrule this program.
cd9a469c 3205if test "$cross_compiling" != no; then
3206 if test -n "$ac_tool_prefix"; then
3207 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3208set dummy ${ac_tool_prefix}strip; ac_word=$2
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3211if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 3212 $as_echo_n "(cached) " >&6
4ee9c684 3213else
cd9a469c 3214 if test -n "$STRIP"; then
3215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4ee9c684 3216else
3217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
cd9a469c 3222 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cd9a469c 3224 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3226 break 2
3227 fi
3228done
cd9a469c 3229 done
3230IFS=$as_save_IFS
4ee9c684 3231
3232fi
3233fi
cd9a469c 3234STRIP=$ac_cv_prog_STRIP
3235if test -n "$STRIP"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3237$as_echo "$STRIP" >&6; }
4ee9c684 3238else
cd9a469c 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240$as_echo "no" >&6; }
4ee9c684 3241fi
3242
4ee9c684 3243
cd9a469c 3244fi
3245if test -z "$ac_cv_prog_STRIP"; then
3246 ac_ct_STRIP=$STRIP
3247 # Extract the first word of "strip", so it can be a program name with args.
3248set dummy strip; ac_word=$2
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3251if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cd9a469c 3252 $as_echo_n "(cached) " >&6
4ee9c684 3253else
cd9a469c 3254 if test -n "$ac_ct_STRIP"; then
3255 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
82eaf560 3256else
cd9a469c 3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258for as_dir in $PATH
3259do
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cd9a469c 3264 ac_cv_prog_ac_ct_STRIP="strip"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268done
3269 done
3270IFS=$as_save_IFS
3271
82eaf560 3272fi
4ee9c684 3273fi
cd9a469c 3274ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3275if test -n "$ac_ct_STRIP"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3277$as_echo "$ac_ct_STRIP" >&6; }
3278else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280$as_echo "no" >&6; }
3281fi
3282
3283 if test "x$ac_ct_STRIP" = x; then
3284 STRIP=":"
3285 else
3286 case $cross_compiling:$ac_tool_warned in
3287yes:)
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3290ac_tool_warned=yes ;;
3291esac
3292 STRIP=$ac_ct_STRIP
3293 fi
3294else
3295 STRIP="$ac_cv_prog_STRIP"
3296fi
3297
3298fi
3299INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3300
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3302$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3303if test -z "$MKDIR_P"; then
f00f02a3 3304 if ${ac_cv_path_mkdir+:} false; then :
cd9a469c 3305 $as_echo_n "(cached) " >&6
3306else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3309do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_prog in mkdir gmkdir; do
3313 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3314 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cd9a469c 3315 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3316 'mkdir (GNU coreutils) '* | \
3317 'mkdir (coreutils) '* | \
3318 'mkdir (fileutils) '4.1*)
3319 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3320 break 3;;
3321 esac
3322 done
3323 done
3324 done
3325IFS=$as_save_IFS
3326
3327fi
3328
f00f02a3 3329 test -d ./--version && rmdir ./--version
cd9a469c 3330 if test "${ac_cv_path_mkdir+set}" = set; then
3331 MKDIR_P="$ac_cv_path_mkdir -p"
3332 else
3333 # As a last resort, use the slow shell script. Don't cache a
3334 # value for MKDIR_P within a source directory, because that will
3335 # break other packages using the cache if that directory is
3336 # removed, or if the value is a relative name.
cd9a469c 3337 MKDIR_P="$ac_install_sh -d"
3338 fi
3339fi
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3341$as_echo "$MKDIR_P" >&6; }
3342
cd9a469c 3343for ac_prog in gawk mawk nawk awk
3344do
3345 # Extract the first word of "$ac_prog", so it can be a program name with args.
3346set dummy $ac_prog; ac_word=$2
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3349if ${ac_cv_prog_AWK+:} false; then :
cd9a469c 3350 $as_echo_n "(cached) " >&6
3351else
3352 if test -n "$AWK"; then
3353 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3354else
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cd9a469c 3362 ac_cv_prog_AWK="$ac_prog"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 break 2
3365 fi
3366done
3367 done
3368IFS=$as_save_IFS
3369
3370fi
3371fi
3372AWK=$ac_cv_prog_AWK
3373if test -n "$AWK"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3375$as_echo "$AWK" >&6; }
3376else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378$as_echo "no" >&6; }
3379fi
3380
3381
3382 test -n "$AWK" && break
3383done
3384
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3386$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3387set x ${MAKE-make}
3388ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
f00f02a3 3389if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cd9a469c 3390 $as_echo_n "(cached) " >&6
3391else
3392 cat >conftest.make <<\_ACEOF
3393SHELL = /bin/sh
3394all:
3395 @echo '@@@%%%=$(MAKE)=@@@%%%'
3396_ACEOF
f00f02a3 3397# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cd9a469c 3398case `${MAKE-make} -f conftest.make 2>/dev/null` in
3399 *@@@%%%=?*=@@@%%%*)
3400 eval ac_cv_prog_make_${ac_make}_set=yes;;
3401 *)
3402 eval ac_cv_prog_make_${ac_make}_set=no;;
3403esac
3404rm -f conftest.make
3405fi
3406if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3408$as_echo "yes" >&6; }
4ee9c684 3409 SET_MAKE=
3410else
cd9a469c 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412$as_echo "no" >&6; }
4ee9c684 3413 SET_MAKE="MAKE=${MAKE-make}"
3414fi
3415
3416rm -rf .tst 2>/dev/null
3417mkdir .tst 2>/dev/null
3418if test -d .tst; then
3419 am__leading_dot=.
3420else
3421 am__leading_dot=_
3422fi
3423rmdir .tst 2>/dev/null
3424
f00f02a3 3425# Check whether --enable-silent-rules was given.
3426if test "${enable_silent_rules+set}" = set; then :
3427 enableval=$enable_silent_rules;
3428fi
3429
3430case $enable_silent_rules in # (((
3431 yes) AM_DEFAULT_VERBOSITY=0;;
3432 no) AM_DEFAULT_VERBOSITY=1;;
3433 *) AM_DEFAULT_VERBOSITY=1;;
3434esac
3435am_make=${MAKE-make}
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3437$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3438if ${am_cv_make_support_nested_variables+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440else
3441 if $as_echo 'TRUE=$(BAR$(V))
3442BAR0=false
3443BAR1=true
3444V=1
3445am__doit:
3446 @$(TRUE)
3447.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3448 am_cv_make_support_nested_variables=yes
3449else
3450 am_cv_make_support_nested_variables=no
3451fi
3452fi
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3454$as_echo "$am_cv_make_support_nested_variables" >&6; }
3455if test $am_cv_make_support_nested_variables = yes; then
3456 AM_V='$(V)'
3457 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3458else
3459 AM_V=$AM_DEFAULT_VERBOSITY
3460 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3461fi
3462AM_BACKSLASH='\'
3463
cd9a469c 3464if test "`cd $srcdir && pwd`" != "`pwd`"; then
3465 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3466 # is not polluted with repeated "-I."
3467 am__isrc=' -I$(srcdir)'
3468 # test to see if srcdir already configured
3469 if test -f $srcdir/config.status; then
f00f02a3 3470 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cd9a469c 3471 fi
4ee9c684 3472fi
3473
3474# test whether we have cygpath
3475if test -z "$CYGPATH_W"; then
3476 if (cygpath --version) >/dev/null 2>/dev/null; then
3477 CYGPATH_W='cygpath -w'
3478 else
3479 CYGPATH_W=echo
3480 fi
3481fi
3482
3483
3484# Define the identity of the package.
3485 PACKAGE='libgfortran'
76c0a846 3486 VERSION='0.3'
4ee9c684 3487
3488
4ee9c684 3489# Some tools Automake needs.
3490
3491ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3492
3493
3494AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3495
3496
3497AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3498
3499
3500AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3501
3502
3503MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3504
f00f02a3 3505# For better backward compatibility. To be removed once Automake 1.9.x
3506# dies out for good. For more background, see:
3507# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3508# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3509mkdir_p='$(MKDIR_P)'
3510
3511# We need awk for the "check" target (and possibly the TAP driver). The
3512# system "awk" is bad on some platforms.
544db64f 3513# Always define AMTAR for backward compatibility. Yes, it's still used
3514# in the wild :-( We should find a proper way to deprecate it ...
3515AMTAR='$${TAR-tar}'
6745c9de 3516
f00f02a3 3517
3518# We'll loop over all known methods to create a tar archive until one works.
3519_am_tools='gnutar pax cpio none'
3520
544db64f 3521am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6745c9de 3522
3523
4ee9c684 3524
3525
3526
4ee9c684 3527
f00f02a3 3528# POSIX will say in a future version that running "rm -f" with no argument
3529# is OK; and we want to be able to make that assumption in our Makefile
3530# recipes. So use an aggressive probe to check that the usage we want is
3531# actually supported "in the wild" to an acceptable degree.
3532# See automake bug#10828.
3533# To make any issue more visible, cause the running configure to be aborted
3534# by default if the 'rm' program in use doesn't match our expectations; the
3535# user can still override this though.
3536if rm -f && rm -fr && rm -rf; then : OK; else
3537 cat >&2 <<'END'
3538Oops!
3539
3540Your 'rm' program seems unable to run without file operands specified
3541on the command line, even when the '-f' option is present. This is contrary
3542to the behaviour of most rm programs out there, and not conforming with
3543the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3544
3545Please tell bug-automake@gnu.org about your system, including the value
3546of your $PATH and any error possibly output before this message. This
3547can help us improve future automake versions.
3548
3549END
3550 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3551 echo 'Configuration will proceed anyway, since you have set the' >&2
3552 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3553 echo >&2
3554 else
3555 cat >&2 <<'END'
3556Aborting the configuration process, to ensure you take notice of the issue.
3557
3558You can download and install GNU coreutils to get an 'rm' implementation
3559that behaves properly: <http://www.gnu.org/software/coreutils/>.
3560
3561If you want to complete the configuration process using your problematic
3562'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3563to "yes", and re-run configure.
3564
3565END
3566 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3567 fi
3568fi
3569
3570
cd9a469c 3571
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3573$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3574 # Check whether --enable-maintainer-mode was given.
3575if test "${enable_maintainer_mode+set}" = set; then :
3576 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4ee9c684 3577else
3578 USE_MAINTAINER_MODE=no
cd9a469c 3579fi
4ee9c684 3580
cd9a469c 3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3582$as_echo "$USE_MAINTAINER_MODE" >&6; }
3583 if test $USE_MAINTAINER_MODE = yes; then
4ee9c684 3584 MAINTAINER_MODE_TRUE=
3585 MAINTAINER_MODE_FALSE='#'
3586else
3587 MAINTAINER_MODE_TRUE='#'
3588 MAINTAINER_MODE_FALSE=
3589fi
3590
3591 MAINT=$MAINTAINER_MODE_TRUE
3592
3593
90973b19 3594# Default to --enable-multilib
cd9a469c 3595# Check whether --enable-multilib was given.
3596if test "${enable_multilib+set}" = set; then :
3597 enableval=$enable_multilib; case "$enableval" in
90973b19 3598 yes) multilib=yes ;;
3599 no) multilib=no ;;
f00f02a3 3600 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
90973b19 3601 esac
3602else
3603 multilib=yes
cd9a469c 3604fi
3605
90973b19 3606
3607# We may get other options which we leave undocumented:
3608# --with-target-subdir, --with-multisrctop, --with-multisubdir
3609# See config-ml.in if you want the gory details.
3610
3611if test "$srcdir" = "."; then
3612 if test "$with_target_subdir" != "."; then
3613 multi_basedir="$srcdir/$with_multisrctop../.."
3614 else
3615 multi_basedir="$srcdir/$with_multisrctop.."
3616 fi
3617else
3618 multi_basedir="$srcdir/.."
3619fi
3620
3621
04c8b51e 3622# Even if the default multilib is not a cross compilation,
3623# it may be that some of the other multilibs are.
3624if test $cross_compiling = no && test $multilib = yes \
3625 && test "x${with_multisubdir}" != x ; then
3626 cross_compiling=maybe
3627fi
3628
cd9a469c 3629ac_config_commands="$ac_config_commands default-1"
90973b19 3630
3631
3632# Handy for debugging:
3633#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3634
3635# Are we being configured with some form of cross compiler?
3636# NB: We don't actually need to know this just now, but when, say, a test
3637# suite is included, we'll have to know.
3638if test "$build" != "$host"; then
3639 LIBGFOR_IS_NATIVE=false
b52ee437 3640
90973b19 3641else
3642 LIBGFOR_IS_NATIVE=true
3643fi
3644
d5d92632 3645DEPDIR="${am__leading_dot}deps"
90973b19 3646
d5d92632 3647ac_config_commands="$ac_config_commands depfiles"
90973b19 3648
4ee9c684 3649
d5d92632 3650am_make=${MAKE-make}
3651cat > confinc << 'END'
3652am__doit:
3653 @echo this is the am__doit target
3654.PHONY: am__doit
3655END
3656# If we don't find an include directive, just comment out the code.
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3658$as_echo_n "checking for style of include used by $am_make... " >&6; }
3659am__include="#"
3660am__quote=
3661_am_result=none
3662# First try GNU make style include.
3663echo "include confinc" > confmf
f00f02a3 3664# Ignore all kinds of additional output from 'make'.
d5d92632 3665case `$am_make -s -f confmf 2> /dev/null` in #(
3666*the\ am__doit\ target*)
3667 am__include=include
3668 am__quote=
3669 _am_result=GNU
3670 ;;
3671esac
3672# Now try BSD make style include.
3673if test "$am__include" = "#"; then
3674 echo '.include "confinc"' > confmf
3675 case `$am_make -s -f confmf 2> /dev/null` in #(
3676 *the\ am__doit\ target*)
3677 am__include=.include
3678 am__quote="\""
3679 _am_result=BSD
3680 ;;
3681 esac
3682fi
87969c8c 3683
4ee9c684 3684
d5d92632 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3686$as_echo "$_am_result" >&6; }
3687rm -f confinc confmf
3688
3689# Check whether --enable-dependency-tracking was given.
3690if test "${enable_dependency_tracking+set}" = set; then :
3691 enableval=$enable_dependency_tracking;
3692fi
3693
3694if test "x$enable_dependency_tracking" != xno; then
3695 am_depcomp="$ac_aux_dir/depcomp"
3696 AMDEPBACKSLASH='\'
544db64f 3697 am__nodep='_no'
d5d92632 3698fi
3699 if test "x$enable_dependency_tracking" != xno; then
3700 AMDEP_TRUE=
3701 AMDEP_FALSE='#'
3702else
3703 AMDEP_TRUE='#'
3704 AMDEP_FALSE=
3705fi
4ee9c684 3706
3707
4ee9c684 3708ac_ext=c
3709ac_cpp='$CPP $CPPFLAGS'
3710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713if test -n "$ac_tool_prefix"; then
3714 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3715set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3718if ${ac_cv_prog_CC+:} false; then :
cd9a469c 3719 $as_echo_n "(cached) " >&6
4ee9c684 3720else
3721 if test -n "$CC"; then
3722 ac_cv_prog_CC="$CC" # Let the user override the test.
3723else
3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH
3726do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
cd9a469c 3729 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 3731 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 3732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3733 break 2
3734 fi
3735done
cd9a469c 3736 done
3737IFS=$as_save_IFS
4ee9c684 3738
3739fi
3740fi
3741CC=$ac_cv_prog_CC
3742if test -n "$CC"; then
cd9a469c 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744$as_echo "$CC" >&6; }
4ee9c684 3745else
cd9a469c 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747$as_echo "no" >&6; }
4ee9c684 3748fi
3749
cd9a469c 3750
4ee9c684 3751fi
3752if test -z "$ac_cv_prog_CC"; then
3753 ac_ct_CC=$CC
3754 # Extract the first word of "gcc", so it can be a program name with args.
3755set dummy gcc; ac_word=$2
cd9a469c 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3758if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 3759 $as_echo_n "(cached) " >&6
4ee9c684 3760else
3761 if test -n "$ac_ct_CC"; then
3762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3763else
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
cd9a469c 3769 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 3771 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3773 break 2
3774 fi
3775done
cd9a469c 3776 done
3777IFS=$as_save_IFS
4ee9c684 3778
3779fi
3780fi
3781ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782if test -n "$ac_ct_CC"; then
cd9a469c 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784$as_echo "$ac_ct_CC" >&6; }
4ee9c684 3785else
cd9a469c 3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787$as_echo "no" >&6; }
4ee9c684 3788fi
3789
cd9a469c 3790 if test "x$ac_ct_CC" = x; then
3791 CC=""
3792 else
3793 case $cross_compiling:$ac_tool_warned in
3794yes:)
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797ac_tool_warned=yes ;;
3798esac
3799 CC=$ac_ct_CC
3800 fi
4ee9c684 3801else
3802 CC="$ac_cv_prog_CC"
3803fi
3804
3805if test -z "$CC"; then
cd9a469c 3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4ee9c684 3808set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3811if ${ac_cv_prog_CC+:} false; then :
cd9a469c 3812 $as_echo_n "(cached) " >&6
4ee9c684 3813else
3814 if test -n "$CC"; then
3815 ac_cv_prog_CC="$CC" # Let the user override the test.
3816else
3817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818for as_dir in $PATH
3819do
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
cd9a469c 3822 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 3824 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 3825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3826 break 2
3827 fi
3828done
cd9a469c 3829 done
3830IFS=$as_save_IFS
4ee9c684 3831
3832fi
3833fi
3834CC=$ac_cv_prog_CC
3835if test -n "$CC"; then
cd9a469c 3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3837$as_echo "$CC" >&6; }
82eaf560 3838else
cd9a469c 3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840$as_echo "no" >&6; }
82eaf560 3841fi
3842
82eaf560 3843
cd9a469c 3844 fi
4ee9c684 3845fi
3846if test -z "$CC"; then
3847 # Extract the first word of "cc", so it can be a program name with args.
3848set dummy cc; ac_word=$2
cd9a469c 3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3851if ${ac_cv_prog_CC+:} false; then :
cd9a469c 3852 $as_echo_n "(cached) " >&6
4ee9c684 3853else
3854 if test -n "$CC"; then
3855 ac_cv_prog_CC="$CC" # Let the user override the test.
3856else
3857 ac_prog_rejected=no
3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH
3860do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
cd9a469c 3863 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 3865 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3866 ac_prog_rejected=yes
3867 continue
3868 fi
3869 ac_cv_prog_CC="cc"
cd9a469c 3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3871 break 2
3872 fi
3873done
cd9a469c 3874 done
3875IFS=$as_save_IFS
4ee9c684 3876
3877if test $ac_prog_rejected = yes; then
3878 # We found a bogon in the path, so make sure we never use it.
3879 set dummy $ac_cv_prog_CC
3880 shift
3881 if test $# != 0; then
3882 # We chose a different compiler from the bogus one.
3883 # However, it has the same basename, so the bogon will be chosen
3884 # first if we set CC to just the basename; use the full file name.
3885 shift
3886 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3887 fi
3888fi
3889fi
3890fi
3891CC=$ac_cv_prog_CC
3892if test -n "$CC"; then
cd9a469c 3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3894$as_echo "$CC" >&6; }
4ee9c684 3895else
cd9a469c 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897$as_echo "no" >&6; }
4ee9c684 3898fi
3899
cd9a469c 3900
4ee9c684 3901fi
3902if test -z "$CC"; then
3903 if test -n "$ac_tool_prefix"; then
cd9a469c 3904 for ac_prog in cl.exe
4ee9c684 3905 do
3906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3907set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3910if ${ac_cv_prog_CC+:} false; then :
cd9a469c 3911 $as_echo_n "(cached) " >&6
4ee9c684 3912else
3913 if test -n "$CC"; then
3914 ac_cv_prog_CC="$CC" # Let the user override the test.
3915else
3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
cd9a469c 3921 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 3923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3925 break 2
3926 fi
3927done
cd9a469c 3928 done
3929IFS=$as_save_IFS
4ee9c684 3930
3931fi
3932fi
3933CC=$ac_cv_prog_CC
3934if test -n "$CC"; then
cd9a469c 3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936$as_echo "$CC" >&6; }
4ee9c684 3937else
cd9a469c 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939$as_echo "no" >&6; }
4ee9c684 3940fi
3941
cd9a469c 3942
4ee9c684 3943 test -n "$CC" && break
3944 done
3945fi
3946if test -z "$CC"; then
3947 ac_ct_CC=$CC
cd9a469c 3948 for ac_prog in cl.exe
4ee9c684 3949do
3950 # Extract the first word of "$ac_prog", so it can be a program name with args.
3951set dummy $ac_prog; ac_word=$2
cd9a469c 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3954if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 3955 $as_echo_n "(cached) " >&6
4ee9c684 3956else
3957 if test -n "$ac_ct_CC"; then
3958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3959else
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
cd9a469c 3965 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 3967 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 3968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3969 break 2
3970 fi
3971done
cd9a469c 3972 done
3973IFS=$as_save_IFS
4ee9c684 3974
3975fi
3976fi
3977ac_ct_CC=$ac_cv_prog_ac_ct_CC
3978if test -n "$ac_ct_CC"; then
cd9a469c 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3980$as_echo "$ac_ct_CC" >&6; }
4ee9c684 3981else
cd9a469c 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983$as_echo "no" >&6; }
4ee9c684 3984fi
3985
cd9a469c 3986
4ee9c684 3987 test -n "$ac_ct_CC" && break
3988done
3989
cd9a469c 3990 if test "x$ac_ct_CC" = x; then
3991 CC=""
3992 else
3993 case $cross_compiling:$ac_tool_warned in
3994yes:)
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3997ac_tool_warned=yes ;;
3998esac
3999 CC=$ac_ct_CC
4000 fi
4ee9c684 4001fi
4002
4003fi
4004
4005
cd9a469c 4006test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4008as_fn_error $? "no acceptable C compiler found in \$PATH
4009See \`config.log' for more details" "$LINENO" 5; }
4ee9c684 4010
4011# Provide some information about the compiler.
cd9a469c 4012$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4013set X $ac_compile
4014ac_compiler=$2
4015for ac_option in --version -v -V -qversion; do
4016 { { ac_try="$ac_compiler $ac_option >&5"
4017case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020esac
4021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022$as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4ee9c684 4024 ac_status=$?
cd9a469c 4025 if test -s conftest.err; then
4026 sed '10a\
4027... rest of stderr output deleted ...
4028 10q' conftest.err >conftest.er1
4029 cat conftest.er1 >&5
cd9a469c 4030 fi
f00f02a3 4031 rm -f conftest.er1 conftest.err
cd9a469c 4032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033 test $ac_status = 0; }
4034done
4ee9c684 4035
cd9a469c 4036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 4037/* end confdefs.h. */
4038
b52ee437 4039int
4040main ()
4041{
4042
4043 ;
4044 return 0;
4045}
4046_ACEOF
4047# FIXME: Cleanup?
cd9a469c 4048if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
b52ee437 4049 (eval $ac_link) 2>&5
4050 ac_status=$?
cd9a469c 4051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4052 test $ac_status = 0; }; then :
b52ee437 4053 gcc_no_link=no
4054else
4055 gcc_no_link=yes
4056fi
b52ee437 4057if test x$gcc_no_link = xyes; then
4058 # Setting cross_compile will disable run tests; it will
4059 # also disable AC_CHECK_FILE but that's generally
4060 # correct if we can't link.
4061 cross_compiling=yes
4062 EXEEXT=
4063else
cd9a469c 4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 4065/* end confdefs.h. */
4066
4ee9c684 4067int
4068main ()
4069{
4070
4071 ;
4072 return 0;
4073}
4074_ACEOF
4075ac_clean_files_save=$ac_clean_files
f00f02a3 4076ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4ee9c684 4077# Try to create an executable without -o first, disregard a.out.
4078# It will help us diagnose broken compilers, and finding out an intuition
4079# of exeext.
f00f02a3 4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4081$as_echo_n "checking whether the C compiler works... " >&6; }
cd9a469c 4082ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4083
4084# The possible output files:
4085ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4086
4087ac_rmfiles=
4088for ac_file in $ac_files
4089do
4090 case $ac_file in
4091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4092 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4093 esac
4094done
4095rm -f $ac_rmfiles
4096
4097if { { ac_try="$ac_link_default"
4098case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103$as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_link_default") 2>&5
4105 ac_status=$?
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }; then :
4108 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4109# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4110# in a Makefile. We should not override ac_cv_exeext if it was cached,
4111# so that the user can short-circuit this test for compilers unknown to
4112# Autoconf.
4113for ac_file in $ac_files ''
4ee9c684 4114do
4115 test -f "$ac_file" || continue
4116 case $ac_file in
cd9a469c 4117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4ee9c684 4118 ;;
4119 [ab].out )
4120 # We found the default executable, but exeext='' is most
4121 # certainly right.
4122 break;;
4123 *.* )
cd9a469c 4124 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4125 then :; else
4126 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4127 fi
4128 # We set ac_cv_exeext here because the later test for it is not
4129 # safe: cross compilers may not add the suffix if given an `-o'
4130 # argument, so we may need to know it at that point already.
4131 # Even if this section looks crufty: it has the advantage of
4132 # actually working.
4ee9c684 4133 break;;
4134 * )
4135 break;;
4136 esac
4137done
cd9a469c 4138test "$ac_cv_exeext" = no && ac_cv_exeext=
4139
4ee9c684 4140else
cd9a469c 4141 ac_file=''
4142fi
cd9a469c 4143if test -z "$ac_file"; then :
f00f02a3 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145$as_echo "no" >&6; }
4146$as_echo "$as_me: failed program was:" >&5
4ee9c684 4147sed 's/^/| /' conftest.$ac_ext >&5
4148
cd9a469c 4149{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4151as_fn_error 77 "C compiler cannot create executables
4152See \`config.log' for more details" "$LINENO" 5; }
4153else
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4155$as_echo "yes" >&6; }
4ee9c684 4156fi
f00f02a3 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4158$as_echo_n "checking for C compiler default output file name... " >&6; }
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4160$as_echo "$ac_file" >&6; }
4ee9c684 4161ac_exeext=$ac_cv_exeext
4ee9c684 4162
f00f02a3 4163rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4ee9c684 4164ac_clean_files=$ac_clean_files_save
cd9a469c 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4166$as_echo_n "checking for suffix of executables... " >&6; }
4167if { { ac_try="$ac_link"
4168case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171esac
4172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4173$as_echo "$ac_try_echo"; } >&5
4174 (eval "$ac_link") 2>&5
4ee9c684 4175 ac_status=$?
cd9a469c 4176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177 test $ac_status = 0; }; then :
4ee9c684 4178 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4179# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4180# work properly (i.e., refer to `conftest.exe'), while it won't with
4181# `rm'.
4182for ac_file in conftest.exe conftest conftest.*; do
4183 test -f "$ac_file" || continue
4184 case $ac_file in
cd9a469c 4185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4ee9c684 4186 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4ee9c684 4187 break;;
4188 * ) break;;
4189 esac
4190done
4191else
cd9a469c 4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4194as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4195See \`config.log' for more details" "$LINENO" 5; }
4ee9c684 4196fi
f00f02a3 4197rm -f conftest conftest$ac_cv_exeext
cd9a469c 4198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4199$as_echo "$ac_cv_exeext" >&6; }
4ee9c684 4200
4201rm -f conftest.$ac_ext
4202EXEEXT=$ac_cv_exeext
4203ac_exeext=$EXEEXT
f00f02a3 4204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205/* end confdefs.h. */
4206#include <stdio.h>
4207int
4208main ()
4209{
4210FILE *f = fopen ("conftest.out", "w");
4211 return ferror (f) || fclose (f) != 0;
4212
4213 ;
4214 return 0;
4215}
4216_ACEOF
4217ac_clean_files="$ac_clean_files conftest.out"
4218# Check that the compiler produces executables we can run. If not, either
4219# the compiler is broken, or we cross compile.
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4221$as_echo_n "checking whether we are cross compiling... " >&6; }
4222if test "$cross_compiling" != yes; then
4223 { { ac_try="$ac_link"
4224case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227esac
4228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4229$as_echo "$ac_try_echo"; } >&5
4230 (eval "$ac_link") 2>&5
4231 ac_status=$?
4232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4233 test $ac_status = 0; }
4234 if { ac_try='./conftest$ac_cv_exeext'
4235 { { case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238esac
4239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240$as_echo "$ac_try_echo"; } >&5
4241 (eval "$ac_try") 2>&5
4242 ac_status=$?
4243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4244 test $ac_status = 0; }; }; then
4245 cross_compiling=no
4246 else
4247 if test "$cross_compiling" = maybe; then
4248 cross_compiling=yes
4249 else
4250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4252as_fn_error $? "cannot run C compiled programs.
4253If you meant to cross compile, use \`--host'.
4254See \`config.log' for more details" "$LINENO" 5; }
4255 fi
4256 fi
4257fi
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4259$as_echo "$cross_compiling" >&6; }
4260
4261rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4262ac_clean_files=$ac_clean_files_save
b52ee437 4263fi
cd9a469c 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4265$as_echo_n "checking for suffix of object files... " >&6; }
f00f02a3 4266if ${ac_cv_objext+:} false; then :
cd9a469c 4267 $as_echo_n "(cached) " >&6
4ee9c684 4268else
cd9a469c 4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 4270/* end confdefs.h. */
4271
4272int
4273main ()
4274{
4275
4276 ;
4277 return 0;
4278}
4279_ACEOF
4280rm -f conftest.o conftest.obj
cd9a469c 4281if { { ac_try="$ac_compile"
4282case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285esac
4286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287$as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_compile") 2>&5
4289 ac_status=$?
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }; then :
4292 for ac_file in conftest.o conftest.obj conftest.*; do
4293 test -f "$ac_file" || continue;
4ee9c684 4294 case $ac_file in
cd9a469c 4295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4ee9c684 4296 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4297 break;;
4298 esac
4299done
4300else
cd9a469c 4301 $as_echo "$as_me: failed program was:" >&5
4ee9c684 4302sed 's/^/| /' conftest.$ac_ext >&5
4303
cd9a469c 4304{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4306as_fn_error $? "cannot compute suffix of object files: cannot compile
4307See \`config.log' for more details" "$LINENO" 5; }
a106dabe 4308fi
a106dabe 4309rm -f conftest.$ac_cv_objext conftest.$ac_ext
4310fi
cd9a469c 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4312$as_echo "$ac_cv_objext" >&6; }
a106dabe 4313OBJEXT=$ac_cv_objext
4314ac_objext=$OBJEXT
cd9a469c 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4316$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f00f02a3 4317if ${ac_cv_c_compiler_gnu+:} false; then :
cd9a469c 4318 $as_echo_n "(cached) " >&6
a106dabe 4319else
cd9a469c 4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 4321/* end confdefs.h. */
4ee9c684 4322
4ee9c684 4323int
4324main ()
4325{
a106dabe 4326#ifndef __GNUC__
4327 choke me
4328#endif
ce1a737c 4329
4ee9c684 4330 ;
4331 return 0;
4332}
4333_ACEOF
cd9a469c 4334if ac_fn_c_try_compile "$LINENO"; then :
a106dabe 4335 ac_compiler_gnu=yes
4ee9c684 4336else
cd9a469c 4337 ac_compiler_gnu=no
a106dabe 4338fi
cd9a469c 4339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a106dabe 4340ac_cv_c_compiler_gnu=$ac_compiler_gnu
4341
4342fi
cd9a469c 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4344$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4345if test $ac_compiler_gnu = yes; then
4346 GCC=yes
4347else
4348 GCC=
4349fi
a106dabe 4350ac_test_CFLAGS=${CFLAGS+set}
4351ac_save_CFLAGS=$CFLAGS
cd9a469c 4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4353$as_echo_n "checking whether $CC accepts -g... " >&6; }
f00f02a3 4354if ${ac_cv_prog_cc_g+:} false; then :
cd9a469c 4355 $as_echo_n "(cached) " >&6
a106dabe 4356else
cd9a469c 4357 ac_save_c_werror_flag=$ac_c_werror_flag
4358 ac_c_werror_flag=yes
4359 ac_cv_prog_cc_g=no
4360 CFLAGS="-g"
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 4362/* end confdefs.h. */
ce1a737c 4363
4ee9c684 4364int
4365main ()
4366{
ce1a737c 4367
4ee9c684 4368 ;
4369 return 0;
4370}
4371_ACEOF
cd9a469c 4372if ac_fn_c_try_compile "$LINENO"; then :
ff4425cf 4373 ac_cv_prog_cc_g=yes
4374else
cd9a469c 4375 CFLAGS=""
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377/* end confdefs.h. */
4378
4379int
4380main ()
4381{
4382
4383 ;
4384 return 0;
4385}
4386_ACEOF
4387if ac_fn_c_try_compile "$LINENO"; then :
4388
4389else
4390 ac_c_werror_flag=$ac_save_c_werror_flag
4391 CFLAGS="-g"
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393/* end confdefs.h. */
ff4425cf 4394
cd9a469c 4395int
4396main ()
4397{
4398
4399 ;
4400 return 0;
4401}
4402_ACEOF
4403if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_cv_prog_cc_g=yes
4405fi
4406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82eaf560 4407fi
cd9a469c 4408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82eaf560 4409fi
cd9a469c 4410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411 ac_c_werror_flag=$ac_save_c_werror_flag
4412fi
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4414$as_echo "$ac_cv_prog_cc_g" >&6; }
82eaf560 4415if test "$ac_test_CFLAGS" = set; then
4416 CFLAGS=$ac_save_CFLAGS
4417elif test $ac_cv_prog_cc_g = yes; then
4418 if test "$GCC" = yes; then
4419 CFLAGS="-g -O2"
4420 else
4421 CFLAGS="-g"
4422 fi
4423else
4424 if test "$GCC" = yes; then
4425 CFLAGS="-O2"
4426 else
4427 CFLAGS=
4428 fi
4429fi
cd9a469c 4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4431$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
f00f02a3 4432if ${ac_cv_prog_cc_c89+:} false; then :
cd9a469c 4433 $as_echo_n "(cached) " >&6
82eaf560 4434else
cd9a469c 4435 ac_cv_prog_cc_c89=no
82eaf560 4436ac_save_CC=$CC
cd9a469c 4437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff4425cf 4438/* end confdefs.h. */
82eaf560 4439#include <stdarg.h>
4440#include <stdio.h>
f00f02a3 4441struct stat;
82eaf560 4442/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4443struct buf { int x; };
4444FILE * (*rcsopen) (struct buf *, struct stat *, int);
4445static char *e (p, i)
4446 char **p;
4447 int i;
4448{
4449 return p[i];
4450}
4451static char *f (char * (*g) (char **, int), char **p, ...)
4452{
4453 char *s;
4454 va_list v;
4455 va_start (v,p);
4456 s = g (p, va_arg (v,int));
4457 va_end (v);
4458 return s;
4459}
ff4425cf 4460
82eaf560 4461/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4462 function prototypes and stuff, but not '\xHH' hex character constants.
4463 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 4464 as 'x'. The following induces an error, until -std is added to get
82eaf560 4465 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4466 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 4467 that's true only with -std. */
82eaf560 4468int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4469
cd9a469c 4470/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4471 inside strings and character constants. */
4472#define FOO(x) 'x'
4473int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4474
82eaf560 4475int test (int i, double x);
4476struct s1 {int (*f) (int a);};
4477struct s2 {int (*f) (double a);};
4478int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4479int argc;
4480char **argv;
ff4425cf 4481int
4482main ()
4483{
82eaf560 4484return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
ff4425cf 4485 ;
4486 return 0;
4487}
4488_ACEOF
cd9a469c 4489for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4490 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
82eaf560 4491do
4492 CC="$ac_save_CC $ac_arg"
cd9a469c 4493 if ac_fn_c_try_compile "$LINENO"; then :
4494 ac_cv_prog_cc_c89=$ac_arg
82eaf560 4495fi
cd9a469c 4496rm -f core conftest.err conftest.$ac_objext
4497 test "x$ac_cv_prog_cc_c89" != "xno" && break
82eaf560 4498done
cd9a469c 4499rm -f conftest.$ac_ext
82eaf560 4500CC=$ac_save_CC
4501
4502fi
cd9a469c 4503# AC_CACHE_VAL
4504case "x$ac_cv_prog_cc_c89" in
4505 x)
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4507$as_echo "none needed" >&6; } ;;
4508 xno)
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4510$as_echo "unsupported" >&6; } ;;
82eaf560 4511 *)
cd9a469c 4512 CC="$CC $ac_cv_prog_cc_c89"
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4514$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
82eaf560 4515esac
cd9a469c 4516if test "x$ac_cv_prog_cc_c89" != xno; then :
4ee9c684 4517
4518fi
4ee9c684 4519
4ee9c684 4520ac_ext=c
4521ac_cpp='$CPP $CPPFLAGS'
4522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524ac_compiler_gnu=$ac_cv_c_compiler_gnu
2fd61f51 4525
f00f02a3 4526ac_ext=c
4527ac_cpp='$CPP $CPPFLAGS'
4528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4532$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4533if ${am_cv_prog_cc_c_o+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535else
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h. */
4538
4539int
4540main ()
4541{
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
4547 # Make sure it works both with $CC and with simple cc.
4548 # Following AC_PROG_CC_C_O, we do the test twice because some
4549 # compilers refuse to overwrite an existing .o file with -o,
4550 # though they will create one.
4551 am_cv_prog_cc_c_o=yes
4552 for am_i in 1 2; do
4553 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4554 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } \
4558 && test -f conftest2.$ac_objext; then
4559 : OK
4560 else
4561 am_cv_prog_cc_c_o=no
4562 break
4563 fi
4564 done
4565 rm -f core conftest*
4566 unset am_i
4567fi
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4569$as_echo "$am_cv_prog_cc_c_o" >&6; }
4570if test "$am_cv_prog_cc_c_o" != yes; then
4571 # Losing compiler, so override with the script.
4572 # FIXME: It is wrong to rewrite CC.
4573 # But if we don't then we get into trouble of one sort or another.
4574 # A longer-term fix would be to have automake use am__CC in this case,
4575 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4576 CC="$am_aux_dir/compile $CC"
4577fi
4578ac_ext=c
4579ac_cpp='$CPP $CPPFLAGS'
4580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583
4584
2fd61f51 4585depcc="$CC" am_compiler_list=
4586
cd9a469c 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4588$as_echo_n "checking dependency style of $depcc... " >&6; }
f00f02a3 4589if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cd9a469c 4590 $as_echo_n "(cached) " >&6
2fd61f51 4591else
4592 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4593 # We make a subdir and do the tests there. Otherwise we can end up
4594 # making bogus files that we don't know about and never remove. For
4595 # instance it was reported that on HP-UX the gcc test will end up
f00f02a3 4596 # making a dummy file named 'D' -- because '-MD' means "put the output
4597 # in D".
544db64f 4598 rm -rf conftest.dir
2fd61f51 4599 mkdir conftest.dir
4600 # Copy depcomp to subdir because otherwise we won't find it if we're
4601 # using a relative directory.
4602 cp "$am_depcomp" conftest.dir
4603 cd conftest.dir
4604 # We will build objects and dependencies in a subdirectory because
4605 # it helps to detect inapplicable dependency modes. For instance
4606 # both Tru64's cc and ICC support -MD to output dependencies as a
4607 # side effect of compilation, but ICC will put the dependencies in
4608 # the current directory while Tru64 will put them in the object
4609 # directory.
4610 mkdir sub
4611
4612 am_cv_CC_dependencies_compiler_type=none
4613 if test "$am_compiler_list" = ""; then
4614 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4615 fi
cd9a469c 4616 am__universal=false
4617 case " $depcc " in #(
4618 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4619 esac
4620
2fd61f51 4621 for depmode in $am_compiler_list; do
4622 # Setup a source with many dependencies, because some compilers
4623 # like to wrap large dependency lists on column 80 (with \), and
4624 # we should not choose a depcomp mode which is confused by this.
4625 #
4626 # We need to recreate these files for each test, as the compiler may
4627 # overwrite some of them when testing with obscure command lines.
4628 # This happens at least with the AIX C compiler.
4629 : > sub/conftest.c
4630 for i in 1 2 3 4 5 6; do
4631 echo '#include "conftst'$i'.h"' >> sub/conftest.c
f00f02a3 4632 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4633 # Solaris 10 /bin/sh.
4634 echo '/* dummy */' > sub/conftst$i.h
2fd61f51 4635 done
4636 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4637
f00f02a3 4638 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cd9a469c 4639 # mode. It turns out that the SunPro C++ compiler does not properly
f00f02a3 4640 # handle '-M -o', and we need to detect this. Also, some Intel
4641 # versions had trouble with output in subdirs.
cd9a469c 4642 am__obj=sub/conftest.${OBJEXT-o}
4643 am__minus_obj="-o $am__obj"
2fd61f51 4644 case $depmode in
cd9a469c 4645 gcc)
4646 # This depmode causes a compiler race in universal mode.
4647 test "$am__universal" = false || continue
4648 ;;
2fd61f51 4649 nosideeffect)
f00f02a3 4650 # After this tag, mechanisms are not by side-effect, so they'll
4651 # only be used when explicitly requested.
2fd61f51 4652 if test "x$enable_dependency_tracking" = xyes; then
4653 continue
4654 else
4655 break
4656 fi
4657 ;;
544db64f 4658 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
f00f02a3 4659 # This compiler won't grok '-c -o', but also, the minuso test has
cd9a469c 4660 # not run yet. These depmodes are late enough in the game, and
4661 # so weak that their functioning should not be impacted.
4662 am__obj=conftest.${OBJEXT-o}
4663 am__minus_obj=
4664 ;;
2fd61f51 4665 none) break ;;
4666 esac
2fd61f51 4667 if depmode=$depmode \
cd9a469c 4668 source=sub/conftest.c object=$am__obj \
2fd61f51 4669 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cd9a469c 4670 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2fd61f51 4671 >/dev/null 2>conftest.err &&
cd9a469c 4672 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2fd61f51 4673 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cd9a469c 4674 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2fd61f51 4675 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4676 # icc doesn't choke on unknown options, it will just issue warnings
4677 # or remarks (even with -Werror). So we grep stderr for any message
4678 # that says an option was ignored or not supported.
4679 # When given -MP, icc 7.0 and 7.1 complain thusly:
4680 # icc: Command line warning: ignoring option '-M'; no argument required
4681 # The diagnosis changed in icc 8.0:
4682 # icc: Command line remark: option '-MP' not supported
4683 if (grep 'ignoring option' conftest.err ||
4684 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4685 am_cv_CC_dependencies_compiler_type=$depmode
4686 break
4687 fi
4688 fi
4689 done
4690
4691 cd ..
4692 rm -rf conftest.dir
4693else
4694 am_cv_CC_dependencies_compiler_type=none
4695fi
4696
4697fi
cd9a469c 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4699$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2fd61f51 4700CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4701
cd9a469c 4702 if
2fd61f51 4703 test "x$enable_dependency_tracking" != xno \
4704 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4705 am__fastdepCC_TRUE=
4706 am__fastdepCC_FALSE='#'
4707else
4708 am__fastdepCC_TRUE='#'
4709 am__fastdepCC_FALSE=
4710fi
4711
4ee9c684 4712
4ee9c684 4713
d5d92632 4714ac_ext=c
4715ac_cpp='$CPP $CPPFLAGS'
4716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4720$as_echo_n "checking how to run the C preprocessor... " >&6; }
4721# On Suns, sometimes $CPP names a directory.
4722if test -n "$CPP" && test -d "$CPP"; then
4723 CPP=
4ee9c684 4724fi
d5d92632 4725if test -z "$CPP"; then
f00f02a3 4726 if ${ac_cv_prog_CPP+:} false; then :
d5d92632 4727 $as_echo_n "(cached) " >&6
4728else
4729 # Double quotes because CPP needs to be expanded
4730 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4731 do
4732 ac_preproc_ok=false
4733for ac_c_preproc_warn_flag in '' yes
4734do
4735 # Use a header file that comes with gcc, so configuring glibc
4736 # with a fresh cross-compiler works.
4737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4738 # <limits.h> exists even on freestanding compilers.
4739 # On the NeXT, cc -E runs the code through the compiler's parser,
4740 # not just through cpp. "Syntax error" is here to catch this case.
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce1a737c 4742/* end confdefs.h. */
d5d92632 4743#ifdef __STDC__
4744# include <limits.h>
4745#else
4746# include <assert.h>
4747#endif
4748 Syntax error
ce1a737c 4749_ACEOF
d5d92632 4750if ac_fn_c_try_cpp "$LINENO"; then :
4751
019fb48a 4752else
d5d92632 4753 # Broken: fails on valid input.
4754continue
019fb48a 4755fi
f00f02a3 4756rm -f conftest.err conftest.i conftest.$ac_ext
019fb48a 4757
d5d92632 4758 # OK, works on sane cases. Now check whether nonexistent headers
4759 # can be detected and how.
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h. */
4762#include <ac_nonexistent.h>
019fb48a 4763_ACEOF
d5d92632 4764if ac_fn_c_try_cpp "$LINENO"; then :
4765 # Broken: success on invalid input.
4766continue
ce1a737c 4767else
d5d92632 4768 # Passes both tests.
4769ac_preproc_ok=:
4770break
019fb48a 4771fi
f00f02a3 4772rm -f conftest.err conftest.i conftest.$ac_ext
d5d92632 4773
4774done
4775# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
f00f02a3 4776rm -f conftest.i conftest.err conftest.$ac_ext
d5d92632 4777if $ac_preproc_ok; then :
4778 break
ce1a737c 4779fi
4780
d5d92632 4781 done
4782 ac_cv_prog_CPP=$CPP
4783
4784fi
4785 CPP=$ac_cv_prog_CPP
019fb48a 4786else
d5d92632 4787 ac_cv_prog_CPP=$CPP
019fb48a 4788fi
d5d92632 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4790$as_echo "$CPP" >&6; }
4791ac_preproc_ok=false
4792for ac_c_preproc_warn_flag in '' yes
4793do
4794 # Use a header file that comes with gcc, so configuring glibc
4795 # with a fresh cross-compiler works.
4796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4797 # <limits.h> exists even on freestanding compilers.
4798 # On the NeXT, cc -E runs the code through the compiler's parser,
4799 # not just through cpp. "Syntax error" is here to catch this case.
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h. */
4802#ifdef __STDC__
4803# include <limits.h>
4804#else
4805# include <assert.h>
4806#endif
4807 Syntax error
4808_ACEOF
4809if ac_fn_c_try_cpp "$LINENO"; then :
019fb48a 4810
019fb48a 4811else
d5d92632 4812 # Broken: fails on valid input.
4813continue
019fb48a 4814fi
f00f02a3 4815rm -f conftest.err conftest.i conftest.$ac_ext
019fb48a 4816
d5d92632 4817 # OK, works on sane cases. Now check whether nonexistent headers
4818 # can be detected and how.
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443eac1 4820/* end confdefs.h. */
d5d92632 4821#include <ac_nonexistent.h>
3443eac1 4822_ACEOF
d5d92632 4823if ac_fn_c_try_cpp "$LINENO"; then :
4824 # Broken: success on invalid input.
4825continue
3443eac1 4826else
d5d92632 4827 # Passes both tests.
4828ac_preproc_ok=:
4829break
3443eac1 4830fi
f00f02a3 4831rm -f conftest.err conftest.i conftest.$ac_ext
d5d92632 4832
4833done
4834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
f00f02a3 4835rm -f conftest.i conftest.err conftest.$ac_ext
d5d92632 4836if $ac_preproc_ok; then :
4837
3443eac1 4838else
d5d92632 4839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4841as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4842See \`config.log' for more details" "$LINENO" 5; }
3443eac1 4843fi
3443eac1 4844
d5d92632 4845ac_ext=c
4846ac_cpp='$CPP $CPPFLAGS'
4847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443eac1 4850
d5d92632 4851
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4853$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
f00f02a3 4854if ${ac_cv_path_GREP+:} false; then :
cd9a469c 4855 $as_echo_n "(cached) " >&6
4ee9c684 4856else
d5d92632 4857 if test -z "$GREP"; then
4858 ac_path_GREP_found=false
4859 # Loop through the user's path and test for each of PROGNAME-LIST
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
90973b19 4862do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
d5d92632 4865 for ac_prog in grep ggrep; do
cd9a469c 4866 for ac_exec_ext in '' $ac_executable_extensions; do
d5d92632 4867 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 4868 as_fn_executable_p "$ac_path_GREP" || continue
d5d92632 4869# Check for GNU ac_path_GREP and select it if it is found.
4870 # Check for GNU $ac_path_GREP
4871case `"$ac_path_GREP" --version 2>&1` in
4872*GNU*)
4873 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4874*)
4875 ac_count=0
4876 $as_echo_n 0123456789 >"conftest.in"
4877 while :
4878 do
4879 cat "conftest.in" "conftest.in" >"conftest.tmp"
4880 mv "conftest.tmp" "conftest.in"
4881 cp "conftest.in" "conftest.nl"
4882 $as_echo 'GREP' >> "conftest.nl"
4883 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4885 as_fn_arith $ac_count + 1 && ac_count=$as_val
4886 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4887 # Best one so far, save it but keep looking for a better one
4888 ac_cv_path_GREP="$ac_path_GREP"
4889 ac_path_GREP_max=$ac_count
4890 fi
4891 # 10*(2^10) chars as input seems more than enough
4892 test $ac_count -gt 10 && break
cd9a469c 4893 done
d5d92632 4894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4895esac
4ee9c684 4896
d5d92632 4897 $ac_path_GREP_found && break 3
4898 done
4899 done
4900 done
4901IFS=$as_save_IFS
4902 if test -z "$ac_cv_path_GREP"; then
f00f02a3 4903 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d5d92632 4904 fi
4ee9c684 4905else
d5d92632 4906 ac_cv_path_GREP=$GREP
4ee9c684 4907fi
4908
4ee9c684 4909fi
d5d92632 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4911$as_echo "$ac_cv_path_GREP" >&6; }
4912 GREP="$ac_cv_path_GREP"
4ee9c684 4913
d5d92632 4914
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4916$as_echo_n "checking for egrep... " >&6; }
f00f02a3 4917if ${ac_cv_path_EGREP+:} false; then :
cd9a469c 4918 $as_echo_n "(cached) " >&6
4ee9c684 4919else
d5d92632 4920 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4921 then ac_cv_path_EGREP="$GREP -E"
4922 else
4923 if test -z "$EGREP"; then
4924 ac_path_EGREP_found=false
4925 # Loop through the user's path and test for each of PROGNAME-LIST
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4ee9c684 4928do
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
d5d92632 4931 for ac_prog in egrep; do
cd9a469c 4932 for ac_exec_ext in '' $ac_executable_extensions; do
d5d92632 4933 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 4934 as_fn_executable_p "$ac_path_EGREP" || continue
d5d92632 4935# Check for GNU ac_path_EGREP and select it if it is found.
4936 # Check for GNU $ac_path_EGREP
4937case `"$ac_path_EGREP" --version 2>&1` in
4938*GNU*)
4939 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4940*)
4941 ac_count=0
4942 $as_echo_n 0123456789 >"conftest.in"
4943 while :
4944 do
4945 cat "conftest.in" "conftest.in" >"conftest.tmp"
4946 mv "conftest.tmp" "conftest.in"
4947 cp "conftest.in" "conftest.nl"
4948 $as_echo 'EGREP' >> "conftest.nl"
4949 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4951 as_fn_arith $ac_count + 1 && ac_count=$as_val
4952 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4953 # Best one so far, save it but keep looking for a better one
4954 ac_cv_path_EGREP="$ac_path_EGREP"
4955 ac_path_EGREP_max=$ac_count
4956 fi
4957 # 10*(2^10) chars as input seems more than enough
4958 test $ac_count -gt 10 && break
cd9a469c 4959 done
d5d92632 4960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4961esac
4ee9c684 4962
d5d92632 4963 $ac_path_EGREP_found && break 3
4964 done
4965 done
4966 done
4967IFS=$as_save_IFS
4968 if test -z "$ac_cv_path_EGREP"; then
f00f02a3 4969 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d5d92632 4970 fi
4ee9c684 4971else
d5d92632 4972 ac_cv_path_EGREP=$EGREP
4ee9c684 4973fi
4974
d5d92632 4975 fi
4ee9c684 4976fi
d5d92632 4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4978$as_echo "$ac_cv_path_EGREP" >&6; }
4979 EGREP="$ac_cv_path_EGREP"
4980
4981
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4983$as_echo_n "checking for ANSI C header files... " >&6; }
f00f02a3 4984if ${ac_cv_header_stdc+:} false; then :
cd9a469c 4985 $as_echo_n "(cached) " >&6
4ee9c684 4986else
d5d92632 4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988/* end confdefs.h. */
4989#include <stdlib.h>
4990#include <stdarg.h>
4991#include <string.h>
4992#include <float.h>
4993
4994int
4995main ()
4996{
4997
4998 ;
4999 return 0;
5000}
5001_ACEOF
5002if ac_fn_c_try_compile "$LINENO"; then :
5003 ac_cv_header_stdc=yes
4ee9c684 5004else
d5d92632 5005 ac_cv_header_stdc=no
5006fi
5007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 5008
d5d92632 5009if test $ac_cv_header_stdc = yes; then
5010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012/* end confdefs.h. */
5013#include <string.h>
5014
5015_ACEOF
5016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5017 $EGREP "memchr" >/dev/null 2>&1; then :
5018
5019else
5020 ac_cv_header_stdc=no
4ee9c684 5021fi
d5d92632 5022rm -f conftest*
5023
4ee9c684 5024fi
d5d92632 5025
5026if test $ac_cv_header_stdc = yes; then
5027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h. */
5030#include <stdlib.h>
5031
5032_ACEOF
5033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034 $EGREP "free" >/dev/null 2>&1; then :
5035
4ee9c684 5036else
d5d92632 5037 ac_cv_header_stdc=no
4ee9c684 5038fi
d5d92632 5039rm -f conftest*
4ee9c684 5040
4ee9c684 5041fi
5042
d5d92632 5043if test $ac_cv_header_stdc = yes; then
5044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5045 if test "$cross_compiling" = yes; then :
5046 :
5047else
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049/* end confdefs.h. */
5050#include <ctype.h>
5051#include <stdlib.h>
5052#if ((' ' & 0x0FF) == 0x020)
5053# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5054# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5055#else
5056# define ISLOWER(c) \
5057 (('a' <= (c) && (c) <= 'i') \
5058 || ('j' <= (c) && (c) <= 'r') \
5059 || ('s' <= (c) && (c) <= 'z'))
5060# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5061#endif
5062
5063#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5064int
5065main ()
5066{
5067 int i;
5068 for (i = 0; i < 256; i++)
5069 if (XOR (islower (i), ISLOWER (i))
5070 || toupper (i) != TOUPPER (i))
5071 return 2;
5072 return 0;
5073}
5074_ACEOF
5075if ac_fn_c_try_run "$LINENO"; then :
5076
5077else
5078 ac_cv_header_stdc=no
5079fi
5080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5081 conftest.$ac_objext conftest.beam conftest.$ac_ext
5082fi
5083
5084fi
5085fi
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5087$as_echo "$ac_cv_header_stdc" >&6; }
5088if test $ac_cv_header_stdc = yes; then
5089
5090$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5091
5092fi
5093
5094# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5095for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5096 inttypes.h stdint.h unistd.h
5097do :
5098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5100"
f00f02a3 5101if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d5d92632 5102 cat >>confdefs.h <<_ACEOF
5103#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5104_ACEOF
5105
5106fi
5107
5108done
5109
5110
5111
5112 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
f00f02a3 5113if test "x$ac_cv_header_minix_config_h" = xyes; then :
d5d92632 5114 MINIX=yes
5115else
5116 MINIX=
5117fi
5118
5119
5120 if test "$MINIX" = yes; then
5121
5122$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5123
5124
5125$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5126
5127
5128$as_echo "#define _MINIX 1" >>confdefs.h
5129
5130 fi
5131
5132
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5134$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
f00f02a3 5135if ${ac_cv_safe_to_define___extensions__+:} false; then :
d5d92632 5136 $as_echo_n "(cached) " >&6
5137else
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139/* end confdefs.h. */
5140
f00f02a3 5141# define __EXTENSIONS__ 1
5142 $ac_includes_default
d5d92632 5143int
5144main ()
5145{
5146
5147 ;
5148 return 0;
5149}
5150_ACEOF
5151if ac_fn_c_try_compile "$LINENO"; then :
5152 ac_cv_safe_to_define___extensions__=yes
5153else
5154 ac_cv_safe_to_define___extensions__=no
5155fi
5156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157fi
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5159$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5160 test $ac_cv_safe_to_define___extensions__ = yes &&
5161 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5162
5163 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5164
5165 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5166
5167 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5168
5169 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5170
5171
5172
5173# Calculate toolexeclibdir
5174# Also toolexecdir, though it's only used in toolexeclibdir
5175case ${version_specific_libs} in
5176 yes)
5177 # Need the gcc compiler version to know where to install libraries
5178 # and header files if --enable-version-specific-runtime-libs option
5179 # is selected.
5180 toolexecdir='$(libdir)/gcc/$(target_alias)'
5181 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5182 ;;
5183 no)
5184 if test -n "$with_cross_host" &&
5185 test x"$with_cross_host" != x"no"; then
5186 # Install a library built with a cross compiler in tooldir, not libdir.
5187 toolexecdir='$(exec_prefix)/$(target_alias)'
5188 toolexeclibdir='$(toolexecdir)/lib'
5189 else
5190 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5191 toolexeclibdir='$(libdir)'
5192 fi
5193 multi_os_directory=`$CC -print-multi-os-directory`
5194 case $multi_os_directory in
5195 .) ;; # Avoid trailing /.
5196 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5197 esac
5198 ;;
5199esac
5200
5201
5202
5203# Create a spec file, so that compile/link tests don't fail
5204test -f libgfortran.spec || touch libgfortran.spec
5205
7eda0fb7 5206ac_ext=c
5207ac_cpp='$CPP $CPPFLAGS'
5208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210ac_compiler_gnu=$ac_cv_c_compiler_gnu
5211
d5d92632 5212# Check the compiler.
5213# The same as in boehm-gc and libstdc++. Have to borrow it from there.
5214# We must force CC to /not/ be precious variables; otherwise
5215# the wrong, non-multilib-adjusted value will be used in multilibs.
5216# As a side effect, we have to subst CFLAGS ourselves.
5217
5218
5219
5220ac_ext=c
5221ac_cpp='$CPP $CPPFLAGS'
5222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224ac_compiler_gnu=$ac_cv_c_compiler_gnu
5225if test -n "$ac_tool_prefix"; then
5226 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5227set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5230if ${ac_cv_prog_CC+:} false; then :
cd9a469c 5231 $as_echo_n "(cached) " >&6
4ee9c684 5232else
d5d92632 5233 if test -n "$CC"; then
5234 ac_cv_prog_CC="$CC" # Let the user override the test.
4ee9c684 5235else
90973b19 5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
cd9a469c 5241 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 5243 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 5245 break 2
5246 fi
5247done
cd9a469c 5248 done
5249IFS=$as_save_IFS
4ee9c684 5250
4ee9c684 5251fi
90973b19 5252fi
d5d92632 5253CC=$ac_cv_prog_CC
5254if test -n "$CC"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5256$as_echo "$CC" >&6; }
90973b19 5257else
cd9a469c 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259$as_echo "no" >&6; }
90973b19 5260fi
4ee9c684 5261
cd9a469c 5262
4ee9c684 5263fi
d5d92632 5264if test -z "$ac_cv_prog_CC"; then
5265 ac_ct_CC=$CC
5266 # Extract the first word of "gcc", so it can be a program name with args.
5267set dummy gcc; ac_word=$2
cd9a469c 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5270if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 5271 $as_echo_n "(cached) " >&6
4ee9c684 5272else
d5d92632 5273 if test -n "$ac_ct_CC"; then
5274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4ee9c684 5275else
90973b19 5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
cd9a469c 5281 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 5283 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 5285 break 2
5286 fi
5287done
cd9a469c 5288 done
5289IFS=$as_save_IFS
4ee9c684 5290
4ee9c684 5291fi
4ee9c684 5292fi
d5d92632 5293ac_ct_CC=$ac_cv_prog_ac_ct_CC
5294if test -n "$ac_ct_CC"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5296$as_echo "$ac_ct_CC" >&6; }
4ee9c684 5297else
cd9a469c 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299$as_echo "no" >&6; }
4ee9c684 5300fi
5301
d5d92632 5302 if test "x$ac_ct_CC" = x; then
5303 CC=""
cd9a469c 5304 else
5305 case $cross_compiling:$ac_tool_warned in
5306yes:)
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5309ac_tool_warned=yes ;;
5310esac
d5d92632 5311 CC=$ac_ct_CC
cd9a469c 5312 fi
90973b19 5313else
d5d92632 5314 CC="$ac_cv_prog_CC"
4ee9c684 5315fi
90973b19 5316
d5d92632 5317if test -z "$CC"; then
5318 if test -n "$ac_tool_prefix"; then
5319 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5320set dummy ${ac_tool_prefix}cc; ac_word=$2
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5323if ${ac_cv_prog_CC+:} false; then :
cd9a469c 5324 $as_echo_n "(cached) " >&6
4ee9c684 5325else
d5d92632 5326 if test -n "$CC"; then
5327 ac_cv_prog_CC="$CC" # Let the user override the test.
4ee9c684 5328else
d5d92632 5329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH
5331do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 5336 ac_cv_prog_CC="${ac_tool_prefix}cc"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5339 fi
5340done
5341 done
5342IFS=$as_save_IFS
5343
5344fi
5345fi
5346CC=$ac_cv_prog_CC
5347if test -n "$CC"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5349$as_echo "$CC" >&6; }
5350else
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352$as_echo "no" >&6; }
5353fi
5354
5355
5356 fi
5357fi
5358if test -z "$CC"; then
5359 # Extract the first word of "cc", so it can be a program name with args.
5360set dummy cc; ac_word=$2
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5363if ${ac_cv_prog_CC+:} false; then :
d5d92632 5364 $as_echo_n "(cached) " >&6
5365else
5366 if test -n "$CC"; then
5367 ac_cv_prog_CC="$CC" # Let the user override the test.
5368else
5369 ac_prog_rejected=no
5370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371for as_dir in $PATH
5372do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 5377 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5378 ac_prog_rejected=yes
5379 continue
5380 fi
5381 ac_cv_prog_CC="cc"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5384 fi
5385done
5386 done
5387IFS=$as_save_IFS
5388
5389if test $ac_prog_rejected = yes; then
5390 # We found a bogon in the path, so make sure we never use it.
5391 set dummy $ac_cv_prog_CC
5392 shift
5393 if test $# != 0; then
5394 # We chose a different compiler from the bogus one.
5395 # However, it has the same basename, so the bogon will be chosen
5396 # first if we set CC to just the basename; use the full file name.
5397 shift
5398 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5399 fi
5400fi
5401fi
5402fi
5403CC=$ac_cv_prog_CC
5404if test -n "$CC"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5406$as_echo "$CC" >&6; }
5407else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409$as_echo "no" >&6; }
5410fi
5411
5412
5413fi
5414if test -z "$CC"; then
5415 if test -n "$ac_tool_prefix"; then
5416 for ac_prog in cl.exe
5417 do
5418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5419set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5422if ${ac_cv_prog_CC+:} false; then :
d5d92632 5423 $as_echo_n "(cached) " >&6
5424else
5425 if test -n "$CC"; then
5426 ac_cv_prog_CC="$CC" # Let the user override the test.
5427else
5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH
5430do
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 5435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5438 fi
5439done
5440 done
5441IFS=$as_save_IFS
5442
5443fi
5444fi
5445CC=$ac_cv_prog_CC
5446if test -n "$CC"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5448$as_echo "$CC" >&6; }
5449else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451$as_echo "no" >&6; }
5452fi
5453
5454
5455 test -n "$CC" && break
5456 done
5457fi
5458if test -z "$CC"; then
5459 ac_ct_CC=$CC
5460 for ac_prog in cl.exe
5461do
5462 # Extract the first word of "$ac_prog", so it can be a program name with args.
5463set dummy $ac_prog; ac_word=$2
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5466if ${ac_cv_prog_ac_ct_CC+:} false; then :
d5d92632 5467 $as_echo_n "(cached) " >&6
5468else
5469 if test -n "$ac_ct_CC"; then
5470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 5479 ac_cv_prog_ac_ct_CC="$ac_prog"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5482 fi
5483done
5484 done
5485IFS=$as_save_IFS
5486
5487fi
5488fi
5489ac_ct_CC=$ac_cv_prog_ac_ct_CC
5490if test -n "$ac_ct_CC"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5492$as_echo "$ac_ct_CC" >&6; }
5493else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495$as_echo "no" >&6; }
5496fi
5497
5498
5499 test -n "$ac_ct_CC" && break
5500done
5501
5502 if test "x$ac_ct_CC" = x; then
5503 CC=""
5504 else
5505 case $cross_compiling:$ac_tool_warned in
5506yes:)
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5509ac_tool_warned=yes ;;
5510esac
5511 CC=$ac_ct_CC
5512 fi
5513fi
5514
5515fi
5516
5517
5518test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 5520as_fn_error $? "no acceptable C compiler found in \$PATH
5521See \`config.log' for more details" "$LINENO" 5; }
d5d92632 5522
5523# Provide some information about the compiler.
5524$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5525set X $ac_compile
5526ac_compiler=$2
5527for ac_option in --version -v -V -qversion; do
5528 { { ac_try="$ac_compiler $ac_option >&5"
5529case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532esac
5533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5534$as_echo "$ac_try_echo"; } >&5
5535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5536 ac_status=$?
5537 if test -s conftest.err; then
5538 sed '10a\
5539... rest of stderr output deleted ...
5540 10q' conftest.err >conftest.er1
5541 cat conftest.er1 >&5
d5d92632 5542 fi
f00f02a3 5543 rm -f conftest.er1 conftest.err
d5d92632 5544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5545 test $ac_status = 0; }
5546done
5547
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5549$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f00f02a3 5550if ${ac_cv_c_compiler_gnu+:} false; then :
d5d92632 5551 $as_echo_n "(cached) " >&6
5552else
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554/* end confdefs.h. */
5555
5556int
5557main ()
5558{
5559#ifndef __GNUC__
5560 choke me
5561#endif
5562
5563 ;
5564 return 0;
5565}
5566_ACEOF
5567if ac_fn_c_try_compile "$LINENO"; then :
5568 ac_compiler_gnu=yes
5569else
5570 ac_compiler_gnu=no
5571fi
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573ac_cv_c_compiler_gnu=$ac_compiler_gnu
5574
5575fi
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5577$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5578if test $ac_compiler_gnu = yes; then
5579 GCC=yes
5580else
5581 GCC=
5582fi
5583ac_test_CFLAGS=${CFLAGS+set}
5584ac_save_CFLAGS=$CFLAGS
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5586$as_echo_n "checking whether $CC accepts -g... " >&6; }
f00f02a3 5587if ${ac_cv_prog_cc_g+:} false; then :
d5d92632 5588 $as_echo_n "(cached) " >&6
5589else
5590 ac_save_c_werror_flag=$ac_c_werror_flag
5591 ac_c_werror_flag=yes
5592 ac_cv_prog_cc_g=no
5593 CFLAGS="-g"
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595/* end confdefs.h. */
5596
5597int
5598main ()
5599{
5600
5601 ;
5602 return 0;
5603}
5604_ACEOF
5605if ac_fn_c_try_compile "$LINENO"; then :
5606 ac_cv_prog_cc_g=yes
5607else
5608 CFLAGS=""
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h. */
5611
5612int
5613main ()
5614{
5615
5616 ;
5617 return 0;
5618}
5619_ACEOF
5620if ac_fn_c_try_compile "$LINENO"; then :
5621
5622else
5623 ac_c_werror_flag=$ac_save_c_werror_flag
5624 CFLAGS="-g"
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h. */
5627
5628int
5629main ()
5630{
5631
5632 ;
5633 return 0;
5634}
5635_ACEOF
5636if ac_fn_c_try_compile "$LINENO"; then :
5637 ac_cv_prog_cc_g=yes
5638fi
5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640fi
5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642fi
5643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 ac_c_werror_flag=$ac_save_c_werror_flag
5645fi
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5647$as_echo "$ac_cv_prog_cc_g" >&6; }
5648if test "$ac_test_CFLAGS" = set; then
5649 CFLAGS=$ac_save_CFLAGS
5650elif test $ac_cv_prog_cc_g = yes; then
5651 if test "$GCC" = yes; then
5652 CFLAGS="-g -O2"
5653 else
5654 CFLAGS="-g"
5655 fi
5656else
5657 if test "$GCC" = yes; then
5658 CFLAGS="-O2"
5659 else
5660 CFLAGS=
5661 fi
5662fi
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5664$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
f00f02a3 5665if ${ac_cv_prog_cc_c89+:} false; then :
d5d92632 5666 $as_echo_n "(cached) " >&6
5667else
5668 ac_cv_prog_cc_c89=no
5669ac_save_CC=$CC
5670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h. */
5672#include <stdarg.h>
5673#include <stdio.h>
f00f02a3 5674struct stat;
d5d92632 5675/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5676struct buf { int x; };
5677FILE * (*rcsopen) (struct buf *, struct stat *, int);
5678static char *e (p, i)
5679 char **p;
5680 int i;
5681{
5682 return p[i];
5683}
5684static char *f (char * (*g) (char **, int), char **p, ...)
5685{
5686 char *s;
5687 va_list v;
5688 va_start (v,p);
5689 s = g (p, va_arg (v,int));
5690 va_end (v);
5691 return s;
5692}
5693
5694/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5695 function prototypes and stuff, but not '\xHH' hex character constants.
5696 These don't provoke an error unfortunately, instead are silently treated
5697 as 'x'. The following induces an error, until -std is added to get
5698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5699 array size at least. It's necessary to write '\x00'==0 to get something
5700 that's true only with -std. */
5701int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5702
5703/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5704 inside strings and character constants. */
5705#define FOO(x) 'x'
5706int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5707
5708int test (int i, double x);
5709struct s1 {int (*f) (int a);};
5710struct s2 {int (*f) (double a);};
5711int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5712int argc;
5713char **argv;
5714int
5715main ()
5716{
5717return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5718 ;
5719 return 0;
5720}
5721_ACEOF
5722for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5723 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5724do
5725 CC="$ac_save_CC $ac_arg"
5726 if ac_fn_c_try_compile "$LINENO"; then :
5727 ac_cv_prog_cc_c89=$ac_arg
5728fi
5729rm -f core conftest.err conftest.$ac_objext
5730 test "x$ac_cv_prog_cc_c89" != "xno" && break
5731done
5732rm -f conftest.$ac_ext
5733CC=$ac_save_CC
5734
5735fi
5736# AC_CACHE_VAL
5737case "x$ac_cv_prog_cc_c89" in
5738 x)
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5740$as_echo "none needed" >&6; } ;;
5741 xno)
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5743$as_echo "unsupported" >&6; } ;;
5744 *)
5745 CC="$CC $ac_cv_prog_cc_c89"
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5747$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5748esac
5749if test "x$ac_cv_prog_cc_c89" != xno; then :
5750
5751fi
5752
5753ac_ext=c
5754ac_cpp='$CPP $CPPFLAGS'
5755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757ac_compiler_gnu=$ac_cv_c_compiler_gnu
5758
f00f02a3 5759ac_ext=c
5760ac_cpp='$CPP $CPPFLAGS'
5761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5763ac_compiler_gnu=$ac_cv_c_compiler_gnu
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5765$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5766if ${am_cv_prog_cc_c_o+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768else
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770/* end confdefs.h. */
5771
5772int
5773main ()
5774{
5775
5776 ;
5777 return 0;
5778}
5779_ACEOF
5780 # Make sure it works both with $CC and with simple cc.
5781 # Following AC_PROG_CC_C_O, we do the test twice because some
5782 # compilers refuse to overwrite an existing .o file with -o,
5783 # though they will create one.
5784 am_cv_prog_cc_c_o=yes
5785 for am_i in 1 2; do
5786 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5787 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } \
5791 && test -f conftest2.$ac_objext; then
5792 : OK
5793 else
5794 am_cv_prog_cc_c_o=no
5795 break
5796 fi
5797 done
5798 rm -f core conftest*
5799 unset am_i
5800fi
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5802$as_echo "$am_cv_prog_cc_c_o" >&6; }
5803if test "$am_cv_prog_cc_c_o" != yes; then
5804 # Losing compiler, so override with the script.
5805 # FIXME: It is wrong to rewrite CC.
5806 # But if we don't then we get into trouble of one sort or another.
5807 # A longer-term fix would be to have automake use am__CC in this case,
5808 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5809 CC="$am_aux_dir/compile $CC"
5810fi
5811ac_ext=c
5812ac_cpp='$CPP $CPPFLAGS'
5813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815ac_compiler_gnu=$ac_cv_c_compiler_gnu
5816
5817
d5d92632 5818depcc="$CC" am_compiler_list=
5819
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5821$as_echo_n "checking dependency style of $depcc... " >&6; }
f00f02a3 5822if ${am_cv_CC_dependencies_compiler_type+:} false; then :
d5d92632 5823 $as_echo_n "(cached) " >&6
5824else
5825 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5826 # We make a subdir and do the tests there. Otherwise we can end up
5827 # making bogus files that we don't know about and never remove. For
5828 # instance it was reported that on HP-UX the gcc test will end up
f00f02a3 5829 # making a dummy file named 'D' -- because '-MD' means "put the output
5830 # in D".
544db64f 5831 rm -rf conftest.dir
d5d92632 5832 mkdir conftest.dir
5833 # Copy depcomp to subdir because otherwise we won't find it if we're
5834 # using a relative directory.
5835 cp "$am_depcomp" conftest.dir
5836 cd conftest.dir
5837 # We will build objects and dependencies in a subdirectory because
5838 # it helps to detect inapplicable dependency modes. For instance
5839 # both Tru64's cc and ICC support -MD to output dependencies as a
5840 # side effect of compilation, but ICC will put the dependencies in
5841 # the current directory while Tru64 will put them in the object
5842 # directory.
5843 mkdir sub
5844
5845 am_cv_CC_dependencies_compiler_type=none
5846 if test "$am_compiler_list" = ""; then
5847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5848 fi
5849 am__universal=false
5850 case " $depcc " in #(
5851 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5852 esac
5853
5854 for depmode in $am_compiler_list; do
5855 # Setup a source with many dependencies, because some compilers
5856 # like to wrap large dependency lists on column 80 (with \), and
5857 # we should not choose a depcomp mode which is confused by this.
5858 #
5859 # We need to recreate these files for each test, as the compiler may
5860 # overwrite some of them when testing with obscure command lines.
5861 # This happens at least with the AIX C compiler.
5862 : > sub/conftest.c
5863 for i in 1 2 3 4 5 6; do
5864 echo '#include "conftst'$i'.h"' >> sub/conftest.c
f00f02a3 5865 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5866 # Solaris 10 /bin/sh.
5867 echo '/* dummy */' > sub/conftst$i.h
d5d92632 5868 done
5869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5870
f00f02a3 5871 # We check with '-c' and '-o' for the sake of the "dashmstdout"
d5d92632 5872 # mode. It turns out that the SunPro C++ compiler does not properly
f00f02a3 5873 # handle '-M -o', and we need to detect this. Also, some Intel
5874 # versions had trouble with output in subdirs.
d5d92632 5875 am__obj=sub/conftest.${OBJEXT-o}
5876 am__minus_obj="-o $am__obj"
5877 case $depmode in
5878 gcc)
5879 # This depmode causes a compiler race in universal mode.
5880 test "$am__universal" = false || continue
5881 ;;
5882 nosideeffect)
f00f02a3 5883 # After this tag, mechanisms are not by side-effect, so they'll
5884 # only be used when explicitly requested.
d5d92632 5885 if test "x$enable_dependency_tracking" = xyes; then
5886 continue
5887 else
5888 break
5889 fi
5890 ;;
544db64f 5891 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
f00f02a3 5892 # This compiler won't grok '-c -o', but also, the minuso test has
d5d92632 5893 # not run yet. These depmodes are late enough in the game, and
5894 # so weak that their functioning should not be impacted.
5895 am__obj=conftest.${OBJEXT-o}
5896 am__minus_obj=
5897 ;;
5898 none) break ;;
5899 esac
5900 if depmode=$depmode \
5901 source=sub/conftest.c object=$am__obj \
5902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5903 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5904 >/dev/null 2>conftest.err &&
5905 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5907 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5909 # icc doesn't choke on unknown options, it will just issue warnings
5910 # or remarks (even with -Werror). So we grep stderr for any message
5911 # that says an option was ignored or not supported.
5912 # When given -MP, icc 7.0 and 7.1 complain thusly:
5913 # icc: Command line warning: ignoring option '-M'; no argument required
5914 # The diagnosis changed in icc 8.0:
5915 # icc: Command line remark: option '-MP' not supported
5916 if (grep 'ignoring option' conftest.err ||
5917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5918 am_cv_CC_dependencies_compiler_type=$depmode
5919 break
5920 fi
5921 fi
5922 done
5923
5924 cd ..
5925 rm -rf conftest.dir
5926else
5927 am_cv_CC_dependencies_compiler_type=none
5928fi
5929
5930fi
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5932$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5933CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5934
5935 if
5936 test "x$enable_dependency_tracking" != xno \
5937 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5938 am__fastdepCC_TRUE=
5939 am__fastdepCC_FALSE='#'
5940else
5941 am__fastdepCC_TRUE='#'
5942 am__fastdepCC_FALSE=
5943fi
5944
5945
5946
5947
7eda0fb7 5948
5949
7eda0fb7 5950
5951
d5d92632 5952# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5953if test "x$GCC" = "xyes"; then
5954 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
a159faeb 5955 ## We like to use C11 and C99 routines when available. This makes
5956 ## sure that
d5d92632 5957 ## __STDC_VERSION__ is set such that libc includes make them available.
2cb567cf 5958 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
d5d92632 5959 ## Compile the following tests with the same system header contents
5960 ## that we'll encounter when compiling our own source files.
a159faeb 5961 CFLAGS="-std=gnu11 $CFLAGS"
d5d92632 5962fi
5963
42ea2de2 5964# Add CET specific flags if CET is enabled
5965 # Check whether --enable-cet was given.
5966if test "${enable_cet+set}" = set; then :
5967 enableval=$enable_cet;
5968 case "$enableval" in
ee8fea81 5969 yes|no|auto) ;;
f00f02a3 5970 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
42ea2de2 5971 esac
5972
5973else
ee8fea81 5974 enable_cet=no
42ea2de2 5975fi
5976
5977
5611e648 5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5979$as_echo_n "checking for CET support... " >&6; }
5980
42ea2de2 5981case "$host" in
5982 i[34567]86-*-linux* | x86_64-*-linux*)
5983 case "$enable_cet" in
ee8fea81 5984 auto)
5611e648 5985 # Check if target supports multi-byte NOPs
5986 # and if assembler supports CET insn.
42ea2de2 5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988/* end confdefs.h. */
5989
5990int
5991main ()
5992{
5611e648 5993
5994#if !defined(__SSE2__)
5995#error target does not support multi-byte NOPs
5996#else
42ea2de2 5997asm ("setssbsy");
5611e648 5998#endif
5999
42ea2de2 6000 ;
6001 return 0;
6002}
6003_ACEOF
6004if ac_fn_c_try_compile "$LINENO"; then :
6005 enable_cet=yes
6006else
6007 enable_cet=no
6008fi
6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 ;;
6011 yes)
6012 # Check if assembler supports CET.
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014/* end confdefs.h. */
6015
6016int
6017main ()
6018{
6019asm ("setssbsy");
6020 ;
6021 return 0;
6022}
6023_ACEOF
6024if ac_fn_c_try_compile "$LINENO"; then :
6025
6026else
f00f02a3 6027 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
42ea2de2 6028fi
6029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 ;;
6031 esac
6032 ;;
6033 *)
6034 enable_cet=no
6035 ;;
6036esac
6037if test x$enable_cet = xyes; then
6726651f 6038 CET_FLAGS="-fcf-protection -mshstk"
5611e648 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6040$as_echo "yes" >&6; }
6041else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043$as_echo "no" >&6; }
42ea2de2 6044fi
6045
6046AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
6047AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
6048CFLAGS="$CFLAGS $CET_FLAGS"
6049
6050
d5d92632 6051
6052
6053
6054# Check for symbol versioning (copied from libssp).
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
6056$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bbb514dc 6057# Check whether --enable-symvers was given.
6058if test "${enable_symvers+set}" = set; then :
6059 enableval=$enable_symvers; gfortran_use_symver=$enableval
6060else
6061 gfortran_use_symver=yes
6062fi
6063
06e4a265 6064if test "x$gfortran_use_symver" != xno; then
bbb514dc 6065 save_LDFLAGS="$LDFLAGS"
6066 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
6067 cat > conftest.map <<EOF
d5d92632 6068FOO_1.0 {
6069 global: *foo*; bar; local: *;
6070};
6071EOF
bbb514dc 6072 if test x$gcc_no_link = xyes; then
f00f02a3 6073 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d5d92632 6074fi
6075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h. */
6077int foo;
6078int
6079main ()
6080{
6081
6082 ;
6083 return 0;
6084}
6085_ACEOF
6086if ac_fn_c_try_link "$LINENO"; then :
6087 gfortran_use_symver=gnu
6088else
6089 gfortran_use_symver=no
6090fi
6091rm -f core conftest.err conftest.$ac_objext \
6092 conftest$ac_exeext conftest.$ac_ext
bbb514dc 6093 if test x$gfortran_use_symver = xno; then
6094 case "$target_os" in
6095 solaris2*)
6096 LDFLAGS="$save_LDFLAGS"
6097 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
6098 # Sun ld cannot handle wildcards and treats all entries as undefined.
6099 cat > conftest.map <<EOF
d5d92632 6100FOO_1.0 {
6101 global: foo; local: *;
6102};
6103EOF
bbb514dc 6104 if test x$gcc_no_link = xyes; then
f00f02a3 6105 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d5d92632 6106fi
6107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h. */
6109int foo;
6110int
6111main ()
6112{
6113
6114 ;
6115 return 0;
6116}
6117_ACEOF
6118if ac_fn_c_try_link "$LINENO"; then :
6119 gfortran_use_symver=sun
6120else
6121 gfortran_use_symver=no
6122fi
6123rm -f core conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
bbb514dc 6125 ;;
6126 esac
6127 fi
6128 LDFLAGS="$save_LDFLAGS"
d5d92632 6129fi
d5d92632 6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
6131$as_echo "$gfortran_use_symver" >&6; }
6132 if test "x$gfortran_use_symver" != xno; then
6133 LIBGFOR_USE_SYMVER_TRUE=
6134 LIBGFOR_USE_SYMVER_FALSE='#'
6135else
6136 LIBGFOR_USE_SYMVER_TRUE='#'
6137 LIBGFOR_USE_SYMVER_FALSE=
6138fi
6139
6140 if test "x$gfortran_use_symver" = xgnu; then
6141 LIBGFOR_USE_SYMVER_GNU_TRUE=
6142 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
6143else
6144 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
6145 LIBGFOR_USE_SYMVER_GNU_FALSE=
6146fi
6147
6148 if test "x$gfortran_use_symver" = xsun; then
6149 LIBGFOR_USE_SYMVER_SUN_TRUE=
6150 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
6151else
6152 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
6153 LIBGFOR_USE_SYMVER_SUN_FALSE=
6154fi
6155
6156
eb00e55c 6157# For GPU offloading, not everything in libfortran can be supported.
6158# Currently, the only target that has this problem is nvptx. The
6159# following is a (partial) list of features that are unsupportable on
6160# this particular target:
6161# * Constructors
6162# * alloca
6163# * C library support for I/O, with printf as the one notable exception
6164# * C library support for other features such as signal, environment
6165# variables, time functions
6166
51177ee3 6167 if test "x${target_cpu}" = xnvptx \
6168 || test "x${target_cpu}" = xamdgcn; then
eb00e55c 6169 LIBGFOR_MINIMAL_TRUE=
6170 LIBGFOR_MINIMAL_FALSE='#'
6171else
6172 LIBGFOR_MINIMAL_TRUE='#'
6173 LIBGFOR_MINIMAL_FALSE=
6174fi
6175
6176
d5d92632 6177# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6178# similarly to how libstdc++ does it
6179ac_test_CFLAGS="${CFLAGS+set}"
6180ac_save_CFLAGS="$CFLAGS"
6181
6182# Check for -ffunction-sections -fdata-sections
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6184$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6185CFLAGS='-Werror -ffunction-sections -fdata-sections'
6186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187/* end confdefs.h. */
6188
6189int
6190main ()
6191{
6192int foo;
6193 ;
6194 return 0;
6195}
6196_ACEOF
6197if ac_fn_c_try_compile "$LINENO"; then :
6198 ac_fdsections=yes
6199else
6200 ac_fdsections=no
6201fi
6202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203if test "$ac_test_CFLAGS" = set; then
6204 CFLAGS="$ac_save_CFLAGS"
6205else
6206 # this is the suspicious part
6207 CFLAGS=""
6208fi
6209if test x"$ac_fdsections" = x"yes"; then
6210 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6211fi
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6213$as_echo "$ac_fdsections" >&6; }
6214
6215
18ce903b 6216# Check linker hardware capability support.
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6218$as_echo_n "checking for a sed that does not truncate output... " >&6; }
f00f02a3 6219if ${ac_cv_path_SED+:} false; then :
d5d92632 6220 $as_echo_n "(cached) " >&6
6221else
18ce903b 6222 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6223 for ac_i in 1 2 3 4 5 6 7; do
6224 ac_script="$ac_script$as_nl$ac_script"
6225 done
6226 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6227 { ac_script=; unset ac_script;}
6228 if test -z "$SED"; then
6229 ac_path_SED_found=false
6230 # Loop through the user's path and test for each of PROGNAME-LIST
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d5d92632 6232for as_dir in $PATH
6233do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
18ce903b 6236 for ac_prog in sed gsed; do
d5d92632 6237 for ac_exec_ext in '' $ac_executable_extensions; do
18ce903b 6238 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 6239 as_fn_executable_p "$ac_path_SED" || continue
18ce903b 6240# Check for GNU ac_path_SED and select it if it is found.
6241 # Check for GNU $ac_path_SED
6242case `"$ac_path_SED" --version 2>&1` in
6243*GNU*)
6244 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6245*)
6246 ac_count=0
6247 $as_echo_n 0123456789 >"conftest.in"
6248 while :
6249 do
6250 cat "conftest.in" "conftest.in" >"conftest.tmp"
6251 mv "conftest.tmp" "conftest.in"
6252 cp "conftest.in" "conftest.nl"
6253 $as_echo '' >> "conftest.nl"
6254 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6256 as_fn_arith $ac_count + 1 && ac_count=$as_val
6257 if test $ac_count -gt ${ac_path_SED_max-0}; then
6258 # Best one so far, save it but keep looking for a better one
6259 ac_cv_path_SED="$ac_path_SED"
6260 ac_path_SED_max=$ac_count
6261 fi
6262 # 10*(2^10) chars as input seems more than enough
6263 test $ac_count -gt 10 && break
d5d92632 6264 done
18ce903b 6265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6266esac
d5d92632 6267
18ce903b 6268 $ac_path_SED_found && break 3
6269 done
6270 done
d5d92632 6271 done
6272IFS=$as_save_IFS
18ce903b 6273 if test -z "$ac_cv_path_SED"; then
f00f02a3 6274 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
18ce903b 6275 fi
d5d92632 6276else
18ce903b 6277 ac_cv_path_SED=$SED
d5d92632 6278fi
6279
d5d92632 6280fi
18ce903b 6281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6282$as_echo "$ac_cv_path_SED" >&6; }
6283 SED="$ac_cv_path_SED"
6284 rm -f conftest.sed
d5d92632 6285
18ce903b 6286test -z "$SED" && SED=sed
6287Xsed="$SED -e 1s/^X//"
d5d92632 6288
d5d92632 6289
6290
18ce903b 6291
6292
6293
6294
6295
6296
6297
6298
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6300$as_echo_n "checking for fgrep... " >&6; }
f00f02a3 6301if ${ac_cv_path_FGREP+:} false; then :
d5d92632 6302 $as_echo_n "(cached) " >&6
6303else
18ce903b 6304 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6305 then ac_cv_path_FGREP="$GREP -F"
6306 else
6307 if test -z "$FGREP"; then
6308 ac_path_FGREP_found=false
6309 # Loop through the user's path and test for each of PROGNAME-LIST
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
d5d92632 6312do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
18ce903b 6315 for ac_prog in fgrep; do
d5d92632 6316 for ac_exec_ext in '' $ac_executable_extensions; do
18ce903b 6317 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 6318 as_fn_executable_p "$ac_path_FGREP" || continue
18ce903b 6319# Check for GNU ac_path_FGREP and select it if it is found.
6320 # Check for GNU $ac_path_FGREP
6321case `"$ac_path_FGREP" --version 2>&1` in
6322*GNU*)
6323 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6324*)
6325 ac_count=0
6326 $as_echo_n 0123456789 >"conftest.in"
6327 while :
6328 do
6329 cat "conftest.in" "conftest.in" >"conftest.tmp"
6330 mv "conftest.tmp" "conftest.in"
6331 cp "conftest.in" "conftest.nl"
6332 $as_echo 'FGREP' >> "conftest.nl"
6333 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6335 as_fn_arith $ac_count + 1 && ac_count=$as_val
6336 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6337 # Best one so far, save it but keep looking for a better one
6338 ac_cv_path_FGREP="$ac_path_FGREP"
6339 ac_path_FGREP_max=$ac_count
6340 fi
6341 # 10*(2^10) chars as input seems more than enough
6342 test $ac_count -gt 10 && break
6343 done
6344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6345esac
6346
6347 $ac_path_FGREP_found && break 3
6348 done
6349 done
d5d92632 6350 done
6351IFS=$as_save_IFS
18ce903b 6352 if test -z "$ac_cv_path_FGREP"; then
f00f02a3 6353 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
18ce903b 6354 fi
6355else
6356 ac_cv_path_FGREP=$FGREP
6357fi
d5d92632 6358
18ce903b 6359 fi
d5d92632 6360fi
18ce903b 6361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6362$as_echo "$ac_cv_path_FGREP" >&6; }
6363 FGREP="$ac_cv_path_FGREP"
542f9784 6364
6365
18ce903b 6366test -z "$GREP" && GREP=grep
542f9784 6367
6368
6369
6370
4ee9c684 6371
542f9784 6372
6373
6374
6375
6376
6377
6378
e6408286 6379
e6408286 6380
e6408286 6381
e6408286 6382
e6408286 6383
6384ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6385ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6386ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6387
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6389$as_echo_n "checking how to print strings... " >&6; }
6390# Test print first, because it will be a builtin if present.
6391if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6392 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6393 ECHO='print -r --'
6394elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6395 ECHO='printf %s\n'
6396else
6397 # Use this function as a fallback that always works.
6398 func_fallback_echo ()
6399 {
6400 eval 'cat <<_LTECHO_EOF
6401$1
6402_LTECHO_EOF'
6403 }
6404 ECHO='func_fallback_echo'
6405fi
6406
6407# func_echo_all arg...
6408# Invoke $ECHO with all args, space-separated.
6409func_echo_all ()
6410{
6411 $ECHO ""
6412}
6413
6414case "$ECHO" in
6415 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6416$as_echo "printf" >&6; } ;;
6417 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6418$as_echo "print -r" >&6; } ;;
6419 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6420$as_echo "cat" >&6; } ;;
6421esac
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
d5d92632 6434
6435
cd9a469c 6436
cd9a469c 6437
18ce903b 6438# Check whether --with-gnu-ld was given.
6439if test "${with_gnu_ld+set}" = set; then :
6440 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6441else
6442 with_gnu_ld=no
542f9784 6443fi
d5d92632 6444
18ce903b 6445ac_prog=ld
6446if test "$GCC" = yes; then
6447 # Check if gcc -print-prog-name=ld gives a path.
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6449$as_echo_n "checking for ld used by $CC... " >&6; }
6450 case $host in
6451 *-*-mingw*)
6452 # gcc leaves a trailing carriage return which upsets mingw
6453 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6454 *)
6455 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6456 esac
6457 case $ac_prog in
6458 # Accept absolute paths.
6459 [\\/]* | ?:[\\/]*)
6460 re_direlt='/[^/][^/]*/\.\./'
6461 # Canonicalize the pathname of ld
6462 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6463 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6464 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6465 done
6466 test -z "$LD" && LD="$ac_prog"
6467 ;;
6468 "")
6469 # If it fails, then pretend we aren't using GCC.
6470 ac_prog=ld
6471 ;;
6472 *)
6473 # If it is relative, then search for the first ld in PATH.
6474 with_gnu_ld=unknown
6475 ;;
6476 esac
6477elif test "$with_gnu_ld" = yes; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6479$as_echo_n "checking for GNU ld... " >&6; }
6480else
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6482$as_echo_n "checking for non-GNU ld... " >&6; }
6483fi
f00f02a3 6484if ${lt_cv_path_LD+:} false; then :
18ce903b 6485 $as_echo_n "(cached) " >&6
6486else
6487 if test -z "$LD"; then
6488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6489 for ac_dir in $PATH; do
6490 IFS="$lt_save_ifs"
6491 test -z "$ac_dir" && ac_dir=.
6492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6493 lt_cv_path_LD="$ac_dir/$ac_prog"
6494 # Check to see if the program is GNU ld. I'd rather use --version,
6495 # but apparently some variants of GNU ld only accept -v.
6496 # Break only if it was the GNU/non-GNU ld that we prefer.
6497 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6498 *GNU* | *'with BFD'*)
6499 test "$with_gnu_ld" != no && break
6500 ;;
6501 *)
6502 test "$with_gnu_ld" != yes && break
6503 ;;
6504 esac
6505 fi
6506 done
6507 IFS="$lt_save_ifs"
6508else
6509 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6510fi
6511fi
6512
6513LD="$lt_cv_path_LD"
6514if test -n "$LD"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6516$as_echo "$LD" >&6; }
6517else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; }
6520fi
f00f02a3 6521test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18ce903b 6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6523$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
f00f02a3 6524if ${lt_cv_prog_gnu_ld+:} false; then :
18ce903b 6525 $as_echo_n "(cached) " >&6
6526else
6527 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6528case `$LD -v 2>&1 </dev/null` in
6529*GNU* | *'with BFD'*)
6530 lt_cv_prog_gnu_ld=yes
6531 ;;
6532*)
6533 lt_cv_prog_gnu_ld=no
6534 ;;
6535esac
6536fi
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6538$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6539with_gnu_ld=$lt_cv_prog_gnu_ld
d5d92632 6540
6541
6542
6543
6544
6545
6546
6547
542f9784 6548
6549
18ce903b 6550 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6551
6552
6553 ac_save_LDFLAGS="$LDFLAGS"
6554 LDFLAGS="$LFLAGS -mclear-hwcap"
6555
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6557$as_echo_n "checking for -mclear-hwcap... " >&6; }
6558 if test x$gcc_no_link = xyes; then
f00f02a3 6559 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18ce903b 6560fi
6561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562/* end confdefs.h. */
6563
6564int
6565main ()
6566{
6567return 0;
6568 ;
6569 return 0;
6570}
6571_ACEOF
6572if ac_fn_c_try_link "$LINENO"; then :
6573 ac_hwcap_ldflags=yes
6574else
6575 ac_hwcap_ldflags=no
6576fi
6577rm -f core conftest.err conftest.$ac_objext \
6578 conftest$ac_exeext conftest.$ac_ext
6579 if test "$ac_hwcap_ldflags" = "yes"; then
6580 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6581 fi
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6583$as_echo "$ac_hwcap_ldflags" >&6; }
6584
6585 LDFLAGS="$ac_save_LDFLAGS"
6586
6587
6588
6589 if test $ac_hwcap_ldflags != no; then
6590 HAVE_HWCAP_TRUE=
6591 HAVE_HWCAP_FALSE='#'
6592else
6593 HAVE_HWCAP_TRUE='#'
6594 HAVE_HWCAP_FALSE=
6595fi
6596
6597
6598
6599# Find other programs we need.
6600if test -n "$ac_tool_prefix"; then
6601 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6602set dummy ${ac_tool_prefix}as; ac_word=$2
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6605if ${ac_cv_prog_AS+:} false; then :
cd9a469c 6606 $as_echo_n "(cached) " >&6
82eaf560 6607else
18ce903b 6608 if test -n "$AS"; then
6609 ac_cv_prog_AS="$AS" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
cd9a469c 6613do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
cd9a469c 6616 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18ce903b 6618 ac_cv_prog_AS="${ac_tool_prefix}as"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622done
cd9a469c 6623 done
18ce903b 6624IFS=$as_save_IFS
6625
6626fi
6627fi
6628AS=$ac_cv_prog_AS
6629if test -n "$AS"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6631$as_echo "$AS" >&6; }
6632else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634$as_echo "no" >&6; }
6635fi
6636
6637
6638fi
6639if test -z "$ac_cv_prog_AS"; then
6640 ac_ct_AS=$AS
6641 # Extract the first word of "as", so it can be a program name with args.
6642set dummy as; ac_word=$2
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6645if ${ac_cv_prog_ac_ct_AS+:} false; then :
18ce903b 6646 $as_echo_n "(cached) " >&6
6647else
6648 if test -n "$ac_ct_AS"; then
6649 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6650else
6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652for as_dir in $PATH
6653do
6654 IFS=$as_save_IFS
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18ce903b 6658 ac_cv_prog_ac_ct_AS="as"
6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662done
6663 done
6664IFS=$as_save_IFS
6665
6666fi
6667fi
6668ac_ct_AS=$ac_cv_prog_ac_ct_AS
6669if test -n "$ac_ct_AS"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6671$as_echo "$ac_ct_AS" >&6; }
6672else
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674$as_echo "no" >&6; }
6675fi
6676
6677 if test "x$ac_ct_AS" = x; then
6678 AS=""
6679 else
6680 case $cross_compiling:$ac_tool_warned in
6681yes:)
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684ac_tool_warned=yes ;;
cd9a469c 6685esac
18ce903b 6686 AS=$ac_ct_AS
6687 fi
6688else
6689 AS="$ac_cv_prog_AS"
6690fi
cd9a469c 6691
18ce903b 6692if test -n "$ac_tool_prefix"; then
6693 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6694set dummy ${ac_tool_prefix}ar; ac_word=$2
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6697if ${ac_cv_prog_AR+:} false; then :
18ce903b 6698 $as_echo_n "(cached) " >&6
6699else
6700 if test -n "$AR"; then
6701 ac_cv_prog_AR="$AR" # Let the user override the test.
6702else
6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18ce903b 6710 ac_cv_prog_AR="${ac_tool_prefix}ar"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714done
cd9a469c 6715 done
18ce903b 6716IFS=$as_save_IFS
6717
6718fi
6719fi
6720AR=$ac_cv_prog_AR
6721if test -n "$AR"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6723$as_echo "$AR" >&6; }
6724else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726$as_echo "no" >&6; }
6727fi
6728
6729
6730fi
6731if test -z "$ac_cv_prog_AR"; then
6732 ac_ct_AR=$AR
6733 # Extract the first word of "ar", so it can be a program name with args.
6734set dummy ar; ac_word=$2
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6737if ${ac_cv_prog_ac_ct_AR+:} false; then :
18ce903b 6738 $as_echo_n "(cached) " >&6
6739else
6740 if test -n "$ac_ct_AR"; then
6741 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6742else
6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18ce903b 6750 ac_cv_prog_ac_ct_AR="ar"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6753 fi
6754done
6755 done
6756IFS=$as_save_IFS
6757
6758fi
6759fi
6760ac_ct_AR=$ac_cv_prog_ac_ct_AR
6761if test -n "$ac_ct_AR"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6763$as_echo "$ac_ct_AR" >&6; }
6764else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766$as_echo "no" >&6; }
6767fi
6768
6769 if test "x$ac_ct_AR" = x; then
6770 AR=""
6771 else
6772 case $cross_compiling:$ac_tool_warned in
6773yes:)
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6776ac_tool_warned=yes ;;
6777esac
6778 AR=$ac_ct_AR
6779 fi
6780else
6781 AR="$ac_cv_prog_AR"
6782fi
6783
6784if test -n "$ac_tool_prefix"; then
6785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6786set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6789if ${ac_cv_prog_RANLIB+:} false; then :
18ce903b 6790 $as_echo_n "(cached) " >&6
6791else
6792 if test -n "$RANLIB"; then
6793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6794else
6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18ce903b 6802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806done
6807 done
6808IFS=$as_save_IFS
6809
6810fi
6811fi
6812RANLIB=$ac_cv_prog_RANLIB
6813if test -n "$RANLIB"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6815$as_echo "$RANLIB" >&6; }
6816else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818$as_echo "no" >&6; }
6819fi
6820
6821
6822fi
6823if test -z "$ac_cv_prog_RANLIB"; then
6824 ac_ct_RANLIB=$RANLIB
6825 # Extract the first word of "ranlib", so it can be a program name with args.
6826set dummy ranlib; ac_word=$2
6827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6829if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
18ce903b 6830 $as_echo_n "(cached) " >&6
6831else
6832 if test -n "$ac_ct_RANLIB"; then
6833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6834else
6835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836for as_dir in $PATH
6837do
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18ce903b 6842 ac_cv_prog_ac_ct_RANLIB="ranlib"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 break 2
6845 fi
6846done
cd9a469c 6847 done
6848IFS=$as_save_IFS
18ce903b 6849
6850fi
6851fi
6852ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6853if test -n "$ac_ct_RANLIB"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6855$as_echo "$ac_ct_RANLIB" >&6; }
cd9a469c 6856else
18ce903b 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858$as_echo "no" >&6; }
542f9784 6859fi
cd9a469c 6860
18ce903b 6861 if test "x$ac_ct_RANLIB" = x; then
6862 RANLIB="ranlib-not-found-in-path-error"
6863 else
6864 case $cross_compiling:$ac_tool_warned in
6865yes:)
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6868ac_tool_warned=yes ;;
6869esac
6870 RANLIB=$ac_ct_RANLIB
6871 fi
6872else
6873 RANLIB="$ac_cv_prog_RANLIB"
cd9a469c 6874fi
542f9784 6875
18ce903b 6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6877$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6878set x ${MAKE-make}
6879ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
f00f02a3 6880if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
18ce903b 6881 $as_echo_n "(cached) " >&6
6882else
6883 cat >conftest.make <<\_ACEOF
6884SHELL = /bin/sh
6885all:
6886 @echo '@@@%%%=$(MAKE)=@@@%%%'
6887_ACEOF
f00f02a3 6888# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18ce903b 6889case `${MAKE-make} -f conftest.make 2>/dev/null` in
6890 *@@@%%%=?*=@@@%%%*)
6891 eval ac_cv_prog_make_${ac_make}_set=yes;;
6892 *)
6893 eval ac_cv_prog_make_${ac_make}_set=no;;
6894esac
6895rm -f conftest.make
6896fi
6897if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6899$as_echo "yes" >&6; }
6900 SET_MAKE=
6901else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903$as_echo "no" >&6; }
6904 SET_MAKE="MAKE=${MAKE-make}"
6905fi
542f9784 6906
6907
6908
18ce903b 6909# Configure libtool
6910#AC_MSG_NOTICE([====== Starting libtool configuration])
6911enable_dlopen=yes
542f9784 6912
6913
6914
18ce903b 6915case `pwd` in
6916 *\ * | *\ *)
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6918$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6919esac
542f9784 6920
6921
6922
18ce903b 6923macro_version='2.2.7a'
6924macro_revision='1.3134'
542f9784 6925
6926
6927
6928
6929
6930
6931
6932
cd9a469c 6933
90973b19 6934
90973b19 6935
6936
90973b19 6937
18ce903b 6938ltmain="$ac_aux_dir/ltmain.sh"
542f9784 6939
18ce903b 6940# Backslashify metacharacters that are still active within
6941# double-quoted strings.
6942sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
542f9784 6943
18ce903b 6944# Same as above, but do not quote variable references.
6945double_quote_subst='s/\(["`\\]\)/\\\1/g'
542f9784 6946
18ce903b 6947# Sed substitution to delay expansion of an escaped shell variable in a
6948# double_quote_subst'ed string.
6949delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
542f9784 6950
18ce903b 6951# Sed substitution to delay expansion of an escaped single quote.
6952delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
542f9784 6953
18ce903b 6954# Sed substitution to avoid accidental globbing in evaled expressions
6955no_glob_subst='s/\*/\\\*/g'
542f9784 6956
cd9a469c 6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6958$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
f00f02a3 6959if ${lt_cv_path_NM+:} false; then :
cd9a469c 6960 $as_echo_n "(cached) " >&6
90973b19 6961else
6962 if test -n "$NM"; then
6963 # Let the user override the test.
6964 lt_cv_path_NM="$NM"
6965else
542f9784 6966 lt_nm_to_check="${ac_tool_prefix}nm"
6967 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6968 lt_nm_to_check="$lt_nm_to_check nm"
6969 fi
6970 for lt_tmp_nm in $lt_nm_to_check; do
6971 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6972 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6973 IFS="$lt_save_ifs"
6974 test -z "$ac_dir" && ac_dir=.
6975 tmp_nm="$ac_dir/$lt_tmp_nm"
6976 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6977 # Check to see if the nm accepts a BSD-compat flag.
6978 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6979 # nm: unknown option "B" ignored
6980 # Tru64's nm complains that /dev/null is an invalid object file
6981 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6982 */dev/null* | *'Invalid file or object type'*)
6983 lt_cv_path_NM="$tmp_nm -B"
6984 break
6985 ;;
6986 *)
6987 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6988 */dev/null*)
6989 lt_cv_path_NM="$tmp_nm -p"
6990 break
6991 ;;
6992 *)
6993 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6994 continue # so that we can try to find one that supports BSD flags
6995 ;;
6996 esac
6997 ;;
6998 esac
6999 fi
7000 done
7001 IFS="$lt_save_ifs"
7002 done
7003 : ${lt_cv_path_NM=no}
7004fi
7005fi
cd9a469c 7006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7007$as_echo "$lt_cv_path_NM" >&6; }
542f9784 7008if test "$lt_cv_path_NM" != "no"; then
7009 NM="$lt_cv_path_NM"
7010else
7011 # Didn't find any BSD compatible name lister, look for dumpbin.
e6408286 7012 if test -n "$DUMPBIN"; then :
7013 # Let the user override the test.
7014 else
7015 if test -n "$ac_tool_prefix"; then
7016 for ac_prog in dumpbin "link -dump"
542f9784 7017 do
7018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7019set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7022if ${ac_cv_prog_DUMPBIN+:} false; then :
cd9a469c 7023 $as_echo_n "(cached) " >&6
542f9784 7024else
7025 if test -n "$DUMPBIN"; then
7026 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7027else
7028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029for as_dir in $PATH
7030do
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
cd9a469c 7033 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 7035 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cd9a469c 7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 7037 break 2
7038 fi
7039done
cd9a469c 7040 done
7041IFS=$as_save_IFS
542f9784 7042
7043fi
7044fi
7045DUMPBIN=$ac_cv_prog_DUMPBIN
7046if test -n "$DUMPBIN"; then
cd9a469c 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7048$as_echo "$DUMPBIN" >&6; }
542f9784 7049else
cd9a469c 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051$as_echo "no" >&6; }
542f9784 7052fi
7053
cd9a469c 7054
542f9784 7055 test -n "$DUMPBIN" && break
7056 done
7057fi
7058if test -z "$DUMPBIN"; then
7059 ac_ct_DUMPBIN=$DUMPBIN
e6408286 7060 for ac_prog in dumpbin "link -dump"
542f9784 7061do
7062 # Extract the first word of "$ac_prog", so it can be a program name with args.
7063set dummy $ac_prog; ac_word=$2
cd9a469c 7064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7066if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cd9a469c 7067 $as_echo_n "(cached) " >&6
542f9784 7068else
7069 if test -n "$ac_ct_DUMPBIN"; then
7070 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7071else
7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
cd9a469c 7077 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 7079 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cd9a469c 7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 7081 break 2
7082 fi
7083done
cd9a469c 7084 done
7085IFS=$as_save_IFS
542f9784 7086
7087fi
7088fi
7089ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7090if test -n "$ac_ct_DUMPBIN"; then
cd9a469c 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7092$as_echo "$ac_ct_DUMPBIN" >&6; }
542f9784 7093else
cd9a469c 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095$as_echo "no" >&6; }
542f9784 7096fi
7097
cd9a469c 7098
542f9784 7099 test -n "$ac_ct_DUMPBIN" && break
7100done
542f9784 7101
cd9a469c 7102 if test "x$ac_ct_DUMPBIN" = x; then
7103 DUMPBIN=":"
7104 else
7105 case $cross_compiling:$ac_tool_warned in
7106yes:)
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109ac_tool_warned=yes ;;
7110esac
7111 DUMPBIN=$ac_ct_DUMPBIN
7112 fi
90973b19 7113fi
542f9784 7114
e6408286 7115 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7116 *COFF*)
7117 DUMPBIN="$DUMPBIN -symbols"
7118 ;;
7119 *)
7120 DUMPBIN=:
7121 ;;
7122 esac
7123 fi
542f9784 7124
7125 if test "$DUMPBIN" != ":"; then
7126 NM="$DUMPBIN"
7127 fi
90973b19 7128fi
542f9784 7129test -z "$NM" && NM=nm
7130
7131
90973b19 7132
542f9784 7133
7134
7135
cd9a469c 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7137$as_echo_n "checking the name lister ($NM) interface... " >&6; }
f00f02a3 7138if ${lt_cv_nm_interface+:} false; then :
cd9a469c 7139 $as_echo_n "(cached) " >&6
542f9784 7140else
7141 lt_cv_nm_interface="BSD nm"
7142 echo "int some_variable = 0;" > conftest.$ac_ext
e6408286 7143 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
542f9784 7144 (eval "$ac_compile" 2>conftest.err)
7145 cat conftest.err >&5
e6408286 7146 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
542f9784 7147 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7148 cat conftest.err >&5
e6408286 7149 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
542f9784 7150 cat conftest.out >&5
7151 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7152 lt_cv_nm_interface="MS dumpbin"
7153 fi
7154 rm -f conftest*
7155fi
cd9a469c 7156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7157$as_echo "$lt_cv_nm_interface" >&6; }
90973b19 7158
cd9a469c 7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7160$as_echo_n "checking whether ln -s works... " >&6; }
90973b19 7161LN_S=$as_ln_s
7162if test "$LN_S" = "ln -s"; then
cd9a469c 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7164$as_echo "yes" >&6; }
90973b19 7165else
cd9a469c 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7167$as_echo "no, using $LN_S" >&6; }
90973b19 7168fi
7169
542f9784 7170# find the maximum length of command line arguments
cd9a469c 7171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7172$as_echo_n "checking the maximum length of command line arguments... " >&6; }
f00f02a3 7173if ${lt_cv_sys_max_cmd_len+:} false; then :
cd9a469c 7174 $as_echo_n "(cached) " >&6
542f9784 7175else
7176 i=0
7177 teststring="ABCD"
7178
7179 case $build_os in
7180 msdosdjgpp*)
7181 # On DJGPP, this test can blow up pretty badly due to problems in libc
7182 # (any single argument exceeding 2000 bytes causes a buffer overrun
7183 # during glob expansion). Even if it were fixed, the result of this
7184 # check would be larger than it should be.
7185 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7186 ;;
7187
7188 gnu*)
7189 # Under GNU Hurd, this test is not required because there is
7190 # no limit to the length of command line arguments.
7191 # Libtool will interpret -1 as no limit whatsoever
7192 lt_cv_sys_max_cmd_len=-1;
7193 ;;
7194
00aafda4 7195 cygwin* | mingw* | cegcc*)
542f9784 7196 # On Win9x/ME, this test blows up -- it succeeds, but takes
7197 # about 5 minutes as the teststring grows exponentially.
7198 # Worse, since 9x/ME are not pre-emptively multitasking,
7199 # you end up with a "frozen" computer, even though with patience
7200 # the test eventually succeeds (with a max line length of 256k).
7201 # Instead, let's just punt: use the minimum linelength reported by
7202 # all of the supported platforms: 8192 (on NT/2K/XP).
7203 lt_cv_sys_max_cmd_len=8192;
7204 ;;
7205
e6408286 7206 mint*)
7207 # On MiNT this can take a long time and run out of memory.
7208 lt_cv_sys_max_cmd_len=8192;
7209 ;;
7210
542f9784 7211 amigaos*)
7212 # On AmigaOS with pdksh, this test takes hours, literally.
7213 # So we just punt and use a minimum line length of 8192.
7214 lt_cv_sys_max_cmd_len=8192;
7215 ;;
7216
7217 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7218 # This has been around since 386BSD, at least. Likely further.
7219 if test -x /sbin/sysctl; then
7220 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7221 elif test -x /usr/sbin/sysctl; then
7222 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7223 else
7224 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7225 fi
7226 # And add a safety zone
7227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7229 ;;
7230
7231 interix*)
7232 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7233 lt_cv_sys_max_cmd_len=196608
7234 ;;
7235
7236 osf*)
7237 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7238 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7239 # nice to cause kernel panics so lets avoid the loop below.
7240 # First set a reasonable default.
7241 lt_cv_sys_max_cmd_len=16384
7242 #
7243 if test -x /sbin/sysconfig; then
7244 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7245 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7246 esac
7247 fi
7248 ;;
7249 sco3.2v5*)
7250 lt_cv_sys_max_cmd_len=102400
7251 ;;
7252 sysv5* | sco5v6* | sysv4.2uw2*)
7253 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7254 if test -n "$kargmax"; then
7255 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7256 else
7257 lt_cv_sys_max_cmd_len=32768
7258 fi
7259 ;;
7260 *)
00aafda4 7261 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7262 if test -n "$lt_cv_sys_max_cmd_len"; then
07c46636 7263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7265 else
7266 # Make teststring a little bigger before we do anything with it.
7267 # a 1K string should be a reasonable start.
7268 for i in 1 2 3 4 5 6 7 8 ; do
7269 teststring=$teststring$teststring
7270 done
7271 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7272 # If test is not a shell built-in, we'll probably end up computing a
7273 # maximum length that is only half of the actual maximum length, but
7274 # we can't tell.
e6408286 7275 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7276 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
07c46636 7277 test $i != 17 # 1/2 MB should be enough
7278 do
7279 i=`expr $i + 1`
7280 teststring=$teststring$teststring
7281 done
7282 # Only check the string length outside the loop.
7283 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7284 teststring=
7285 # Add a significant safety factor because C++ compilers can tack on
7286 # massive amounts of additional arguments before passing them to the
7287 # linker. It appears as though 1/2 is a usable value.
7288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7289 fi
542f9784 7290 ;;
7291 esac
7292
7293fi
7294
7295if test -n $lt_cv_sys_max_cmd_len ; then
cd9a469c 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7297$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
542f9784 7298else
cd9a469c 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7300$as_echo "none" >&6; }
542f9784 7301fi
7302max_cmd_len=$lt_cv_sys_max_cmd_len
7303
7304
7305
7306
7307
7308
542f9784 7309: ${CP="cp -f"}
7310: ${MV="mv -f"}
7311: ${RM="rm -f"}
7312
cd9a469c 7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7314$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
542f9784 7315# Try some XSI features
7316xsi_shell=no
7317( _lt_dummy="a/b/c"
7318 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
00aafda4 7319 = c,a/b,, \
7320 && eval 'test $(( 1 + 1 )) -eq 2 \
7321 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
542f9784 7322 && xsi_shell=yes
cd9a469c 7323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7324$as_echo "$xsi_shell" >&6; }
542f9784 7325
7326
cd9a469c 7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7328$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
542f9784 7329lt_shell_append=no
7330( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7331 >/dev/null 2>&1 \
7332 && lt_shell_append=yes
cd9a469c 7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7334$as_echo "$lt_shell_append" >&6; }
542f9784 7335
7336
7337if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7338 lt_unset=unset
7339else
7340 lt_unset=false
7341fi
7342
7343
7344
7345
7346
7347# test EBCDIC or ASCII
7348case `echo X|tr X '\101'` in
7349 A) # ASCII based system
7350 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7351 lt_SP2NL='tr \040 \012'
7352 lt_NL2SP='tr \015\012 \040\040'
7353 ;;
7354 *) # EBCDIC based system
7355 lt_SP2NL='tr \100 \n'
7356 lt_NL2SP='tr \r\n \100\100'
7357 ;;
7358esac
7359
7360
7361
7362
7363
7364
7365
7366
7367
cd9a469c 7368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7369$as_echo_n "checking for $LD option to reload object files... " >&6; }
f00f02a3 7370if ${lt_cv_ld_reload_flag+:} false; then :
cd9a469c 7371 $as_echo_n "(cached) " >&6
542f9784 7372else
7373 lt_cv_ld_reload_flag='-r'
7374fi
cd9a469c 7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7376$as_echo "$lt_cv_ld_reload_flag" >&6; }
542f9784 7377reload_flag=$lt_cv_ld_reload_flag
7378case $reload_flag in
7379"" | " "*) ;;
7380*) reload_flag=" $reload_flag" ;;
7381esac
7382reload_cmds='$LD$reload_flag -o $output$reload_objs'
7383case $host_os in
7384 darwin*)
7385 if test "$GCC" = yes; then
7386 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7387 else
7388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7389 fi
7390 ;;
7391esac
7392
7393
7394
7395
7396
7397
7398
7399
7400
00aafda4 7401if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7403set dummy ${ac_tool_prefix}objdump; ac_word=$2
cd9a469c 7404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7406if ${ac_cv_prog_OBJDUMP+:} false; then :
cd9a469c 7407 $as_echo_n "(cached) " >&6
00aafda4 7408else
7409 if test -n "$OBJDUMP"; then
7410 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7411else
7412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413for as_dir in $PATH
7414do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
cd9a469c 7417 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
00aafda4 7419 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cd9a469c 7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 7421 break 2
7422 fi
7423done
cd9a469c 7424 done
7425IFS=$as_save_IFS
00aafda4 7426
7427fi
7428fi
7429OBJDUMP=$ac_cv_prog_OBJDUMP
7430if test -n "$OBJDUMP"; then
cd9a469c 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7432$as_echo "$OBJDUMP" >&6; }
00aafda4 7433else
cd9a469c 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435$as_echo "no" >&6; }
00aafda4 7436fi
7437
cd9a469c 7438
00aafda4 7439fi
7440if test -z "$ac_cv_prog_OBJDUMP"; then
7441 ac_ct_OBJDUMP=$OBJDUMP
7442 # Extract the first word of "objdump", so it can be a program name with args.
7443set dummy objdump; ac_word=$2
cd9a469c 7444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7446if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cd9a469c 7447 $as_echo_n "(cached) " >&6
00aafda4 7448else
7449 if test -n "$ac_ct_OBJDUMP"; then
7450 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7451else
7452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453for as_dir in $PATH
7454do
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
cd9a469c 7457 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
00aafda4 7459 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cd9a469c 7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 7461 break 2
7462 fi
7463done
cd9a469c 7464 done
7465IFS=$as_save_IFS
00aafda4 7466
00aafda4 7467fi
7468fi
7469ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7470if test -n "$ac_ct_OBJDUMP"; then
cd9a469c 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7472$as_echo "$ac_ct_OBJDUMP" >&6; }
00aafda4 7473else
cd9a469c 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475$as_echo "no" >&6; }
00aafda4 7476fi
7477
cd9a469c 7478 if test "x$ac_ct_OBJDUMP" = x; then
7479 OBJDUMP="false"
7480 else
7481 case $cross_compiling:$ac_tool_warned in
7482yes:)
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485ac_tool_warned=yes ;;
7486esac
7487 OBJDUMP=$ac_ct_OBJDUMP
7488 fi
00aafda4 7489else
7490 OBJDUMP="$ac_cv_prog_OBJDUMP"
7491fi
7492
7493test -z "$OBJDUMP" && OBJDUMP=objdump
7494
7495
7496
7497
7498
7499
7500
7501
542f9784 7502
cd9a469c 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7504$as_echo_n "checking how to recognize dependent libraries... " >&6; }
f00f02a3 7505if ${lt_cv_deplibs_check_method+:} false; then :
cd9a469c 7506 $as_echo_n "(cached) " >&6
90973b19 7507else
7508 lt_cv_file_magic_cmd='$MAGIC_CMD'
7509lt_cv_file_magic_test_file=
7510lt_cv_deplibs_check_method='unknown'
7511# Need to set the preceding variable on all platforms that support
7512# interlibrary dependencies.
7513# 'none' -- dependencies not supported.
7514# `unknown' -- same as none, but documents that we really don't know.
7515# 'pass_all' -- all dependencies passed with no checks.
7516# 'test_compile' -- check by making test program.
542f9784 7517# 'file_magic [[regex]]' -- check by looking for files in library path
7518# which responds to the $file_magic_cmd with a given extended regex.
90973b19 7519# If you have `file' or equivalent on your system and you're not sure
7520# whether `pass_all' will *always* work, you probably want this one.
7521
7522case $host_os in
21e07d2f 7523aix[4-9]*)
90973b19 7524 lt_cv_deplibs_check_method=pass_all
7525 ;;
7526
7527beos*)
7528 lt_cv_deplibs_check_method=pass_all
7529 ;;
7530
542f9784 7531bsdi[45]*)
90973b19 7532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7533 lt_cv_file_magic_cmd='/usr/bin/file -L'
7534 lt_cv_file_magic_test_file=/shlib/libc.so
7535 ;;
7536
542f9784 7537cygwin*)
7538 # func_win32_libid is a shell function defined in ltmain.sh
7539 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7540 lt_cv_file_magic_cmd='func_win32_libid'
7541 ;;
7542
7543mingw* | pw32*)
7544 # Base MSYS/MinGW do not provide the 'file' command needed by
7545 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7546 # unless we find 'file', for example because we are cross-compiling.
e6408286 7547 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7548 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
542f9784 7549 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7550 lt_cv_file_magic_cmd='func_win32_libid'
7551 else
7552 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7553 lt_cv_file_magic_cmd='$OBJDUMP -f'
7554 fi
90973b19 7555 ;;
7556
e6408286 7557cegcc*)
00aafda4 7558 # use the weaker test based on 'objdump'. See mingw*.
7559 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7560 lt_cv_file_magic_cmd='$OBJDUMP -f'
7561 ;;
7562
90973b19 7563darwin* | rhapsody*)
90973b19 7564 lt_cv_deplibs_check_method=pass_all
7565 ;;
7566
542f9784 7567freebsd* | dragonfly*)
7568 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
90973b19 7569 case $host_cpu in
7570 i*86 )
7571 # Not sure whether the presence of OpenBSD here was a mistake.
7572 # Let's accept both of them until this is cleared up.
542f9784 7573 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
90973b19 7574 lt_cv_file_magic_cmd=/usr/bin/file
7575 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7576 ;;
7577 esac
7578 else
7579 lt_cv_deplibs_check_method=pass_all
7580 fi
7581 ;;
7582
7583gnu*)
7584 lt_cv_deplibs_check_method=pass_all
7585 ;;
7586
e6408286 7587haiku*)
7588 lt_cv_deplibs_check_method=pass_all
7589 ;;
7590
542f9784 7591hpux10.20* | hpux11*)
7592 lt_cv_file_magic_cmd=/usr/bin/file
90973b19 7593 case $host_cpu in
90973b19 7594 ia64*)
7595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
90973b19 7596 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7597 ;;
542f9784 7598 hppa*64*)
e6408286 7599 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 7600 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
90973b19 7601 ;;
7602 *)
e6408286 7603 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
542f9784 7604 lt_cv_file_magic_test_file=/usr/lib/libc.sl
90973b19 7605 ;;
7606 esac
542f9784 7607 ;;
7608
7609interix[3-9]*)
7610 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7612 ;;
7613
7614irix5* | irix6* | nonstopux*)
7615 case $LD in
7616 *-32|*"-32 ") libmagic=32-bit;;
7617 *-n32|*"-n32 ") libmagic=N32;;
7618 *-64|*"-64 ") libmagic=64-bit;;
7619 *) libmagic=never-match;;
7620 esac
90973b19 7621 lt_cv_deplibs_check_method=pass_all
7622 ;;
7623
7624# This must be Linux ELF.
9af964d4 7625linux* | k*bsd*-gnu | kopensolaris*-gnu)
7f93fe7a 7626 lt_cv_deplibs_check_method=pass_all
90973b19 7627 ;;
7628
542f9784 7629netbsd*)
7630 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
90973b19 7632 else
542f9784 7633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
90973b19 7634 fi
7635 ;;
7636
542f9784 7637newos6*)
90973b19 7638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7639 lt_cv_file_magic_cmd=/usr/bin/file
7640 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7641 ;;
7642
542f9784 7643*nto* | *qnx*)
7644 lt_cv_deplibs_check_method=pass_all
7645 ;;
7646
7647openbsd*)
7648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7650 else
7651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7652 fi
7653 ;;
7654
90973b19 7655osf3* | osf4* | osf5*)
90973b19 7656 lt_cv_deplibs_check_method=pass_all
7657 ;;
7658
542f9784 7659rdos*)
90973b19 7660 lt_cv_deplibs_check_method=pass_all
7661 ;;
7662
7663solaris*)
7664 lt_cv_deplibs_check_method=pass_all
90973b19 7665 ;;
7666
542f9784 7667sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
90973b19 7668 lt_cv_deplibs_check_method=pass_all
7669 ;;
7670
542f9784 7671sysv4 | sysv4.3*)
90973b19 7672 case $host_vendor in
90973b19 7673 motorola)
7674 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]'
7675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7676 ;;
542f9784 7677 ncr)
7678 lt_cv_deplibs_check_method=pass_all
7679 ;;
7680 sequent)
7681 lt_cv_file_magic_cmd='/bin/file'
7682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7683 ;;
7684 sni)
7685 lt_cv_file_magic_cmd='/bin/file'
7686 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7687 lt_cv_file_magic_test_file=/lib/libc.so
7688 ;;
7689 siemens)
7690 lt_cv_deplibs_check_method=pass_all
7691 ;;
7692 pc)
7693 lt_cv_deplibs_check_method=pass_all
7694 ;;
90973b19 7695 esac
7696 ;;
542f9784 7697
7698tpf*)
7699 lt_cv_deplibs_check_method=pass_all
7700 ;;
90973b19 7701esac
7702
7703fi
cd9a469c 7704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7705$as_echo "$lt_cv_deplibs_check_method" >&6; }
90973b19 7706file_magic_cmd=$lt_cv_file_magic_cmd
7707deplibs_check_method=$lt_cv_deplibs_check_method
542f9784 7708test -z "$deplibs_check_method" && deplibs_check_method=unknown
90973b19 7709
7710
7711
7712
90973b19 7713
90973b19 7714
90973b19 7715
90973b19 7716
4ee9c684 7717
4ee9c684 7718
4ee9c684 7719
4ee9c684 7720
90973b19 7721if test -n "$ac_tool_prefix"; then
542f9784 7722 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7723set dummy ${ac_tool_prefix}ar; ac_word=$2
cd9a469c 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7726if ${ac_cv_prog_AR+:} false; then :
cd9a469c 7727 $as_echo_n "(cached) " >&6
4ee9c684 7728else
542f9784 7729 if test -n "$AR"; then
7730 ac_cv_prog_AR="$AR" # Let the user override the test.
90973b19 7731else
7732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733for as_dir in $PATH
7734do
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
cd9a469c 7737 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 7739 ac_cv_prog_AR="${ac_tool_prefix}ar"
cd9a469c 7740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7741 break 2
7742 fi
7743done
cd9a469c 7744 done
7745IFS=$as_save_IFS
4ee9c684 7746
90973b19 7747fi
7748fi
542f9784 7749AR=$ac_cv_prog_AR
7750if test -n "$AR"; then
cd9a469c 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7752$as_echo "$AR" >&6; }
90973b19 7753else
cd9a469c 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755$as_echo "no" >&6; }
4ee9c684 7756fi
7757
cd9a469c 7758
90973b19 7759fi
542f9784 7760if test -z "$ac_cv_prog_AR"; then
7761 ac_ct_AR=$AR
7762 # Extract the first word of "ar", so it can be a program name with args.
7763set dummy ar; ac_word=$2
cd9a469c 7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7766if ${ac_cv_prog_ac_ct_AR+:} false; then :
cd9a469c 7767 $as_echo_n "(cached) " >&6
90973b19 7768else
542f9784 7769 if test -n "$ac_ct_AR"; then
7770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
90973b19 7771else
7772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
cd9a469c 7777 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 7779 ac_cv_prog_ac_ct_AR="ar"
cd9a469c 7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7781 break 2
7782 fi
7783done
cd9a469c 7784 done
7785IFS=$as_save_IFS
4ee9c684 7786
90973b19 7787fi
7788fi
542f9784 7789ac_ct_AR=$ac_cv_prog_ac_ct_AR
7790if test -n "$ac_ct_AR"; then
cd9a469c 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7792$as_echo "$ac_ct_AR" >&6; }
4ee9c684 7793else
cd9a469c 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795$as_echo "no" >&6; }
4ee9c684 7796fi
4ee9c684 7797
cd9a469c 7798 if test "x$ac_ct_AR" = x; then
7799 AR="false"
7800 else
7801 case $cross_compiling:$ac_tool_warned in
7802yes:)
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7805ac_tool_warned=yes ;;
7806esac
7807 AR=$ac_ct_AR
7808 fi
90973b19 7809else
542f9784 7810 AR="$ac_cv_prog_AR"
4ee9c684 7811fi
7812
542f9784 7813test -z "$AR" && AR=ar
7814test -z "$AR_FLAGS" && AR_FLAGS=cru
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
90973b19 7826if test -n "$ac_tool_prefix"; then
7827 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7828set dummy ${ac_tool_prefix}strip; ac_word=$2
cd9a469c 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7831if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 7832 $as_echo_n "(cached) " >&6
4ee9c684 7833else
90973b19 7834 if test -n "$STRIP"; then
7835 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7836else
7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
cd9a469c 7842 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 7844 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cd9a469c 7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7846 break 2
7847 fi
7848done
cd9a469c 7849 done
7850IFS=$as_save_IFS
4ee9c684 7851
90973b19 7852fi
7853fi
7854STRIP=$ac_cv_prog_STRIP
7855if test -n "$STRIP"; then
cd9a469c 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7857$as_echo "$STRIP" >&6; }
4ee9c684 7858else
cd9a469c 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860$as_echo "no" >&6; }
90973b19 7861fi
4ee9c684 7862
cd9a469c 7863
4ee9c684 7864fi
90973b19 7865if test -z "$ac_cv_prog_STRIP"; then
7866 ac_ct_STRIP=$STRIP
7867 # Extract the first word of "strip", so it can be a program name with args.
7868set dummy strip; ac_word=$2
cd9a469c 7869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7871if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cd9a469c 7872 $as_echo_n "(cached) " >&6
90973b19 7873else
7874 if test -n "$ac_ct_STRIP"; then
7875 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7876else
7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
cd9a469c 7882 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 7884 ac_cv_prog_ac_ct_STRIP="strip"
cd9a469c 7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7886 break 2
7887 fi
7888done
cd9a469c 7889 done
7890IFS=$as_save_IFS
90973b19 7891
4ee9c684 7892fi
7893fi
90973b19 7894ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7895if test -n "$ac_ct_STRIP"; then
cd9a469c 7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7897$as_echo "$ac_ct_STRIP" >&6; }
90973b19 7898else
cd9a469c 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900$as_echo "no" >&6; }
4ee9c684 7901fi
4ee9c684 7902
cd9a469c 7903 if test "x$ac_ct_STRIP" = x; then
7904 STRIP=":"
7905 else
7906 case $cross_compiling:$ac_tool_warned in
7907yes:)
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7910ac_tool_warned=yes ;;
7911esac
7912 STRIP=$ac_ct_STRIP
7913 fi
90973b19 7914else
7915 STRIP="$ac_cv_prog_STRIP"
4ee9c684 7916fi
7917
542f9784 7918test -z "$STRIP" && STRIP=:
4ee9c684 7919
7920
7921
7922
7923
7924
542f9784 7925if test -n "$ac_tool_prefix"; then
7926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7927set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cd9a469c 7928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7930if ${ac_cv_prog_RANLIB+:} false; then :
cd9a469c 7931 $as_echo_n "(cached) " >&6
4ee9c684 7932else
542f9784 7933 if test -n "$RANLIB"; then
7934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7935else
7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937for as_dir in $PATH
7938do
7939 IFS=$as_save_IFS
7940 test -z "$as_dir" && as_dir=.
cd9a469c 7941 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 7943 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cd9a469c 7944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 7945 break 2
7946 fi
7947done
cd9a469c 7948 done
7949IFS=$as_save_IFS
542f9784 7950
7951fi
7952fi
7953RANLIB=$ac_cv_prog_RANLIB
7954if test -n "$RANLIB"; then
cd9a469c 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7956$as_echo "$RANLIB" >&6; }
542f9784 7957else
cd9a469c 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959$as_echo "no" >&6; }
542f9784 7960fi
7961
cd9a469c 7962
542f9784 7963fi
7964if test -z "$ac_cv_prog_RANLIB"; then
7965 ac_ct_RANLIB=$RANLIB
7966 # Extract the first word of "ranlib", so it can be a program name with args.
7967set dummy ranlib; ac_word=$2
cd9a469c 7968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7970if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cd9a469c 7971 $as_echo_n "(cached) " >&6
542f9784 7972else
7973 if test -n "$ac_ct_RANLIB"; then
7974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7975else
7976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977for as_dir in $PATH
7978do
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
cd9a469c 7981 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 7983 ac_cv_prog_ac_ct_RANLIB="ranlib"
cd9a469c 7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 7985 break 2
7986 fi
7987done
cd9a469c 7988 done
7989IFS=$as_save_IFS
542f9784 7990
542f9784 7991fi
7992fi
7993ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7994if test -n "$ac_ct_RANLIB"; then
cd9a469c 7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7996$as_echo "$ac_ct_RANLIB" >&6; }
542f9784 7997else
cd9a469c 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999$as_echo "no" >&6; }
542f9784 8000fi
8001
cd9a469c 8002 if test "x$ac_ct_RANLIB" = x; then
8003 RANLIB=":"
8004 else
8005 case $cross_compiling:$ac_tool_warned in
8006yes:)
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8009ac_tool_warned=yes ;;
8010esac
8011 RANLIB=$ac_ct_RANLIB
8012 fi
542f9784 8013else
8014 RANLIB="$ac_cv_prog_RANLIB"
8015fi
8016
8017test -z "$RANLIB" && RANLIB=:
8018
8019
8020
8021
8022
8023
8024# Determine commands to create old-style static archives.
00aafda4 8025old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
542f9784 8026old_postinstall_cmds='chmod 644 $oldlib'
8027old_postuninstall_cmds=
8028
8029if test -n "$RANLIB"; then
8030 case $host_os in
8031 openbsd*)
8032 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8033 ;;
8034 *)
8035 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8036 ;;
8037 esac
8038 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8039fi
8040
e6408286 8041case $host_os in
8042 darwin*)
8043 lock_old_archive_extraction=yes ;;
8044 *)
8045 lock_old_archive_extraction=no ;;
8046esac
8047
8048
8049
8050
8051
8052
542f9784 8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086# If no C compiler was specified, use CC.
8087LTCC=${LTCC-"$CC"}
8088
8089# If no C compiler flags were specified, use CFLAGS.
8090LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8091
8092# Allow CC to be a program name with arguments.
8093compiler=$CC
8094
8095
8096# Check for command to grab the raw symbol name followed by C symbol from nm.
cd9a469c 8097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8098$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
f00f02a3 8099if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cd9a469c 8100 $as_echo_n "(cached) " >&6
542f9784 8101else
8102
8103# These are sane defaults that work on at least a few old systems.
8104# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8105
8106# Character class describing NM global symbol codes.
8107symcode='[BCDEGRST]'
8108
8109# Regexp to match symbols that can be accessed directly from C.
8110sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8111
8112# Define system-specific variables.
8113case $host_os in
8114aix*)
8115 symcode='[BCDT]'
8116 ;;
00aafda4 8117cygwin* | mingw* | pw32* | cegcc*)
542f9784 8118 symcode='[ABCDGISTW]'
8119 ;;
8120hpux*)
8121 if test "$host_cpu" = ia64; then
8122 symcode='[ABCDEGRST]'
8123 fi
8124 ;;
8125irix* | nonstopux*)
8126 symcode='[BCDEGRST]'
8127 ;;
8128osf*)
8129 symcode='[BCDEGQRST]'
8130 ;;
8131solaris*)
8132 symcode='[BDRT]'
8133 ;;
8134sco3.2v5*)
8135 symcode='[DT]'
8136 ;;
8137sysv4.2uw2*)
8138 symcode='[DT]'
8139 ;;
8140sysv5* | sco5v6* | unixware* | OpenUNIX*)
8141 symcode='[ABDT]'
8142 ;;
8143sysv4)
8144 symcode='[DFNSTU]'
8145 ;;
8146esac
8147
8148# If we're using GNU nm, then use its standard symbol codes.
8149case `$NM -V 2>&1` in
8150*GNU* | *'with BFD'*)
8151 symcode='[ABCDGIRSTW]' ;;
8152esac
8153
8154# Transform an extracted symbol line into a proper C declaration.
8155# Some systems (esp. on ia64) link data and code symbols differently,
8156# so use this general approach.
8157lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8158
8159# Transform an extracted symbol line into symbol name and symbol address
8160lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
00aafda4 8161lt_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 8162
8163# Handle CRLF in mingw tool chain
8164opt_cr=
8165case $build_os in
8166mingw*)
8167 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8168 ;;
8169esac
8170
8171# Try without a prefix underscore, then with it.
8172for ac_symprfx in "" "_"; do
8173
8174 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8175 symxfrm="\\1 $ac_symprfx\\2 \\2"
8176
8177 # Write the raw and C identifiers.
8178 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8179 # Fake it for dumpbin and say T for any non-static function
8180 # and D for any global variable.
8181 # Also find C++ and __fastcall symbols from MSVC++,
8182 # which start with @ or ?.
8183 lt_cv_sys_global_symbol_pipe="$AWK '"\
8184" {last_section=section; section=\$ 3};"\
8185" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8186" \$ 0!~/External *\|/{next};"\
8187" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8188" {if(hide[section]) next};"\
8189" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8190" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8191" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8192" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8193" ' prfx=^$ac_symprfx"
8194 else
8195 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8196 fi
8197
8198 # Check to see that the pipe works correctly.
8199 pipe_works=no
8200
8201 rm -f conftest*
8202 cat > conftest.$ac_ext <<_LT_EOF
8203#ifdef __cplusplus
8204extern "C" {
8205#endif
8206char nm_test_var;
8207void nm_test_func(void);
8208void nm_test_func(void){}
8209#ifdef __cplusplus
8210}
8211#endif
8212int main(){nm_test_var='a';nm_test_func();return(0);}
8213_LT_EOF
8214
cd9a469c 8215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 8216 (eval $ac_compile) 2>&5
8217 ac_status=$?
cd9a469c 8218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8219 test $ac_status = 0; }; then
542f9784 8220 # Now try to grab the symbols.
8221 nlist=conftest.nm
e6408286 8222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8223 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
542f9784 8224 ac_status=$?
cd9a469c 8225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8226 test $ac_status = 0; } && test -s "$nlist"; then
542f9784 8227 # Try sorting and uniquifying the output.
8228 if sort "$nlist" | uniq > "$nlist"T; then
8229 mv -f "$nlist"T "$nlist"
8230 else
8231 rm -f "$nlist"T
8232 fi
8233
8234 # Make sure that we snagged all the symbols we need.
8235 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8236 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8237 cat <<_LT_EOF > conftest.$ac_ext
8238#ifdef __cplusplus
8239extern "C" {
8240#endif
8241
8242_LT_EOF
8243 # Now generate the symbol file.
8244 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8245
8246 cat <<_LT_EOF >> conftest.$ac_ext
8247
8248/* The mapping between symbol names and symbols. */
8249const struct {
8250 const char *name;
8251 void *address;
8252}
8253lt__PROGRAM__LTX_preloaded_symbols[] =
8254{
8255 { "@PROGRAM@", (void *) 0 },
8256_LT_EOF
8257 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8258 cat <<\_LT_EOF >> conftest.$ac_ext
8259 {0, (void *) 0}
8260};
8261
8262/* This works around a problem in FreeBSD linker */
8263#ifdef FREEBSD_WORKAROUND
8264static const void *lt_preloaded_setup() {
8265 return lt__PROGRAM__LTX_preloaded_symbols;
8266}
8267#endif
8268
8269#ifdef __cplusplus
8270}
8271#endif
8272_LT_EOF
8273 # Now try linking the two files.
8274 mv conftest.$ac_objext conftstm.$ac_objext
8275 lt_save_LIBS="$LIBS"
8276 lt_save_CFLAGS="$CFLAGS"
8277 LIBS="conftstm.$ac_objext"
8278 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cd9a469c 8279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 8280 (eval $ac_link) 2>&5
8281 ac_status=$?
cd9a469c 8282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8283 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
542f9784 8284 pipe_works=yes
8285 fi
8286 LIBS="$lt_save_LIBS"
8287 CFLAGS="$lt_save_CFLAGS"
8288 else
8289 echo "cannot find nm_test_func in $nlist" >&5
8290 fi
8291 else
8292 echo "cannot find nm_test_var in $nlist" >&5
8293 fi
8294 else
8295 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8296 fi
8297 else
8298 echo "$progname: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8300 fi
00aafda4 8301 rm -rf conftest* conftst*
542f9784 8302
8303 # Do not use the global_symbol_pipe unless it works.
8304 if test "$pipe_works" = yes; then
8305 break
8306 else
8307 lt_cv_sys_global_symbol_pipe=
8308 fi
8309done
8310
8311fi
8312
8313if test -z "$lt_cv_sys_global_symbol_pipe"; then
8314 lt_cv_sys_global_symbol_to_cdecl=
8315fi
8316if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cd9a469c 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8318$as_echo "failed" >&6; }
542f9784 8319else
cd9a469c 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8321$as_echo "ok" >&6; }
542f9784 8322fi
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
00aafda4 8338
8339
8340
8341
8342
542f9784 8343
8344
cd9a469c 8345# Check whether --enable-libtool-lock was given.
8346if test "${enable_libtool_lock+set}" = set; then :
8347 enableval=$enable_libtool_lock;
8348fi
542f9784 8349
542f9784 8350test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4ee9c684 8351
90973b19 8352# Some flags need to be propagated to the compiler or linker for good
8353# libtool support.
8354case $host in
542f9784 8355ia64-*-hpux*)
90973b19 8356 # Find out which ABI we are using.
542f9784 8357 echo 'int i;' > conftest.$ac_ext
cd9a469c 8358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
90973b19 8359 (eval $ac_compile) 2>&5
4ee9c684 8360 ac_status=$?
cd9a469c 8361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8362 test $ac_status = 0; }; then
90973b19 8363 case `/usr/bin/file conftest.$ac_objext` in
542f9784 8364 *ELF-32*)
8365 HPUX_IA64_MODE="32"
8366 ;;
8367 *ELF-64*)
8368 HPUX_IA64_MODE="64"
8369 ;;
90973b19 8370 esac
90973b19 8371 fi
8372 rm -rf conftest*
8373 ;;
542f9784 8374*-*-irix6*)
90973b19 8375 # Find out which ABI we are using.
e6408286 8376 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cd9a469c 8377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
90973b19 8378 (eval $ac_compile) 2>&5
4ee9c684 8379 ac_status=$?
cd9a469c 8380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8381 test $ac_status = 0; }; then
542f9784 8382 if test "$lt_cv_prog_gnu_ld" = yes; then
8383 case `/usr/bin/file conftest.$ac_objext` in
8384 *32-bit*)
8385 LD="${LD-ld} -melf32bsmip"
8386 ;;
8387 *N32*)
8388 LD="${LD-ld} -melf32bmipn32"
8389 ;;
8390 *64-bit*)
8391 LD="${LD-ld} -melf64bmip"
8392 ;;
8393 esac
8394 else
8395 case `/usr/bin/file conftest.$ac_objext` in
8396 *32-bit*)
8397 LD="${LD-ld} -32"
8398 ;;
8399 *N32*)
8400 LD="${LD-ld} -n32"
8401 ;;
8402 *64-bit*)
8403 LD="${LD-ld} -64"
8404 ;;
8405 esac
8406 fi
90973b19 8407 fi
8408 rm -rf conftest*
8409 ;;
4ee9c684 8410
9613c003 8411x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
542f9784 8412s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
90973b19 8413 # Find out which ABI we are using.
8414 echo 'int i;' > conftest.$ac_ext
cd9a469c 8415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
90973b19 8416 (eval $ac_compile) 2>&5
4ee9c684 8417 ac_status=$?
cd9a469c 8418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8419 test $ac_status = 0; }; then
542f9784 8420 case `/usr/bin/file conftest.o` in
8421 *32-bit*)
8422 case $host in
8423 x86_64-*kfreebsd*-gnu)
8424 LD="${LD-ld} -m elf_i386_fbsd"
8425 ;;
8426 x86_64-*linux*)
b4b3bbba 8427 case `/usr/bin/file conftest.o` in
8428 *x86-64*)
8429 LD="${LD-ld} -m elf32_x86_64"
8430 ;;
8431 *)
8432 LD="${LD-ld} -m elf_i386"
8433 ;;
8434 esac
542f9784 8435 ;;
9613c003 8436 powerpc64le-*linux*)
8437 LD="${LD-ld} -m elf32lppclinux"
8438 ;;
8439 powerpc64-*linux*)
542f9784 8440 LD="${LD-ld} -m elf32ppclinux"
8441 ;;
8442 s390x-*linux*)
8443 LD="${LD-ld} -m elf_s390"
8444 ;;
8445 sparc64-*linux*)
8446 LD="${LD-ld} -m elf32_sparc"
8447 ;;
8448 esac
8449 ;;
8450 *64-bit*)
8451 case $host in
8452 x86_64-*kfreebsd*-gnu)
8453 LD="${LD-ld} -m elf_x86_64_fbsd"
8454 ;;
8455 x86_64-*linux*)
8456 LD="${LD-ld} -m elf_x86_64"
8457 ;;
9613c003 8458 powerpcle-*linux*)
8459 LD="${LD-ld} -m elf64lppc"
8460 ;;
8461 powerpc-*linux*)
542f9784 8462 LD="${LD-ld} -m elf64ppc"
8463 ;;
8464 s390*-*linux*|s390*-*tpf*)
8465 LD="${LD-ld} -m elf64_s390"
8466 ;;
8467 sparc*-*linux*)
8468 LD="${LD-ld} -m elf64_sparc"
8469 ;;
8470 esac
8471 ;;
90973b19 8472 esac
4ee9c684 8473 fi
90973b19 8474 rm -rf conftest*
8475 ;;
4ee9c684 8476
90973b19 8477*-*-sco3.2v5*)
8478 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8479 SAVE_CFLAGS="$CFLAGS"
8480 CFLAGS="$CFLAGS -belf"
cd9a469c 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8482$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
f00f02a3 8483if ${lt_cv_cc_needs_belf+:} false; then :
cd9a469c 8484 $as_echo_n "(cached) " >&6
4ee9c684 8485else
542f9784 8486 ac_ext=c
90973b19 8487ac_cpp='$CPP $CPPFLAGS'
8488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8490ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ee9c684 8491
b52ee437 8492 if test x$gcc_no_link = xyes; then
f00f02a3 8493 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 8494fi
cd9a469c 8495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 8496/* end confdefs.h. */
4ee9c684 8497
8498int
8499main ()
8500{
90973b19 8501
4ee9c684 8502 ;
8503 return 0;
8504}
8505_ACEOF
cd9a469c 8506if ac_fn_c_try_link "$LINENO"; then :
90973b19 8507 lt_cv_cc_needs_belf=yes
4ee9c684 8508else
cd9a469c 8509 lt_cv_cc_needs_belf=no
4ee9c684 8510fi
cd9a469c 8511rm -f core conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
90973b19 8513 ac_ext=c
8514ac_cpp='$CPP $CPPFLAGS'
8515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8517ac_compiler_gnu=$ac_cv_c_compiler_gnu
8518
4ee9c684 8519fi
cd9a469c 8520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8521$as_echo "$lt_cv_cc_needs_belf" >&6; }
90973b19 8522 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8523 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8524 CFLAGS="$SAVE_CFLAGS"
8525 fi
8526 ;;
542f9784 8527sparc*-*solaris*)
8528 # Find out which ABI we are using.
8529 echo 'int i;' > conftest.$ac_ext
cd9a469c 8530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 8531 (eval $ac_compile) 2>&5
8532 ac_status=$?
cd9a469c 8533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8534 test $ac_status = 0; }; then
542f9784 8535 case `/usr/bin/file conftest.o` in
8536 *64-bit*)
8537 case $lt_cv_prog_gnu_ld in
8538 yes*) LD="${LD-ld} -m elf64_sparc" ;;
00aafda4 8539 *)
8540 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8541 LD="${LD-ld} -64"
8542 fi
8543 ;;
542f9784 8544 esac
8545 ;;
8546 esac
8547 fi
8548 rm -rf conftest*
8549 ;;
90973b19 8550esac
8551
542f9784 8552need_locks="$enable_libtool_lock"
90973b19 8553
00aafda4 8554
8555 case $host_os in
8556 rhapsody* | darwin*)
8557 if test -n "$ac_tool_prefix"; then
8558 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8559set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cd9a469c 8560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8562if ${ac_cv_prog_DSYMUTIL+:} false; then :
cd9a469c 8563 $as_echo_n "(cached) " >&6
00aafda4 8564else
8565 if test -n "$DSYMUTIL"; then
8566 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8567else
8568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $PATH
8570do
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
cd9a469c 8573 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
00aafda4 8575 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cd9a469c 8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8577 break 2
8578 fi
8579done
cd9a469c 8580 done
8581IFS=$as_save_IFS
00aafda4 8582
8583fi
8584fi
8585DSYMUTIL=$ac_cv_prog_DSYMUTIL
8586if test -n "$DSYMUTIL"; then
cd9a469c 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8588$as_echo "$DSYMUTIL" >&6; }
00aafda4 8589else
cd9a469c 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591$as_echo "no" >&6; }
00aafda4 8592fi
8593
cd9a469c 8594
00aafda4 8595fi
8596if test -z "$ac_cv_prog_DSYMUTIL"; then
8597 ac_ct_DSYMUTIL=$DSYMUTIL
8598 # Extract the first word of "dsymutil", so it can be a program name with args.
8599set dummy dsymutil; ac_word=$2
cd9a469c 8600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8602if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cd9a469c 8603 $as_echo_n "(cached) " >&6
00aafda4 8604else
d5d92632 8605 if test -n "$ac_ct_DSYMUTIL"; then
8606 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
00aafda4 8607else
8608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609for as_dir in $PATH
8610do
8611 IFS=$as_save_IFS
8612 test -z "$as_dir" && as_dir=.
cd9a469c 8613 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8615 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cd9a469c 8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8617 break 2
8618 fi
8619done
cd9a469c 8620 done
8621IFS=$as_save_IFS
00aafda4 8622
00aafda4 8623fi
8624fi
d5d92632 8625ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8626if test -n "$ac_ct_DSYMUTIL"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8628$as_echo "$ac_ct_DSYMUTIL" >&6; }
00aafda4 8629else
cd9a469c 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631$as_echo "no" >&6; }
00aafda4 8632fi
8633
d5d92632 8634 if test "x$ac_ct_DSYMUTIL" = x; then
8635 DSYMUTIL=":"
cd9a469c 8636 else
8637 case $cross_compiling:$ac_tool_warned in
8638yes:)
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8641ac_tool_warned=yes ;;
8642esac
d5d92632 8643 DSYMUTIL=$ac_ct_DSYMUTIL
cd9a469c 8644 fi
00aafda4 8645else
d5d92632 8646 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
00aafda4 8647fi
8648
8649 if test -n "$ac_tool_prefix"; then
d5d92632 8650 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8651set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cd9a469c 8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8654if ${ac_cv_prog_NMEDIT+:} false; then :
cd9a469c 8655 $as_echo_n "(cached) " >&6
00aafda4 8656else
d5d92632 8657 if test -n "$NMEDIT"; then
8658 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
00aafda4 8659else
8660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
cd9a469c 8665 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8667 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cd9a469c 8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8669 break 2
8670 fi
8671done
cd9a469c 8672 done
8673IFS=$as_save_IFS
00aafda4 8674
8675fi
8676fi
d5d92632 8677NMEDIT=$ac_cv_prog_NMEDIT
8678if test -n "$NMEDIT"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8680$as_echo "$NMEDIT" >&6; }
00aafda4 8681else
cd9a469c 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683$as_echo "no" >&6; }
00aafda4 8684fi
8685
cd9a469c 8686
00aafda4 8687fi
d5d92632 8688if test -z "$ac_cv_prog_NMEDIT"; then
8689 ac_ct_NMEDIT=$NMEDIT
8690 # Extract the first word of "nmedit", so it can be a program name with args.
8691set dummy nmedit; ac_word=$2
cd9a469c 8692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8694if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cd9a469c 8695 $as_echo_n "(cached) " >&6
00aafda4 8696else
d5d92632 8697 if test -n "$ac_ct_NMEDIT"; then
8698 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
00aafda4 8699else
8700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
cd9a469c 8705 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8707 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cd9a469c 8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8709 break 2
8710 fi
8711done
cd9a469c 8712 done
8713IFS=$as_save_IFS
00aafda4 8714
00aafda4 8715fi
8716fi
d5d92632 8717ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8718if test -n "$ac_ct_NMEDIT"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8720$as_echo "$ac_ct_NMEDIT" >&6; }
00aafda4 8721else
cd9a469c 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723$as_echo "no" >&6; }
00aafda4 8724fi
8725
d5d92632 8726 if test "x$ac_ct_NMEDIT" = x; then
8727 NMEDIT=":"
cd9a469c 8728 else
8729 case $cross_compiling:$ac_tool_warned in
8730yes:)
8731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8733ac_tool_warned=yes ;;
8734esac
d5d92632 8735 NMEDIT=$ac_ct_NMEDIT
cd9a469c 8736 fi
00aafda4 8737else
d5d92632 8738 NMEDIT="$ac_cv_prog_NMEDIT"
00aafda4 8739fi
8740
8741 if test -n "$ac_tool_prefix"; then
d5d92632 8742 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8743set dummy ${ac_tool_prefix}lipo; ac_word=$2
cd9a469c 8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8746if ${ac_cv_prog_LIPO+:} false; then :
cd9a469c 8747 $as_echo_n "(cached) " >&6
00aafda4 8748else
d5d92632 8749 if test -n "$LIPO"; then
8750 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
00aafda4 8751else
8752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
cd9a469c 8757 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8759 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cd9a469c 8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8761 break 2
8762 fi
8763done
cd9a469c 8764 done
8765IFS=$as_save_IFS
00aafda4 8766
8767fi
8768fi
d5d92632 8769LIPO=$ac_cv_prog_LIPO
8770if test -n "$LIPO"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8772$as_echo "$LIPO" >&6; }
00aafda4 8773else
cd9a469c 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775$as_echo "no" >&6; }
00aafda4 8776fi
8777
cd9a469c 8778
00aafda4 8779fi
d5d92632 8780if test -z "$ac_cv_prog_LIPO"; then
8781 ac_ct_LIPO=$LIPO
8782 # Extract the first word of "lipo", so it can be a program name with args.
8783set dummy lipo; ac_word=$2
cd9a469c 8784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8786if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cd9a469c 8787 $as_echo_n "(cached) " >&6
00aafda4 8788else
d5d92632 8789 if test -n "$ac_ct_LIPO"; then
8790 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
00aafda4 8791else
8792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793for as_dir in $PATH
8794do
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
cd9a469c 8797 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8799 ac_cv_prog_ac_ct_LIPO="lipo"
cd9a469c 8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8801 break 2
8802 fi
8803done
cd9a469c 8804 done
8805IFS=$as_save_IFS
00aafda4 8806
00aafda4 8807fi
8808fi
d5d92632 8809ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8810if test -n "$ac_ct_LIPO"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8812$as_echo "$ac_ct_LIPO" >&6; }
00aafda4 8813else
cd9a469c 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815$as_echo "no" >&6; }
00aafda4 8816fi
8817
d5d92632 8818 if test "x$ac_ct_LIPO" = x; then
8819 LIPO=":"
cd9a469c 8820 else
8821 case $cross_compiling:$ac_tool_warned in
8822yes:)
8823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8825ac_tool_warned=yes ;;
8826esac
d5d92632 8827 LIPO=$ac_ct_LIPO
cd9a469c 8828 fi
00aafda4 8829else
d5d92632 8830 LIPO="$ac_cv_prog_LIPO"
00aafda4 8831fi
8832
d5d92632 8833 if test -n "$ac_tool_prefix"; then
8834 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8835set dummy ${ac_tool_prefix}otool; ac_word=$2
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8838if ${ac_cv_prog_OTOOL+:} false; then :
cd9a469c 8839 $as_echo_n "(cached) " >&6
00aafda4 8840else
d5d92632 8841 if test -n "$OTOOL"; then
8842 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
e6408286 8843else
d5d92632 8844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845for as_dir in $PATH
8846do
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8851 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 break 2
8854 fi
8855done
8856 done
8857IFS=$as_save_IFS
e6408286 8858
8859fi
d5d92632 8860fi
8861OTOOL=$ac_cv_prog_OTOOL
8862if test -n "$OTOOL"; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8864$as_echo "$OTOOL" >&6; }
8865else
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867$as_echo "no" >&6; }
8868fi
8869
00aafda4 8870
542f9784 8871fi
d5d92632 8872if test -z "$ac_cv_prog_OTOOL"; then
8873 ac_ct_OTOOL=$OTOOL
8874 # Extract the first word of "otool", so it can be a program name with args.
8875set dummy otool; ac_word=$2
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8878if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cd9a469c 8879 $as_echo_n "(cached) " >&6
542f9784 8880else
d5d92632 8881 if test -n "$ac_ct_OTOOL"; then
8882 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8883else
8884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885for as_dir in $PATH
542f9784 8886do
d5d92632 8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8891 ac_cv_prog_ac_ct_OTOOL="otool"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 break 2
8894 fi
8895done
8896 done
8897IFS=$as_save_IFS
4ee9c684 8898
d5d92632 8899fi
8900fi
8901ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8902if test -n "$ac_ct_OTOOL"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8904$as_echo "$ac_ct_OTOOL" >&6; }
cd9a469c 8905else
d5d92632 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907$as_echo "no" >&6; }
542f9784 8908fi
90973b19 8909
d5d92632 8910 if test "x$ac_ct_OTOOL" = x; then
8911 OTOOL=":"
8912 else
8913 case $cross_compiling:$ac_tool_warned in
8914yes:)
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8917ac_tool_warned=yes ;;
8918esac
8919 OTOOL=$ac_ct_OTOOL
8920 fi
542f9784 8921else
d5d92632 8922 OTOOL="$ac_cv_prog_OTOOL"
542f9784 8923fi
4ee9c684 8924
d5d92632 8925 if test -n "$ac_tool_prefix"; then
8926 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8927set dummy ${ac_tool_prefix}otool64; ac_word=$2
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8930if ${ac_cv_prog_OTOOL64+:} false; then :
d5d92632 8931 $as_echo_n "(cached) " >&6
8932else
8933 if test -n "$OTOOL64"; then
8934 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8935else
8936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937for as_dir in $PATH
8938do
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8943 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8946 fi
542f9784 8947done
d5d92632 8948 done
8949IFS=$as_save_IFS
8950
8951fi
8952fi
8953OTOOL64=$ac_cv_prog_OTOOL64
8954if test -n "$OTOOL64"; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8956$as_echo "$OTOOL64" >&6; }
8957else
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959$as_echo "no" >&6; }
542f9784 8960fi
4ee9c684 8961
90973b19 8962
542f9784 8963fi
d5d92632 8964if test -z "$ac_cv_prog_OTOOL64"; then
8965 ac_ct_OTOOL64=$OTOOL64
8966 # Extract the first word of "otool64", so it can be a program name with args.
8967set dummy otool64; ac_word=$2
8968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8970if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
d5d92632 8971 $as_echo_n "(cached) " >&6
90973b19 8972else
d5d92632 8973 if test -n "$ac_ct_OTOOL64"; then
8974 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8975else
8976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977for as_dir in $PATH
90973b19 8978do
d5d92632 8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8983 ac_cv_prog_ac_ct_OTOOL64="otool64"
8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 break 2
8986 fi
8987done
8988 done
8989IFS=$as_save_IFS
90973b19 8990
d5d92632 8991fi
8992fi
8993ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8994if test -n "$ac_ct_OTOOL64"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8996$as_echo "$ac_ct_OTOOL64" >&6; }
cd9a469c 8997else
d5d92632 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999$as_echo "no" >&6; }
90973b19 9000fi
9001
d5d92632 9002 if test "x$ac_ct_OTOOL64" = x; then
9003 OTOOL64=":"
9004 else
9005 case $cross_compiling:$ac_tool_warned in
9006yes:)
9007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9009ac_tool_warned=yes ;;
9010esac
9011 OTOOL64=$ac_ct_OTOOL64
9012 fi
4ee9c684 9013else
d5d92632 9014 OTOOL64="$ac_cv_prog_OTOOL64"
4ee9c684 9015fi
4ee9c684 9016
cd9a469c 9017
542f9784 9018
542f9784 9019
9020
4ee9c684 9021
542f9784 9022
4ee9c684 9023
542f9784 9024
cd9a469c 9025
4ee9c684 9026
9cf1c244 9027
2e4ef4e4 9028
cd9a469c 9029
2e4ef4e4 9030
2e4ef4e4 9031
d5d92632 9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9044$as_echo_n "checking for -single_module linker flag... " >&6; }
f00f02a3 9045if ${lt_cv_apple_cc_single_mod+:} false; then :
d5d92632 9046 $as_echo_n "(cached) " >&6
542f9784 9047else
d5d92632 9048 lt_cv_apple_cc_single_mod=no
9049 if test -z "${LT_MULTI_MODULE}"; then
9050 # By default we will add the -single_module flag. You can override
9051 # by either setting the environment variable LT_MULTI_MODULE
9052 # non-empty at configure time, or by adding -multi_module to the
9053 # link flags.
9054 rm -rf libconftest.dylib*
9055 echo "int foo(void){return 1;}" > conftest.c
9056 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9057-dynamiclib -Wl,-single_module conftest.c" >&5
9058 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9059 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9060 _lt_result=$?
9061 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9062 lt_cv_apple_cc_single_mod=yes
9063 else
9064 cat conftest.err >&5
9065 fi
9066 rm -rf libconftest.dylib*
9067 rm -f conftest.*
9068 fi
9069fi
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9071$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9073$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
f00f02a3 9074if ${lt_cv_ld_exported_symbols_list+:} false; then :
d5d92632 9075 $as_echo_n "(cached) " >&6
9076else
9077 lt_cv_ld_exported_symbols_list=no
9078 save_LDFLAGS=$LDFLAGS
9079 echo "_main" > conftest.sym
9080 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9081 if test x$gcc_no_link = xyes; then
f00f02a3 9082 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d5d92632 9083fi
9084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 9085/* end confdefs.h. */
2e4ef4e4 9086
542f9784 9087int
9088main ()
9089{
d5d92632 9090
9091 ;
cd9a469c 9092 return 0;
542f9784 9093}
2e4ef4e4 9094_ACEOF
d5d92632 9095if ac_fn_c_try_link "$LINENO"; then :
9096 lt_cv_ld_exported_symbols_list=yes
cd9a469c 9097else
d5d92632 9098 lt_cv_ld_exported_symbols_list=no
542f9784 9099fi
d5d92632 9100rm -f core conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102 LDFLAGS="$save_LDFLAGS"
2e4ef4e4 9103
9104fi
d5d92632 9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9106$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9108$as_echo_n "checking for -force_load linker flag... " >&6; }
f00f02a3 9109if ${lt_cv_ld_force_load+:} false; then :
d5d92632 9110 $as_echo_n "(cached) " >&6
9111else
9112 lt_cv_ld_force_load=no
9113 cat > conftest.c << _LT_EOF
9114int forced_loaded() { return 2;}
9115_LT_EOF
9116 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9117 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9118 echo "$AR cru libconftest.a conftest.o" >&5
9119 $AR cru libconftest.a conftest.o 2>&5
9120 cat > conftest.c << _LT_EOF
9121int main() { return 0;}
9122_LT_EOF
9123 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9124 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9125 _lt_result=$?
9126 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9127 lt_cv_ld_force_load=yes
9128 else
9129 cat conftest.err >&5
9130 fi
9131 rm -f conftest.err libconftest.a conftest conftest.c
9132 rm -rf conftest.dSYM
542f9784 9133
9134fi
d5d92632 9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9136$as_echo "$lt_cv_ld_force_load" >&6; }
9137 case $host_os in
9138 rhapsody* | darwin1.[012])
9139 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9140 darwin1.*)
9141 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9142 darwin*) # darwin 5.x on
9143 # if running on 10.5 or later, the deployment target defaults
9144 # to the OS version, if on x86, and 10.4, the deployment
9145 # target defaults to 10.4. Don't you love it?
9146 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9147 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9148 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7c407808 9149 10.[012][,.]*)
d5d92632 9150 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9151 10.*)
9152 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9153 esac
9154 ;;
9155 esac
9156 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9157 _lt_dar_single_mod='$single_module'
9158 fi
9159 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9160 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9161 else
9162 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9163 fi
9164 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9165 _lt_dsymutil='~$DSYMUTIL $lib || :'
9166 else
9167 _lt_dsymutil=
9168 fi
9169 ;;
9170 esac
542f9784 9171
542f9784 9172for ac_header in dlfcn.h
cd9a469c 9173do :
9174 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9175"
f00f02a3 9176if test "x$ac_cv_header_dlfcn_h" = xyes; then :
542f9784 9177 cat >>confdefs.h <<_ACEOF
cd9a469c 9178#define HAVE_DLFCN_H 1
90e67cff 9179_ACEOF
90e67cff 9180
542f9784 9181fi
9182
9183done
9184
9185
9186
e6408286 9187
9188
00aafda4 9189# Set options
9190
9191
9192
9193
9194 enable_win32_dll=no
9195
9196
cd9a469c 9197 # Check whether --enable-shared was given.
9198if test "${enable_shared+set}" = set; then :
9199 enableval=$enable_shared; p=${PACKAGE-default}
00aafda4 9200 case $enableval in
9201 yes) enable_shared=yes ;;
9202 no) enable_shared=no ;;
9203 *)
9204 enable_shared=no
9205 # Look at the argument we got. We use all the common list separators.
9206 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9207 for pkg in $enableval; do
9208 IFS="$lt_save_ifs"
9209 if test "X$pkg" = "X$p"; then
9210 enable_shared=yes
9211 fi
9212 done
9213 IFS="$lt_save_ifs"
9214 ;;
9215 esac
9216else
9217 enable_shared=yes
cd9a469c 9218fi
9219
00aafda4 9220
9221
9222
9223
9224
9225
9226
9227
cd9a469c 9228 # Check whether --enable-static was given.
9229if test "${enable_static+set}" = set; then :
9230 enableval=$enable_static; p=${PACKAGE-default}
00aafda4 9231 case $enableval in
9232 yes) enable_static=yes ;;
9233 no) enable_static=no ;;
9234 *)
9235 enable_static=no
9236 # Look at the argument we got. We use all the common list separators.
9237 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9238 for pkg in $enableval; do
9239 IFS="$lt_save_ifs"
9240 if test "X$pkg" = "X$p"; then
9241 enable_static=yes
9242 fi
9243 done
9244 IFS="$lt_save_ifs"
9245 ;;
9246 esac
9247else
9248 enable_static=yes
cd9a469c 9249fi
9250
00aafda4 9251
9252
9253
9254
9255
9256
9257
9258
9259
cd9a469c 9260# Check whether --with-pic was given.
9261if test "${with_pic+set}" = set; then :
9262 withval=$with_pic; pic_mode="$withval"
00aafda4 9263else
9264 pic_mode=default
cd9a469c 9265fi
9266
00aafda4 9267
9268test -z "$pic_mode" && pic_mode=default
9269
9270
9271
9272
9273
9274
9275
cd9a469c 9276 # Check whether --enable-fast-install was given.
9277if test "${enable_fast_install+set}" = set; then :
9278 enableval=$enable_fast_install; p=${PACKAGE-default}
00aafda4 9279 case $enableval in
9280 yes) enable_fast_install=yes ;;
9281 no) enable_fast_install=no ;;
9282 *)
9283 enable_fast_install=no
9284 # Look at the argument we got. We use all the common list separators.
9285 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9286 for pkg in $enableval; do
9287 IFS="$lt_save_ifs"
9288 if test "X$pkg" = "X$p"; then
9289 enable_fast_install=yes
9290 fi
9291 done
9292 IFS="$lt_save_ifs"
9293 ;;
9294 esac
9295else
9296 enable_fast_install=yes
cd9a469c 9297fi
9298
00aafda4 9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
542f9784 9309# This can be used to rebuild libtool when needed
9310LIBTOOL_DEPS="$ltmain"
9311
9312# Always use our own libtool.
9313LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
e6408286 9337
542f9784 9338
9339
9340test -z "$LN_S" && LN_S="ln -s"
9341
9342
9343
9344
9345
90e67cff 9346
542f9784 9347
9348
9349
9350
9351
9352
9353
9354
9355if test -n "${ZSH_VERSION+set}" ; then
9356 setopt NO_GLOB_SUBST
90e67cff 9357fi
90e67cff 9358
cd9a469c 9359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9360$as_echo_n "checking for objdir... " >&6; }
f00f02a3 9361if ${lt_cv_objdir+:} false; then :
cd9a469c 9362 $as_echo_n "(cached) " >&6
90e67cff 9363else
542f9784 9364 rm -f .libs 2>/dev/null
9365mkdir .libs 2>/dev/null
9366if test -d .libs; then
9367 lt_cv_objdir=.libs
9368else
9369 # MS-DOS does not allow filenames that begin with a dot.
9370 lt_cv_objdir=_libs
90e67cff 9371fi
542f9784 9372rmdir .libs 2>/dev/null
90e67cff 9373fi
cd9a469c 9374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9375$as_echo "$lt_cv_objdir" >&6; }
542f9784 9376objdir=$lt_cv_objdir
9377
9378
9379
9380
90e67cff 9381
9382cat >>confdefs.h <<_ACEOF
542f9784 9383#define LT_OBJDIR "$lt_cv_objdir/"
90e67cff 9384_ACEOF
9385
542f9784 9386
9387
9388
542f9784 9389case $host_os in
9390aix3*)
9391 # AIX sometimes has problems with the GCC collect2 program. For some
9392 # reason, if we set the COLLECT_NAMES environment variable, the problems
9393 # vanish in a puff of smoke.
9394 if test "X${COLLECT_NAMES+set}" != Xset; then
9395 COLLECT_NAMES=
9396 export COLLECT_NAMES
9397 fi
9398 ;;
9399esac
9400
542f9784 9401# Global variables:
9402ofile=libtool
9403can_build_shared=yes
9404
9405# All known linkers require a `.a' archive for static linking (except MSVC,
9406# which needs '.lib').
9407libext=a
9408
9409with_gnu_ld="$lt_cv_prog_gnu_ld"
9410
9411old_CC="$CC"
9412old_CFLAGS="$CFLAGS"
9413
9414# Set sane defaults for various variables
9415test -z "$CC" && CC=cc
9416test -z "$LTCC" && LTCC=$CC
9417test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9418test -z "$LD" && LD=ld
9419test -z "$ac_objext" && ac_objext=o
9420
9421for cc_temp in $compiler""; do
9422 case $cc_temp in
9423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9425 \-*) ;;
9426 *) break;;
9427 esac
9428done
e6408286 9429cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 9430
9431
9432# Only perform the check for file, if the check method requires it
9433test -z "$MAGIC_CMD" && MAGIC_CMD=file
9434case $deplibs_check_method in
9435file_magic*)
9436 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cd9a469c 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9438$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
f00f02a3 9439if ${lt_cv_path_MAGIC_CMD+:} false; then :
cd9a469c 9440 $as_echo_n "(cached) " >&6
90e67cff 9441else
542f9784 9442 case $MAGIC_CMD in
9443[\\/*] | ?:[\\/]*)
9444 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9445 ;;
9446*)
9447 lt_save_MAGIC_CMD="$MAGIC_CMD"
9448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9449 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9450 for ac_dir in $ac_dummy; do
9451 IFS="$lt_save_ifs"
9452 test -z "$ac_dir" && ac_dir=.
9453 if test -f $ac_dir/${ac_tool_prefix}file; then
9454 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9455 if test -n "$file_magic_test_file"; then
9456 case $deplibs_check_method in
9457 "file_magic "*)
9458 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9460 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9461 $EGREP "$file_magic_regex" > /dev/null; then
9462 :
9463 else
9464 cat <<_LT_EOF 1>&2
90e67cff 9465
542f9784 9466*** Warning: the command libtool uses to detect shared libraries,
9467*** $file_magic_cmd, produces output that libtool cannot recognize.
9468*** The result is that libtool may fail to recognize shared libraries
9469*** as such. This will affect the creation of libtool libraries that
9470*** depend on shared libraries, but programs linked with such libtool
9471*** libraries will work regardless of this problem. Nevertheless, you
9472*** may want to report the problem to your system manager and/or to
9473*** bug-libtool@gnu.org
9474
9475_LT_EOF
9476 fi ;;
9477 esac
9478 fi
9479 break
9480 fi
9481 done
9482 IFS="$lt_save_ifs"
9483 MAGIC_CMD="$lt_save_MAGIC_CMD"
9484 ;;
9485esac
9486fi
9487
9488MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9489if test -n "$MAGIC_CMD"; then
cd9a469c 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9491$as_echo "$MAGIC_CMD" >&6; }
542f9784 9492else
cd9a469c 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494$as_echo "no" >&6; }
542f9784 9495fi
9496
9497
9498
9499
9500
9501if test -z "$lt_cv_path_MAGIC_CMD"; then
9502 if test -n "$ac_tool_prefix"; then
cd9a469c 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9504$as_echo_n "checking for file... " >&6; }
f00f02a3 9505if ${lt_cv_path_MAGIC_CMD+:} false; then :
cd9a469c 9506 $as_echo_n "(cached) " >&6
542f9784 9507else
9508 case $MAGIC_CMD in
9509[\\/*] | ?:[\\/]*)
9510 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9511 ;;
9512*)
9513 lt_save_MAGIC_CMD="$MAGIC_CMD"
9514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9515 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9516 for ac_dir in $ac_dummy; do
9517 IFS="$lt_save_ifs"
9518 test -z "$ac_dir" && ac_dir=.
9519 if test -f $ac_dir/file; then
9520 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9521 if test -n "$file_magic_test_file"; then
9522 case $deplibs_check_method in
9523 "file_magic "*)
9524 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9527 $EGREP "$file_magic_regex" > /dev/null; then
9528 :
9529 else
9530 cat <<_LT_EOF 1>&2
9531
9532*** Warning: the command libtool uses to detect shared libraries,
9533*** $file_magic_cmd, produces output that libtool cannot recognize.
9534*** The result is that libtool may fail to recognize shared libraries
9535*** as such. This will affect the creation of libtool libraries that
9536*** depend on shared libraries, but programs linked with such libtool
9537*** libraries will work regardless of this problem. Nevertheless, you
9538*** may want to report the problem to your system manager and/or to
9539*** bug-libtool@gnu.org
9540
9541_LT_EOF
9542 fi ;;
9543 esac
9544 fi
9545 break
9546 fi
9547 done
9548 IFS="$lt_save_ifs"
9549 MAGIC_CMD="$lt_save_MAGIC_CMD"
9550 ;;
9551esac
9552fi
9553
9554MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9555if test -n "$MAGIC_CMD"; then
cd9a469c 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9557$as_echo "$MAGIC_CMD" >&6; }
542f9784 9558else
cd9a469c 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560$as_echo "no" >&6; }
542f9784 9561fi
9562
9563
9564 else
9565 MAGIC_CMD=:
9566 fi
9567fi
9568
9569 fi
9570 ;;
9571esac
9572
9573# Use C for the default configuration in the libtool script
9574
9575lt_save_CC="$CC"
9576ac_ext=c
9577ac_cpp='$CPP $CPPFLAGS'
9578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9580ac_compiler_gnu=$ac_cv_c_compiler_gnu
9581
9582
9583# Source file extension for C test sources.
9584ac_ext=c
9585
9586# Object file extension for compiled C test sources.
9587objext=o
9588objext=$objext
9589
9590# Code to be used in simple compile tests
9591lt_simple_compile_test_code="int some_variable = 0;"
9592
9593# Code to be used in simple link tests
9594lt_simple_link_test_code='int main(){return(0);}'
9595
9596
9597
9598
9599
9600
9601
9602# If no C compiler was specified, use CC.
9603LTCC=${LTCC-"$CC"}
9604
9605# If no C compiler flags were specified, use CFLAGS.
9606LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9607
9608# Allow CC to be a program name with arguments.
9609compiler=$CC
9610
9611# Save the default compiler, since it gets overwritten when the other
9612# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9613compiler_DEFAULT=$CC
9614
9615# save warnings/boilerplate of simple test code
9616ac_outfile=conftest.$ac_objext
9617echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9618eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9619_lt_compiler_boilerplate=`cat conftest.err`
9620$RM conftest*
9621
9622ac_outfile=conftest.$ac_objext
9623echo "$lt_simple_link_test_code" >conftest.$ac_ext
9624eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9625_lt_linker_boilerplate=`cat conftest.err`
00aafda4 9626$RM -r conftest*
542f9784 9627
9628
9629## CAVEAT EMPTOR:
9630## There is no encapsulation within the following macros, do not change
9631## the running order or otherwise move them around unless you know exactly
9632## what you are doing...
9633if test -n "$compiler"; then
9634
9635lt_prog_compiler_no_builtin_flag=
9636
9637if test "$GCC" = yes; then
e6408286 9638 case $cc_basename in
9639 nvcc*)
9640 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9641 *)
9642 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9643 esac
542f9784 9644
cd9a469c 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9646$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
f00f02a3 9647if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cd9a469c 9648 $as_echo_n "(cached) " >&6
542f9784 9649else
9650 lt_cv_prog_compiler_rtti_exceptions=no
9651 ac_outfile=conftest.$ac_objext
9652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9653 lt_compiler_flag="-fno-rtti -fno-exceptions"
9654 # Insert the option either (1) after the last *FLAGS variable, or
9655 # (2) before a word containing "conftest.", or (3) at the end.
9656 # Note that $ac_compile itself does not contain backslashes and begins
9657 # with a dollar sign (not a hyphen), so the echo should work correctly.
9658 # The option is referenced via a variable to avoid confusing sed.
9659 lt_compile=`echo "$ac_compile" | $SED \
9660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9662 -e 's:$: $lt_compiler_flag:'`
e6408286 9663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 9664 (eval "$lt_compile" 2>conftest.err)
9665 ac_status=$?
9666 cat conftest.err >&5
e6408286 9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 9668 if (exit $ac_status) && test -s "$ac_outfile"; then
9669 # The compiler can only warn and ignore the option if not recognized
9670 # So say no if there are warnings other than the usual output.
e6408286 9671 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 9672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9674 lt_cv_prog_compiler_rtti_exceptions=yes
9675 fi
9676 fi
9677 $RM conftest*
9678
9679fi
cd9a469c 9680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9681$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
542f9784 9682
9683if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9684 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9685else
9686 :
9687fi
9688
9689fi
9690
9691
9692
9693
9694
9695
9696 lt_prog_compiler_wl=
9697lt_prog_compiler_pic=
9698lt_prog_compiler_static=
9699
cd9a469c 9700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9701$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
542f9784 9702
9703 if test "$GCC" = yes; then
9704 lt_prog_compiler_wl='-Wl,'
9705 lt_prog_compiler_static='-static'
9706
9707 case $host_os in
9708 aix*)
9709 # All AIX code is PIC.
9710 if test "$host_cpu" = ia64; then
9711 # AIX 5 now supports IA64 processor
9712 lt_prog_compiler_static='-Bstatic'
9713 fi
ccc0b0f9 9714 lt_prog_compiler_pic='-fPIC'
542f9784 9715 ;;
9716
9717 amigaos*)
00aafda4 9718 case $host_cpu in
9719 powerpc)
9720 # see comment about AmigaOS4 .so support
9721 lt_prog_compiler_pic='-fPIC'
9722 ;;
9723 m68k)
9724 # FIXME: we need at least 68020 code to build shared libraries, but
9725 # adding the `-m68020' flag to GCC prevents building anything better,
9726 # like `-m68040'.
9727 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9728 ;;
9729 esac
542f9784 9730 ;;
9731
9732 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9733 # PIC is the default for these OSes.
9734 ;;
9735
00aafda4 9736 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 9737 # This hack is so that the source file can tell whether it is being
9738 # built for inclusion in a dll (and should export symbols for example).
9739 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9740 # (--disable-auto-import) libraries
9741 lt_prog_compiler_pic='-DDLL_EXPORT'
9742 ;;
9743
9744 darwin* | rhapsody*)
9745 # PIC is the default on this platform
9746 # Common symbols not allowed in MH_DYLIB files
9747 lt_prog_compiler_pic='-fno-common'
9748 ;;
9749
e6408286 9750 haiku*)
9751 # PIC is the default for Haiku.
9752 # The "-static" flag exists, but is broken.
9753 lt_prog_compiler_static=
9754 ;;
9755
542f9784 9756 hpux*)
00aafda4 9757 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9758 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9759 # sets the default TLS model and affects inlining.
542f9784 9760 case $host_cpu in
00aafda4 9761 hppa*64*)
542f9784 9762 # +Z the default
9763 ;;
9764 *)
9765 lt_prog_compiler_pic='-fPIC'
9766 ;;
9767 esac
9768 ;;
9769
9770 interix[3-9]*)
9771 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9772 # Instead, we relocate shared libraries at runtime.
9773 ;;
9774
9775 msdosdjgpp*)
9776 # Just because we use GCC doesn't mean we suddenly get shared libraries
9777 # on systems that don't support them.
9778 lt_prog_compiler_can_build_shared=no
9779 enable_shared=no
9780 ;;
9781
9782 *nto* | *qnx*)
9783 # QNX uses GNU C++, but need to define -shared option too, otherwise
9784 # it will coredump.
9785 lt_prog_compiler_pic='-fPIC -shared'
9786 ;;
9787
9788 sysv4*MP*)
9789 if test -d /usr/nec; then
9790 lt_prog_compiler_pic=-Kconform_pic
9791 fi
9792 ;;
9793
9794 *)
9795 lt_prog_compiler_pic='-fPIC'
9796 ;;
9797 esac
e6408286 9798
9799 case $cc_basename in
9800 nvcc*) # Cuda Compiler Driver 2.2
9801 lt_prog_compiler_wl='-Xlinker '
9802 lt_prog_compiler_pic='-Xcompiler -fPIC'
9803 ;;
9804 esac
542f9784 9805 else
9806 # PORTME Check for flag to pass linker flags through the system compiler.
9807 case $host_os in
9808 aix*)
9809 lt_prog_compiler_wl='-Wl,'
9810 if test "$host_cpu" = ia64; then
9811 # AIX 5 now supports IA64 processor
9812 lt_prog_compiler_static='-Bstatic'
9813 else
9814 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9815 fi
9816 ;;
542f9784 9817
00aafda4 9818 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 9819 # This hack is so that the source file can tell whether it is being
9820 # built for inclusion in a dll (and should export symbols for example).
9821 lt_prog_compiler_pic='-DDLL_EXPORT'
9822 ;;
9823
9824 hpux9* | hpux10* | hpux11*)
9825 lt_prog_compiler_wl='-Wl,'
9826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9827 # not for PA HP-UX.
9828 case $host_cpu in
9829 hppa*64*|ia64*)
9830 # +Z the default
9831 ;;
9832 *)
9833 lt_prog_compiler_pic='+Z'
9834 ;;
9835 esac
9836 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9837 lt_prog_compiler_static='${wl}-a ${wl}archive'
9838 ;;
9839
9840 irix5* | irix6* | nonstopux*)
9841 lt_prog_compiler_wl='-Wl,'
9842 # PIC (with -KPIC) is the default.
9843 lt_prog_compiler_static='-non_shared'
9844 ;;
9845
9af964d4 9846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 9847 case $cc_basename in
00aafda4 9848 # old Intel for x86_64 which still supported -KPIC.
9849 ecc*)
542f9784 9850 lt_prog_compiler_wl='-Wl,'
9851 lt_prog_compiler_pic='-KPIC'
9852 lt_prog_compiler_static='-static'
9853 ;;
00aafda4 9854 # icc used to be incompatible with GCC.
9855 # ICC 10 doesn't accept -KPIC any more.
9856 icc* | ifort*)
9857 lt_prog_compiler_wl='-Wl,'
9858 lt_prog_compiler_pic='-fPIC'
9859 lt_prog_compiler_static='-static'
9860 ;;
9861 # Lahey Fortran 8.1.
9862 lf95*)
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_pic='--shared'
9865 lt_prog_compiler_static='--static'
9866 ;;
e6408286 9867 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 9868 # Portland Group compilers (*not* the Pentium gcc compiler,
9869 # which looks to be a dead project)
9870 lt_prog_compiler_wl='-Wl,'
9871 lt_prog_compiler_pic='-fpic'
9872 lt_prog_compiler_static='-Bstatic'
9873 ;;
9874 ccc*)
9875 lt_prog_compiler_wl='-Wl,'
9876 # All Alpha code is PIC.
9877 lt_prog_compiler_static='-non_shared'
9878 ;;
e6408286 9879 xl* | bgxl* | bgf* | mpixl*)
9880 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
00aafda4 9881 lt_prog_compiler_wl='-Wl,'
9882 lt_prog_compiler_pic='-qpic'
9883 lt_prog_compiler_static='-qstaticlink'
9884 ;;
542f9784 9885 *)
9886 case `$CC -V 2>&1 | sed 5q` in
e6408286 9887 *Sun\ F* | *Sun*Fortran*)
9888 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 9889 lt_prog_compiler_pic='-KPIC'
9890 lt_prog_compiler_static='-Bstatic'
e6408286 9891 lt_prog_compiler_wl=''
542f9784 9892 ;;
e6408286 9893 *Sun\ C*)
9894 # Sun C 5.9
542f9784 9895 lt_prog_compiler_pic='-KPIC'
9896 lt_prog_compiler_static='-Bstatic'
e6408286 9897 lt_prog_compiler_wl='-Wl,'
542f9784 9898 ;;
9899 esac
9900 ;;
9901 esac
9902 ;;
9903
9904 newsos6)
9905 lt_prog_compiler_pic='-KPIC'
9906 lt_prog_compiler_static='-Bstatic'
9907 ;;
9908
9909 *nto* | *qnx*)
9910 # QNX uses GNU C++, but need to define -shared option too, otherwise
9911 # it will coredump.
9912 lt_prog_compiler_pic='-fPIC -shared'
9913 ;;
9914
9915 osf3* | osf4* | osf5*)
9916 lt_prog_compiler_wl='-Wl,'
9917 # All OSF/1 code is PIC.
9918 lt_prog_compiler_static='-non_shared'
9919 ;;
9920
9921 rdos*)
9922 lt_prog_compiler_static='-non_shared'
9923 ;;
9924
9925 solaris*)
9926 lt_prog_compiler_pic='-KPIC'
9927 lt_prog_compiler_static='-Bstatic'
9928 case $cc_basename in
9929 f77* | f90* | f95*)
9930 lt_prog_compiler_wl='-Qoption ld ';;
9931 *)
9932 lt_prog_compiler_wl='-Wl,';;
9933 esac
9934 ;;
9935
9936 sunos4*)
9937 lt_prog_compiler_wl='-Qoption ld '
9938 lt_prog_compiler_pic='-PIC'
9939 lt_prog_compiler_static='-Bstatic'
9940 ;;
9941
9942 sysv4 | sysv4.2uw2* | sysv4.3*)
9943 lt_prog_compiler_wl='-Wl,'
9944 lt_prog_compiler_pic='-KPIC'
9945 lt_prog_compiler_static='-Bstatic'
9946 ;;
9947
9948 sysv4*MP*)
9949 if test -d /usr/nec ;then
9950 lt_prog_compiler_pic='-Kconform_pic'
9951 lt_prog_compiler_static='-Bstatic'
9952 fi
9953 ;;
9954
9955 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9956 lt_prog_compiler_wl='-Wl,'
9957 lt_prog_compiler_pic='-KPIC'
9958 lt_prog_compiler_static='-Bstatic'
9959 ;;
9960
9961 unicos*)
9962 lt_prog_compiler_wl='-Wl,'
9963 lt_prog_compiler_can_build_shared=no
9964 ;;
9965
9966 uts4*)
9967 lt_prog_compiler_pic='-pic'
9968 lt_prog_compiler_static='-Bstatic'
9969 ;;
9970
9971 *)
9972 lt_prog_compiler_can_build_shared=no
9973 ;;
9974 esac
9975 fi
9976
9977case $host_os in
9978 # For platforms which do not support PIC, -DPIC is meaningless:
9979 *djgpp*)
9980 lt_prog_compiler_pic=
9981 ;;
9982 *)
9983 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9984 ;;
9985esac
cd9a469c 9986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9987$as_echo "$lt_prog_compiler_pic" >&6; }
542f9784 9988
9989
9990
9991
9992
9993
9994#
9995# Check to make sure the PIC flag actually works.
9996#
9997if test -n "$lt_prog_compiler_pic"; then
cd9a469c 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9999$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
f00f02a3 10000if ${lt_cv_prog_compiler_pic_works+:} false; then :
cd9a469c 10001 $as_echo_n "(cached) " >&6
542f9784 10002else
00aafda4 10003 lt_cv_prog_compiler_pic_works=no
542f9784 10004 ac_outfile=conftest.$ac_objext
10005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10006 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10007 # Insert the option either (1) after the last *FLAGS variable, or
10008 # (2) before a word containing "conftest.", or (3) at the end.
10009 # Note that $ac_compile itself does not contain backslashes and begins
10010 # with a dollar sign (not a hyphen), so the echo should work correctly.
10011 # The option is referenced via a variable to avoid confusing sed.
10012 lt_compile=`echo "$ac_compile" | $SED \
10013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10015 -e 's:$: $lt_compiler_flag:'`
e6408286 10016 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 10017 (eval "$lt_compile" 2>conftest.err)
10018 ac_status=$?
10019 cat conftest.err >&5
e6408286 10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 10021 if (exit $ac_status) && test -s "$ac_outfile"; then
10022 # The compiler can only warn and ignore the option if not recognized
10023 # So say no if there are warnings other than the usual output.
e6408286 10024 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 10025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 10027 lt_cv_prog_compiler_pic_works=yes
542f9784 10028 fi
10029 fi
10030 $RM conftest*
10031
10032fi
cd9a469c 10033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10034$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
542f9784 10035
00aafda4 10036if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
542f9784 10037 case $lt_prog_compiler_pic in
10038 "" | " "*) ;;
10039 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10040 esac
10041else
10042 lt_prog_compiler_pic=
10043 lt_prog_compiler_can_build_shared=no
10044fi
10045
10046fi
10047
10048
10049
10050
10051
10052
10053#
10054# Check to make sure the static flag actually works.
10055#
10056wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cd9a469c 10057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10058$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
f00f02a3 10059if ${lt_cv_prog_compiler_static_works+:} false; then :
cd9a469c 10060 $as_echo_n "(cached) " >&6
542f9784 10061else
00aafda4 10062 lt_cv_prog_compiler_static_works=no
542f9784 10063 save_LDFLAGS="$LDFLAGS"
10064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10065 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10067 # The linker can only warn and ignore the option if not recognized
10068 # So say no if there are warnings
10069 if test -s conftest.err; then
10070 # Append any errors to the config.log.
10071 cat conftest.err 1>&5
e6408286 10072 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 10073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10074 if diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 10075 lt_cv_prog_compiler_static_works=yes
542f9784 10076 fi
10077 else
00aafda4 10078 lt_cv_prog_compiler_static_works=yes
542f9784 10079 fi
10080 fi
00aafda4 10081 $RM -r conftest*
542f9784 10082 LDFLAGS="$save_LDFLAGS"
10083
10084fi
cd9a469c 10085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10086$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
542f9784 10087
00aafda4 10088if test x"$lt_cv_prog_compiler_static_works" = xyes; then
542f9784 10089 :
10090else
10091 lt_prog_compiler_static=
10092fi
10093
10094
10095
10096
10097
10098
10099
cd9a469c 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10101$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 10102if ${lt_cv_prog_compiler_c_o+:} false; then :
cd9a469c 10103 $as_echo_n "(cached) " >&6
542f9784 10104else
10105 lt_cv_prog_compiler_c_o=no
10106 $RM -r conftest 2>/dev/null
10107 mkdir conftest
10108 cd conftest
10109 mkdir out
10110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10111
10112 lt_compiler_flag="-o out/conftest2.$ac_objext"
10113 # Insert the option either (1) after the last *FLAGS variable, or
10114 # (2) before a word containing "conftest.", or (3) at the end.
10115 # Note that $ac_compile itself does not contain backslashes and begins
10116 # with a dollar sign (not a hyphen), so the echo should work correctly.
10117 lt_compile=`echo "$ac_compile" | $SED \
10118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10120 -e 's:$: $lt_compiler_flag:'`
e6408286 10121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 10122 (eval "$lt_compile" 2>out/conftest.err)
10123 ac_status=$?
10124 cat out/conftest.err >&5
e6408286 10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 10126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10127 then
10128 # The compiler can only warn and ignore the option if not recognized
10129 # So say no if there are warnings
e6408286 10130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 10131 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10132 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10133 lt_cv_prog_compiler_c_o=yes
10134 fi
10135 fi
10136 chmod u+w . 2>&5
10137 $RM conftest*
10138 # SGI C++ compiler will create directory out/ii_files/ for
10139 # template instantiation
10140 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10141 $RM out/* && rmdir out
10142 cd ..
10143 $RM -r conftest
10144 $RM conftest*
10145
10146fi
cd9a469c 10147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10148$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
542f9784 10149
10150
10151
10152
10153
10154
cd9a469c 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10156$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 10157if ${lt_cv_prog_compiler_c_o+:} false; then :
cd9a469c 10158 $as_echo_n "(cached) " >&6
542f9784 10159else
10160 lt_cv_prog_compiler_c_o=no
10161 $RM -r conftest 2>/dev/null
10162 mkdir conftest
10163 cd conftest
10164 mkdir out
10165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10166
10167 lt_compiler_flag="-o out/conftest2.$ac_objext"
10168 # Insert the option either (1) after the last *FLAGS variable, or
10169 # (2) before a word containing "conftest.", or (3) at the end.
10170 # Note that $ac_compile itself does not contain backslashes and begins
10171 # with a dollar sign (not a hyphen), so the echo should work correctly.
10172 lt_compile=`echo "$ac_compile" | $SED \
10173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10175 -e 's:$: $lt_compiler_flag:'`
e6408286 10176 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 10177 (eval "$lt_compile" 2>out/conftest.err)
10178 ac_status=$?
10179 cat out/conftest.err >&5
e6408286 10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 10181 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10182 then
10183 # The compiler can only warn and ignore the option if not recognized
10184 # So say no if there are warnings
e6408286 10185 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 10186 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10187 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10188 lt_cv_prog_compiler_c_o=yes
10189 fi
10190 fi
10191 chmod u+w . 2>&5
10192 $RM conftest*
10193 # SGI C++ compiler will create directory out/ii_files/ for
10194 # template instantiation
10195 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10196 $RM out/* && rmdir out
10197 cd ..
10198 $RM -r conftest
10199 $RM conftest*
10200
10201fi
cd9a469c 10202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10203$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
542f9784 10204
10205
10206
10207
10208hard_links="nottested"
10209if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10210 # do not overwrite the value of need_locks provided by the user
cd9a469c 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10212$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 10213 hard_links=yes
10214 $RM conftest*
10215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10216 touch conftest.a
10217 ln conftest.a conftest.b 2>&5 || hard_links=no
10218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10220$as_echo "$hard_links" >&6; }
542f9784 10221 if test "$hard_links" = no; then
cd9a469c 10222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10223$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 10224 need_locks=warn
10225 fi
10226else
10227 need_locks=no
10228fi
10229
10230
10231
10232
10233
10234
cd9a469c 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10236$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 10237
10238 runpath_var=
10239 allow_undefined_flag=
10240 always_export_symbols=no
10241 archive_cmds=
10242 archive_expsym_cmds=
10243 compiler_needs_object=no
10244 enable_shared_with_static_runtimes=no
10245 export_dynamic_flag_spec=
10246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10247 hardcode_automatic=no
10248 hardcode_direct=no
10249 hardcode_direct_absolute=no
10250 hardcode_libdir_flag_spec=
10251 hardcode_libdir_flag_spec_ld=
10252 hardcode_libdir_separator=
10253 hardcode_minus_L=no
10254 hardcode_shlibpath_var=unsupported
10255 inherit_rpath=no
10256 link_all_deplibs=unknown
10257 module_cmds=
10258 module_expsym_cmds=
10259 old_archive_from_new_cmds=
10260 old_archive_from_expsyms_cmds=
10261 thread_safe_flag_spec=
10262 whole_archive_flag_spec=
10263 # include_expsyms should be a list of space-separated symbols to be *always*
10264 # included in the symbol list
10265 include_expsyms=
10266 # exclude_expsyms can be an extended regexp of symbols to exclude
10267 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10268 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10269 # as well as any symbol that contains `d'.
00aafda4 10270 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 10271 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10272 # platforms (ab)use it in PIC code, but their linkers get confused if
10273 # the symbol is explicitly referenced. Since portable code cannot
10274 # rely on this symbol name, it's probably fine to never include it in
10275 # preloaded symbol tables.
00aafda4 10276 # Exclude shared library initialization/finalization symbols.
542f9784 10277 extract_expsyms_cmds=
10278
10279 case $host_os in
00aafda4 10280 cygwin* | mingw* | pw32* | cegcc*)
542f9784 10281 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10282 # When not using gcc, we currently assume that we are using
10283 # Microsoft Visual C++.
10284 if test "$GCC" != yes; then
10285 with_gnu_ld=no
10286 fi
10287 ;;
10288 interix*)
10289 # we just hope/assume this is gcc and not c89 (= MSVC++)
10290 with_gnu_ld=yes
10291 ;;
10292 openbsd*)
10293 with_gnu_ld=no
10294 ;;
10295 esac
10296
10297 ld_shlibs=yes
e6408286 10298
10299 # On some targets, GNU ld is compatible enough with the native linker
10300 # that we're better off using the native interface for both.
10301 lt_use_gnu_ld_interface=no
542f9784 10302 if test "$with_gnu_ld" = yes; then
e6408286 10303 case $host_os in
10304 aix*)
10305 # The AIX port of GNU ld has always aspired to compatibility
10306 # with the native linker. However, as the warning in the GNU ld
10307 # block says, versions before 2.19.5* couldn't really create working
10308 # shared libraries, regardless of the interface used.
10309 case `$LD -v 2>&1` in
10310 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10311 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10312 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10313 *)
10314 lt_use_gnu_ld_interface=yes
10315 ;;
10316 esac
10317 ;;
10318 *)
10319 lt_use_gnu_ld_interface=yes
10320 ;;
10321 esac
10322 fi
10323
10324 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 10325 # If archive_cmds runs LD, not CC, wlarc should be empty
10326 wlarc='${wl}'
10327
10328 # Set some defaults for GNU ld with shared library support. These
10329 # are reset later if shared libraries are not supported. Putting them
10330 # here allows them to be overridden if necessary.
10331 runpath_var=LD_RUN_PATH
10332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10333 export_dynamic_flag_spec='${wl}--export-dynamic'
10334 # ancient GNU ld didn't support --whole-archive et. al.
10335 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10336 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10337 else
10338 whole_archive_flag_spec=
10339 fi
10340 supports_anon_versioning=no
10341 case `$LD -v 2>&1` in
e6408286 10342 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 10343 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10344 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10345 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10346 *\ 2.11.*) ;; # other 2.11 versions
10347 *) supports_anon_versioning=yes ;;
10348 esac
10349
10350 # See if GNU ld supports shared libraries.
10351 case $host_os in
21e07d2f 10352 aix[3-9]*)
542f9784 10353 # On AIX/PPC, the GNU linker is very broken
10354 if test "$host_cpu" != ia64; then
10355 ld_shlibs=no
10356 cat <<_LT_EOF 1>&2
10357
e6408286 10358*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 10359*** to be unable to reliably create shared libraries on AIX.
10360*** Therefore, libtool is disabling shared libraries support. If you
e6408286 10361*** really care for shared libraries, you may want to install binutils
10362*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10363*** You will then need to restart the configuration process.
542f9784 10364
10365_LT_EOF
10366 fi
10367 ;;
10368
10369 amigaos*)
00aafda4 10370 case $host_cpu in
10371 powerpc)
10372 # see comment about AmigaOS4 .so support
10373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10374 archive_expsym_cmds=''
10375 ;;
10376 m68k)
10377 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)'
10378 hardcode_libdir_flag_spec='-L$libdir'
10379 hardcode_minus_L=yes
10380 ;;
10381 esac
542f9784 10382 ;;
10383
10384 beos*)
10385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10386 allow_undefined_flag=unsupported
10387 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10388 # support --undefined. This deserves some investigation. FIXME
10389 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10390 else
10391 ld_shlibs=no
10392 fi
10393 ;;
10394
00aafda4 10395 cygwin* | mingw* | pw32* | cegcc*)
542f9784 10396 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10397 # as there is no search path for DLLs.
10398 hardcode_libdir_flag_spec='-L$libdir'
e6408286 10399 export_dynamic_flag_spec='${wl}--export-all-symbols'
542f9784 10400 allow_undefined_flag=unsupported
10401 always_export_symbols=no
10402 enable_shared_with_static_runtimes=yes
10403 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10404
10405 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10407 # If the export-symbols file already is a .def file (1st line
10408 # is EXPORTS), use it as is; otherwise, prepend...
10409 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10410 cp $export_symbols $output_objdir/$soname.def;
10411 else
10412 echo EXPORTS > $output_objdir/$soname.def;
10413 cat $export_symbols >> $output_objdir/$soname.def;
10414 fi~
10415 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10416 else
10417 ld_shlibs=no
10418 fi
10419 ;;
10420
e6408286 10421 haiku*)
10422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10423 link_all_deplibs=yes
10424 ;;
10425
542f9784 10426 interix[3-9]*)
10427 hardcode_direct=no
10428 hardcode_shlibpath_var=no
10429 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10430 export_dynamic_flag_spec='${wl}-E'
10431 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10432 # Instead, shared libraries are loaded at an image base (0x10000000 by
10433 # default) and relocated if they conflict, which is a slow very memory
10434 # consuming and fragmenting process. To avoid this, we pick a random,
10435 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10436 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10438 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'
10439 ;;
10440
9af964d4 10441 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 10442 tmp_diet=no
10443 if test "$host_os" = linux-dietlibc; then
10444 case $cc_basename in
10445 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10446 esac
10447 fi
10448 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10449 && test "$tmp_diet" = no
10450 then
4e8a08d4 10451 tmp_addflag=' $pic_flag'
00aafda4 10452 tmp_sharedflag='-shared'
542f9784 10453 case $cc_basename,$host_cpu in
10454 pgcc*) # Portland Group C compiler
e6408286 10455 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 10456 tmp_addflag=' $pic_flag'
10457 ;;
e6408286 10458 pgf77* | pgf90* | pgf95* | pgfortran*)
10459 # Portland Group f77 and f90 compilers
10460 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 10461 tmp_addflag=' $pic_flag -Mnomain' ;;
10462 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10463 tmp_addflag=' -i_dynamic' ;;
10464 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10465 tmp_addflag=' -i_dynamic -nofor_main' ;;
10466 ifc* | ifort*) # Intel Fortran compiler
10467 tmp_addflag=' -nofor_main' ;;
00aafda4 10468 lf95*) # Lahey Fortran 8.1
10469 whole_archive_flag_spec=
10470 tmp_sharedflag='--shared' ;;
e6408286 10471 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
00aafda4 10472 tmp_sharedflag='-qmkshrobj'
10473 tmp_addflag= ;;
e6408286 10474 nvcc*) # Cuda Compiler Driver 2.2
10475 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'
10476 compiler_needs_object=yes
10477 ;;
542f9784 10478 esac
10479 case `$CC -V 2>&1 | sed 5q` in
10480 *Sun\ C*) # Sun C 5.9
e6408286 10481 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 10482 compiler_needs_object=yes
10483 tmp_sharedflag='-G' ;;
10484 *Sun\ F*) # Sun Fortran 8.3
10485 tmp_sharedflag='-G' ;;
542f9784 10486 esac
10487 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10488
10489 if test "x$supports_anon_versioning" = xyes; then
10490 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10491 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10492 echo "local: *; };" >> $output_objdir/$libname.ver~
10493 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10494 fi
00aafda4 10495
10496 case $cc_basename in
e6408286 10497 xlf* | bgf* | bgxlf* | mpixlf*)
00aafda4 10498 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10499 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10500 hardcode_libdir_flag_spec=
10501 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10502 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10503 if test "x$supports_anon_versioning" = xyes; then
10504 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10505 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10506 echo "local: *; };" >> $output_objdir/$libname.ver~
10507 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10508 fi
10509 ;;
10510 esac
542f9784 10511 else
10512 ld_shlibs=no
10513 fi
10514 ;;
10515
10516 netbsd*)
10517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10518 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10519 wlarc=
10520 else
10521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10522 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10523 fi
10524 ;;
10525
10526 solaris*)
10527 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10528 ld_shlibs=no
10529 cat <<_LT_EOF 1>&2
10530
10531*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10532*** create shared libraries on Solaris systems. Therefore, libtool
10533*** is disabling shared libraries support. We urge you to upgrade GNU
10534*** binutils to release 2.9.1 or newer. Another option is to modify
10535*** your PATH or compiler configuration so that the native linker is
10536*** used, and then restart.
10537
10538_LT_EOF
10539 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10542 else
10543 ld_shlibs=no
10544 fi
10545 ;;
10546
10547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10548 case `$LD -v 2>&1` in
10549 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10550 ld_shlibs=no
10551 cat <<_LT_EOF 1>&2
10552
10553*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10554*** reliably create shared libraries on SCO systems. Therefore, libtool
10555*** is disabling shared libraries support. We urge you to upgrade GNU
10556*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10557*** your PATH or compiler configuration so that the native linker is
10558*** used, and then restart.
10559
10560_LT_EOF
10561 ;;
10562 *)
10563 # For security reasons, it is highly recommended that you always
10564 # use absolute paths for naming shared libraries, and exclude the
10565 # DT_RUNPATH tag from executables and libraries. But doing so
10566 # requires that you compile everything twice, which is a pain.
10567 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10570 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10571 else
10572 ld_shlibs=no
10573 fi
10574 ;;
10575 esac
10576 ;;
10577
10578 sunos4*)
10579 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10580 wlarc=
10581 hardcode_direct=yes
10582 hardcode_shlibpath_var=no
10583 ;;
10584
10585 *)
10586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10589 else
10590 ld_shlibs=no
10591 fi
10592 ;;
10593 esac
10594
10595 if test "$ld_shlibs" = no; then
10596 runpath_var=
10597 hardcode_libdir_flag_spec=
10598 export_dynamic_flag_spec=
10599 whole_archive_flag_spec=
10600 fi
10601 else
10602 # PORTME fill in a description of your system's linker (not GNU ld)
10603 case $host_os in
10604 aix3*)
10605 allow_undefined_flag=unsupported
10606 always_export_symbols=yes
10607 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'
10608 # Note: this linker hardcodes the directories in LIBPATH if there
10609 # are no directories specified by -L.
10610 hardcode_minus_L=yes
10611 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10612 # Neither direct hardcoding nor static linking is supported with a
10613 # broken collect2.
10614 hardcode_direct=unsupported
10615 fi
10616 ;;
10617
21e07d2f 10618 aix[4-9]*)
542f9784 10619 if test "$host_cpu" = ia64; then
10620 # On IA64, the linker does run time linking by default, so we don't
10621 # have to do anything special.
10622 aix_use_runtimelinking=no
10623 exp_sym_flag='-Bexport'
10624 no_entry_flag=""
10625 else
10626 # If we're using GNU nm, then we don't want the "-C" option.
10627 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 10628 # Also, AIX nm treats weak defined symbols like other global
10629 # defined symbols, whereas GNU nm marks them as "W".
542f9784 10630 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 10631 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 10632 else
8c596dcc 10633 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 10634 fi
10635 aix_use_runtimelinking=no
10636
10637 # Test if we are trying to use run time linking or normal
10638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10639 # need to do runtime linking.
21e07d2f 10640 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 10641 for ld_flag in $LDFLAGS; do
10642 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10643 aix_use_runtimelinking=yes
10644 break
10645 fi
10646 done
10647 ;;
10648 esac
10649
10650 exp_sym_flag='-bexport'
10651 no_entry_flag='-bnoentry'
10652 fi
10653
10654 # When large executables or shared objects are built, AIX ld can
10655 # have problems creating the table of contents. If linking a library
10656 # or program results in "error TOC overflow" add -mminimal-toc to
10657 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10658 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10659
10660 archive_cmds=''
10661 hardcode_direct=yes
10662 hardcode_direct_absolute=yes
10663 hardcode_libdir_separator=':'
10664 link_all_deplibs=yes
10665 file_list_spec='${wl}-f,'
10666
10667 if test "$GCC" = yes; then
10668 case $host_os in aix4.[012]|aix4.[012].*)
10669 # We only want to do this on AIX 4.2 and lower, the check
10670 # below for broken collect2 doesn't work under 4.3+
10671 collect2name=`${CC} -print-prog-name=collect2`
10672 if test -f "$collect2name" &&
10673 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10674 then
10675 # We have reworked collect2
10676 :
10677 else
10678 # We have old collect2
10679 hardcode_direct=unsupported
10680 # It fails to find uninstalled libraries when the uninstalled
10681 # path is not listed in the libpath. Setting hardcode_minus_L
10682 # to unsupported forces relinking
10683 hardcode_minus_L=yes
10684 hardcode_libdir_flag_spec='-L$libdir'
10685 hardcode_libdir_separator=
10686 fi
10687 ;;
10688 esac
10689 shared_flag='-shared'
10690 if test "$aix_use_runtimelinking" = yes; then
10691 shared_flag="$shared_flag "'${wl}-G'
10692 fi
10693 else
10694 # not using gcc
10695 if test "$host_cpu" = ia64; then
10696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10697 # chokes on -Wl,-G. The following line is correct:
10698 shared_flag='-G'
10699 else
10700 if test "$aix_use_runtimelinking" = yes; then
10701 shared_flag='${wl}-G'
10702 else
10703 shared_flag='${wl}-bM:SRE'
10704 fi
10705 fi
10706 fi
10707
00aafda4 10708 export_dynamic_flag_spec='${wl}-bexpall'
542f9784 10709 # It seems that -bexpall does not export symbols beginning with
10710 # underscore (_), so it is better to generate a list of symbols to export.
10711 always_export_symbols=yes
10712 if test "$aix_use_runtimelinking" = yes; then
10713 # Warning - without using the other runtime loading flags (-brtl),
10714 # -berok will link without error, but may produce a broken library.
10715 allow_undefined_flag='-berok'
10716 # Determine the default libpath from the value encoded in an
10717 # empty executable.
10718 if test x$gcc_no_link = xyes; then
f00f02a3 10719 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 10720fi
cd9a469c 10721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10722/* end confdefs.h. */
10723
10724int
10725main ()
10726{
10727
10728 ;
10729 return 0;
10730}
10731_ACEOF
cd9a469c 10732if ac_fn_c_try_link "$LINENO"; then :
542f9784 10733
10734lt_aix_libpath_sed='
10735 /Import File Strings/,/^$/ {
10736 /^0/ {
10737 s/^0 *\(.*\)$/\1/
10738 p
10739 }
10740 }'
10741aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10742# Check for a 64-bit object if we didn't find anything.
10743if test -z "$aix_libpath"; then
10744 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10745fi
542f9784 10746fi
cd9a469c 10747rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
542f9784 10749if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10750
10751 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 10752 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 10753 else
10754 if test "$host_cpu" = ia64; then
10755 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10756 allow_undefined_flag="-z nodefs"
10757 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"
10758 else
10759 # Determine the default libpath from the value encoded in an
10760 # empty executable.
10761 if test x$gcc_no_link = xyes; then
f00f02a3 10762 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 10763fi
cd9a469c 10764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10765/* end confdefs.h. */
10766
10767int
10768main ()
10769{
10770
10771 ;
10772 return 0;
10773}
10774_ACEOF
cd9a469c 10775if ac_fn_c_try_link "$LINENO"; then :
542f9784 10776
10777lt_aix_libpath_sed='
10778 /Import File Strings/,/^$/ {
10779 /^0/ {
10780 s/^0 *\(.*\)$/\1/
10781 p
10782 }
10783 }'
10784aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10785# Check for a 64-bit object if we didn't find anything.
10786if test -z "$aix_libpath"; then
10787 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10788fi
542f9784 10789fi
cd9a469c 10790rm -f core conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
542f9784 10792if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10793
10794 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10795 # Warning - without using the other run time loading flags,
10796 # -berok will link without error, but may produce a broken library.
10797 no_undefined_flag=' ${wl}-bernotok'
10798 allow_undefined_flag=' ${wl}-berok'
e6408286 10799 if test "$with_gnu_ld" = yes; then
10800 # We only use this code for GNU lds that support --whole-archive.
10801 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10802 else
10803 # Exported symbols can be pulled into shared objects from archives
10804 whole_archive_flag_spec='$convenience'
10805 fi
542f9784 10806 archive_cmds_need_lc=yes
10807 # This is similar to how AIX traditionally builds its shared libraries.
10808 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'
10809 fi
10810 fi
10811 ;;
10812
10813 amigaos*)
00aafda4 10814 case $host_cpu in
10815 powerpc)
10816 # see comment about AmigaOS4 .so support
10817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10818 archive_expsym_cmds=''
10819 ;;
10820 m68k)
10821 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)'
10822 hardcode_libdir_flag_spec='-L$libdir'
10823 hardcode_minus_L=yes
10824 ;;
10825 esac
542f9784 10826 ;;
10827
10828 bsdi[45]*)
10829 export_dynamic_flag_spec=-rdynamic
10830 ;;
10831
00aafda4 10832 cygwin* | mingw* | pw32* | cegcc*)
542f9784 10833 # When not using gcc, we currently assume that we are using
10834 # Microsoft Visual C++.
10835 # hardcode_libdir_flag_spec is actually meaningless, as there is
10836 # no search path for DLLs.
10837 hardcode_libdir_flag_spec=' '
10838 allow_undefined_flag=unsupported
10839 # Tell ltmain to make .lib files, not .a files.
10840 libext=lib
10841 # Tell ltmain to make .dll files, not .so files.
10842 shrext_cmds=".dll"
10843 # FIXME: Setting linknames here is a bad hack.
e6408286 10844 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 10845 # The linker will automatically build a .lib file if we build a DLL.
10846 old_archive_from_new_cmds='true'
10847 # FIXME: Should let the user specify the lib program.
10848 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10849 fix_srcfile_path='`cygpath -w "$srcfile"`'
10850 enable_shared_with_static_runtimes=yes
10851 ;;
10852
10853 darwin* | rhapsody*)
542f9784 10854
00aafda4 10855
10856 archive_cmds_need_lc=no
10857 hardcode_direct=no
10858 hardcode_automatic=yes
10859 hardcode_shlibpath_var=unsupported
e6408286 10860 if test "$lt_cv_ld_force_load" = "yes"; then
10861 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\"`'
10862 else
10863 whole_archive_flag_spec=''
10864 fi
00aafda4 10865 link_all_deplibs=yes
10866 allow_undefined_flag="$_lt_dar_allow_undefined"
10867 case $cc_basename in
10868 ifort*) _lt_dar_can_shared=yes ;;
10869 *) _lt_dar_can_shared=$GCC ;;
10870 esac
10871 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 10872 output_verbose_link_cmd=func_echo_all
00aafda4 10873 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10874 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10875 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}"
10876 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}"
10877
10878 else
10879 ld_shlibs=no
10880 fi
10881
542f9784 10882 ;;
10883
10884 dgux*)
10885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10886 hardcode_libdir_flag_spec='-L$libdir'
10887 hardcode_shlibpath_var=no
10888 ;;
10889
542f9784 10890 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10891 # support. Future versions do this automatically, but an explicit c++rt0.o
10892 # does not break anything, and helps significantly (at the cost of a little
10893 # extra space).
10894 freebsd2.2*)
10895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10896 hardcode_libdir_flag_spec='-R$libdir'
10897 hardcode_direct=yes
10898 hardcode_shlibpath_var=no
10899 ;;
10900
10901 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 10902 freebsd2.*)
542f9784 10903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_direct=yes
10905 hardcode_minus_L=yes
10906 hardcode_shlibpath_var=no
10907 ;;
10908
10909 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10910 freebsd* | dragonfly*)
10911 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10912 hardcode_libdir_flag_spec='-R$libdir'
10913 hardcode_direct=yes
10914 hardcode_shlibpath_var=no
10915 ;;
10916
10917 hpux9*)
10918 if test "$GCC" = yes; then
10919 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'
10920 else
10921 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'
10922 fi
10923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10924 hardcode_libdir_separator=:
10925 hardcode_direct=yes
10926
10927 # hardcode_minus_L: Not really in the search PATH,
10928 # but as the default location of the library.
10929 hardcode_minus_L=yes
10930 export_dynamic_flag_spec='${wl}-E'
10931 ;;
10932
10933 hpux10*)
e6408286 10934 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 10935 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10936 else
10937 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10938 fi
10939 if test "$with_gnu_ld" = no; then
10940 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10941 hardcode_libdir_flag_spec_ld='+b $libdir'
10942 hardcode_libdir_separator=:
10943 hardcode_direct=yes
10944 hardcode_direct_absolute=yes
10945 export_dynamic_flag_spec='${wl}-E'
10946 # hardcode_minus_L: Not really in the search PATH,
10947 # but as the default location of the library.
10948 hardcode_minus_L=yes
10949 fi
10950 ;;
10951
10952 hpux11*)
e6408286 10953 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 10954 case $host_cpu in
10955 hppa*64*)
10956 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10957 ;;
10958 ia64*)
00aafda4 10959 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 10960 ;;
10961 *)
10962 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10963 ;;
10964 esac
10965 else
10966 case $host_cpu in
10967 hppa*64*)
10968 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10969 ;;
10970 ia64*)
10971 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10972 ;;
10973 *)
e6408286 10974
10975 # Older versions of the 11.00 compiler do not understand -b yet
10976 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10978$as_echo_n "checking if $CC understands -b... " >&6; }
f00f02a3 10979if ${lt_cv_prog_compiler__b+:} false; then :
e6408286 10980 $as_echo_n "(cached) " >&6
10981else
10982 lt_cv_prog_compiler__b=no
10983 save_LDFLAGS="$LDFLAGS"
10984 LDFLAGS="$LDFLAGS -b"
10985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10987 # The linker can only warn and ignore the option if not recognized
10988 # So say no if there are warnings
10989 if test -s conftest.err; then
10990 # Append any errors to the config.log.
10991 cat conftest.err 1>&5
10992 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10994 if diff conftest.exp conftest.er2 >/dev/null; then
10995 lt_cv_prog_compiler__b=yes
10996 fi
10997 else
10998 lt_cv_prog_compiler__b=yes
10999 fi
11000 fi
11001 $RM -r conftest*
11002 LDFLAGS="$save_LDFLAGS"
11003
11004fi
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11006$as_echo "$lt_cv_prog_compiler__b" >&6; }
11007
11008if test x"$lt_cv_prog_compiler__b" = xyes; then
11009 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11010else
11011 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11012fi
11013
542f9784 11014 ;;
11015 esac
11016 fi
11017 if test "$with_gnu_ld" = no; then
11018 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11019 hardcode_libdir_separator=:
11020
11021 case $host_cpu in
11022 hppa*64*|ia64*)
11023 hardcode_direct=no
11024 hardcode_shlibpath_var=no
11025 ;;
11026 *)
11027 hardcode_direct=yes
11028 hardcode_direct_absolute=yes
11029 export_dynamic_flag_spec='${wl}-E'
11030
11031 # hardcode_minus_L: Not really in the search PATH,
11032 # but as the default location of the library.
11033 hardcode_minus_L=yes
11034 ;;
11035 esac
11036 fi
11037 ;;
11038
11039 irix5* | irix6* | nonstopux*)
11040 if test "$GCC" = yes; then
e6408286 11041 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 11042 # Try to use the -exported_symbol ld option, if it does not
11043 # work, assume that -exports_file does not work either and
11044 # implicitly export all symbols.
11045 save_LDFLAGS="$LDFLAGS"
11046 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11047 if test x$gcc_no_link = xyes; then
f00f02a3 11048 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 11049fi
cd9a469c 11050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051/* end confdefs.h. */
542f9784 11052int foo(void) {}
11053_ACEOF
cd9a469c 11054if ac_fn_c_try_link "$LINENO"; then :
e6408286 11055 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 11056
542f9784 11057fi
cd9a469c 11058rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
542f9784 11060 LDFLAGS="$save_LDFLAGS"
11061 else
e6408286 11062 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'
11063 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 11064 fi
11065 archive_cmds_need_lc='no'
11066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11067 hardcode_libdir_separator=:
11068 inherit_rpath=yes
11069 link_all_deplibs=yes
11070 ;;
11071
11072 netbsd*)
11073 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11075 else
11076 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11077 fi
11078 hardcode_libdir_flag_spec='-R$libdir'
11079 hardcode_direct=yes
11080 hardcode_shlibpath_var=no
11081 ;;
11082
11083 newsos6)
11084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11085 hardcode_direct=yes
11086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11087 hardcode_libdir_separator=:
11088 hardcode_shlibpath_var=no
11089 ;;
11090
11091 *nto* | *qnx*)
11092 ;;
11093
11094 openbsd*)
00aafda4 11095 if test -f /usr/libexec/ld.so; then
11096 hardcode_direct=yes
11097 hardcode_shlibpath_var=no
11098 hardcode_direct_absolute=yes
11099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 11100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
00aafda4 11101 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 11102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
00aafda4 11103 export_dynamic_flag_spec='${wl}-E'
11104 else
11105 case $host_os in
11106 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11107 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11108 hardcode_libdir_flag_spec='-R$libdir'
11109 ;;
11110 *)
11111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11112 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11113 ;;
11114 esac
11115 fi
11116 else
11117 ld_shlibs=no
542f9784 11118 fi
11119 ;;
11120
11121 os2*)
11122 hardcode_libdir_flag_spec='-L$libdir'
11123 hardcode_minus_L=yes
11124 allow_undefined_flag=unsupported
e6408286 11125 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 11126 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11127 ;;
11128
11129 osf3*)
11130 if test "$GCC" = yes; then
11131 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 11132 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 11133 else
11134 allow_undefined_flag=' -expect_unresolved \*'
e6408286 11135 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 11136 fi
11137 archive_cmds_need_lc='no'
11138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11139 hardcode_libdir_separator=:
11140 ;;
11141
11142 osf4* | osf5*) # as osf3* with the addition of -msym flag
11143 if test "$GCC" = yes; then
11144 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 11145 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 11146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11147 else
11148 allow_undefined_flag=' -expect_unresolved \*'
e6408286 11149 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 11150 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 11151 $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 11152
11153 # Both c and cxx compiler support -rpath directly
11154 hardcode_libdir_flag_spec='-rpath $libdir'
11155 fi
11156 archive_cmds_need_lc='no'
11157 hardcode_libdir_separator=:
11158 ;;
11159
11160 solaris*)
11161 no_undefined_flag=' -z defs'
11162 if test "$GCC" = yes; then
11163 wlarc='${wl}'
11164 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11165 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11166 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11167 else
11168 case `$CC -V 2>&1` in
11169 *"Compilers 5.0"*)
11170 wlarc=''
11171 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11173 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11174 ;;
11175 *)
11176 wlarc='${wl}'
11177 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11178 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11179 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11180 ;;
11181 esac
11182 fi
11183 hardcode_libdir_flag_spec='-R$libdir'
11184 hardcode_shlibpath_var=no
11185 case $host_os in
11186 solaris2.[0-5] | solaris2.[0-5].*) ;;
11187 *)
11188 # The compiler driver will combine and reorder linker options,
11189 # but understands `-z linker_flag'. GCC discards it without `$wl',
11190 # but is careful enough not to reorder.
11191 # Supported since Solaris 2.6 (maybe 2.5.1?)
11192 if test "$GCC" = yes; then
11193 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11194 else
11195 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11196 fi
11197 ;;
11198 esac
11199 link_all_deplibs=yes
11200 ;;
11201
11202 sunos4*)
11203 if test "x$host_vendor" = xsequent; then
11204 # Use $CC to link under sequent, because it throws in some extra .o
11205 # files that make .init and .fini sections work.
11206 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11207 else
11208 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11209 fi
11210 hardcode_libdir_flag_spec='-L$libdir'
11211 hardcode_direct=yes
11212 hardcode_minus_L=yes
11213 hardcode_shlibpath_var=no
11214 ;;
11215
11216 sysv4)
11217 case $host_vendor in
11218 sni)
11219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11220 hardcode_direct=yes # is this really true???
11221 ;;
11222 siemens)
11223 ## LD is ld it makes a PLAMLIB
11224 ## CC just makes a GrossModule.
11225 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11226 reload_cmds='$CC -r -o $output$reload_objs'
11227 hardcode_direct=no
11228 ;;
11229 motorola)
11230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11231 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11232 ;;
11233 esac
11234 runpath_var='LD_RUN_PATH'
11235 hardcode_shlibpath_var=no
11236 ;;
11237
11238 sysv4.3*)
11239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11240 hardcode_shlibpath_var=no
11241 export_dynamic_flag_spec='-Bexport'
11242 ;;
11243
11244 sysv4*MP*)
11245 if test -d /usr/nec; then
11246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11247 hardcode_shlibpath_var=no
11248 runpath_var=LD_RUN_PATH
11249 hardcode_runpath_var=yes
11250 ld_shlibs=yes
11251 fi
11252 ;;
11253
11254 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11255 no_undefined_flag='${wl}-z,text'
11256 archive_cmds_need_lc=no
11257 hardcode_shlibpath_var=no
11258 runpath_var='LD_RUN_PATH'
11259
11260 if test "$GCC" = yes; then
11261 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11262 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11263 else
11264 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11265 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11266 fi
11267 ;;
11268
11269 sysv5* | sco3.2v5* | sco5v6*)
11270 # Note: We can NOT use -z defs as we might desire, because we do not
11271 # link with -lc, and that would cause any symbols used from libc to
11272 # always be unresolved, which means just about no library would
11273 # ever link correctly. If we're not using GNU ld we use -z text
11274 # though, which does catch some bad symbols but isn't as heavy-handed
11275 # as -z defs.
11276 no_undefined_flag='${wl}-z,text'
11277 allow_undefined_flag='${wl}-z,nodefs'
11278 archive_cmds_need_lc=no
11279 hardcode_shlibpath_var=no
11280 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11281 hardcode_libdir_separator=':'
11282 link_all_deplibs=yes
11283 export_dynamic_flag_spec='${wl}-Bexport'
11284 runpath_var='LD_RUN_PATH'
11285
11286 if test "$GCC" = yes; then
11287 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11288 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11289 else
11290 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11291 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11292 fi
11293 ;;
11294
11295 uts4*)
11296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11297 hardcode_libdir_flag_spec='-L$libdir'
11298 hardcode_shlibpath_var=no
11299 ;;
11300
11301 *)
11302 ld_shlibs=no
11303 ;;
11304 esac
11305
11306 if test x$host_vendor = xsni; then
11307 case $host in
11308 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11309 export_dynamic_flag_spec='${wl}-Blargedynsym'
11310 ;;
11311 esac
11312 fi
11313 fi
11314
cd9a469c 11315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11316$as_echo "$ld_shlibs" >&6; }
542f9784 11317test "$ld_shlibs" = no && can_build_shared=no
11318
11319with_gnu_ld=$with_gnu_ld
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335#
11336# Do we need to explicitly link libc?
11337#
11338case "x$archive_cmds_need_lc" in
11339x|xyes)
11340 # Assume -lc should be added
11341 archive_cmds_need_lc=yes
11342
11343 if test "$enable_shared" = yes && test "$GCC" = yes; then
11344 case $archive_cmds in
11345 *'~'*)
11346 # FIXME: we may have to deal with multi-command sequences.
11347 ;;
11348 '$CC '*)
11349 # Test whether the compiler implicitly links with -lc since on some
11350 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11351 # to ld, don't add -lc before -lgcc.
cd9a469c 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11353$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
f00f02a3 11354if ${lt_cv_archive_cmds_need_lc+:} false; then :
cd9a469c 11355 $as_echo_n "(cached) " >&6
9e6fd619 11356else
11357 $RM conftest*
11358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 11359
cd9a469c 11360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 11361 (eval $ac_compile) 2>&5
11362 ac_status=$?
cd9a469c 11363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11364 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 11365 soname=conftest
11366 lib=conftest
11367 libobjs=conftest.$ac_objext
11368 deplibs=
11369 wl=$lt_prog_compiler_wl
11370 pic_flag=$lt_prog_compiler_pic
11371 compiler_flags=-v
11372 linker_flags=-v
11373 verstring=
11374 output_objdir=.
11375 libname=conftest
11376 lt_save_allow_undefined_flag=$allow_undefined_flag
11377 allow_undefined_flag=
cd9a469c 11378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 11379 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11380 ac_status=$?
cd9a469c 11381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11382 test $ac_status = 0; }
9e6fd619 11383 then
11384 lt_cv_archive_cmds_need_lc=no
11385 else
11386 lt_cv_archive_cmds_need_lc=yes
11387 fi
11388 allow_undefined_flag=$lt_save_allow_undefined_flag
11389 else
11390 cat conftest.err 1>&5
11391 fi
11392 $RM conftest*
11393
11394fi
cd9a469c 11395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11396$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9e6fd619 11397 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
542f9784 11398 ;;
11399 esac
11400 fi
11401 ;;
11402esac
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
cd9a469c 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11561$as_echo_n "checking dynamic linker characteristics... " >&6; }
00aafda4 11562
11563if test "$GCC" = yes; then
542f9784 11564 case $host_os in
11565 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11566 *) lt_awk_arg="/^libraries:/" ;;
11567 esac
e6408286 11568 case $host_os in
11569 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11570 *) lt_sed_strip_eq="s,=/,/,g" ;;
11571 esac
11572 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11573 case $lt_search_path_spec in
11574 *\;*)
542f9784 11575 # if the path contains ";" then we assume it to be the separator
11576 # otherwise default to the standard path separator (i.e. ":") - it is
11577 # assumed that no part of a normal pathname contains ";" but that should
11578 # okay in the real world where ";" in dirpaths is itself problematic.
e6408286 11579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11580 ;;
11581 *)
11582 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11583 ;;
11584 esac
542f9784 11585 # Ok, now we have the path, separated by spaces, we can step through it
11586 # and add multilib dir if necessary.
11587 lt_tmp_lt_search_path_spec=
11588 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11589 for lt_sys_path in $lt_search_path_spec; do
11590 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11591 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11592 else
11593 test -d "$lt_sys_path" && \
11594 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11595 fi
11596 done
e6408286 11597 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
542f9784 11598BEGIN {RS=" "; FS="/|\n";} {
11599 lt_foo="";
11600 lt_count=0;
11601 for (lt_i = NF; lt_i > 0; lt_i--) {
11602 if ($lt_i != "" && $lt_i != ".") {
11603 if ($lt_i == "..") {
11604 lt_count++;
11605 } else {
11606 if (lt_count == 0) {
11607 lt_foo="/" $lt_i lt_foo;
11608 } else {
11609 lt_count--;
11610 }
11611 }
11612 }
11613 }
11614 if (lt_foo != "") { lt_freq[lt_foo]++; }
11615 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11616}'`
e6408286 11617 # AWK program above erroneously prepends '/' to C:/dos/paths
11618 # for these hosts.
11619 case $host_os in
11620 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11621 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11622 esac
11623 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
542f9784 11624else
11625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11626fi
11627library_names_spec=
11628libname_spec='lib$name'
11629soname_spec=
11630shrext_cmds=".so"
11631postinstall_cmds=
11632postuninstall_cmds=
11633finish_cmds=
11634finish_eval=
11635shlibpath_var=
11636shlibpath_overrides_runpath=unknown
11637version_type=none
11638dynamic_linker="$host_os ld.so"
11639sys_lib_dlsearch_path_spec="/lib /usr/lib"
11640need_lib_prefix=unknown
11641hardcode_into_libs=no
11642
11643# when you set need_version to no, make sure it does not cause -set_version
11644# flags to be left without arguments
11645need_version=unknown
11646
11647case $host_os in
11648aix3*)
11649 version_type=linux
11650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11651 shlibpath_var=LIBPATH
11652
11653 # AIX 3 has no versioning support, so we append a major version to the name.
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 ;;
11656
21e07d2f 11657aix[4-9]*)
542f9784 11658 version_type=linux
11659 need_lib_prefix=no
11660 need_version=no
11661 hardcode_into_libs=yes
11662 if test "$host_cpu" = ia64; then
11663 # AIX 5 supports IA64
11664 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 else
11667 # With GCC up to 2.95.x, collect2 would create an import file
11668 # for dependence libraries. The import file would start with
11669 # the line `#! .'. This would cause the generated library to
11670 # depend on `.', always an invalid library. This was fixed in
11671 # development snapshots of GCC prior to 3.0.
11672 case $host_os in
11673 aix4 | aix4.[01] | aix4.[01].*)
11674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11675 echo ' yes '
11676 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11677 :
11678 else
11679 can_build_shared=no
11680 fi
11681 ;;
11682 esac
11683 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11684 # soname into executable. Probably we can add versioning support to
11685 # collect2, so additional links can be useful in future.
11686 if test "$aix_use_runtimelinking" = yes; then
11687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11688 # instead of lib<name>.a to let people know that these are not
11689 # typical AIX shared libraries.
11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11691 else
11692 # We preserve .a as extension for shared libraries through AIX4.2
11693 # and later when we are not doing run time linking.
11694 library_names_spec='${libname}${release}.a $libname.a'
11695 soname_spec='${libname}${release}${shared_ext}$major'
11696 fi
11697 shlibpath_var=LIBPATH
11698 fi
11699 ;;
11700
11701amigaos*)
00aafda4 11702 case $host_cpu in
11703 powerpc)
11704 # Since July 2007 AmigaOS4 officially supports .so libraries.
11705 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707 ;;
11708 m68k)
542f9784 11709 library_names_spec='$libname.ixlibrary $libname.a'
11710 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 11711 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 11712 ;;
11713 esac
542f9784 11714 ;;
11715
11716beos*)
11717 library_names_spec='${libname}${shared_ext}'
11718 dynamic_linker="$host_os ld.so"
11719 shlibpath_var=LIBRARY_PATH
11720 ;;
11721
11722bsdi[45]*)
11723 version_type=linux
11724 need_version=no
11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726 soname_spec='${libname}${release}${shared_ext}$major'
11727 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11730 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11731 # the default ld.so.conf also contains /usr/contrib/lib and
11732 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11733 # libtool to hard-code these into programs
11734 ;;
11735
00aafda4 11736cygwin* | mingw* | pw32* | cegcc*)
542f9784 11737 version_type=windows
11738 shrext_cmds=".dll"
11739 need_version=no
11740 need_lib_prefix=no
11741
00aafda4 11742 case $GCC,$host_os in
11743 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 11744 library_names_spec='$libname.dll.a'
11745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11746 postinstall_cmds='base_file=`basename \${file}`~
11747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11748 dldir=$destdir/`dirname \$dlpath`~
11749 test -d \$dldir || mkdir -p \$dldir~
11750 $install_prog $dir/$dlname \$dldir/$dlname~
11751 chmod a+x \$dldir/$dlname~
11752 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11753 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11754 fi'
11755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11756 dlpath=$dir/\$dldll~
11757 $RM \$dlpath'
11758 shlibpath_overrides_runpath=yes
11759
11760 case $host_os in
11761 cygwin*)
11762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 11764
11765 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
542f9784 11766 ;;
00aafda4 11767 mingw* | cegcc*)
542f9784 11768 # MinGW DLLs use traditional 'lib' prefix
11769 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 11770 ;;
11771 pw32*)
11772 # pw32 DLLs use 'pw' prefix rather than 'lib'
11773 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11774 ;;
11775 esac
11776 ;;
11777
11778 *)
11779 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11780 ;;
11781 esac
11782 dynamic_linker='Win32 ld.exe'
11783 # FIXME: first we should search . and the directory the executable is in
11784 shlibpath_var=PATH
11785 ;;
11786
11787darwin* | rhapsody*)
11788 dynamic_linker="$host_os dyld"
11789 version_type=darwin
11790 need_lib_prefix=no
11791 need_version=no
11792 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11793 soname_spec='${libname}${release}${major}$shared_ext'
11794 shlibpath_overrides_runpath=yes
11795 shlibpath_var=DYLD_LIBRARY_PATH
11796 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11797
11798 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11799 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11800 ;;
11801
11802dgux*)
11803 version_type=linux
11804 need_lib_prefix=no
11805 need_version=no
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11807 soname_spec='${libname}${release}${shared_ext}$major'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 ;;
11810
542f9784 11811freebsd* | dragonfly*)
11812 # DragonFly does not have aout. When/if they implement a new
11813 # versioning mechanism, adjust this.
11814 if test -x /usr/bin/objformat; then
11815 objformat=`/usr/bin/objformat`
11816 else
11817 case $host_os in
30369aff 11818 freebsd[23].*) objformat=aout ;;
542f9784 11819 *) objformat=elf ;;
11820 esac
11821 fi
11822 version_type=freebsd-$objformat
11823 case $version_type in
11824 freebsd-elf*)
11825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11826 need_version=no
11827 need_lib_prefix=no
11828 ;;
11829 freebsd-*)
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11831 need_version=yes
11832 ;;
11833 esac
11834 shlibpath_var=LD_LIBRARY_PATH
11835 case $host_os in
30369aff 11836 freebsd2.*)
542f9784 11837 shlibpath_overrides_runpath=yes
11838 ;;
11839 freebsd3.[01]* | freebsdelf3.[01]*)
11840 shlibpath_overrides_runpath=yes
11841 hardcode_into_libs=yes
11842 ;;
11843 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11844 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11845 shlibpath_overrides_runpath=no
11846 hardcode_into_libs=yes
11847 ;;
11848 *) # from 4.6 on, and DragonFly
11849 shlibpath_overrides_runpath=yes
11850 hardcode_into_libs=yes
11851 ;;
11852 esac
11853 ;;
11854
11855gnu*)
11856 version_type=linux
11857 need_lib_prefix=no
11858 need_version=no
11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11860 soname_spec='${libname}${release}${shared_ext}$major'
11861 shlibpath_var=LD_LIBRARY_PATH
11862 hardcode_into_libs=yes
11863 ;;
11864
e6408286 11865haiku*)
11866 version_type=linux
11867 need_lib_prefix=no
11868 need_version=no
11869 dynamic_linker="$host_os runtime_loader"
11870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11871 soname_spec='${libname}${release}${shared_ext}$major'
11872 shlibpath_var=LIBRARY_PATH
11873 shlibpath_overrides_runpath=yes
11874 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11875 hardcode_into_libs=yes
11876 ;;
11877
542f9784 11878hpux9* | hpux10* | hpux11*)
11879 # Give a soname corresponding to the major version so that dld.sl refuses to
11880 # link against other versions.
11881 version_type=sunos
11882 need_lib_prefix=no
11883 need_version=no
11884 case $host_cpu in
11885 ia64*)
11886 shrext_cmds='.so'
11887 hardcode_into_libs=yes
11888 dynamic_linker="$host_os dld.so"
11889 shlibpath_var=LD_LIBRARY_PATH
11890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 if test "X$HPUX_IA64_MODE" = X32; then
11894 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11895 else
11896 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11897 fi
11898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11899 ;;
11900 hppa*64*)
11901 shrext_cmds='.sl'
11902 hardcode_into_libs=yes
11903 dynamic_linker="$host_os dld.sl"
11904 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11910 ;;
11911 *)
11912 shrext_cmds='.sl'
11913 dynamic_linker="$host_os dld.sl"
11914 shlibpath_var=SHLIB_PATH
11915 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11917 soname_spec='${libname}${release}${shared_ext}$major'
11918 ;;
11919 esac
e6408286 11920 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 11921 postinstall_cmds='chmod 555 $lib'
e6408286 11922 # or fails outright, so override atomically:
11923 install_override_mode=555
542f9784 11924 ;;
11925
11926interix[3-9]*)
11927 version_type=linux
11928 need_lib_prefix=no
11929 need_version=no
11930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11931 soname_spec='${libname}${release}${shared_ext}$major'
11932 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11933 shlibpath_var=LD_LIBRARY_PATH
11934 shlibpath_overrides_runpath=no
11935 hardcode_into_libs=yes
11936 ;;
11937
11938irix5* | irix6* | nonstopux*)
11939 case $host_os in
11940 nonstopux*) version_type=nonstopux ;;
11941 *)
11942 if test "$lt_cv_prog_gnu_ld" = yes; then
11943 version_type=linux
11944 else
11945 version_type=irix
11946 fi ;;
11947 esac
11948 need_lib_prefix=no
11949 need_version=no
11950 soname_spec='${libname}${release}${shared_ext}$major'
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11952 case $host_os in
11953 irix5* | nonstopux*)
11954 libsuff= shlibsuff=
11955 ;;
11956 *)
11957 case $LD in # libtool.m4 will add one of these switches to LD
11958 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11959 libsuff= shlibsuff= libmagic=32-bit;;
11960 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11961 libsuff=32 shlibsuff=N32 libmagic=N32;;
11962 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11963 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11964 *) libsuff= shlibsuff= libmagic=never-match;;
11965 esac
11966 ;;
11967 esac
11968 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11969 shlibpath_overrides_runpath=no
11970 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11971 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11972 hardcode_into_libs=yes
11973 ;;
11974
11975# No shared lib support for Linux oldld, aout, or coff.
11976linux*oldld* | linux*aout* | linux*coff*)
11977 dynamic_linker=no
11978 ;;
11979
11980# This must be Linux ELF.
9af964d4 11981linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 11982 version_type=linux
11983 need_lib_prefix=no
11984 need_version=no
11985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11986 soname_spec='${libname}${release}${shared_ext}$major'
11987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11988 shlibpath_var=LD_LIBRARY_PATH
11989 shlibpath_overrides_runpath=no
9e6fd619 11990
542f9784 11991 # Some binutils ld are patched to set DT_RUNPATH
f00f02a3 11992 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cd9a469c 11993 $as_echo_n "(cached) " >&6
9e6fd619 11994else
11995 lt_cv_shlibpath_overrides_runpath=no
11996 save_LDFLAGS=$LDFLAGS
11997 save_libdir=$libdir
11998 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11999 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12000 if test x$gcc_no_link = xyes; then
f00f02a3 12001 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12002fi
cd9a469c 12003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12004/* end confdefs.h. */
12005
12006int
12007main ()
12008{
12009
12010 ;
12011 return 0;
12012}
12013_ACEOF
cd9a469c 12014if ac_fn_c_try_link "$LINENO"; then :
12015 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 12016 lt_cv_shlibpath_overrides_runpath=yes
542f9784 12017fi
542f9784 12018fi
cd9a469c 12019rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
9e6fd619 12021 LDFLAGS=$save_LDFLAGS
12022 libdir=$save_libdir
12023
12024fi
12025
12026 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 12027
12028 # This implies no fast_install, which is unacceptable.
12029 # Some rework will be needed to allow for fast_install
12030 # before this can be enabled.
12031 hardcode_into_libs=yes
12032
12033 # Append ld.so.conf contents to the search path
12034 if test -f /etc/ld.so.conf; then
e6408286 12035 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 12036 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12037 fi
12038
12039 # We used to test for /lib/ld.so.1 and disable shared libraries on
12040 # powerpc, because MkLinux only supported shared libraries with the
12041 # GNU dynamic linker. Since this was broken with cross compilers,
12042 # most powerpc-linux boxes support dynamic linking these days and
12043 # people can always --disable-shared, the test was removed, and we
12044 # assume the GNU/Linux dynamic linker is in use.
12045 dynamic_linker='GNU/Linux ld.so'
12046 ;;
12047
12048netbsd*)
12049 version_type=sunos
12050 need_lib_prefix=no
12051 need_version=no
12052 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12055 dynamic_linker='NetBSD (a.out) ld.so'
12056 else
12057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12058 soname_spec='${libname}${release}${shared_ext}$major'
12059 dynamic_linker='NetBSD ld.elf_so'
12060 fi
12061 shlibpath_var=LD_LIBRARY_PATH
12062 shlibpath_overrides_runpath=yes
12063 hardcode_into_libs=yes
12064 ;;
12065
12066newsos6)
12067 version_type=linux
12068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12069 shlibpath_var=LD_LIBRARY_PATH
12070 shlibpath_overrides_runpath=yes
12071 ;;
12072
12073*nto* | *qnx*)
12074 version_type=qnx
12075 need_lib_prefix=no
12076 need_version=no
12077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12078 soname_spec='${libname}${release}${shared_ext}$major'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 shlibpath_overrides_runpath=no
12081 hardcode_into_libs=yes
12082 dynamic_linker='ldqnx.so'
12083 ;;
12084
12085openbsd*)
12086 version_type=sunos
12087 sys_lib_dlsearch_path_spec="/usr/lib"
12088 need_lib_prefix=no
12089 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12090 case $host_os in
12091 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12092 *) need_version=no ;;
12093 esac
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12098 case $host_os in
12099 openbsd2.[89] | openbsd2.[89].*)
12100 shlibpath_overrides_runpath=no
12101 ;;
12102 *)
12103 shlibpath_overrides_runpath=yes
12104 ;;
12105 esac
12106 else
12107 shlibpath_overrides_runpath=yes
12108 fi
12109 ;;
12110
12111os2*)
12112 libname_spec='$name'
12113 shrext_cmds=".dll"
12114 need_lib_prefix=no
12115 library_names_spec='$libname${shared_ext} $libname.a'
12116 dynamic_linker='OS/2 ld.exe'
12117 shlibpath_var=LIBPATH
12118 ;;
12119
12120osf3* | osf4* | osf5*)
12121 version_type=osf
12122 need_lib_prefix=no
12123 need_version=no
12124 soname_spec='${libname}${release}${shared_ext}$major'
12125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12126 shlibpath_var=LD_LIBRARY_PATH
12127 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12128 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12129 ;;
12130
12131rdos*)
12132 dynamic_linker=no
12133 ;;
12134
12135solaris*)
12136 version_type=linux
12137 need_lib_prefix=no
12138 need_version=no
12139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12140 soname_spec='${libname}${release}${shared_ext}$major'
12141 shlibpath_var=LD_LIBRARY_PATH
12142 shlibpath_overrides_runpath=yes
12143 hardcode_into_libs=yes
12144 # ldd complains unless libraries are executable
12145 postinstall_cmds='chmod +x $lib'
12146 ;;
12147
12148sunos4*)
12149 version_type=sunos
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12152 shlibpath_var=LD_LIBRARY_PATH
12153 shlibpath_overrides_runpath=yes
12154 if test "$with_gnu_ld" = yes; then
12155 need_lib_prefix=no
12156 fi
12157 need_version=yes
12158 ;;
12159
12160sysv4 | sysv4.3*)
12161 version_type=linux
12162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12163 soname_spec='${libname}${release}${shared_ext}$major'
12164 shlibpath_var=LD_LIBRARY_PATH
12165 case $host_vendor in
12166 sni)
12167 shlibpath_overrides_runpath=no
12168 need_lib_prefix=no
12169 runpath_var=LD_RUN_PATH
12170 ;;
12171 siemens)
12172 need_lib_prefix=no
12173 ;;
12174 motorola)
12175 need_lib_prefix=no
12176 need_version=no
12177 shlibpath_overrides_runpath=no
12178 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12179 ;;
12180 esac
12181 ;;
12182
12183sysv4*MP*)
12184 if test -d /usr/nec ;then
12185 version_type=linux
12186 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12187 soname_spec='$libname${shared_ext}.$major'
12188 shlibpath_var=LD_LIBRARY_PATH
12189 fi
12190 ;;
12191
12192sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12193 version_type=freebsd-elf
12194 need_lib_prefix=no
12195 need_version=no
12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12197 soname_spec='${libname}${release}${shared_ext}$major'
12198 shlibpath_var=LD_LIBRARY_PATH
12199 shlibpath_overrides_runpath=yes
12200 hardcode_into_libs=yes
12201 if test "$with_gnu_ld" = yes; then
12202 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12203 else
12204 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12205 case $host_os in
12206 sco3.2v5*)
12207 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12208 ;;
12209 esac
12210 fi
12211 sys_lib_dlsearch_path_spec='/usr/lib'
12212 ;;
12213
12214tpf*)
12215 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12216 version_type=linux
12217 need_lib_prefix=no
12218 need_version=no
00aafda4 12219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 12220 shlibpath_var=LD_LIBRARY_PATH
12221 shlibpath_overrides_runpath=no
12222 hardcode_into_libs=yes
12223 ;;
12224
12225uts4*)
12226 version_type=linux
12227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12228 soname_spec='${libname}${release}${shared_ext}$major'
12229 shlibpath_var=LD_LIBRARY_PATH
12230 ;;
12231
12232*)
12233 dynamic_linker=no
12234 ;;
12235esac
cd9a469c 12236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12237$as_echo "$dynamic_linker" >&6; }
542f9784 12238test "$dynamic_linker" = no && can_build_shared=no
12239
12240variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12241if test "$GCC" = yes; then
12242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12243fi
12244
00aafda4 12245if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12246 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12247fi
12248if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12249 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12250fi
12251
542f9784 12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
e6408286 12332
12333
12334
12335
12336
542f9784 12337
12338
12339
12340
12341
12342
cd9a469c 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12344$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
542f9784 12345hardcode_action=
12346if test -n "$hardcode_libdir_flag_spec" ||
12347 test -n "$runpath_var" ||
12348 test "X$hardcode_automatic" = "Xyes" ; then
12349
12350 # We can hardcode non-existent directories.
12351 if test "$hardcode_direct" != no &&
12352 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12353 # have to relink, otherwise we might link with an installed library
12354 # when we should be linking with a yet-to-be-installed one
12355 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12356 test "$hardcode_minus_L" != no; then
12357 # Linking always hardcodes the temporary library directory.
12358 hardcode_action=relink
12359 else
12360 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12361 hardcode_action=immediate
12362 fi
12363else
12364 # We cannot hardcode anything, or else we can only hardcode existing
12365 # directories.
12366 hardcode_action=unsupported
12367fi
cd9a469c 12368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12369$as_echo "$hardcode_action" >&6; }
542f9784 12370
12371if test "$hardcode_action" = relink ||
12372 test "$inherit_rpath" = yes; then
12373 # Fast installation is not supported
12374 enable_fast_install=no
12375elif test "$shlibpath_overrides_runpath" = yes ||
12376 test "$enable_shared" = no; then
12377 # Fast installation is not necessary
12378 enable_fast_install=needless
12379fi
12380
12381
12382
12383
12384
12385
12386 if test "x$enable_dlopen" != xyes; then
12387 enable_dlopen=unknown
12388 enable_dlopen_self=unknown
12389 enable_dlopen_self_static=unknown
12390else
12391 lt_cv_dlopen=no
12392 lt_cv_dlopen_libs=
12393
12394 case $host_os in
12395 beos*)
12396 lt_cv_dlopen="load_add_on"
12397 lt_cv_dlopen_libs=
12398 lt_cv_dlopen_self=yes
12399 ;;
12400
00aafda4 12401 mingw* | pw32* | cegcc*)
542f9784 12402 lt_cv_dlopen="LoadLibrary"
12403 lt_cv_dlopen_libs=
12404 ;;
12405
12406 cygwin*)
12407 lt_cv_dlopen="dlopen"
12408 lt_cv_dlopen_libs=
12409 ;;
12410
12411 darwin*)
12412 # if libdl is installed we need to link against it
cd9a469c 12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12414$as_echo_n "checking for dlopen in -ldl... " >&6; }
f00f02a3 12415if ${ac_cv_lib_dl_dlopen+:} false; then :
cd9a469c 12416 $as_echo_n "(cached) " >&6
542f9784 12417else
12418 ac_check_lib_save_LIBS=$LIBS
12419LIBS="-ldl $LIBS"
12420if test x$gcc_no_link = xyes; then
f00f02a3 12421 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12422fi
cd9a469c 12423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12424/* end confdefs.h. */
12425
cd9a469c 12426/* Override any GCC internal prototype to avoid an error.
12427 Use char because int might match the return type of a GCC
12428 builtin and then its argument prototype would still apply. */
542f9784 12429#ifdef __cplusplus
12430extern "C"
12431#endif
542f9784 12432char dlopen ();
12433int
12434main ()
12435{
cd9a469c 12436return dlopen ();
542f9784 12437 ;
12438 return 0;
12439}
12440_ACEOF
cd9a469c 12441if ac_fn_c_try_link "$LINENO"; then :
542f9784 12442 ac_cv_lib_dl_dlopen=yes
12443else
cd9a469c 12444 ac_cv_lib_dl_dlopen=no
542f9784 12445fi
cd9a469c 12446rm -f core conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
542f9784 12448LIBS=$ac_check_lib_save_LIBS
12449fi
cd9a469c 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12451$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
f00f02a3 12452if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
542f9784 12453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12454else
12455
12456 lt_cv_dlopen="dyld"
12457 lt_cv_dlopen_libs=
12458 lt_cv_dlopen_self=yes
12459
12460fi
12461
12462 ;;
12463
12464 *)
cd9a469c 12465 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
f00f02a3 12466if test "x$ac_cv_func_shl_load" = xyes; then :
542f9784 12467 lt_cv_dlopen="shl_load"
12468else
cd9a469c 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12470$as_echo_n "checking for shl_load in -ldld... " >&6; }
f00f02a3 12471if ${ac_cv_lib_dld_shl_load+:} false; then :
cd9a469c 12472 $as_echo_n "(cached) " >&6
542f9784 12473else
12474 ac_check_lib_save_LIBS=$LIBS
12475LIBS="-ldld $LIBS"
12476if test x$gcc_no_link = xyes; then
f00f02a3 12477 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12478fi
cd9a469c 12479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12480/* end confdefs.h. */
12481
cd9a469c 12482/* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
542f9784 12485#ifdef __cplusplus
12486extern "C"
12487#endif
542f9784 12488char shl_load ();
12489int
12490main ()
12491{
cd9a469c 12492return shl_load ();
542f9784 12493 ;
12494 return 0;
12495}
12496_ACEOF
cd9a469c 12497if ac_fn_c_try_link "$LINENO"; then :
542f9784 12498 ac_cv_lib_dld_shl_load=yes
12499else
cd9a469c 12500 ac_cv_lib_dld_shl_load=no
542f9784 12501fi
cd9a469c 12502rm -f core conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
542f9784 12504LIBS=$ac_check_lib_save_LIBS
12505fi
cd9a469c 12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12507$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
f00f02a3 12508if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
00aafda4 12509 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
542f9784 12510else
cd9a469c 12511 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
f00f02a3 12512if test "x$ac_cv_func_dlopen" = xyes; then :
542f9784 12513 lt_cv_dlopen="dlopen"
12514else
cd9a469c 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12516$as_echo_n "checking for dlopen in -ldl... " >&6; }
f00f02a3 12517if ${ac_cv_lib_dl_dlopen+:} false; then :
cd9a469c 12518 $as_echo_n "(cached) " >&6
542f9784 12519else
12520 ac_check_lib_save_LIBS=$LIBS
12521LIBS="-ldl $LIBS"
12522if test x$gcc_no_link = xyes; then
f00f02a3 12523 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12524fi
cd9a469c 12525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12526/* end confdefs.h. */
12527
cd9a469c 12528/* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
542f9784 12531#ifdef __cplusplus
12532extern "C"
12533#endif
542f9784 12534char dlopen ();
12535int
12536main ()
12537{
cd9a469c 12538return dlopen ();
542f9784 12539 ;
12540 return 0;
12541}
12542_ACEOF
cd9a469c 12543if ac_fn_c_try_link "$LINENO"; then :
542f9784 12544 ac_cv_lib_dl_dlopen=yes
12545else
cd9a469c 12546 ac_cv_lib_dl_dlopen=no
542f9784 12547fi
cd9a469c 12548rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
542f9784 12550LIBS=$ac_check_lib_save_LIBS
12551fi
cd9a469c 12552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12553$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
f00f02a3 12554if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
542f9784 12555 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12556else
cd9a469c 12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12558$as_echo_n "checking for dlopen in -lsvld... " >&6; }
f00f02a3 12559if ${ac_cv_lib_svld_dlopen+:} false; then :
cd9a469c 12560 $as_echo_n "(cached) " >&6
542f9784 12561else
12562 ac_check_lib_save_LIBS=$LIBS
12563LIBS="-lsvld $LIBS"
12564if test x$gcc_no_link = xyes; then
f00f02a3 12565 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12566fi
cd9a469c 12567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12568/* end confdefs.h. */
12569
cd9a469c 12570/* Override any GCC internal prototype to avoid an error.
12571 Use char because int might match the return type of a GCC
12572 builtin and then its argument prototype would still apply. */
542f9784 12573#ifdef __cplusplus
12574extern "C"
12575#endif
542f9784 12576char dlopen ();
12577int
12578main ()
12579{
cd9a469c 12580return dlopen ();
542f9784 12581 ;
12582 return 0;
12583}
12584_ACEOF
cd9a469c 12585if ac_fn_c_try_link "$LINENO"; then :
542f9784 12586 ac_cv_lib_svld_dlopen=yes
12587else
cd9a469c 12588 ac_cv_lib_svld_dlopen=no
542f9784 12589fi
cd9a469c 12590rm -f core conftest.err conftest.$ac_objext \
12591 conftest$ac_exeext conftest.$ac_ext
542f9784 12592LIBS=$ac_check_lib_save_LIBS
12593fi
cd9a469c 12594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12595$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
f00f02a3 12596if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
542f9784 12597 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12598else
cd9a469c 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12600$as_echo_n "checking for dld_link in -ldld... " >&6; }
f00f02a3 12601if ${ac_cv_lib_dld_dld_link+:} false; then :
cd9a469c 12602 $as_echo_n "(cached) " >&6
542f9784 12603else
12604 ac_check_lib_save_LIBS=$LIBS
12605LIBS="-ldld $LIBS"
12606if test x$gcc_no_link = xyes; then
f00f02a3 12607 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12608fi
cd9a469c 12609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12610/* end confdefs.h. */
12611
cd9a469c 12612/* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
542f9784 12615#ifdef __cplusplus
12616extern "C"
12617#endif
542f9784 12618char dld_link ();
12619int
12620main ()
12621{
cd9a469c 12622return dld_link ();
542f9784 12623 ;
12624 return 0;
12625}
12626_ACEOF
cd9a469c 12627if ac_fn_c_try_link "$LINENO"; then :
542f9784 12628 ac_cv_lib_dld_dld_link=yes
12629else
cd9a469c 12630 ac_cv_lib_dld_dld_link=no
542f9784 12631fi
cd9a469c 12632rm -f core conftest.err conftest.$ac_objext \
12633 conftest$ac_exeext conftest.$ac_ext
542f9784 12634LIBS=$ac_check_lib_save_LIBS
12635fi
cd9a469c 12636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12637$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
f00f02a3 12638if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
00aafda4 12639 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
542f9784 12640fi
12641
12642
12643fi
12644
12645
12646fi
12647
12648
12649fi
12650
12651
12652fi
12653
12654
12655fi
12656
12657 ;;
12658 esac
12659
12660 if test "x$lt_cv_dlopen" != xno; then
12661 enable_dlopen=yes
12662 else
12663 enable_dlopen=no
12664 fi
12665
12666 case $lt_cv_dlopen in
12667 dlopen)
12668 save_CPPFLAGS="$CPPFLAGS"
12669 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12670
12671 save_LDFLAGS="$LDFLAGS"
12672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12673
12674 save_LIBS="$LIBS"
12675 LIBS="$lt_cv_dlopen_libs $LIBS"
12676
cd9a469c 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12678$as_echo_n "checking whether a program can dlopen itself... " >&6; }
f00f02a3 12679if ${lt_cv_dlopen_self+:} false; then :
cd9a469c 12680 $as_echo_n "(cached) " >&6
542f9784 12681else
12682 if test "$cross_compiling" = yes; then :
12683 lt_cv_dlopen_self=cross
12684else
12685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12686 lt_status=$lt_dlunknown
12687 cat > conftest.$ac_ext <<_LT_EOF
51177ee3 12688#line 12688 "configure"
542f9784 12689#include "confdefs.h"
12690
12691#if HAVE_DLFCN_H
12692#include <dlfcn.h>
12693#endif
12694
12695#include <stdio.h>
12696
12697#ifdef RTLD_GLOBAL
12698# define LT_DLGLOBAL RTLD_GLOBAL
12699#else
12700# ifdef DL_GLOBAL
12701# define LT_DLGLOBAL DL_GLOBAL
12702# else
12703# define LT_DLGLOBAL 0
12704# endif
12705#endif
12706
12707/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12708 find out it does not work in some platform. */
12709#ifndef LT_DLLAZY_OR_NOW
12710# ifdef RTLD_LAZY
12711# define LT_DLLAZY_OR_NOW RTLD_LAZY
12712# else
12713# ifdef DL_LAZY
12714# define LT_DLLAZY_OR_NOW DL_LAZY
12715# else
12716# ifdef RTLD_NOW
12717# define LT_DLLAZY_OR_NOW RTLD_NOW
12718# else
12719# ifdef DL_NOW
12720# define LT_DLLAZY_OR_NOW DL_NOW
12721# else
12722# define LT_DLLAZY_OR_NOW 0
12723# endif
12724# endif
12725# endif
12726# endif
12727#endif
12728
e6408286 12729/* When -fvisbility=hidden is used, assume the code has been annotated
12730 correspondingly for the symbols needed. */
12731#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12732void fnord () __attribute__((visibility("default")));
12733#endif
12734
12735void fnord () { int i=42; }
542f9784 12736int main ()
12737{
12738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12739 int status = $lt_dlunknown;
12740
12741 if (self)
12742 {
12743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 12744 else
12745 {
12746 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12747 else puts (dlerror ());
12748 }
542f9784 12749 /* dlclose (self); */
12750 }
12751 else
12752 puts (dlerror ());
12753
00aafda4 12754 return status;
542f9784 12755}
12756_LT_EOF
cd9a469c 12757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 12758 (eval $ac_link) 2>&5
12759 ac_status=$?
cd9a469c 12760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12761 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 12762 (./conftest; exit; ) >&5 2>/dev/null
12763 lt_status=$?
12764 case x$lt_status in
12765 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12766 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12767 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12768 esac
12769 else :
12770 # compilation failed
12771 lt_cv_dlopen_self=no
12772 fi
12773fi
12774rm -fr conftest*
12775
12776
12777fi
cd9a469c 12778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12779$as_echo "$lt_cv_dlopen_self" >&6; }
542f9784 12780
12781 if test "x$lt_cv_dlopen_self" = xyes; then
12782 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cd9a469c 12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12784$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
f00f02a3 12785if ${lt_cv_dlopen_self_static+:} false; then :
cd9a469c 12786 $as_echo_n "(cached) " >&6
542f9784 12787else
12788 if test "$cross_compiling" = yes; then :
12789 lt_cv_dlopen_self_static=cross
12790else
12791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12792 lt_status=$lt_dlunknown
12793 cat > conftest.$ac_ext <<_LT_EOF
51177ee3 12794#line 12794 "configure"
542f9784 12795#include "confdefs.h"
12796
12797#if HAVE_DLFCN_H
12798#include <dlfcn.h>
12799#endif
12800
12801#include <stdio.h>
12802
12803#ifdef RTLD_GLOBAL
12804# define LT_DLGLOBAL RTLD_GLOBAL
12805#else
12806# ifdef DL_GLOBAL
12807# define LT_DLGLOBAL DL_GLOBAL
12808# else
12809# define LT_DLGLOBAL 0
12810# endif
12811#endif
12812
12813/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12814 find out it does not work in some platform. */
12815#ifndef LT_DLLAZY_OR_NOW
12816# ifdef RTLD_LAZY
12817# define LT_DLLAZY_OR_NOW RTLD_LAZY
12818# else
12819# ifdef DL_LAZY
12820# define LT_DLLAZY_OR_NOW DL_LAZY
12821# else
12822# ifdef RTLD_NOW
12823# define LT_DLLAZY_OR_NOW RTLD_NOW
12824# else
12825# ifdef DL_NOW
12826# define LT_DLLAZY_OR_NOW DL_NOW
12827# else
12828# define LT_DLLAZY_OR_NOW 0
12829# endif
12830# endif
12831# endif
12832# endif
12833#endif
12834
e6408286 12835/* When -fvisbility=hidden is used, assume the code has been annotated
12836 correspondingly for the symbols needed. */
12837#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12838void fnord () __attribute__((visibility("default")));
12839#endif
12840
12841void fnord () { int i=42; }
542f9784 12842int main ()
12843{
12844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12845 int status = $lt_dlunknown;
12846
12847 if (self)
12848 {
12849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 12850 else
12851 {
12852 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12853 else puts (dlerror ());
12854 }
542f9784 12855 /* dlclose (self); */
12856 }
12857 else
12858 puts (dlerror ());
12859
00aafda4 12860 return status;
542f9784 12861}
12862_LT_EOF
cd9a469c 12863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 12864 (eval $ac_link) 2>&5
12865 ac_status=$?
cd9a469c 12866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12867 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 12868 (./conftest; exit; ) >&5 2>/dev/null
12869 lt_status=$?
12870 case x$lt_status in
12871 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12872 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12873 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12874 esac
12875 else :
12876 # compilation failed
12877 lt_cv_dlopen_self_static=no
12878 fi
12879fi
12880rm -fr conftest*
12881
12882
12883fi
cd9a469c 12884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12885$as_echo "$lt_cv_dlopen_self_static" >&6; }
542f9784 12886 fi
12887
12888 CPPFLAGS="$save_CPPFLAGS"
12889 LDFLAGS="$save_LDFLAGS"
12890 LIBS="$save_LIBS"
12891 ;;
12892 esac
12893
12894 case $lt_cv_dlopen_self in
12895 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12896 *) enable_dlopen_self=unknown ;;
12897 esac
12898
12899 case $lt_cv_dlopen_self_static in
12900 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12901 *) enable_dlopen_self_static=unknown ;;
12902 esac
12903fi
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921striplib=
12922old_striplib=
cd9a469c 12923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12924$as_echo_n "checking whether stripping libraries is possible... " >&6; }
542f9784 12925if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12926 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12927 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cd9a469c 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12929$as_echo "yes" >&6; }
542f9784 12930else
12931# FIXME - insert some real tests, host_os isn't really good enough
12932 case $host_os in
12933 darwin*)
12934 if test -n "$STRIP" ; then
12935 striplib="$STRIP -x"
12936 old_striplib="$STRIP -S"
cd9a469c 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12938$as_echo "yes" >&6; }
542f9784 12939 else
cd9a469c 12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941$as_echo "no" >&6; }
542f9784 12942 fi
12943 ;;
12944 *)
cd9a469c 12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946$as_echo "no" >&6; }
542f9784 12947 ;;
12948 esac
12949fi
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
e6408286 12962 # Report which library types will actually be built
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12964$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12966$as_echo "$can_build_shared" >&6; }
542f9784 12967
e6408286 12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12969$as_echo_n "checking whether to build shared libraries... " >&6; }
12970 test "$can_build_shared" = "no" && enable_shared=no
542f9784 12971
e6408286 12972 # On AIX, shared libraries and static libraries use the same namespace, and
12973 # are all built from PIC.
12974 case $host_os in
12975 aix3*)
12976 test "$enable_shared" = yes && enable_static=no
12977 if test -n "$RANLIB"; then
12978 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12979 postinstall_cmds='$RANLIB $lib'
12980 fi
12981 ;;
542f9784 12982
e6408286 12983 aix[4-9]*)
12984 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12985 test "$enable_shared" = yes && enable_static=no
12986 fi
12987 ;;
12988 esac
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12990$as_echo "$enable_shared" >&6; }
542f9784 12991
e6408286 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12993$as_echo_n "checking whether to build static libraries... " >&6; }
12994 # Make sure either enable_shared or enable_static is yes.
12995 test "$enable_shared" = yes || enable_static=yes
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12997$as_echo "$enable_static" >&6; }
542f9784 12998
542f9784 12999
542f9784 13000
542f9784 13001
13002fi
542f9784 13003ac_ext=c
13004ac_cpp='$CPP $CPPFLAGS'
13005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13007ac_compiler_gnu=$ac_cv_c_compiler_gnu
13008
e6408286 13009CC="$lt_save_CC"
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023 ac_config_commands="$ac_config_commands libtool"
13024
13025
13026
13027
13028# Only expand once:
13029
13030
13031
13032
8c35d268 13033
13034case $host in
13035 *-cygwin* | *-mingw*)
13036 # 'host' will be top-level target in the case of a target lib,
13037 # we must compare to with_cross_host to decide if this is a native
13038 # or cross-compiler and select where to install dlls appropriately.
13039 if test -n "$with_cross_host" &&
13040 test x"$with_cross_host" != x"no"; then
13041 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
13042 else
13043 lt_host_flags='-no-undefined -bindir "$(bindir)"';
13044 fi
13045 ;;
13046 *)
13047 lt_host_flags=
13048 ;;
13049esac
13050
13051
13052
13053
13054
e6408286 13055#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
542f9784 13056
e6408286 13057# We need gfortran to compile parts of the library
13058#AC_PROG_FC(gfortran)
13059FC="$GFORTRAN"
cd9a469c 13060ac_ext=${ac_fc_srcext-f}
13061ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13062ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 13063ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13064if test -n "$ac_tool_prefix"; then
e6408286 13065 for ac_prog in gfortran
542f9784 13066 do
13067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13068set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 13069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13071if ${ac_cv_prog_FC+:} false; then :
cd9a469c 13072 $as_echo_n "(cached) " >&6
542f9784 13073else
13074 if test -n "$FC"; then
13075 ac_cv_prog_FC="$FC" # Let the user override the test.
13076else
13077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078for as_dir in $PATH
13079do
13080 IFS=$as_save_IFS
13081 test -z "$as_dir" && as_dir=.
cd9a469c 13082 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 13084 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
cd9a469c 13085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 13086 break 2
13087 fi
13088done
cd9a469c 13089 done
13090IFS=$as_save_IFS
542f9784 13091
13092fi
13093fi
13094FC=$ac_cv_prog_FC
13095if test -n "$FC"; then
cd9a469c 13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13097$as_echo "$FC" >&6; }
542f9784 13098else
cd9a469c 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100$as_echo "no" >&6; }
542f9784 13101fi
13102
cd9a469c 13103
542f9784 13104 test -n "$FC" && break
13105 done
13106fi
13107if test -z "$FC"; then
13108 ac_ct_FC=$FC
e6408286 13109 for ac_prog in gfortran
542f9784 13110do
13111 # Extract the first word of "$ac_prog", so it can be a program name with args.
13112set dummy $ac_prog; ac_word=$2
cd9a469c 13113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13114$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13115if ${ac_cv_prog_ac_ct_FC+:} false; then :
cd9a469c 13116 $as_echo_n "(cached) " >&6
542f9784 13117else
13118 if test -n "$ac_ct_FC"; then
13119 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13120else
13121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122for as_dir in $PATH
13123do
13124 IFS=$as_save_IFS
13125 test -z "$as_dir" && as_dir=.
cd9a469c 13126 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 13128 ac_cv_prog_ac_ct_FC="$ac_prog"
cd9a469c 13129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 13130 break 2
13131 fi
13132done
cd9a469c 13133 done
13134IFS=$as_save_IFS
542f9784 13135
13136fi
13137fi
13138ac_ct_FC=$ac_cv_prog_ac_ct_FC
13139if test -n "$ac_ct_FC"; then
cd9a469c 13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13141$as_echo "$ac_ct_FC" >&6; }
542f9784 13142else
cd9a469c 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144$as_echo "no" >&6; }
542f9784 13145fi
13146
cd9a469c 13147
542f9784 13148 test -n "$ac_ct_FC" && break
82eaf560 13149done
13150
cd9a469c 13151 if test "x$ac_ct_FC" = x; then
13152 FC=""
13153 else
13154 case $cross_compiling:$ac_tool_warned in
13155yes:)
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13158ac_tool_warned=yes ;;
13159esac
13160 FC=$ac_ct_FC
13161 fi
542f9784 13162fi
13163
13164
13165# Provide some information about the compiler.
cd9a469c 13166$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13167set X $ac_compile
13168ac_compiler=$2
13169for ac_option in --version -v -V -qversion; do
13170 { { ac_try="$ac_compiler $ac_option >&5"
13171case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13174esac
13175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13176$as_echo "$ac_try_echo"; } >&5
13177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
542f9784 13178 ac_status=$?
cd9a469c 13179 if test -s conftest.err; then
13180 sed '10a\
13181... rest of stderr output deleted ...
13182 10q' conftest.err >conftest.er1
13183 cat conftest.er1 >&5
cd9a469c 13184 fi
f00f02a3 13185 rm -f conftest.er1 conftest.err
cd9a469c 13186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13187 test $ac_status = 0; }
13188done
542f9784 13189rm -f a.out
13190
13191# If we don't use `.F' as extension, the preprocessor is not run on the
13192# input file. (Note that this only needs to work for GNU compilers.)
13193ac_save_ext=$ac_ext
13194ac_ext=F
cd9a469c 13195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13196$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
f00f02a3 13197if ${ac_cv_fc_compiler_gnu+:} false; then :
cd9a469c 13198 $as_echo_n "(cached) " >&6
542f9784 13199else
cd9a469c 13200 cat > conftest.$ac_ext <<_ACEOF
542f9784 13201 program main
13202#ifndef __GNUC__
13203 choke me
13204#endif
13205
13206 end
13207_ACEOF
cd9a469c 13208if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 13209 ac_compiler_gnu=yes
13210else
cd9a469c 13211 ac_compiler_gnu=no
542f9784 13212fi
cd9a469c 13213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 13214ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13215
13216fi
cd9a469c 13217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13218$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
542f9784 13219ac_ext=$ac_save_ext
cd9a469c 13220ac_test_FCFLAGS=${FCFLAGS+set}
13221ac_save_FCFLAGS=$FCFLAGS
542f9784 13222FCFLAGS=
cd9a469c 13223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13224$as_echo_n "checking whether $FC accepts -g... " >&6; }
f00f02a3 13225if ${ac_cv_prog_fc_g+:} false; then :
cd9a469c 13226 $as_echo_n "(cached) " >&6
542f9784 13227else
13228 FCFLAGS=-g
cd9a469c 13229cat > conftest.$ac_ext <<_ACEOF
542f9784 13230 program main
13231
13232 end
13233_ACEOF
cd9a469c 13234if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 13235 ac_cv_prog_fc_g=yes
13236else
cd9a469c 13237 ac_cv_prog_fc_g=no
542f9784 13238fi
cd9a469c 13239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 13240
13241fi
cd9a469c 13242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13243$as_echo "$ac_cv_prog_fc_g" >&6; }
13244if test "$ac_test_FCFLAGS" = set; then
13245 FCFLAGS=$ac_save_FCFLAGS
542f9784 13246elif test $ac_cv_prog_fc_g = yes; then
13247 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13248 FCFLAGS="-g -O2"
13249 else
13250 FCFLAGS="-g"
13251 fi
13252else
13253 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13254 FCFLAGS="-O2"
13255 else
13256 FCFLAGS=
13257 fi
13258fi
13259
f00f02a3 13260if test $ac_compiler_gnu = yes; then
13261 GFC=yes
13262else
13263 GFC=
13264fi
542f9784 13265ac_ext=c
13266ac_cpp='$CPP $CPPFLAGS'
13267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13269ac_compiler_gnu=$ac_cv_c_compiler_gnu
13270
cd9a469c 13271 ac_ext=${ac_fc_srcext-f}
13272ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13273ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 13274ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13275
13276
e6408286 13277if test -z "$FC" || test "X$FC" = "Xno"; then
13278 _lt_disable_FC=yes
13279fi
13280
542f9784 13281archive_cmds_need_lc_FC=no
13282allow_undefined_flag_FC=
13283always_export_symbols_FC=no
13284archive_expsym_cmds_FC=
13285export_dynamic_flag_spec_FC=
13286hardcode_direct_FC=no
13287hardcode_direct_absolute_FC=no
13288hardcode_libdir_flag_spec_FC=
13289hardcode_libdir_flag_spec_ld_FC=
13290hardcode_libdir_separator_FC=
13291hardcode_minus_L_FC=no
13292hardcode_automatic_FC=no
13293inherit_rpath_FC=no
13294module_cmds_FC=
13295module_expsym_cmds_FC=
13296link_all_deplibs_FC=unknown
13297old_archive_cmds_FC=$old_archive_cmds
e6408286 13298reload_flag_FC=$reload_flag
13299reload_cmds_FC=$reload_cmds
542f9784 13300no_undefined_flag_FC=
13301whole_archive_flag_spec_FC=
13302enable_shared_with_static_runtimes_FC=no
13303
13304# Source file extension for fc test sources.
13305ac_ext=${ac_fc_srcext-f}
13306
13307# Object file extension for compiled fc test sources.
13308objext=o
13309objext_FC=$objext
13310
13311# No sense in running all these tests if we already determined that
13312# the FC compiler isn't working. Some variables (like enable_shared)
13313# are currently assumed to apply to all compilers on this platform,
13314# and will be corrupted by setting them based on a non-working compiler.
13315if test "$_lt_disable_FC" != yes; then
13316 # Code to be used in simple compile tests
13317 lt_simple_compile_test_code="\
13318 subroutine t
13319 return
13320 end
13321"
13322
13323 # Code to be used in simple link tests
13324 lt_simple_link_test_code="\
13325 program t
13326 end
13327"
13328
13329 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13330
13331
13332
13333
13334
13335
13336# If no C compiler was specified, use CC.
13337LTCC=${LTCC-"$CC"}
13338
13339# If no C compiler flags were specified, use CFLAGS.
13340LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13341
13342# Allow CC to be a program name with arguments.
13343compiler=$CC
13344
13345
13346 # save warnings/boilerplate of simple test code
13347 ac_outfile=conftest.$ac_objext
13348echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13349eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13350_lt_compiler_boilerplate=`cat conftest.err`
13351$RM conftest*
13352
13353 ac_outfile=conftest.$ac_objext
13354echo "$lt_simple_link_test_code" >conftest.$ac_ext
13355eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13356_lt_linker_boilerplate=`cat conftest.err`
00aafda4 13357$RM -r conftest*
542f9784 13358
13359
13360 # Allow CC to be a program name with arguments.
13361 lt_save_CC="$CC"
00aafda4 13362 lt_save_GCC=$GCC
542f9784 13363 CC=${FC-"f95"}
13364 compiler=$CC
00aafda4 13365 GCC=$ac_cv_fc_compiler_gnu
13366
542f9784 13367 compiler_FC=$CC
13368 for cc_temp in $compiler""; do
13369 case $cc_temp in
13370 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13371 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13372 \-*) ;;
13373 *) break;;
13374 esac
13375done
e6408286 13376cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 13377
13378
13379 if test -n "$compiler"; then
cd9a469c 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13381$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13383$as_echo "$can_build_shared" >&6; }
542f9784 13384
cd9a469c 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13386$as_echo_n "checking whether to build shared libraries... " >&6; }
542f9784 13387 test "$can_build_shared" = "no" && enable_shared=no
13388
13389 # On AIX, shared libraries and static libraries use the same namespace, and
13390 # are all built from PIC.
13391 case $host_os in
13392 aix3*)
13393 test "$enable_shared" = yes && enable_static=no
13394 if test -n "$RANLIB"; then
13395 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13396 postinstall_cmds='$RANLIB $lib'
13397 fi
13398 ;;
21e07d2f 13399 aix[4-9]*)
542f9784 13400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13401 test "$enable_shared" = yes && enable_static=no
13402 fi
13403 ;;
13404 esac
cd9a469c 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13406$as_echo "$enable_shared" >&6; }
542f9784 13407
cd9a469c 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13409$as_echo_n "checking whether to build static libraries... " >&6; }
542f9784 13410 # Make sure either enable_shared or enable_static is yes.
13411 test "$enable_shared" = yes || enable_static=yes
cd9a469c 13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13413$as_echo "$enable_static" >&6; }
542f9784 13414
13415 GCC_FC="$ac_cv_fc_compiler_gnu"
13416 LD_FC="$LD"
13417
13418 ## CAVEAT EMPTOR:
13419 ## There is no encapsulation within the following macros, do not change
13420 ## the running order or otherwise move them around unless you know exactly
13421 ## what you are doing...
13422 # Dependencies to place before and after the object being linked:
13423predep_objects_FC=
13424postdep_objects_FC=
13425predeps_FC=
13426postdeps_FC=
13427compiler_lib_search_path_FC=
13428
13429cat > conftest.$ac_ext <<_LT_EOF
13430 subroutine foo
13431 implicit none
13432 integer a
13433 a=0
13434 return
13435 end
13436_LT_EOF
13437
cd9a469c 13438if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 13439 (eval $ac_compile) 2>&5
13440 ac_status=$?
cd9a469c 13441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13442 test $ac_status = 0; }; then
542f9784 13443 # Parse the compiler output and extract the necessary
13444 # objects, libraries and library flags.
13445
13446 # Sentinel used to keep track of whether or not we are before
13447 # the conftest object file.
13448 pre_test_object_deps_done=no
13449
00aafda4 13450 for p in `eval "$output_verbose_link_cmd"`; do
542f9784 13451 case $p in
13452
13453 -L* | -R* | -l*)
13454 # Some compilers place space between "-{L,R}" and the path.
13455 # Remove the space.
13456 if test $p = "-L" ||
13457 test $p = "-R"; then
13458 prev=$p
13459 continue
13460 else
13461 prev=
13462 fi
13463
13464 if test "$pre_test_object_deps_done" = no; then
13465 case $p in
13466 -L* | -R*)
13467 # Internal compiler library paths should come after those
13468 # provided the user. The postdeps already come after the
13469 # user supplied libs so there is no need to process them.
13470 if test -z "$compiler_lib_search_path_FC"; then
13471 compiler_lib_search_path_FC="${prev}${p}"
13472 else
13473 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13474 fi
13475 ;;
13476 # The "-l" case would never come before the object being
13477 # linked, so don't bother handling this case.
13478 esac
13479 else
13480 if test -z "$postdeps_FC"; then
13481 postdeps_FC="${prev}${p}"
13482 else
13483 postdeps_FC="${postdeps_FC} ${prev}${p}"
13484 fi
13485 fi
13486 ;;
13487
13488 *.$objext)
13489 # This assumes that the test object file only shows up
13490 # once in the compiler output.
13491 if test "$p" = "conftest.$objext"; then
13492 pre_test_object_deps_done=yes
13493 continue
13494 fi
13495
13496 if test "$pre_test_object_deps_done" = no; then
13497 if test -z "$predep_objects_FC"; then
13498 predep_objects_FC="$p"
13499 else
13500 predep_objects_FC="$predep_objects_FC $p"
13501 fi
13502 else
13503 if test -z "$postdep_objects_FC"; then
13504 postdep_objects_FC="$p"
13505 else
13506 postdep_objects_FC="$postdep_objects_FC $p"
13507 fi
13508 fi
13509 ;;
13510
13511 *) ;; # Ignore the rest.
13512
13513 esac
13514 done
13515
13516 # Clean up.
13517 rm -f a.out a.exe
13518else
13519 echo "libtool.m4: error: problem compiling FC test program"
13520fi
13521
13522$RM -f confest.$objext
13523
13524# PORTME: override above test on systems where it is broken
13525
13526
13527case " $postdeps_FC " in
13528*" -lc "*) archive_cmds_need_lc_FC=no ;;
13529esac
00aafda4 13530 compiler_lib_search_dirs_FC=
13531if test -n "${compiler_lib_search_path_FC}"; then
13532 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13533fi
13534
13535
13536
13537
13538
542f9784 13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565 lt_prog_compiler_wl_FC=
13566lt_prog_compiler_pic_FC=
13567lt_prog_compiler_static_FC=
13568
cd9a469c 13569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13570$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
542f9784 13571
13572 if test "$GCC" = yes; then
13573 lt_prog_compiler_wl_FC='-Wl,'
13574 lt_prog_compiler_static_FC='-static'
13575
13576 case $host_os in
13577 aix*)
13578 # All AIX code is PIC.
13579 if test "$host_cpu" = ia64; then
13580 # AIX 5 now supports IA64 processor
13581 lt_prog_compiler_static_FC='-Bstatic'
13582 fi
ccc0b0f9 13583 lt_prog_compiler_pic_FC='-fPIC'
542f9784 13584 ;;
13585
13586 amigaos*)
00aafda4 13587 case $host_cpu in
13588 powerpc)
13589 # see comment about AmigaOS4 .so support
13590 lt_prog_compiler_pic_FC='-fPIC'
13591 ;;
13592 m68k)
13593 # FIXME: we need at least 68020 code to build shared libraries, but
13594 # adding the `-m68020' flag to GCC prevents building anything better,
13595 # like `-m68040'.
13596 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13597 ;;
13598 esac
542f9784 13599 ;;
13600
13601 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13602 # PIC is the default for these OSes.
13603 ;;
13604
00aafda4 13605 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 13606 # This hack is so that the source file can tell whether it is being
13607 # built for inclusion in a dll (and should export symbols for example).
13608 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13609 # (--disable-auto-import) libraries
13610 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13611 ;;
13612
13613 darwin* | rhapsody*)
13614 # PIC is the default on this platform
13615 # Common symbols not allowed in MH_DYLIB files
13616 lt_prog_compiler_pic_FC='-fno-common'
13617 ;;
13618
e6408286 13619 haiku*)
13620 # PIC is the default for Haiku.
13621 # The "-static" flag exists, but is broken.
13622 lt_prog_compiler_static_FC=
13623 ;;
13624
542f9784 13625 hpux*)
00aafda4 13626 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13627 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13628 # sets the default TLS model and affects inlining.
542f9784 13629 case $host_cpu in
00aafda4 13630 hppa*64*)
542f9784 13631 # +Z the default
13632 ;;
13633 *)
13634 lt_prog_compiler_pic_FC='-fPIC'
13635 ;;
13636 esac
13637 ;;
13638
13639 interix[3-9]*)
13640 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13641 # Instead, we relocate shared libraries at runtime.
13642 ;;
13643
13644 msdosdjgpp*)
13645 # Just because we use GCC doesn't mean we suddenly get shared libraries
13646 # on systems that don't support them.
13647 lt_prog_compiler_can_build_shared_FC=no
13648 enable_shared=no
13649 ;;
13650
13651 *nto* | *qnx*)
13652 # QNX uses GNU C++, but need to define -shared option too, otherwise
13653 # it will coredump.
13654 lt_prog_compiler_pic_FC='-fPIC -shared'
13655 ;;
13656
13657 sysv4*MP*)
13658 if test -d /usr/nec; then
13659 lt_prog_compiler_pic_FC=-Kconform_pic
13660 fi
13661 ;;
13662
13663 *)
13664 lt_prog_compiler_pic_FC='-fPIC'
13665 ;;
13666 esac
e6408286 13667
13668 case $cc_basename in
13669 nvcc*) # Cuda Compiler Driver 2.2
13670 lt_prog_compiler_wl_FC='-Xlinker '
13671 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13672 ;;
13673 esac
542f9784 13674 else
13675 # PORTME Check for flag to pass linker flags through the system compiler.
13676 case $host_os in
13677 aix*)
13678 lt_prog_compiler_wl_FC='-Wl,'
13679 if test "$host_cpu" = ia64; then
13680 # AIX 5 now supports IA64 processor
13681 lt_prog_compiler_static_FC='-Bstatic'
13682 else
13683 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13684 fi
13685 ;;
542f9784 13686
00aafda4 13687 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 13688 # This hack is so that the source file can tell whether it is being
13689 # built for inclusion in a dll (and should export symbols for example).
13690 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13691 ;;
13692
13693 hpux9* | hpux10* | hpux11*)
13694 lt_prog_compiler_wl_FC='-Wl,'
13695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13696 # not for PA HP-UX.
13697 case $host_cpu in
13698 hppa*64*|ia64*)
13699 # +Z the default
13700 ;;
13701 *)
13702 lt_prog_compiler_pic_FC='+Z'
13703 ;;
13704 esac
13705 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13706 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13707 ;;
13708
13709 irix5* | irix6* | nonstopux*)
13710 lt_prog_compiler_wl_FC='-Wl,'
13711 # PIC (with -KPIC) is the default.
13712 lt_prog_compiler_static_FC='-non_shared'
13713 ;;
13714
9af964d4 13715 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 13716 case $cc_basename in
00aafda4 13717 # old Intel for x86_64 which still supported -KPIC.
13718 ecc*)
542f9784 13719 lt_prog_compiler_wl_FC='-Wl,'
13720 lt_prog_compiler_pic_FC='-KPIC'
13721 lt_prog_compiler_static_FC='-static'
13722 ;;
00aafda4 13723 # icc used to be incompatible with GCC.
13724 # ICC 10 doesn't accept -KPIC any more.
13725 icc* | ifort*)
13726 lt_prog_compiler_wl_FC='-Wl,'
13727 lt_prog_compiler_pic_FC='-fPIC'
13728 lt_prog_compiler_static_FC='-static'
13729 ;;
13730 # Lahey Fortran 8.1.
13731 lf95*)
13732 lt_prog_compiler_wl_FC='-Wl,'
13733 lt_prog_compiler_pic_FC='--shared'
13734 lt_prog_compiler_static_FC='--static'
13735 ;;
e6408286 13736 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 13737 # Portland Group compilers (*not* the Pentium gcc compiler,
13738 # which looks to be a dead project)
13739 lt_prog_compiler_wl_FC='-Wl,'
13740 lt_prog_compiler_pic_FC='-fpic'
13741 lt_prog_compiler_static_FC='-Bstatic'
13742 ;;
13743 ccc*)
13744 lt_prog_compiler_wl_FC='-Wl,'
13745 # All Alpha code is PIC.
13746 lt_prog_compiler_static_FC='-non_shared'
13747 ;;
e6408286 13748 xl* | bgxl* | bgf* | mpixl*)
13749 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
00aafda4 13750 lt_prog_compiler_wl_FC='-Wl,'
13751 lt_prog_compiler_pic_FC='-qpic'
13752 lt_prog_compiler_static_FC='-qstaticlink'
13753 ;;
542f9784 13754 *)
13755 case `$CC -V 2>&1 | sed 5q` in
e6408286 13756 *Sun\ F* | *Sun*Fortran*)
13757 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 13758 lt_prog_compiler_pic_FC='-KPIC'
13759 lt_prog_compiler_static_FC='-Bstatic'
e6408286 13760 lt_prog_compiler_wl_FC=''
542f9784 13761 ;;
e6408286 13762 *Sun\ C*)
13763 # Sun C 5.9
542f9784 13764 lt_prog_compiler_pic_FC='-KPIC'
13765 lt_prog_compiler_static_FC='-Bstatic'
e6408286 13766 lt_prog_compiler_wl_FC='-Wl,'
542f9784 13767 ;;
13768 esac
13769 ;;
13770 esac
13771 ;;
13772
13773 newsos6)
13774 lt_prog_compiler_pic_FC='-KPIC'
13775 lt_prog_compiler_static_FC='-Bstatic'
13776 ;;
13777
13778 *nto* | *qnx*)
13779 # QNX uses GNU C++, but need to define -shared option too, otherwise
13780 # it will coredump.
13781 lt_prog_compiler_pic_FC='-fPIC -shared'
13782 ;;
13783
13784 osf3* | osf4* | osf5*)
13785 lt_prog_compiler_wl_FC='-Wl,'
13786 # All OSF/1 code is PIC.
13787 lt_prog_compiler_static_FC='-non_shared'
13788 ;;
13789
13790 rdos*)
13791 lt_prog_compiler_static_FC='-non_shared'
13792 ;;
13793
13794 solaris*)
13795 lt_prog_compiler_pic_FC='-KPIC'
13796 lt_prog_compiler_static_FC='-Bstatic'
13797 case $cc_basename in
13798 f77* | f90* | f95*)
13799 lt_prog_compiler_wl_FC='-Qoption ld ';;
13800 *)
13801 lt_prog_compiler_wl_FC='-Wl,';;
13802 esac
13803 ;;
13804
13805 sunos4*)
13806 lt_prog_compiler_wl_FC='-Qoption ld '
13807 lt_prog_compiler_pic_FC='-PIC'
13808 lt_prog_compiler_static_FC='-Bstatic'
13809 ;;
13810
13811 sysv4 | sysv4.2uw2* | sysv4.3*)
13812 lt_prog_compiler_wl_FC='-Wl,'
13813 lt_prog_compiler_pic_FC='-KPIC'
13814 lt_prog_compiler_static_FC='-Bstatic'
13815 ;;
13816
13817 sysv4*MP*)
13818 if test -d /usr/nec ;then
13819 lt_prog_compiler_pic_FC='-Kconform_pic'
13820 lt_prog_compiler_static_FC='-Bstatic'
13821 fi
13822 ;;
13823
13824 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13825 lt_prog_compiler_wl_FC='-Wl,'
13826 lt_prog_compiler_pic_FC='-KPIC'
13827 lt_prog_compiler_static_FC='-Bstatic'
13828 ;;
13829
13830 unicos*)
13831 lt_prog_compiler_wl_FC='-Wl,'
13832 lt_prog_compiler_can_build_shared_FC=no
13833 ;;
13834
13835 uts4*)
13836 lt_prog_compiler_pic_FC='-pic'
13837 lt_prog_compiler_static_FC='-Bstatic'
13838 ;;
13839
13840 *)
13841 lt_prog_compiler_can_build_shared_FC=no
13842 ;;
13843 esac
13844 fi
13845
13846case $host_os in
13847 # For platforms which do not support PIC, -DPIC is meaningless:
13848 *djgpp*)
13849 lt_prog_compiler_pic_FC=
13850 ;;
13851 *)
13852 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13853 ;;
13854esac
cd9a469c 13855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13856$as_echo "$lt_prog_compiler_pic_FC" >&6; }
542f9784 13857
13858
13859
13860#
13861# Check to make sure the PIC flag actually works.
13862#
13863if test -n "$lt_prog_compiler_pic_FC"; then
cd9a469c 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13865$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
f00f02a3 13866if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
cd9a469c 13867 $as_echo_n "(cached) " >&6
542f9784 13868else
00aafda4 13869 lt_cv_prog_compiler_pic_works_FC=no
542f9784 13870 ac_outfile=conftest.$ac_objext
13871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13872 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13873 # Insert the option either (1) after the last *FLAGS variable, or
13874 # (2) before a word containing "conftest.", or (3) at the end.
13875 # Note that $ac_compile itself does not contain backslashes and begins
13876 # with a dollar sign (not a hyphen), so the echo should work correctly.
13877 # The option is referenced via a variable to avoid confusing sed.
13878 lt_compile=`echo "$ac_compile" | $SED \
13879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13881 -e 's:$: $lt_compiler_flag:'`
e6408286 13882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 13883 (eval "$lt_compile" 2>conftest.err)
13884 ac_status=$?
13885 cat conftest.err >&5
e6408286 13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 13887 if (exit $ac_status) && test -s "$ac_outfile"; then
13888 # The compiler can only warn and ignore the option if not recognized
13889 # So say no if there are warnings other than the usual output.
e6408286 13890 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 13891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13892 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 13893 lt_cv_prog_compiler_pic_works_FC=yes
542f9784 13894 fi
13895 fi
13896 $RM conftest*
13897
13898fi
cd9a469c 13899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13900$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
542f9784 13901
00aafda4 13902if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
542f9784 13903 case $lt_prog_compiler_pic_FC in
13904 "" | " "*) ;;
13905 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13906 esac
13907else
13908 lt_prog_compiler_pic_FC=
13909 lt_prog_compiler_can_build_shared_FC=no
13910fi
13911
13912fi
13913
13914
13915
13916#
13917# Check to make sure the static flag actually works.
13918#
13919wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
cd9a469c 13920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13921$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
f00f02a3 13922if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
cd9a469c 13923 $as_echo_n "(cached) " >&6
542f9784 13924else
00aafda4 13925 lt_cv_prog_compiler_static_works_FC=no
542f9784 13926 save_LDFLAGS="$LDFLAGS"
13927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13928 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13930 # The linker can only warn and ignore the option if not recognized
13931 # So say no if there are warnings
13932 if test -s conftest.err; then
13933 # Append any errors to the config.log.
13934 cat conftest.err 1>&5
e6408286 13935 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 13936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13937 if diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 13938 lt_cv_prog_compiler_static_works_FC=yes
542f9784 13939 fi
13940 else
00aafda4 13941 lt_cv_prog_compiler_static_works_FC=yes
542f9784 13942 fi
13943 fi
00aafda4 13944 $RM -r conftest*
542f9784 13945 LDFLAGS="$save_LDFLAGS"
13946
13947fi
cd9a469c 13948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13949$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
542f9784 13950
00aafda4 13951if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
542f9784 13952 :
13953else
13954 lt_prog_compiler_static_FC=
13955fi
13956
13957
13958
13959
cd9a469c 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13961$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 13962if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
cd9a469c 13963 $as_echo_n "(cached) " >&6
542f9784 13964else
13965 lt_cv_prog_compiler_c_o_FC=no
13966 $RM -r conftest 2>/dev/null
13967 mkdir conftest
13968 cd conftest
13969 mkdir out
13970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13971
13972 lt_compiler_flag="-o out/conftest2.$ac_objext"
13973 # Insert the option either (1) after the last *FLAGS variable, or
13974 # (2) before a word containing "conftest.", or (3) at the end.
13975 # Note that $ac_compile itself does not contain backslashes and begins
13976 # with a dollar sign (not a hyphen), so the echo should work correctly.
13977 lt_compile=`echo "$ac_compile" | $SED \
13978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13980 -e 's:$: $lt_compiler_flag:'`
e6408286 13981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 13982 (eval "$lt_compile" 2>out/conftest.err)
13983 ac_status=$?
13984 cat out/conftest.err >&5
e6408286 13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 13986 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13987 then
13988 # The compiler can only warn and ignore the option if not recognized
13989 # So say no if there are warnings
e6408286 13990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 13991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13993 lt_cv_prog_compiler_c_o_FC=yes
13994 fi
13995 fi
13996 chmod u+w . 2>&5
13997 $RM conftest*
13998 # SGI C++ compiler will create directory out/ii_files/ for
13999 # template instantiation
14000 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14001 $RM out/* && rmdir out
14002 cd ..
14003 $RM -r conftest
14004 $RM conftest*
14005
14006fi
cd9a469c 14007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14008$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
542f9784 14009
14010
14011
cd9a469c 14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14013$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 14014if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
cd9a469c 14015 $as_echo_n "(cached) " >&6
542f9784 14016else
14017 lt_cv_prog_compiler_c_o_FC=no
14018 $RM -r conftest 2>/dev/null
14019 mkdir conftest
14020 cd conftest
14021 mkdir out
14022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14023
14024 lt_compiler_flag="-o out/conftest2.$ac_objext"
14025 # Insert the option either (1) after the last *FLAGS variable, or
14026 # (2) before a word containing "conftest.", or (3) at the end.
14027 # Note that $ac_compile itself does not contain backslashes and begins
14028 # with a dollar sign (not a hyphen), so the echo should work correctly.
14029 lt_compile=`echo "$ac_compile" | $SED \
14030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14032 -e 's:$: $lt_compiler_flag:'`
e6408286 14033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 14034 (eval "$lt_compile" 2>out/conftest.err)
14035 ac_status=$?
14036 cat out/conftest.err >&5
e6408286 14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 14038 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14039 then
14040 # The compiler can only warn and ignore the option if not recognized
14041 # So say no if there are warnings
e6408286 14042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 14043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14045 lt_cv_prog_compiler_c_o_FC=yes
14046 fi
14047 fi
14048 chmod u+w . 2>&5
14049 $RM conftest*
14050 # SGI C++ compiler will create directory out/ii_files/ for
14051 # template instantiation
14052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14053 $RM out/* && rmdir out
14054 cd ..
14055 $RM -r conftest
14056 $RM conftest*
14057
14058fi
cd9a469c 14059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14060$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
542f9784 14061
14062
14063
14064
14065hard_links="nottested"
14066if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
14067 # do not overwrite the value of need_locks provided by the user
cd9a469c 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14069$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 14070 hard_links=yes
14071 $RM conftest*
14072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14073 touch conftest.a
14074 ln conftest.a conftest.b 2>&5 || hard_links=no
14075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14077$as_echo "$hard_links" >&6; }
542f9784 14078 if test "$hard_links" = no; then
cd9a469c 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14080$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 14081 need_locks=warn
14082 fi
14083else
14084 need_locks=no
14085fi
14086
14087
14088
cd9a469c 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14090$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 14091
14092 runpath_var=
14093 allow_undefined_flag_FC=
14094 always_export_symbols_FC=no
14095 archive_cmds_FC=
14096 archive_expsym_cmds_FC=
14097 compiler_needs_object_FC=no
14098 enable_shared_with_static_runtimes_FC=no
14099 export_dynamic_flag_spec_FC=
14100 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14101 hardcode_automatic_FC=no
14102 hardcode_direct_FC=no
14103 hardcode_direct_absolute_FC=no
14104 hardcode_libdir_flag_spec_FC=
14105 hardcode_libdir_flag_spec_ld_FC=
14106 hardcode_libdir_separator_FC=
14107 hardcode_minus_L_FC=no
14108 hardcode_shlibpath_var_FC=unsupported
14109 inherit_rpath_FC=no
14110 link_all_deplibs_FC=unknown
14111 module_cmds_FC=
14112 module_expsym_cmds_FC=
14113 old_archive_from_new_cmds_FC=
14114 old_archive_from_expsyms_cmds_FC=
14115 thread_safe_flag_spec_FC=
14116 whole_archive_flag_spec_FC=
14117 # include_expsyms should be a list of space-separated symbols to be *always*
14118 # included in the symbol list
14119 include_expsyms_FC=
14120 # exclude_expsyms can be an extended regexp of symbols to exclude
14121 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14122 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14123 # as well as any symbol that contains `d'.
00aafda4 14124 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 14125 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14126 # platforms (ab)use it in PIC code, but their linkers get confused if
14127 # the symbol is explicitly referenced. Since portable code cannot
14128 # rely on this symbol name, it's probably fine to never include it in
14129 # preloaded symbol tables.
00aafda4 14130 # Exclude shared library initialization/finalization symbols.
542f9784 14131 extract_expsyms_cmds=
14132
14133 case $host_os in
00aafda4 14134 cygwin* | mingw* | pw32* | cegcc*)
542f9784 14135 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14136 # When not using gcc, we currently assume that we are using
14137 # Microsoft Visual C++.
14138 if test "$GCC" != yes; then
14139 with_gnu_ld=no
14140 fi
14141 ;;
14142 interix*)
14143 # we just hope/assume this is gcc and not c89 (= MSVC++)
14144 with_gnu_ld=yes
14145 ;;
14146 openbsd*)
14147 with_gnu_ld=no
14148 ;;
14149 esac
14150
14151 ld_shlibs_FC=yes
e6408286 14152
14153 # On some targets, GNU ld is compatible enough with the native linker
14154 # that we're better off using the native interface for both.
14155 lt_use_gnu_ld_interface=no
542f9784 14156 if test "$with_gnu_ld" = yes; then
e6408286 14157 case $host_os in
14158 aix*)
14159 # The AIX port of GNU ld has always aspired to compatibility
14160 # with the native linker. However, as the warning in the GNU ld
14161 # block says, versions before 2.19.5* couldn't really create working
14162 # shared libraries, regardless of the interface used.
14163 case `$LD -v 2>&1` in
14164 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14165 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14166 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14167 *)
14168 lt_use_gnu_ld_interface=yes
14169 ;;
14170 esac
14171 ;;
14172 *)
14173 lt_use_gnu_ld_interface=yes
14174 ;;
14175 esac
14176 fi
14177
14178 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 14179 # If archive_cmds runs LD, not CC, wlarc should be empty
14180 wlarc='${wl}'
14181
14182 # Set some defaults for GNU ld with shared library support. These
14183 # are reset later if shared libraries are not supported. Putting them
14184 # here allows them to be overridden if necessary.
14185 runpath_var=LD_RUN_PATH
14186 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14187 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14188 # ancient GNU ld didn't support --whole-archive et. al.
14189 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14190 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14191 else
14192 whole_archive_flag_spec_FC=
14193 fi
14194 supports_anon_versioning=no
14195 case `$LD -v 2>&1` in
e6408286 14196 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 14197 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14198 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14199 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14200 *\ 2.11.*) ;; # other 2.11 versions
14201 *) supports_anon_versioning=yes ;;
14202 esac
14203
14204 # See if GNU ld supports shared libraries.
14205 case $host_os in
21e07d2f 14206 aix[3-9]*)
542f9784 14207 # On AIX/PPC, the GNU linker is very broken
14208 if test "$host_cpu" != ia64; then
14209 ld_shlibs_FC=no
14210 cat <<_LT_EOF 1>&2
14211
e6408286 14212*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 14213*** to be unable to reliably create shared libraries on AIX.
14214*** Therefore, libtool is disabling shared libraries support. If you
e6408286 14215*** really care for shared libraries, you may want to install binutils
14216*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14217*** You will then need to restart the configuration process.
542f9784 14218
14219_LT_EOF
14220 fi
14221 ;;
14222
14223 amigaos*)
00aafda4 14224 case $host_cpu in
14225 powerpc)
14226 # see comment about AmigaOS4 .so support
14227 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14228 archive_expsym_cmds_FC=''
14229 ;;
14230 m68k)
14231 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)'
14232 hardcode_libdir_flag_spec_FC='-L$libdir'
14233 hardcode_minus_L_FC=yes
14234 ;;
14235 esac
542f9784 14236 ;;
14237
14238 beos*)
14239 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14240 allow_undefined_flag_FC=unsupported
14241 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14242 # support --undefined. This deserves some investigation. FIXME
14243 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14244 else
14245 ld_shlibs_FC=no
14246 fi
14247 ;;
14248
00aafda4 14249 cygwin* | mingw* | pw32* | cegcc*)
542f9784 14250 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14251 # as there is no search path for DLLs.
14252 hardcode_libdir_flag_spec_FC='-L$libdir'
e6408286 14253 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
542f9784 14254 allow_undefined_flag_FC=unsupported
14255 always_export_symbols_FC=no
14256 enable_shared_with_static_runtimes_FC=yes
14257 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14258
14259 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14260 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14261 # If the export-symbols file already is a .def file (1st line
14262 # is EXPORTS), use it as is; otherwise, prepend...
14263 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14264 cp $export_symbols $output_objdir/$soname.def;
14265 else
14266 echo EXPORTS > $output_objdir/$soname.def;
14267 cat $export_symbols >> $output_objdir/$soname.def;
14268 fi~
14269 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14270 else
14271 ld_shlibs_FC=no
14272 fi
14273 ;;
14274
e6408286 14275 haiku*)
14276 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14277 link_all_deplibs_FC=yes
14278 ;;
14279
542f9784 14280 interix[3-9]*)
14281 hardcode_direct_FC=no
14282 hardcode_shlibpath_var_FC=no
14283 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14284 export_dynamic_flag_spec_FC='${wl}-E'
14285 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14286 # Instead, shared libraries are loaded at an image base (0x10000000 by
14287 # default) and relocated if they conflict, which is a slow very memory
14288 # consuming and fragmenting process. To avoid this, we pick a random,
14289 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14290 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14291 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'
14292 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'
14293 ;;
14294
9af964d4 14295 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 14296 tmp_diet=no
14297 if test "$host_os" = linux-dietlibc; then
14298 case $cc_basename in
14299 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14300 esac
14301 fi
14302 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14303 && test "$tmp_diet" = no
14304 then
4e8a08d4 14305 tmp_addflag=' $pic_flag'
00aafda4 14306 tmp_sharedflag='-shared'
542f9784 14307 case $cc_basename,$host_cpu in
14308 pgcc*) # Portland Group C compiler
e6408286 14309 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 14310 tmp_addflag=' $pic_flag'
14311 ;;
e6408286 14312 pgf77* | pgf90* | pgf95* | pgfortran*)
14313 # Portland Group f77 and f90 compilers
14314 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 14315 tmp_addflag=' $pic_flag -Mnomain' ;;
14316 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14317 tmp_addflag=' -i_dynamic' ;;
14318 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14319 tmp_addflag=' -i_dynamic -nofor_main' ;;
14320 ifc* | ifort*) # Intel Fortran compiler
14321 tmp_addflag=' -nofor_main' ;;
00aafda4 14322 lf95*) # Lahey Fortran 8.1
14323 whole_archive_flag_spec_FC=
14324 tmp_sharedflag='--shared' ;;
e6408286 14325 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
00aafda4 14326 tmp_sharedflag='-qmkshrobj'
14327 tmp_addflag= ;;
e6408286 14328 nvcc*) # Cuda Compiler Driver 2.2
14329 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'
14330 compiler_needs_object_FC=yes
14331 ;;
542f9784 14332 esac
14333 case `$CC -V 2>&1 | sed 5q` in
14334 *Sun\ C*) # Sun C 5.9
e6408286 14335 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 14336 compiler_needs_object_FC=yes
14337 tmp_sharedflag='-G' ;;
14338 *Sun\ F*) # Sun Fortran 8.3
14339 tmp_sharedflag='-G' ;;
542f9784 14340 esac
14341 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14342
14343 if test "x$supports_anon_versioning" = xyes; then
14344 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14346 echo "local: *; };" >> $output_objdir/$libname.ver~
14347 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14348 fi
00aafda4 14349
14350 case $cc_basename in
e6408286 14351 xlf* | bgf* | bgxlf* | mpixlf*)
00aafda4 14352 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14353 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14354 hardcode_libdir_flag_spec_FC=
14355 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14356 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14357 if test "x$supports_anon_versioning" = xyes; then
14358 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14359 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14360 echo "local: *; };" >> $output_objdir/$libname.ver~
14361 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14362 fi
14363 ;;
14364 esac
542f9784 14365 else
14366 ld_shlibs_FC=no
14367 fi
14368 ;;
14369
14370 netbsd*)
14371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14372 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14373 wlarc=
14374 else
14375 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14376 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14377 fi
14378 ;;
14379
14380 solaris*)
14381 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14382 ld_shlibs_FC=no
14383 cat <<_LT_EOF 1>&2
14384
14385*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14386*** create shared libraries on Solaris systems. Therefore, libtool
14387*** is disabling shared libraries support. We urge you to upgrade GNU
14388*** binutils to release 2.9.1 or newer. Another option is to modify
14389*** your PATH or compiler configuration so that the native linker is
14390*** used, and then restart.
14391
14392_LT_EOF
14393 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14394 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14395 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14396 else
14397 ld_shlibs_FC=no
14398 fi
14399 ;;
14400
14401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14402 case `$LD -v 2>&1` in
14403 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14404 ld_shlibs_FC=no
14405 cat <<_LT_EOF 1>&2
14406
14407*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14408*** reliably create shared libraries on SCO systems. Therefore, libtool
14409*** is disabling shared libraries support. We urge you to upgrade GNU
14410*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14411*** your PATH or compiler configuration so that the native linker is
14412*** used, and then restart.
14413
14414_LT_EOF
14415 ;;
14416 *)
14417 # For security reasons, it is highly recommended that you always
14418 # use absolute paths for naming shared libraries, and exclude the
14419 # DT_RUNPATH tag from executables and libraries. But doing so
14420 # requires that you compile everything twice, which is a pain.
14421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14422 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14423 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14424 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14425 else
14426 ld_shlibs_FC=no
14427 fi
14428 ;;
14429 esac
14430 ;;
14431
14432 sunos4*)
14433 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14434 wlarc=
14435 hardcode_direct_FC=yes
14436 hardcode_shlibpath_var_FC=no
14437 ;;
14438
14439 *)
14440 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14441 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14442 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14443 else
14444 ld_shlibs_FC=no
14445 fi
14446 ;;
14447 esac
14448
14449 if test "$ld_shlibs_FC" = no; then
14450 runpath_var=
14451 hardcode_libdir_flag_spec_FC=
14452 export_dynamic_flag_spec_FC=
14453 whole_archive_flag_spec_FC=
14454 fi
14455 else
14456 # PORTME fill in a description of your system's linker (not GNU ld)
14457 case $host_os in
14458 aix3*)
14459 allow_undefined_flag_FC=unsupported
14460 always_export_symbols_FC=yes
14461 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'
14462 # Note: this linker hardcodes the directories in LIBPATH if there
14463 # are no directories specified by -L.
14464 hardcode_minus_L_FC=yes
14465 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14466 # Neither direct hardcoding nor static linking is supported with a
14467 # broken collect2.
14468 hardcode_direct_FC=unsupported
14469 fi
14470 ;;
14471
21e07d2f 14472 aix[4-9]*)
542f9784 14473 if test "$host_cpu" = ia64; then
14474 # On IA64, the linker does run time linking by default, so we don't
14475 # have to do anything special.
14476 aix_use_runtimelinking=no
14477 exp_sym_flag='-Bexport'
14478 no_entry_flag=""
14479 else
14480 # If we're using GNU nm, then we don't want the "-C" option.
14481 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 14482 # Also, AIX nm treats weak defined symbols like other global
14483 # defined symbols, whereas GNU nm marks them as "W".
542f9784 14484 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 14485 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 14486 else
8c596dcc 14487 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 14488 fi
14489 aix_use_runtimelinking=no
14490
14491 # Test if we are trying to use run time linking or normal
14492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14493 # need to do runtime linking.
21e07d2f 14494 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 14495 for ld_flag in $LDFLAGS; do
14496 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14497 aix_use_runtimelinking=yes
14498 break
14499 fi
14500 done
14501 ;;
14502 esac
14503
14504 exp_sym_flag='-bexport'
14505 no_entry_flag='-bnoentry'
14506 fi
14507
14508 # When large executables or shared objects are built, AIX ld can
14509 # have problems creating the table of contents. If linking a library
14510 # or program results in "error TOC overflow" add -mminimal-toc to
14511 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14512 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14513
14514 archive_cmds_FC=''
14515 hardcode_direct_FC=yes
14516 hardcode_direct_absolute_FC=yes
14517 hardcode_libdir_separator_FC=':'
14518 link_all_deplibs_FC=yes
14519 file_list_spec_FC='${wl}-f,'
14520
14521 if test "$GCC" = yes; then
14522 case $host_os in aix4.[012]|aix4.[012].*)
14523 # We only want to do this on AIX 4.2 and lower, the check
14524 # below for broken collect2 doesn't work under 4.3+
14525 collect2name=`${CC} -print-prog-name=collect2`
14526 if test -f "$collect2name" &&
14527 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14528 then
14529 # We have reworked collect2
14530 :
14531 else
14532 # We have old collect2
14533 hardcode_direct_FC=unsupported
14534 # It fails to find uninstalled libraries when the uninstalled
14535 # path is not listed in the libpath. Setting hardcode_minus_L
14536 # to unsupported forces relinking
14537 hardcode_minus_L_FC=yes
14538 hardcode_libdir_flag_spec_FC='-L$libdir'
14539 hardcode_libdir_separator_FC=
14540 fi
14541 ;;
14542 esac
14543 shared_flag='-shared'
14544 if test "$aix_use_runtimelinking" = yes; then
14545 shared_flag="$shared_flag "'${wl}-G'
14546 fi
14547 else
14548 # not using gcc
14549 if test "$host_cpu" = ia64; then
14550 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14551 # chokes on -Wl,-G. The following line is correct:
14552 shared_flag='-G'
14553 else
14554 if test "$aix_use_runtimelinking" = yes; then
14555 shared_flag='${wl}-G'
14556 else
14557 shared_flag='${wl}-bM:SRE'
14558 fi
14559 fi
14560 fi
14561
00aafda4 14562 export_dynamic_flag_spec_FC='${wl}-bexpall'
542f9784 14563 # It seems that -bexpall does not export symbols beginning with
14564 # underscore (_), so it is better to generate a list of symbols to export.
14565 always_export_symbols_FC=yes
14566 if test "$aix_use_runtimelinking" = yes; then
14567 # Warning - without using the other runtime loading flags (-brtl),
14568 # -berok will link without error, but may produce a broken library.
14569 allow_undefined_flag_FC='-berok'
14570 # Determine the default libpath from the value encoded in an
14571 # empty executable.
14572 if test x$gcc_no_link = xyes; then
f00f02a3 14573 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 14574fi
cd9a469c 14575cat > conftest.$ac_ext <<_ACEOF
542f9784 14576 program main
14577
14578 end
14579_ACEOF
cd9a469c 14580if ac_fn_fc_try_link "$LINENO"; then :
542f9784 14581
14582lt_aix_libpath_sed='
14583 /Import File Strings/,/^$/ {
14584 /^0/ {
14585 s/^0 *\(.*\)$/\1/
14586 p
14587 }
14588 }'
14589aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14590# Check for a 64-bit object if we didn't find anything.
14591if test -z "$aix_libpath"; then
14592 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14593fi
542f9784 14594fi
cd9a469c 14595rm -f core conftest.err conftest.$ac_objext \
14596 conftest$ac_exeext conftest.$ac_ext
542f9784 14597if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14598
14599 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 14600 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 14601 else
14602 if test "$host_cpu" = ia64; then
14603 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14604 allow_undefined_flag_FC="-z nodefs"
14605 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"
14606 else
14607 # Determine the default libpath from the value encoded in an
14608 # empty executable.
14609 if test x$gcc_no_link = xyes; then
f00f02a3 14610 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 14611fi
cd9a469c 14612cat > conftest.$ac_ext <<_ACEOF
542f9784 14613 program main
14614
14615 end
14616_ACEOF
cd9a469c 14617if ac_fn_fc_try_link "$LINENO"; then :
542f9784 14618
14619lt_aix_libpath_sed='
14620 /Import File Strings/,/^$/ {
14621 /^0/ {
14622 s/^0 *\(.*\)$/\1/
14623 p
14624 }
14625 }'
14626aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14627# Check for a 64-bit object if we didn't find anything.
14628if test -z "$aix_libpath"; then
14629 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14630fi
542f9784 14631fi
cd9a469c 14632rm -f core conftest.err conftest.$ac_objext \
14633 conftest$ac_exeext conftest.$ac_ext
542f9784 14634if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14635
14636 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14637 # Warning - without using the other run time loading flags,
14638 # -berok will link without error, but may produce a broken library.
14639 no_undefined_flag_FC=' ${wl}-bernotok'
14640 allow_undefined_flag_FC=' ${wl}-berok'
e6408286 14641 if test "$with_gnu_ld" = yes; then
14642 # We only use this code for GNU lds that support --whole-archive.
14643 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14644 else
14645 # Exported symbols can be pulled into shared objects from archives
14646 whole_archive_flag_spec_FC='$convenience'
14647 fi
542f9784 14648 archive_cmds_need_lc_FC=yes
14649 # This is similar to how AIX traditionally builds its shared libraries.
14650 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'
14651 fi
14652 fi
14653 ;;
14654
14655 amigaos*)
00aafda4 14656 case $host_cpu in
14657 powerpc)
14658 # see comment about AmigaOS4 .so support
14659 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14660 archive_expsym_cmds_FC=''
14661 ;;
14662 m68k)
14663 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)'
14664 hardcode_libdir_flag_spec_FC='-L$libdir'
14665 hardcode_minus_L_FC=yes
14666 ;;
14667 esac
542f9784 14668 ;;
14669
14670 bsdi[45]*)
14671 export_dynamic_flag_spec_FC=-rdynamic
14672 ;;
14673
00aafda4 14674 cygwin* | mingw* | pw32* | cegcc*)
542f9784 14675 # When not using gcc, we currently assume that we are using
14676 # Microsoft Visual C++.
14677 # hardcode_libdir_flag_spec is actually meaningless, as there is
14678 # no search path for DLLs.
14679 hardcode_libdir_flag_spec_FC=' '
14680 allow_undefined_flag_FC=unsupported
14681 # Tell ltmain to make .lib files, not .a files.
14682 libext=lib
14683 # Tell ltmain to make .dll files, not .so files.
14684 shrext_cmds=".dll"
14685 # FIXME: Setting linknames here is a bad hack.
e6408286 14686 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 14687 # The linker will automatically build a .lib file if we build a DLL.
14688 old_archive_from_new_cmds_FC='true'
14689 # FIXME: Should let the user specify the lib program.
14690 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14691 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14692 enable_shared_with_static_runtimes_FC=yes
14693 ;;
14694
14695 darwin* | rhapsody*)
542f9784 14696
00aafda4 14697
14698 archive_cmds_need_lc_FC=no
14699 hardcode_direct_FC=no
14700 hardcode_automatic_FC=yes
14701 hardcode_shlibpath_var_FC=unsupported
e6408286 14702 if test "$lt_cv_ld_force_load" = "yes"; then
14703 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\"`'
14704 else
14705 whole_archive_flag_spec_FC=''
14706 fi
00aafda4 14707 link_all_deplibs_FC=yes
14708 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14709 case $cc_basename in
14710 ifort*) _lt_dar_can_shared=yes ;;
14711 *) _lt_dar_can_shared=$GCC ;;
14712 esac
14713 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 14714 output_verbose_link_cmd=func_echo_all
00aafda4 14715 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}"
14716 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14717 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}"
14718 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}"
14719
14720 else
14721 ld_shlibs_FC=no
14722 fi
14723
542f9784 14724 ;;
14725
14726 dgux*)
14727 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14728 hardcode_libdir_flag_spec_FC='-L$libdir'
14729 hardcode_shlibpath_var_FC=no
14730 ;;
14731
542f9784 14732 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14733 # support. Future versions do this automatically, but an explicit c++rt0.o
14734 # does not break anything, and helps significantly (at the cost of a little
14735 # extra space).
14736 freebsd2.2*)
14737 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14738 hardcode_libdir_flag_spec_FC='-R$libdir'
14739 hardcode_direct_FC=yes
14740 hardcode_shlibpath_var_FC=no
14741 ;;
14742
14743 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 14744 freebsd2.*)
542f9784 14745 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14746 hardcode_direct_FC=yes
14747 hardcode_minus_L_FC=yes
14748 hardcode_shlibpath_var_FC=no
14749 ;;
14750
14751 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14752 freebsd* | dragonfly*)
14753 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14754 hardcode_libdir_flag_spec_FC='-R$libdir'
14755 hardcode_direct_FC=yes
14756 hardcode_shlibpath_var_FC=no
14757 ;;
14758
14759 hpux9*)
14760 if test "$GCC" = yes; then
14761 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'
14762 else
14763 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'
14764 fi
14765 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14766 hardcode_libdir_separator_FC=:
14767 hardcode_direct_FC=yes
14768
14769 # hardcode_minus_L: Not really in the search PATH,
14770 # but as the default location of the library.
14771 hardcode_minus_L_FC=yes
14772 export_dynamic_flag_spec_FC='${wl}-E'
14773 ;;
14774
14775 hpux10*)
e6408286 14776 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 14777 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14778 else
14779 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14780 fi
14781 if test "$with_gnu_ld" = no; then
14782 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14783 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14784 hardcode_libdir_separator_FC=:
14785 hardcode_direct_FC=yes
14786 hardcode_direct_absolute_FC=yes
14787 export_dynamic_flag_spec_FC='${wl}-E'
14788 # hardcode_minus_L: Not really in the search PATH,
14789 # but as the default location of the library.
14790 hardcode_minus_L_FC=yes
14791 fi
14792 ;;
14793
14794 hpux11*)
e6408286 14795 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 14796 case $host_cpu in
14797 hppa*64*)
14798 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14799 ;;
14800 ia64*)
00aafda4 14801 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 14802 ;;
14803 *)
14804 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14805 ;;
14806 esac
14807 else
14808 case $host_cpu in
14809 hppa*64*)
14810 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14811 ;;
14812 ia64*)
14813 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14814 ;;
14815 *)
e6408286 14816 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
542f9784 14817 ;;
14818 esac
14819 fi
14820 if test "$with_gnu_ld" = no; then
14821 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14822 hardcode_libdir_separator_FC=:
14823
14824 case $host_cpu in
14825 hppa*64*|ia64*)
14826 hardcode_direct_FC=no
14827 hardcode_shlibpath_var_FC=no
14828 ;;
14829 *)
14830 hardcode_direct_FC=yes
14831 hardcode_direct_absolute_FC=yes
14832 export_dynamic_flag_spec_FC='${wl}-E'
14833
14834 # hardcode_minus_L: Not really in the search PATH,
14835 # but as the default location of the library.
14836 hardcode_minus_L_FC=yes
14837 ;;
14838 esac
14839 fi
14840 ;;
14841
14842 irix5* | irix6* | nonstopux*)
14843 if test "$GCC" = yes; then
e6408286 14844 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 14845 # Try to use the -exported_symbol ld option, if it does not
14846 # work, assume that -exports_file does not work either and
14847 # implicitly export all symbols.
14848 save_LDFLAGS="$LDFLAGS"
14849 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14850 if test x$gcc_no_link = xyes; then
f00f02a3 14851 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 14852fi
cd9a469c 14853cat > conftest.$ac_ext <<_ACEOF
542f9784 14854int foo(void) {}
14855_ACEOF
cd9a469c 14856if ac_fn_fc_try_link "$LINENO"; then :
e6408286 14857 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 14858
542f9784 14859fi
cd9a469c 14860rm -f core conftest.err conftest.$ac_objext \
14861 conftest$ac_exeext conftest.$ac_ext
542f9784 14862 LDFLAGS="$save_LDFLAGS"
14863 else
e6408286 14864 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'
14865 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 14866 fi
14867 archive_cmds_need_lc_FC='no'
14868 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14869 hardcode_libdir_separator_FC=:
14870 inherit_rpath_FC=yes
14871 link_all_deplibs_FC=yes
14872 ;;
14873
14874 netbsd*)
14875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14876 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14877 else
14878 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14879 fi
14880 hardcode_libdir_flag_spec_FC='-R$libdir'
14881 hardcode_direct_FC=yes
14882 hardcode_shlibpath_var_FC=no
14883 ;;
14884
14885 newsos6)
14886 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14887 hardcode_direct_FC=yes
14888 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14889 hardcode_libdir_separator_FC=:
14890 hardcode_shlibpath_var_FC=no
14891 ;;
14892
14893 *nto* | *qnx*)
14894 ;;
14895
14896 openbsd*)
00aafda4 14897 if test -f /usr/libexec/ld.so; then
14898 hardcode_direct_FC=yes
14899 hardcode_shlibpath_var_FC=no
14900 hardcode_direct_absolute_FC=yes
14901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 14902 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
00aafda4 14903 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 14904 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
00aafda4 14905 export_dynamic_flag_spec_FC='${wl}-E'
14906 else
14907 case $host_os in
14908 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14909 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14910 hardcode_libdir_flag_spec_FC='-R$libdir'
14911 ;;
14912 *)
14913 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14914 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14915 ;;
14916 esac
14917 fi
14918 else
14919 ld_shlibs_FC=no
542f9784 14920 fi
14921 ;;
14922
14923 os2*)
14924 hardcode_libdir_flag_spec_FC='-L$libdir'
14925 hardcode_minus_L_FC=yes
14926 allow_undefined_flag_FC=unsupported
e6408286 14927 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 14928 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14929 ;;
14930
14931 osf3*)
14932 if test "$GCC" = yes; then
14933 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
e6408286 14934 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 14935 else
14936 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 14937 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 14938 fi
14939 archive_cmds_need_lc_FC='no'
14940 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14941 hardcode_libdir_separator_FC=:
14942 ;;
14943
14944 osf4* | osf5*) # as osf3* with the addition of -msym flag
14945 if test "$GCC" = yes; then
14946 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
e6408286 14947 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 14948 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14949 else
14950 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 14951 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 14952 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 14953 $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 14954
14955 # Both c and cxx compiler support -rpath directly
14956 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14957 fi
14958 archive_cmds_need_lc_FC='no'
14959 hardcode_libdir_separator_FC=:
14960 ;;
14961
14962 solaris*)
14963 no_undefined_flag_FC=' -z defs'
14964 if test "$GCC" = yes; then
14965 wlarc='${wl}'
14966 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14967 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14968 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14969 else
14970 case `$CC -V 2>&1` in
14971 *"Compilers 5.0"*)
14972 wlarc=''
14973 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14974 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14976 ;;
14977 *)
14978 wlarc='${wl}'
14979 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14980 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14981 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14982 ;;
14983 esac
14984 fi
14985 hardcode_libdir_flag_spec_FC='-R$libdir'
14986 hardcode_shlibpath_var_FC=no
14987 case $host_os in
14988 solaris2.[0-5] | solaris2.[0-5].*) ;;
14989 *)
14990 # The compiler driver will combine and reorder linker options,
14991 # but understands `-z linker_flag'. GCC discards it without `$wl',
14992 # but is careful enough not to reorder.
14993 # Supported since Solaris 2.6 (maybe 2.5.1?)
14994 if test "$GCC" = yes; then
14995 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14996 else
14997 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14998 fi
14999 ;;
15000 esac
15001 link_all_deplibs_FC=yes
15002 ;;
15003
15004 sunos4*)
15005 if test "x$host_vendor" = xsequent; then
15006 # Use $CC to link under sequent, because it throws in some extra .o
15007 # files that make .init and .fini sections work.
15008 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15009 else
15010 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15011 fi
15012 hardcode_libdir_flag_spec_FC='-L$libdir'
15013 hardcode_direct_FC=yes
15014 hardcode_minus_L_FC=yes
15015 hardcode_shlibpath_var_FC=no
15016 ;;
15017
15018 sysv4)
15019 case $host_vendor in
15020 sni)
15021 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15022 hardcode_direct_FC=yes # is this really true???
15023 ;;
15024 siemens)
15025 ## LD is ld it makes a PLAMLIB
15026 ## CC just makes a GrossModule.
15027 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15028 reload_cmds_FC='$CC -r -o $output$reload_objs'
15029 hardcode_direct_FC=no
15030 ;;
15031 motorola)
15032 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15033 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15034 ;;
15035 esac
15036 runpath_var='LD_RUN_PATH'
15037 hardcode_shlibpath_var_FC=no
15038 ;;
15039
15040 sysv4.3*)
15041 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15042 hardcode_shlibpath_var_FC=no
15043 export_dynamic_flag_spec_FC='-Bexport'
15044 ;;
15045
15046 sysv4*MP*)
15047 if test -d /usr/nec; then
15048 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15049 hardcode_shlibpath_var_FC=no
15050 runpath_var=LD_RUN_PATH
15051 hardcode_runpath_var=yes
15052 ld_shlibs_FC=yes
15053 fi
15054 ;;
15055
15056 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15057 no_undefined_flag_FC='${wl}-z,text'
15058 archive_cmds_need_lc_FC=no
15059 hardcode_shlibpath_var_FC=no
15060 runpath_var='LD_RUN_PATH'
15061
15062 if test "$GCC" = yes; then
15063 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15064 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15065 else
15066 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15067 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15068 fi
15069 ;;
15070
15071 sysv5* | sco3.2v5* | sco5v6*)
15072 # Note: We can NOT use -z defs as we might desire, because we do not
15073 # link with -lc, and that would cause any symbols used from libc to
15074 # always be unresolved, which means just about no library would
15075 # ever link correctly. If we're not using GNU ld we use -z text
15076 # though, which does catch some bad symbols but isn't as heavy-handed
15077 # as -z defs.
15078 no_undefined_flag_FC='${wl}-z,text'
15079 allow_undefined_flag_FC='${wl}-z,nodefs'
15080 archive_cmds_need_lc_FC=no
15081 hardcode_shlibpath_var_FC=no
15082 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15083 hardcode_libdir_separator_FC=':'
15084 link_all_deplibs_FC=yes
15085 export_dynamic_flag_spec_FC='${wl}-Bexport'
15086 runpath_var='LD_RUN_PATH'
15087
15088 if test "$GCC" = yes; then
15089 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15090 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15091 else
15092 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15093 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15094 fi
15095 ;;
15096
15097 uts4*)
15098 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15099 hardcode_libdir_flag_spec_FC='-L$libdir'
15100 hardcode_shlibpath_var_FC=no
15101 ;;
15102
15103 *)
15104 ld_shlibs_FC=no
15105 ;;
15106 esac
15107
15108 if test x$host_vendor = xsni; then
15109 case $host in
15110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15111 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15112 ;;
15113 esac
15114 fi
15115 fi
15116
cd9a469c 15117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15118$as_echo "$ld_shlibs_FC" >&6; }
542f9784 15119test "$ld_shlibs_FC" = no && can_build_shared=no
15120
15121with_gnu_ld_FC=$with_gnu_ld
15122
15123
15124
15125
15126
15127
15128#
15129# Do we need to explicitly link libc?
15130#
15131case "x$archive_cmds_need_lc_FC" in
15132x|xyes)
15133 # Assume -lc should be added
15134 archive_cmds_need_lc_FC=yes
15135
15136 if test "$enable_shared" = yes && test "$GCC" = yes; then
15137 case $archive_cmds_FC in
15138 *'~'*)
15139 # FIXME: we may have to deal with multi-command sequences.
15140 ;;
15141 '$CC '*)
15142 # Test whether the compiler implicitly links with -lc since on some
15143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15144 # to ld, don't add -lc before -lgcc.
cd9a469c 15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15146$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
f00f02a3 15147if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
cd9a469c 15148 $as_echo_n "(cached) " >&6
9e6fd619 15149else
15150 $RM conftest*
15151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 15152
cd9a469c 15153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 15154 (eval $ac_compile) 2>&5
15155 ac_status=$?
cd9a469c 15156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15157 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 15158 soname=conftest
15159 lib=conftest
15160 libobjs=conftest.$ac_objext
15161 deplibs=
15162 wl=$lt_prog_compiler_wl_FC
15163 pic_flag=$lt_prog_compiler_pic_FC
15164 compiler_flags=-v
15165 linker_flags=-v
15166 verstring=
15167 output_objdir=.
15168 libname=conftest
15169 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15170 allow_undefined_flag_FC=
cd9a469c 15171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 15172 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
90e67cff 15173 ac_status=$?
cd9a469c 15174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15175 test $ac_status = 0; }
9e6fd619 15176 then
15177 lt_cv_archive_cmds_need_lc_FC=no
15178 else
15179 lt_cv_archive_cmds_need_lc_FC=yes
15180 fi
15181 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15182 else
15183 cat conftest.err 1>&5
15184 fi
15185 $RM conftest*
15186
15187fi
cd9a469c 15188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15189$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
9e6fd619 15190 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
542f9784 15191 ;;
15192 esac
15193 fi
15194 ;;
15195esac
90e67cff 15196
90e67cff 15197
542f9784 15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
cd9a469c 15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15261$as_echo_n "checking dynamic linker characteristics... " >&6; }
00aafda4 15262
542f9784 15263library_names_spec=
15264libname_spec='lib$name'
15265soname_spec=
15266shrext_cmds=".so"
15267postinstall_cmds=
15268postuninstall_cmds=
15269finish_cmds=
15270finish_eval=
15271shlibpath_var=
15272shlibpath_overrides_runpath=unknown
15273version_type=none
15274dynamic_linker="$host_os ld.so"
15275sys_lib_dlsearch_path_spec="/lib /usr/lib"
15276need_lib_prefix=unknown
15277hardcode_into_libs=no
15278
15279# when you set need_version to no, make sure it does not cause -set_version
15280# flags to be left without arguments
15281need_version=unknown
15282
15283case $host_os in
15284aix3*)
15285 version_type=linux
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15287 shlibpath_var=LIBPATH
15288
15289 # AIX 3 has no versioning support, so we append a major version to the name.
15290 soname_spec='${libname}${release}${shared_ext}$major'
15291 ;;
15292
21e07d2f 15293aix[4-9]*)
542f9784 15294 version_type=linux
15295 need_lib_prefix=no
15296 need_version=no
15297 hardcode_into_libs=yes
15298 if test "$host_cpu" = ia64; then
15299 # AIX 5 supports IA64
15300 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15301 shlibpath_var=LD_LIBRARY_PATH
15302 else
15303 # With GCC up to 2.95.x, collect2 would create an import file
15304 # for dependence libraries. The import file would start with
15305 # the line `#! .'. This would cause the generated library to
15306 # depend on `.', always an invalid library. This was fixed in
15307 # development snapshots of GCC prior to 3.0.
15308 case $host_os in
15309 aix4 | aix4.[01] | aix4.[01].*)
15310 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15311 echo ' yes '
15312 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15313 :
15314 else
15315 can_build_shared=no
15316 fi
15317 ;;
15318 esac
15319 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15320 # soname into executable. Probably we can add versioning support to
15321 # collect2, so additional links can be useful in future.
15322 if test "$aix_use_runtimelinking" = yes; then
15323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15324 # instead of lib<name>.a to let people know that these are not
15325 # typical AIX shared libraries.
15326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15327 else
15328 # We preserve .a as extension for shared libraries through AIX4.2
15329 # and later when we are not doing run time linking.
15330 library_names_spec='${libname}${release}.a $libname.a'
15331 soname_spec='${libname}${release}${shared_ext}$major'
15332 fi
15333 shlibpath_var=LIBPATH
15334 fi
15335 ;;
15336
15337amigaos*)
00aafda4 15338 case $host_cpu in
15339 powerpc)
15340 # Since July 2007 AmigaOS4 officially supports .so libraries.
15341 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15343 ;;
15344 m68k)
542f9784 15345 library_names_spec='$libname.ixlibrary $libname.a'
15346 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 15347 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 15348 ;;
15349 esac
542f9784 15350 ;;
15351
15352beos*)
15353 library_names_spec='${libname}${shared_ext}'
15354 dynamic_linker="$host_os ld.so"
15355 shlibpath_var=LIBRARY_PATH
15356 ;;
15357
15358bsdi[45]*)
15359 version_type=linux
15360 need_version=no
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15363 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15364 shlibpath_var=LD_LIBRARY_PATH
15365 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15366 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15367 # the default ld.so.conf also contains /usr/contrib/lib and
15368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15369 # libtool to hard-code these into programs
15370 ;;
15371
00aafda4 15372cygwin* | mingw* | pw32* | cegcc*)
542f9784 15373 version_type=windows
15374 shrext_cmds=".dll"
15375 need_version=no
15376 need_lib_prefix=no
15377
00aafda4 15378 case $GCC,$host_os in
15379 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 15380 library_names_spec='$libname.dll.a'
15381 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15382 postinstall_cmds='base_file=`basename \${file}`~
15383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15384 dldir=$destdir/`dirname \$dlpath`~
15385 test -d \$dldir || mkdir -p \$dldir~
15386 $install_prog $dir/$dlname \$dldir/$dlname~
15387 chmod a+x \$dldir/$dlname~
15388 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15389 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15390 fi'
15391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15392 dlpath=$dir/\$dldll~
15393 $RM \$dlpath'
15394 shlibpath_overrides_runpath=yes
15395
15396 case $host_os in
15397 cygwin*)
15398 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15399 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 15400
542f9784 15401 ;;
00aafda4 15402 mingw* | cegcc*)
542f9784 15403 # MinGW DLLs use traditional 'lib' prefix
15404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 15405 ;;
15406 pw32*)
15407 # pw32 DLLs use 'pw' prefix rather than 'lib'
15408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15409 ;;
15410 esac
15411 ;;
15412
15413 *)
15414 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15415 ;;
15416 esac
15417 dynamic_linker='Win32 ld.exe'
15418 # FIXME: first we should search . and the directory the executable is in
15419 shlibpath_var=PATH
15420 ;;
15421
15422darwin* | rhapsody*)
15423 dynamic_linker="$host_os dyld"
15424 version_type=darwin
15425 need_lib_prefix=no
15426 need_version=no
15427 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15428 soname_spec='${libname}${release}${major}$shared_ext'
15429 shlibpath_overrides_runpath=yes
15430 shlibpath_var=DYLD_LIBRARY_PATH
15431 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15432
15433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15434 ;;
15435
15436dgux*)
15437 version_type=linux
15438 need_lib_prefix=no
15439 need_version=no
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15441 soname_spec='${libname}${release}${shared_ext}$major'
15442 shlibpath_var=LD_LIBRARY_PATH
15443 ;;
15444
542f9784 15445freebsd* | dragonfly*)
15446 # DragonFly does not have aout. When/if they implement a new
15447 # versioning mechanism, adjust this.
15448 if test -x /usr/bin/objformat; then
15449 objformat=`/usr/bin/objformat`
15450 else
15451 case $host_os in
30369aff 15452 freebsd[23].*) objformat=aout ;;
542f9784 15453 *) objformat=elf ;;
15454 esac
15455 fi
15456 version_type=freebsd-$objformat
15457 case $version_type in
15458 freebsd-elf*)
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15460 need_version=no
15461 need_lib_prefix=no
15462 ;;
15463 freebsd-*)
15464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15465 need_version=yes
15466 ;;
15467 esac
15468 shlibpath_var=LD_LIBRARY_PATH
15469 case $host_os in
30369aff 15470 freebsd2.*)
542f9784 15471 shlibpath_overrides_runpath=yes
15472 ;;
15473 freebsd3.[01]* | freebsdelf3.[01]*)
15474 shlibpath_overrides_runpath=yes
15475 hardcode_into_libs=yes
15476 ;;
15477 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15478 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15479 shlibpath_overrides_runpath=no
15480 hardcode_into_libs=yes
15481 ;;
15482 *) # from 4.6 on, and DragonFly
15483 shlibpath_overrides_runpath=yes
15484 hardcode_into_libs=yes
15485 ;;
15486 esac
15487 ;;
15488
15489gnu*)
15490 version_type=linux
15491 need_lib_prefix=no
15492 need_version=no
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15494 soname_spec='${libname}${release}${shared_ext}$major'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 hardcode_into_libs=yes
15497 ;;
15498
e6408286 15499haiku*)
15500 version_type=linux
15501 need_lib_prefix=no
15502 need_version=no
15503 dynamic_linker="$host_os runtime_loader"
15504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15505 soname_spec='${libname}${release}${shared_ext}$major'
15506 shlibpath_var=LIBRARY_PATH
15507 shlibpath_overrides_runpath=yes
15508 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15509 hardcode_into_libs=yes
15510 ;;
15511
542f9784 15512hpux9* | hpux10* | hpux11*)
15513 # Give a soname corresponding to the major version so that dld.sl refuses to
15514 # link against other versions.
15515 version_type=sunos
15516 need_lib_prefix=no
15517 need_version=no
15518 case $host_cpu in
15519 ia64*)
15520 shrext_cmds='.so'
15521 hardcode_into_libs=yes
15522 dynamic_linker="$host_os dld.so"
15523 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 if test "X$HPUX_IA64_MODE" = X32; then
15528 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15529 else
15530 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15531 fi
15532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15533 ;;
15534 hppa*64*)
15535 shrext_cmds='.sl'
15536 hardcode_into_libs=yes
15537 dynamic_linker="$host_os dld.sl"
15538 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541 soname_spec='${libname}${release}${shared_ext}$major'
15542 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15544 ;;
15545 *)
15546 shrext_cmds='.sl'
15547 dynamic_linker="$host_os dld.sl"
15548 shlibpath_var=SHLIB_PATH
15549 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15551 soname_spec='${libname}${release}${shared_ext}$major'
15552 ;;
15553 esac
e6408286 15554 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 15555 postinstall_cmds='chmod 555 $lib'
e6408286 15556 # or fails outright, so override atomically:
15557 install_override_mode=555
542f9784 15558 ;;
15559
15560interix[3-9]*)
15561 version_type=linux
15562 need_lib_prefix=no
15563 need_version=no
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 shlibpath_overrides_runpath=no
15569 hardcode_into_libs=yes
15570 ;;
15571
15572irix5* | irix6* | nonstopux*)
15573 case $host_os in
15574 nonstopux*) version_type=nonstopux ;;
15575 *)
15576 if test "$lt_cv_prog_gnu_ld" = yes; then
15577 version_type=linux
15578 else
15579 version_type=irix
15580 fi ;;
15581 esac
15582 need_lib_prefix=no
15583 need_version=no
15584 soname_spec='${libname}${release}${shared_ext}$major'
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15586 case $host_os in
15587 irix5* | nonstopux*)
15588 libsuff= shlibsuff=
15589 ;;
15590 *)
15591 case $LD in # libtool.m4 will add one of these switches to LD
15592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15593 libsuff= shlibsuff= libmagic=32-bit;;
15594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15595 libsuff=32 shlibsuff=N32 libmagic=N32;;
15596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15598 *) libsuff= shlibsuff= libmagic=never-match;;
15599 esac
15600 ;;
15601 esac
15602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15603 shlibpath_overrides_runpath=no
15604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15606 hardcode_into_libs=yes
15607 ;;
15608
15609# No shared lib support for Linux oldld, aout, or coff.
15610linux*oldld* | linux*aout* | linux*coff*)
15611 dynamic_linker=no
15612 ;;
15613
15614# This must be Linux ELF.
9af964d4 15615linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 15616 version_type=linux
15617 need_lib_prefix=no
15618 need_version=no
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15622 shlibpath_var=LD_LIBRARY_PATH
15623 shlibpath_overrides_runpath=no
9e6fd619 15624
542f9784 15625 # Some binutils ld are patched to set DT_RUNPATH
f00f02a3 15626 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cd9a469c 15627 $as_echo_n "(cached) " >&6
9e6fd619 15628else
15629 lt_cv_shlibpath_overrides_runpath=no
15630 save_LDFLAGS=$LDFLAGS
15631 save_libdir=$libdir
15632 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15633 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15634 if test x$gcc_no_link = xyes; then
f00f02a3 15635 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 15636fi
cd9a469c 15637cat > conftest.$ac_ext <<_ACEOF
542f9784 15638 program main
15639
15640 end
90e67cff 15641_ACEOF
cd9a469c 15642if ac_fn_fc_try_link "$LINENO"; then :
15643 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 15644 lt_cv_shlibpath_overrides_runpath=yes
542f9784 15645fi
90e67cff 15646fi
cd9a469c 15647rm -f core conftest.err conftest.$ac_objext \
15648 conftest$ac_exeext conftest.$ac_ext
9e6fd619 15649 LDFLAGS=$save_LDFLAGS
15650 libdir=$save_libdir
15651
15652fi
15653
15654 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 15655
15656 # This implies no fast_install, which is unacceptable.
15657 # Some rework will be needed to allow for fast_install
15658 # before this can be enabled.
15659 hardcode_into_libs=yes
15660
15661 # Append ld.so.conf contents to the search path
15662 if test -f /etc/ld.so.conf; then
e6408286 15663 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 15664 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15665 fi
15666
15667 # We used to test for /lib/ld.so.1 and disable shared libraries on
15668 # powerpc, because MkLinux only supported shared libraries with the
15669 # GNU dynamic linker. Since this was broken with cross compilers,
15670 # most powerpc-linux boxes support dynamic linking these days and
15671 # people can always --disable-shared, the test was removed, and we
15672 # assume the GNU/Linux dynamic linker is in use.
15673 dynamic_linker='GNU/Linux ld.so'
15674 ;;
15675
15676netbsd*)
15677 version_type=sunos
15678 need_lib_prefix=no
15679 need_version=no
15680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15683 dynamic_linker='NetBSD (a.out) ld.so'
15684 else
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15686 soname_spec='${libname}${release}${shared_ext}$major'
15687 dynamic_linker='NetBSD ld.elf_so'
15688 fi
15689 shlibpath_var=LD_LIBRARY_PATH
15690 shlibpath_overrides_runpath=yes
15691 hardcode_into_libs=yes
15692 ;;
15693
15694newsos6)
15695 version_type=linux
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 shlibpath_overrides_runpath=yes
15699 ;;
15700
15701*nto* | *qnx*)
15702 version_type=qnx
15703 need_lib_prefix=no
15704 need_version=no
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 shlibpath_overrides_runpath=no
15709 hardcode_into_libs=yes
15710 dynamic_linker='ldqnx.so'
15711 ;;
15712
15713openbsd*)
15714 version_type=sunos
15715 sys_lib_dlsearch_path_spec="/usr/lib"
15716 need_lib_prefix=no
15717 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15718 case $host_os in
15719 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15720 *) need_version=no ;;
15721 esac
15722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15726 case $host_os in
15727 openbsd2.[89] | openbsd2.[89].*)
15728 shlibpath_overrides_runpath=no
15729 ;;
15730 *)
15731 shlibpath_overrides_runpath=yes
15732 ;;
15733 esac
15734 else
15735 shlibpath_overrides_runpath=yes
15736 fi
15737 ;;
15738
15739os2*)
15740 libname_spec='$name'
15741 shrext_cmds=".dll"
15742 need_lib_prefix=no
15743 library_names_spec='$libname${shared_ext} $libname.a'
15744 dynamic_linker='OS/2 ld.exe'
15745 shlibpath_var=LIBPATH
15746 ;;
15747
15748osf3* | osf4* | osf5*)
15749 version_type=osf
15750 need_lib_prefix=no
15751 need_version=no
15752 soname_spec='${libname}${release}${shared_ext}$major'
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15754 shlibpath_var=LD_LIBRARY_PATH
15755 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15756 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15757 ;;
15758
15759rdos*)
15760 dynamic_linker=no
15761 ;;
15762
15763solaris*)
15764 version_type=linux
15765 need_lib_prefix=no
15766 need_version=no
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768 soname_spec='${libname}${release}${shared_ext}$major'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 shlibpath_overrides_runpath=yes
15771 hardcode_into_libs=yes
15772 # ldd complains unless libraries are executable
15773 postinstall_cmds='chmod +x $lib'
15774 ;;
15775
15776sunos4*)
15777 version_type=sunos
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15780 shlibpath_var=LD_LIBRARY_PATH
15781 shlibpath_overrides_runpath=yes
15782 if test "$with_gnu_ld" = yes; then
15783 need_lib_prefix=no
15784 fi
15785 need_version=yes
15786 ;;
15787
15788sysv4 | sysv4.3*)
15789 version_type=linux
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791 soname_spec='${libname}${release}${shared_ext}$major'
15792 shlibpath_var=LD_LIBRARY_PATH
15793 case $host_vendor in
15794 sni)
15795 shlibpath_overrides_runpath=no
15796 need_lib_prefix=no
15797 runpath_var=LD_RUN_PATH
15798 ;;
15799 siemens)
15800 need_lib_prefix=no
15801 ;;
15802 motorola)
15803 need_lib_prefix=no
15804 need_version=no
15805 shlibpath_overrides_runpath=no
15806 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15807 ;;
15808 esac
15809 ;;
15810
15811sysv4*MP*)
15812 if test -d /usr/nec ;then
15813 version_type=linux
15814 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15815 soname_spec='$libname${shared_ext}.$major'
15816 shlibpath_var=LD_LIBRARY_PATH
15817 fi
15818 ;;
15819
15820sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15821 version_type=freebsd-elf
15822 need_lib_prefix=no
15823 need_version=no
15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15825 soname_spec='${libname}${release}${shared_ext}$major'
15826 shlibpath_var=LD_LIBRARY_PATH
15827 shlibpath_overrides_runpath=yes
15828 hardcode_into_libs=yes
15829 if test "$with_gnu_ld" = yes; then
15830 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15831 else
15832 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15833 case $host_os in
15834 sco3.2v5*)
15835 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15836 ;;
15837 esac
15838 fi
15839 sys_lib_dlsearch_path_spec='/usr/lib'
15840 ;;
15841
15842tpf*)
15843 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15844 version_type=linux
15845 need_lib_prefix=no
15846 need_version=no
00aafda4 15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 15848 shlibpath_var=LD_LIBRARY_PATH
15849 shlibpath_overrides_runpath=no
15850 hardcode_into_libs=yes
15851 ;;
15852
15853uts4*)
15854 version_type=linux
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15856 soname_spec='${libname}${release}${shared_ext}$major'
15857 shlibpath_var=LD_LIBRARY_PATH
15858 ;;
15859
15860*)
15861 dynamic_linker=no
15862 ;;
15863esac
cd9a469c 15864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15865$as_echo "$dynamic_linker" >&6; }
542f9784 15866test "$dynamic_linker" = no && can_build_shared=no
15867
15868variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15869if test "$GCC" = yes; then
15870 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
90e67cff 15871fi
90e67cff 15872
00aafda4 15873if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15874 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15875fi
15876if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15877 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15878fi
15879
90e67cff 15880
542f9784 15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
e6408286 15912
15913
542f9784 15914
15915
15916
cd9a469c 15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15918$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
542f9784 15919hardcode_action_FC=
15920if test -n "$hardcode_libdir_flag_spec_FC" ||
15921 test -n "$runpath_var_FC" ||
15922 test "X$hardcode_automatic_FC" = "Xyes" ; then
15923
15924 # We can hardcode non-existent directories.
15925 if test "$hardcode_direct_FC" != no &&
15926 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15927 # have to relink, otherwise we might link with an installed library
15928 # when we should be linking with a yet-to-be-installed one
15929 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15930 test "$hardcode_minus_L_FC" != no; then
15931 # Linking always hardcodes the temporary library directory.
15932 hardcode_action_FC=relink
15933 else
15934 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15935 hardcode_action_FC=immediate
15936 fi
15937else
15938 # We cannot hardcode anything, or else we can only hardcode existing
15939 # directories.
15940 hardcode_action_FC=unsupported
90e67cff 15941fi
cd9a469c 15942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15943$as_echo "$hardcode_action_FC" >&6; }
542f9784 15944
15945if test "$hardcode_action_FC" = relink ||
15946 test "$inherit_rpath_FC" = yes; then
15947 # Fast installation is not supported
15948 enable_fast_install=no
15949elif test "$shlibpath_overrides_runpath" = yes ||
15950 test "$enable_shared" = no; then
15951 # Fast installation is not necessary
15952 enable_fast_install=needless
90e67cff 15953fi
15954
542f9784 15955
15956
15957
15958
15959
15960
15961 fi # test -n "$compiler"
15962
00aafda4 15963 GCC=$lt_save_GCC
542f9784 15964 CC="$lt_save_CC"
15965fi # test "$_lt_disable_FC" != yes
15966
5c88bcbb 15967ac_ext=c
90973b19 15968ac_cpp='$CPP $CPPFLAGS'
15969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15971ac_compiler_gnu=$ac_cv_c_compiler_gnu
542f9784 15972
15973
15974
15975# extra LD Flags which are required for targets
15976case "${host}" in
15977 *-darwin*)
15978 # Darwin needs -single_module when linking libgfortran
15979 extra_ldflags_libgfortran=-Wl,-single_module
15980 ;;
15981esac
15982
15983
15984# We need a working compiler at that point, otherwise give a clear
15985# error message and bail out.
15986
cd9a469c 15987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15988$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15989ac_ext=${ac_fc_srcext-f}
15990ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15991ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 15992ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15993
cd9a469c 15994cat > conftest.$ac_ext <<_ACEOF
542f9784 15995
15996 program foo
15997 real, parameter :: bar = sin (12.34 / 2.5)
15998 end program foo
4ee9c684 15999_ACEOF
cd9a469c 16000if ac_fn_fc_try_compile "$LINENO"; then :
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16002$as_echo "yes" >&6; }
4ee9c684 16003else
cd9a469c 16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16005$as_echo "no" >&6; }
f00f02a3 16006 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 16007
90973b19 16008fi
cd9a469c 16009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 16010ac_ext=c
16011ac_cpp='$CPP $CPPFLAGS'
16012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16014ac_compiler_gnu=$ac_cv_c_compiler_gnu
90973b19 16015
90973b19 16016
542f9784 16017
cd9a469c 16018# Check whether --enable-largefile was given.
16019if test "${enable_largefile+set}" = set; then :
16020 enableval=$enable_largefile;
16021fi
542f9784 16022
542f9784 16023if test "$enable_largefile" != no; then
16024
cd9a469c 16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16026$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
f00f02a3 16027if ${ac_cv_sys_largefile_CC+:} false; then :
cd9a469c 16028 $as_echo_n "(cached) " >&6
90973b19 16029else
542f9784 16030 ac_cv_sys_largefile_CC=no
16031 if test "$GCC" != yes; then
16032 ac_save_CC=$CC
16033 while :; do
cd9a469c 16034 # IRIX 6.2 and later do not support large files by default,
16035 # so use the C compiler's -n32 option if that helps.
16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90973b19 16037/* end confdefs.h. */
542f9784 16038#include <sys/types.h>
16039 /* Check that off_t can represent 2**63 - 1 correctly.
16040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16041 since some C++ compilers masquerading as C compilers
16042 incorrectly reject 9223372036854775807. */
77ddff12 16043#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
cd9a469c 16044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16045 && LARGE_OFF_T % 2147483647 == 1)
16046 ? 1 : -1];
56c15991 16047int
16048main ()
16049{
56c15991 16050
16051 ;
16052 return 0;
16053}
16054_ACEOF
cd9a469c 16055 if ac_fn_c_try_compile "$LINENO"; then :
16056 break
56c15991 16057fi
cd9a469c 16058rm -f core conftest.err conftest.$ac_objext
16059 CC="$CC -n32"
16060 if ac_fn_c_try_compile "$LINENO"; then :
16061 ac_cv_sys_largefile_CC=' -n32'; break
16062fi
16063rm -f core conftest.err conftest.$ac_objext
16064 break
16065 done
16066 CC=$ac_save_CC
16067 rm -f conftest.$ac_ext
16068 fi
16069fi
16070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16071$as_echo "$ac_cv_sys_largefile_CC" >&6; }
16072 if test "$ac_cv_sys_largefile_CC" != no; then
16073 CC=$CC$ac_cv_sys_largefile_CC
16074 fi
56c15991 16075
cd9a469c 16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16077$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
f00f02a3 16078if ${ac_cv_sys_file_offset_bits+:} false; then :
cd9a469c 16079 $as_echo_n "(cached) " >&6
16080else
16081 while :; do
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56c15991 16083/* end confdefs.h. */
cd9a469c 16084#include <sys/types.h>
16085 /* Check that off_t can represent 2**63 - 1 correctly.
16086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16087 since some C++ compilers masquerading as C compilers
16088 incorrectly reject 9223372036854775807. */
77ddff12 16089#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
cd9a469c 16090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16091 && LARGE_OFF_T % 2147483647 == 1)
16092 ? 1 : -1];
56c15991 16093int
16094main ()
16095{
56c15991 16096
16097 ;
16098 return 0;
16099}
16100_ACEOF
cd9a469c 16101if ac_fn_c_try_compile "$LINENO"; then :
16102 ac_cv_sys_file_offset_bits=no; break
16103fi
16104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56c15991 16106/* end confdefs.h. */
cd9a469c 16107#define _FILE_OFFSET_BITS 64
16108#include <sys/types.h>
16109 /* Check that off_t can represent 2**63 - 1 correctly.
16110 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16111 since some C++ compilers masquerading as C compilers
16112 incorrectly reject 9223372036854775807. */
77ddff12 16113#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
cd9a469c 16114 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16115 && LARGE_OFF_T % 2147483647 == 1)
16116 ? 1 : -1];
56c15991 16117int
16118main ()
16119{
56c15991 16120
16121 ;
16122 return 0;
16123}
16124_ACEOF
cd9a469c 16125if ac_fn_c_try_compile "$LINENO"; then :
16126 ac_cv_sys_file_offset_bits=64; break
56c15991 16127fi
cd9a469c 16128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 ac_cv_sys_file_offset_bits=unknown
16130 break
16131done
56c15991 16132fi
cd9a469c 16133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16134$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16135case $ac_cv_sys_file_offset_bits in #(
16136 no | unknown) ;;
16137 *)
16138cat >>confdefs.h <<_ACEOF
16139#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
56c15991 16140_ACEOF
cd9a469c 16141;;
16142esac
16143rm -rf conftest*
16144 if test $ac_cv_sys_file_offset_bits = unknown; then
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16146$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
f00f02a3 16147if ${ac_cv_sys_large_files+:} false; then :
cd9a469c 16148 $as_echo_n "(cached) " >&6
16149else
16150 while :; do
16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56c15991 16152/* end confdefs.h. */
cd9a469c 16153#include <sys/types.h>
16154 /* Check that off_t can represent 2**63 - 1 correctly.
16155 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16156 since some C++ compilers masquerading as C compilers
16157 incorrectly reject 9223372036854775807. */
77ddff12 16158#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
cd9a469c 16159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16160 && LARGE_OFF_T % 2147483647 == 1)
16161 ? 1 : -1];
56c15991 16162int
16163main ()
16164{
56c15991 16165
16166 ;
16167 return 0;
16168}
16169_ACEOF
cd9a469c 16170if ac_fn_c_try_compile "$LINENO"; then :
16171 ac_cv_sys_large_files=no; break
56c15991 16172fi
cd9a469c 16173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56c15991 16175/* end confdefs.h. */
cd9a469c 16176#define _LARGE_FILES 1
16177#include <sys/types.h>
16178 /* Check that off_t can represent 2**63 - 1 correctly.
16179 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16180 since some C++ compilers masquerading as C compilers
16181 incorrectly reject 9223372036854775807. */
77ddff12 16182#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
cd9a469c 16183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16184 && LARGE_OFF_T % 2147483647 == 1)
16185 ? 1 : -1];
56c15991 16186int
16187main ()
16188{
16189
56c15991 16190 ;
16191 return 0;
16192}
16193_ACEOF
cd9a469c 16194if ac_fn_c_try_compile "$LINENO"; then :
16195 ac_cv_sys_large_files=1; break
56c15991 16196fi
cd9a469c 16197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16198 ac_cv_sys_large_files=unknown
16199 break
16200done
82eaf560 16201fi
cd9a469c 16202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16203$as_echo "$ac_cv_sys_large_files" >&6; }
16204case $ac_cv_sys_large_files in #(
16205 no | unknown) ;;
16206 *)
56c15991 16207cat >>confdefs.h <<_ACEOF
cd9a469c 16208#define _LARGE_FILES $ac_cv_sys_large_files
56c15991 16209_ACEOF
cd9a469c 16210;;
16211esac
16212rm -rf conftest*
16213 fi
f00f02a3 16214
16215
56c15991 16216fi
16217
c75dca49 16218
16219# Types
cd9a469c 16220ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
f00f02a3 16221if test "x$ac_cv_type_off_t" = xyes; then :
56c15991 16222
cd9a469c 16223else
56c15991 16224
cd9a469c 16225cat >>confdefs.h <<_ACEOF
16226#define off_t long int
16227_ACEOF
56c15991 16228
c75dca49 16229fi
16230
16231
16232 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
f00f02a3 16233if test "x$ac_cv_type_intptr_t" = xyes; then :
c75dca49 16234
16235$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16236
16237else
16238 for ac_type in 'int' 'long int' 'long long int'; do
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240/* end confdefs.h. */
16241$ac_includes_default
16242int
16243main ()
16244{
16245static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
f00f02a3 16246test_array [0] = 0;
16247return test_array [0];
c75dca49 16248
16249 ;
16250 return 0;
16251}
16252_ACEOF
16253if ac_fn_c_try_compile "$LINENO"; then :
16254
16255cat >>confdefs.h <<_ACEOF
16256#define intptr_t $ac_type
16257_ACEOF
16258
16259 ac_type=
16260fi
16261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262 test -z "$ac_type" && break
16263 done
16264fi
16265
16266
16267
16268 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
f00f02a3 16269if test "x$ac_cv_type_uintptr_t" = xyes; then :
c75dca49 16270
16271$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16272
16273else
16274 for ac_type in 'unsigned int' 'unsigned long int' \
16275 'unsigned long long int'; do
16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277/* end confdefs.h. */
16278$ac_includes_default
16279int
16280main ()
16281{
16282static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
f00f02a3 16283test_array [0] = 0;
16284return test_array [0];
c75dca49 16285
16286 ;
16287 return 0;
16288}
16289_ACEOF
16290if ac_fn_c_try_compile "$LINENO"; then :
16291
16292cat >>confdefs.h <<_ACEOF
16293#define uintptr_t $ac_type
16294_ACEOF
16295
16296 ac_type=
16297fi
16298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299 test -z "$ac_type" && break
16300 done
16301fi
16302
16303
16304ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
f00f02a3 16305if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
c75dca49 16306
16307cat >>confdefs.h <<_ACEOF
16308#define HAVE_PTRDIFF_T 1
16309_ACEOF
16310
16311
56c15991 16312fi
16313
56c15991 16314
a1aa1d30 16315# check header files (we assume C89 is available, so don't check for that)
771c1b50 16316
cd9a469c 16317
771c1b50 16318
a1aa1d30 16319 for ac_header in $ac_header_list
16320do :
16321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16322ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16323"
f00f02a3 16324if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a1aa1d30 16325 cat >>confdefs.h <<_ACEOF
16326#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
771c1b50 16327_ACEOF
16328
cd9a469c 16329fi
771c1b50 16330
a1aa1d30 16331done
1c383045 16332
16333
771c1b50 16334
cd9a469c 16335
cd9a469c 16336
771c1b50 16337
cd9a469c 16338
cd9a469c 16339
771c1b50 16340
771c1b50 16341
771c1b50 16342
16343
771c1b50 16344
771c1b50 16345
771c1b50 16346
16347
771c1b50 16348
16349
7dfba97b 16350
5e7b82bb 16351
c436f700 16352
a54b1ce7 16353
16354
14c3c235 16355
4dd3972f 16356
4dd3972f 16357
4dd3972f 16358
4dd3972f 16359
4dd3972f 16360
4dd3972f 16361
553e7cef 16362
16363
b8a8c7bc 16364
16365
9680a5f4 16366
16367
4dd3972f 16368
4dd3972f 16369
4ee9c684 16370
2069752c 16371inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
4ee9c684 16372
2069752c 16373acx_cv_header_stdint=stddef.h
16374acx_cv_header_stdint_kind="(already complete)"
16375for i in stdint.h $inttype_headers; do
16376 unset ac_cv_type_uintptr_t
16377 unset ac_cv_type_uintmax_t
16378 unset ac_cv_type_int_least32_t
16379 unset ac_cv_type_int_fast32_t
16380 unset ac_cv_type_uint64_t
16381 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16382 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16383#include <$i>
16384"
f00f02a3 16385if test "x$ac_cv_type_uintmax_t" = xyes; then :
2069752c 16386 acx_cv_header_stdint=$i
cd9a469c 16387else
2069752c 16388 continue
cd9a469c 16389fi
4ee9c684 16390
2069752c 16391 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16392#include <$i>
16393"
f00f02a3 16394if test "x$ac_cv_type_uintptr_t" = xyes; then :
90973b19 16395
cd9a469c 16396else
2069752c 16397 acx_cv_header_stdint_kind="(mostly complete)"
cd9a469c 16398fi
90973b19 16399
2069752c 16400 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16401#include <$i>
16402"
f00f02a3 16403if test "x$ac_cv_type_int_least32_t" = xyes; then :
2069752c 16404
4dd3972f 16405else
2069752c 16406 acx_cv_header_stdint_kind="(mostly complete)"
cd9a469c 16407fi
cd9a469c 16408
2069752c 16409 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16410#include <$i>
16411"
f00f02a3 16412if test "x$ac_cv_type_int_fast32_t" = xyes; then :
4dd3972f 16413
2069752c 16414else
16415 acx_cv_header_stdint_kind="(mostly complete)"
16416fi
ea6b3890 16417
2069752c 16418 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16419#include <$i>
16420"
f00f02a3 16421if test "x$ac_cv_type_uint64_t" = xyes; then :
ea6b3890 16422
cd9a469c 16423else
2069752c 16424 acx_cv_header_stdint_kind="(lacks uint64_t)"
16425fi
4dd3972f 16426
2069752c 16427 break
16428done
16429if test "$acx_cv_header_stdint" = stddef.h; then
16430 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16431 for i in stdint.h $inttype_headers; do
16432 unset ac_cv_type_uintptr_t
16433 unset ac_cv_type_uint32_t
16434 unset ac_cv_type_uint64_t
16435 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16436 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16437#include <$i>
16438"
f00f02a3 16439if test "x$ac_cv_type_uint32_t" = xyes; then :
2069752c 16440 acx_cv_header_stdint=$i
16441else
16442 continue
cd9a469c 16443fi
4dd3972f 16444
2069752c 16445 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16446#include <$i>
16447"
f00f02a3 16448if test "x$ac_cv_type_uint64_t" = xyes; then :
f2c0a16d 16449
2069752c 16450fi
247981ce 16451
2069752c 16452 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16453#include <$i>
16454"
f00f02a3 16455if test "x$ac_cv_type_uintptr_t" = xyes; then :
247981ce 16456
2069752c 16457fi
b902b078 16458
2069752c 16459 break
16460 done
16461fi
16462if test "$acx_cv_header_stdint" = stddef.h; then
16463 acx_cv_header_stdint_kind="(u_intXX_t style)"
16464 for i in sys/types.h $inttype_headers; do
16465 unset ac_cv_type_u_int32_t
16466 unset ac_cv_type_u_int64_t
16467 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16468 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16469#include <$i>
16470"
f00f02a3 16471if test "x$ac_cv_type_u_int32_t" = xyes; then :
2069752c 16472 acx_cv_header_stdint=$i
ea6b3890 16473else
2069752c 16474 continue
16475fi
d2fc5bb1 16476
2069752c 16477 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16478#include <$i>
16479"
f00f02a3 16480if test "x$ac_cv_type_u_int64_t" = xyes; then :
d2fc5bb1 16481
2069752c 16482fi
d2fc5bb1 16483
2069752c 16484 break
16485 done
d2fc5bb1 16486fi
2069752c 16487if test "$acx_cv_header_stdint" = stddef.h; then
16488 acx_cv_header_stdint_kind="(using manual detection)"
cd9a469c 16489fi
d2fc5bb1 16490
2069752c 16491test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16492test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16493test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16494test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16495test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
d2fc5bb1 16496
2069752c 16497# ----------------- Summarize what we found so far
cd9a469c 16498
2069752c 16499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16500$as_echo_n "checking what to include in gstdint.h... " >&6; }
d2fc5bb1 16501
2069752c 16502case `$as_basename -- gstdint.h ||
16503$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16504 Xgstdint.h : 'X\(//\)$' \| \
16505 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16506$as_echo X/gstdint.h |
16507 sed '/^.*\/\([^/][^/]*\)\/*$/{
16508 s//\1/
16509 q
16510 }
16511 /^X\/\(\/\/\)$/{
16512 s//\1/
16513 q
16514 }
16515 /^X\/\(\/\).*/{
16516 s//\1/
16517 q
16518 }
16519 s/.*/./; q'` in
16520 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16521$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16522 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16523$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16524 *) ;;
16525esac
d2fc5bb1 16526
2069752c 16527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16528$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
e93cd318 16529
2069752c 16530# ----------------- done included file, check C basic types --------
99798ba4 16531
2069752c 16532# Lacking an uintptr_t? Test size of void *
16533case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16534 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16535# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16536# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16537# This bug is HP SR number 8606223364.
16538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16539$as_echo_n "checking size of void *... " >&6; }
f00f02a3 16540if ${ac_cv_sizeof_void_p+:} false; then :
2069752c 16541 $as_echo_n "(cached) " >&6
16542else
16543 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
99798ba4 16544
2069752c 16545else
16546 if test "$ac_cv_type_void_p" = yes; then
16547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 16549as_fn_error 77 "cannot compute sizeof (void *)
16550See \`config.log' for more details" "$LINENO" 5; }
2069752c 16551 else
16552 ac_cv_sizeof_void_p=0
16553 fi
16554fi
ea6b3890 16555
2069752c 16556fi
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16558$as_echo "$ac_cv_sizeof_void_p" >&6; }
ea6b3890 16559
99798ba4 16560
16561
ea6b3890 16562cat >>confdefs.h <<_ACEOF
2069752c 16563#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
ea6b3890 16564_ACEOF
ea6b3890 16565
2069752c 16566 ;;
16567esac
ea6b3890 16568
2069752c 16569# Lacking an uint64_t? Test size of long
16570case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16571 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16572# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16573# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16574# This bug is HP SR number 8606223364.
16575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16576$as_echo_n "checking size of long... " >&6; }
f00f02a3 16577if ${ac_cv_sizeof_long+:} false; then :
cd9a469c 16578 $as_echo_n "(cached) " >&6
16579else
2069752c 16580 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
ea6b3890 16581
c634bedf 16582else
2069752c 16583 if test "$ac_cv_type_long" = yes; then
16584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 16586as_fn_error 77 "cannot compute sizeof (long)
16587See \`config.log' for more details" "$LINENO" 5; }
2069752c 16588 else
16589 ac_cv_sizeof_long=0
16590 fi
cd9a469c 16591fi
c634bedf 16592
2069752c 16593fi
16594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16595$as_echo "$ac_cv_sizeof_long" >&6; }
ea6b3890 16596
c634bedf 16597
ea6b3890 16598
16599cat >>confdefs.h <<_ACEOF
2069752c 16600#define SIZEOF_LONG $ac_cv_sizeof_long
ea6b3890 16601_ACEOF
c634bedf 16602
2069752c 16603 ;;
16604esac
74b918e9 16605
2069752c 16606if test $acx_cv_header_stdint = stddef.h; then
16607 # Lacking a good header? Test size of everything and deduce all types.
16608 # The cast to long int works around a bug in the HP C Compiler
16609# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16610# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16611# This bug is HP SR number 8606223364.
16612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16613$as_echo_n "checking size of int... " >&6; }
f00f02a3 16614if ${ac_cv_sizeof_int+:} false; then :
2069752c 16615 $as_echo_n "(cached) " >&6
16616else
16617 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
c0e8efbe 16618
2069752c 16619else
16620 if test "$ac_cv_type_int" = yes; then
16621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 16623as_fn_error 77 "cannot compute sizeof (int)
16624See \`config.log' for more details" "$LINENO" 5; }
2069752c 16625 else
16626 ac_cv_sizeof_int=0
16627 fi
16628fi
5a037dbd 16629
2069752c 16630fi
16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16632$as_echo "$ac_cv_sizeof_int" >&6; }
e0582811 16633
16634
99798ba4 16635
ea6b3890 16636cat >>confdefs.h <<_ACEOF
2069752c 16637#define SIZEOF_INT $ac_cv_sizeof_int
ea6b3890 16638_ACEOF
16639
ea6b3890 16640
2069752c 16641 # The cast to long int works around a bug in the HP C Compiler
16642# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16643# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16644# This bug is HP SR number 8606223364.
16645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16646$as_echo_n "checking size of short... " >&6; }
f00f02a3 16647if ${ac_cv_sizeof_short+:} false; then :
2069752c 16648 $as_echo_n "(cached) " >&6
16649else
16650 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
ea6b3890 16651
2069752c 16652else
16653 if test "$ac_cv_type_short" = yes; then
16654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 16656as_fn_error 77 "cannot compute sizeof (short)
16657See \`config.log' for more details" "$LINENO" 5; }
2069752c 16658 else
16659 ac_cv_sizeof_short=0
16660 fi
16661fi
ea6b3890 16662
2069752c 16663fi
16664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16665$as_echo "$ac_cv_sizeof_short" >&6; }
ea6b3890 16666
16667
16668
2069752c 16669cat >>confdefs.h <<_ACEOF
16670#define SIZEOF_SHORT $ac_cv_sizeof_short
16671_ACEOF
ea6b3890 16672
16673
2069752c 16674 # The cast to long int works around a bug in the HP C Compiler
16675# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16676# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16677# This bug is HP SR number 8606223364.
16678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16679$as_echo_n "checking size of char... " >&6; }
f00f02a3 16680if ${ac_cv_sizeof_char+:} false; then :
2069752c 16681 $as_echo_n "(cached) " >&6
16682else
16683 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
ea6b3890 16684
2069752c 16685else
16686 if test "$ac_cv_type_char" = yes; then
16687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 16689as_fn_error 77 "cannot compute sizeof (char)
16690See \`config.log' for more details" "$LINENO" 5; }
2069752c 16691 else
16692 ac_cv_sizeof_char=0
16693 fi
16694fi
ea6b3890 16695
2069752c 16696fi
16697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16698$as_echo "$ac_cv_sizeof_char" >&6; }
ea6b3890 16699
16700
ea6b3890 16701
cd9a469c 16702cat >>confdefs.h <<_ACEOF
2069752c 16703#define SIZEOF_CHAR $ac_cv_sizeof_char
99798ba4 16704_ACEOF
99798ba4 16705
99798ba4 16706
eaae6999 16707
2069752c 16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16709$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16710 case "$ac_cv_sizeof_char" in
16711 1) acx_cv_type_int8_t=char ;;
f00f02a3 16712 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
2069752c 16713 esac
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16715$as_echo "$acx_cv_type_int8_t" >&6; }
16716
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16718$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16719 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16720 2:*) acx_cv_type_int16_t=int ;;
16721 *:2) acx_cv_type_int16_t=short ;;
f00f02a3 16722 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
2069752c 16723 esac
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16725$as_echo "$acx_cv_type_int16_t" >&6; }
16726
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16728$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16729 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16730 4:*) acx_cv_type_int32_t=int ;;
16731 *:4) acx_cv_type_int32_t=long ;;
f00f02a3 16732 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
2069752c 16733 esac
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16735$as_echo "$acx_cv_type_int32_t" >&6; }
cd9a469c 16736fi
16737
2069752c 16738# These tests are here to make the output prettier
ea6b3890 16739
2069752c 16740if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16741 case "$ac_cv_sizeof_long" in
16742 8) acx_cv_type_int64_t=long ;;
16743 esac
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16745$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16747$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16748fi
16749
16750# Now we can use the above types
16751
16752if test "$ac_cv_type_uintptr_t" != yes; then
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16754$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16755 case $ac_cv_sizeof_void_p in
16756 2) acx_cv_type_intptr_t=int16_t ;;
16757 4) acx_cv_type_intptr_t=int32_t ;;
16758 8) acx_cv_type_intptr_t=int64_t ;;
f00f02a3 16759 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
2069752c 16760 esac
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16762$as_echo "$acx_cv_type_intptr_t" >&6; }
16763fi
ea6b3890 16764
2069752c 16765# ----------------- done all checks, emit header -------------
cd9a469c 16766ac_config_commands="$ac_config_commands gstdint.h"
eaae6999 16767
eaae6999 16768
cd9a469c 16769
16770
16771ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
f00f02a3 16772if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
cd9a469c 16773
16774cat >>confdefs.h <<_ACEOF
16775#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
eaae6999 16776_ACEOF
eaae6999 16777
cd9a469c 16778
eaae6999 16779fi
cd9a469c 16780ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
f00f02a3 16781if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
cd9a469c 16782
16783cat >>confdefs.h <<_ACEOF
16784#define HAVE_STRUCT_STAT_ST_BLOCKS 1
eaae6999 16785_ACEOF
16786
cd9a469c 16787
eaae6999 16788fi
cd9a469c 16789ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
f00f02a3 16790if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
eaae6999 16791
cd9a469c 16792cat >>confdefs.h <<_ACEOF
16793#define HAVE_STRUCT_STAT_ST_RDEV 1
16794_ACEOF
99798ba4 16795
16796
b52ee437 16797fi
cd9a469c 16798
16799
0d9d2088 16800case "${host}--x${with_newlib}" in
16801 mips*--xyes)
16802 hardwire_newlib=1;;
8c596dcc 16803 nvptx*--xyes)
16804 hardwire_newlib=1;;
0d9d2088 16805esac
16806
cd9a469c 16807# Check for library functions.
0d9d2088 16808if test "${hardwire_newlib:-0}" -eq 1; then
e4812daa 16809 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16810 # may not work correctly, because the compiler may not be able to
16811 # link executables.
16812
16813$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16814
16815
16816$as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16817
16818
e4812daa 16819$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16820
16821
e4812daa 16822$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16823
16824
16825$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16826
16827
16828$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16829
cec5cd66 16830
4531a456 16831$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16832
16833
16834$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16835
16836
cec5cd66 16837 # At some point, we should differentiate between architectures
16838 # like x86, which have long double versions, and alpha/powerpc/etc.,
16839 # which don't. For the time being, punt.
16840 if test x"long_double_math_on_this_cpu" = x"yes"; then
16841
16842$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16843
16844 fi
e4812daa 16845else
4dd3972f 16846
4dd3972f 16847
a1aa1d30 16848
16849 for ac_func in $ac_func_list
cd9a469c 16850do :
16851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16852ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
f00f02a3 16853if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cd9a469c 16854 cat >>confdefs.h <<_ACEOF
16855#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16856_ACEOF
4dd3972f 16857
cd9a469c 16858fi
16859done
4dd3972f 16860
4dd3972f 16861
cd9a469c 16862
90973b19 16863
cd9a469c 16864
cd9a469c 16865
cd9a469c 16866
4ee9c684 16867
4ee9c684 16868
a2c0dc0f 16869
a2c0dc0f 16870
4ee9c684 16871
adad6c74 16872
adad6c74 16873
adad6c74 16874
adad6c74 16875
adad6c74 16876
adad6c74 16877
adad6c74 16878
adad6c74 16879
99798ba4 16880
99798ba4 16881
99798ba4 16882
99798ba4 16883
adad6c74 16884
adad6c74 16885
adad6c74 16886
adad6c74 16887
c0e8efbe 16888
c0e8efbe 16889
c0e8efbe 16890
a1aa1d30 16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
a291e3b6 16947
5935a97b 16948
b8a8c7bc 16949
16950
fc3d374a 16951
16952
7520a494 16953
16954
7f0d992b 16955
16956
75535607 16957
16958
9680a5f4 16959
16960
5935a97b 16961
ffb6d1fd 16962
16963
e4812daa 16964fi
a1aa1d30 16965
a8d8f723 16966# Check strerror_r, cannot be above as versions with two and three arguments exist
16967
16968 ac_save_CFLAGS="$CFLAGS"
16969 CFLAGS="-Wimplicit-function-declaration -Werror"
16970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971/* end confdefs.h. */
16972#define _GNU_SOURCE 1
16973 #include <string.h>
16974 #include <locale.h>
16975int
16976main ()
16977{
16978char s[128]; strerror_r(5, s, 128);
16979 ;
16980 return 0;
16981}
16982_ACEOF
16983if ac_fn_c_try_compile "$LINENO"; then :
16984
16985$as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16986
16987fi
16988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989 CFLAGS="$ac_save_CFLAGS"
16990
16991 ac_save_CFLAGS="$CFLAGS"
16992 CFLAGS="-Wimplicit-function-declaration -Werror"
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994/* end confdefs.h. */
16995#define _GNU_SOURCE 1
16996 #include <string.h>
16997 #include <locale.h>
16998int
16999main ()
17000{
17001char s[128]; strerror_r(5, s);
17002 ;
17003 return 0;
17004}
17005_ACEOF
17006if ac_fn_c_try_compile "$LINENO"; then :
17007
17008$as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
17009
17010fi
17011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17012 CFLAGS="$ac_save_CFLAGS"
c0e8efbe 17013
adad6c74 17014
8f838781 17015# Check for C99 (and other IEEE) math functions
7d9455ce 17016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17017$as_echo_n "checking for sin in -lm... " >&6; }
f00f02a3 17018if ${ac_cv_lib_m_sin+:} false; then :
cd9a469c 17019 $as_echo_n "(cached) " >&6
8f838781 17020else
17021 ac_check_lib_save_LIBS=$LIBS
17022LIBS="-lm $LIBS"
b52ee437 17023if test x$gcc_no_link = xyes; then
f00f02a3 17024 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17025fi
cd9a469c 17026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17027/* end confdefs.h. */
17028
cd9a469c 17029/* Override any GCC internal prototype to avoid an error.
17030 Use char because int might match the return type of a GCC
17031 builtin and then its argument prototype would still apply. */
8f838781 17032#ifdef __cplusplus
17033extern "C"
17034#endif
7d9455ce 17035char sin ();
8f838781 17036int
17037main ()
17038{
7d9455ce 17039return sin ();
8f838781 17040 ;
17041 return 0;
17042}
17043_ACEOF
cd9a469c 17044if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17045 ac_cv_lib_m_sin=yes
8f838781 17046else
7d9455ce 17047 ac_cv_lib_m_sin=no
8f838781 17048fi
cd9a469c 17049rm -f core conftest.err conftest.$ac_objext \
17050 conftest$ac_exeext conftest.$ac_ext
8f838781 17051LIBS=$ac_check_lib_save_LIBS
17052fi
7d9455ce 17053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17054$as_echo "$ac_cv_lib_m_sin" >&6; }
f00f02a3 17055if test "x$ac_cv_lib_m_sin" = xyes; then :
7d9455ce 17056 cat >>confdefs.h <<_ACEOF
17057#define HAVE_LIBM 1
17058_ACEOF
8f838781 17059
7d9455ce 17060 LIBS="-lm $LIBS"
8f838781 17061
17062fi
17063
7d9455ce 17064
17065
17066
17067
17068
17069
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
17071$as_echo_n "checking for acosf... " >&6; }
f00f02a3 17072if ${gcc_cv_math_func_acosf+:} false; then :
cd9a469c 17073 $as_echo_n "(cached) " >&6
b52ee437 17074else
7d9455ce 17075 if test x$gcc_no_link = xyes; then
f00f02a3 17076 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17077fi
cd9a469c 17078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 17079/* end confdefs.h. */
17080
7d9455ce 17081#ifdef HAVE_COMPLEX_H
17082#include <complex.h>
17083#endif
17084#ifdef HAVE_MATH_H
17085#include <math.h>
b52ee437 17086#endif
7d9455ce 17087
17088int (*ptr)() = (int (*)())acosf;
17089
b52ee437 17090int
17091main ()
17092{
b52ee437 17093 return 0;
17094}
7d9455ce 17095
b52ee437 17096_ACEOF
cd9a469c 17097if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17098 gcc_cv_math_func_acosf=yes
b52ee437 17099else
7d9455ce 17100 gcc_cv_math_func_acosf=no
b52ee437 17101fi
cd9a469c 17102rm -f core conftest.err conftest.$ac_objext \
17103 conftest$ac_exeext conftest.$ac_ext
b52ee437 17104fi
7d9455ce 17105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
17106$as_echo "$gcc_cv_math_func_acosf" >&6; }
17107 if test $gcc_cv_math_func_acosf = yes; then
bd647a17 17108
6affa8e1 17109cat >>confdefs.h <<_ACEOF
17110#define HAVE_ACOSF 1
17111_ACEOF
7d9455ce 17112
17113 fi
b52ee437 17114
b52ee437 17115
b52ee437 17116
7d9455ce 17117
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
17119$as_echo_n "checking for acos... " >&6; }
f00f02a3 17120if ${gcc_cv_math_func_acos+:} false; then :
cd9a469c 17121 $as_echo_n "(cached) " >&6
8f838781 17122else
7d9455ce 17123 if test x$gcc_no_link = xyes; then
f00f02a3 17124 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17125fi
cd9a469c 17126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17127/* end confdefs.h. */
17128
7d9455ce 17129#ifdef HAVE_COMPLEX_H
17130#include <complex.h>
8f838781 17131#endif
7d9455ce 17132#ifdef HAVE_MATH_H
17133#include <math.h>
17134#endif
17135
17136int (*ptr)() = (int (*)())acos;
17137
8f838781 17138int
17139main ()
17140{
8f838781 17141 return 0;
17142}
7d9455ce 17143
8f838781 17144_ACEOF
cd9a469c 17145if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17146 gcc_cv_math_func_acos=yes
8f838781 17147else
7d9455ce 17148 gcc_cv_math_func_acos=no
8f838781 17149fi
cd9a469c 17150rm -f core conftest.err conftest.$ac_objext \
17151 conftest$ac_exeext conftest.$ac_ext
8f838781 17152fi
7d9455ce 17153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
17154$as_echo "$gcc_cv_math_func_acos" >&6; }
17155 if test $gcc_cv_math_func_acos = yes; then
bd647a17 17156
6affa8e1 17157cat >>confdefs.h <<_ACEOF
17158#define HAVE_ACOS 1
17159_ACEOF
7d9455ce 17160
17161 fi
17162
8f838781 17163
8f838781 17164
8f838781 17165
7d9455ce 17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
17167$as_echo_n "checking for acosl... " >&6; }
f00f02a3 17168if ${gcc_cv_math_func_acosl+:} false; then :
cd9a469c 17169 $as_echo_n "(cached) " >&6
b52ee437 17170else
7d9455ce 17171 if test x$gcc_no_link = xyes; then
f00f02a3 17172 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17173fi
cd9a469c 17174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 17175/* end confdefs.h. */
17176
7d9455ce 17177#ifdef HAVE_COMPLEX_H
17178#include <complex.h>
17179#endif
17180#ifdef HAVE_MATH_H
17181#include <math.h>
b52ee437 17182#endif
7d9455ce 17183
17184int (*ptr)() = (int (*)())acosl;
17185
b52ee437 17186int
17187main ()
17188{
b52ee437 17189 return 0;
17190}
7d9455ce 17191
b52ee437 17192_ACEOF
cd9a469c 17193if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17194 gcc_cv_math_func_acosl=yes
b52ee437 17195else
7d9455ce 17196 gcc_cv_math_func_acosl=no
b52ee437 17197fi
cd9a469c 17198rm -f core conftest.err conftest.$ac_objext \
17199 conftest$ac_exeext conftest.$ac_ext
b52ee437 17200fi
7d9455ce 17201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17202$as_echo "$gcc_cv_math_func_acosl" >&6; }
17203 if test $gcc_cv_math_func_acosl = yes; then
bd647a17 17204
6affa8e1 17205cat >>confdefs.h <<_ACEOF
17206#define HAVE_ACOSL 1
17207_ACEOF
7d9455ce 17208
17209 fi
b52ee437 17210
b52ee437 17211
b52ee437 17212
7d9455ce 17213
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17215$as_echo_n "checking for acoshf... " >&6; }
f00f02a3 17216if ${gcc_cv_math_func_acoshf+:} false; then :
cd9a469c 17217 $as_echo_n "(cached) " >&6
8f838781 17218else
7d9455ce 17219 if test x$gcc_no_link = xyes; then
f00f02a3 17220 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17221fi
cd9a469c 17222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17223/* end confdefs.h. */
17224
7d9455ce 17225#ifdef HAVE_COMPLEX_H
17226#include <complex.h>
8f838781 17227#endif
7d9455ce 17228#ifdef HAVE_MATH_H
17229#include <math.h>
17230#endif
17231
17232int (*ptr)() = (int (*)())acoshf;
17233
8f838781 17234int
17235main ()
17236{
8f838781 17237 return 0;
17238}
7d9455ce 17239
8f838781 17240_ACEOF
cd9a469c 17241if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17242 gcc_cv_math_func_acoshf=yes
8f838781 17243else
7d9455ce 17244 gcc_cv_math_func_acoshf=no
8f838781 17245fi
cd9a469c 17246rm -f core conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
8f838781 17248fi
7d9455ce 17249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17250$as_echo "$gcc_cv_math_func_acoshf" >&6; }
17251 if test $gcc_cv_math_func_acoshf = yes; then
bd647a17 17252
6affa8e1 17253cat >>confdefs.h <<_ACEOF
17254#define HAVE_ACOSHF 1
17255_ACEOF
8f838781 17256
7d9455ce 17257 fi
8f838781 17258
8f838781 17259
7d9455ce 17260
17261
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17263$as_echo_n "checking for acosh... " >&6; }
f00f02a3 17264if ${gcc_cv_math_func_acosh+:} false; then :
cd9a469c 17265 $as_echo_n "(cached) " >&6
8f838781 17266else
7d9455ce 17267 if test x$gcc_no_link = xyes; then
f00f02a3 17268 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17269fi
cd9a469c 17270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17271/* end confdefs.h. */
17272
7d9455ce 17273#ifdef HAVE_COMPLEX_H
17274#include <complex.h>
17275#endif
17276#ifdef HAVE_MATH_H
17277#include <math.h>
8f838781 17278#endif
7d9455ce 17279
17280int (*ptr)() = (int (*)())acosh;
17281
8f838781 17282int
17283main ()
17284{
cd9a469c 17285 return 0;
17286}
7d9455ce 17287
cd9a469c 17288_ACEOF
17289if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17290 gcc_cv_math_func_acosh=yes
8f838781 17291else
7d9455ce 17292 gcc_cv_math_func_acosh=no
8f838781 17293fi
cd9a469c 17294rm -f core conftest.err conftest.$ac_objext \
17295 conftest$ac_exeext conftest.$ac_ext
8f838781 17296fi
7d9455ce 17297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17298$as_echo "$gcc_cv_math_func_acosh" >&6; }
17299 if test $gcc_cv_math_func_acosh = yes; then
bd647a17 17300
6affa8e1 17301cat >>confdefs.h <<_ACEOF
17302#define HAVE_ACOSH 1
17303_ACEOF
7d9455ce 17304
17305 fi
8f838781 17306
8f838781 17307
8f838781 17308
7d9455ce 17309
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17311$as_echo_n "checking for acoshl... " >&6; }
f00f02a3 17312if ${gcc_cv_math_func_acoshl+:} false; then :
cd9a469c 17313 $as_echo_n "(cached) " >&6
b52ee437 17314else
7d9455ce 17315 if test x$gcc_no_link = xyes; then
f00f02a3 17316 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17317fi
cd9a469c 17318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 17319/* end confdefs.h. */
17320
7d9455ce 17321#ifdef HAVE_COMPLEX_H
17322#include <complex.h>
b52ee437 17323#endif
7d9455ce 17324#ifdef HAVE_MATH_H
17325#include <math.h>
17326#endif
17327
17328int (*ptr)() = (int (*)())acoshl;
17329
b52ee437 17330int
17331main ()
17332{
b52ee437 17333 return 0;
17334}
7d9455ce 17335
b52ee437 17336_ACEOF
cd9a469c 17337if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17338 gcc_cv_math_func_acoshl=yes
b52ee437 17339else
7d9455ce 17340 gcc_cv_math_func_acoshl=no
b52ee437 17341fi
cd9a469c 17342rm -f core conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
b52ee437 17344fi
7d9455ce 17345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17346$as_echo "$gcc_cv_math_func_acoshl" >&6; }
17347 if test $gcc_cv_math_func_acoshl = yes; then
bd647a17 17348
6affa8e1 17349cat >>confdefs.h <<_ACEOF
17350#define HAVE_ACOSHL 1
17351_ACEOF
7d9455ce 17352
17353 fi
17354
b52ee437 17355
b52ee437 17356
b52ee437 17357
7d9455ce 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17359$as_echo_n "checking for asinf... " >&6; }
f00f02a3 17360if ${gcc_cv_math_func_asinf+:} false; then :
cd9a469c 17361 $as_echo_n "(cached) " >&6
8f838781 17362else
7d9455ce 17363 if test x$gcc_no_link = xyes; then
f00f02a3 17364 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17365fi
cd9a469c 17366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17367/* end confdefs.h. */
17368
7d9455ce 17369#ifdef HAVE_COMPLEX_H
17370#include <complex.h>
17371#endif
17372#ifdef HAVE_MATH_H
17373#include <math.h>
8f838781 17374#endif
7d9455ce 17375
17376int (*ptr)() = (int (*)())asinf;
17377
8f838781 17378int
17379main ()
17380{
8f838781 17381 return 0;
17382}
7d9455ce 17383
8f838781 17384_ACEOF
cd9a469c 17385if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17386 gcc_cv_math_func_asinf=yes
8f838781 17387else
7d9455ce 17388 gcc_cv_math_func_asinf=no
8f838781 17389fi
cd9a469c 17390rm -f core conftest.err conftest.$ac_objext \
17391 conftest$ac_exeext conftest.$ac_ext
8f838781 17392fi
7d9455ce 17393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17394$as_echo "$gcc_cv_math_func_asinf" >&6; }
17395 if test $gcc_cv_math_func_asinf = yes; then
bd647a17 17396
6affa8e1 17397cat >>confdefs.h <<_ACEOF
17398#define HAVE_ASINF 1
17399_ACEOF
7d9455ce 17400
17401 fi
8f838781 17402
8f838781 17403
8f838781 17404
7d9455ce 17405
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17407$as_echo_n "checking for asin... " >&6; }
f00f02a3 17408if ${gcc_cv_math_func_asin+:} false; then :
cd9a469c 17409 $as_echo_n "(cached) " >&6
8f838781 17410else
7d9455ce 17411 if test x$gcc_no_link = xyes; then
f00f02a3 17412 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17413fi
cd9a469c 17414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17415/* end confdefs.h. */
17416
7d9455ce 17417#ifdef HAVE_COMPLEX_H
17418#include <complex.h>
8f838781 17419#endif
7d9455ce 17420#ifdef HAVE_MATH_H
17421#include <math.h>
17422#endif
17423
17424int (*ptr)() = (int (*)())asin;
17425
8f838781 17426int
17427main ()
17428{
8f838781 17429 return 0;
17430}
7d9455ce 17431
8f838781 17432_ACEOF
cd9a469c 17433if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17434 gcc_cv_math_func_asin=yes
8f838781 17435else
7d9455ce 17436 gcc_cv_math_func_asin=no
8f838781 17437fi
cd9a469c 17438rm -f core conftest.err conftest.$ac_objext \
17439 conftest$ac_exeext conftest.$ac_ext
8f838781 17440fi
7d9455ce 17441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17442$as_echo "$gcc_cv_math_func_asin" >&6; }
17443 if test $gcc_cv_math_func_asin = yes; then
bd647a17 17444
6affa8e1 17445cat >>confdefs.h <<_ACEOF
17446#define HAVE_ASIN 1
17447_ACEOF
8f838781 17448
7d9455ce 17449 fi
8f838781 17450
8f838781 17451
7d9455ce 17452
17453
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17455$as_echo_n "checking for asinl... " >&6; }
f00f02a3 17456if ${gcc_cv_math_func_asinl+:} false; then :
cd9a469c 17457 $as_echo_n "(cached) " >&6
8f838781 17458else
7d9455ce 17459 if test x$gcc_no_link = xyes; then
f00f02a3 17460 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17461fi
cd9a469c 17462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17463/* end confdefs.h. */
17464
7d9455ce 17465#ifdef HAVE_COMPLEX_H
17466#include <complex.h>
17467#endif
17468#ifdef HAVE_MATH_H
17469#include <math.h>
8f838781 17470#endif
7d9455ce 17471
17472int (*ptr)() = (int (*)())asinl;
17473
8f838781 17474int
17475main ()
17476{
8f838781 17477 return 0;
17478}
7d9455ce 17479
8f838781 17480_ACEOF
cd9a469c 17481if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17482 gcc_cv_math_func_asinl=yes
8f838781 17483else
7d9455ce 17484 gcc_cv_math_func_asinl=no
8f838781 17485fi
cd9a469c 17486rm -f core conftest.err conftest.$ac_objext \
17487 conftest$ac_exeext conftest.$ac_ext
8f838781 17488fi
7d9455ce 17489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17490$as_echo "$gcc_cv_math_func_asinl" >&6; }
17491 if test $gcc_cv_math_func_asinl = yes; then
bd647a17 17492
6affa8e1 17493cat >>confdefs.h <<_ACEOF
17494#define HAVE_ASINL 1
17495_ACEOF
7d9455ce 17496
17497 fi
8f838781 17498
8f838781 17499
8f838781 17500
7d9455ce 17501
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17503$as_echo_n "checking for asinhf... " >&6; }
f00f02a3 17504if ${gcc_cv_math_func_asinhf+:} false; then :
cd9a469c 17505 $as_echo_n "(cached) " >&6
8f838781 17506else
7d9455ce 17507 if test x$gcc_no_link = xyes; then
f00f02a3 17508 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17509fi
cd9a469c 17510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17511/* end confdefs.h. */
17512
7d9455ce 17513#ifdef HAVE_COMPLEX_H
17514#include <complex.h>
8f838781 17515#endif
7d9455ce 17516#ifdef HAVE_MATH_H
17517#include <math.h>
17518#endif
17519
17520int (*ptr)() = (int (*)())asinhf;
17521
8f838781 17522int
17523main ()
17524{
8f838781 17525 return 0;
17526}
7d9455ce 17527
8f838781 17528_ACEOF
cd9a469c 17529if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17530 gcc_cv_math_func_asinhf=yes
8f838781 17531else
7d9455ce 17532 gcc_cv_math_func_asinhf=no
8f838781 17533fi
cd9a469c 17534rm -f core conftest.err conftest.$ac_objext \
17535 conftest$ac_exeext conftest.$ac_ext
8f838781 17536fi
7d9455ce 17537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17538$as_echo "$gcc_cv_math_func_asinhf" >&6; }
17539 if test $gcc_cv_math_func_asinhf = yes; then
bd647a17 17540
6affa8e1 17541cat >>confdefs.h <<_ACEOF
17542#define HAVE_ASINHF 1
17543_ACEOF
7d9455ce 17544
17545 fi
17546
8f838781 17547
8f838781 17548
8f838781 17549
7d9455ce 17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17551$as_echo_n "checking for asinh... " >&6; }
f00f02a3 17552if ${gcc_cv_math_func_asinh+:} false; then :
cd9a469c 17553 $as_echo_n "(cached) " >&6
8f838781 17554else
7d9455ce 17555 if test x$gcc_no_link = xyes; then
f00f02a3 17556 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17557fi
cd9a469c 17558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17559/* end confdefs.h. */
17560
7d9455ce 17561#ifdef HAVE_COMPLEX_H
17562#include <complex.h>
17563#endif
17564#ifdef HAVE_MATH_H
17565#include <math.h>
8f838781 17566#endif
7d9455ce 17567
17568int (*ptr)() = (int (*)())asinh;
17569
8f838781 17570int
17571main ()
17572{
8f838781 17573 return 0;
17574}
7d9455ce 17575
8f838781 17576_ACEOF
cd9a469c 17577if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17578 gcc_cv_math_func_asinh=yes
8f838781 17579else
7d9455ce 17580 gcc_cv_math_func_asinh=no
8f838781 17581fi
cd9a469c 17582rm -f core conftest.err conftest.$ac_objext \
17583 conftest$ac_exeext conftest.$ac_ext
8f838781 17584fi
7d9455ce 17585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17586$as_echo "$gcc_cv_math_func_asinh" >&6; }
17587 if test $gcc_cv_math_func_asinh = yes; then
bd647a17 17588
6affa8e1 17589cat >>confdefs.h <<_ACEOF
17590#define HAVE_ASINH 1
17591_ACEOF
7d9455ce 17592
17593 fi
8f838781 17594
8f838781 17595
8f838781 17596
7d9455ce 17597
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17599$as_echo_n "checking for asinhl... " >&6; }
f00f02a3 17600if ${gcc_cv_math_func_asinhl+:} false; then :
cd9a469c 17601 $as_echo_n "(cached) " >&6
334f03a1 17602else
7d9455ce 17603 if test x$gcc_no_link = xyes; then
f00f02a3 17604 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17605fi
cd9a469c 17606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
334f03a1 17607/* end confdefs.h. */
17608
7d9455ce 17609#ifdef HAVE_COMPLEX_H
17610#include <complex.h>
334f03a1 17611#endif
7d9455ce 17612#ifdef HAVE_MATH_H
17613#include <math.h>
17614#endif
17615
17616int (*ptr)() = (int (*)())asinhl;
17617
334f03a1 17618int
17619main ()
17620{
334f03a1 17621 return 0;
17622}
7d9455ce 17623
334f03a1 17624_ACEOF
cd9a469c 17625if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17626 gcc_cv_math_func_asinhl=yes
334f03a1 17627else
7d9455ce 17628 gcc_cv_math_func_asinhl=no
334f03a1 17629fi
cd9a469c 17630rm -f core conftest.err conftest.$ac_objext \
17631 conftest$ac_exeext conftest.$ac_ext
334f03a1 17632fi
7d9455ce 17633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17634$as_echo "$gcc_cv_math_func_asinhl" >&6; }
17635 if test $gcc_cv_math_func_asinhl = yes; then
bd647a17 17636
6affa8e1 17637cat >>confdefs.h <<_ACEOF
17638#define HAVE_ASINHL 1
17639_ACEOF
334f03a1 17640
7d9455ce 17641 fi
334f03a1 17642
334f03a1 17643
7d9455ce 17644
17645
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17647$as_echo_n "checking for atan2f... " >&6; }
f00f02a3 17648if ${gcc_cv_math_func_atan2f+:} false; then :
cd9a469c 17649 $as_echo_n "(cached) " >&6
8f838781 17650else
7d9455ce 17651 if test x$gcc_no_link = xyes; then
f00f02a3 17652 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17653fi
cd9a469c 17654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17655/* end confdefs.h. */
17656
7d9455ce 17657#ifdef HAVE_COMPLEX_H
17658#include <complex.h>
8f838781 17659#endif
7d9455ce 17660#ifdef HAVE_MATH_H
17661#include <math.h>
17662#endif
17663
17664int (*ptr)() = (int (*)())atan2f;
17665
17666int
8f838781 17667main ()
17668{
8f838781 17669 return 0;
17670}
7d9455ce 17671
8f838781 17672_ACEOF
cd9a469c 17673if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17674 gcc_cv_math_func_atan2f=yes
8f838781 17675else
7d9455ce 17676 gcc_cv_math_func_atan2f=no
8f838781 17677fi
cd9a469c 17678rm -f core conftest.err conftest.$ac_objext \
17679 conftest$ac_exeext conftest.$ac_ext
8f838781 17680fi
7d9455ce 17681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17682$as_echo "$gcc_cv_math_func_atan2f" >&6; }
17683 if test $gcc_cv_math_func_atan2f = yes; then
bd647a17 17684
6affa8e1 17685cat >>confdefs.h <<_ACEOF
17686#define HAVE_ATAN2F 1
17687_ACEOF
7d9455ce 17688
17689 fi
8f838781 17690
8f838781 17691
8f838781 17692
7d9455ce 17693
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17695$as_echo_n "checking for atan2... " >&6; }
f00f02a3 17696if ${gcc_cv_math_func_atan2+:} false; then :
cd9a469c 17697 $as_echo_n "(cached) " >&6
8f838781 17698else
7d9455ce 17699 if test x$gcc_no_link = xyes; then
f00f02a3 17700 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17701fi
cd9a469c 17702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17703/* end confdefs.h. */
17704
7d9455ce 17705#ifdef HAVE_COMPLEX_H
17706#include <complex.h>
8f838781 17707#endif
7d9455ce 17708#ifdef HAVE_MATH_H
17709#include <math.h>
17710#endif
17711
17712int (*ptr)() = (int (*)())atan2;
17713
8f838781 17714int
17715main ()
17716{
8f838781 17717 return 0;
17718}
7d9455ce 17719
8f838781 17720_ACEOF
cd9a469c 17721if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17722 gcc_cv_math_func_atan2=yes
8f838781 17723else
7d9455ce 17724 gcc_cv_math_func_atan2=no
8f838781 17725fi
cd9a469c 17726rm -f core conftest.err conftest.$ac_objext \
17727 conftest$ac_exeext conftest.$ac_ext
8f838781 17728fi
7d9455ce 17729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17730$as_echo "$gcc_cv_math_func_atan2" >&6; }
17731 if test $gcc_cv_math_func_atan2 = yes; then
bd647a17 17732
6affa8e1 17733cat >>confdefs.h <<_ACEOF
17734#define HAVE_ATAN2 1
17735_ACEOF
8f838781 17736
7d9455ce 17737 fi
8f838781 17738
8f838781 17739
7d9455ce 17740
17741
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17743$as_echo_n "checking for atan2l... " >&6; }
f00f02a3 17744if ${gcc_cv_math_func_atan2l+:} false; then :
cd9a469c 17745 $as_echo_n "(cached) " >&6
8f838781 17746else
7d9455ce 17747 if test x$gcc_no_link = xyes; then
f00f02a3 17748 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17749fi
cd9a469c 17750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17751/* end confdefs.h. */
17752
7d9455ce 17753#ifdef HAVE_COMPLEX_H
17754#include <complex.h>
17755#endif
17756#ifdef HAVE_MATH_H
17757#include <math.h>
8f838781 17758#endif
7d9455ce 17759
17760int (*ptr)() = (int (*)())atan2l;
17761
8f838781 17762int
17763main ()
17764{
8f838781 17765 return 0;
17766}
7d9455ce 17767
8f838781 17768_ACEOF
cd9a469c 17769if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17770 gcc_cv_math_func_atan2l=yes
8f838781 17771else
7d9455ce 17772 gcc_cv_math_func_atan2l=no
8f838781 17773fi
cd9a469c 17774rm -f core conftest.err conftest.$ac_objext \
17775 conftest$ac_exeext conftest.$ac_ext
8f838781 17776fi
7d9455ce 17777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17778$as_echo "$gcc_cv_math_func_atan2l" >&6; }
17779 if test $gcc_cv_math_func_atan2l = yes; then
bd647a17 17780
6affa8e1 17781cat >>confdefs.h <<_ACEOF
17782#define HAVE_ATAN2L 1
17783_ACEOF
7d9455ce 17784
17785 fi
8f838781 17786
8f838781 17787
8f838781 17788
7d9455ce 17789
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17791$as_echo_n "checking for atanf... " >&6; }
f00f02a3 17792if ${gcc_cv_math_func_atanf+:} false; then :
cd9a469c 17793 $as_echo_n "(cached) " >&6
8f838781 17794else
7d9455ce 17795 if test x$gcc_no_link = xyes; then
f00f02a3 17796 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17797fi
cd9a469c 17798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17799/* end confdefs.h. */
17800
7d9455ce 17801#ifdef HAVE_COMPLEX_H
17802#include <complex.h>
8f838781 17803#endif
7d9455ce 17804#ifdef HAVE_MATH_H
17805#include <math.h>
17806#endif
17807
17808int (*ptr)() = (int (*)())atanf;
17809
8f838781 17810int
17811main ()
17812{
8f838781 17813 return 0;
17814}
7d9455ce 17815
8f838781 17816_ACEOF
cd9a469c 17817if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17818 gcc_cv_math_func_atanf=yes
8f838781 17819else
7d9455ce 17820 gcc_cv_math_func_atanf=no
8f838781 17821fi
cd9a469c 17822rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
8f838781 17824fi
7d9455ce 17825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17826$as_echo "$gcc_cv_math_func_atanf" >&6; }
17827 if test $gcc_cv_math_func_atanf = yes; then
bd647a17 17828
6affa8e1 17829cat >>confdefs.h <<_ACEOF
17830#define HAVE_ATANF 1
17831_ACEOF
7d9455ce 17832
17833 fi
17834
8f838781 17835
8f838781 17836
8f838781 17837
7d9455ce 17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17839$as_echo_n "checking for atan... " >&6; }
f00f02a3 17840if ${gcc_cv_math_func_atan+:} false; then :
cd9a469c 17841 $as_echo_n "(cached) " >&6
8f838781 17842else
7d9455ce 17843 if test x$gcc_no_link = xyes; then
f00f02a3 17844 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17845fi
cd9a469c 17846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17847/* end confdefs.h. */
17848
7d9455ce 17849#ifdef HAVE_COMPLEX_H
17850#include <complex.h>
17851#endif
17852#ifdef HAVE_MATH_H
17853#include <math.h>
8f838781 17854#endif
7d9455ce 17855
17856int (*ptr)() = (int (*)())atan;
17857
8f838781 17858int
17859main ()
17860{
8f838781 17861 return 0;
17862}
7d9455ce 17863
8f838781 17864_ACEOF
cd9a469c 17865if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17866 gcc_cv_math_func_atan=yes
8f838781 17867else
7d9455ce 17868 gcc_cv_math_func_atan=no
8f838781 17869fi
cd9a469c 17870rm -f core conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
8f838781 17872fi
7d9455ce 17873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17874$as_echo "$gcc_cv_math_func_atan" >&6; }
17875 if test $gcc_cv_math_func_atan = yes; then
bd647a17 17876
6affa8e1 17877cat >>confdefs.h <<_ACEOF
17878#define HAVE_ATAN 1
17879_ACEOF
7d9455ce 17880
17881 fi
8f838781 17882
8f838781 17883
8f838781 17884
7d9455ce 17885
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17887$as_echo_n "checking for atanl... " >&6; }
f00f02a3 17888if ${gcc_cv_math_func_atanl+:} false; then :
cd9a469c 17889 $as_echo_n "(cached) " >&6
14c3c235 17890else
7d9455ce 17891 if test x$gcc_no_link = xyes; then
f00f02a3 17892 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17893fi
cd9a469c 17894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14c3c235 17895/* end confdefs.h. */
17896
7d9455ce 17897#ifdef HAVE_COMPLEX_H
17898#include <complex.h>
14c3c235 17899#endif
7d9455ce 17900#ifdef HAVE_MATH_H
17901#include <math.h>
17902#endif
17903
17904int (*ptr)() = (int (*)())atanl;
17905
14c3c235 17906int
17907main ()
17908{
14c3c235 17909 return 0;
17910}
7d9455ce 17911
14c3c235 17912_ACEOF
cd9a469c 17913if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17914 gcc_cv_math_func_atanl=yes
14c3c235 17915else
7d9455ce 17916 gcc_cv_math_func_atanl=no
14c3c235 17917fi
cd9a469c 17918rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
14c3c235 17920fi
7d9455ce 17921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17922$as_echo "$gcc_cv_math_func_atanl" >&6; }
17923 if test $gcc_cv_math_func_atanl = yes; then
bd647a17 17924
6affa8e1 17925cat >>confdefs.h <<_ACEOF
17926#define HAVE_ATANL 1
17927_ACEOF
14c3c235 17928
7d9455ce 17929 fi
14c3c235 17930
14c3c235 17931
7d9455ce 17932
17933
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17935$as_echo_n "checking for atanhf... " >&6; }
f00f02a3 17936if ${gcc_cv_math_func_atanhf+:} false; then :
cd9a469c 17937 $as_echo_n "(cached) " >&6
8f838781 17938else
7d9455ce 17939 if test x$gcc_no_link = xyes; then
f00f02a3 17940 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17941fi
cd9a469c 17942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17943/* end confdefs.h. */
17944
7d9455ce 17945#ifdef HAVE_COMPLEX_H
17946#include <complex.h>
17947#endif
17948#ifdef HAVE_MATH_H
17949#include <math.h>
8f838781 17950#endif
7d9455ce 17951
17952int (*ptr)() = (int (*)())atanhf;
17953
8f838781 17954int
17955main ()
17956{
8f838781 17957 return 0;
17958}
7d9455ce 17959
8f838781 17960_ACEOF
cd9a469c 17961if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17962 gcc_cv_math_func_atanhf=yes
8f838781 17963else
7d9455ce 17964 gcc_cv_math_func_atanhf=no
8f838781 17965fi
cd9a469c 17966rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
8f838781 17968fi
7d9455ce 17969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17970$as_echo "$gcc_cv_math_func_atanhf" >&6; }
17971 if test $gcc_cv_math_func_atanhf = yes; then
bd647a17 17972
6affa8e1 17973cat >>confdefs.h <<_ACEOF
17974#define HAVE_ATANHF 1
17975_ACEOF
7d9455ce 17976
17977 fi
8f838781 17978
8f838781 17979
8f838781 17980
7d9455ce 17981
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17983$as_echo_n "checking for atanh... " >&6; }
f00f02a3 17984if ${gcc_cv_math_func_atanh+:} false; then :
cd9a469c 17985 $as_echo_n "(cached) " >&6
8f838781 17986else
7d9455ce 17987 if test x$gcc_no_link = xyes; then
f00f02a3 17988 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17989fi
cd9a469c 17990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17991/* end confdefs.h. */
17992
7d9455ce 17993#ifdef HAVE_COMPLEX_H
17994#include <complex.h>
8f838781 17995#endif
7d9455ce 17996#ifdef HAVE_MATH_H
17997#include <math.h>
17998#endif
17999
18000int (*ptr)() = (int (*)())atanh;
18001
8f838781 18002int
18003main ()
18004{
8f838781 18005 return 0;
18006}
7d9455ce 18007
8f838781 18008_ACEOF
cd9a469c 18009if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18010 gcc_cv_math_func_atanh=yes
8f838781 18011else
7d9455ce 18012 gcc_cv_math_func_atanh=no
8f838781 18013fi
cd9a469c 18014rm -f core conftest.err conftest.$ac_objext \
18015 conftest$ac_exeext conftest.$ac_ext
8f838781 18016fi
7d9455ce 18017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
18018$as_echo "$gcc_cv_math_func_atanh" >&6; }
18019 if test $gcc_cv_math_func_atanh = yes; then
bd647a17 18020
6affa8e1 18021cat >>confdefs.h <<_ACEOF
18022#define HAVE_ATANH 1
18023_ACEOF
7d9455ce 18024
18025 fi
18026
8f838781 18027
8f838781 18028
8f838781 18029
7d9455ce 18030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
18031$as_echo_n "checking for atanhl... " >&6; }
f00f02a3 18032if ${gcc_cv_math_func_atanhl+:} false; then :
cd9a469c 18033 $as_echo_n "(cached) " >&6
a2d7a3ff 18034else
7d9455ce 18035 if test x$gcc_no_link = xyes; then
f00f02a3 18036 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18037fi
cd9a469c 18038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2d7a3ff 18039/* end confdefs.h. */
18040
7d9455ce 18041#ifdef HAVE_COMPLEX_H
18042#include <complex.h>
18043#endif
18044#ifdef HAVE_MATH_H
18045#include <math.h>
a2d7a3ff 18046#endif
7d9455ce 18047
18048int (*ptr)() = (int (*)())atanhl;
18049
a2d7a3ff 18050int
18051main ()
18052{
a2d7a3ff 18053 return 0;
18054}
7d9455ce 18055
a2d7a3ff 18056_ACEOF
cd9a469c 18057if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18058 gcc_cv_math_func_atanhl=yes
a2d7a3ff 18059else
7d9455ce 18060 gcc_cv_math_func_atanhl=no
a2d7a3ff 18061fi
cd9a469c 18062rm -f core conftest.err conftest.$ac_objext \
18063 conftest$ac_exeext conftest.$ac_ext
a2d7a3ff 18064fi
7d9455ce 18065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
18066$as_echo "$gcc_cv_math_func_atanhl" >&6; }
18067 if test $gcc_cv_math_func_atanhl = yes; then
bd647a17 18068
6affa8e1 18069cat >>confdefs.h <<_ACEOF
18070#define HAVE_ATANHL 1
18071_ACEOF
7d9455ce 18072
18073 fi
a2d7a3ff 18074
a2d7a3ff 18075
a2d7a3ff 18076
7d9455ce 18077
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
18079$as_echo_n "checking for cargf... " >&6; }
f00f02a3 18080if ${gcc_cv_math_func_cargf+:} false; then :
cd9a469c 18081 $as_echo_n "(cached) " >&6
a31bd8a4 18082else
7d9455ce 18083 if test x$gcc_no_link = xyes; then
f00f02a3 18084 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18085fi
cd9a469c 18086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a31bd8a4 18087/* end confdefs.h. */
18088
7d9455ce 18089#ifdef HAVE_COMPLEX_H
18090#include <complex.h>
a31bd8a4 18091#endif
7d9455ce 18092#ifdef HAVE_MATH_H
18093#include <math.h>
18094#endif
18095
18096int (*ptr)() = (int (*)())cargf;
18097
8f838781 18098int
18099main ()
18100{
8f838781 18101 return 0;
18102}
7d9455ce 18103
8f838781 18104_ACEOF
cd9a469c 18105if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18106 gcc_cv_math_func_cargf=yes
8f838781 18107else
7d9455ce 18108 gcc_cv_math_func_cargf=no
8f838781 18109fi
cd9a469c 18110rm -f core conftest.err conftest.$ac_objext \
18111 conftest$ac_exeext conftest.$ac_ext
8f838781 18112fi
7d9455ce 18113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
18114$as_echo "$gcc_cv_math_func_cargf" >&6; }
18115 if test $gcc_cv_math_func_cargf = yes; then
bd647a17 18116
6affa8e1 18117cat >>confdefs.h <<_ACEOF
18118#define HAVE_CARGF 1
18119_ACEOF
8f838781 18120
7d9455ce 18121 fi
8f838781 18122
8f838781 18123
7d9455ce 18124
18125
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
18127$as_echo_n "checking for carg... " >&6; }
f00f02a3 18128if ${gcc_cv_math_func_carg+:} false; then :
cd9a469c 18129 $as_echo_n "(cached) " >&6
8f838781 18130else
7d9455ce 18131 if test x$gcc_no_link = xyes; then
f00f02a3 18132 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18133fi
cd9a469c 18134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 18135/* end confdefs.h. */
18136
7d9455ce 18137#ifdef HAVE_COMPLEX_H
18138#include <complex.h>
18139#endif
18140#ifdef HAVE_MATH_H
18141#include <math.h>
8f838781 18142#endif
7d9455ce 18143
18144int (*ptr)() = (int (*)())carg;
18145
a31bd8a4 18146int
18147main ()
18148{
a31bd8a4 18149 return 0;
18150}
7d9455ce 18151
a31bd8a4 18152_ACEOF
cd9a469c 18153if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18154 gcc_cv_math_func_carg=yes
a31bd8a4 18155else
7d9455ce 18156 gcc_cv_math_func_carg=no
a31bd8a4 18157fi
cd9a469c 18158rm -f core conftest.err conftest.$ac_objext \
18159 conftest$ac_exeext conftest.$ac_ext
a31bd8a4 18160fi
7d9455ce 18161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
18162$as_echo "$gcc_cv_math_func_carg" >&6; }
18163 if test $gcc_cv_math_func_carg = yes; then
bd647a17 18164
6affa8e1 18165cat >>confdefs.h <<_ACEOF
18166#define HAVE_CARG 1
18167_ACEOF
7d9455ce 18168
18169 fi
a31bd8a4 18170
a31bd8a4 18171
a31bd8a4 18172
7d9455ce 18173
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18175$as_echo_n "checking for cargl... " >&6; }
f00f02a3 18176if ${gcc_cv_math_func_cargl+:} false; then :
cd9a469c 18177 $as_echo_n "(cached) " >&6
a31bd8a4 18178else
7d9455ce 18179 if test x$gcc_no_link = xyes; then
f00f02a3 18180 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18181fi
cd9a469c 18182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a31bd8a4 18183/* end confdefs.h. */
18184
7d9455ce 18185#ifdef HAVE_COMPLEX_H
18186#include <complex.h>
a31bd8a4 18187#endif
7d9455ce 18188#ifdef HAVE_MATH_H
18189#include <math.h>
18190#endif
18191
18192int (*ptr)() = (int (*)())cargl;
18193
a31bd8a4 18194int
18195main ()
18196{
a31bd8a4 18197 return 0;
18198}
7d9455ce 18199
a31bd8a4 18200_ACEOF
cd9a469c 18201if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18202 gcc_cv_math_func_cargl=yes
a31bd8a4 18203else
7d9455ce 18204 gcc_cv_math_func_cargl=no
a31bd8a4 18205fi
cd9a469c 18206rm -f core conftest.err conftest.$ac_objext \
18207 conftest$ac_exeext conftest.$ac_ext
a31bd8a4 18208fi
7d9455ce 18209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18210$as_echo "$gcc_cv_math_func_cargl" >&6; }
18211 if test $gcc_cv_math_func_cargl = yes; then
bd647a17 18212
6affa8e1 18213cat >>confdefs.h <<_ACEOF
18214#define HAVE_CARGL 1
18215_ACEOF
7d9455ce 18216
18217 fi
18218
a31bd8a4 18219
a31bd8a4 18220
a31bd8a4 18221
7d9455ce 18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18223$as_echo_n "checking for ceilf... " >&6; }
f00f02a3 18224if ${gcc_cv_math_func_ceilf+:} false; then :
cd9a469c 18225 $as_echo_n "(cached) " >&6
97844b15 18226else
7d9455ce 18227 if test x$gcc_no_link = xyes; then
f00f02a3 18228 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18229fi
cd9a469c 18230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97844b15 18231/* end confdefs.h. */
18232
7d9455ce 18233#ifdef HAVE_COMPLEX_H
18234#include <complex.h>
18235#endif
18236#ifdef HAVE_MATH_H
18237#include <math.h>
97844b15 18238#endif
7d9455ce 18239
18240int (*ptr)() = (int (*)())ceilf;
18241
97844b15 18242int
18243main ()
18244{
97844b15 18245 return 0;
18246}
7d9455ce 18247
97844b15 18248_ACEOF
cd9a469c 18249if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18250 gcc_cv_math_func_ceilf=yes
97844b15 18251else
7d9455ce 18252 gcc_cv_math_func_ceilf=no
97844b15 18253fi
cd9a469c 18254rm -f core conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
97844b15 18256fi
7d9455ce 18257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18258$as_echo "$gcc_cv_math_func_ceilf" >&6; }
18259 if test $gcc_cv_math_func_ceilf = yes; then
bd647a17 18260
6affa8e1 18261cat >>confdefs.h <<_ACEOF
18262#define HAVE_CEILF 1
18263_ACEOF
7d9455ce 18264
18265 fi
97844b15 18266
97844b15 18267
97844b15 18268
7d9455ce 18269
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18271$as_echo_n "checking for ceil... " >&6; }
f00f02a3 18272if ${gcc_cv_math_func_ceil+:} false; then :
cd9a469c 18273 $as_echo_n "(cached) " >&6
4db2deda 18274else
7d9455ce 18275 if test x$gcc_no_link = xyes; then
f00f02a3 18276 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18277fi
cd9a469c 18278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4db2deda 18279/* end confdefs.h. */
18280
7d9455ce 18281#ifdef HAVE_COMPLEX_H
18282#include <complex.h>
4db2deda 18283#endif
7d9455ce 18284#ifdef HAVE_MATH_H
18285#include <math.h>
18286#endif
18287
18288int (*ptr)() = (int (*)())ceil;
18289
4db2deda 18290int
18291main ()
18292{
4db2deda 18293 return 0;
18294}
7d9455ce 18295
4db2deda 18296_ACEOF
cd9a469c 18297if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18298 gcc_cv_math_func_ceil=yes
4db2deda 18299else
7d9455ce 18300 gcc_cv_math_func_ceil=no
4db2deda 18301fi
cd9a469c 18302rm -f core conftest.err conftest.$ac_objext \
18303 conftest$ac_exeext conftest.$ac_ext
4db2deda 18304fi
7d9455ce 18305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18306$as_echo "$gcc_cv_math_func_ceil" >&6; }
18307 if test $gcc_cv_math_func_ceil = yes; then
bd647a17 18308
6affa8e1 18309cat >>confdefs.h <<_ACEOF
18310#define HAVE_CEIL 1
18311_ACEOF
4db2deda 18312
7d9455ce 18313 fi
4db2deda 18314
4db2deda 18315
7d9455ce 18316
18317
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18319$as_echo_n "checking for ceill... " >&6; }
f00f02a3 18320if ${gcc_cv_math_func_ceill+:} false; then :
cd9a469c 18321 $as_echo_n "(cached) " >&6
4db2deda 18322else
7d9455ce 18323 if test x$gcc_no_link = xyes; then
f00f02a3 18324 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18325fi
cd9a469c 18326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4db2deda 18327/* end confdefs.h. */
18328
7d9455ce 18329#ifdef HAVE_COMPLEX_H
18330#include <complex.h>
18331#endif
18332#ifdef HAVE_MATH_H
18333#include <math.h>
4db2deda 18334#endif
7d9455ce 18335
18336int (*ptr)() = (int (*)())ceill;
18337
4db2deda 18338int
18339main ()
18340{
4db2deda 18341 return 0;
18342}
7d9455ce 18343
4db2deda 18344_ACEOF
cd9a469c 18345if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18346 gcc_cv_math_func_ceill=yes
4db2deda 18347else
7d9455ce 18348 gcc_cv_math_func_ceill=no
4db2deda 18349fi
cd9a469c 18350rm -f core conftest.err conftest.$ac_objext \
18351 conftest$ac_exeext conftest.$ac_ext
4db2deda 18352fi
7d9455ce 18353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18354$as_echo "$gcc_cv_math_func_ceill" >&6; }
18355 if test $gcc_cv_math_func_ceill = yes; then
bd647a17 18356
6affa8e1 18357cat >>confdefs.h <<_ACEOF
18358#define HAVE_CEILL 1
18359_ACEOF
7d9455ce 18360
18361 fi
4db2deda 18362
8f838781 18363
8f838781 18364
7d9455ce 18365
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18367$as_echo_n "checking for copysignf... " >&6; }
f00f02a3 18368if ${gcc_cv_math_func_copysignf+:} false; then :
cd9a469c 18369 $as_echo_n "(cached) " >&6
8f838781 18370else
7d9455ce 18371 if test x$gcc_no_link = xyes; then
f00f02a3 18372 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18373fi
cd9a469c 18374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 18375/* end confdefs.h. */
18376
7d9455ce 18377#ifdef HAVE_COMPLEX_H
18378#include <complex.h>
8f838781 18379#endif
7d9455ce 18380#ifdef HAVE_MATH_H
18381#include <math.h>
18382#endif
18383
18384int (*ptr)() = (int (*)())copysignf;
18385
8f838781 18386int
18387main ()
18388{
8f838781 18389 return 0;
18390}
7d9455ce 18391
8f838781 18392_ACEOF
cd9a469c 18393if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18394 gcc_cv_math_func_copysignf=yes
8f838781 18395else
7d9455ce 18396 gcc_cv_math_func_copysignf=no
8f838781 18397fi
cd9a469c 18398rm -f core conftest.err conftest.$ac_objext \
18399 conftest$ac_exeext conftest.$ac_ext
8f838781 18400fi
7d9455ce 18401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18402$as_echo "$gcc_cv_math_func_copysignf" >&6; }
18403 if test $gcc_cv_math_func_copysignf = yes; then
bd647a17 18404
6affa8e1 18405cat >>confdefs.h <<_ACEOF
18406#define HAVE_COPYSIGNF 1
18407_ACEOF
7d9455ce 18408
18409 fi
18410
8f838781 18411
8f838781 18412
8f838781 18413
7d9455ce 18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18415$as_echo_n "checking for copysign... " >&6; }
f00f02a3 18416if ${gcc_cv_math_func_copysign+:} false; then :
cd9a469c 18417 $as_echo_n "(cached) " >&6
8f838781 18418else
7d9455ce 18419 if test x$gcc_no_link = xyes; then
f00f02a3 18420 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18421fi
cd9a469c 18422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 18423/* end confdefs.h. */
18424
7d9455ce 18425#ifdef HAVE_COMPLEX_H
18426#include <complex.h>
18427#endif
18428#ifdef HAVE_MATH_H
18429#include <math.h>
8f838781 18430#endif
7d9455ce 18431
18432int (*ptr)() = (int (*)())copysign;
18433
8f838781 18434int
18435main ()
18436{
8f838781 18437 return 0;
18438}
7d9455ce 18439
8f838781 18440_ACEOF
cd9a469c 18441if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18442 gcc_cv_math_func_copysign=yes
8f838781 18443else
7d9455ce 18444 gcc_cv_math_func_copysign=no
8f838781 18445fi
cd9a469c 18446rm -f core conftest.err conftest.$ac_objext \
18447 conftest$ac_exeext conftest.$ac_ext
8f838781 18448fi
7d9455ce 18449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18450$as_echo "$gcc_cv_math_func_copysign" >&6; }
18451 if test $gcc_cv_math_func_copysign = yes; then
bd647a17 18452
6affa8e1 18453cat >>confdefs.h <<_ACEOF
18454#define HAVE_COPYSIGN 1
18455_ACEOF
7d9455ce 18456
18457 fi
8f838781 18458
8f838781 18459
8f838781 18460
7d9455ce 18461
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18463$as_echo_n "checking for copysignl... " >&6; }
f00f02a3 18464if ${gcc_cv_math_func_copysignl+:} false; then :
cd9a469c 18465 $as_echo_n "(cached) " >&6
8f838781 18466else
7d9455ce 18467 if test x$gcc_no_link = xyes; then
f00f02a3 18468 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18469fi
cd9a469c 18470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 18471/* end confdefs.h. */
18472
7d9455ce 18473#ifdef HAVE_COMPLEX_H
18474#include <complex.h>
8f838781 18475#endif
7d9455ce 18476#ifdef HAVE_MATH_H
18477#include <math.h>
18478#endif
18479
18480int (*ptr)() = (int (*)())copysignl;
18481
8f838781 18482int
18483main ()
18484{
cd9a469c 18485 return 0;
18486}
7d9455ce 18487
cd9a469c 18488_ACEOF
18489if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18490 gcc_cv_math_func_copysignl=yes
8f838781 18491else
7d9455ce 18492 gcc_cv_math_func_copysignl=no
8f838781 18493fi
cd9a469c 18494rm -f core conftest.err conftest.$ac_objext \
18495 conftest$ac_exeext conftest.$ac_ext
8f838781 18496fi
7d9455ce 18497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18498$as_echo "$gcc_cv_math_func_copysignl" >&6; }
18499 if test $gcc_cv_math_func_copysignl = yes; then
bd647a17 18500
6affa8e1 18501cat >>confdefs.h <<_ACEOF
18502#define HAVE_COPYSIGNL 1
18503_ACEOF
8f838781 18504
7d9455ce 18505 fi
4db2deda 18506
4db2deda 18507
7d9455ce 18508
18509
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18511$as_echo_n "checking for cosf... " >&6; }
f00f02a3 18512if ${gcc_cv_math_func_cosf+:} false; then :
cd9a469c 18513 $as_echo_n "(cached) " >&6
50f0ca0a 18514else
7d9455ce 18515 if test x$gcc_no_link = xyes; then
f00f02a3 18516 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18517fi
cd9a469c 18518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50f0ca0a 18519/* end confdefs.h. */
18520
7d9455ce 18521#ifdef HAVE_COMPLEX_H
18522#include <complex.h>
18523#endif
18524#ifdef HAVE_MATH_H
18525#include <math.h>
50f0ca0a 18526#endif
7d9455ce 18527
18528int (*ptr)() = (int (*)())cosf;
18529
50f0ca0a 18530int
18531main ()
18532{
50f0ca0a 18533 return 0;
18534}
7d9455ce 18535
50f0ca0a 18536_ACEOF
cd9a469c 18537if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18538 gcc_cv_math_func_cosf=yes
50f0ca0a 18539else
7d9455ce 18540 gcc_cv_math_func_cosf=no
50f0ca0a 18541fi
cd9a469c 18542rm -f core conftest.err conftest.$ac_objext \
18543 conftest$ac_exeext conftest.$ac_ext
50f0ca0a 18544fi
7d9455ce 18545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18546$as_echo "$gcc_cv_math_func_cosf" >&6; }
18547 if test $gcc_cv_math_func_cosf = yes; then
bd647a17 18548
6affa8e1 18549cat >>confdefs.h <<_ACEOF
18550#define HAVE_COSF 1
18551_ACEOF
7d9455ce 18552
18553 fi
50f0ca0a 18554
d213114b 18555
d213114b 18556
7d9455ce 18557
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18559$as_echo_n "checking for cos... " >&6; }
f00f02a3 18560if ${gcc_cv_math_func_cos+:} false; then :
cd9a469c 18561 $as_echo_n "(cached) " >&6
d213114b 18562else
7d9455ce 18563 if test x$gcc_no_link = xyes; then
f00f02a3 18564 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18565fi
cd9a469c 18566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18567/* end confdefs.h. */
18568
7d9455ce 18569#ifdef HAVE_COMPLEX_H
18570#include <complex.h>
d213114b 18571#endif
7d9455ce 18572#ifdef HAVE_MATH_H
18573#include <math.h>
18574#endif
18575
18576int (*ptr)() = (int (*)())cos;
18577
d213114b 18578int
18579main ()
18580{
d213114b 18581 return 0;
18582}
7d9455ce 18583
d213114b 18584_ACEOF
cd9a469c 18585if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18586 gcc_cv_math_func_cos=yes
d213114b 18587else
7d9455ce 18588 gcc_cv_math_func_cos=no
d213114b 18589fi
cd9a469c 18590rm -f core conftest.err conftest.$ac_objext \
18591 conftest$ac_exeext conftest.$ac_ext
d213114b 18592fi
7d9455ce 18593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18594$as_echo "$gcc_cv_math_func_cos" >&6; }
18595 if test $gcc_cv_math_func_cos = yes; then
bd647a17 18596
6affa8e1 18597cat >>confdefs.h <<_ACEOF
18598#define HAVE_COS 1
18599_ACEOF
7d9455ce 18600
18601 fi
18602
d213114b 18603
d213114b 18604
d213114b 18605
7d9455ce 18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18607$as_echo_n "checking for cosl... " >&6; }
f00f02a3 18608if ${gcc_cv_math_func_cosl+:} false; then :
cd9a469c 18609 $as_echo_n "(cached) " >&6
d213114b 18610else
7d9455ce 18611 if test x$gcc_no_link = xyes; then
f00f02a3 18612 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18613fi
cd9a469c 18614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18615/* end confdefs.h. */
18616
7d9455ce 18617#ifdef HAVE_COMPLEX_H
18618#include <complex.h>
18619#endif
18620#ifdef HAVE_MATH_H
18621#include <math.h>
d213114b 18622#endif
7d9455ce 18623
18624int (*ptr)() = (int (*)())cosl;
18625
d213114b 18626int
18627main ()
18628{
d213114b 18629 return 0;
18630}
7d9455ce 18631
d213114b 18632_ACEOF
cd9a469c 18633if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18634 gcc_cv_math_func_cosl=yes
d213114b 18635else
7d9455ce 18636 gcc_cv_math_func_cosl=no
d213114b 18637fi
cd9a469c 18638rm -f core conftest.err conftest.$ac_objext \
18639 conftest$ac_exeext conftest.$ac_ext
d213114b 18640fi
7d9455ce 18641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18642$as_echo "$gcc_cv_math_func_cosl" >&6; }
18643 if test $gcc_cv_math_func_cosl = yes; then
bd647a17 18644
6affa8e1 18645cat >>confdefs.h <<_ACEOF
18646#define HAVE_COSL 1
18647_ACEOF
7d9455ce 18648
18649 fi
d213114b 18650
d213114b 18651
d213114b 18652
7d9455ce 18653
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18655$as_echo_n "checking for ccosf... " >&6; }
f00f02a3 18656if ${gcc_cv_math_func_ccosf+:} false; then :
cd9a469c 18657 $as_echo_n "(cached) " >&6
d213114b 18658else
7d9455ce 18659 if test x$gcc_no_link = xyes; then
f00f02a3 18660 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18661fi
cd9a469c 18662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18663/* end confdefs.h. */
18664
7d9455ce 18665#ifdef HAVE_COMPLEX_H
18666#include <complex.h>
d213114b 18667#endif
7d9455ce 18668#ifdef HAVE_MATH_H
18669#include <math.h>
18670#endif
18671
18672int (*ptr)() = (int (*)())ccosf;
18673
d213114b 18674int
18675main ()
18676{
d213114b 18677 return 0;
18678}
7d9455ce 18679
d213114b 18680_ACEOF
cd9a469c 18681if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18682 gcc_cv_math_func_ccosf=yes
d213114b 18683else
7d9455ce 18684 gcc_cv_math_func_ccosf=no
d213114b 18685fi
cd9a469c 18686rm -f core conftest.err conftest.$ac_objext \
18687 conftest$ac_exeext conftest.$ac_ext
d213114b 18688fi
7d9455ce 18689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18690$as_echo "$gcc_cv_math_func_ccosf" >&6; }
18691 if test $gcc_cv_math_func_ccosf = yes; then
bd647a17 18692
6affa8e1 18693cat >>confdefs.h <<_ACEOF
18694#define HAVE_CCOSF 1
18695_ACEOF
d213114b 18696
7d9455ce 18697 fi
d213114b 18698
d213114b 18699
7d9455ce 18700
18701
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18703$as_echo_n "checking for ccos... " >&6; }
f00f02a3 18704if ${gcc_cv_math_func_ccos+:} false; then :
cd9a469c 18705 $as_echo_n "(cached) " >&6
d213114b 18706else
7d9455ce 18707 if test x$gcc_no_link = xyes; then
f00f02a3 18708 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18709fi
cd9a469c 18710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18711/* end confdefs.h. */
18712
7d9455ce 18713#ifdef HAVE_COMPLEX_H
18714#include <complex.h>
18715#endif
18716#ifdef HAVE_MATH_H
18717#include <math.h>
d213114b 18718#endif
7d9455ce 18719
18720int (*ptr)() = (int (*)())ccos;
18721
d213114b 18722int
18723main ()
18724{
d213114b 18725 return 0;
18726}
7d9455ce 18727
d213114b 18728_ACEOF
cd9a469c 18729if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18730 gcc_cv_math_func_ccos=yes
d213114b 18731else
7d9455ce 18732 gcc_cv_math_func_ccos=no
d213114b 18733fi
cd9a469c 18734rm -f core conftest.err conftest.$ac_objext \
18735 conftest$ac_exeext conftest.$ac_ext
d213114b 18736fi
7d9455ce 18737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18738$as_echo "$gcc_cv_math_func_ccos" >&6; }
18739 if test $gcc_cv_math_func_ccos = yes; then
bd647a17 18740
6affa8e1 18741cat >>confdefs.h <<_ACEOF
18742#define HAVE_CCOS 1
18743_ACEOF
7d9455ce 18744
18745 fi
d213114b 18746
d213114b 18747
d213114b 18748
7d9455ce 18749
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18751$as_echo_n "checking for ccosl... " >&6; }
f00f02a3 18752if ${gcc_cv_math_func_ccosl+:} false; then :
cd9a469c 18753 $as_echo_n "(cached) " >&6
d213114b 18754else
7d9455ce 18755 if test x$gcc_no_link = xyes; then
f00f02a3 18756 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18757fi
cd9a469c 18758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18759/* end confdefs.h. */
18760
7d9455ce 18761#ifdef HAVE_COMPLEX_H
18762#include <complex.h>
d213114b 18763#endif
7d9455ce 18764#ifdef HAVE_MATH_H
18765#include <math.h>
18766#endif
18767
18768int (*ptr)() = (int (*)())ccosl;
18769
d213114b 18770int
18771main ()
18772{
d213114b 18773 return 0;
18774}
7d9455ce 18775
d213114b 18776_ACEOF
cd9a469c 18777if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18778 gcc_cv_math_func_ccosl=yes
d213114b 18779else
7d9455ce 18780 gcc_cv_math_func_ccosl=no
d213114b 18781fi
cd9a469c 18782rm -f core conftest.err conftest.$ac_objext \
18783 conftest$ac_exeext conftest.$ac_ext
d213114b 18784fi
7d9455ce 18785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18786$as_echo "$gcc_cv_math_func_ccosl" >&6; }
18787 if test $gcc_cv_math_func_ccosl = yes; then
bd647a17 18788
6affa8e1 18789cat >>confdefs.h <<_ACEOF
18790#define HAVE_CCOSL 1
18791_ACEOF
7d9455ce 18792
18793 fi
18794
d213114b 18795
d213114b 18796
d213114b 18797
7d9455ce 18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18799$as_echo_n "checking for coshf... " >&6; }
f00f02a3 18800if ${gcc_cv_math_func_coshf+:} false; then :
cd9a469c 18801 $as_echo_n "(cached) " >&6
d213114b 18802else
7d9455ce 18803 if test x$gcc_no_link = xyes; then
f00f02a3 18804 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18805fi
cd9a469c 18806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18807/* end confdefs.h. */
18808
7d9455ce 18809#ifdef HAVE_COMPLEX_H
18810#include <complex.h>
18811#endif
18812#ifdef HAVE_MATH_H
18813#include <math.h>
d213114b 18814#endif
7d9455ce 18815
18816int (*ptr)() = (int (*)())coshf;
18817
d213114b 18818int
18819main ()
18820{
d213114b 18821 return 0;
18822}
7d9455ce 18823
d213114b 18824_ACEOF
cd9a469c 18825if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18826 gcc_cv_math_func_coshf=yes
d213114b 18827else
7d9455ce 18828 gcc_cv_math_func_coshf=no
d213114b 18829fi
cd9a469c 18830rm -f core conftest.err conftest.$ac_objext \
18831 conftest$ac_exeext conftest.$ac_ext
d213114b 18832fi
7d9455ce 18833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18834$as_echo "$gcc_cv_math_func_coshf" >&6; }
18835 if test $gcc_cv_math_func_coshf = yes; then
bd647a17 18836
6affa8e1 18837cat >>confdefs.h <<_ACEOF
18838#define HAVE_COSHF 1
18839_ACEOF
7d9455ce 18840
18841 fi
d213114b 18842
d213114b 18843
d213114b 18844
7d9455ce 18845
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18847$as_echo_n "checking for cosh... " >&6; }
f00f02a3 18848if ${gcc_cv_math_func_cosh+:} false; then :
cd9a469c 18849 $as_echo_n "(cached) " >&6
d213114b 18850else
7d9455ce 18851 if test x$gcc_no_link = xyes; then
f00f02a3 18852 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18853fi
cd9a469c 18854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18855/* end confdefs.h. */
18856
7d9455ce 18857#ifdef HAVE_COMPLEX_H
18858#include <complex.h>
d213114b 18859#endif
7d9455ce 18860#ifdef HAVE_MATH_H
18861#include <math.h>
18862#endif
18863
18864int (*ptr)() = (int (*)())cosh;
18865
d213114b 18866int
18867main ()
18868{
d213114b 18869 return 0;
18870}
7d9455ce 18871
d213114b 18872_ACEOF
cd9a469c 18873if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18874 gcc_cv_math_func_cosh=yes
d213114b 18875else
7d9455ce 18876 gcc_cv_math_func_cosh=no
d213114b 18877fi
cd9a469c 18878rm -f core conftest.err conftest.$ac_objext \
18879 conftest$ac_exeext conftest.$ac_ext
d213114b 18880fi
7d9455ce 18881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18882$as_echo "$gcc_cv_math_func_cosh" >&6; }
18883 if test $gcc_cv_math_func_cosh = yes; then
bd647a17 18884
6affa8e1 18885cat >>confdefs.h <<_ACEOF
18886#define HAVE_COSH 1
18887_ACEOF
d213114b 18888
7d9455ce 18889 fi
d213114b 18890
d213114b 18891
7d9455ce 18892
18893
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18895$as_echo_n "checking for coshl... " >&6; }
f00f02a3 18896if ${gcc_cv_math_func_coshl+:} false; then :
cd9a469c 18897 $as_echo_n "(cached) " >&6
d213114b 18898else
7d9455ce 18899 if test x$gcc_no_link = xyes; then
f00f02a3 18900 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18901fi
cd9a469c 18902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18903/* end confdefs.h. */
18904
7d9455ce 18905#ifdef HAVE_COMPLEX_H
18906#include <complex.h>
18907#endif
18908#ifdef HAVE_MATH_H
18909#include <math.h>
d213114b 18910#endif
7d9455ce 18911
18912int (*ptr)() = (int (*)())coshl;
18913
d213114b 18914int
18915main ()
18916{
d213114b 18917 return 0;
18918}
7d9455ce 18919
d213114b 18920_ACEOF
cd9a469c 18921if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18922 gcc_cv_math_func_coshl=yes
d213114b 18923else
7d9455ce 18924 gcc_cv_math_func_coshl=no
d213114b 18925fi
cd9a469c 18926rm -f core conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
d213114b 18928fi
7d9455ce 18929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18930$as_echo "$gcc_cv_math_func_coshl" >&6; }
18931 if test $gcc_cv_math_func_coshl = yes; then
bd647a17 18932
6affa8e1 18933cat >>confdefs.h <<_ACEOF
18934#define HAVE_COSHL 1
18935_ACEOF
7d9455ce 18936
18937 fi
d213114b 18938
d213114b 18939
d213114b 18940
7d9455ce 18941
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18943$as_echo_n "checking for ccoshf... " >&6; }
f00f02a3 18944if ${gcc_cv_math_func_ccoshf+:} false; then :
cd9a469c 18945 $as_echo_n "(cached) " >&6
d213114b 18946else
7d9455ce 18947 if test x$gcc_no_link = xyes; then
f00f02a3 18948 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18949fi
cd9a469c 18950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18951/* end confdefs.h. */
18952
7d9455ce 18953#ifdef HAVE_COMPLEX_H
18954#include <complex.h>
d213114b 18955#endif
7d9455ce 18956#ifdef HAVE_MATH_H
18957#include <math.h>
18958#endif
18959
18960int (*ptr)() = (int (*)())ccoshf;
18961
d213114b 18962int
18963main ()
18964{
d213114b 18965 return 0;
18966}
7d9455ce 18967
d213114b 18968_ACEOF
cd9a469c 18969if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18970 gcc_cv_math_func_ccoshf=yes
d213114b 18971else
7d9455ce 18972 gcc_cv_math_func_ccoshf=no
d213114b 18973fi
cd9a469c 18974rm -f core conftest.err conftest.$ac_objext \
18975 conftest$ac_exeext conftest.$ac_ext
d213114b 18976fi
7d9455ce 18977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18978$as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18979 if test $gcc_cv_math_func_ccoshf = yes; then
bd647a17 18980
6affa8e1 18981cat >>confdefs.h <<_ACEOF
18982#define HAVE_CCOSHF 1
18983_ACEOF
7d9455ce 18984
18985 fi
18986
d213114b 18987
d213114b 18988
d213114b 18989
7d9455ce 18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18991$as_echo_n "checking for ccosh... " >&6; }
f00f02a3 18992if ${gcc_cv_math_func_ccosh+:} false; then :
cd9a469c 18993 $as_echo_n "(cached) " >&6
d213114b 18994else
7d9455ce 18995 if test x$gcc_no_link = xyes; then
f00f02a3 18996 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18997fi
cd9a469c 18998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18999/* end confdefs.h. */
19000
7d9455ce 19001#ifdef HAVE_COMPLEX_H
19002#include <complex.h>
19003#endif
19004#ifdef HAVE_MATH_H
19005#include <math.h>
d213114b 19006#endif
7d9455ce 19007
19008int (*ptr)() = (int (*)())ccosh;
19009
d213114b 19010int
19011main ()
19012{
d213114b 19013 return 0;
19014}
7d9455ce 19015
d213114b 19016_ACEOF
cd9a469c 19017if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19018 gcc_cv_math_func_ccosh=yes
d213114b 19019else
7d9455ce 19020 gcc_cv_math_func_ccosh=no
d213114b 19021fi
cd9a469c 19022rm -f core conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
d213114b 19024fi
7d9455ce 19025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
19026$as_echo "$gcc_cv_math_func_ccosh" >&6; }
19027 if test $gcc_cv_math_func_ccosh = yes; then
bd647a17 19028
6affa8e1 19029cat >>confdefs.h <<_ACEOF
19030#define HAVE_CCOSH 1
19031_ACEOF
7d9455ce 19032
19033 fi
d213114b 19034
d213114b 19035
d213114b 19036
7d9455ce 19037
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
19039$as_echo_n "checking for ccoshl... " >&6; }
f00f02a3 19040if ${gcc_cv_math_func_ccoshl+:} false; then :
cd9a469c 19041 $as_echo_n "(cached) " >&6
d213114b 19042else
7d9455ce 19043 if test x$gcc_no_link = xyes; then
f00f02a3 19044 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19045fi
cd9a469c 19046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19047/* end confdefs.h. */
19048
7d9455ce 19049#ifdef HAVE_COMPLEX_H
19050#include <complex.h>
d213114b 19051#endif
7d9455ce 19052#ifdef HAVE_MATH_H
19053#include <math.h>
19054#endif
19055
19056int (*ptr)() = (int (*)())ccoshl;
19057
d213114b 19058int
19059main ()
19060{
d213114b 19061 return 0;
19062}
7d9455ce 19063
d213114b 19064_ACEOF
cd9a469c 19065if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19066 gcc_cv_math_func_ccoshl=yes
d213114b 19067else
7d9455ce 19068 gcc_cv_math_func_ccoshl=no
d213114b 19069fi
cd9a469c 19070rm -f core conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
d213114b 19072fi
7d9455ce 19073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
19074$as_echo "$gcc_cv_math_func_ccoshl" >&6; }
19075 if test $gcc_cv_math_func_ccoshl = yes; then
bd647a17 19076
6affa8e1 19077cat >>confdefs.h <<_ACEOF
19078#define HAVE_CCOSHL 1
19079_ACEOF
d213114b 19080
7d9455ce 19081 fi
d213114b 19082
d213114b 19083
7d9455ce 19084
19085
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
19087$as_echo_n "checking for expf... " >&6; }
f00f02a3 19088if ${gcc_cv_math_func_expf+:} false; then :
cd9a469c 19089 $as_echo_n "(cached) " >&6
d213114b 19090else
7d9455ce 19091 if test x$gcc_no_link = xyes; then
f00f02a3 19092 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19093fi
cd9a469c 19094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19095/* end confdefs.h. */
19096
7d9455ce 19097#ifdef HAVE_COMPLEX_H
19098#include <complex.h>
19099#endif
19100#ifdef HAVE_MATH_H
19101#include <math.h>
d213114b 19102#endif
7d9455ce 19103
19104int (*ptr)() = (int (*)())expf;
19105
d213114b 19106int
19107main ()
19108{
d213114b 19109 return 0;
19110}
7d9455ce 19111
d213114b 19112_ACEOF
cd9a469c 19113if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19114 gcc_cv_math_func_expf=yes
d213114b 19115else
7d9455ce 19116 gcc_cv_math_func_expf=no
d213114b 19117fi
cd9a469c 19118rm -f core conftest.err conftest.$ac_objext \
19119 conftest$ac_exeext conftest.$ac_ext
d213114b 19120fi
7d9455ce 19121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
19122$as_echo "$gcc_cv_math_func_expf" >&6; }
19123 if test $gcc_cv_math_func_expf = yes; then
bd647a17 19124
6affa8e1 19125cat >>confdefs.h <<_ACEOF
19126#define HAVE_EXPF 1
19127_ACEOF
7d9455ce 19128
19129 fi
d213114b 19130
d213114b 19131
d213114b 19132
7d9455ce 19133
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
19135$as_echo_n "checking for exp... " >&6; }
f00f02a3 19136if ${gcc_cv_math_func_exp+:} false; then :
cd9a469c 19137 $as_echo_n "(cached) " >&6
d213114b 19138else
7d9455ce 19139 if test x$gcc_no_link = xyes; then
f00f02a3 19140 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19141fi
cd9a469c 19142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19143/* end confdefs.h. */
19144
7d9455ce 19145#ifdef HAVE_COMPLEX_H
19146#include <complex.h>
d213114b 19147#endif
7d9455ce 19148#ifdef HAVE_MATH_H
19149#include <math.h>
19150#endif
19151
19152int (*ptr)() = (int (*)())exp;
19153
d213114b 19154int
19155main ()
19156{
d213114b 19157 return 0;
19158}
7d9455ce 19159
d213114b 19160_ACEOF
cd9a469c 19161if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19162 gcc_cv_math_func_exp=yes
d213114b 19163else
7d9455ce 19164 gcc_cv_math_func_exp=no
d213114b 19165fi
cd9a469c 19166rm -f core conftest.err conftest.$ac_objext \
19167 conftest$ac_exeext conftest.$ac_ext
d213114b 19168fi
7d9455ce 19169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
19170$as_echo "$gcc_cv_math_func_exp" >&6; }
19171 if test $gcc_cv_math_func_exp = yes; then
bd647a17 19172
6affa8e1 19173cat >>confdefs.h <<_ACEOF
19174#define HAVE_EXP 1
19175_ACEOF
7d9455ce 19176
19177 fi
19178
d213114b 19179
d213114b 19180
d213114b 19181
7d9455ce 19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19183$as_echo_n "checking for expl... " >&6; }
f00f02a3 19184if ${gcc_cv_math_func_expl+:} false; then :
cd9a469c 19185 $as_echo_n "(cached) " >&6
d213114b 19186else
7d9455ce 19187 if test x$gcc_no_link = xyes; then
f00f02a3 19188 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19189fi
cd9a469c 19190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19191/* end confdefs.h. */
19192
7d9455ce 19193#ifdef HAVE_COMPLEX_H
19194#include <complex.h>
19195#endif
19196#ifdef HAVE_MATH_H
19197#include <math.h>
d213114b 19198#endif
7d9455ce 19199
19200int (*ptr)() = (int (*)())expl;
19201
d213114b 19202int
19203main ()
19204{
d213114b 19205 return 0;
19206}
7d9455ce 19207
d213114b 19208_ACEOF
cd9a469c 19209if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19210 gcc_cv_math_func_expl=yes
d213114b 19211else
7d9455ce 19212 gcc_cv_math_func_expl=no
d213114b 19213fi
cd9a469c 19214rm -f core conftest.err conftest.$ac_objext \
19215 conftest$ac_exeext conftest.$ac_ext
d213114b 19216fi
7d9455ce 19217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19218$as_echo "$gcc_cv_math_func_expl" >&6; }
19219 if test $gcc_cv_math_func_expl = yes; then
bd647a17 19220
6affa8e1 19221cat >>confdefs.h <<_ACEOF
19222#define HAVE_EXPL 1
19223_ACEOF
7d9455ce 19224
19225 fi
d213114b 19226
d213114b 19227
d213114b 19228
7d9455ce 19229
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19231$as_echo_n "checking for cexpf... " >&6; }
f00f02a3 19232if ${gcc_cv_math_func_cexpf+:} false; then :
cd9a469c 19233 $as_echo_n "(cached) " >&6
d213114b 19234else
7d9455ce 19235 if test x$gcc_no_link = xyes; then
f00f02a3 19236 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19237fi
cd9a469c 19238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19239/* end confdefs.h. */
19240
7d9455ce 19241#ifdef HAVE_COMPLEX_H
19242#include <complex.h>
d213114b 19243#endif
7d9455ce 19244#ifdef HAVE_MATH_H
19245#include <math.h>
19246#endif
19247
19248int (*ptr)() = (int (*)())cexpf;
19249
d213114b 19250int
19251main ()
19252{
d213114b 19253 return 0;
19254}
7d9455ce 19255
d213114b 19256_ACEOF
cd9a469c 19257if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19258 gcc_cv_math_func_cexpf=yes
d213114b 19259else
7d9455ce 19260 gcc_cv_math_func_cexpf=no
d213114b 19261fi
cd9a469c 19262rm -f core conftest.err conftest.$ac_objext \
19263 conftest$ac_exeext conftest.$ac_ext
d213114b 19264fi
7d9455ce 19265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19266$as_echo "$gcc_cv_math_func_cexpf" >&6; }
19267 if test $gcc_cv_math_func_cexpf = yes; then
bd647a17 19268
6affa8e1 19269cat >>confdefs.h <<_ACEOF
19270#define HAVE_CEXPF 1
19271_ACEOF
d213114b 19272
7d9455ce 19273 fi
d213114b 19274
d213114b 19275
7d9455ce 19276
19277
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19279$as_echo_n "checking for cexp... " >&6; }
f00f02a3 19280if ${gcc_cv_math_func_cexp+:} false; then :
cd9a469c 19281 $as_echo_n "(cached) " >&6
d213114b 19282else
7d9455ce 19283 if test x$gcc_no_link = xyes; then
f00f02a3 19284 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19285fi
cd9a469c 19286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19287/* end confdefs.h. */
19288
7d9455ce 19289#ifdef HAVE_COMPLEX_H
19290#include <complex.h>
19291#endif
19292#ifdef HAVE_MATH_H
19293#include <math.h>
d213114b 19294#endif
7d9455ce 19295
19296int (*ptr)() = (int (*)())cexp;
19297
d213114b 19298int
19299main ()
19300{
d213114b 19301 return 0;
19302}
7d9455ce 19303
d213114b 19304_ACEOF
cd9a469c 19305if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19306 gcc_cv_math_func_cexp=yes
d213114b 19307else
7d9455ce 19308 gcc_cv_math_func_cexp=no
d213114b 19309fi
cd9a469c 19310rm -f core conftest.err conftest.$ac_objext \
19311 conftest$ac_exeext conftest.$ac_ext
d213114b 19312fi
7d9455ce 19313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19314$as_echo "$gcc_cv_math_func_cexp" >&6; }
19315 if test $gcc_cv_math_func_cexp = yes; then
bd647a17 19316
6affa8e1 19317cat >>confdefs.h <<_ACEOF
19318#define HAVE_CEXP 1
19319_ACEOF
7d9455ce 19320
19321 fi
d213114b 19322
d213114b 19323
d213114b 19324
7d9455ce 19325
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19327$as_echo_n "checking for cexpl... " >&6; }
f00f02a3 19328if ${gcc_cv_math_func_cexpl+:} false; then :
cd9a469c 19329 $as_echo_n "(cached) " >&6
d213114b 19330else
7d9455ce 19331 if test x$gcc_no_link = xyes; then
f00f02a3 19332 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19333fi
cd9a469c 19334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19335/* end confdefs.h. */
19336
7d9455ce 19337#ifdef HAVE_COMPLEX_H
19338#include <complex.h>
d213114b 19339#endif
7d9455ce 19340#ifdef HAVE_MATH_H
19341#include <math.h>
19342#endif
19343
19344int (*ptr)() = (int (*)())cexpl;
19345
d213114b 19346int
19347main ()
19348{
d213114b 19349 return 0;
19350}
7d9455ce 19351
d213114b 19352_ACEOF
cd9a469c 19353if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19354 gcc_cv_math_func_cexpl=yes
d213114b 19355else
7d9455ce 19356 gcc_cv_math_func_cexpl=no
d213114b 19357fi
cd9a469c 19358rm -f core conftest.err conftest.$ac_objext \
19359 conftest$ac_exeext conftest.$ac_ext
d213114b 19360fi
7d9455ce 19361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19362$as_echo "$gcc_cv_math_func_cexpl" >&6; }
19363 if test $gcc_cv_math_func_cexpl = yes; then
bd647a17 19364
6affa8e1 19365cat >>confdefs.h <<_ACEOF
19366#define HAVE_CEXPL 1
19367_ACEOF
7d9455ce 19368
19369 fi
19370
d213114b 19371
d213114b 19372
d213114b 19373
7d9455ce 19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19375$as_echo_n "checking for fabsf... " >&6; }
f00f02a3 19376if ${gcc_cv_math_func_fabsf+:} false; then :
cd9a469c 19377 $as_echo_n "(cached) " >&6
d213114b 19378else
7d9455ce 19379 if test x$gcc_no_link = xyes; then
f00f02a3 19380 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19381fi
cd9a469c 19382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19383/* end confdefs.h. */
19384
7d9455ce 19385#ifdef HAVE_COMPLEX_H
19386#include <complex.h>
19387#endif
19388#ifdef HAVE_MATH_H
19389#include <math.h>
d213114b 19390#endif
7d9455ce 19391
19392int (*ptr)() = (int (*)())fabsf;
19393
d213114b 19394int
19395main ()
19396{
d213114b 19397 return 0;
19398}
7d9455ce 19399
d213114b 19400_ACEOF
cd9a469c 19401if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19402 gcc_cv_math_func_fabsf=yes
d213114b 19403else
7d9455ce 19404 gcc_cv_math_func_fabsf=no
d213114b 19405fi
cd9a469c 19406rm -f core conftest.err conftest.$ac_objext \
19407 conftest$ac_exeext conftest.$ac_ext
d213114b 19408fi
7d9455ce 19409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19410$as_echo "$gcc_cv_math_func_fabsf" >&6; }
19411 if test $gcc_cv_math_func_fabsf = yes; then
bd647a17 19412
6affa8e1 19413cat >>confdefs.h <<_ACEOF
19414#define HAVE_FABSF 1
19415_ACEOF
7d9455ce 19416
19417 fi
d213114b 19418
d213114b 19419
d213114b 19420
7d9455ce 19421
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19423$as_echo_n "checking for fabs... " >&6; }
f00f02a3 19424if ${gcc_cv_math_func_fabs+:} false; then :
cd9a469c 19425 $as_echo_n "(cached) " >&6
d213114b 19426else
7d9455ce 19427 if test x$gcc_no_link = xyes; then
f00f02a3 19428 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19429fi
cd9a469c 19430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19431/* end confdefs.h. */
19432
7d9455ce 19433#ifdef HAVE_COMPLEX_H
19434#include <complex.h>
d213114b 19435#endif
7d9455ce 19436#ifdef HAVE_MATH_H
19437#include <math.h>
19438#endif
19439
19440int (*ptr)() = (int (*)())fabs;
19441
d213114b 19442int
19443main ()
19444{
d213114b 19445 return 0;
19446}
7d9455ce 19447
d213114b 19448_ACEOF
cd9a469c 19449if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19450 gcc_cv_math_func_fabs=yes
d213114b 19451else
7d9455ce 19452 gcc_cv_math_func_fabs=no
d213114b 19453fi
cd9a469c 19454rm -f core conftest.err conftest.$ac_objext \
19455 conftest$ac_exeext conftest.$ac_ext
d213114b 19456fi
7d9455ce 19457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19458$as_echo "$gcc_cv_math_func_fabs" >&6; }
19459 if test $gcc_cv_math_func_fabs = yes; then
bd647a17 19460
6affa8e1 19461cat >>confdefs.h <<_ACEOF
19462#define HAVE_FABS 1
19463_ACEOF
d213114b 19464
7d9455ce 19465 fi
d213114b 19466
d213114b 19467
7d9455ce 19468
19469
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19471$as_echo_n "checking for fabsl... " >&6; }
f00f02a3 19472if ${gcc_cv_math_func_fabsl+:} false; then :
cd9a469c 19473 $as_echo_n "(cached) " >&6
d213114b 19474else
7d9455ce 19475 if test x$gcc_no_link = xyes; then
f00f02a3 19476 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19477fi
cd9a469c 19478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19479/* end confdefs.h. */
19480
7d9455ce 19481#ifdef HAVE_COMPLEX_H
19482#include <complex.h>
19483#endif
19484#ifdef HAVE_MATH_H
19485#include <math.h>
d213114b 19486#endif
7d9455ce 19487
19488int (*ptr)() = (int (*)())fabsl;
19489
d213114b 19490int
19491main ()
19492{
d213114b 19493 return 0;
19494}
7d9455ce 19495
d213114b 19496_ACEOF
cd9a469c 19497if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19498 gcc_cv_math_func_fabsl=yes
d213114b 19499else
7d9455ce 19500 gcc_cv_math_func_fabsl=no
d213114b 19501fi
cd9a469c 19502rm -f core conftest.err conftest.$ac_objext \
19503 conftest$ac_exeext conftest.$ac_ext
d213114b 19504fi
7d9455ce 19505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19506$as_echo "$gcc_cv_math_func_fabsl" >&6; }
19507 if test $gcc_cv_math_func_fabsl = yes; then
bd647a17 19508
6affa8e1 19509cat >>confdefs.h <<_ACEOF
19510#define HAVE_FABSL 1
19511_ACEOF
7d9455ce 19512
19513 fi
d213114b 19514
d213114b 19515
d213114b 19516
7d9455ce 19517
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19519$as_echo_n "checking for cabsf... " >&6; }
f00f02a3 19520if ${gcc_cv_math_func_cabsf+:} false; then :
cd9a469c 19521 $as_echo_n "(cached) " >&6
d213114b 19522else
7d9455ce 19523 if test x$gcc_no_link = xyes; then
f00f02a3 19524 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19525fi
cd9a469c 19526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19527/* end confdefs.h. */
19528
7d9455ce 19529#ifdef HAVE_COMPLEX_H
19530#include <complex.h>
d213114b 19531#endif
7d9455ce 19532#ifdef HAVE_MATH_H
19533#include <math.h>
19534#endif
19535
19536int (*ptr)() = (int (*)())cabsf;
19537
d213114b 19538int
19539main ()
19540{
d213114b 19541 return 0;
19542}
7d9455ce 19543
d213114b 19544_ACEOF
cd9a469c 19545if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19546 gcc_cv_math_func_cabsf=yes
d213114b 19547else
7d9455ce 19548 gcc_cv_math_func_cabsf=no
d213114b 19549fi
cd9a469c 19550rm -f core conftest.err conftest.$ac_objext \
19551 conftest$ac_exeext conftest.$ac_ext
d213114b 19552fi
7d9455ce 19553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19554$as_echo "$gcc_cv_math_func_cabsf" >&6; }
19555 if test $gcc_cv_math_func_cabsf = yes; then
bd647a17 19556
6affa8e1 19557cat >>confdefs.h <<_ACEOF
19558#define HAVE_CABSF 1
19559_ACEOF
7d9455ce 19560
19561 fi
19562
d213114b 19563
d213114b 19564
d213114b 19565
7d9455ce 19566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19567$as_echo_n "checking for cabs... " >&6; }
f00f02a3 19568if ${gcc_cv_math_func_cabs+:} false; then :
cd9a469c 19569 $as_echo_n "(cached) " >&6
d213114b 19570else
7d9455ce 19571 if test x$gcc_no_link = xyes; then
f00f02a3 19572 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19573fi
cd9a469c 19574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19575/* end confdefs.h. */
19576
7d9455ce 19577#ifdef HAVE_COMPLEX_H
19578#include <complex.h>
19579#endif
19580#ifdef HAVE_MATH_H
19581#include <math.h>
d213114b 19582#endif
7d9455ce 19583
19584int (*ptr)() = (int (*)())cabs;
19585
d213114b 19586int
19587main ()
19588{
d213114b 19589 return 0;
19590}
7d9455ce 19591
d213114b 19592_ACEOF
cd9a469c 19593if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19594 gcc_cv_math_func_cabs=yes
d213114b 19595else
7d9455ce 19596 gcc_cv_math_func_cabs=no
d213114b 19597fi
cd9a469c 19598rm -f core conftest.err conftest.$ac_objext \
19599 conftest$ac_exeext conftest.$ac_ext
d213114b 19600fi
7d9455ce 19601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19602$as_echo "$gcc_cv_math_func_cabs" >&6; }
19603 if test $gcc_cv_math_func_cabs = yes; then
bd647a17 19604
6affa8e1 19605cat >>confdefs.h <<_ACEOF
19606#define HAVE_CABS 1
19607_ACEOF
7d9455ce 19608
19609 fi
d213114b 19610
d213114b 19611
d213114b 19612
7d9455ce 19613
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19615$as_echo_n "checking for cabsl... " >&6; }
f00f02a3 19616if ${gcc_cv_math_func_cabsl+:} false; then :
cd9a469c 19617 $as_echo_n "(cached) " >&6
d213114b 19618else
7d9455ce 19619 if test x$gcc_no_link = xyes; then
f00f02a3 19620 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19621fi
cd9a469c 19622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19623/* end confdefs.h. */
19624
7d9455ce 19625#ifdef HAVE_COMPLEX_H
19626#include <complex.h>
d213114b 19627#endif
7d9455ce 19628#ifdef HAVE_MATH_H
19629#include <math.h>
19630#endif
19631
19632int (*ptr)() = (int (*)())cabsl;
19633
d213114b 19634int
19635main ()
19636{
d213114b 19637 return 0;
19638}
7d9455ce 19639
d213114b 19640_ACEOF
cd9a469c 19641if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19642 gcc_cv_math_func_cabsl=yes
d213114b 19643else
7d9455ce 19644 gcc_cv_math_func_cabsl=no
d213114b 19645fi
cd9a469c 19646rm -f core conftest.err conftest.$ac_objext \
19647 conftest$ac_exeext conftest.$ac_ext
d213114b 19648fi
7d9455ce 19649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19650$as_echo "$gcc_cv_math_func_cabsl" >&6; }
19651 if test $gcc_cv_math_func_cabsl = yes; then
bd647a17 19652
6affa8e1 19653cat >>confdefs.h <<_ACEOF
19654#define HAVE_CABSL 1
19655_ACEOF
d213114b 19656
7d9455ce 19657 fi
d213114b 19658
d213114b 19659
7d9455ce 19660
19661
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19663$as_echo_n "checking for floorf... " >&6; }
f00f02a3 19664if ${gcc_cv_math_func_floorf+:} false; then :
cd9a469c 19665 $as_echo_n "(cached) " >&6
d213114b 19666else
7d9455ce 19667 if test x$gcc_no_link = xyes; then
f00f02a3 19668 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19669fi
cd9a469c 19670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19671/* end confdefs.h. */
19672
7d9455ce 19673#ifdef HAVE_COMPLEX_H
19674#include <complex.h>
19675#endif
19676#ifdef HAVE_MATH_H
19677#include <math.h>
d213114b 19678#endif
7d9455ce 19679
19680int (*ptr)() = (int (*)())floorf;
19681
d213114b 19682int
19683main ()
19684{
cd9a469c 19685 return 0;
19686}
7d9455ce 19687
cd9a469c 19688_ACEOF
19689if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19690 gcc_cv_math_func_floorf=yes
d213114b 19691else
7d9455ce 19692 gcc_cv_math_func_floorf=no
d213114b 19693fi
cd9a469c 19694rm -f core conftest.err conftest.$ac_objext \
19695 conftest$ac_exeext conftest.$ac_ext
d213114b 19696fi
7d9455ce 19697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19698$as_echo "$gcc_cv_math_func_floorf" >&6; }
19699 if test $gcc_cv_math_func_floorf = yes; then
bd647a17 19700
6affa8e1 19701cat >>confdefs.h <<_ACEOF
19702#define HAVE_FLOORF 1
19703_ACEOF
7d9455ce 19704
19705 fi
d213114b 19706
d213114b 19707
d213114b 19708
7d9455ce 19709
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19711$as_echo_n "checking for floor... " >&6; }
f00f02a3 19712if ${gcc_cv_math_func_floor+:} false; then :
cd9a469c 19713 $as_echo_n "(cached) " >&6
d213114b 19714else
7d9455ce 19715 if test x$gcc_no_link = xyes; then
f00f02a3 19716 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19717fi
cd9a469c 19718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19719/* end confdefs.h. */
19720
7d9455ce 19721#ifdef HAVE_COMPLEX_H
19722#include <complex.h>
d213114b 19723#endif
7d9455ce 19724#ifdef HAVE_MATH_H
19725#include <math.h>
19726#endif
19727
19728int (*ptr)() = (int (*)())floor;
19729
d213114b 19730int
19731main ()
19732{
d213114b 19733 return 0;
19734}
7d9455ce 19735
d213114b 19736_ACEOF
cd9a469c 19737if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19738 gcc_cv_math_func_floor=yes
d213114b 19739else
7d9455ce 19740 gcc_cv_math_func_floor=no
d213114b 19741fi
cd9a469c 19742rm -f core conftest.err conftest.$ac_objext \
19743 conftest$ac_exeext conftest.$ac_ext
d213114b 19744fi
7d9455ce 19745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19746$as_echo "$gcc_cv_math_func_floor" >&6; }
19747 if test $gcc_cv_math_func_floor = yes; then
bd647a17 19748
6affa8e1 19749cat >>confdefs.h <<_ACEOF
19750#define HAVE_FLOOR 1
19751_ACEOF
7d9455ce 19752
19753 fi
19754
d213114b 19755
d213114b 19756
d213114b 19757
7d9455ce 19758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19759$as_echo_n "checking for floorl... " >&6; }
f00f02a3 19760if ${gcc_cv_math_func_floorl+:} false; then :
cd9a469c 19761 $as_echo_n "(cached) " >&6
71d5b534 19762else
7d9455ce 19763 if test x$gcc_no_link = xyes; then
f00f02a3 19764 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d5b534 19765fi
cd9a469c 19766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d5b534 19767/* end confdefs.h. */
19768
7d9455ce 19769#ifdef HAVE_COMPLEX_H
19770#include <complex.h>
19771#endif
19772#ifdef HAVE_MATH_H
19773#include <math.h>
71d5b534 19774#endif
7d9455ce 19775
19776int (*ptr)() = (int (*)())floorl;
19777
71d5b534 19778int
19779main ()
19780{
71d5b534 19781 return 0;
19782}
7d9455ce 19783
71d5b534 19784_ACEOF
cd9a469c 19785if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19786 gcc_cv_math_func_floorl=yes
71d5b534 19787else
7d9455ce 19788 gcc_cv_math_func_floorl=no
71d5b534 19789fi
cd9a469c 19790rm -f core conftest.err conftest.$ac_objext \
19791 conftest$ac_exeext conftest.$ac_ext
71d5b534 19792fi
7d9455ce 19793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19794$as_echo "$gcc_cv_math_func_floorl" >&6; }
19795 if test $gcc_cv_math_func_floorl = yes; then
bd647a17 19796
6affa8e1 19797cat >>confdefs.h <<_ACEOF
19798#define HAVE_FLOORL 1
19799_ACEOF
7d9455ce 19800
19801 fi
71d5b534 19802
71d5b534 19803
71d5b534 19804
7d9455ce 19805
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19807$as_echo_n "checking for fmodf... " >&6; }
f00f02a3 19808if ${gcc_cv_math_func_fmodf+:} false; then :
cd9a469c 19809 $as_echo_n "(cached) " >&6
71d5b534 19810else
7d9455ce 19811 if test x$gcc_no_link = xyes; then
f00f02a3 19812 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d5b534 19813fi
cd9a469c 19814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d5b534 19815/* end confdefs.h. */
19816
7d9455ce 19817#ifdef HAVE_COMPLEX_H
19818#include <complex.h>
71d5b534 19819#endif
7d9455ce 19820#ifdef HAVE_MATH_H
19821#include <math.h>
19822#endif
19823
19824int (*ptr)() = (int (*)())fmodf;
19825
71d5b534 19826int
19827main ()
19828{
71d5b534 19829 return 0;
19830}
7d9455ce 19831
71d5b534 19832_ACEOF
cd9a469c 19833if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19834 gcc_cv_math_func_fmodf=yes
71d5b534 19835else
7d9455ce 19836 gcc_cv_math_func_fmodf=no
71d5b534 19837fi
cd9a469c 19838rm -f core conftest.err conftest.$ac_objext \
19839 conftest$ac_exeext conftest.$ac_ext
71d5b534 19840fi
7d9455ce 19841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19842$as_echo "$gcc_cv_math_func_fmodf" >&6; }
19843 if test $gcc_cv_math_func_fmodf = yes; then
bd647a17 19844
6affa8e1 19845cat >>confdefs.h <<_ACEOF
19846#define HAVE_FMODF 1
19847_ACEOF
71d5b534 19848
7d9455ce 19849 fi
71d5b534 19850
71d5b534 19851
7d9455ce 19852
19853
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19855$as_echo_n "checking for fmod... " >&6; }
f00f02a3 19856if ${gcc_cv_math_func_fmod+:} false; then :
cd9a469c 19857 $as_echo_n "(cached) " >&6
71d5b534 19858else
7d9455ce 19859 if test x$gcc_no_link = xyes; then
f00f02a3 19860 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d5b534 19861fi
cd9a469c 19862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d5b534 19863/* end confdefs.h. */
19864
7d9455ce 19865#ifdef HAVE_COMPLEX_H
19866#include <complex.h>
19867#endif
19868#ifdef HAVE_MATH_H
19869#include <math.h>
71d5b534 19870#endif
7d9455ce 19871
19872int (*ptr)() = (int (*)())fmod;
19873
71d5b534 19874int
19875main ()
19876{
71d5b534 19877 return 0;
19878}
7d9455ce 19879
71d5b534 19880_ACEOF
cd9a469c 19881if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19882 gcc_cv_math_func_fmod=yes
71d5b534 19883else
7d9455ce 19884 gcc_cv_math_func_fmod=no
71d5b534 19885fi
cd9a469c 19886rm -f core conftest.err conftest.$ac_objext \
19887 conftest$ac_exeext conftest.$ac_ext
71d5b534 19888fi
7d9455ce 19889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19890$as_echo "$gcc_cv_math_func_fmod" >&6; }
19891 if test $gcc_cv_math_func_fmod = yes; then
bd647a17 19892
6affa8e1 19893cat >>confdefs.h <<_ACEOF
19894#define HAVE_FMOD 1
19895_ACEOF
7d9455ce 19896
19897 fi
71d5b534 19898
71d5b534 19899
71d5b534 19900
7d9455ce 19901
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19903$as_echo_n "checking for fmodl... " >&6; }
f00f02a3 19904if ${gcc_cv_math_func_fmodl+:} false; then :
cd9a469c 19905 $as_echo_n "(cached) " >&6
d213114b 19906else
7d9455ce 19907 if test x$gcc_no_link = xyes; then
f00f02a3 19908 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19909fi
cd9a469c 19910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19911/* end confdefs.h. */
19912
7d9455ce 19913#ifdef HAVE_COMPLEX_H
19914#include <complex.h>
d213114b 19915#endif
7d9455ce 19916#ifdef HAVE_MATH_H
19917#include <math.h>
19918#endif
19919
19920int (*ptr)() = (int (*)())fmodl;
19921
d213114b 19922int
19923main ()
19924{
d213114b 19925 return 0;
19926}
7d9455ce 19927
d213114b 19928_ACEOF
cd9a469c 19929if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19930 gcc_cv_math_func_fmodl=yes
d213114b 19931else
7d9455ce 19932 gcc_cv_math_func_fmodl=no
d213114b 19933fi
cd9a469c 19934rm -f core conftest.err conftest.$ac_objext \
19935 conftest$ac_exeext conftest.$ac_ext
d213114b 19936fi
7d9455ce 19937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19938$as_echo "$gcc_cv_math_func_fmodl" >&6; }
19939 if test $gcc_cv_math_func_fmodl = yes; then
bd647a17 19940
6affa8e1 19941cat >>confdefs.h <<_ACEOF
19942#define HAVE_FMODL 1
19943_ACEOF
7d9455ce 19944
19945 fi
19946
d213114b 19947
d213114b 19948
d213114b 19949
7d9455ce 19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19951$as_echo_n "checking for frexpf... " >&6; }
f00f02a3 19952if ${gcc_cv_math_func_frexpf+:} false; then :
cd9a469c 19953 $as_echo_n "(cached) " >&6
d213114b 19954else
7d9455ce 19955 if test x$gcc_no_link = xyes; then
f00f02a3 19956 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19957fi
cd9a469c 19958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19959/* end confdefs.h. */
19960
7d9455ce 19961#ifdef HAVE_COMPLEX_H
19962#include <complex.h>
19963#endif
19964#ifdef HAVE_MATH_H
19965#include <math.h>
d213114b 19966#endif
7d9455ce 19967
19968int (*ptr)() = (int (*)())frexpf;
19969
d213114b 19970int
19971main ()
19972{
d213114b 19973 return 0;
19974}
7d9455ce 19975
d213114b 19976_ACEOF
cd9a469c 19977if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19978 gcc_cv_math_func_frexpf=yes
d213114b 19979else
7d9455ce 19980 gcc_cv_math_func_frexpf=no
d213114b 19981fi
cd9a469c 19982rm -f core conftest.err conftest.$ac_objext \
19983 conftest$ac_exeext conftest.$ac_ext
d213114b 19984fi
7d9455ce 19985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19986$as_echo "$gcc_cv_math_func_frexpf" >&6; }
19987 if test $gcc_cv_math_func_frexpf = yes; then
bd647a17 19988
6affa8e1 19989cat >>confdefs.h <<_ACEOF
19990#define HAVE_FREXPF 1
19991_ACEOF
7d9455ce 19992
19993 fi
d213114b 19994
d213114b 19995
d213114b 19996
7d9455ce 19997
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19999$as_echo_n "checking for frexp... " >&6; }
f00f02a3 20000if ${gcc_cv_math_func_frexp+:} false; then :
cd9a469c 20001 $as_echo_n "(cached) " >&6
d213114b 20002else
7d9455ce 20003 if test x$gcc_no_link = xyes; then
f00f02a3 20004 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20005fi
cd9a469c 20006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20007/* end confdefs.h. */
20008
7d9455ce 20009#ifdef HAVE_COMPLEX_H
20010#include <complex.h>
d213114b 20011#endif
7d9455ce 20012#ifdef HAVE_MATH_H
20013#include <math.h>
20014#endif
20015
20016int (*ptr)() = (int (*)())frexp;
20017
d213114b 20018int
20019main ()
20020{
d213114b 20021 return 0;
20022}
7d9455ce 20023
d213114b 20024_ACEOF
cd9a469c 20025if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20026 gcc_cv_math_func_frexp=yes
d213114b 20027else
7d9455ce 20028 gcc_cv_math_func_frexp=no
d213114b 20029fi
cd9a469c 20030rm -f core conftest.err conftest.$ac_objext \
20031 conftest$ac_exeext conftest.$ac_ext
d213114b 20032fi
7d9455ce 20033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
20034$as_echo "$gcc_cv_math_func_frexp" >&6; }
20035 if test $gcc_cv_math_func_frexp = yes; then
bd647a17 20036
6affa8e1 20037cat >>confdefs.h <<_ACEOF
20038#define HAVE_FREXP 1
20039_ACEOF
d213114b 20040
7d9455ce 20041 fi
d213114b 20042
d213114b 20043
7d9455ce 20044
20045
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
20047$as_echo_n "checking for frexpl... " >&6; }
f00f02a3 20048if ${gcc_cv_math_func_frexpl+:} false; then :
cd9a469c 20049 $as_echo_n "(cached) " >&6
d213114b 20050else
7d9455ce 20051 if test x$gcc_no_link = xyes; then
f00f02a3 20052 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20053fi
cd9a469c 20054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20055/* end confdefs.h. */
20056
7d9455ce 20057#ifdef HAVE_COMPLEX_H
20058#include <complex.h>
20059#endif
20060#ifdef HAVE_MATH_H
20061#include <math.h>
d213114b 20062#endif
7d9455ce 20063
20064int (*ptr)() = (int (*)())frexpl;
20065
d213114b 20066int
20067main ()
20068{
d213114b 20069 return 0;
20070}
7d9455ce 20071
d213114b 20072_ACEOF
cd9a469c 20073if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20074 gcc_cv_math_func_frexpl=yes
d213114b 20075else
7d9455ce 20076 gcc_cv_math_func_frexpl=no
d213114b 20077fi
cd9a469c 20078rm -f core conftest.err conftest.$ac_objext \
20079 conftest$ac_exeext conftest.$ac_ext
d213114b 20080fi
7d9455ce 20081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
20082$as_echo "$gcc_cv_math_func_frexpl" >&6; }
20083 if test $gcc_cv_math_func_frexpl = yes; then
bd647a17 20084
6affa8e1 20085cat >>confdefs.h <<_ACEOF
20086#define HAVE_FREXPL 1
20087_ACEOF
7d9455ce 20088
20089 fi
d213114b 20090
d213114b 20091
d213114b 20092
7d9455ce 20093
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
20095$as_echo_n "checking for hypotf... " >&6; }
f00f02a3 20096if ${gcc_cv_math_func_hypotf+:} false; then :
cd9a469c 20097 $as_echo_n "(cached) " >&6
d213114b 20098else
7d9455ce 20099 if test x$gcc_no_link = xyes; then
f00f02a3 20100 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20101fi
cd9a469c 20102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20103/* end confdefs.h. */
20104
7d9455ce 20105#ifdef HAVE_COMPLEX_H
20106#include <complex.h>
d213114b 20107#endif
7d9455ce 20108#ifdef HAVE_MATH_H
20109#include <math.h>
20110#endif
20111
20112int (*ptr)() = (int (*)())hypotf;
20113
d213114b 20114int
20115main ()
20116{
d213114b 20117 return 0;
20118}
7d9455ce 20119
d213114b 20120_ACEOF
cd9a469c 20121if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20122 gcc_cv_math_func_hypotf=yes
d213114b 20123else
7d9455ce 20124 gcc_cv_math_func_hypotf=no
d213114b 20125fi
cd9a469c 20126rm -f core conftest.err conftest.$ac_objext \
20127 conftest$ac_exeext conftest.$ac_ext
d213114b 20128fi
7d9455ce 20129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
20130$as_echo "$gcc_cv_math_func_hypotf" >&6; }
20131 if test $gcc_cv_math_func_hypotf = yes; then
bd647a17 20132
6affa8e1 20133cat >>confdefs.h <<_ACEOF
20134#define HAVE_HYPOTF 1
20135_ACEOF
7d9455ce 20136
20137 fi
20138
d213114b 20139
d213114b 20140
d213114b 20141
7d9455ce 20142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
20143$as_echo_n "checking for hypot... " >&6; }
f00f02a3 20144if ${gcc_cv_math_func_hypot+:} false; then :
cd9a469c 20145 $as_echo_n "(cached) " >&6
d213114b 20146else
7d9455ce 20147 if test x$gcc_no_link = xyes; then
f00f02a3 20148 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20149fi
cd9a469c 20150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20151/* end confdefs.h. */
20152
7d9455ce 20153#ifdef HAVE_COMPLEX_H
20154#include <complex.h>
20155#endif
20156#ifdef HAVE_MATH_H
20157#include <math.h>
d213114b 20158#endif
7d9455ce 20159
20160int (*ptr)() = (int (*)())hypot;
20161
d213114b 20162int
20163main ()
20164{
d213114b 20165 return 0;
20166}
7d9455ce 20167
d213114b 20168_ACEOF
cd9a469c 20169if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20170 gcc_cv_math_func_hypot=yes
d213114b 20171else
7d9455ce 20172 gcc_cv_math_func_hypot=no
d213114b 20173fi
cd9a469c 20174rm -f core conftest.err conftest.$ac_objext \
20175 conftest$ac_exeext conftest.$ac_ext
d213114b 20176fi
7d9455ce 20177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20178$as_echo "$gcc_cv_math_func_hypot" >&6; }
20179 if test $gcc_cv_math_func_hypot = yes; then
bd647a17 20180
6affa8e1 20181cat >>confdefs.h <<_ACEOF
20182#define HAVE_HYPOT 1
20183_ACEOF
7d9455ce 20184
20185 fi
d213114b 20186
d213114b 20187
d213114b 20188
7d9455ce 20189
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20191$as_echo_n "checking for hypotl... " >&6; }
f00f02a3 20192if ${gcc_cv_math_func_hypotl+:} false; then :
cd9a469c 20193 $as_echo_n "(cached) " >&6
71d90ac4 20194else
7d9455ce 20195 if test x$gcc_no_link = xyes; then
f00f02a3 20196 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d90ac4 20197fi
cd9a469c 20198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d90ac4 20199/* end confdefs.h. */
20200
7d9455ce 20201#ifdef HAVE_COMPLEX_H
20202#include <complex.h>
71d90ac4 20203#endif
7d9455ce 20204#ifdef HAVE_MATH_H
20205#include <math.h>
20206#endif
20207
20208int (*ptr)() = (int (*)())hypotl;
20209
71d90ac4 20210int
20211main ()
20212{
71d90ac4 20213 return 0;
20214}
7d9455ce 20215
71d90ac4 20216_ACEOF
cd9a469c 20217if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20218 gcc_cv_math_func_hypotl=yes
71d90ac4 20219else
7d9455ce 20220 gcc_cv_math_func_hypotl=no
71d90ac4 20221fi
cd9a469c 20222rm -f core conftest.err conftest.$ac_objext \
20223 conftest$ac_exeext conftest.$ac_ext
71d90ac4 20224fi
7d9455ce 20225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20226$as_echo "$gcc_cv_math_func_hypotl" >&6; }
20227 if test $gcc_cv_math_func_hypotl = yes; then
bd647a17 20228
6affa8e1 20229cat >>confdefs.h <<_ACEOF
20230#define HAVE_HYPOTL 1
20231_ACEOF
71d90ac4 20232
7d9455ce 20233 fi
71d90ac4 20234
71d90ac4 20235
7d9455ce 20236
20237
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20239$as_echo_n "checking for ldexpf... " >&6; }
f00f02a3 20240if ${gcc_cv_math_func_ldexpf+:} false; then :
cd9a469c 20241 $as_echo_n "(cached) " >&6
71d90ac4 20242else
7d9455ce 20243 if test x$gcc_no_link = xyes; then
f00f02a3 20244 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d90ac4 20245fi
cd9a469c 20246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d90ac4 20247/* end confdefs.h. */
20248
7d9455ce 20249#ifdef HAVE_COMPLEX_H
20250#include <complex.h>
20251#endif
20252#ifdef HAVE_MATH_H
20253#include <math.h>
71d90ac4 20254#endif
7d9455ce 20255
20256int (*ptr)() = (int (*)())ldexpf;
20257
71d90ac4 20258int
20259main ()
20260{
71d90ac4 20261 return 0;
20262}
7d9455ce 20263
71d90ac4 20264_ACEOF
cd9a469c 20265if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20266 gcc_cv_math_func_ldexpf=yes
71d90ac4 20267else
7d9455ce 20268 gcc_cv_math_func_ldexpf=no
71d90ac4 20269fi
cd9a469c 20270rm -f core conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext conftest.$ac_ext
71d90ac4 20272fi
7d9455ce 20273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20274$as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20275 if test $gcc_cv_math_func_ldexpf = yes; then
bd647a17 20276
6affa8e1 20277cat >>confdefs.h <<_ACEOF
20278#define HAVE_LDEXPF 1
20279_ACEOF
7d9455ce 20280
20281 fi
71d90ac4 20282
71d90ac4 20283
71d90ac4 20284
7d9455ce 20285
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20287$as_echo_n "checking for ldexp... " >&6; }
f00f02a3 20288if ${gcc_cv_math_func_ldexp+:} false; then :
cd9a469c 20289 $as_echo_n "(cached) " >&6
71d90ac4 20290else
7d9455ce 20291 if test x$gcc_no_link = xyes; then
f00f02a3 20292 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d90ac4 20293fi
cd9a469c 20294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d90ac4 20295/* end confdefs.h. */
20296
7d9455ce 20297#ifdef HAVE_COMPLEX_H
20298#include <complex.h>
71d90ac4 20299#endif
7d9455ce 20300#ifdef HAVE_MATH_H
20301#include <math.h>
20302#endif
20303
20304int (*ptr)() = (int (*)())ldexp;
20305
71d90ac4 20306int
20307main ()
20308{
71d90ac4 20309 return 0;
20310}
7d9455ce 20311
71d90ac4 20312_ACEOF
cd9a469c 20313if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20314 gcc_cv_math_func_ldexp=yes
71d90ac4 20315else
7d9455ce 20316 gcc_cv_math_func_ldexp=no
71d90ac4 20317fi
cd9a469c 20318rm -f core conftest.err conftest.$ac_objext \
20319 conftest$ac_exeext conftest.$ac_ext
71d90ac4 20320fi
7d9455ce 20321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20322$as_echo "$gcc_cv_math_func_ldexp" >&6; }
20323 if test $gcc_cv_math_func_ldexp = yes; then
bd647a17 20324
6affa8e1 20325cat >>confdefs.h <<_ACEOF
20326#define HAVE_LDEXP 1
20327_ACEOF
7d9455ce 20328
20329 fi
20330
71d90ac4 20331
71d90ac4 20332
71d90ac4 20333
7d9455ce 20334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20335$as_echo_n "checking for ldexpl... " >&6; }
f00f02a3 20336if ${gcc_cv_math_func_ldexpl+:} false; then :
cd9a469c 20337 $as_echo_n "(cached) " >&6
d213114b 20338else
7d9455ce 20339 if test x$gcc_no_link = xyes; then
f00f02a3 20340 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20341fi
cd9a469c 20342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20343/* end confdefs.h. */
20344
7d9455ce 20345#ifdef HAVE_COMPLEX_H
20346#include <complex.h>
20347#endif
20348#ifdef HAVE_MATH_H
20349#include <math.h>
d213114b 20350#endif
7d9455ce 20351
20352int (*ptr)() = (int (*)())ldexpl;
20353
d213114b 20354int
20355main ()
20356{
d213114b 20357 return 0;
20358}
7d9455ce 20359
d213114b 20360_ACEOF
cd9a469c 20361if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20362 gcc_cv_math_func_ldexpl=yes
d213114b 20363else
7d9455ce 20364 gcc_cv_math_func_ldexpl=no
d213114b 20365fi
cd9a469c 20366rm -f core conftest.err conftest.$ac_objext \
20367 conftest$ac_exeext conftest.$ac_ext
d213114b 20368fi
7d9455ce 20369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20370$as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20371 if test $gcc_cv_math_func_ldexpl = yes; then
bd647a17 20372
6affa8e1 20373cat >>confdefs.h <<_ACEOF
20374#define HAVE_LDEXPL 1
20375_ACEOF
7d9455ce 20376
20377 fi
d213114b 20378
d213114b 20379
d213114b 20380
7d9455ce 20381
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20383$as_echo_n "checking for logf... " >&6; }
f00f02a3 20384if ${gcc_cv_math_func_logf+:} false; then :
cd9a469c 20385 $as_echo_n "(cached) " >&6
d213114b 20386else
7d9455ce 20387 if test x$gcc_no_link = xyes; then
f00f02a3 20388 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20389fi
cd9a469c 20390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20391/* end confdefs.h. */
20392
7d9455ce 20393#ifdef HAVE_COMPLEX_H
20394#include <complex.h>
d213114b 20395#endif
7d9455ce 20396#ifdef HAVE_MATH_H
20397#include <math.h>
20398#endif
20399
20400int (*ptr)() = (int (*)())logf;
20401
d213114b 20402int
20403main ()
20404{
d213114b 20405 return 0;
20406}
7d9455ce 20407
d213114b 20408_ACEOF
cd9a469c 20409if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20410 gcc_cv_math_func_logf=yes
d213114b 20411else
7d9455ce 20412 gcc_cv_math_func_logf=no
d213114b 20413fi
cd9a469c 20414rm -f core conftest.err conftest.$ac_objext \
20415 conftest$ac_exeext conftest.$ac_ext
d213114b 20416fi
7d9455ce 20417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20418$as_echo "$gcc_cv_math_func_logf" >&6; }
20419 if test $gcc_cv_math_func_logf = yes; then
bd647a17 20420
6affa8e1 20421cat >>confdefs.h <<_ACEOF
20422#define HAVE_LOGF 1
20423_ACEOF
d213114b 20424
7d9455ce 20425 fi
d213114b 20426
d213114b 20427
7d9455ce 20428
20429
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20431$as_echo_n "checking for log... " >&6; }
f00f02a3 20432if ${gcc_cv_math_func_log+:} false; then :
cd9a469c 20433 $as_echo_n "(cached) " >&6
d213114b 20434else
7d9455ce 20435 if test x$gcc_no_link = xyes; then
f00f02a3 20436 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20437fi
cd9a469c 20438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20439/* end confdefs.h. */
20440
7d9455ce 20441#ifdef HAVE_COMPLEX_H
20442#include <complex.h>
20443#endif
20444#ifdef HAVE_MATH_H
20445#include <math.h>
d213114b 20446#endif
7d9455ce 20447
20448int (*ptr)() = (int (*)())log;
20449
d213114b 20450int
20451main ()
20452{
d213114b 20453 return 0;
20454}
7d9455ce 20455
d213114b 20456_ACEOF
cd9a469c 20457if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20458 gcc_cv_math_func_log=yes
d213114b 20459else
7d9455ce 20460 gcc_cv_math_func_log=no
d213114b 20461fi
cd9a469c 20462rm -f core conftest.err conftest.$ac_objext \
20463 conftest$ac_exeext conftest.$ac_ext
d213114b 20464fi
7d9455ce 20465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20466$as_echo "$gcc_cv_math_func_log" >&6; }
20467 if test $gcc_cv_math_func_log = yes; then
bd647a17 20468
6affa8e1 20469cat >>confdefs.h <<_ACEOF
20470#define HAVE_LOG 1
20471_ACEOF
7d9455ce 20472
20473 fi
d213114b 20474
d213114b 20475
d213114b 20476
7d9455ce 20477
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20479$as_echo_n "checking for logl... " >&6; }
f00f02a3 20480if ${gcc_cv_math_func_logl+:} false; then :
cd9a469c 20481 $as_echo_n "(cached) " >&6
d213114b 20482else
7d9455ce 20483 if test x$gcc_no_link = xyes; then
f00f02a3 20484 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20485fi
cd9a469c 20486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20487/* end confdefs.h. */
20488
7d9455ce 20489#ifdef HAVE_COMPLEX_H
20490#include <complex.h>
d213114b 20491#endif
7d9455ce 20492#ifdef HAVE_MATH_H
20493#include <math.h>
20494#endif
20495
20496int (*ptr)() = (int (*)())logl;
20497
d213114b 20498int
20499main ()
20500{
d213114b 20501 return 0;
20502}
7d9455ce 20503
d213114b 20504_ACEOF
cd9a469c 20505if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20506 gcc_cv_math_func_logl=yes
d213114b 20507else
7d9455ce 20508 gcc_cv_math_func_logl=no
d213114b 20509fi
cd9a469c 20510rm -f core conftest.err conftest.$ac_objext \
20511 conftest$ac_exeext conftest.$ac_ext
d213114b 20512fi
7d9455ce 20513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20514$as_echo "$gcc_cv_math_func_logl" >&6; }
20515 if test $gcc_cv_math_func_logl = yes; then
bd647a17 20516
6affa8e1 20517cat >>confdefs.h <<_ACEOF
20518#define HAVE_LOGL 1
20519_ACEOF
7d9455ce 20520
20521 fi
20522
d213114b 20523
d213114b 20524
d213114b 20525
7d9455ce 20526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20527$as_echo_n "checking for clogf... " >&6; }
f00f02a3 20528if ${gcc_cv_math_func_clogf+:} false; then :
cd9a469c 20529 $as_echo_n "(cached) " >&6
d213114b 20530else
7d9455ce 20531 if test x$gcc_no_link = xyes; then
f00f02a3 20532 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20533fi
cd9a469c 20534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20535/* end confdefs.h. */
20536
7d9455ce 20537#ifdef HAVE_COMPLEX_H
20538#include <complex.h>
20539#endif
20540#ifdef HAVE_MATH_H
20541#include <math.h>
d213114b 20542#endif
7d9455ce 20543
20544int (*ptr)() = (int (*)())clogf;
20545
d213114b 20546int
20547main ()
20548{
d213114b 20549 return 0;
20550}
7d9455ce 20551
d213114b 20552_ACEOF
cd9a469c 20553if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20554 gcc_cv_math_func_clogf=yes
d213114b 20555else
7d9455ce 20556 gcc_cv_math_func_clogf=no
d213114b 20557fi
cd9a469c 20558rm -f core conftest.err conftest.$ac_objext \
20559 conftest$ac_exeext conftest.$ac_ext
d213114b 20560fi
7d9455ce 20561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20562$as_echo "$gcc_cv_math_func_clogf" >&6; }
20563 if test $gcc_cv_math_func_clogf = yes; then
bd647a17 20564
6affa8e1 20565cat >>confdefs.h <<_ACEOF
20566#define HAVE_CLOGF 1
20567_ACEOF
7d9455ce 20568
20569 fi
d213114b 20570
d213114b 20571
d213114b 20572
7d9455ce 20573
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20575$as_echo_n "checking for clog... " >&6; }
f00f02a3 20576if ${gcc_cv_math_func_clog+:} false; then :
cd9a469c 20577 $as_echo_n "(cached) " >&6
d213114b 20578else
7d9455ce 20579 if test x$gcc_no_link = xyes; then
f00f02a3 20580 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20581fi
cd9a469c 20582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20583/* end confdefs.h. */
20584
7d9455ce 20585#ifdef HAVE_COMPLEX_H
20586#include <complex.h>
d213114b 20587#endif
7d9455ce 20588#ifdef HAVE_MATH_H
20589#include <math.h>
20590#endif
20591
20592int (*ptr)() = (int (*)())clog;
20593
d213114b 20594int
20595main ()
20596{
d213114b 20597 return 0;
20598}
7d9455ce 20599
d213114b 20600_ACEOF
cd9a469c 20601if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20602 gcc_cv_math_func_clog=yes
d213114b 20603else
7d9455ce 20604 gcc_cv_math_func_clog=no
d213114b 20605fi
cd9a469c 20606rm -f core conftest.err conftest.$ac_objext \
20607 conftest$ac_exeext conftest.$ac_ext
d213114b 20608fi
7d9455ce 20609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20610$as_echo "$gcc_cv_math_func_clog" >&6; }
20611 if test $gcc_cv_math_func_clog = yes; then
bd647a17 20612
6affa8e1 20613cat >>confdefs.h <<_ACEOF
20614#define HAVE_CLOG 1
20615_ACEOF
d213114b 20616
7d9455ce 20617 fi
d213114b 20618
d213114b 20619
7d9455ce 20620
20621
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20623$as_echo_n "checking for clogl... " >&6; }
f00f02a3 20624if ${gcc_cv_math_func_clogl+:} false; then :
cd9a469c 20625 $as_echo_n "(cached) " >&6
d213114b 20626else
7d9455ce 20627 if test x$gcc_no_link = xyes; then
f00f02a3 20628 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20629fi
cd9a469c 20630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20631/* end confdefs.h. */
20632
7d9455ce 20633#ifdef HAVE_COMPLEX_H
20634#include <complex.h>
20635#endif
20636#ifdef HAVE_MATH_H
20637#include <math.h>
d213114b 20638#endif
7d9455ce 20639
20640int (*ptr)() = (int (*)())clogl;
20641
d213114b 20642int
20643main ()
20644{
d213114b 20645 return 0;
20646}
7d9455ce 20647
d213114b 20648_ACEOF
cd9a469c 20649if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20650 gcc_cv_math_func_clogl=yes
d213114b 20651else
7d9455ce 20652 gcc_cv_math_func_clogl=no
d213114b 20653fi
cd9a469c 20654rm -f core conftest.err conftest.$ac_objext \
20655 conftest$ac_exeext conftest.$ac_ext
d213114b 20656fi
7d9455ce 20657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20658$as_echo "$gcc_cv_math_func_clogl" >&6; }
20659 if test $gcc_cv_math_func_clogl = yes; then
bd647a17 20660
6affa8e1 20661cat >>confdefs.h <<_ACEOF
20662#define HAVE_CLOGL 1
20663_ACEOF
7d9455ce 20664
20665 fi
d213114b 20666
d213114b 20667
d213114b 20668
7d9455ce 20669
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20671$as_echo_n "checking for log10f... " >&6; }
f00f02a3 20672if ${gcc_cv_math_func_log10f+:} false; then :
cd9a469c 20673 $as_echo_n "(cached) " >&6
d213114b 20674else
7d9455ce 20675 if test x$gcc_no_link = xyes; then
f00f02a3 20676 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20677fi
cd9a469c 20678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20679/* end confdefs.h. */
20680
7d9455ce 20681#ifdef HAVE_COMPLEX_H
20682#include <complex.h>
d213114b 20683#endif
7d9455ce 20684#ifdef HAVE_MATH_H
20685#include <math.h>
20686#endif
20687
20688int (*ptr)() = (int (*)())log10f;
20689
d213114b 20690int
20691main ()
20692{
d213114b 20693 return 0;
20694}
7d9455ce 20695
d213114b 20696_ACEOF
cd9a469c 20697if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20698 gcc_cv_math_func_log10f=yes
d213114b 20699else
7d9455ce 20700 gcc_cv_math_func_log10f=no
d213114b 20701fi
cd9a469c 20702rm -f core conftest.err conftest.$ac_objext \
20703 conftest$ac_exeext conftest.$ac_ext
d213114b 20704fi
7d9455ce 20705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20706$as_echo "$gcc_cv_math_func_log10f" >&6; }
20707 if test $gcc_cv_math_func_log10f = yes; then
bd647a17 20708
6affa8e1 20709cat >>confdefs.h <<_ACEOF
20710#define HAVE_LOG10F 1
20711_ACEOF
7d9455ce 20712
20713 fi
20714
d213114b 20715
d213114b 20716
d213114b 20717
7d9455ce 20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20719$as_echo_n "checking for log10... " >&6; }
f00f02a3 20720if ${gcc_cv_math_func_log10+:} false; then :
cd9a469c 20721 $as_echo_n "(cached) " >&6
d213114b 20722else
7d9455ce 20723 if test x$gcc_no_link = xyes; then
f00f02a3 20724 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20725fi
cd9a469c 20726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20727/* end confdefs.h. */
20728
7d9455ce 20729#ifdef HAVE_COMPLEX_H
20730#include <complex.h>
20731#endif
20732#ifdef HAVE_MATH_H
20733#include <math.h>
d213114b 20734#endif
7d9455ce 20735
20736int (*ptr)() = (int (*)())log10;
20737
d213114b 20738int
20739main ()
20740{
d213114b 20741 return 0;
20742}
7d9455ce 20743
d213114b 20744_ACEOF
cd9a469c 20745if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20746 gcc_cv_math_func_log10=yes
d213114b 20747else
7d9455ce 20748 gcc_cv_math_func_log10=no
d213114b 20749fi
cd9a469c 20750rm -f core conftest.err conftest.$ac_objext \
20751 conftest$ac_exeext conftest.$ac_ext
d213114b 20752fi
7d9455ce 20753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20754$as_echo "$gcc_cv_math_func_log10" >&6; }
20755 if test $gcc_cv_math_func_log10 = yes; then
bd647a17 20756
6affa8e1 20757cat >>confdefs.h <<_ACEOF
20758#define HAVE_LOG10 1
20759_ACEOF
7d9455ce 20760
20761 fi
d213114b 20762
d213114b 20763
d213114b 20764
7d9455ce 20765
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20767$as_echo_n "checking for log10l... " >&6; }
f00f02a3 20768if ${gcc_cv_math_func_log10l+:} false; then :
cd9a469c 20769 $as_echo_n "(cached) " >&6
d213114b 20770else
7d9455ce 20771 if test x$gcc_no_link = xyes; then
f00f02a3 20772 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20773fi
cd9a469c 20774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20775/* end confdefs.h. */
20776
7d9455ce 20777#ifdef HAVE_COMPLEX_H
20778#include <complex.h>
d213114b 20779#endif
7d9455ce 20780#ifdef HAVE_MATH_H
20781#include <math.h>
20782#endif
20783
20784int (*ptr)() = (int (*)())log10l;
20785
d213114b 20786int
20787main ()
20788{
d213114b 20789 return 0;
20790}
7d9455ce 20791
d213114b 20792_ACEOF
cd9a469c 20793if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20794 gcc_cv_math_func_log10l=yes
d213114b 20795else
7d9455ce 20796 gcc_cv_math_func_log10l=no
d213114b 20797fi
cd9a469c 20798rm -f core conftest.err conftest.$ac_objext \
20799 conftest$ac_exeext conftest.$ac_ext
d213114b 20800fi
7d9455ce 20801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20802$as_echo "$gcc_cv_math_func_log10l" >&6; }
20803 if test $gcc_cv_math_func_log10l = yes; then
bd647a17 20804
6affa8e1 20805cat >>confdefs.h <<_ACEOF
20806#define HAVE_LOG10L 1
20807_ACEOF
d213114b 20808
7d9455ce 20809 fi
d213114b 20810
d213114b 20811
7d9455ce 20812
20813
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20815$as_echo_n "checking for clog10f... " >&6; }
f00f02a3 20816if ${gcc_cv_math_func_clog10f+:} false; then :
cd9a469c 20817 $as_echo_n "(cached) " >&6
d213114b 20818else
7d9455ce 20819 if test x$gcc_no_link = xyes; then
f00f02a3 20820 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20821fi
cd9a469c 20822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20823/* end confdefs.h. */
20824
7d9455ce 20825#ifdef HAVE_COMPLEX_H
20826#include <complex.h>
20827#endif
20828#ifdef HAVE_MATH_H
20829#include <math.h>
d213114b 20830#endif
7d9455ce 20831
20832int (*ptr)() = (int (*)())clog10f;
20833
d213114b 20834int
20835main ()
20836{
d213114b 20837 return 0;
20838}
7d9455ce 20839
d213114b 20840_ACEOF
cd9a469c 20841if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20842 gcc_cv_math_func_clog10f=yes
d213114b 20843else
7d9455ce 20844 gcc_cv_math_func_clog10f=no
d213114b 20845fi
cd9a469c 20846rm -f core conftest.err conftest.$ac_objext \
20847 conftest$ac_exeext conftest.$ac_ext
d213114b 20848fi
7d9455ce 20849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20850$as_echo "$gcc_cv_math_func_clog10f" >&6; }
20851 if test $gcc_cv_math_func_clog10f = yes; then
bd647a17 20852
6affa8e1 20853cat >>confdefs.h <<_ACEOF
20854#define HAVE_CLOG10F 1
20855_ACEOF
7d9455ce 20856
20857 fi
d213114b 20858
d213114b 20859
d213114b 20860
7d9455ce 20861
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20863$as_echo_n "checking for clog10... " >&6; }
f00f02a3 20864if ${gcc_cv_math_func_clog10+:} false; then :
cd9a469c 20865 $as_echo_n "(cached) " >&6
d213114b 20866else
7d9455ce 20867 if test x$gcc_no_link = xyes; then
f00f02a3 20868 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20869fi
cd9a469c 20870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20871/* end confdefs.h. */
20872
7d9455ce 20873#ifdef HAVE_COMPLEX_H
20874#include <complex.h>
d213114b 20875#endif
7d9455ce 20876#ifdef HAVE_MATH_H
20877#include <math.h>
20878#endif
20879
20880int (*ptr)() = (int (*)())clog10;
20881
d213114b 20882int
20883main ()
20884{
cd9a469c 20885 return 0;
20886}
7d9455ce 20887
cd9a469c 20888_ACEOF
20889if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20890 gcc_cv_math_func_clog10=yes
d213114b 20891else
7d9455ce 20892 gcc_cv_math_func_clog10=no
d213114b 20893fi
cd9a469c 20894rm -f core conftest.err conftest.$ac_objext \
20895 conftest$ac_exeext conftest.$ac_ext
d213114b 20896fi
7d9455ce 20897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20898$as_echo "$gcc_cv_math_func_clog10" >&6; }
20899 if test $gcc_cv_math_func_clog10 = yes; then
bd647a17 20900
6affa8e1 20901cat >>confdefs.h <<_ACEOF
20902#define HAVE_CLOG10 1
20903_ACEOF
7d9455ce 20904
20905 fi
20906
d213114b 20907
d213114b 20908
d213114b 20909
7d9455ce 20910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20911$as_echo_n "checking for clog10l... " >&6; }
f00f02a3 20912if ${gcc_cv_math_func_clog10l+:} false; then :
cd9a469c 20913 $as_echo_n "(cached) " >&6
d213114b 20914else
7d9455ce 20915 if test x$gcc_no_link = xyes; then
f00f02a3 20916 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20917fi
cd9a469c 20918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20919/* end confdefs.h. */
20920
7d9455ce 20921#ifdef HAVE_COMPLEX_H
20922#include <complex.h>
20923#endif
20924#ifdef HAVE_MATH_H
20925#include <math.h>
d213114b 20926#endif
7d9455ce 20927
20928int (*ptr)() = (int (*)())clog10l;
20929
d213114b 20930int
20931main ()
20932{
d213114b 20933 return 0;
20934}
7d9455ce 20935
d213114b 20936_ACEOF
cd9a469c 20937if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20938 gcc_cv_math_func_clog10l=yes
d213114b 20939else
7d9455ce 20940 gcc_cv_math_func_clog10l=no
d213114b 20941fi
cd9a469c 20942rm -f core conftest.err conftest.$ac_objext \
20943 conftest$ac_exeext conftest.$ac_ext
d213114b 20944fi
7d9455ce 20945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20946$as_echo "$gcc_cv_math_func_clog10l" >&6; }
20947 if test $gcc_cv_math_func_clog10l = yes; then
bd647a17 20948
6affa8e1 20949cat >>confdefs.h <<_ACEOF
20950#define HAVE_CLOG10L 1
20951_ACEOF
7d9455ce 20952
20953 fi
d213114b 20954
d213114b 20955
d213114b 20956
7d9455ce 20957
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20959$as_echo_n "checking for nextafterf... " >&6; }
f00f02a3 20960if ${gcc_cv_math_func_nextafterf+:} false; then :
cd9a469c 20961 $as_echo_n "(cached) " >&6
d213114b 20962else
7d9455ce 20963 if test x$gcc_no_link = xyes; then
f00f02a3 20964 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20965fi
cd9a469c 20966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20967/* end confdefs.h. */
20968
7d9455ce 20969#ifdef HAVE_COMPLEX_H
20970#include <complex.h>
d213114b 20971#endif
7d9455ce 20972#ifdef HAVE_MATH_H
20973#include <math.h>
20974#endif
20975
20976int (*ptr)() = (int (*)())nextafterf;
20977
d213114b 20978int
20979main ()
20980{
d213114b 20981 return 0;
20982}
7d9455ce 20983
d213114b 20984_ACEOF
cd9a469c 20985if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20986 gcc_cv_math_func_nextafterf=yes
d213114b 20987else
7d9455ce 20988 gcc_cv_math_func_nextafterf=no
d213114b 20989fi
cd9a469c 20990rm -f core conftest.err conftest.$ac_objext \
20991 conftest$ac_exeext conftest.$ac_ext
d213114b 20992fi
7d9455ce 20993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20994$as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20995 if test $gcc_cv_math_func_nextafterf = yes; then
bd647a17 20996
6affa8e1 20997cat >>confdefs.h <<_ACEOF
20998#define HAVE_NEXTAFTERF 1
20999_ACEOF
d213114b 21000
7d9455ce 21001 fi
d213114b 21002
d213114b 21003
7d9455ce 21004
21005
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
21007$as_echo_n "checking for nextafter... " >&6; }
f00f02a3 21008if ${gcc_cv_math_func_nextafter+:} false; then :
cd9a469c 21009 $as_echo_n "(cached) " >&6
d213114b 21010else
7d9455ce 21011 if test x$gcc_no_link = xyes; then
f00f02a3 21012 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21013fi
cd9a469c 21014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21015/* end confdefs.h. */
21016
7d9455ce 21017#ifdef HAVE_COMPLEX_H
21018#include <complex.h>
21019#endif
21020#ifdef HAVE_MATH_H
21021#include <math.h>
d213114b 21022#endif
7d9455ce 21023
21024int (*ptr)() = (int (*)())nextafter;
21025
d213114b 21026int
21027main ()
21028{
d213114b 21029 return 0;
21030}
7d9455ce 21031
d213114b 21032_ACEOF
cd9a469c 21033if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21034 gcc_cv_math_func_nextafter=yes
d213114b 21035else
7d9455ce 21036 gcc_cv_math_func_nextafter=no
d213114b 21037fi
cd9a469c 21038rm -f core conftest.err conftest.$ac_objext \
21039 conftest$ac_exeext conftest.$ac_ext
d213114b 21040fi
7d9455ce 21041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
21042$as_echo "$gcc_cv_math_func_nextafter" >&6; }
21043 if test $gcc_cv_math_func_nextafter = yes; then
bd647a17 21044
6affa8e1 21045cat >>confdefs.h <<_ACEOF
21046#define HAVE_NEXTAFTER 1
21047_ACEOF
7d9455ce 21048
21049 fi
d213114b 21050
d213114b 21051
d213114b 21052
7d9455ce 21053
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
21055$as_echo_n "checking for nextafterl... " >&6; }
f00f02a3 21056if ${gcc_cv_math_func_nextafterl+:} false; then :
cd9a469c 21057 $as_echo_n "(cached) " >&6
d213114b 21058else
7d9455ce 21059 if test x$gcc_no_link = xyes; then
f00f02a3 21060 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21061fi
cd9a469c 21062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21063/* end confdefs.h. */
21064
7d9455ce 21065#ifdef HAVE_COMPLEX_H
21066#include <complex.h>
d213114b 21067#endif
7d9455ce 21068#ifdef HAVE_MATH_H
21069#include <math.h>
21070#endif
21071
21072int (*ptr)() = (int (*)())nextafterl;
21073
d213114b 21074int
21075main ()
21076{
d213114b 21077 return 0;
21078}
7d9455ce 21079
d213114b 21080_ACEOF
cd9a469c 21081if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21082 gcc_cv_math_func_nextafterl=yes
d213114b 21083else
7d9455ce 21084 gcc_cv_math_func_nextafterl=no
d213114b 21085fi
cd9a469c 21086rm -f core conftest.err conftest.$ac_objext \
21087 conftest$ac_exeext conftest.$ac_ext
d213114b 21088fi
7d9455ce 21089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
21090$as_echo "$gcc_cv_math_func_nextafterl" >&6; }
21091 if test $gcc_cv_math_func_nextafterl = yes; then
bd647a17 21092
6affa8e1 21093cat >>confdefs.h <<_ACEOF
21094#define HAVE_NEXTAFTERL 1
21095_ACEOF
7d9455ce 21096
21097 fi
21098
d213114b 21099
d213114b 21100
d213114b 21101
7d9455ce 21102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
21103$as_echo_n "checking for powf... " >&6; }
f00f02a3 21104if ${gcc_cv_math_func_powf+:} false; then :
cd9a469c 21105 $as_echo_n "(cached) " >&6
d213114b 21106else
7d9455ce 21107 if test x$gcc_no_link = xyes; then
f00f02a3 21108 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21109fi
cd9a469c 21110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21111/* end confdefs.h. */
21112
7d9455ce 21113#ifdef HAVE_COMPLEX_H
21114#include <complex.h>
21115#endif
21116#ifdef HAVE_MATH_H
21117#include <math.h>
d213114b 21118#endif
7d9455ce 21119
21120int (*ptr)() = (int (*)())powf;
21121
d213114b 21122int
21123main ()
21124{
d213114b 21125 return 0;
21126}
7d9455ce 21127
d213114b 21128_ACEOF
cd9a469c 21129if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21130 gcc_cv_math_func_powf=yes
d213114b 21131else
7d9455ce 21132 gcc_cv_math_func_powf=no
d213114b 21133fi
cd9a469c 21134rm -f core conftest.err conftest.$ac_objext \
21135 conftest$ac_exeext conftest.$ac_ext
d213114b 21136fi
7d9455ce 21137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
21138$as_echo "$gcc_cv_math_func_powf" >&6; }
21139 if test $gcc_cv_math_func_powf = yes; then
bd647a17 21140
6affa8e1 21141cat >>confdefs.h <<_ACEOF
21142#define HAVE_POWF 1
21143_ACEOF
7d9455ce 21144
21145 fi
d213114b 21146
d213114b 21147
d213114b 21148
7d9455ce 21149
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
21151$as_echo_n "checking for pow... " >&6; }
f00f02a3 21152if ${gcc_cv_math_func_pow+:} false; then :
cd9a469c 21153 $as_echo_n "(cached) " >&6
d213114b 21154else
7d9455ce 21155 if test x$gcc_no_link = xyes; then
f00f02a3 21156 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21157fi
cd9a469c 21158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21159/* end confdefs.h. */
21160
7d9455ce 21161#ifdef HAVE_COMPLEX_H
21162#include <complex.h>
d213114b 21163#endif
7d9455ce 21164#ifdef HAVE_MATH_H
21165#include <math.h>
21166#endif
21167
21168int (*ptr)() = (int (*)())pow;
21169
d213114b 21170int
21171main ()
21172{
d213114b 21173 return 0;
21174}
7d9455ce 21175
d213114b 21176_ACEOF
cd9a469c 21177if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21178 gcc_cv_math_func_pow=yes
d213114b 21179else
7d9455ce 21180 gcc_cv_math_func_pow=no
d213114b 21181fi
cd9a469c 21182rm -f core conftest.err conftest.$ac_objext \
21183 conftest$ac_exeext conftest.$ac_ext
d213114b 21184fi
7d9455ce 21185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21186$as_echo "$gcc_cv_math_func_pow" >&6; }
21187 if test $gcc_cv_math_func_pow = yes; then
bd647a17 21188
6affa8e1 21189cat >>confdefs.h <<_ACEOF
21190#define HAVE_POW 1
21191_ACEOF
d213114b 21192
7d9455ce 21193 fi
d213114b 21194
d213114b 21195
7d9455ce 21196
21197
7d9455ce 21198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21199$as_echo_n "checking for cpowf... " >&6; }
f00f02a3 21200if ${gcc_cv_math_func_cpowf+:} false; then :
cd9a469c 21201 $as_echo_n "(cached) " >&6
d213114b 21202else
7d9455ce 21203 if test x$gcc_no_link = xyes; then
f00f02a3 21204 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21205fi
cd9a469c 21206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21207/* end confdefs.h. */
21208
7d9455ce 21209#ifdef HAVE_COMPLEX_H
21210#include <complex.h>
d213114b 21211#endif
7d9455ce 21212#ifdef HAVE_MATH_H
21213#include <math.h>
21214#endif
21215
21216int (*ptr)() = (int (*)())cpowf;
21217
d213114b 21218int
21219main ()
21220{
d213114b 21221 return 0;
21222}
7d9455ce 21223
d213114b 21224_ACEOF
cd9a469c 21225if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21226 gcc_cv_math_func_cpowf=yes
d213114b 21227else
7d9455ce 21228 gcc_cv_math_func_cpowf=no
d213114b 21229fi
cd9a469c 21230rm -f core conftest.err conftest.$ac_objext \
21231 conftest$ac_exeext conftest.$ac_ext
d213114b 21232fi
7d9455ce 21233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21234$as_echo "$gcc_cv_math_func_cpowf" >&6; }
21235 if test $gcc_cv_math_func_cpowf = yes; then
bd647a17 21236
6affa8e1 21237cat >>confdefs.h <<_ACEOF
21238#define HAVE_CPOWF 1
21239_ACEOF
7d9455ce 21240
21241 fi
21242
d213114b 21243
d213114b 21244
d213114b 21245
7d9455ce 21246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21247$as_echo_n "checking for cpow... " >&6; }
f00f02a3 21248if ${gcc_cv_math_func_cpow+:} false; then :
cd9a469c 21249 $as_echo_n "(cached) " >&6
d213114b 21250else
7d9455ce 21251 if test x$gcc_no_link = xyes; then
f00f02a3 21252 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21253fi
cd9a469c 21254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21255/* end confdefs.h. */
21256
7d9455ce 21257#ifdef HAVE_COMPLEX_H
21258#include <complex.h>
21259#endif
21260#ifdef HAVE_MATH_H
21261#include <math.h>
d213114b 21262#endif
7d9455ce 21263
21264int (*ptr)() = (int (*)())cpow;
21265
d213114b 21266int
21267main ()
21268{
d213114b 21269 return 0;
21270}
7d9455ce 21271
d213114b 21272_ACEOF
cd9a469c 21273if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21274 gcc_cv_math_func_cpow=yes
d213114b 21275else
7d9455ce 21276 gcc_cv_math_func_cpow=no
d213114b 21277fi
cd9a469c 21278rm -f core conftest.err conftest.$ac_objext \
21279 conftest$ac_exeext conftest.$ac_ext
d213114b 21280fi
7d9455ce 21281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21282$as_echo "$gcc_cv_math_func_cpow" >&6; }
21283 if test $gcc_cv_math_func_cpow = yes; then
bd647a17 21284
6affa8e1 21285cat >>confdefs.h <<_ACEOF
21286#define HAVE_CPOW 1
21287_ACEOF
7d9455ce 21288
21289 fi
d213114b 21290
d213114b 21291
d213114b 21292
7d9455ce 21293
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21295$as_echo_n "checking for cpowl... " >&6; }
f00f02a3 21296if ${gcc_cv_math_func_cpowl+:} false; then :
cd9a469c 21297 $as_echo_n "(cached) " >&6
d213114b 21298else
7d9455ce 21299 if test x$gcc_no_link = xyes; then
f00f02a3 21300 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21301fi
cd9a469c 21302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21303/* end confdefs.h. */
21304
7d9455ce 21305#ifdef HAVE_COMPLEX_H
21306#include <complex.h>
d213114b 21307#endif
7d9455ce 21308#ifdef HAVE_MATH_H
21309#include <math.h>
21310#endif
21311
21312int (*ptr)() = (int (*)())cpowl;
21313
d213114b 21314int
21315main ()
21316{
d213114b 21317 return 0;
21318}
7d9455ce 21319
d213114b 21320_ACEOF
cd9a469c 21321if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21322 gcc_cv_math_func_cpowl=yes
d213114b 21323else
7d9455ce 21324 gcc_cv_math_func_cpowl=no
d213114b 21325fi
cd9a469c 21326rm -f core conftest.err conftest.$ac_objext \
21327 conftest$ac_exeext conftest.$ac_ext
d213114b 21328fi
7d9455ce 21329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21330$as_echo "$gcc_cv_math_func_cpowl" >&6; }
21331 if test $gcc_cv_math_func_cpowl = yes; then
bd647a17 21332
6affa8e1 21333cat >>confdefs.h <<_ACEOF
21334#define HAVE_CPOWL 1
21335_ACEOF
d213114b 21336
7d9455ce 21337 fi
d213114b 21338
d213114b 21339
7d9455ce 21340
21341
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21343$as_echo_n "checking for roundf... " >&6; }
f00f02a3 21344if ${gcc_cv_math_func_roundf+:} false; then :
cd9a469c 21345 $as_echo_n "(cached) " >&6
d213114b 21346else
7d9455ce 21347 if test x$gcc_no_link = xyes; then
f00f02a3 21348 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21349fi
cd9a469c 21350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21351/* end confdefs.h. */
21352
7d9455ce 21353#ifdef HAVE_COMPLEX_H
21354#include <complex.h>
21355#endif
21356#ifdef HAVE_MATH_H
21357#include <math.h>
d213114b 21358#endif
7d9455ce 21359
21360int (*ptr)() = (int (*)())roundf;
21361
d213114b 21362int
21363main ()
21364{
d213114b 21365 return 0;
21366}
7d9455ce 21367
d213114b 21368_ACEOF
cd9a469c 21369if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21370 gcc_cv_math_func_roundf=yes
d213114b 21371else
7d9455ce 21372 gcc_cv_math_func_roundf=no
d213114b 21373fi
cd9a469c 21374rm -f core conftest.err conftest.$ac_objext \
21375 conftest$ac_exeext conftest.$ac_ext
d213114b 21376fi
7d9455ce 21377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21378$as_echo "$gcc_cv_math_func_roundf" >&6; }
21379 if test $gcc_cv_math_func_roundf = yes; then
bd647a17 21380
6affa8e1 21381cat >>confdefs.h <<_ACEOF
21382#define HAVE_ROUNDF 1
21383_ACEOF
7d9455ce 21384
21385 fi
d213114b 21386
d213114b 21387
d213114b 21388
7d9455ce 21389
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21391$as_echo_n "checking for round... " >&6; }
f00f02a3 21392if ${gcc_cv_math_func_round+:} false; then :
cd9a469c 21393 $as_echo_n "(cached) " >&6
d213114b 21394else
7d9455ce 21395 if test x$gcc_no_link = xyes; then
f00f02a3 21396 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21397fi
cd9a469c 21398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21399/* end confdefs.h. */
21400
7d9455ce 21401#ifdef HAVE_COMPLEX_H
21402#include <complex.h>
d213114b 21403#endif
7d9455ce 21404#ifdef HAVE_MATH_H
21405#include <math.h>
21406#endif
21407
21408int (*ptr)() = (int (*)())round;
21409
d213114b 21410int
21411main ()
21412{
d213114b 21413 return 0;
21414}
7d9455ce 21415
d213114b 21416_ACEOF
cd9a469c 21417if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21418 gcc_cv_math_func_round=yes
d213114b 21419else
7d9455ce 21420 gcc_cv_math_func_round=no
d213114b 21421fi
cd9a469c 21422rm -f core conftest.err conftest.$ac_objext \
21423 conftest$ac_exeext conftest.$ac_ext
d213114b 21424fi
7d9455ce 21425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21426$as_echo "$gcc_cv_math_func_round" >&6; }
21427 if test $gcc_cv_math_func_round = yes; then
bd647a17 21428
6affa8e1 21429cat >>confdefs.h <<_ACEOF
21430#define HAVE_ROUND 1
21431_ACEOF
7d9455ce 21432
21433 fi
21434
d213114b 21435
d213114b 21436
d213114b 21437
7d9455ce 21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21439$as_echo_n "checking for roundl... " >&6; }
f00f02a3 21440if ${gcc_cv_math_func_roundl+:} false; then :
cd9a469c 21441 $as_echo_n "(cached) " >&6
ef080b63 21442else
7d9455ce 21443 if test x$gcc_no_link = xyes; then
f00f02a3 21444 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21445fi
cd9a469c 21446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21447/* end confdefs.h. */
21448
7d9455ce 21449#ifdef HAVE_COMPLEX_H
21450#include <complex.h>
21451#endif
21452#ifdef HAVE_MATH_H
21453#include <math.h>
ef080b63 21454#endif
7d9455ce 21455
21456int (*ptr)() = (int (*)())roundl;
21457
ef080b63 21458int
21459main ()
21460{
ef080b63 21461 return 0;
21462}
7d9455ce 21463
ef080b63 21464_ACEOF
cd9a469c 21465if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21466 gcc_cv_math_func_roundl=yes
ef080b63 21467else
7d9455ce 21468 gcc_cv_math_func_roundl=no
ef080b63 21469fi
cd9a469c 21470rm -f core conftest.err conftest.$ac_objext \
21471 conftest$ac_exeext conftest.$ac_ext
ef080b63 21472fi
7d9455ce 21473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21474$as_echo "$gcc_cv_math_func_roundl" >&6; }
21475 if test $gcc_cv_math_func_roundl = yes; then
bd647a17 21476
6affa8e1 21477cat >>confdefs.h <<_ACEOF
21478#define HAVE_ROUNDL 1
21479_ACEOF
7d9455ce 21480
21481 fi
ef080b63 21482
ef080b63 21483
ef080b63 21484
7d9455ce 21485
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21487$as_echo_n "checking for lroundf... " >&6; }
f00f02a3 21488if ${gcc_cv_math_func_lroundf+:} false; then :
cd9a469c 21489 $as_echo_n "(cached) " >&6
ef080b63 21490else
7d9455ce 21491 if test x$gcc_no_link = xyes; then
f00f02a3 21492 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21493fi
cd9a469c 21494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21495/* end confdefs.h. */
21496
7d9455ce 21497#ifdef HAVE_COMPLEX_H
21498#include <complex.h>
ef080b63 21499#endif
7d9455ce 21500#ifdef HAVE_MATH_H
21501#include <math.h>
21502#endif
21503
21504int (*ptr)() = (int (*)())lroundf;
21505
ef080b63 21506int
21507main ()
21508{
ef080b63 21509 return 0;
21510}
7d9455ce 21511
ef080b63 21512_ACEOF
cd9a469c 21513if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21514 gcc_cv_math_func_lroundf=yes
ef080b63 21515else
7d9455ce 21516 gcc_cv_math_func_lroundf=no
ef080b63 21517fi
cd9a469c 21518rm -f core conftest.err conftest.$ac_objext \
21519 conftest$ac_exeext conftest.$ac_ext
ef080b63 21520fi
7d9455ce 21521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21522$as_echo "$gcc_cv_math_func_lroundf" >&6; }
21523 if test $gcc_cv_math_func_lroundf = yes; then
bd647a17 21524
6affa8e1 21525cat >>confdefs.h <<_ACEOF
21526#define HAVE_LROUNDF 1
21527_ACEOF
ef080b63 21528
7d9455ce 21529 fi
ef080b63 21530
ef080b63 21531
7d9455ce 21532
21533
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21535$as_echo_n "checking for lround... " >&6; }
f00f02a3 21536if ${gcc_cv_math_func_lround+:} false; then :
cd9a469c 21537 $as_echo_n "(cached) " >&6
ef080b63 21538else
7d9455ce 21539 if test x$gcc_no_link = xyes; then
f00f02a3 21540 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21541fi
cd9a469c 21542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21543/* end confdefs.h. */
21544
7d9455ce 21545#ifdef HAVE_COMPLEX_H
21546#include <complex.h>
21547#endif
21548#ifdef HAVE_MATH_H
21549#include <math.h>
ef080b63 21550#endif
7d9455ce 21551
21552int (*ptr)() = (int (*)())lround;
21553
ef080b63 21554int
21555main ()
21556{
ef080b63 21557 return 0;
21558}
7d9455ce 21559
ef080b63 21560_ACEOF
cd9a469c 21561if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21562 gcc_cv_math_func_lround=yes
ef080b63 21563else
7d9455ce 21564 gcc_cv_math_func_lround=no
ef080b63 21565fi
cd9a469c 21566rm -f core conftest.err conftest.$ac_objext \
21567 conftest$ac_exeext conftest.$ac_ext
ef080b63 21568fi
7d9455ce 21569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21570$as_echo "$gcc_cv_math_func_lround" >&6; }
21571 if test $gcc_cv_math_func_lround = yes; then
bd647a17 21572
6affa8e1 21573cat >>confdefs.h <<_ACEOF
21574#define HAVE_LROUND 1
21575_ACEOF
7d9455ce 21576
21577 fi
21578
ef080b63 21579
ef080b63 21580
ef080b63 21581
7d9455ce 21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21583$as_echo_n "checking for lroundl... " >&6; }
f00f02a3 21584if ${gcc_cv_math_func_lroundl+:} false; then :
cd9a469c 21585 $as_echo_n "(cached) " >&6
ef080b63 21586else
7d9455ce 21587 if test x$gcc_no_link = xyes; then
f00f02a3 21588 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21589fi
cd9a469c 21590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21591/* end confdefs.h. */
21592
7d9455ce 21593#ifdef HAVE_COMPLEX_H
21594#include <complex.h>
21595#endif
21596#ifdef HAVE_MATH_H
21597#include <math.h>
ef080b63 21598#endif
7d9455ce 21599
21600int (*ptr)() = (int (*)())lroundl;
21601
ef080b63 21602int
21603main ()
21604{
ef080b63 21605 return 0;
21606}
7d9455ce 21607
ef080b63 21608_ACEOF
cd9a469c 21609if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21610 gcc_cv_math_func_lroundl=yes
ef080b63 21611else
7d9455ce 21612 gcc_cv_math_func_lroundl=no
ef080b63 21613fi
cd9a469c 21614rm -f core conftest.err conftest.$ac_objext \
21615 conftest$ac_exeext conftest.$ac_ext
ef080b63 21616fi
7d9455ce 21617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21618$as_echo "$gcc_cv_math_func_lroundl" >&6; }
21619 if test $gcc_cv_math_func_lroundl = yes; then
bd647a17 21620
6affa8e1 21621cat >>confdefs.h <<_ACEOF
21622#define HAVE_LROUNDL 1
21623_ACEOF
ef080b63 21624
7d9455ce 21625 fi
ef080b63 21626
ef080b63 21627
7d9455ce 21628
21629
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21631$as_echo_n "checking for llroundf... " >&6; }
f00f02a3 21632if ${gcc_cv_math_func_llroundf+:} false; then :
cd9a469c 21633 $as_echo_n "(cached) " >&6
ef080b63 21634else
7d9455ce 21635 if test x$gcc_no_link = xyes; then
f00f02a3 21636 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21637fi
cd9a469c 21638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21639/* end confdefs.h. */
21640
7d9455ce 21641#ifdef HAVE_COMPLEX_H
21642#include <complex.h>
ef080b63 21643#endif
7d9455ce 21644#ifdef HAVE_MATH_H
21645#include <math.h>
21646#endif
21647
21648int (*ptr)() = (int (*)())llroundf;
21649
ef080b63 21650int
21651main ()
21652{
ef080b63 21653 return 0;
21654}
7d9455ce 21655
ef080b63 21656_ACEOF
cd9a469c 21657if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21658 gcc_cv_math_func_llroundf=yes
ef080b63 21659else
7d9455ce 21660 gcc_cv_math_func_llroundf=no
ef080b63 21661fi
cd9a469c 21662rm -f core conftest.err conftest.$ac_objext \
21663 conftest$ac_exeext conftest.$ac_ext
ef080b63 21664fi
7d9455ce 21665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21666$as_echo "$gcc_cv_math_func_llroundf" >&6; }
21667 if test $gcc_cv_math_func_llroundf = yes; then
bd647a17 21668
6affa8e1 21669cat >>confdefs.h <<_ACEOF
21670#define HAVE_LLROUNDF 1
21671_ACEOF
ef080b63 21672
7d9455ce 21673 fi
ef080b63 21674
ef080b63 21675
7d9455ce 21676
21677
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21679$as_echo_n "checking for llround... " >&6; }
f00f02a3 21680if ${gcc_cv_math_func_llround+:} false; then :
cd9a469c 21681 $as_echo_n "(cached) " >&6
ef080b63 21682else
7d9455ce 21683 if test x$gcc_no_link = xyes; then
f00f02a3 21684 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21685fi
cd9a469c 21686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21687/* end confdefs.h. */
21688
7d9455ce 21689#ifdef HAVE_COMPLEX_H
21690#include <complex.h>
21691#endif
21692#ifdef HAVE_MATH_H
21693#include <math.h>
ef080b63 21694#endif
7d9455ce 21695
21696int (*ptr)() = (int (*)())llround;
21697
ef080b63 21698int
21699main ()
21700{
ef080b63 21701 return 0;
21702}
7d9455ce 21703
ef080b63 21704_ACEOF
cd9a469c 21705if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21706 gcc_cv_math_func_llround=yes
ef080b63 21707else
7d9455ce 21708 gcc_cv_math_func_llround=no
ef080b63 21709fi
cd9a469c 21710rm -f core conftest.err conftest.$ac_objext \
21711 conftest$ac_exeext conftest.$ac_ext
ef080b63 21712fi
7d9455ce 21713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21714$as_echo "$gcc_cv_math_func_llround" >&6; }
21715 if test $gcc_cv_math_func_llround = yes; then
bd647a17 21716
6affa8e1 21717cat >>confdefs.h <<_ACEOF
21718#define HAVE_LLROUND 1
21719_ACEOF
7d9455ce 21720
21721 fi
21722
ef080b63 21723
ef080b63 21724
ef080b63 21725
7d9455ce 21726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21727$as_echo_n "checking for llroundl... " >&6; }
f00f02a3 21728if ${gcc_cv_math_func_llroundl+:} false; then :
cd9a469c 21729 $as_echo_n "(cached) " >&6
d213114b 21730else
7d9455ce 21731 if test x$gcc_no_link = xyes; then
f00f02a3 21732 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21733fi
cd9a469c 21734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21735/* end confdefs.h. */
21736
7d9455ce 21737#ifdef HAVE_COMPLEX_H
21738#include <complex.h>
21739#endif
21740#ifdef HAVE_MATH_H
21741#include <math.h>
d213114b 21742#endif
7d9455ce 21743
21744int (*ptr)() = (int (*)())llroundl;
21745
d213114b 21746int
21747main ()
21748{
d213114b 21749 return 0;
21750}
7d9455ce 21751
d213114b 21752_ACEOF
cd9a469c 21753if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21754 gcc_cv_math_func_llroundl=yes
d213114b 21755else
7d9455ce 21756 gcc_cv_math_func_llroundl=no
d213114b 21757fi
cd9a469c 21758rm -f core conftest.err conftest.$ac_objext \
21759 conftest$ac_exeext conftest.$ac_ext
d213114b 21760fi
7d9455ce 21761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21762$as_echo "$gcc_cv_math_func_llroundl" >&6; }
21763 if test $gcc_cv_math_func_llroundl = yes; then
bd647a17 21764
6affa8e1 21765cat >>confdefs.h <<_ACEOF
21766#define HAVE_LLROUNDL 1
21767_ACEOF
d213114b 21768
7d9455ce 21769 fi
d213114b 21770
d213114b 21771
7d9455ce 21772
21773
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21775$as_echo_n "checking for scalbnf... " >&6; }
f00f02a3 21776if ${gcc_cv_math_func_scalbnf+:} false; then :
cd9a469c 21777 $as_echo_n "(cached) " >&6
d213114b 21778else
7d9455ce 21779 if test x$gcc_no_link = xyes; then
f00f02a3 21780 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21781fi
cd9a469c 21782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21783/* end confdefs.h. */
21784
7d9455ce 21785#ifdef HAVE_COMPLEX_H
21786#include <complex.h>
d213114b 21787#endif
7d9455ce 21788#ifdef HAVE_MATH_H
21789#include <math.h>
21790#endif
21791
21792int (*ptr)() = (int (*)())scalbnf;
21793
d213114b 21794int
21795main ()
21796{
d213114b 21797 return 0;
21798}
7d9455ce 21799
d213114b 21800_ACEOF
cd9a469c 21801if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21802 gcc_cv_math_func_scalbnf=yes
d213114b 21803else
7d9455ce 21804 gcc_cv_math_func_scalbnf=no
d213114b 21805fi
cd9a469c 21806rm -f core conftest.err conftest.$ac_objext \
21807 conftest$ac_exeext conftest.$ac_ext
d213114b 21808fi
7d9455ce 21809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21810$as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21811 if test $gcc_cv_math_func_scalbnf = yes; then
bd647a17 21812
6affa8e1 21813cat >>confdefs.h <<_ACEOF
21814#define HAVE_SCALBNF 1
21815_ACEOF
d213114b 21816
7d9455ce 21817 fi
d213114b 21818
d213114b 21819
7d9455ce 21820
21821
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21823$as_echo_n "checking for scalbn... " >&6; }
f00f02a3 21824if ${gcc_cv_math_func_scalbn+:} false; then :
cd9a469c 21825 $as_echo_n "(cached) " >&6
d213114b 21826else
7d9455ce 21827 if test x$gcc_no_link = xyes; then
f00f02a3 21828 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21829fi
cd9a469c 21830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21831/* end confdefs.h. */
21832
7d9455ce 21833#ifdef HAVE_COMPLEX_H
21834#include <complex.h>
21835#endif
21836#ifdef HAVE_MATH_H
21837#include <math.h>
d213114b 21838#endif
7d9455ce 21839
21840int (*ptr)() = (int (*)())scalbn;
21841
d213114b 21842int
21843main ()
21844{
d213114b 21845 return 0;
21846}
7d9455ce 21847
d213114b 21848_ACEOF
cd9a469c 21849if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21850 gcc_cv_math_func_scalbn=yes
d213114b 21851else
7d9455ce 21852 gcc_cv_math_func_scalbn=no
d213114b 21853fi
cd9a469c 21854rm -f core conftest.err conftest.$ac_objext \
21855 conftest$ac_exeext conftest.$ac_ext
d213114b 21856fi
7d9455ce 21857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21858$as_echo "$gcc_cv_math_func_scalbn" >&6; }
21859 if test $gcc_cv_math_func_scalbn = yes; then
bd647a17 21860
6affa8e1 21861cat >>confdefs.h <<_ACEOF
21862#define HAVE_SCALBN 1
21863_ACEOF
7d9455ce 21864
21865 fi
21866
d213114b 21867
d213114b 21868
d213114b 21869
7d9455ce 21870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21871$as_echo_n "checking for scalbnl... " >&6; }
f00f02a3 21872if ${gcc_cv_math_func_scalbnl+:} false; then :
cd9a469c 21873 $as_echo_n "(cached) " >&6
d213114b 21874else
7d9455ce 21875 if test x$gcc_no_link = xyes; then
f00f02a3 21876 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21877fi
cd9a469c 21878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21879/* end confdefs.h. */
21880
7d9455ce 21881#ifdef HAVE_COMPLEX_H
21882#include <complex.h>
21883#endif
21884#ifdef HAVE_MATH_H
21885#include <math.h>
d213114b 21886#endif
7d9455ce 21887
21888int (*ptr)() = (int (*)())scalbnl;
21889
d213114b 21890int
21891main ()
21892{
d213114b 21893 return 0;
21894}
7d9455ce 21895
d213114b 21896_ACEOF
cd9a469c 21897if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21898 gcc_cv_math_func_scalbnl=yes
d213114b 21899else
7d9455ce 21900 gcc_cv_math_func_scalbnl=no
d213114b 21901fi
cd9a469c 21902rm -f core conftest.err conftest.$ac_objext \
21903 conftest$ac_exeext conftest.$ac_ext
d213114b 21904fi
7d9455ce 21905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21906$as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21907 if test $gcc_cv_math_func_scalbnl = yes; then
bd647a17 21908
6affa8e1 21909cat >>confdefs.h <<_ACEOF
21910#define HAVE_SCALBNL 1
21911_ACEOF
d213114b 21912
7d9455ce 21913 fi
d213114b 21914
d213114b 21915
7d9455ce 21916
21917
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21919$as_echo_n "checking for sinf... " >&6; }
f00f02a3 21920if ${gcc_cv_math_func_sinf+:} false; then :
cd9a469c 21921 $as_echo_n "(cached) " >&6
d213114b 21922else
7d9455ce 21923 if test x$gcc_no_link = xyes; then
f00f02a3 21924 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21925fi
cd9a469c 21926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21927/* end confdefs.h. */
21928
7d9455ce 21929#ifdef HAVE_COMPLEX_H
21930#include <complex.h>
d213114b 21931#endif
7d9455ce 21932#ifdef HAVE_MATH_H
21933#include <math.h>
21934#endif
21935
21936int (*ptr)() = (int (*)())sinf;
21937
d213114b 21938int
21939main ()
21940{
d213114b 21941 return 0;
21942}
7d9455ce 21943
d213114b 21944_ACEOF
cd9a469c 21945if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21946 gcc_cv_math_func_sinf=yes
d213114b 21947else
7d9455ce 21948 gcc_cv_math_func_sinf=no
d213114b 21949fi
cd9a469c 21950rm -f core conftest.err conftest.$ac_objext \
21951 conftest$ac_exeext conftest.$ac_ext
d213114b 21952fi
7d9455ce 21953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21954$as_echo "$gcc_cv_math_func_sinf" >&6; }
21955 if test $gcc_cv_math_func_sinf = yes; then
bd647a17 21956
6affa8e1 21957cat >>confdefs.h <<_ACEOF
21958#define HAVE_SINF 1
21959_ACEOF
d213114b 21960
7d9455ce 21961 fi
d213114b 21962
d213114b 21963
7d9455ce 21964
21965
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21967$as_echo_n "checking for sin... " >&6; }
f00f02a3 21968if ${gcc_cv_math_func_sin+:} false; then :
cd9a469c 21969 $as_echo_n "(cached) " >&6
d213114b 21970else
7d9455ce 21971 if test x$gcc_no_link = xyes; then
f00f02a3 21972 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21973fi
cd9a469c 21974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21975/* end confdefs.h. */
21976
7d9455ce 21977#ifdef HAVE_COMPLEX_H
21978#include <complex.h>
d213114b 21979#endif
7d9455ce 21980#ifdef HAVE_MATH_H
21981#include <math.h>
21982#endif
21983
21984int (*ptr)() = (int (*)())sin;
21985
d213114b 21986int
21987main ()
21988{
d213114b 21989 return 0;
21990}
7d9455ce 21991
d213114b 21992_ACEOF
cd9a469c 21993if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21994 gcc_cv_math_func_sin=yes
d213114b 21995else
7d9455ce 21996 gcc_cv_math_func_sin=no
d213114b 21997fi
cd9a469c 21998rm -f core conftest.err conftest.$ac_objext \
21999 conftest$ac_exeext conftest.$ac_ext
d213114b 22000fi
7d9455ce 22001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
22002$as_echo "$gcc_cv_math_func_sin" >&6; }
22003 if test $gcc_cv_math_func_sin = yes; then
bd647a17 22004
6affa8e1 22005cat >>confdefs.h <<_ACEOF
22006#define HAVE_SIN 1
22007_ACEOF
7d9455ce 22008
22009 fi
22010
d213114b 22011
d213114b 22012
d213114b 22013
7d9455ce 22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
22015$as_echo_n "checking for sinl... " >&6; }
f00f02a3 22016if ${gcc_cv_math_func_sinl+:} false; then :
cd9a469c 22017 $as_echo_n "(cached) " >&6
d213114b 22018else
7d9455ce 22019 if test x$gcc_no_link = xyes; then
f00f02a3 22020 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22021fi
cd9a469c 22022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22023/* end confdefs.h. */
22024
7d9455ce 22025#ifdef HAVE_COMPLEX_H
22026#include <complex.h>
d213114b 22027#endif
7d9455ce 22028#ifdef HAVE_MATH_H
22029#include <math.h>
22030#endif
22031
22032int (*ptr)() = (int (*)())sinl;
22033
d213114b 22034int
22035main ()
22036{
cd9a469c 22037 return 0;
22038}
7d9455ce 22039
cd9a469c 22040_ACEOF
22041if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22042 gcc_cv_math_func_sinl=yes
d213114b 22043else
7d9455ce 22044 gcc_cv_math_func_sinl=no
d213114b 22045fi
cd9a469c 22046rm -f core conftest.err conftest.$ac_objext \
22047 conftest$ac_exeext conftest.$ac_ext
d213114b 22048fi
7d9455ce 22049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
22050$as_echo "$gcc_cv_math_func_sinl" >&6; }
22051 if test $gcc_cv_math_func_sinl = yes; then
bd647a17 22052
6affa8e1 22053cat >>confdefs.h <<_ACEOF
22054#define HAVE_SINL 1
22055_ACEOF
7d9455ce 22056
22057 fi
d213114b 22058
d213114b 22059
d213114b 22060
7d9455ce 22061
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
22063$as_echo_n "checking for csinf... " >&6; }
f00f02a3 22064if ${gcc_cv_math_func_csinf+:} false; then :
cd9a469c 22065 $as_echo_n "(cached) " >&6
d213114b 22066else
7d9455ce 22067 if test x$gcc_no_link = xyes; then
f00f02a3 22068 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22069fi
cd9a469c 22070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22071/* end confdefs.h. */
22072
7d9455ce 22073#ifdef HAVE_COMPLEX_H
22074#include <complex.h>
22075#endif
22076#ifdef HAVE_MATH_H
22077#include <math.h>
d213114b 22078#endif
7d9455ce 22079
22080int (*ptr)() = (int (*)())csinf;
22081
d213114b 22082int
22083main ()
22084{
d213114b 22085 return 0;
22086}
7d9455ce 22087
d213114b 22088_ACEOF
cd9a469c 22089if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22090 gcc_cv_math_func_csinf=yes
d213114b 22091else
7d9455ce 22092 gcc_cv_math_func_csinf=no
d213114b 22093fi
cd9a469c 22094rm -f core conftest.err conftest.$ac_objext \
22095 conftest$ac_exeext conftest.$ac_ext
d213114b 22096fi
7d9455ce 22097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
22098$as_echo "$gcc_cv_math_func_csinf" >&6; }
22099 if test $gcc_cv_math_func_csinf = yes; then
bd647a17 22100
6affa8e1 22101cat >>confdefs.h <<_ACEOF
22102#define HAVE_CSINF 1
22103_ACEOF
d213114b 22104
7d9455ce 22105 fi
d213114b 22106
d213114b 22107
7d9455ce 22108
22109
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
22111$as_echo_n "checking for csin... " >&6; }
f00f02a3 22112if ${gcc_cv_math_func_csin+:} false; then :
cd9a469c 22113 $as_echo_n "(cached) " >&6
d213114b 22114else
7d9455ce 22115 if test x$gcc_no_link = xyes; then
f00f02a3 22116 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22117fi
cd9a469c 22118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22119/* end confdefs.h. */
22120
7d9455ce 22121#ifdef HAVE_COMPLEX_H
22122#include <complex.h>
d213114b 22123#endif
7d9455ce 22124#ifdef HAVE_MATH_H
22125#include <math.h>
22126#endif
22127
22128int (*ptr)() = (int (*)())csin;
22129
d213114b 22130int
22131main ()
22132{
d213114b 22133 return 0;
22134}
7d9455ce 22135
d213114b 22136_ACEOF
cd9a469c 22137if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22138 gcc_cv_math_func_csin=yes
d213114b 22139else
7d9455ce 22140 gcc_cv_math_func_csin=no
d213114b 22141fi
cd9a469c 22142rm -f core conftest.err conftest.$ac_objext \
22143 conftest$ac_exeext conftest.$ac_ext
d213114b 22144fi
7d9455ce 22145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
22146$as_echo "$gcc_cv_math_func_csin" >&6; }
22147 if test $gcc_cv_math_func_csin = yes; then
bd647a17 22148
6affa8e1 22149cat >>confdefs.h <<_ACEOF
22150#define HAVE_CSIN 1
22151_ACEOF
7d9455ce 22152
22153 fi
22154
d213114b 22155
d213114b 22156
d213114b 22157
7d9455ce 22158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
22159$as_echo_n "checking for csinl... " >&6; }
f00f02a3 22160if ${gcc_cv_math_func_csinl+:} false; then :
cd9a469c 22161 $as_echo_n "(cached) " >&6
d213114b 22162else
7d9455ce 22163 if test x$gcc_no_link = xyes; then
f00f02a3 22164 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22165fi
cd9a469c 22166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22167/* end confdefs.h. */
22168
7d9455ce 22169#ifdef HAVE_COMPLEX_H
22170#include <complex.h>
d213114b 22171#endif
7d9455ce 22172#ifdef HAVE_MATH_H
22173#include <math.h>
22174#endif
22175
22176int (*ptr)() = (int (*)())csinl;
22177
d213114b 22178int
22179main ()
22180{
d213114b 22181 return 0;
22182}
7d9455ce 22183
d213114b 22184_ACEOF
cd9a469c 22185if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22186 gcc_cv_math_func_csinl=yes
d213114b 22187else
7d9455ce 22188 gcc_cv_math_func_csinl=no
d213114b 22189fi
cd9a469c 22190rm -f core conftest.err conftest.$ac_objext \
22191 conftest$ac_exeext conftest.$ac_ext
d213114b 22192fi
7d9455ce 22193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22194$as_echo "$gcc_cv_math_func_csinl" >&6; }
22195 if test $gcc_cv_math_func_csinl = yes; then
bd647a17 22196
6affa8e1 22197cat >>confdefs.h <<_ACEOF
22198#define HAVE_CSINL 1
22199_ACEOF
7d9455ce 22200
22201 fi
d213114b 22202
d213114b 22203
d213114b 22204
7d9455ce 22205
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22207$as_echo_n "checking for sinhf... " >&6; }
f00f02a3 22208if ${gcc_cv_math_func_sinhf+:} false; then :
cd9a469c 22209 $as_echo_n "(cached) " >&6
d213114b 22210else
7d9455ce 22211 if test x$gcc_no_link = xyes; then
f00f02a3 22212 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22213fi
cd9a469c 22214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22215/* end confdefs.h. */
22216
7d9455ce 22217#ifdef HAVE_COMPLEX_H
22218#include <complex.h>
22219#endif
22220#ifdef HAVE_MATH_H
22221#include <math.h>
d213114b 22222#endif
7d9455ce 22223
22224int (*ptr)() = (int (*)())sinhf;
22225
d213114b 22226int
22227main ()
22228{
d213114b 22229 return 0;
22230}
7d9455ce 22231
d213114b 22232_ACEOF
cd9a469c 22233if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22234 gcc_cv_math_func_sinhf=yes
d213114b 22235else
7d9455ce 22236 gcc_cv_math_func_sinhf=no
d213114b 22237fi
cd9a469c 22238rm -f core conftest.err conftest.$ac_objext \
22239 conftest$ac_exeext conftest.$ac_ext
d213114b 22240fi
7d9455ce 22241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22242$as_echo "$gcc_cv_math_func_sinhf" >&6; }
22243 if test $gcc_cv_math_func_sinhf = yes; then
bd647a17 22244
6affa8e1 22245cat >>confdefs.h <<_ACEOF
22246#define HAVE_SINHF 1
22247_ACEOF
d213114b 22248
7d9455ce 22249 fi
d213114b 22250
d213114b 22251
7d9455ce 22252
22253
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22255$as_echo_n "checking for sinh... " >&6; }
f00f02a3 22256if ${gcc_cv_math_func_sinh+:} false; then :
cd9a469c 22257 $as_echo_n "(cached) " >&6
d213114b 22258else
7d9455ce 22259 if test x$gcc_no_link = xyes; then
f00f02a3 22260 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22261fi
cd9a469c 22262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22263/* end confdefs.h. */
22264
7d9455ce 22265#ifdef HAVE_COMPLEX_H
22266#include <complex.h>
d213114b 22267#endif
7d9455ce 22268#ifdef HAVE_MATH_H
22269#include <math.h>
22270#endif
22271
22272int (*ptr)() = (int (*)())sinh;
22273
d213114b 22274int
22275main ()
22276{
d213114b 22277 return 0;
22278}
7d9455ce 22279
d213114b 22280_ACEOF
cd9a469c 22281if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22282 gcc_cv_math_func_sinh=yes
d213114b 22283else
7d9455ce 22284 gcc_cv_math_func_sinh=no
d213114b 22285fi
cd9a469c 22286rm -f core conftest.err conftest.$ac_objext \
22287 conftest$ac_exeext conftest.$ac_ext
d213114b 22288fi
7d9455ce 22289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22290$as_echo "$gcc_cv_math_func_sinh" >&6; }
22291 if test $gcc_cv_math_func_sinh = yes; then
bd647a17 22292
6affa8e1 22293cat >>confdefs.h <<_ACEOF
22294#define HAVE_SINH 1
22295_ACEOF
7d9455ce 22296
22297 fi
22298
d213114b 22299
d213114b 22300
d213114b 22301
7d9455ce 22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22303$as_echo_n "checking for sinhl... " >&6; }
f00f02a3 22304if ${gcc_cv_math_func_sinhl+:} false; then :
cd9a469c 22305 $as_echo_n "(cached) " >&6
d213114b 22306else
7d9455ce 22307 if test x$gcc_no_link = xyes; then
f00f02a3 22308 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22309fi
cd9a469c 22310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22311/* end confdefs.h. */
22312
7d9455ce 22313#ifdef HAVE_COMPLEX_H
22314#include <complex.h>
d213114b 22315#endif
7d9455ce 22316#ifdef HAVE_MATH_H
22317#include <math.h>
22318#endif
22319
22320int (*ptr)() = (int (*)())sinhl;
22321
d213114b 22322int
22323main ()
22324{
d213114b 22325 return 0;
22326}
7d9455ce 22327
d213114b 22328_ACEOF
cd9a469c 22329if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22330 gcc_cv_math_func_sinhl=yes
d213114b 22331else
7d9455ce 22332 gcc_cv_math_func_sinhl=no
d213114b 22333fi
cd9a469c 22334rm -f core conftest.err conftest.$ac_objext \
22335 conftest$ac_exeext conftest.$ac_ext
d213114b 22336fi
7d9455ce 22337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22338$as_echo "$gcc_cv_math_func_sinhl" >&6; }
22339 if test $gcc_cv_math_func_sinhl = yes; then
bd647a17 22340
6affa8e1 22341cat >>confdefs.h <<_ACEOF
22342#define HAVE_SINHL 1
22343_ACEOF
7d9455ce 22344
22345 fi
d213114b 22346
d213114b 22347
d213114b 22348
7d9455ce 22349
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22351$as_echo_n "checking for csinhf... " >&6; }
f00f02a3 22352if ${gcc_cv_math_func_csinhf+:} false; then :
cd9a469c 22353 $as_echo_n "(cached) " >&6
d213114b 22354else
7d9455ce 22355 if test x$gcc_no_link = xyes; then
f00f02a3 22356 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22357fi
cd9a469c 22358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22359/* end confdefs.h. */
22360
7d9455ce 22361#ifdef HAVE_COMPLEX_H
22362#include <complex.h>
22363#endif
22364#ifdef HAVE_MATH_H
22365#include <math.h>
d213114b 22366#endif
7d9455ce 22367
22368int (*ptr)() = (int (*)())csinhf;
22369
d213114b 22370int
22371main ()
22372{
d213114b 22373 return 0;
22374}
7d9455ce 22375
d213114b 22376_ACEOF
cd9a469c 22377if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22378 gcc_cv_math_func_csinhf=yes
d213114b 22379else
7d9455ce 22380 gcc_cv_math_func_csinhf=no
d213114b 22381fi
cd9a469c 22382rm -f core conftest.err conftest.$ac_objext \
22383 conftest$ac_exeext conftest.$ac_ext
d213114b 22384fi
7d9455ce 22385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22386$as_echo "$gcc_cv_math_func_csinhf" >&6; }
22387 if test $gcc_cv_math_func_csinhf = yes; then
bd647a17 22388
6affa8e1 22389cat >>confdefs.h <<_ACEOF
22390#define HAVE_CSINHF 1
22391_ACEOF
d213114b 22392
7d9455ce 22393 fi
d213114b 22394
d213114b 22395
7d9455ce 22396
22397
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22399$as_echo_n "checking for csinh... " >&6; }
f00f02a3 22400if ${gcc_cv_math_func_csinh+:} false; then :
cd9a469c 22401 $as_echo_n "(cached) " >&6
d213114b 22402else
7d9455ce 22403 if test x$gcc_no_link = xyes; then
f00f02a3 22404 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22405fi
cd9a469c 22406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22407/* end confdefs.h. */
22408
7d9455ce 22409#ifdef HAVE_COMPLEX_H
22410#include <complex.h>
d213114b 22411#endif
7d9455ce 22412#ifdef HAVE_MATH_H
22413#include <math.h>
22414#endif
22415
22416int (*ptr)() = (int (*)())csinh;
22417
d213114b 22418int
22419main ()
22420{
d213114b 22421 return 0;
22422}
7d9455ce 22423
d213114b 22424_ACEOF
cd9a469c 22425if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22426 gcc_cv_math_func_csinh=yes
d213114b 22427else
7d9455ce 22428 gcc_cv_math_func_csinh=no
d213114b 22429fi
cd9a469c 22430rm -f core conftest.err conftest.$ac_objext \
22431 conftest$ac_exeext conftest.$ac_ext
d213114b 22432fi
7d9455ce 22433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22434$as_echo "$gcc_cv_math_func_csinh" >&6; }
22435 if test $gcc_cv_math_func_csinh = yes; then
bd647a17 22436
6affa8e1 22437cat >>confdefs.h <<_ACEOF
22438#define HAVE_CSINH 1
22439_ACEOF
7d9455ce 22440
22441 fi
22442
d213114b 22443
d213114b 22444
d213114b 22445
7d9455ce 22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22447$as_echo_n "checking for csinhl... " >&6; }
f00f02a3 22448if ${gcc_cv_math_func_csinhl+:} false; then :
cd9a469c 22449 $as_echo_n "(cached) " >&6
d213114b 22450else
7d9455ce 22451 if test x$gcc_no_link = xyes; then
f00f02a3 22452 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22453fi
cd9a469c 22454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22455/* end confdefs.h. */
22456
7d9455ce 22457#ifdef HAVE_COMPLEX_H
22458#include <complex.h>
d213114b 22459#endif
7d9455ce 22460#ifdef HAVE_MATH_H
22461#include <math.h>
22462#endif
22463
22464int (*ptr)() = (int (*)())csinhl;
22465
d213114b 22466int
22467main ()
22468{
d213114b 22469 return 0;
22470}
7d9455ce 22471
d213114b 22472_ACEOF
cd9a469c 22473if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22474 gcc_cv_math_func_csinhl=yes
d213114b 22475else
7d9455ce 22476 gcc_cv_math_func_csinhl=no
d213114b 22477fi
cd9a469c 22478rm -f core conftest.err conftest.$ac_objext \
22479 conftest$ac_exeext conftest.$ac_ext
d213114b 22480fi
7d9455ce 22481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22482$as_echo "$gcc_cv_math_func_csinhl" >&6; }
22483 if test $gcc_cv_math_func_csinhl = yes; then
bd647a17 22484
6affa8e1 22485cat >>confdefs.h <<_ACEOF
22486#define HAVE_CSINHL 1
22487_ACEOF
7d9455ce 22488
22489 fi
d213114b 22490
d213114b 22491
d213114b 22492
7d9455ce 22493
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22495$as_echo_n "checking for sqrtf... " >&6; }
f00f02a3 22496if ${gcc_cv_math_func_sqrtf+:} false; then :
cd9a469c 22497 $as_echo_n "(cached) " >&6
d213114b 22498else
7d9455ce 22499 if test x$gcc_no_link = xyes; then
f00f02a3 22500 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22501fi
cd9a469c 22502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22503/* end confdefs.h. */
22504
7d9455ce 22505#ifdef HAVE_COMPLEX_H
22506#include <complex.h>
22507#endif
22508#ifdef HAVE_MATH_H
22509#include <math.h>
d213114b 22510#endif
7d9455ce 22511
22512int (*ptr)() = (int (*)())sqrtf;
22513
d213114b 22514int
22515main ()
22516{
d213114b 22517 return 0;
22518}
7d9455ce 22519
d213114b 22520_ACEOF
cd9a469c 22521if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22522 gcc_cv_math_func_sqrtf=yes
d213114b 22523else
7d9455ce 22524 gcc_cv_math_func_sqrtf=no
d213114b 22525fi
cd9a469c 22526rm -f core conftest.err conftest.$ac_objext \
22527 conftest$ac_exeext conftest.$ac_ext
d213114b 22528fi
7d9455ce 22529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22530$as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22531 if test $gcc_cv_math_func_sqrtf = yes; then
bd647a17 22532
6affa8e1 22533cat >>confdefs.h <<_ACEOF
22534#define HAVE_SQRTF 1
22535_ACEOF
7d9455ce 22536
22537 fi
d213114b 22538
d213114b 22539
7d9455ce 22540
22541
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22543$as_echo_n "checking for sqrt... " >&6; }
f00f02a3 22544if ${gcc_cv_math_func_sqrt+:} false; then :
7d9455ce 22545 $as_echo_n "(cached) " >&6
22546else
22547 if test x$gcc_no_link = xyes; then
f00f02a3 22548 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22549fi
7d9455ce 22550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22551/* end confdefs.h. */
22552
22553#ifdef HAVE_COMPLEX_H
22554#include <complex.h>
22555#endif
22556#ifdef HAVE_MATH_H
22557#include <math.h>
22558#endif
22559
22560int (*ptr)() = (int (*)())sqrt;
22561
22562int
22563main ()
22564{
22565 return 0;
22566}
22567
22568_ACEOF
22569if ac_fn_c_try_link "$LINENO"; then :
22570 gcc_cv_math_func_sqrt=yes
22571else
22572 gcc_cv_math_func_sqrt=no
22573fi
22574rm -f core conftest.err conftest.$ac_objext \
22575 conftest$ac_exeext conftest.$ac_ext
22576fi
22577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22578$as_echo "$gcc_cv_math_func_sqrt" >&6; }
22579 if test $gcc_cv_math_func_sqrt = yes; then
bd647a17 22580
6affa8e1 22581cat >>confdefs.h <<_ACEOF
22582#define HAVE_SQRT 1
22583_ACEOF
7d9455ce 22584
22585 fi
d213114b 22586
7d9455ce 22587
22588
22589
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22591$as_echo_n "checking for sqrtl... " >&6; }
f00f02a3 22592if ${gcc_cv_math_func_sqrtl+:} false; then :
cd9a469c 22593 $as_echo_n "(cached) " >&6
d213114b 22594else
7d9455ce 22595 if test x$gcc_no_link = xyes; then
f00f02a3 22596 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22597fi
cd9a469c 22598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22599/* end confdefs.h. */
22600
7d9455ce 22601#ifdef HAVE_COMPLEX_H
22602#include <complex.h>
22603#endif
22604#ifdef HAVE_MATH_H
22605#include <math.h>
d213114b 22606#endif
7d9455ce 22607
22608int (*ptr)() = (int (*)())sqrtl;
22609
d213114b 22610int
22611main ()
22612{
d213114b 22613 return 0;
22614}
7d9455ce 22615
d213114b 22616_ACEOF
cd9a469c 22617if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22618 gcc_cv_math_func_sqrtl=yes
d213114b 22619else
7d9455ce 22620 gcc_cv_math_func_sqrtl=no
d213114b 22621fi
cd9a469c 22622rm -f core conftest.err conftest.$ac_objext \
22623 conftest$ac_exeext conftest.$ac_ext
d213114b 22624fi
7d9455ce 22625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22626$as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22627 if test $gcc_cv_math_func_sqrtl = yes; then
bd647a17 22628
6affa8e1 22629cat >>confdefs.h <<_ACEOF
22630#define HAVE_SQRTL 1
22631_ACEOF
7d9455ce 22632
22633 fi
d213114b 22634
d213114b 22635
d213114b 22636
7d9455ce 22637
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22639$as_echo_n "checking for csqrtf... " >&6; }
f00f02a3 22640if ${gcc_cv_math_func_csqrtf+:} false; then :
cd9a469c 22641 $as_echo_n "(cached) " >&6
d213114b 22642else
7d9455ce 22643 if test x$gcc_no_link = xyes; then
f00f02a3 22644 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22645fi
cd9a469c 22646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22647/* end confdefs.h. */
22648
7d9455ce 22649#ifdef HAVE_COMPLEX_H
22650#include <complex.h>
d213114b 22651#endif
7d9455ce 22652#ifdef HAVE_MATH_H
22653#include <math.h>
22654#endif
22655
22656int (*ptr)() = (int (*)())csqrtf;
22657
d213114b 22658int
22659main ()
22660{
d213114b 22661 return 0;
22662}
7d9455ce 22663
d213114b 22664_ACEOF
cd9a469c 22665if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22666 gcc_cv_math_func_csqrtf=yes
d213114b 22667else
7d9455ce 22668 gcc_cv_math_func_csqrtf=no
d213114b 22669fi
cd9a469c 22670rm -f core conftest.err conftest.$ac_objext \
22671 conftest$ac_exeext conftest.$ac_ext
d213114b 22672fi
7d9455ce 22673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22674$as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22675 if test $gcc_cv_math_func_csqrtf = yes; then
bd647a17 22676
6affa8e1 22677cat >>confdefs.h <<_ACEOF
22678#define HAVE_CSQRTF 1
22679_ACEOF
d213114b 22680
7d9455ce 22681 fi
d213114b 22682
d213114b 22683
7d9455ce 22684
22685
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22687$as_echo_n "checking for csqrt... " >&6; }
f00f02a3 22688if ${gcc_cv_math_func_csqrt+:} false; then :
cd9a469c 22689 $as_echo_n "(cached) " >&6
d213114b 22690else
7d9455ce 22691 if test x$gcc_no_link = xyes; then
f00f02a3 22692 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22693fi
cd9a469c 22694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22695/* end confdefs.h. */
22696
7d9455ce 22697#ifdef HAVE_COMPLEX_H
22698#include <complex.h>
22699#endif
22700#ifdef HAVE_MATH_H
22701#include <math.h>
d213114b 22702#endif
7d9455ce 22703
22704int (*ptr)() = (int (*)())csqrt;
22705
d213114b 22706int
22707main ()
22708{
d213114b 22709 return 0;
22710}
7d9455ce 22711
d213114b 22712_ACEOF
cd9a469c 22713if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22714 gcc_cv_math_func_csqrt=yes
d213114b 22715else
7d9455ce 22716 gcc_cv_math_func_csqrt=no
d213114b 22717fi
cd9a469c 22718rm -f core conftest.err conftest.$ac_objext \
22719 conftest$ac_exeext conftest.$ac_ext
d213114b 22720fi
7d9455ce 22721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22722$as_echo "$gcc_cv_math_func_csqrt" >&6; }
22723 if test $gcc_cv_math_func_csqrt = yes; then
bd647a17 22724
6affa8e1 22725cat >>confdefs.h <<_ACEOF
22726#define HAVE_CSQRT 1
22727_ACEOF
7d9455ce 22728
22729 fi
d213114b 22730
d213114b 22731
d213114b 22732
7d9455ce 22733
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22735$as_echo_n "checking for csqrtl... " >&6; }
f00f02a3 22736if ${gcc_cv_math_func_csqrtl+:} false; then :
cd9a469c 22737 $as_echo_n "(cached) " >&6
d213114b 22738else
7d9455ce 22739 if test x$gcc_no_link = xyes; then
f00f02a3 22740 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22741fi
cd9a469c 22742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22743/* end confdefs.h. */
22744
7d9455ce 22745#ifdef HAVE_COMPLEX_H
22746#include <complex.h>
d213114b 22747#endif
7d9455ce 22748#ifdef HAVE_MATH_H
22749#include <math.h>
22750#endif
22751
22752int (*ptr)() = (int (*)())csqrtl;
22753
d213114b 22754int
22755main ()
22756{
d213114b 22757 return 0;
22758}
7d9455ce 22759
d213114b 22760_ACEOF
cd9a469c 22761if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22762 gcc_cv_math_func_csqrtl=yes
d213114b 22763else
7d9455ce 22764 gcc_cv_math_func_csqrtl=no
d213114b 22765fi
cd9a469c 22766rm -f core conftest.err conftest.$ac_objext \
22767 conftest$ac_exeext conftest.$ac_ext
d213114b 22768fi
7d9455ce 22769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22770$as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22771 if test $gcc_cv_math_func_csqrtl = yes; then
bd647a17 22772
6affa8e1 22773cat >>confdefs.h <<_ACEOF
22774#define HAVE_CSQRTL 1
22775_ACEOF
7d9455ce 22776
22777 fi
22778
d213114b 22779
d213114b 22780
d213114b 22781
7d9455ce 22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22783$as_echo_n "checking for tanf... " >&6; }
f00f02a3 22784if ${gcc_cv_math_func_tanf+:} false; then :
cd9a469c 22785 $as_echo_n "(cached) " >&6
d213114b 22786else
7d9455ce 22787 if test x$gcc_no_link = xyes; then
f00f02a3 22788 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22789fi
cd9a469c 22790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22791/* end confdefs.h. */
22792
7d9455ce 22793#ifdef HAVE_COMPLEX_H
22794#include <complex.h>
22795#endif
22796#ifdef HAVE_MATH_H
22797#include <math.h>
d213114b 22798#endif
7d9455ce 22799
22800int (*ptr)() = (int (*)())tanf;
22801
d213114b 22802int
22803main ()
22804{
d213114b 22805 return 0;
22806}
7d9455ce 22807
d213114b 22808_ACEOF
cd9a469c 22809if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22810 gcc_cv_math_func_tanf=yes
d213114b 22811else
7d9455ce 22812 gcc_cv_math_func_tanf=no
d213114b 22813fi
cd9a469c 22814rm -f core conftest.err conftest.$ac_objext \
22815 conftest$ac_exeext conftest.$ac_ext
d213114b 22816fi
7d9455ce 22817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22818$as_echo "$gcc_cv_math_func_tanf" >&6; }
22819 if test $gcc_cv_math_func_tanf = yes; then
bd647a17 22820
6affa8e1 22821cat >>confdefs.h <<_ACEOF
22822#define HAVE_TANF 1
22823_ACEOF
7d9455ce 22824
22825 fi
d213114b 22826
d213114b 22827
d213114b 22828
7d9455ce 22829
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22831$as_echo_n "checking for tan... " >&6; }
f00f02a3 22832if ${gcc_cv_math_func_tan+:} false; then :
cd9a469c 22833 $as_echo_n "(cached) " >&6
d213114b 22834else
7d9455ce 22835 if test x$gcc_no_link = xyes; then
f00f02a3 22836 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22837fi
cd9a469c 22838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22839/* end confdefs.h. */
22840
7d9455ce 22841#ifdef HAVE_COMPLEX_H
22842#include <complex.h>
d213114b 22843#endif
7d9455ce 22844#ifdef HAVE_MATH_H
22845#include <math.h>
22846#endif
22847
22848int (*ptr)() = (int (*)())tan;
22849
d213114b 22850int
22851main ()
22852{
d213114b 22853 return 0;
22854}
7d9455ce 22855
d213114b 22856_ACEOF
cd9a469c 22857if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22858 gcc_cv_math_func_tan=yes
d213114b 22859else
7d9455ce 22860 gcc_cv_math_func_tan=no
d213114b 22861fi
cd9a469c 22862rm -f core conftest.err conftest.$ac_objext \
22863 conftest$ac_exeext conftest.$ac_ext
d213114b 22864fi
7d9455ce 22865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22866$as_echo "$gcc_cv_math_func_tan" >&6; }
22867 if test $gcc_cv_math_func_tan = yes; then
bd647a17 22868
6affa8e1 22869cat >>confdefs.h <<_ACEOF
22870#define HAVE_TAN 1
22871_ACEOF
d213114b 22872
7d9455ce 22873 fi
d213114b 22874
d213114b 22875
7d9455ce 22876
22877
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22879$as_echo_n "checking for tanl... " >&6; }
f00f02a3 22880if ${gcc_cv_math_func_tanl+:} false; then :
cd9a469c 22881 $as_echo_n "(cached) " >&6
d213114b 22882else
7d9455ce 22883 if test x$gcc_no_link = xyes; then
f00f02a3 22884 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22885fi
cd9a469c 22886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22887/* end confdefs.h. */
22888
7d9455ce 22889#ifdef HAVE_COMPLEX_H
22890#include <complex.h>
22891#endif
22892#ifdef HAVE_MATH_H
22893#include <math.h>
d213114b 22894#endif
7d9455ce 22895
22896int (*ptr)() = (int (*)())tanl;
22897
d213114b 22898int
22899main ()
22900{
d213114b 22901 return 0;
22902}
7d9455ce 22903
d213114b 22904_ACEOF
cd9a469c 22905if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22906 gcc_cv_math_func_tanl=yes
d213114b 22907else
7d9455ce 22908 gcc_cv_math_func_tanl=no
d213114b 22909fi
cd9a469c 22910rm -f core conftest.err conftest.$ac_objext \
22911 conftest$ac_exeext conftest.$ac_ext
d213114b 22912fi
7d9455ce 22913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22914$as_echo "$gcc_cv_math_func_tanl" >&6; }
22915 if test $gcc_cv_math_func_tanl = yes; then
bd647a17 22916
6affa8e1 22917cat >>confdefs.h <<_ACEOF
22918#define HAVE_TANL 1
22919_ACEOF
7d9455ce 22920
22921 fi
d213114b 22922
d213114b 22923
d213114b 22924
7d9455ce 22925
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22927$as_echo_n "checking for ctanf... " >&6; }
f00f02a3 22928if ${gcc_cv_math_func_ctanf+:} false; then :
cd9a469c 22929 $as_echo_n "(cached) " >&6
d213114b 22930else
7d9455ce 22931 if test x$gcc_no_link = xyes; then
f00f02a3 22932 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22933fi
cd9a469c 22934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22935/* end confdefs.h. */
22936
7d9455ce 22937#ifdef HAVE_COMPLEX_H
22938#include <complex.h>
d213114b 22939#endif
7d9455ce 22940#ifdef HAVE_MATH_H
22941#include <math.h>
22942#endif
22943
22944int (*ptr)() = (int (*)())ctanf;
22945
d213114b 22946int
22947main ()
22948{
d213114b 22949 return 0;
22950}
7d9455ce 22951
d213114b 22952_ACEOF
cd9a469c 22953if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22954 gcc_cv_math_func_ctanf=yes
d213114b 22955else
7d9455ce 22956 gcc_cv_math_func_ctanf=no
d213114b 22957fi
cd9a469c 22958rm -f core conftest.err conftest.$ac_objext \
22959 conftest$ac_exeext conftest.$ac_ext
d213114b 22960fi
7d9455ce 22961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22962$as_echo "$gcc_cv_math_func_ctanf" >&6; }
22963 if test $gcc_cv_math_func_ctanf = yes; then
bd647a17 22964
6affa8e1 22965cat >>confdefs.h <<_ACEOF
22966#define HAVE_CTANF 1
22967_ACEOF
7d9455ce 22968
22969 fi
22970
d213114b 22971
d213114b 22972
d213114b 22973
7d9455ce 22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22975$as_echo_n "checking for ctan... " >&6; }
f00f02a3 22976if ${gcc_cv_math_func_ctan+:} false; then :
cd9a469c 22977 $as_echo_n "(cached) " >&6
d213114b 22978else
7d9455ce 22979 if test x$gcc_no_link = xyes; then
f00f02a3 22980 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22981fi
cd9a469c 22982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22983/* end confdefs.h. */
22984
7d9455ce 22985#ifdef HAVE_COMPLEX_H
22986#include <complex.h>
22987#endif
22988#ifdef HAVE_MATH_H
22989#include <math.h>
d213114b 22990#endif
7d9455ce 22991
22992int (*ptr)() = (int (*)())ctan;
22993
d213114b 22994int
22995main ()
22996{
d213114b 22997 return 0;
22998}
7d9455ce 22999
d213114b 23000_ACEOF
cd9a469c 23001if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23002 gcc_cv_math_func_ctan=yes
d213114b 23003else
7d9455ce 23004 gcc_cv_math_func_ctan=no
d213114b 23005fi
cd9a469c 23006rm -f core conftest.err conftest.$ac_objext \
23007 conftest$ac_exeext conftest.$ac_ext
d213114b 23008fi
7d9455ce 23009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
23010$as_echo "$gcc_cv_math_func_ctan" >&6; }
23011 if test $gcc_cv_math_func_ctan = yes; then
bd647a17 23012
6affa8e1 23013cat >>confdefs.h <<_ACEOF
23014#define HAVE_CTAN 1
23015_ACEOF
7d9455ce 23016
23017 fi
d213114b 23018
d213114b 23019
d213114b 23020
7d9455ce 23021
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
23023$as_echo_n "checking for ctanl... " >&6; }
f00f02a3 23024if ${gcc_cv_math_func_ctanl+:} false; then :
cd9a469c 23025 $as_echo_n "(cached) " >&6
d213114b 23026else
7d9455ce 23027 if test x$gcc_no_link = xyes; then
f00f02a3 23028 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23029fi
cd9a469c 23030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23031/* end confdefs.h. */
23032
7d9455ce 23033#ifdef HAVE_COMPLEX_H
23034#include <complex.h>
d213114b 23035#endif
7d9455ce 23036#ifdef HAVE_MATH_H
23037#include <math.h>
23038#endif
23039
23040int (*ptr)() = (int (*)())ctanl;
23041
d213114b 23042int
23043main ()
23044{
d213114b 23045 return 0;
23046}
7d9455ce 23047
d213114b 23048_ACEOF
cd9a469c 23049if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23050 gcc_cv_math_func_ctanl=yes
d213114b 23051else
7d9455ce 23052 gcc_cv_math_func_ctanl=no
d213114b 23053fi
cd9a469c 23054rm -f core conftest.err conftest.$ac_objext \
23055 conftest$ac_exeext conftest.$ac_ext
d213114b 23056fi
7d9455ce 23057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
23058$as_echo "$gcc_cv_math_func_ctanl" >&6; }
23059 if test $gcc_cv_math_func_ctanl = yes; then
bd647a17 23060
6affa8e1 23061cat >>confdefs.h <<_ACEOF
23062#define HAVE_CTANL 1
23063_ACEOF
d213114b 23064
7d9455ce 23065 fi
d213114b 23066
d213114b 23067
7d9455ce 23068
23069
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
23071$as_echo_n "checking for tanhf... " >&6; }
f00f02a3 23072if ${gcc_cv_math_func_tanhf+:} false; then :
cd9a469c 23073 $as_echo_n "(cached) " >&6
d213114b 23074else
7d9455ce 23075 if test x$gcc_no_link = xyes; then
f00f02a3 23076 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23077fi
cd9a469c 23078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23079/* end confdefs.h. */
23080
7d9455ce 23081#ifdef HAVE_COMPLEX_H
23082#include <complex.h>
23083#endif
23084#ifdef HAVE_MATH_H
23085#include <math.h>
d213114b 23086#endif
7d9455ce 23087
23088int (*ptr)() = (int (*)())tanhf;
23089
d213114b 23090int
23091main ()
23092{
d213114b 23093 return 0;
23094}
7d9455ce 23095
d213114b 23096_ACEOF
cd9a469c 23097if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23098 gcc_cv_math_func_tanhf=yes
d213114b 23099else
7d9455ce 23100 gcc_cv_math_func_tanhf=no
d213114b 23101fi
cd9a469c 23102rm -f core conftest.err conftest.$ac_objext \
23103 conftest$ac_exeext conftest.$ac_ext
d213114b 23104fi
7d9455ce 23105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
23106$as_echo "$gcc_cv_math_func_tanhf" >&6; }
23107 if test $gcc_cv_math_func_tanhf = yes; then
bd647a17 23108
6affa8e1 23109cat >>confdefs.h <<_ACEOF
23110#define HAVE_TANHF 1
23111_ACEOF
7d9455ce 23112
23113 fi
d213114b 23114
d213114b 23115
d213114b 23116
7d9455ce 23117
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
23119$as_echo_n "checking for tanh... " >&6; }
f00f02a3 23120if ${gcc_cv_math_func_tanh+:} false; then :
cd9a469c 23121 $as_echo_n "(cached) " >&6
d213114b 23122else
7d9455ce 23123 if test x$gcc_no_link = xyes; then
f00f02a3 23124 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23125fi
cd9a469c 23126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23127/* end confdefs.h. */
23128
7d9455ce 23129#ifdef HAVE_COMPLEX_H
23130#include <complex.h>
d213114b 23131#endif
7d9455ce 23132#ifdef HAVE_MATH_H
23133#include <math.h>
23134#endif
23135
23136int (*ptr)() = (int (*)())tanh;
23137
d213114b 23138int
23139main ()
23140{
d213114b 23141 return 0;
23142}
7d9455ce 23143
d213114b 23144_ACEOF
cd9a469c 23145if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23146 gcc_cv_math_func_tanh=yes
d213114b 23147else
7d9455ce 23148 gcc_cv_math_func_tanh=no
d213114b 23149fi
cd9a469c 23150rm -f core conftest.err conftest.$ac_objext \
23151 conftest$ac_exeext conftest.$ac_ext
d213114b 23152fi
7d9455ce 23153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
23154$as_echo "$gcc_cv_math_func_tanh" >&6; }
23155 if test $gcc_cv_math_func_tanh = yes; then
bd647a17 23156
6affa8e1 23157cat >>confdefs.h <<_ACEOF
23158#define HAVE_TANH 1
23159_ACEOF
7d9455ce 23160
23161 fi
23162
d213114b 23163
d213114b 23164
d213114b 23165
7d9455ce 23166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
23167$as_echo_n "checking for tanhl... " >&6; }
f00f02a3 23168if ${gcc_cv_math_func_tanhl+:} false; then :
cd9a469c 23169 $as_echo_n "(cached) " >&6
d213114b 23170else
7d9455ce 23171 if test x$gcc_no_link = xyes; then
f00f02a3 23172 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23173fi
cd9a469c 23174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23175/* end confdefs.h. */
23176
7d9455ce 23177#ifdef HAVE_COMPLEX_H
23178#include <complex.h>
23179#endif
23180#ifdef HAVE_MATH_H
23181#include <math.h>
d213114b 23182#endif
7d9455ce 23183
23184int (*ptr)() = (int (*)())tanhl;
23185
d213114b 23186int
23187main ()
23188{
d213114b 23189 return 0;
23190}
7d9455ce 23191
d213114b 23192_ACEOF
cd9a469c 23193if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23194 gcc_cv_math_func_tanhl=yes
d213114b 23195else
7d9455ce 23196 gcc_cv_math_func_tanhl=no
d213114b 23197fi
cd9a469c 23198rm -f core conftest.err conftest.$ac_objext \
23199 conftest$ac_exeext conftest.$ac_ext
d213114b 23200fi
7d9455ce 23201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23202$as_echo "$gcc_cv_math_func_tanhl" >&6; }
23203 if test $gcc_cv_math_func_tanhl = yes; then
bd647a17 23204
6affa8e1 23205cat >>confdefs.h <<_ACEOF
23206#define HAVE_TANHL 1
23207_ACEOF
7d9455ce 23208
23209 fi
d213114b 23210
d213114b 23211
d213114b 23212
7d9455ce 23213
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23215$as_echo_n "checking for ctanhf... " >&6; }
f00f02a3 23216if ${gcc_cv_math_func_ctanhf+:} false; then :
cd9a469c 23217 $as_echo_n "(cached) " >&6
d213114b 23218else
7d9455ce 23219 if test x$gcc_no_link = xyes; then
f00f02a3 23220 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7d9455ce 23221fi
23222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223/* end confdefs.h. */
23224
23225#ifdef HAVE_COMPLEX_H
23226#include <complex.h>
d213114b 23227#endif
7d9455ce 23228#ifdef HAVE_MATH_H
23229#include <math.h>
23230#endif
23231
23232int (*ptr)() = (int (*)())ctanhf;
23233
d213114b 23234int
23235main ()
23236{
d213114b 23237 return 0;
23238}
7d9455ce 23239
d213114b 23240_ACEOF
cd9a469c 23241if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23242 gcc_cv_math_func_ctanhf=yes
d213114b 23243else
7d9455ce 23244 gcc_cv_math_func_ctanhf=no
d213114b 23245fi
cd9a469c 23246rm -f core conftest.err conftest.$ac_objext \
23247 conftest$ac_exeext conftest.$ac_ext
d213114b 23248fi
7d9455ce 23249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23250$as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23251 if test $gcc_cv_math_func_ctanhf = yes; then
bd647a17 23252
6affa8e1 23253cat >>confdefs.h <<_ACEOF
23254#define HAVE_CTANHF 1
23255_ACEOF
d213114b 23256
7d9455ce 23257 fi
d213114b 23258
d213114b 23259
7d9455ce 23260
23261
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23263$as_echo_n "checking for ctanh... " >&6; }
f00f02a3 23264if ${gcc_cv_math_func_ctanh+:} false; then :
cd9a469c 23265 $as_echo_n "(cached) " >&6
d213114b 23266else
7d9455ce 23267 if test x$gcc_no_link = xyes; then
f00f02a3 23268 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23269fi
cd9a469c 23270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23271/* end confdefs.h. */
23272
7d9455ce 23273#ifdef HAVE_COMPLEX_H
23274#include <complex.h>
23275#endif
23276#ifdef HAVE_MATH_H
23277#include <math.h>
d213114b 23278#endif
7d9455ce 23279
23280int (*ptr)() = (int (*)())ctanh;
23281
d213114b 23282int
23283main ()
23284{
cd9a469c 23285 return 0;
23286}
7d9455ce 23287
cd9a469c 23288_ACEOF
23289if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23290 gcc_cv_math_func_ctanh=yes
d213114b 23291else
7d9455ce 23292 gcc_cv_math_func_ctanh=no
d213114b 23293fi
cd9a469c 23294rm -f core conftest.err conftest.$ac_objext \
23295 conftest$ac_exeext conftest.$ac_ext
d213114b 23296fi
7d9455ce 23297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23298$as_echo "$gcc_cv_math_func_ctanh" >&6; }
23299 if test $gcc_cv_math_func_ctanh = yes; then
bd647a17 23300
6affa8e1 23301cat >>confdefs.h <<_ACEOF
23302#define HAVE_CTANH 1
23303_ACEOF
7d9455ce 23304
23305 fi
d213114b 23306
d213114b 23307
d213114b 23308
7d9455ce 23309
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23311$as_echo_n "checking for ctanhl... " >&6; }
f00f02a3 23312if ${gcc_cv_math_func_ctanhl+:} false; then :
cd9a469c 23313 $as_echo_n "(cached) " >&6
d213114b 23314else
7d9455ce 23315 if test x$gcc_no_link = xyes; then
f00f02a3 23316 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23317fi
cd9a469c 23318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23319/* end confdefs.h. */
23320
7d9455ce 23321#ifdef HAVE_COMPLEX_H
23322#include <complex.h>
d213114b 23323#endif
7d9455ce 23324#ifdef HAVE_MATH_H
23325#include <math.h>
23326#endif
23327
23328int (*ptr)() = (int (*)())ctanhl;
23329
d213114b 23330int
23331main ()
23332{
d213114b 23333 return 0;
23334}
7d9455ce 23335
d213114b 23336_ACEOF
cd9a469c 23337if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23338 gcc_cv_math_func_ctanhl=yes
d213114b 23339else
7d9455ce 23340 gcc_cv_math_func_ctanhl=no
d213114b 23341fi
cd9a469c 23342rm -f core conftest.err conftest.$ac_objext \
23343 conftest$ac_exeext conftest.$ac_ext
d213114b 23344fi
7d9455ce 23345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23346$as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23347 if test $gcc_cv_math_func_ctanhl = yes; then
bd647a17 23348
6affa8e1 23349cat >>confdefs.h <<_ACEOF
23350#define HAVE_CTANHL 1
23351_ACEOF
7d9455ce 23352
23353 fi
23354
d213114b 23355
50f0ca0a 23356
50f0ca0a 23357
7d9455ce 23358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23359$as_echo_n "checking for truncf... " >&6; }
f00f02a3 23360if ${gcc_cv_math_func_truncf+:} false; then :
cd9a469c 23361 $as_echo_n "(cached) " >&6
50f0ca0a 23362else
7d9455ce 23363 if test x$gcc_no_link = xyes; then
f00f02a3 23364 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23365fi
cd9a469c 23366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50f0ca0a 23367/* end confdefs.h. */
23368
7d9455ce 23369#ifdef HAVE_COMPLEX_H
23370#include <complex.h>
23371#endif
23372#ifdef HAVE_MATH_H
23373#include <math.h>
50f0ca0a 23374#endif
7d9455ce 23375
23376int (*ptr)() = (int (*)())truncf;
23377
d213114b 23378int
23379main ()
23380{
d213114b 23381 return 0;
23382}
7d9455ce 23383
d213114b 23384_ACEOF
cd9a469c 23385if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23386 gcc_cv_math_func_truncf=yes
d213114b 23387else
7d9455ce 23388 gcc_cv_math_func_truncf=no
d213114b 23389fi
cd9a469c 23390rm -f core conftest.err conftest.$ac_objext \
23391 conftest$ac_exeext conftest.$ac_ext
d213114b 23392fi
7d9455ce 23393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23394$as_echo "$gcc_cv_math_func_truncf" >&6; }
23395 if test $gcc_cv_math_func_truncf = yes; then
bd647a17 23396
6affa8e1 23397cat >>confdefs.h <<_ACEOF
23398#define HAVE_TRUNCF 1
23399_ACEOF
7d9455ce 23400
23401 fi
d213114b 23402
d213114b 23403
d213114b 23404
7d9455ce 23405
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23407$as_echo_n "checking for trunc... " >&6; }
f00f02a3 23408if ${gcc_cv_math_func_trunc+:} false; then :
cd9a469c 23409 $as_echo_n "(cached) " >&6
d213114b 23410else
7d9455ce 23411 if test x$gcc_no_link = xyes; then
f00f02a3 23412 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23413fi
cd9a469c 23414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23415/* end confdefs.h. */
23416
7d9455ce 23417#ifdef HAVE_COMPLEX_H
23418#include <complex.h>
d213114b 23419#endif
7d9455ce 23420#ifdef HAVE_MATH_H
23421#include <math.h>
23422#endif
23423
23424int (*ptr)() = (int (*)())trunc;
23425
d213114b 23426int
23427main ()
23428{
d213114b 23429 return 0;
23430}
7d9455ce 23431
d213114b 23432_ACEOF
cd9a469c 23433if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23434 gcc_cv_math_func_trunc=yes
d213114b 23435else
7d9455ce 23436 gcc_cv_math_func_trunc=no
d213114b 23437fi
cd9a469c 23438rm -f core conftest.err conftest.$ac_objext \
23439 conftest$ac_exeext conftest.$ac_ext
d213114b 23440fi
7d9455ce 23441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23442$as_echo "$gcc_cv_math_func_trunc" >&6; }
23443 if test $gcc_cv_math_func_trunc = yes; then
bd647a17 23444
6affa8e1 23445cat >>confdefs.h <<_ACEOF
23446#define HAVE_TRUNC 1
23447_ACEOF
d213114b 23448
7d9455ce 23449 fi
d213114b 23450
d213114b 23451
7d9455ce 23452
23453
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23455$as_echo_n "checking for truncl... " >&6; }
f00f02a3 23456if ${gcc_cv_math_func_truncl+:} false; then :
cd9a469c 23457 $as_echo_n "(cached) " >&6
d213114b 23458else
7d9455ce 23459 if test x$gcc_no_link = xyes; then
f00f02a3 23460 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23461fi
cd9a469c 23462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23463/* end confdefs.h. */
23464
7d9455ce 23465#ifdef HAVE_COMPLEX_H
23466#include <complex.h>
23467#endif
23468#ifdef HAVE_MATH_H
23469#include <math.h>
d213114b 23470#endif
7d9455ce 23471
23472int (*ptr)() = (int (*)())truncl;
23473
d213114b 23474int
23475main ()
23476{
d213114b 23477 return 0;
23478}
7d9455ce 23479
d213114b 23480_ACEOF
cd9a469c 23481if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23482 gcc_cv_math_func_truncl=yes
d213114b 23483else
7d9455ce 23484 gcc_cv_math_func_truncl=no
d213114b 23485fi
cd9a469c 23486rm -f core conftest.err conftest.$ac_objext \
23487 conftest$ac_exeext conftest.$ac_ext
d213114b 23488fi
7d9455ce 23489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23490$as_echo "$gcc_cv_math_func_truncl" >&6; }
23491 if test $gcc_cv_math_func_truncl = yes; then
bd647a17 23492
6affa8e1 23493cat >>confdefs.h <<_ACEOF
23494#define HAVE_TRUNCL 1
23495_ACEOF
7d9455ce 23496
23497 fi
d213114b 23498
d213114b 23499
d213114b 23500
7d9455ce 23501
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23503$as_echo_n "checking for erff... " >&6; }
f00f02a3 23504if ${gcc_cv_math_func_erff+:} false; then :
cd9a469c 23505 $as_echo_n "(cached) " >&6
d213114b 23506else
7d9455ce 23507 if test x$gcc_no_link = xyes; then
f00f02a3 23508 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23509fi
cd9a469c 23510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23511/* end confdefs.h. */
23512
7d9455ce 23513#ifdef HAVE_COMPLEX_H
23514#include <complex.h>
d213114b 23515#endif
7d9455ce 23516#ifdef HAVE_MATH_H
23517#include <math.h>
23518#endif
23519
23520int (*ptr)() = (int (*)())erff;
23521
d213114b 23522int
23523main ()
23524{
d213114b 23525 return 0;
23526}
7d9455ce 23527
d213114b 23528_ACEOF
cd9a469c 23529if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23530 gcc_cv_math_func_erff=yes
d213114b 23531else
7d9455ce 23532 gcc_cv_math_func_erff=no
d213114b 23533fi
cd9a469c 23534rm -f core conftest.err conftest.$ac_objext \
23535 conftest$ac_exeext conftest.$ac_ext
d213114b 23536fi
7d9455ce 23537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23538$as_echo "$gcc_cv_math_func_erff" >&6; }
23539 if test $gcc_cv_math_func_erff = yes; then
bd647a17 23540
6affa8e1 23541cat >>confdefs.h <<_ACEOF
23542#define HAVE_ERFF 1
23543_ACEOF
7d9455ce 23544
23545 fi
23546
d213114b 23547
d213114b 23548
d213114b 23549
7d9455ce 23550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23551$as_echo_n "checking for erf... " >&6; }
f00f02a3 23552if ${gcc_cv_math_func_erf+:} false; then :
cd9a469c 23553 $as_echo_n "(cached) " >&6
d213114b 23554else
7d9455ce 23555 if test x$gcc_no_link = xyes; then
f00f02a3 23556 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23557fi
cd9a469c 23558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23559/* end confdefs.h. */
23560
7d9455ce 23561#ifdef HAVE_COMPLEX_H
23562#include <complex.h>
23563#endif
23564#ifdef HAVE_MATH_H
23565#include <math.h>
d213114b 23566#endif
7d9455ce 23567
23568int (*ptr)() = (int (*)())erf;
23569
d213114b 23570int
23571main ()
23572{
d213114b 23573 return 0;
23574}
7d9455ce 23575
d213114b 23576_ACEOF
cd9a469c 23577if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23578 gcc_cv_math_func_erf=yes
d213114b 23579else
7d9455ce 23580 gcc_cv_math_func_erf=no
d213114b 23581fi
cd9a469c 23582rm -f core conftest.err conftest.$ac_objext \
23583 conftest$ac_exeext conftest.$ac_ext
d213114b 23584fi
7d9455ce 23585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23586$as_echo "$gcc_cv_math_func_erf" >&6; }
23587 if test $gcc_cv_math_func_erf = yes; then
bd647a17 23588
6affa8e1 23589cat >>confdefs.h <<_ACEOF
23590#define HAVE_ERF 1
23591_ACEOF
7d9455ce 23592
23593 fi
d213114b 23594
d213114b 23595
d213114b 23596
7d9455ce 23597
7d9455ce 23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23599$as_echo_n "checking for erfcf... " >&6; }
f00f02a3 23600if ${gcc_cv_math_func_erfcf+:} false; then :
cd9a469c 23601 $as_echo_n "(cached) " >&6
d213114b 23602else
7d9455ce 23603 if test x$gcc_no_link = xyes; then
f00f02a3 23604 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23605fi
cd9a469c 23606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23607/* end confdefs.h. */
23608
7d9455ce 23609#ifdef HAVE_COMPLEX_H
23610#include <complex.h>
23611#endif
23612#ifdef HAVE_MATH_H
23613#include <math.h>
d213114b 23614#endif
7d9455ce 23615
23616int (*ptr)() = (int (*)())erfcf;
23617
d213114b 23618int
23619main ()
23620{
d213114b 23621 return 0;
23622}
7d9455ce 23623
d213114b 23624_ACEOF
cd9a469c 23625if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23626 gcc_cv_math_func_erfcf=yes
d213114b 23627else
7d9455ce 23628 gcc_cv_math_func_erfcf=no
d213114b 23629fi
cd9a469c 23630rm -f core conftest.err conftest.$ac_objext \
23631 conftest$ac_exeext conftest.$ac_ext
d213114b 23632fi
7d9455ce 23633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23634$as_echo "$gcc_cv_math_func_erfcf" >&6; }
23635 if test $gcc_cv_math_func_erfcf = yes; then
bd647a17 23636
6affa8e1 23637cat >>confdefs.h <<_ACEOF
23638#define HAVE_ERFCF 1
23639_ACEOF
7d9455ce 23640
23641 fi
d213114b 23642
d213114b 23643
d213114b 23644
7d9455ce 23645
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23647$as_echo_n "checking for erfc... " >&6; }
f00f02a3 23648if ${gcc_cv_math_func_erfc+:} false; then :
cd9a469c 23649 $as_echo_n "(cached) " >&6
d213114b 23650else
7d9455ce 23651 if test x$gcc_no_link = xyes; then
f00f02a3 23652 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23653fi
cd9a469c 23654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23655/* end confdefs.h. */
23656
7d9455ce 23657#ifdef HAVE_COMPLEX_H
23658#include <complex.h>
d213114b 23659#endif
7d9455ce 23660#ifdef HAVE_MATH_H
23661#include <math.h>
23662#endif
23663
23664int (*ptr)() = (int (*)())erfc;
23665
50f0ca0a 23666int
23667main ()
23668{
50f0ca0a 23669 return 0;
23670}
7d9455ce 23671
50f0ca0a 23672_ACEOF
cd9a469c 23673if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23674 gcc_cv_math_func_erfc=yes
50f0ca0a 23675else
7d9455ce 23676 gcc_cv_math_func_erfc=no
50f0ca0a 23677fi
cd9a469c 23678rm -f core conftest.err conftest.$ac_objext \
23679 conftest$ac_exeext conftest.$ac_ext
50f0ca0a 23680fi
7d9455ce 23681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23682$as_echo "$gcc_cv_math_func_erfc" >&6; }
23683 if test $gcc_cv_math_func_erfc = yes; then
bd647a17 23684
6affa8e1 23685cat >>confdefs.h <<_ACEOF
23686#define HAVE_ERFC 1
23687_ACEOF
7d9455ce 23688
23689 fi
23690
50f0ca0a 23691
50f0ca0a 23692
50f0ca0a 23693
7d9455ce 23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23695$as_echo_n "checking for erfcl... " >&6; }
f00f02a3 23696if ${gcc_cv_math_func_erfcl+:} false; then :
cd9a469c 23697 $as_echo_n "(cached) " >&6
158e0e64 23698else
7d9455ce 23699 if test x$gcc_no_link = xyes; then
f00f02a3 23700 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23701fi
cd9a469c 23702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23703/* end confdefs.h. */
23704
7d9455ce 23705#ifdef HAVE_COMPLEX_H
23706#include <complex.h>
23707#endif
23708#ifdef HAVE_MATH_H
23709#include <math.h>
158e0e64 23710#endif
7d9455ce 23711
23712int (*ptr)() = (int (*)())erfcl;
23713
158e0e64 23714int
23715main ()
23716{
158e0e64 23717 return 0;
23718}
7d9455ce 23719
158e0e64 23720_ACEOF
cd9a469c 23721if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23722 gcc_cv_math_func_erfcl=yes
158e0e64 23723else
7d9455ce 23724 gcc_cv_math_func_erfcl=no
158e0e64 23725fi
cd9a469c 23726rm -f core conftest.err conftest.$ac_objext \
23727 conftest$ac_exeext conftest.$ac_ext
158e0e64 23728fi
7d9455ce 23729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23730$as_echo "$gcc_cv_math_func_erfcl" >&6; }
23731 if test $gcc_cv_math_func_erfcl = yes; then
bd647a17 23732
6affa8e1 23733cat >>confdefs.h <<_ACEOF
23734#define HAVE_ERFCL 1
23735_ACEOF
7d9455ce 23736
23737 fi
158e0e64 23738
158e0e64 23739
158e0e64 23740
7d9455ce 23741
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23743$as_echo_n "checking for j0f... " >&6; }
f00f02a3 23744if ${gcc_cv_math_func_j0f+:} false; then :
cd9a469c 23745 $as_echo_n "(cached) " >&6
158e0e64 23746else
7d9455ce 23747 if test x$gcc_no_link = xyes; then
f00f02a3 23748 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23749fi
cd9a469c 23750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23751/* end confdefs.h. */
23752
7d9455ce 23753#ifdef HAVE_COMPLEX_H
23754#include <complex.h>
158e0e64 23755#endif
7d9455ce 23756#ifdef HAVE_MATH_H
23757#include <math.h>
23758#endif
23759
23760int (*ptr)() = (int (*)())j0f;
23761
158e0e64 23762int
23763main ()
23764{
158e0e64 23765 return 0;
23766}
7d9455ce 23767
158e0e64 23768_ACEOF
cd9a469c 23769if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23770 gcc_cv_math_func_j0f=yes
158e0e64 23771else
7d9455ce 23772 gcc_cv_math_func_j0f=no
d213114b 23773fi
cd9a469c 23774rm -f core conftest.err conftest.$ac_objext \
23775 conftest$ac_exeext conftest.$ac_ext
d213114b 23776fi
7d9455ce 23777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23778$as_echo "$gcc_cv_math_func_j0f" >&6; }
23779 if test $gcc_cv_math_func_j0f = yes; then
bd647a17 23780
6affa8e1 23781cat >>confdefs.h <<_ACEOF
23782#define HAVE_J0F 1
23783_ACEOF
d213114b 23784
7d9455ce 23785 fi
d213114b 23786
d213114b 23787
7d9455ce 23788
23789
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23791$as_echo_n "checking for j0... " >&6; }
f00f02a3 23792if ${gcc_cv_math_func_j0+:} false; then :
cd9a469c 23793 $as_echo_n "(cached) " >&6
d213114b 23794else
7d9455ce 23795 if test x$gcc_no_link = xyes; then
f00f02a3 23796 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23797fi
cd9a469c 23798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23799/* end confdefs.h. */
23800
7d9455ce 23801#ifdef HAVE_COMPLEX_H
23802#include <complex.h>
23803#endif
23804#ifdef HAVE_MATH_H
23805#include <math.h>
d213114b 23806#endif
7d9455ce 23807
23808int (*ptr)() = (int (*)())j0;
23809
d213114b 23810int
23811main ()
23812{
d213114b 23813 return 0;
23814}
7d9455ce 23815
d213114b 23816_ACEOF
cd9a469c 23817if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23818 gcc_cv_math_func_j0=yes
d213114b 23819else
7d9455ce 23820 gcc_cv_math_func_j0=no
d213114b 23821fi
cd9a469c 23822rm -f core conftest.err conftest.$ac_objext \
23823 conftest$ac_exeext conftest.$ac_ext
d213114b 23824fi
7d9455ce 23825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23826$as_echo "$gcc_cv_math_func_j0" >&6; }
23827 if test $gcc_cv_math_func_j0 = yes; then
bd647a17 23828
6affa8e1 23829cat >>confdefs.h <<_ACEOF
23830#define HAVE_J0 1
23831_ACEOF
7d9455ce 23832
23833 fi
d213114b 23834
d213114b 23835
d213114b 23836
7d9455ce 23837
7d9455ce 23838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23839$as_echo_n "checking for j1f... " >&6; }
f00f02a3 23840if ${gcc_cv_math_func_j1f+:} false; then :
cd9a469c 23841 $as_echo_n "(cached) " >&6
d213114b 23842else
7d9455ce 23843 if test x$gcc_no_link = xyes; then
f00f02a3 23844 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23845fi
cd9a469c 23846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23847/* end confdefs.h. */
23848
7d9455ce 23849#ifdef HAVE_COMPLEX_H
23850#include <complex.h>
23851#endif
23852#ifdef HAVE_MATH_H
23853#include <math.h>
d213114b 23854#endif
7d9455ce 23855
23856int (*ptr)() = (int (*)())j1f;
23857
d213114b 23858int
23859main ()
23860{
d213114b 23861 return 0;
23862}
7d9455ce 23863
d213114b 23864_ACEOF
cd9a469c 23865if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23866 gcc_cv_math_func_j1f=yes
d213114b 23867else
7d9455ce 23868 gcc_cv_math_func_j1f=no
158e0e64 23869fi
cd9a469c 23870rm -f core conftest.err conftest.$ac_objext \
23871 conftest$ac_exeext conftest.$ac_ext
158e0e64 23872fi
7d9455ce 23873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23874$as_echo "$gcc_cv_math_func_j1f" >&6; }
23875 if test $gcc_cv_math_func_j1f = yes; then
bd647a17 23876
6affa8e1 23877cat >>confdefs.h <<_ACEOF
23878#define HAVE_J1F 1
23879_ACEOF
7d9455ce 23880
23881 fi
158e0e64 23882
158e0e64 23883
158e0e64 23884
7d9455ce 23885
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23887$as_echo_n "checking for j1... " >&6; }
f00f02a3 23888if ${gcc_cv_math_func_j1+:} false; then :
cd9a469c 23889 $as_echo_n "(cached) " >&6
158e0e64 23890else
7d9455ce 23891 if test x$gcc_no_link = xyes; then
f00f02a3 23892 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23893fi
cd9a469c 23894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23895/* end confdefs.h. */
23896
7d9455ce 23897#ifdef HAVE_COMPLEX_H
23898#include <complex.h>
158e0e64 23899#endif
7d9455ce 23900#ifdef HAVE_MATH_H
23901#include <math.h>
23902#endif
23903
23904int (*ptr)() = (int (*)())j1;
23905
158e0e64 23906int
23907main ()
23908{
158e0e64 23909 return 0;
23910}
7d9455ce 23911
158e0e64 23912_ACEOF
cd9a469c 23913if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23914 gcc_cv_math_func_j1=yes
158e0e64 23915else
7d9455ce 23916 gcc_cv_math_func_j1=no
158e0e64 23917fi
cd9a469c 23918rm -f core conftest.err conftest.$ac_objext \
23919 conftest$ac_exeext conftest.$ac_ext
158e0e64 23920fi
7d9455ce 23921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23922$as_echo "$gcc_cv_math_func_j1" >&6; }
23923 if test $gcc_cv_math_func_j1 = yes; then
bd647a17 23924
6affa8e1 23925cat >>confdefs.h <<_ACEOF
23926#define HAVE_J1 1
23927_ACEOF
158e0e64 23928
7d9455ce 23929 fi
158e0e64 23930
158e0e64 23931
7d9455ce 23932
23933
7d9455ce 23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23935$as_echo_n "checking for jnf... " >&6; }
f00f02a3 23936if ${gcc_cv_math_func_jnf+:} false; then :
cd9a469c 23937 $as_echo_n "(cached) " >&6
158e0e64 23938else
7d9455ce 23939 if test x$gcc_no_link = xyes; then
f00f02a3 23940 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23941fi
cd9a469c 23942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23943/* end confdefs.h. */
23944
7d9455ce 23945#ifdef HAVE_COMPLEX_H
23946#include <complex.h>
158e0e64 23947#endif
7d9455ce 23948#ifdef HAVE_MATH_H
23949#include <math.h>
23950#endif
23951
23952int (*ptr)() = (int (*)())jnf;
23953
158e0e64 23954int
23955main ()
23956{
158e0e64 23957 return 0;
23958}
7d9455ce 23959
158e0e64 23960_ACEOF
cd9a469c 23961if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23962 gcc_cv_math_func_jnf=yes
158e0e64 23963else
7d9455ce 23964 gcc_cv_math_func_jnf=no
158e0e64 23965fi
cd9a469c 23966rm -f core conftest.err conftest.$ac_objext \
23967 conftest$ac_exeext conftest.$ac_ext
158e0e64 23968fi
7d9455ce 23969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23970$as_echo "$gcc_cv_math_func_jnf" >&6; }
23971 if test $gcc_cv_math_func_jnf = yes; then
bd647a17 23972
6affa8e1 23973cat >>confdefs.h <<_ACEOF
23974#define HAVE_JNF 1
23975_ACEOF
7d9455ce 23976
23977 fi
23978
158e0e64 23979
158e0e64 23980
158e0e64 23981
7d9455ce 23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23983$as_echo_n "checking for jn... " >&6; }
f00f02a3 23984if ${gcc_cv_math_func_jn+:} false; then :
cd9a469c 23985 $as_echo_n "(cached) " >&6
158e0e64 23986else
7d9455ce 23987 if test x$gcc_no_link = xyes; then
f00f02a3 23988 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23989fi
cd9a469c 23990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23991/* end confdefs.h. */
23992
7d9455ce 23993#ifdef HAVE_COMPLEX_H
23994#include <complex.h>
23995#endif
23996#ifdef HAVE_MATH_H
23997#include <math.h>
158e0e64 23998#endif
7d9455ce 23999
24000int (*ptr)() = (int (*)())jn;
24001
158e0e64 24002int
24003main ()
24004{
158e0e64 24005 return 0;
24006}
7d9455ce 24007
158e0e64 24008_ACEOF
cd9a469c 24009if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24010 gcc_cv_math_func_jn=yes
158e0e64 24011else
7d9455ce 24012 gcc_cv_math_func_jn=no
158e0e64 24013fi
cd9a469c 24014rm -f core conftest.err conftest.$ac_objext \
24015 conftest$ac_exeext conftest.$ac_ext
158e0e64 24016fi
7d9455ce 24017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
24018$as_echo "$gcc_cv_math_func_jn" >&6; }
24019 if test $gcc_cv_math_func_jn = yes; then
bd647a17 24020
6affa8e1 24021cat >>confdefs.h <<_ACEOF
24022#define HAVE_JN 1
24023_ACEOF
7d9455ce 24024
24025 fi
158e0e64 24026
158e0e64 24027
158e0e64 24028
7d9455ce 24029
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
24031$as_echo_n "checking for jnl... " >&6; }
f00f02a3 24032if ${gcc_cv_math_func_jnl+:} false; then :
cd9a469c 24033 $as_echo_n "(cached) " >&6
158e0e64 24034else
7d9455ce 24035 if test x$gcc_no_link = xyes; then
f00f02a3 24036 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24037fi
cd9a469c 24038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24039/* end confdefs.h. */
24040
7d9455ce 24041#ifdef HAVE_COMPLEX_H
24042#include <complex.h>
158e0e64 24043#endif
7d9455ce 24044#ifdef HAVE_MATH_H
24045#include <math.h>
24046#endif
24047
24048int (*ptr)() = (int (*)())jnl;
24049
158e0e64 24050int
24051main ()
24052{
158e0e64 24053 return 0;
24054}
7d9455ce 24055
158e0e64 24056_ACEOF
cd9a469c 24057if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24058 gcc_cv_math_func_jnl=yes
158e0e64 24059else
7d9455ce 24060 gcc_cv_math_func_jnl=no
158e0e64 24061fi
cd9a469c 24062rm -f core conftest.err conftest.$ac_objext \
24063 conftest$ac_exeext conftest.$ac_ext
158e0e64 24064fi
7d9455ce 24065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
24066$as_echo "$gcc_cv_math_func_jnl" >&6; }
24067 if test $gcc_cv_math_func_jnl = yes; then
bd647a17 24068
6affa8e1 24069cat >>confdefs.h <<_ACEOF
24070#define HAVE_JNL 1
24071_ACEOF
158e0e64 24072
7d9455ce 24073 fi
158e0e64 24074
158e0e64 24075
7d9455ce 24076
24077
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
24079$as_echo_n "checking for y0f... " >&6; }
f00f02a3 24080if ${gcc_cv_math_func_y0f+:} false; then :
cd9a469c 24081 $as_echo_n "(cached) " >&6
158e0e64 24082else
7d9455ce 24083 if test x$gcc_no_link = xyes; then
f00f02a3 24084 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24085fi
cd9a469c 24086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24087/* end confdefs.h. */
24088
7d9455ce 24089#ifdef HAVE_COMPLEX_H
24090#include <complex.h>
24091#endif
24092#ifdef HAVE_MATH_H
24093#include <math.h>
158e0e64 24094#endif
7d9455ce 24095
24096int (*ptr)() = (int (*)())y0f;
24097
158e0e64 24098int
24099main ()
24100{
158e0e64 24101 return 0;
24102}
7d9455ce 24103
158e0e64 24104_ACEOF
cd9a469c 24105if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24106 gcc_cv_math_func_y0f=yes
158e0e64 24107else
7d9455ce 24108 gcc_cv_math_func_y0f=no
158e0e64 24109fi
cd9a469c 24110rm -f core conftest.err conftest.$ac_objext \
24111 conftest$ac_exeext conftest.$ac_ext
158e0e64 24112fi
7d9455ce 24113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
24114$as_echo "$gcc_cv_math_func_y0f" >&6; }
24115 if test $gcc_cv_math_func_y0f = yes; then
bd647a17 24116
6affa8e1 24117cat >>confdefs.h <<_ACEOF
24118#define HAVE_Y0F 1
24119_ACEOF
7d9455ce 24120
24121 fi
158e0e64 24122
158e0e64 24123
158e0e64 24124
7d9455ce 24125
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24127$as_echo_n "checking for y0... " >&6; }
f00f02a3 24128if ${gcc_cv_math_func_y0+:} false; then :
cd9a469c 24129 $as_echo_n "(cached) " >&6
158e0e64 24130else
7d9455ce 24131 if test x$gcc_no_link = xyes; then
f00f02a3 24132 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24133fi
cd9a469c 24134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24135/* end confdefs.h. */
24136
7d9455ce 24137#ifdef HAVE_COMPLEX_H
24138#include <complex.h>
158e0e64 24139#endif
7d9455ce 24140#ifdef HAVE_MATH_H
24141#include <math.h>
24142#endif
24143
24144int (*ptr)() = (int (*)())y0;
24145
158e0e64 24146int
24147main ()
24148{
158e0e64 24149 return 0;
24150}
7d9455ce 24151
158e0e64 24152_ACEOF
cd9a469c 24153if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24154 gcc_cv_math_func_y0=yes
158e0e64 24155else
7d9455ce 24156 gcc_cv_math_func_y0=no
158e0e64 24157fi
cd9a469c 24158rm -f core conftest.err conftest.$ac_objext \
24159 conftest$ac_exeext conftest.$ac_ext
158e0e64 24160fi
7d9455ce 24161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24162$as_echo "$gcc_cv_math_func_y0" >&6; }
24163 if test $gcc_cv_math_func_y0 = yes; then
bd647a17 24164
6affa8e1 24165cat >>confdefs.h <<_ACEOF
24166#define HAVE_Y0 1
24167_ACEOF
7d9455ce 24168
24169 fi
24170
158e0e64 24171
158e0e64 24172
158e0e64 24173
7d9455ce 24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24175$as_echo_n "checking for y1f... " >&6; }
f00f02a3 24176if ${gcc_cv_math_func_y1f+:} false; then :
cd9a469c 24177 $as_echo_n "(cached) " >&6
158e0e64 24178else
7d9455ce 24179 if test x$gcc_no_link = xyes; then
f00f02a3 24180 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24181fi
cd9a469c 24182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24183/* end confdefs.h. */
24184
7d9455ce 24185#ifdef HAVE_COMPLEX_H
24186#include <complex.h>
158e0e64 24187#endif
7d9455ce 24188#ifdef HAVE_MATH_H
24189#include <math.h>
24190#endif
24191
24192int (*ptr)() = (int (*)())y1f;
24193
158e0e64 24194int
24195main ()
24196{
158e0e64 24197 return 0;
24198}
7d9455ce 24199
158e0e64 24200_ACEOF
cd9a469c 24201if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24202 gcc_cv_math_func_y1f=yes
158e0e64 24203else
7d9455ce 24204 gcc_cv_math_func_y1f=no
158e0e64 24205fi
cd9a469c 24206rm -f core conftest.err conftest.$ac_objext \
24207 conftest$ac_exeext conftest.$ac_ext
158e0e64 24208fi
7d9455ce 24209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24210$as_echo "$gcc_cv_math_func_y1f" >&6; }
24211 if test $gcc_cv_math_func_y1f = yes; then
bd647a17 24212
6affa8e1 24213cat >>confdefs.h <<_ACEOF
24214#define HAVE_Y1F 1
24215_ACEOF
158e0e64 24216
7d9455ce 24217 fi
158e0e64 24218
158e0e64 24219
7d9455ce 24220
24221
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24223$as_echo_n "checking for y1... " >&6; }
f00f02a3 24224if ${gcc_cv_math_func_y1+:} false; then :
cd9a469c 24225 $as_echo_n "(cached) " >&6
158e0e64 24226else
7d9455ce 24227 if test x$gcc_no_link = xyes; then
f00f02a3 24228 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24229fi
cd9a469c 24230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24231/* end confdefs.h. */
24232
7d9455ce 24233#ifdef HAVE_COMPLEX_H
24234#include <complex.h>
24235#endif
24236#ifdef HAVE_MATH_H
24237#include <math.h>
158e0e64 24238#endif
7d9455ce 24239
24240int (*ptr)() = (int (*)())y1;
24241
158e0e64 24242int
24243main ()
24244{
158e0e64 24245 return 0;
24246}
7d9455ce 24247
158e0e64 24248_ACEOF
cd9a469c 24249if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24250 gcc_cv_math_func_y1=yes
158e0e64 24251else
7d9455ce 24252 gcc_cv_math_func_y1=no
158e0e64 24253fi
cd9a469c 24254rm -f core conftest.err conftest.$ac_objext \
24255 conftest$ac_exeext conftest.$ac_ext
158e0e64 24256fi
7d9455ce 24257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24258$as_echo "$gcc_cv_math_func_y1" >&6; }
24259 if test $gcc_cv_math_func_y1 = yes; then
bd647a17 24260
6affa8e1 24261cat >>confdefs.h <<_ACEOF
24262#define HAVE_Y1 1
24263_ACEOF
7d9455ce 24264
24265 fi
158e0e64 24266
158e0e64 24267
158e0e64 24268
7d9455ce 24269
7d9455ce 24270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24271$as_echo_n "checking for ynf... " >&6; }
f00f02a3 24272if ${gcc_cv_math_func_ynf+:} false; then :
cd9a469c 24273 $as_echo_n "(cached) " >&6
7d9455ce 24274else
24275 if test x$gcc_no_link = xyes; then
f00f02a3 24276 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24277fi
cd9a469c 24278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24279/* end confdefs.h. */
24280
7d9455ce 24281#ifdef HAVE_COMPLEX_H
24282#include <complex.h>
24283#endif
24284#ifdef HAVE_MATH_H
24285#include <math.h>
158e0e64 24286#endif
7d9455ce 24287
24288int (*ptr)() = (int (*)())ynf;
24289
158e0e64 24290int
24291main ()
24292{
158e0e64 24293 return 0;
24294}
7d9455ce 24295
158e0e64 24296_ACEOF
cd9a469c 24297if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24298 gcc_cv_math_func_ynf=yes
158e0e64 24299else
7d9455ce 24300 gcc_cv_math_func_ynf=no
158e0e64 24301fi
cd9a469c 24302rm -f core conftest.err conftest.$ac_objext \
24303 conftest$ac_exeext conftest.$ac_ext
158e0e64 24304fi
7d9455ce 24305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24306$as_echo "$gcc_cv_math_func_ynf" >&6; }
24307 if test $gcc_cv_math_func_ynf = yes; then
bd647a17 24308
6affa8e1 24309cat >>confdefs.h <<_ACEOF
24310#define HAVE_YNF 1
24311_ACEOF
7d9455ce 24312
24313 fi
158e0e64 24314
158e0e64 24315
158e0e64 24316
7d9455ce 24317
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24319$as_echo_n "checking for yn... " >&6; }
f00f02a3 24320if ${gcc_cv_math_func_yn+:} false; then :
cd9a469c 24321 $as_echo_n "(cached) " >&6
158e0e64 24322else
7d9455ce 24323 if test x$gcc_no_link = xyes; then
f00f02a3 24324 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24325fi
cd9a469c 24326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24327/* end confdefs.h. */
24328
7d9455ce 24329#ifdef HAVE_COMPLEX_H
24330#include <complex.h>
158e0e64 24331#endif
7d9455ce 24332#ifdef HAVE_MATH_H
24333#include <math.h>
24334#endif
24335
24336int (*ptr)() = (int (*)())yn;
24337
158e0e64 24338int
24339main ()
24340{
158e0e64 24341 return 0;
24342}
7d9455ce 24343
158e0e64 24344_ACEOF
cd9a469c 24345if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24346 gcc_cv_math_func_yn=yes
158e0e64 24347else
7d9455ce 24348 gcc_cv_math_func_yn=no
158e0e64 24349fi
cd9a469c 24350rm -f core conftest.err conftest.$ac_objext \
24351 conftest$ac_exeext conftest.$ac_ext
158e0e64 24352fi
7d9455ce 24353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24354$as_echo "$gcc_cv_math_func_yn" >&6; }
24355 if test $gcc_cv_math_func_yn = yes; then
bd647a17 24356
6affa8e1 24357cat >>confdefs.h <<_ACEOF
24358#define HAVE_YN 1
24359_ACEOF
7d9455ce 24360
24361 fi
24362
158e0e64 24363
158e0e64 24364
158e0e64 24365
7d9455ce 24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24367$as_echo_n "checking for ynl... " >&6; }
f00f02a3 24368if ${gcc_cv_math_func_ynl+:} false; then :
cd9a469c 24369 $as_echo_n "(cached) " >&6
158e0e64 24370else
7d9455ce 24371 if test x$gcc_no_link = xyes; then
f00f02a3 24372 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24373fi
cd9a469c 24374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24375/* end confdefs.h. */
24376
7d9455ce 24377#ifdef HAVE_COMPLEX_H
24378#include <complex.h>
24379#endif
24380#ifdef HAVE_MATH_H
24381#include <math.h>
158e0e64 24382#endif
7d9455ce 24383
24384int (*ptr)() = (int (*)())ynl;
24385
158e0e64 24386int
24387main ()
24388{
158e0e64 24389 return 0;
24390}
7d9455ce 24391
158e0e64 24392_ACEOF
cd9a469c 24393if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24394 gcc_cv_math_func_ynl=yes
158e0e64 24395else
7d9455ce 24396 gcc_cv_math_func_ynl=no
158e0e64 24397fi
cd9a469c 24398rm -f core conftest.err conftest.$ac_objext \
24399 conftest$ac_exeext conftest.$ac_ext
158e0e64 24400fi
7d9455ce 24401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24402$as_echo "$gcc_cv_math_func_ynl" >&6; }
24403 if test $gcc_cv_math_func_ynl = yes; then
bd647a17 24404
6affa8e1 24405cat >>confdefs.h <<_ACEOF
24406#define HAVE_YNL 1
24407_ACEOF
7d9455ce 24408
24409 fi
158e0e64 24410
158e0e64 24411
158e0e64 24412
7d9455ce 24413
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24415$as_echo_n "checking for tgamma... " >&6; }
f00f02a3 24416if ${gcc_cv_math_func_tgamma+:} false; then :
cd9a469c 24417 $as_echo_n "(cached) " >&6
6d516d29 24418else
7d9455ce 24419 if test x$gcc_no_link = xyes; then
f00f02a3 24420 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 24421fi
cd9a469c 24422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 24423/* end confdefs.h. */
24424
7d9455ce 24425#ifdef HAVE_COMPLEX_H
24426#include <complex.h>
6d516d29 24427#endif
7d9455ce 24428#ifdef HAVE_MATH_H
24429#include <math.h>
24430#endif
24431
24432int (*ptr)() = (int (*)())tgamma;
24433
6d516d29 24434int
24435main ()
24436{
6d516d29 24437 return 0;
24438}
7d9455ce 24439
6d516d29 24440_ACEOF
cd9a469c 24441if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24442 gcc_cv_math_func_tgamma=yes
6d516d29 24443else
7d9455ce 24444 gcc_cv_math_func_tgamma=no
6d516d29 24445fi
cd9a469c 24446rm -f core conftest.err conftest.$ac_objext \
24447 conftest$ac_exeext conftest.$ac_ext
6d516d29 24448fi
7d9455ce 24449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24450$as_echo "$gcc_cv_math_func_tgamma" >&6; }
24451 if test $gcc_cv_math_func_tgamma = yes; then
bd647a17 24452
6affa8e1 24453cat >>confdefs.h <<_ACEOF
24454#define HAVE_TGAMMA 1
24455_ACEOF
6d516d29 24456
7d9455ce 24457 fi
6d516d29 24458
6d516d29 24459
7d9455ce 24460
24461
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24463$as_echo_n "checking for tgammaf... " >&6; }
f00f02a3 24464if ${gcc_cv_math_func_tgammaf+:} false; then :
cd9a469c 24465 $as_echo_n "(cached) " >&6
6d516d29 24466else
7d9455ce 24467 if test x$gcc_no_link = xyes; then
f00f02a3 24468 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 24469fi
cd9a469c 24470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 24471/* end confdefs.h. */
24472
7d9455ce 24473#ifdef HAVE_COMPLEX_H
24474#include <complex.h>
24475#endif
24476#ifdef HAVE_MATH_H
24477#include <math.h>
6d516d29 24478#endif
7d9455ce 24479
24480int (*ptr)() = (int (*)())tgammaf;
24481
6d516d29 24482int
24483main ()
24484{
6d516d29 24485 return 0;
24486}
7d9455ce 24487
6d516d29 24488_ACEOF
cd9a469c 24489if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24490 gcc_cv_math_func_tgammaf=yes
6d516d29 24491else
7d9455ce 24492 gcc_cv_math_func_tgammaf=no
6d516d29 24493fi
cd9a469c 24494rm -f core conftest.err conftest.$ac_objext \
24495 conftest$ac_exeext conftest.$ac_ext
6d516d29 24496fi
7d9455ce 24497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24498$as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24499 if test $gcc_cv_math_func_tgammaf = yes; then
bd647a17 24500
6affa8e1 24501cat >>confdefs.h <<_ACEOF
24502#define HAVE_TGAMMAF 1
24503_ACEOF
7d9455ce 24504
24505 fi
6d516d29 24506
6d516d29 24507
6d516d29 24508
7d9455ce 24509
7d9455ce 24510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24511$as_echo_n "checking for lgamma... " >&6; }
f00f02a3 24512if ${gcc_cv_math_func_lgamma+:} false; then :
cd9a469c 24513 $as_echo_n "(cached) " >&6
6d516d29 24514else
7d9455ce 24515 if test x$gcc_no_link = xyes; then
f00f02a3 24516 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 24517fi
cd9a469c 24518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 24519/* end confdefs.h. */
24520
7d9455ce 24521#ifdef HAVE_COMPLEX_H
24522#include <complex.h>
24523#endif
24524#ifdef HAVE_MATH_H
24525#include <math.h>
6d516d29 24526#endif
7d9455ce 24527
24528int (*ptr)() = (int (*)())lgamma;
24529
6d516d29 24530int
24531main ()
24532{
6d516d29 24533 return 0;
24534}
7d9455ce 24535
6d516d29 24536_ACEOF
cd9a469c 24537if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24538 gcc_cv_math_func_lgamma=yes
6d516d29 24539else
7d9455ce 24540 gcc_cv_math_func_lgamma=no
6d516d29 24541fi
cd9a469c 24542rm -f core conftest.err conftest.$ac_objext \
24543 conftest$ac_exeext conftest.$ac_ext
6d516d29 24544fi
7d9455ce 24545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24546$as_echo "$gcc_cv_math_func_lgamma" >&6; }
24547 if test $gcc_cv_math_func_lgamma = yes; then
bd647a17 24548
6affa8e1 24549cat >>confdefs.h <<_ACEOF
24550#define HAVE_LGAMMA 1
24551_ACEOF
7d9455ce 24552
24553 fi
6d516d29 24554
6d516d29 24555
6d516d29 24556
7d9455ce 24557
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24559$as_echo_n "checking for lgammaf... " >&6; }
f00f02a3 24560if ${gcc_cv_math_func_lgammaf+:} false; then :
cd9a469c 24561 $as_echo_n "(cached) " >&6
6d516d29 24562else
7d9455ce 24563 if test x$gcc_no_link = xyes; then
f00f02a3 24564 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 24565fi
cd9a469c 24566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 24567/* end confdefs.h. */
24568
7d9455ce 24569#ifdef HAVE_COMPLEX_H
24570#include <complex.h>
6d516d29 24571#endif
7d9455ce 24572#ifdef HAVE_MATH_H
24573#include <math.h>
24574#endif
24575
24576int (*ptr)() = (int (*)())lgammaf;
24577
6d516d29 24578int
24579main ()
24580{
6d516d29 24581 return 0;
24582}
7d9455ce 24583
6d516d29 24584_ACEOF
cd9a469c 24585if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24586 gcc_cv_math_func_lgammaf=yes
6d516d29 24587else
7d9455ce 24588 gcc_cv_math_func_lgammaf=no
6d516d29 24589fi
cd9a469c 24590rm -f core conftest.err conftest.$ac_objext \
24591 conftest$ac_exeext conftest.$ac_ext
6d516d29 24592fi
7d9455ce 24593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24594$as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24595 if test $gcc_cv_math_func_lgammaf = yes; then
bd647a17 24596
6affa8e1 24597cat >>confdefs.h <<_ACEOF
24598#define HAVE_LGAMMAF 1
24599_ACEOF
6d516d29 24600
7d9455ce 24601 fi
6d516d29 24602
6d516d29 24603
89b803c8 24604# Check for GFORTRAN_C99_1.1 funcs
7d9455ce 24605
24606
24607
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24609$as_echo_n "checking for cacos... " >&6; }
f00f02a3 24610if ${gcc_cv_math_func_cacos+:} false; then :
89b803c8 24611 $as_echo_n "(cached) " >&6
24612else
7d9455ce 24613 if test x$gcc_no_link = xyes; then
f00f02a3 24614 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24615fi
24616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24617/* end confdefs.h. */
24618
7d9455ce 24619#ifdef HAVE_COMPLEX_H
24620#include <complex.h>
89b803c8 24621#endif
7d9455ce 24622#ifdef HAVE_MATH_H
24623#include <math.h>
24624#endif
24625
24626int (*ptr)() = (int (*)())cacos;
24627
89b803c8 24628int
24629main ()
24630{
89b803c8 24631 return 0;
24632}
7d9455ce 24633
89b803c8 24634_ACEOF
24635if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24636 gcc_cv_math_func_cacos=yes
89b803c8 24637else
7d9455ce 24638 gcc_cv_math_func_cacos=no
89b803c8 24639fi
24640rm -f core conftest.err conftest.$ac_objext \
24641 conftest$ac_exeext conftest.$ac_ext
89b803c8 24642fi
7d9455ce 24643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24644$as_echo "$gcc_cv_math_func_cacos" >&6; }
24645 if test $gcc_cv_math_func_cacos = yes; then
bd647a17 24646
6affa8e1 24647cat >>confdefs.h <<_ACEOF
24648#define HAVE_CACOS 1
24649_ACEOF
89b803c8 24650
7d9455ce 24651 fi
89b803c8 24652
89b803c8 24653
7d9455ce 24654
24655
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24657$as_echo_n "checking for cacosf... " >&6; }
f00f02a3 24658if ${gcc_cv_math_func_cacosf+:} false; then :
89b803c8 24659 $as_echo_n "(cached) " >&6
24660else
7d9455ce 24661 if test x$gcc_no_link = xyes; then
f00f02a3 24662 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24663fi
24664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24665/* end confdefs.h. */
24666
7d9455ce 24667#ifdef HAVE_COMPLEX_H
24668#include <complex.h>
24669#endif
24670#ifdef HAVE_MATH_H
24671#include <math.h>
89b803c8 24672#endif
7d9455ce 24673
24674int (*ptr)() = (int (*)())cacosf;
24675
89b803c8 24676int
24677main ()
24678{
89b803c8 24679 return 0;
24680}
7d9455ce 24681
89b803c8 24682_ACEOF
24683if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24684 gcc_cv_math_func_cacosf=yes
89b803c8 24685else
7d9455ce 24686 gcc_cv_math_func_cacosf=no
89b803c8 24687fi
24688rm -f core conftest.err conftest.$ac_objext \
24689 conftest$ac_exeext conftest.$ac_ext
89b803c8 24690fi
7d9455ce 24691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24692$as_echo "$gcc_cv_math_func_cacosf" >&6; }
24693 if test $gcc_cv_math_func_cacosf = yes; then
bd647a17 24694
6affa8e1 24695cat >>confdefs.h <<_ACEOF
24696#define HAVE_CACOSF 1
24697_ACEOF
7d9455ce 24698
24699 fi
89b803c8 24700
89b803c8 24701
89b803c8 24702
7d9455ce 24703
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24705$as_echo_n "checking for cacosh... " >&6; }
f00f02a3 24706if ${gcc_cv_math_func_cacosh+:} false; then :
89b803c8 24707 $as_echo_n "(cached) " >&6
24708else
7d9455ce 24709 if test x$gcc_no_link = xyes; then
f00f02a3 24710 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24711fi
24712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24713/* end confdefs.h. */
24714
7d9455ce 24715#ifdef HAVE_COMPLEX_H
24716#include <complex.h>
89b803c8 24717#endif
7d9455ce 24718#ifdef HAVE_MATH_H
24719#include <math.h>
24720#endif
24721
24722int (*ptr)() = (int (*)())cacosh;
24723
89b803c8 24724int
24725main ()
24726{
89b803c8 24727 return 0;
24728}
7d9455ce 24729
89b803c8 24730_ACEOF
24731if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24732 gcc_cv_math_func_cacosh=yes
89b803c8 24733else
7d9455ce 24734 gcc_cv_math_func_cacosh=no
89b803c8 24735fi
24736rm -f core conftest.err conftest.$ac_objext \
24737 conftest$ac_exeext conftest.$ac_ext
89b803c8 24738fi
7d9455ce 24739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24740$as_echo "$gcc_cv_math_func_cacosh" >&6; }
24741 if test $gcc_cv_math_func_cacosh = yes; then
bd647a17 24742
6affa8e1 24743cat >>confdefs.h <<_ACEOF
24744#define HAVE_CACOSH 1
24745_ACEOF
7d9455ce 24746
24747 fi
24748
89b803c8 24749
89b803c8 24750
89b803c8 24751
7d9455ce 24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24753$as_echo_n "checking for cacoshf... " >&6; }
f00f02a3 24754if ${gcc_cv_math_func_cacoshf+:} false; then :
89b803c8 24755 $as_echo_n "(cached) " >&6
24756else
7d9455ce 24757 if test x$gcc_no_link = xyes; then
f00f02a3 24758 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24759fi
24760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24761/* end confdefs.h. */
24762
7d9455ce 24763#ifdef HAVE_COMPLEX_H
24764#include <complex.h>
24765#endif
24766#ifdef HAVE_MATH_H
24767#include <math.h>
89b803c8 24768#endif
7d9455ce 24769
24770int (*ptr)() = (int (*)())cacoshf;
24771
89b803c8 24772int
24773main ()
24774{
89b803c8 24775 return 0;
24776}
7d9455ce 24777
89b803c8 24778_ACEOF
24779if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24780 gcc_cv_math_func_cacoshf=yes
89b803c8 24781else
7d9455ce 24782 gcc_cv_math_func_cacoshf=no
89b803c8 24783fi
24784rm -f core conftest.err conftest.$ac_objext \
24785 conftest$ac_exeext conftest.$ac_ext
89b803c8 24786fi
7d9455ce 24787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24788$as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24789 if test $gcc_cv_math_func_cacoshf = yes; then
bd647a17 24790
6affa8e1 24791cat >>confdefs.h <<_ACEOF
24792#define HAVE_CACOSHF 1
24793_ACEOF
7d9455ce 24794
24795 fi
89b803c8 24796
89b803c8 24797
89b803c8 24798
7d9455ce 24799
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24801$as_echo_n "checking for cacoshl... " >&6; }
f00f02a3 24802if ${gcc_cv_math_func_cacoshl+:} false; then :
89b803c8 24803 $as_echo_n "(cached) " >&6
24804else
7d9455ce 24805 if test x$gcc_no_link = xyes; then
f00f02a3 24806 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24807fi
24808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24809/* end confdefs.h. */
24810
7d9455ce 24811#ifdef HAVE_COMPLEX_H
24812#include <complex.h>
89b803c8 24813#endif
7d9455ce 24814#ifdef HAVE_MATH_H
24815#include <math.h>
24816#endif
24817
24818int (*ptr)() = (int (*)())cacoshl;
24819
89b803c8 24820int
24821main ()
24822{
89b803c8 24823 return 0;
24824}
7d9455ce 24825
89b803c8 24826_ACEOF
24827if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24828 gcc_cv_math_func_cacoshl=yes
89b803c8 24829else
7d9455ce 24830 gcc_cv_math_func_cacoshl=no
89b803c8 24831fi
24832rm -f core conftest.err conftest.$ac_objext \
24833 conftest$ac_exeext conftest.$ac_ext
89b803c8 24834fi
7d9455ce 24835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24836$as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24837 if test $gcc_cv_math_func_cacoshl = yes; then
bd647a17 24838
6affa8e1 24839cat >>confdefs.h <<_ACEOF
24840#define HAVE_CACOSHL 1
24841_ACEOF
89b803c8 24842
7d9455ce 24843 fi
89b803c8 24844
89b803c8 24845
7d9455ce 24846
24847
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24849$as_echo_n "checking for cacosl... " >&6; }
f00f02a3 24850if ${gcc_cv_math_func_cacosl+:} false; then :
89b803c8 24851 $as_echo_n "(cached) " >&6
24852else
7d9455ce 24853 if test x$gcc_no_link = xyes; then
f00f02a3 24854 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24855fi
24856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24857/* end confdefs.h. */
24858
7d9455ce 24859#ifdef HAVE_COMPLEX_H
24860#include <complex.h>
24861#endif
24862#ifdef HAVE_MATH_H
24863#include <math.h>
89b803c8 24864#endif
7d9455ce 24865
24866int (*ptr)() = (int (*)())cacosl;
24867
89b803c8 24868int
24869main ()
24870{
89b803c8 24871 return 0;
24872}
7d9455ce 24873
89b803c8 24874_ACEOF
24875if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24876 gcc_cv_math_func_cacosl=yes
89b803c8 24877else
7d9455ce 24878 gcc_cv_math_func_cacosl=no
89b803c8 24879fi
24880rm -f core conftest.err conftest.$ac_objext \
24881 conftest$ac_exeext conftest.$ac_ext
89b803c8 24882fi
7d9455ce 24883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24884$as_echo "$gcc_cv_math_func_cacosl" >&6; }
24885 if test $gcc_cv_math_func_cacosl = yes; then
bd647a17 24886
6affa8e1 24887cat >>confdefs.h <<_ACEOF
24888#define HAVE_CACOSL 1
24889_ACEOF
7d9455ce 24890
24891 fi
89b803c8 24892
89b803c8 24893
89b803c8 24894
7d9455ce 24895
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24897$as_echo_n "checking for casin... " >&6; }
f00f02a3 24898if ${gcc_cv_math_func_casin+:} false; then :
89b803c8 24899 $as_echo_n "(cached) " >&6
24900else
7d9455ce 24901 if test x$gcc_no_link = xyes; then
f00f02a3 24902 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24903fi
24904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24905/* end confdefs.h. */
24906
7d9455ce 24907#ifdef HAVE_COMPLEX_H
24908#include <complex.h>
89b803c8 24909#endif
7d9455ce 24910#ifdef HAVE_MATH_H
24911#include <math.h>
24912#endif
24913
24914int (*ptr)() = (int (*)())casin;
24915
89b803c8 24916int
24917main ()
24918{
89b803c8 24919 return 0;
24920}
7d9455ce 24921
89b803c8 24922_ACEOF
24923if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24924 gcc_cv_math_func_casin=yes
89b803c8 24925else
7d9455ce 24926 gcc_cv_math_func_casin=no
89b803c8 24927fi
24928rm -f core conftest.err conftest.$ac_objext \
24929 conftest$ac_exeext conftest.$ac_ext
89b803c8 24930fi
7d9455ce 24931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24932$as_echo "$gcc_cv_math_func_casin" >&6; }
24933 if test $gcc_cv_math_func_casin = yes; then
bd647a17 24934
6affa8e1 24935cat >>confdefs.h <<_ACEOF
24936#define HAVE_CASIN 1
24937_ACEOF
7d9455ce 24938
24939 fi
24940
89b803c8 24941
89b803c8 24942
89b803c8 24943
7d9455ce 24944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24945$as_echo_n "checking for casinf... " >&6; }
f00f02a3 24946if ${gcc_cv_math_func_casinf+:} false; then :
89b803c8 24947 $as_echo_n "(cached) " >&6
24948else
7d9455ce 24949 if test x$gcc_no_link = xyes; then
f00f02a3 24950 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24951fi
24952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24953/* end confdefs.h. */
24954
7d9455ce 24955#ifdef HAVE_COMPLEX_H
24956#include <complex.h>
24957#endif
24958#ifdef HAVE_MATH_H
24959#include <math.h>
89b803c8 24960#endif
7d9455ce 24961
24962int (*ptr)() = (int (*)())casinf;
24963
89b803c8 24964int
24965main ()
24966{
89b803c8 24967 return 0;
24968}
7d9455ce 24969
89b803c8 24970_ACEOF
24971if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24972 gcc_cv_math_func_casinf=yes
89b803c8 24973else
7d9455ce 24974 gcc_cv_math_func_casinf=no
89b803c8 24975fi
24976rm -f core conftest.err conftest.$ac_objext \
24977 conftest$ac_exeext conftest.$ac_ext
89b803c8 24978fi
7d9455ce 24979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24980$as_echo "$gcc_cv_math_func_casinf" >&6; }
24981 if test $gcc_cv_math_func_casinf = yes; then
bd647a17 24982
6affa8e1 24983cat >>confdefs.h <<_ACEOF
24984#define HAVE_CASINF 1
24985_ACEOF
7d9455ce 24986
24987 fi
89b803c8 24988
89b803c8 24989
89b803c8 24990
7d9455ce 24991
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24993$as_echo_n "checking for casinh... " >&6; }
f00f02a3 24994if ${gcc_cv_math_func_casinh+:} false; then :
89b803c8 24995 $as_echo_n "(cached) " >&6
24996else
7d9455ce 24997 if test x$gcc_no_link = xyes; then
f00f02a3 24998 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24999fi
25000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25001/* end confdefs.h. */
25002
7d9455ce 25003#ifdef HAVE_COMPLEX_H
25004#include <complex.h>
89b803c8 25005#endif
7d9455ce 25006#ifdef HAVE_MATH_H
25007#include <math.h>
25008#endif
25009
25010int (*ptr)() = (int (*)())casinh;
25011
89b803c8 25012int
25013main ()
25014{
89b803c8 25015 return 0;
25016}
7d9455ce 25017
89b803c8 25018_ACEOF
25019if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25020 gcc_cv_math_func_casinh=yes
89b803c8 25021else
7d9455ce 25022 gcc_cv_math_func_casinh=no
89b803c8 25023fi
25024rm -f core conftest.err conftest.$ac_objext \
25025 conftest$ac_exeext conftest.$ac_ext
89b803c8 25026fi
7d9455ce 25027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25028$as_echo "$gcc_cv_math_func_casinh" >&6; }
25029 if test $gcc_cv_math_func_casinh = yes; then
bd647a17 25030
6affa8e1 25031cat >>confdefs.h <<_ACEOF
25032#define HAVE_CASINH 1
25033_ACEOF
89b803c8 25034
7d9455ce 25035 fi
89b803c8 25036
89b803c8 25037
7d9455ce 25038
25039
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25041$as_echo_n "checking for casinhf... " >&6; }
f00f02a3 25042if ${gcc_cv_math_func_casinhf+:} false; then :
89b803c8 25043 $as_echo_n "(cached) " >&6
25044else
7d9455ce 25045 if test x$gcc_no_link = xyes; then
f00f02a3 25046 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25047fi
25048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25049/* end confdefs.h. */
25050
7d9455ce 25051#ifdef HAVE_COMPLEX_H
25052#include <complex.h>
25053#endif
25054#ifdef HAVE_MATH_H
25055#include <math.h>
89b803c8 25056#endif
7d9455ce 25057
25058int (*ptr)() = (int (*)())casinhf;
25059
89b803c8 25060int
25061main ()
25062{
89b803c8 25063 return 0;
25064}
7d9455ce 25065
89b803c8 25066_ACEOF
25067if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25068 gcc_cv_math_func_casinhf=yes
89b803c8 25069else
7d9455ce 25070 gcc_cv_math_func_casinhf=no
89b803c8 25071fi
25072rm -f core conftest.err conftest.$ac_objext \
25073 conftest$ac_exeext conftest.$ac_ext
89b803c8 25074fi
7d9455ce 25075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25076$as_echo "$gcc_cv_math_func_casinhf" >&6; }
25077 if test $gcc_cv_math_func_casinhf = yes; then
bd647a17 25078
6affa8e1 25079cat >>confdefs.h <<_ACEOF
25080#define HAVE_CASINHF 1
25081_ACEOF
7d9455ce 25082
25083 fi
89b803c8 25084
89b803c8 25085
89b803c8 25086
7d9455ce 25087
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25089$as_echo_n "checking for casinhl... " >&6; }
f00f02a3 25090if ${gcc_cv_math_func_casinhl+:} false; then :
89b803c8 25091 $as_echo_n "(cached) " >&6
25092else
7d9455ce 25093 if test x$gcc_no_link = xyes; then
f00f02a3 25094 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25095fi
25096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25097/* end confdefs.h. */
25098
7d9455ce 25099#ifdef HAVE_COMPLEX_H
25100#include <complex.h>
89b803c8 25101#endif
7d9455ce 25102#ifdef HAVE_MATH_H
25103#include <math.h>
25104#endif
25105
25106int (*ptr)() = (int (*)())casinhl;
25107
89b803c8 25108int
25109main ()
25110{
89b803c8 25111 return 0;
25112}
7d9455ce 25113
89b803c8 25114_ACEOF
25115if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25116 gcc_cv_math_func_casinhl=yes
89b803c8 25117else
7d9455ce 25118 gcc_cv_math_func_casinhl=no
89b803c8 25119fi
25120rm -f core conftest.err conftest.$ac_objext \
25121 conftest$ac_exeext conftest.$ac_ext
89b803c8 25122fi
7d9455ce 25123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25124$as_echo "$gcc_cv_math_func_casinhl" >&6; }
25125 if test $gcc_cv_math_func_casinhl = yes; then
bd647a17 25126
6affa8e1 25127cat >>confdefs.h <<_ACEOF
25128#define HAVE_CASINHL 1
25129_ACEOF
7d9455ce 25130
25131 fi
25132
89b803c8 25133
89b803c8 25134
89b803c8 25135
7d9455ce 25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25137$as_echo_n "checking for casinl... " >&6; }
f00f02a3 25138if ${gcc_cv_math_func_casinl+:} false; then :
89b803c8 25139 $as_echo_n "(cached) " >&6
25140else
7d9455ce 25141 if test x$gcc_no_link = xyes; then
f00f02a3 25142 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25143fi
25144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25145/* end confdefs.h. */
25146
7d9455ce 25147#ifdef HAVE_COMPLEX_H
25148#include <complex.h>
25149#endif
25150#ifdef HAVE_MATH_H
25151#include <math.h>
89b803c8 25152#endif
7d9455ce 25153
25154int (*ptr)() = (int (*)())casinl;
25155
89b803c8 25156int
25157main ()
25158{
89b803c8 25159 return 0;
25160}
7d9455ce 25161
89b803c8 25162_ACEOF
25163if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25164 gcc_cv_math_func_casinl=yes
89b803c8 25165else
7d9455ce 25166 gcc_cv_math_func_casinl=no
89b803c8 25167fi
25168rm -f core conftest.err conftest.$ac_objext \
25169 conftest$ac_exeext conftest.$ac_ext
89b803c8 25170fi
7d9455ce 25171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25172$as_echo "$gcc_cv_math_func_casinl" >&6; }
25173 if test $gcc_cv_math_func_casinl = yes; then
bd647a17 25174
6affa8e1 25175cat >>confdefs.h <<_ACEOF
25176#define HAVE_CASINL 1
25177_ACEOF
7d9455ce 25178
25179 fi
89b803c8 25180
89b803c8 25181
89b803c8 25182
7d9455ce 25183
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25185$as_echo_n "checking for catan... " >&6; }
f00f02a3 25186if ${gcc_cv_math_func_catan+:} false; then :
89b803c8 25187 $as_echo_n "(cached) " >&6
25188else
7d9455ce 25189 if test x$gcc_no_link = xyes; then
f00f02a3 25190 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25191fi
25192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25193/* end confdefs.h. */
25194
7d9455ce 25195#ifdef HAVE_COMPLEX_H
25196#include <complex.h>
89b803c8 25197#endif
7d9455ce 25198#ifdef HAVE_MATH_H
25199#include <math.h>
25200#endif
25201
25202int (*ptr)() = (int (*)())catan;
25203
89b803c8 25204int
25205main ()
25206{
89b803c8 25207 return 0;
25208}
7d9455ce 25209
89b803c8 25210_ACEOF
25211if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25212 gcc_cv_math_func_catan=yes
89b803c8 25213else
7d9455ce 25214 gcc_cv_math_func_catan=no
89b803c8 25215fi
25216rm -f core conftest.err conftest.$ac_objext \
25217 conftest$ac_exeext conftest.$ac_ext
89b803c8 25218fi
7d9455ce 25219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25220$as_echo "$gcc_cv_math_func_catan" >&6; }
25221 if test $gcc_cv_math_func_catan = yes; then
bd647a17 25222
6affa8e1 25223cat >>confdefs.h <<_ACEOF
25224#define HAVE_CATAN 1
25225_ACEOF
89b803c8 25226
7d9455ce 25227 fi
89b803c8 25228
89b803c8 25229
7d9455ce 25230
25231
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25233$as_echo_n "checking for catanf... " >&6; }
f00f02a3 25234if ${gcc_cv_math_func_catanf+:} false; then :
89b803c8 25235 $as_echo_n "(cached) " >&6
25236else
7d9455ce 25237 if test x$gcc_no_link = xyes; then
f00f02a3 25238 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25239fi
25240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25241/* end confdefs.h. */
25242
7d9455ce 25243#ifdef HAVE_COMPLEX_H
25244#include <complex.h>
25245#endif
25246#ifdef HAVE_MATH_H
25247#include <math.h>
89b803c8 25248#endif
7d9455ce 25249
25250int (*ptr)() = (int (*)())catanf;
25251
89b803c8 25252int
25253main ()
25254{
89b803c8 25255 return 0;
25256}
7d9455ce 25257
89b803c8 25258_ACEOF
25259if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25260 gcc_cv_math_func_catanf=yes
89b803c8 25261else
7d9455ce 25262 gcc_cv_math_func_catanf=no
89b803c8 25263fi
25264rm -f core conftest.err conftest.$ac_objext \
25265 conftest$ac_exeext conftest.$ac_ext
89b803c8 25266fi
7d9455ce 25267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25268$as_echo "$gcc_cv_math_func_catanf" >&6; }
25269 if test $gcc_cv_math_func_catanf = yes; then
bd647a17 25270
6affa8e1 25271cat >>confdefs.h <<_ACEOF
25272#define HAVE_CATANF 1
25273_ACEOF
7d9455ce 25274
25275 fi
89b803c8 25276
89b803c8 25277
89b803c8 25278
7d9455ce 25279
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25281$as_echo_n "checking for catanh... " >&6; }
f00f02a3 25282if ${gcc_cv_math_func_catanh+:} false; then :
89b803c8 25283 $as_echo_n "(cached) " >&6
25284else
7d9455ce 25285 if test x$gcc_no_link = xyes; then
f00f02a3 25286 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25287fi
25288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289/* end confdefs.h. */
25290
7d9455ce 25291#ifdef HAVE_COMPLEX_H
25292#include <complex.h>
89b803c8 25293#endif
7d9455ce 25294#ifdef HAVE_MATH_H
25295#include <math.h>
25296#endif
25297
25298int (*ptr)() = (int (*)())catanh;
25299
89b803c8 25300int
25301main ()
25302{
89b803c8 25303 return 0;
25304}
7d9455ce 25305
89b803c8 25306_ACEOF
25307if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25308 gcc_cv_math_func_catanh=yes
89b803c8 25309else
7d9455ce 25310 gcc_cv_math_func_catanh=no
89b803c8 25311fi
25312rm -f core conftest.err conftest.$ac_objext \
25313 conftest$ac_exeext conftest.$ac_ext
89b803c8 25314fi
7d9455ce 25315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25316$as_echo "$gcc_cv_math_func_catanh" >&6; }
25317 if test $gcc_cv_math_func_catanh = yes; then
bd647a17 25318
6affa8e1 25319cat >>confdefs.h <<_ACEOF
25320#define HAVE_CATANH 1
25321_ACEOF
7d9455ce 25322
25323 fi
25324
89b803c8 25325
89b803c8 25326
89b803c8 25327
7d9455ce 25328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25329$as_echo_n "checking for catanhf... " >&6; }
f00f02a3 25330if ${gcc_cv_math_func_catanhf+:} false; then :
89b803c8 25331 $as_echo_n "(cached) " >&6
25332else
7d9455ce 25333 if test x$gcc_no_link = xyes; then
f00f02a3 25334 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25335fi
25336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25337/* end confdefs.h. */
25338
7d9455ce 25339#ifdef HAVE_COMPLEX_H
25340#include <complex.h>
25341#endif
25342#ifdef HAVE_MATH_H
25343#include <math.h>
89b803c8 25344#endif
7d9455ce 25345
25346int (*ptr)() = (int (*)())catanhf;
25347
89b803c8 25348int
25349main ()
25350{
89b803c8 25351 return 0;
25352}
7d9455ce 25353
89b803c8 25354_ACEOF
25355if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25356 gcc_cv_math_func_catanhf=yes
89b803c8 25357else
7d9455ce 25358 gcc_cv_math_func_catanhf=no
89b803c8 25359fi
25360rm -f core conftest.err conftest.$ac_objext \
25361 conftest$ac_exeext conftest.$ac_ext
89b803c8 25362fi
7d9455ce 25363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25364$as_echo "$gcc_cv_math_func_catanhf" >&6; }
25365 if test $gcc_cv_math_func_catanhf = yes; then
bd647a17 25366
6affa8e1 25367cat >>confdefs.h <<_ACEOF
25368#define HAVE_CATANHF 1
25369_ACEOF
7d9455ce 25370
25371 fi
89b803c8 25372
89b803c8 25373
89b803c8 25374
7d9455ce 25375
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25377$as_echo_n "checking for catanhl... " >&6; }
f00f02a3 25378if ${gcc_cv_math_func_catanhl+:} false; then :
89b803c8 25379 $as_echo_n "(cached) " >&6
25380else
7d9455ce 25381 if test x$gcc_no_link = xyes; then
f00f02a3 25382 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25383fi
25384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25385/* end confdefs.h. */
25386
7d9455ce 25387#ifdef HAVE_COMPLEX_H
25388#include <complex.h>
89b803c8 25389#endif
7d9455ce 25390#ifdef HAVE_MATH_H
25391#include <math.h>
25392#endif
25393
25394int (*ptr)() = (int (*)())catanhl;
25395
89b803c8 25396int
25397main ()
25398{
89b803c8 25399 return 0;
25400}
7d9455ce 25401
89b803c8 25402_ACEOF
25403if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25404 gcc_cv_math_func_catanhl=yes
89b803c8 25405else
7d9455ce 25406 gcc_cv_math_func_catanhl=no
89b803c8 25407fi
25408rm -f core conftest.err conftest.$ac_objext \
25409 conftest$ac_exeext conftest.$ac_ext
89b803c8 25410fi
7d9455ce 25411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25412$as_echo "$gcc_cv_math_func_catanhl" >&6; }
25413 if test $gcc_cv_math_func_catanhl = yes; then
bd647a17 25414
6affa8e1 25415cat >>confdefs.h <<_ACEOF
25416#define HAVE_CATANHL 1
25417_ACEOF
89b803c8 25418
7d9455ce 25419 fi
89b803c8 25420
89b803c8 25421
7d9455ce 25422
25423
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25425$as_echo_n "checking for catanl... " >&6; }
f00f02a3 25426if ${gcc_cv_math_func_catanl+:} false; then :
89b803c8 25427 $as_echo_n "(cached) " >&6
25428else
7d9455ce 25429 if test x$gcc_no_link = xyes; then
f00f02a3 25430 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25431fi
25432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25433/* end confdefs.h. */
25434
7d9455ce 25435#ifdef HAVE_COMPLEX_H
25436#include <complex.h>
25437#endif
25438#ifdef HAVE_MATH_H
25439#include <math.h>
89b803c8 25440#endif
7d9455ce 25441
25442int (*ptr)() = (int (*)())catanl;
25443
89b803c8 25444int
25445main ()
25446{
89b803c8 25447 return 0;
25448}
7d9455ce 25449
89b803c8 25450_ACEOF
25451if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25452 gcc_cv_math_func_catanl=yes
89b803c8 25453else
7d9455ce 25454 gcc_cv_math_func_catanl=no
89b803c8 25455fi
25456rm -f core conftest.err conftest.$ac_objext \
25457 conftest$ac_exeext conftest.$ac_ext
89b803c8 25458fi
7d9455ce 25459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25460$as_echo "$gcc_cv_math_func_catanl" >&6; }
25461 if test $gcc_cv_math_func_catanl = yes; then
bd647a17 25462
6affa8e1 25463cat >>confdefs.h <<_ACEOF
25464#define HAVE_CATANL 1
25465_ACEOF
89b803c8 25466
7d9455ce 25467 fi
89b803c8 25468
25469
839904a0 25470# On AIX, clog is present in libm as __clog
cd9a469c 25471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25472$as_echo_n "checking for __clog in -lm... " >&6; }
f00f02a3 25473if ${ac_cv_lib_m___clog+:} false; then :
cd9a469c 25474 $as_echo_n "(cached) " >&6
62a413d5 25475else
25476 ac_check_lib_save_LIBS=$LIBS
25477LIBS="-lm $LIBS"
25478if test x$gcc_no_link = xyes; then
f00f02a3 25479 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
62a413d5 25480fi
cd9a469c 25481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62a413d5 25482/* end confdefs.h. */
25483
cd9a469c 25484/* Override any GCC internal prototype to avoid an error.
25485 Use char because int might match the return type of a GCC
25486 builtin and then its argument prototype would still apply. */
62a413d5 25487#ifdef __cplusplus
25488extern "C"
25489#endif
62a413d5 25490char __clog ();
25491int
25492main ()
25493{
cd9a469c 25494return __clog ();
62a413d5 25495 ;
25496 return 0;
25497}
25498_ACEOF
cd9a469c 25499if ac_fn_c_try_link "$LINENO"; then :
62a413d5 25500 ac_cv_lib_m___clog=yes
25501else
cd9a469c 25502 ac_cv_lib_m___clog=no
62a413d5 25503fi
cd9a469c 25504rm -f core conftest.err conftest.$ac_objext \
25505 conftest$ac_exeext conftest.$ac_ext
62a413d5 25506LIBS=$ac_check_lib_save_LIBS
25507fi
cd9a469c 25508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25509$as_echo "$ac_cv_lib_m___clog" >&6; }
f00f02a3 25510if test "x$ac_cv_lib_m___clog" = xyes; then :
62a413d5 25511
cd9a469c 25512$as_echo "#define HAVE_CLOG 1" >>confdefs.h
62a413d5 25513
25514fi
25515
25516
daad4fd5 25517# Check whether the system has a working stat()
25518
cd9a469c 25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25520$as_echo_n "checking whether the target stat is reliable... " >&6; }
f00f02a3 25521if ${libgfor_cv_have_working_stat+:} false; then :
cd9a469c 25522 $as_echo_n "(cached) " >&6
daad4fd5 25523else
25524
cd9a469c 25525 if test "$cross_compiling" = yes; then :
daad4fd5 25526
25527case "${target}" in
6992582a 25528 *mingw*) libgfor_cv_have_working_stat=no ;;
25529 *) libgfor_cv_have_working_stat=yes;;
daad4fd5 25530esac
25531else
cd9a469c 25532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
daad4fd5 25533/* end confdefs.h. */
25534
25535#include <stdio.h>
25536#include <sys/types.h>
25537#include <sys/stat.h>
25538#include <unistd.h>
25539
25540int main ()
25541{
25542 FILE *f, *g;
25543 struct stat st1, st2;
25544
25545 f = fopen ("foo", "w");
25546 g = fopen ("bar", "w");
25547 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25548 return 1;
25549 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25550 return 1;
25551 fclose(f);
25552 fclose(g);
25553 return 0;
25554}
25555_ACEOF
cd9a469c 25556if ac_fn_c_try_run "$LINENO"; then :
6992582a 25557 libgfor_cv_have_working_stat=yes
daad4fd5 25558else
cd9a469c 25559 libgfor_cv_have_working_stat=no
daad4fd5 25560fi
cd9a469c 25561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25562 conftest.$ac_objext conftest.beam conftest.$ac_ext
daad4fd5 25563fi
cd9a469c 25564
daad4fd5 25565fi
cd9a469c 25566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25567$as_echo "$libgfor_cv_have_working_stat" >&6; }
6992582a 25568if test x"$libgfor_cv_have_working_stat" = xyes; then
daad4fd5 25569
cd9a469c 25570$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
daad4fd5 25571
25572fi
25573
3b99ec70 25574# Check whether __mingw_snprintf() is present
25575
cd9a469c 25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25577$as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
f00f02a3 25578if ${libgfor_cv_have_mingw_snprintf+:} false; then :
cd9a469c 25579 $as_echo_n "(cached) " >&6
3b99ec70 25580else
25581
25582 if test x$gcc_no_link = xyes; then
f00f02a3 25583 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
3b99ec70 25584fi
cd9a469c 25585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3b99ec70 25586/* end confdefs.h. */
25587
25588#include <stdio.h>
25589extern int __mingw_snprintf (char *, size_t, const char *, ...);
25590
25591int
25592main ()
25593{
25594
25595__mingw_snprintf (NULL, 0, "%d\n", 1);
25596
25597 ;
25598 return 0;
25599}
25600_ACEOF
cd9a469c 25601if ac_fn_c_try_link "$LINENO"; then :
6992582a 25602 eval "libgfor_cv_have_mingw_snprintf=yes"
3b99ec70 25603else
cd9a469c 25604 eval "libgfor_cv_have_mingw_snprintf=no"
3b99ec70 25605fi
cd9a469c 25606rm -f core conftest.err conftest.$ac_objext \
25607 conftest$ac_exeext conftest.$ac_ext
3b99ec70 25608
25609fi
cd9a469c 25610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25611$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
6992582a 25612 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
3b99ec70 25613
cd9a469c 25614$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
3b99ec70 25615
25616 fi
25617
25618
d9d975ae 25619# Check whether libquadmath should be used
25620# Check whether --enable-libquadmath-support was given.
25621if test "${enable_libquadmath_support+set}" = set; then :
25622 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25623else
25624 ENABLE_LIBQUADMATH_SUPPORT=yes
25625fi
25626
25627enable_libquadmath_support=
25628if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25629 enable_libquadmath_support=no
25630fi
25631
25632# Check whether we have a __float128 type, depends on enable_libquadmath_support
87969c8c 25633
25634 LIBQUADSPEC=
d9d975ae 25635
25636 if test "x$enable_libquadmath_support" != xno; then
25637
87969c8c 25638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25639$as_echo_n "checking whether we have a usable __float128 type... " >&6; }
f00f02a3 25640if ${libgfor_cv_have_float128+:} false; then :
87969c8c 25641 $as_echo_n "(cached) " >&6
25642else
25643
9af9660c 25644 if test x$gcc_no_link = xyes; then
25645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 25646/* end confdefs.h. */
25647
9af9660c 25648 typedef _Complex float __attribute__((mode(TC))) __complex128;
25649
25650 __float128 foo (__float128 x)
25651 {
25652
25653 __complex128 z1, z2;
25654
25655 z1 = x;
25656 z2 = x / 7.Q;
25657 z2 /= z1;
25658
25659 return (__float128) z2;
25660 }
25661
25662 __float128 bar (__float128 x)
25663 {
25664 return x * __builtin_huge_valq ();
25665 }
87969c8c 25666
25667int
25668main ()
25669{
25670
9af9660c 25671 foo (1.2Q);
25672 bar (1.2Q);
87969c8c 25673
9af9660c 25674 ;
25675 return 0;
25676}
25677_ACEOF
25678if ac_fn_c_try_compile "$LINENO"; then :
87969c8c 25679
9af9660c 25680 libgfor_cv_have_float128=yes
87969c8c 25681
9af9660c 25682else
25683
25684 libgfor_cv_have_float128=no
25685
25686fi
25687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25688else
25689 if test x$gcc_no_link = xyes; then
f00f02a3 25690 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9af9660c 25691fi
25692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25693/* end confdefs.h. */
25694
25695 typedef _Complex float __attribute__((mode(TC))) __complex128;
25696
25697 __float128 foo (__float128 x)
25698 {
25699
25700 __complex128 z1, z2;
25701
25702 z1 = x;
25703 z2 = x / 7.Q;
25704 z2 /= z1;
25705
25706 return (__float128) z2;
25707 }
25708
25709 __float128 bar (__float128 x)
25710 {
25711 return x * __builtin_huge_valq ();
25712 }
25713
25714int
25715main ()
25716{
25717
25718 foo (1.2Q);
25719 bar (1.2Q);
87969c8c 25720
25721 ;
25722 return 0;
25723}
25724_ACEOF
25725if ac_fn_c_try_link "$LINENO"; then :
9af9660c 25726
25727 libgfor_cv_have_float128=yes
25728
87969c8c 25729else
9af9660c 25730
25731 libgfor_cv_have_float128=no
25732
87969c8c 25733fi
25734rm -f core conftest.err conftest.$ac_objext \
25735 conftest$ac_exeext conftest.$ac_ext
9af9660c 25736fi
87969c8c 25737fi
25738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25739$as_echo "$libgfor_cv_have_float128" >&6; }
25740
25741 if test "x$libgfor_cv_have_float128" = xyes; then
25742
25743$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25744
25745
25746 ac_xsave_c_werror_flag=$ac_c_werror_flag
b14cf757 25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25748$as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
f00f02a3 25749if ${libgfor_cv_have_as_needed+:} false; then :
87969c8c 25750 $as_echo_n "(cached) " >&6
25751else
25752
b14cf757 25753 # Test for native Solaris options first.
25754 # No whitespace after -z to pass it through -Wl.
25755 libgfor_cv_as_needed_option="-zignore"
25756 libgfor_cv_no_as_needed_option="-zrecord"
87969c8c 25757 save_LDFLAGS="$LDFLAGS"
b14cf757 25758 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
87969c8c 25759 libgfor_cv_have_as_needed=no
25760
25761ac_c_werror_flag=yes
25762 if test x$gcc_no_link = xyes; then
f00f02a3 25763 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
87969c8c 25764fi
25765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766/* end confdefs.h. */
25767
25768int
25769main ()
25770{
25771
25772 ;
25773 return 0;
25774}
25775_ACEOF
25776if ac_fn_c_try_link "$LINENO"; then :
25777 libgfor_cv_have_as_needed=yes
25778else
25779 libgfor_cv_have_as_needed=no
25780fi
25781rm -f core conftest.err conftest.$ac_objext \
25782 conftest$ac_exeext conftest.$ac_ext
25783 LDFLAGS="$save_LDFLAGS"
b14cf757 25784 if test "x$libgfor_cv_have_as_needed" = xno; then
25785 libgfor_cv_as_needed_option="--as-needed"
25786 libgfor_cv_no_as_needed_option="--no-as-needed"
25787 save_LDFLAGS="$LDFLAGS"
25788 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25789 libgfor_cv_have_as_needed=no
25790
25791ac_c_werror_flag=yes
25792 if test x$gcc_no_link = xyes; then
f00f02a3 25793 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b14cf757 25794fi
25795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25796/* end confdefs.h. */
25797
25798int
25799main ()
25800{
25801
25802 ;
25803 return 0;
25804}
25805_ACEOF
25806if ac_fn_c_try_link "$LINENO"; then :
25807 libgfor_cv_have_as_needed=yes
25808else
25809 libgfor_cv_have_as_needed=no
25810fi
25811rm -f core conftest.err conftest.$ac_objext \
25812 conftest$ac_exeext conftest.$ac_ext
25813 LDFLAGS="$save_LDFLAGS"
25814 fi
87969c8c 25815 ac_c_werror_flag=$ac_xsave_c_werror_flag
25816
25817fi
25818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25819$as_echo "$libgfor_cv_have_as_needed" >&6; }
25820
25821 if test "x$libgfor_cv_have_as_needed" = xyes; then
b14cf757 25822 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
87969c8c 25823 else
25824 LIBQUADSPEC="-lquadmath"
25825 fi
25826 if test -f ../libquadmath/libquadmath.la; then
25827 LIBQUADLIB=../libquadmath/libquadmath.la
25828 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25829 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25830 else
25831 LIBQUADLIB="-lquadmath"
25832 LIBQUADLIB_DEP=
25833 LIBQUADINCLUDE=
25834 fi
25835 fi
d9d975ae 25836 else
25837 # for --disable-quadmath
25838 LIBQUADLIB=
25839 LIBQUADLIB_DEP=
25840 LIBQUADINCLUDE=
25841 fi
87969c8c 25842
25843
25844
25845
25846
25847
25848 if test "x$libgfor_cv_have_float128" = xyes; then
25849 LIBGFOR_BUILD_QUAD_TRUE=
25850 LIBGFOR_BUILD_QUAD_FALSE='#'
25851else
25852 LIBGFOR_BUILD_QUAD_TRUE='#'
25853 LIBGFOR_BUILD_QUAD_FALSE=
25854fi
25855
25856
25857
8c84a5de 25858# Check for GNU libc feenableexcept
cd9a469c 25859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25860$as_echo_n "checking for feenableexcept in -lm... " >&6; }
f00f02a3 25861if ${ac_cv_lib_m_feenableexcept+:} false; then :
cd9a469c 25862 $as_echo_n "(cached) " >&6
8c84a5de 25863else
25864 ac_check_lib_save_LIBS=$LIBS
25865LIBS="-lm $LIBS"
25866if test x$gcc_no_link = xyes; then
f00f02a3 25867 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8c84a5de 25868fi
cd9a469c 25869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8c84a5de 25870/* end confdefs.h. */
25871
cd9a469c 25872/* Override any GCC internal prototype to avoid an error.
25873 Use char because int might match the return type of a GCC
25874 builtin and then its argument prototype would still apply. */
8c84a5de 25875#ifdef __cplusplus
25876extern "C"
25877#endif
8c84a5de 25878char feenableexcept ();
25879int
25880main ()
25881{
cd9a469c 25882return feenableexcept ();
8c84a5de 25883 ;
25884 return 0;
25885}
25886_ACEOF
cd9a469c 25887if ac_fn_c_try_link "$LINENO"; then :
8c84a5de 25888 ac_cv_lib_m_feenableexcept=yes
25889else
cd9a469c 25890 ac_cv_lib_m_feenableexcept=no
8c84a5de 25891fi
cd9a469c 25892rm -f core conftest.err conftest.$ac_objext \
25893 conftest$ac_exeext conftest.$ac_ext
8c84a5de 25894LIBS=$ac_check_lib_save_LIBS
25895fi
cd9a469c 25896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25897$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
f00f02a3 25898if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
8c84a5de 25899 have_feenableexcept=yes
cd9a469c 25900$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
aaa798ba 25901
25902fi
25903
aaa798ba 25904
126b6848 25905# At least for glibc, clock_gettime is in librt. But don't
d90d0997 25906# pull that in if it still doesn't give us the function we want. This
25907# test is copied from libgomp, and modified to not link in -lrt as
25908# libgfortran calls clock_gettime via a weak reference if it's found
25909# in librt.
20dc315f 25910if test "$ac_cv_func_clock_gettime" = no; then
a2c0dc0f 25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25912$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
f00f02a3 25913if ${ac_cv_lib_rt_clock_gettime+:} false; then :
a2c0dc0f 25914 $as_echo_n "(cached) " >&6
25915else
25916 ac_check_lib_save_LIBS=$LIBS
25917LIBS="-lrt $LIBS"
25918if test x$gcc_no_link = xyes; then
f00f02a3 25919 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
a2c0dc0f 25920fi
25921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25922/* end confdefs.h. */
25923
25924/* Override any GCC internal prototype to avoid an error.
25925 Use char because int might match the return type of a GCC
25926 builtin and then its argument prototype would still apply. */
25927#ifdef __cplusplus
25928extern "C"
25929#endif
25930char clock_gettime ();
25931int
25932main ()
25933{
25934return clock_gettime ();
25935 ;
25936 return 0;
25937}
25938_ACEOF
25939if ac_fn_c_try_link "$LINENO"; then :
25940 ac_cv_lib_rt_clock_gettime=yes
25941else
25942 ac_cv_lib_rt_clock_gettime=no
25943fi
25944rm -f core conftest.err conftest.$ac_objext \
25945 conftest$ac_exeext conftest.$ac_ext
25946LIBS=$ac_check_lib_save_LIBS
25947fi
25948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25949$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
f00f02a3 25950if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
a2c0dc0f 25951
d90d0997 25952$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
a2c0dc0f 25953
25954fi
25955
25956fi
25957
cd9a469c 25958# Check for SysV fpsetmask
aaa798ba 25959
cd9a469c 25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25961$as_echo_n "checking whether fpsetmask is present... " >&6; }
f00f02a3 25962if ${libgfor_cv_have_fpsetmask+:} false; then :
cd9a469c 25963 $as_echo_n "(cached) " >&6
25964else
aaa798ba 25965
cd9a469c 25966 if test x$gcc_no_link = xyes; then
f00f02a3 25967 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cd9a469c 25968fi
25969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25970/* end confdefs.h. */
aaa798ba 25971
cd9a469c 25972#if HAVE_FLOATINGPOINT_H
25973# include <floatingpoint.h>
25974#endif /* HAVE_FLOATINGPOINT_H */
25975#if HAVE_IEEEFP_H
25976# include <ieeefp.h>
25977#endif /* HAVE_IEEEFP_H */
aaa798ba 25978int
25979main ()
25980{
cd9a469c 25981fpsetmask(0);
aaa798ba 25982 ;
25983 return 0;
25984}
25985_ACEOF
cd9a469c 25986if ac_fn_c_try_link "$LINENO"; then :
25987 eval "libgfor_cv_have_fpsetmask=yes"
aaa798ba 25988else
cd9a469c 25989 eval "libgfor_cv_have_fpsetmask=no"
25990fi
25991rm -f core conftest.err conftest.$ac_objext \
25992 conftest$ac_exeext conftest.$ac_ext
aaa798ba 25993
aaa798ba 25994fi
cd9a469c 25995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25996$as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25997 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
b00fa2cf 25998 have_fpsetmask=yes
cd9a469c 25999
26000$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26001
26002 fi
26003
dd81f5d9 26004ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
c4d9d1ea 26005#ifdef HAVE_IEEEFP_H
dd81f5d9 26006#include <ieeefp.h>
c4d9d1ea 26007#endif
dd81f5d9 26008#include <math.h>
26009
f1fd8f6e 26010"
f00f02a3 26011if test "x$ac_cv_type_fp_except" = xyes; then :
f1fd8f6e 26012
26013cat >>confdefs.h <<_ACEOF
26014#define HAVE_FP_EXCEPT 1
26015_ACEOF
26016
26017
26018fi
dd81f5d9 26019ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
c4d9d1ea 26020#ifdef HAVE_IEEEFP_H
dd81f5d9 26021#include <ieeefp.h>
c4d9d1ea 26022#endif
dd81f5d9 26023#include <math.h>
26024
f1fd8f6e 26025"
f00f02a3 26026if test "x$ac_cv_type_fp_except_t" = xyes; then :
f1fd8f6e 26027
26028cat >>confdefs.h <<_ACEOF
26029#define HAVE_FP_EXCEPT_T 1
26030_ACEOF
26031
26032
eb429e06 26033fi
26034
dd81f5d9 26035ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
c4d9d1ea 26036#ifdef HAVE_IEEEFP_H
dd81f5d9 26037#include <ieeefp.h>
c4d9d1ea 26038#endif
dd81f5d9 26039#include <math.h>
26040
eb429e06 26041"
f00f02a3 26042if test "x$ac_cv_type_fp_rnd" = xyes; then :
eb429e06 26043
26044cat >>confdefs.h <<_ACEOF
26045#define HAVE_FP_RND 1
26046_ACEOF
26047
26048
26049fi
dd81f5d9 26050ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
c4d9d1ea 26051#ifdef HAVE_IEEEFP_H
dd81f5d9 26052#include <ieeefp.h>
c4d9d1ea 26053#endif
dd81f5d9 26054#include <math.h>
26055
eb429e06 26056"
f00f02a3 26057if test "x$ac_cv_type_fp_rnd_t" = xyes; then :
eb429e06 26058
26059cat >>confdefs.h <<_ACEOF
26060#define HAVE_FP_RND_T 1
26061_ACEOF
26062
26063
f1fd8f6e 26064fi
26065
cd9a469c 26066
53b9b372 26067# Check whether we have fpsetsticky or fpresetsticky
26068ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
f00f02a3 26069if test "x$ac_cv_func_fpsetsticky" = xyes; then :
53b9b372 26070 have_fpsetsticky=yes
26071$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26072
26073fi
26074
26075ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
f00f02a3 26076if test "x$ac_cv_func_fpresetsticky" = xyes; then :
53b9b372 26077 have_fpresetsticky=yes
26078$as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26079
26080fi
26081
26082
cd9a469c 26083# Check for AIX fp_trap and fp_enable
26084ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
f00f02a3 26085if test "x$ac_cv_func_fp_trap" = xyes; then :
cd9a469c 26086 have_fp_trap=yes
26087$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26088
aaa798ba 26089fi
cd9a469c 26090
26091ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
f00f02a3 26092if test "x$ac_cv_func_fp_enable" = xyes; then :
aaa798ba 26093 have_fp_enable=yes
cd9a469c 26094$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
aaa798ba 26095
26096fi
26097
26098
a3180a39 26099# Check if _SOFT_FLOAT is defined
26100
26101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
26102$as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
f00f02a3 26103if ${ac_cv_defined__SOFT_FLOAT+:} false; then :
a3180a39 26104 $as_echo_n "(cached) " >&6
26105else
26106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26107/* end confdefs.h. */
26108
26109int
26110main ()
26111{
26112
26113 #ifdef _SOFT_FLOAT
26114 int ok;
26115 #else
26116 choke me
26117 #endif
26118
26119 ;
26120 return 0;
26121}
26122_ACEOF
26123if ac_fn_c_try_compile "$LINENO"; then :
26124 ac_cv_defined__SOFT_FLOAT=yes
26125else
26126 ac_cv_defined__SOFT_FLOAT=no
26127fi
26128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26129fi
26130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
26131$as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
26132if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
26133 have_soft_float=yes
26134fi
26135
8c84a5de 26136# Runs configure.host to set up necessary host-dependent shell variables.
26137# We then display a message about it, and propagate them through the
26138# build chain.
26139. ${srcdir}/configure.host
cd9a469c 26140{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26141$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
d566c3e0 26142{ $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26143$as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
8c84a5de 26144FPU_HOST_HEADER=config/${fpu_host}.h
26145
26146
d566c3e0 26147# Whether we will build the IEEE modules
26148 if test x${ieee_support} = xyes; then
26149 IEEE_SUPPORT_TRUE=
26150 IEEE_SUPPORT_FALSE='#'
26151else
26152 IEEE_SUPPORT_TRUE='#'
26153 IEEE_SUPPORT_FALSE=
26154fi
26155
26156
26157
72934c53 26158# Some targets require additional compiler options for IEEE compatibility.
26159IEEE_FLAGS="${ieee_flags}"
26160
26161
d78db4a0 26162
26163# Check for POSIX getpwuid_r
26164#
26165# There are two versions of getpwuid_r, the POSIX one with 5
26166# arguments, and another one with 4 arguments used by at least HP-UX
26167# 10.2.
26168if test "$ac_cv_func_getpwuid_r" = "yes"; then
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26170$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
f00f02a3 26171if ${libgfor_cv_posix_getpwuid_r+:} false; then :
d78db4a0 26172 $as_echo_n "(cached) " >&6
26173else
26174
26175 if test x$gcc_no_link = xyes; then
f00f02a3 26176 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d78db4a0 26177fi
26178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26179/* end confdefs.h. */
26180
26181#include <stdio.h>
26182#include <sys/types.h>
26183#include <pwd.h>
26184int
26185main ()
26186{
26187
26188 getpwuid_r(0, NULL, NULL, 0, NULL);
26189
26190 ;
26191 return 0;
26192}
26193_ACEOF
26194if ac_fn_c_try_link "$LINENO"; then :
26195 libgfor_cv_posix_getpwuid_r="yes"
26196else
26197 libgfor_cv_posix_getpwuid_r="no"
26198fi
26199rm -f core conftest.err conftest.$ac_objext \
26200 conftest$ac_exeext conftest.$ac_ext
26201fi
26202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26203$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26204fi
26205if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26206
26207$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26208
26209fi
26210
26211
7b6cb5bd 26212# Check out attribute support.
26213
cd9a469c 26214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26215$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
f00f02a3 26216if ${libgfor_cv_have_attribute_visibility+:} false; then :
cd9a469c 26217 $as_echo_n "(cached) " >&6
7b6cb5bd 26218else
26219
26220 save_CFLAGS="$CFLAGS"
26221 CFLAGS="$CFLAGS -Werror"
cd9a469c 26222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7b6cb5bd 26223/* end confdefs.h. */
26224void __attribute__((visibility("hidden"))) foo(void) { }
26225int
26226main ()
26227{
26228
26229 ;
26230 return 0;
26231}
26232_ACEOF
cd9a469c 26233if ac_fn_c_try_compile "$LINENO"; then :
6992582a 26234 libgfor_cv_have_attribute_visibility=yes
7b6cb5bd 26235else
cd9a469c 26236 libgfor_cv_have_attribute_visibility=no
7b6cb5bd 26237fi
cd9a469c 26238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7b6cb5bd 26239 CFLAGS="$save_CFLAGS"
26240fi
cd9a469c 26241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26242$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6992582a 26243 if test $libgfor_cv_have_attribute_visibility = yes; then
7b6cb5bd 26244
cd9a469c 26245$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7b6cb5bd 26246
26247 fi
26248
cd9a469c 26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26250$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
f00f02a3 26251if ${libgfor_cv_have_attribute_alias+:} false; then :
cd9a469c 26252 $as_echo_n "(cached) " >&6
7b6cb5bd 26253else
26254
b52ee437 26255 if test x$gcc_no_link = xyes; then
f00f02a3 26256 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 26257fi
cd9a469c 26258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7b6cb5bd 26259/* end confdefs.h. */
26260
7b6cb5bd 26261void foo(void) { }
5a2b0c34 26262extern void bar(void) __attribute__((alias("foo")));
7b6cb5bd 26263int
26264main ()
26265{
26266bar();
26267 ;
26268 return 0;
26269}
26270_ACEOF
cd9a469c 26271if ac_fn_c_try_link "$LINENO"; then :
6992582a 26272 libgfor_cv_have_attribute_alias=yes
7b6cb5bd 26273else
cd9a469c 26274 libgfor_cv_have_attribute_alias=no
7b6cb5bd 26275fi
cd9a469c 26276rm -f core conftest.err conftest.$ac_objext \
26277 conftest$ac_exeext conftest.$ac_ext
7b6cb5bd 26278fi
cd9a469c 26279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26280$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6992582a 26281 if test $libgfor_cv_have_attribute_alias = yes; then
7b6cb5bd 26282
cd9a469c 26283$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7b6cb5bd 26284
26285 fi
26286
75c0d535 26287# Check out atomic builtins support.
60c514ba 26288
75c0d535 26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5
26290$as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; }
26291if ${libgfor_cv_have_atomic_fetch_add+:} false; then :
cd9a469c 26292 $as_echo_n "(cached) " >&6
60c514ba 26293else
26294
26295 if test x$gcc_no_link = xyes; then
f00f02a3 26296 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
60c514ba 26297fi
cd9a469c 26298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60c514ba 26299/* end confdefs.h. */
26300int foovar = 0;
26301int
26302main ()
26303{
26304
75c0d535 26305if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL);
26306if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL);
60c514ba 26307 ;
26308 return 0;
26309}
26310_ACEOF
cd9a469c 26311if ac_fn_c_try_link "$LINENO"; then :
75c0d535 26312 libgfor_cv_have_atomic_fetch_add=yes
60c514ba 26313else
75c0d535 26314 libgfor_cv_have_atomic_fetch_add=no
60c514ba 26315fi
cd9a469c 26316rm -f core conftest.err conftest.$ac_objext \
26317 conftest$ac_exeext conftest.$ac_ext
60c514ba 26318fi
75c0d535 26319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5
26320$as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; }
26321 if test $libgfor_cv_have_atomic_fetch_add = yes; then
60c514ba 26322
75c0d535 26323$as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h
60c514ba 26324
26325 fi
26326
04c14146 26327# Check out #pragma weak.
26328
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26330$as_echo_n "checking whether pragma weak works... " >&6; }
f00f02a3 26331if ${libgfor_cv_have_pragma_weak+:} false; then :
04c14146 26332 $as_echo_n "(cached) " >&6
26333else
26334
26335 gfor_save_CFLAGS="$CFLAGS"
26336 CFLAGS="$CFLAGS -Wunknown-pragmas"
26337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26338/* end confdefs.h. */
26339
26340void foo (void);
26341#pragma weak foo
26342
26343int
26344main ()
26345{
26346if (foo) foo ();
26347 ;
26348 return 0;
26349}
26350_ACEOF
26351if ac_fn_c_try_compile "$LINENO"; then :
26352 libgfor_cv_have_pragma_weak=yes
26353else
26354 libgfor_cv_have_pragma_weak=no
26355fi
26356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26357fi
26358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26359$as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26360 if test $libgfor_cv_have_pragma_weak = yes; then
26361
26362$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26363
26364 fi
26365 case "$host" in
26366 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26367
26368$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26369
26370 ;;
26371 esac
26372
1d9726df 26373# Check out weakref support.
60c514ba 26374
1d9726df 26375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26376$as_echo_n "checking whether the target supports weakref... " >&6; }
f00f02a3 26377if ${libgfor_cv_have_weakref+:} false; then :
cd9a469c 26378 $as_echo_n "(cached) " >&6
60c514ba 26379else
26380
1d9726df 26381 save_CFLAGS="$CFLAGS"
26382 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26383 if test x$gcc_no_link = xyes; then
f00f02a3 26384 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1d9726df 26385fi
26386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60c514ba 26387/* end confdefs.h. */
b9a8e1d9 26388
1d9726df 26389static int mytoto (int) __attribute__((__weakref__("toto")));
b9a8e1d9 26390
60c514ba 26391int
26392main ()
26393{
1d9726df 26394return (mytoto != 0);
60c514ba 26395 ;
26396 return 0;
26397}
26398_ACEOF
1d9726df 26399if ac_fn_c_try_link "$LINENO"; then :
26400 libgfor_cv_have_weakref=yes
60c514ba 26401else
1d9726df 26402 libgfor_cv_have_weakref=no
60c514ba 26403fi
1d9726df 26404rm -f core conftest.err conftest.$ac_objext \
26405 conftest$ac_exeext conftest.$ac_ext
26406 CFLAGS="$save_CFLAGS"
60c514ba 26407fi
1d9726df 26408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26409$as_echo "$libgfor_cv_have_weakref" >&6; }
26410 if test $libgfor_cv_have_weakref = yes; then
60c514ba 26411
1d9726df 26412$as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
60c514ba 26413
26414 fi
26415
1dc95e51 26416# Various other checks on target
26417
cd9a469c 26418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26419$as_echo_n "checking whether the target can unlink an open file... " >&6; }
f00f02a3 26420if ${libgfor_cv_have_unlink_open_file+:} false; then :
cd9a469c 26421 $as_echo_n "(cached) " >&6
1dc95e51 26422else
26423
cd9a469c 26424 if test "$cross_compiling" = yes; then :
1dc95e51 26425
26426case "${target}" in
6992582a 26427 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26428 *) libgfor_cv_have_unlink_open_file=yes;;
1dc95e51 26429esac
26430else
cd9a469c 26431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1dc95e51 26432/* end confdefs.h. */
26433
26434#include <errno.h>
26435#include <fcntl.h>
26436#include <unistd.h>
26437#include <sys/stat.h>
26438
26439int main ()
26440{
26441 int fd;
26442
ec55604a 26443 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
1dc95e51 26444 if (fd <= 0)
26445 return 0;
26446 if (unlink ("testfile") == -1)
26447 return 1;
26448 write (fd, "This is a test\n", 15);
26449 close (fd);
26450
ec55604a 26451 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
1dc95e51 26452 return 0;
26453 else
26454 return 1;
26455}
26456_ACEOF
cd9a469c 26457if ac_fn_c_try_run "$LINENO"; then :
6992582a 26458 libgfor_cv_have_unlink_open_file=yes
1dc95e51 26459else
cd9a469c 26460 libgfor_cv_have_unlink_open_file=no
1dc95e51 26461fi
cd9a469c 26462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26463 conftest.$ac_objext conftest.beam conftest.$ac_ext
1dc95e51 26464fi
cd9a469c 26465
1dc95e51 26466fi
cd9a469c 26467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26468$as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
6992582a 26469if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
1dc95e51 26470
cd9a469c 26471$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
1dc95e51 26472
26473fi
26474
cf55c3cf 26475# Check whether line terminator is LF or CRLF
26476
cd9a469c 26477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26478$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
f00f02a3 26479if ${libgfor_cv_have_crlf+:} false; then :
cd9a469c 26480 $as_echo_n "(cached) " >&6
cf55c3cf 26481else
26482
cd9a469c 26483 if test "$cross_compiling" = yes; then :
cf55c3cf 26484
26485case "${target}" in
6992582a 26486 *mingw*) libgfor_cv_have_crlf=yes ;;
26487 *) libgfor_cv_have_crlf=no;;
cf55c3cf 26488esac
26489else
cd9a469c 26490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cf55c3cf 26491/* end confdefs.h. */
26492
26493/* This test program should exit with status 0 if system uses a CRLF as
26494 line terminator, and status 1 otherwise.
26495 Since it is used to check for mingw systems, and should return 0 in any
26496 other case, in case of a failure we will not use CRLF. */
26497#include <sys/stat.h>
26498#include <stdlib.h>
26499#include <fcntl.h>
26500#include <stdio.h>
26501
26502int main ()
26503{
26504#ifndef O_BINARY
26505 exit(1);
26506#else
26507 int fd, bytes;
26508 char buff[5];
26509
26510 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26511 if (fd < 0)
26512 exit(1);
26513 if (write (fd, "\n", 1) < 0)
26514 perror ("write");
26515
26516 close (fd);
26517
26518 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26519 exit(1);
26520 bytes = read (fd, buff, 5);
26521 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26522 exit(0);
26523 else
26524 exit(1);
26525#endif
26526}
26527_ACEOF
cd9a469c 26528if ac_fn_c_try_run "$LINENO"; then :
6992582a 26529 libgfor_cv_have_crlf=yes
cf55c3cf 26530else
cd9a469c 26531 libgfor_cv_have_crlf=no
cf55c3cf 26532fi
cd9a469c 26533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26534 conftest.$ac_objext conftest.beam conftest.$ac_ext
cf55c3cf 26535fi
cd9a469c 26536
cf55c3cf 26537fi
cd9a469c 26538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26539$as_echo "$libgfor_cv_have_crlf" >&6; }
6992582a 26540if test x"$libgfor_cv_have_crlf" = xyes; then
cf55c3cf 26541
cd9a469c 26542$as_echo "#define HAVE_CRLF 1" >>confdefs.h
cf55c3cf 26543
26544fi
26545
25df644f 26546# Check whether we support AVX extensions
26547
26548 ac_save_CFLAGS="$CFLAGS"
26549 CFLAGS="-O2 -mavx"
26550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26551/* end confdefs.h. */
26552
26553 void _mm256_zeroall (void)
26554 {
26555 __builtin_ia32_vzeroall ();
26556 }
26557int
26558main ()
26559{
26560
26561 ;
26562 return 0;
26563}
26564_ACEOF
26565if ac_fn_c_try_compile "$LINENO"; then :
26566
26567$as_echo "#define HAVE_AVX 1" >>confdefs.h
26568
26569fi
26570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26571 CFLAGS="$ac_save_CFLAGS"
26572
26573
26574# Check wether we support AVX2 extensions
26575
26576 ac_save_CFLAGS="$CFLAGS"
26577 CFLAGS="-O2 -mavx2"
26578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26579/* end confdefs.h. */
26580
26581 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26582 __v4di
26583 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26584 {
26585 return __builtin_ia32_andnotsi256 (__X, __Y);
26586 }
26587int
26588main ()
26589{
26590
26591 ;
26592 return 0;
26593}
26594_ACEOF
26595if ac_fn_c_try_compile "$LINENO"; then :
26596
26597$as_echo "#define HAVE_AVX2 1" >>confdefs.h
26598
26599fi
26600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26601 CFLAGS="$ac_save_CFLAGS"
26602
26603
26604# Check wether we support AVX512f extensions
26605
26606 ac_save_CFLAGS="$CFLAGS"
26607 CFLAGS="-O2 -mavx512f"
26608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26609/* end confdefs.h. */
26610
26611 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26612 __m512d _mm512_add (__m512d a)
26613 {
d6c831fb 26614 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26615 /* For -m64/-mx32 also verify that code will work even if
26616 the target uses call saved zmm16+ and needs to emit
26617 unwind info for them (e.g. on mingw). See PR79127. */
26618#ifdef __x86_64__
26619 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
26620#endif
26621 return b;
25df644f 26622 }
26623int
26624main ()
26625{
26626
26627 ;
26628 return 0;
26629}
26630_ACEOF
26631if ac_fn_c_try_compile "$LINENO"; then :
26632
26633$as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26634
26635fi
26636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26637 CFLAGS="$ac_save_CFLAGS"
26638
26639
b4e409cb 26640# Check for FMA3 extensions
26641
26642 ac_save_CFLAGS="$CFLAGS"
26643 CFLAGS="-O2 -mfma -mno-fma4"
26644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26645/* end confdefs.h. */
26646
3803be45 26647 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26648 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26649 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
b4e409cb 26650 {
3803be45 26651 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26652 (__v4sf)__B,
26653 (__v4sf)__C);
b4e409cb 26654 }
26655int
26656main ()
26657{
26658
26659 ;
26660 return 0;
26661}
26662_ACEOF
26663if ac_fn_c_try_compile "$LINENO"; then :
26664
26665$as_echo "#define HAVE_FMA3 1" >>confdefs.h
26666
26667fi
26668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26669 CFLAGS="$ac_save_CFLAGS"
26670
26671
26672# Check for FMA4 extensions
26673
26674 ac_save_CFLAGS="$CFLAGS"
26675 CFLAGS="-O2 -mfma4 -mno-fma"
26676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26677/* end confdefs.h. */
26678
3803be45 26679 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26680 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26681 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
b4e409cb 26682 {
3803be45 26683 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26684 (__v4sf)__B,
26685 (__v4sf)__C);
b4e409cb 26686 }
26687int
26688main ()
26689{
26690
26691 ;
26692 return 0;
26693}
26694_ACEOF
26695if ac_fn_c_try_compile "$LINENO"; then :
26696
26697$as_echo "#define HAVE_FMA4 1" >>confdefs.h
26698
26699fi
26700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26701 CFLAGS="$ac_save_CFLAGS"
26702
26703
26704# Check if AVX128 works
26705
26706 ac_save_CFLAGS="$CFLAGS"
26707 CFLAGS="-O2 -mavx -mprefer-avx128"
26708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26709/* end confdefs.h. */
26710
26711 void foo()
26712 {
26713 }
26714int
26715main ()
26716{
26717
26718 ;
26719 return 0;
26720}
26721_ACEOF
26722if ac_fn_c_try_compile "$LINENO"; then :
26723
26724$as_echo "#define HAVE_AVX128 1" >>confdefs.h
26725
26726 if true; then
26727 HAVE_AVX128_TRUE=
26728 HAVE_AVX128_FALSE='#'
26729else
26730 HAVE_AVX128_TRUE='#'
26731 HAVE_AVX128_FALSE=
26732fi
26733
a1a7ecea 26734else
26735 if false; then
26736 HAVE_AVX128_TRUE=
26737 HAVE_AVX128_FALSE='#'
26738else
26739 HAVE_AVX128_TRUE='#'
26740 HAVE_AVX128_FALSE=
26741fi
26742
b4e409cb 26743fi
26744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26745 CFLAGS="$ac_save_CFLAGS"
26746
26747
0812bb06 26748# Determine what GCC version number to use in filesystem paths.
26749
26750 get_gcc_base_ver="cat"
26751
26752# Check whether --with-gcc-major-version-only was given.
26753if test "${with_gcc_major_version_only+set}" = set; then :
26754 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
124c259e 26755 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
0812bb06 26756 fi
26757
26758fi
26759
26760
26761
26762
4ee9c684 26763cat >confcache <<\_ACEOF
26764# This file is a shell script that caches the results of configure
26765# tests run on this system so they can be shared between configure
26766# scripts and configure runs, see configure's option --config-cache.
26767# It is not useful on other systems. If it contains results you don't
26768# want to keep, you may remove or edit it.
26769#
26770# config.status only pays attention to the cache file if you give it
26771# the --recheck option to rerun configure.
26772#
26773# `ac_cv_env_foo' variables (set or unset) will be overridden when
26774# loading this file, other *unset* `ac_cv_foo' will be assigned the
26775# following values.
26776
26777_ACEOF
26778
26779# The following way of writing the cache mishandles newlines in values,
26780# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 26781# So, we kill variables containing newlines.
4ee9c684 26782# Ultrix sh set writes to stderr and can't be redirected directly,
26783# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 26784(
26785 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26786 eval ac_val=\$$ac_var
26787 case $ac_val in #(
26788 *${as_nl}*)
26789 case $ac_var in #(
26790 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26791$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26792 esac
26793 case $ac_var in #(
26794 _ | IFS | as_nl) ;; #(
26795 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26796 *) { eval $ac_var=; unset $ac_var;} ;;
26797 esac ;;
26798 esac
26799 done
26800
4ee9c684 26801 (set) 2>&1 |
cd9a469c 26802 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26803 *${as_nl}ac_space=\ *)
26804 # `set' does not quote correctly, so add quotes: double-quote
26805 # substitution turns \\\\ into \\, and sed turns \\ into \.
4ee9c684 26806 sed -n \
26807 "s/'/'\\\\''/g;
26808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 26809 ;; #(
4ee9c684 26810 *)
26811 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 26812 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4ee9c684 26813 ;;
cd9a469c 26814 esac |
26815 sort
26816) |
4ee9c684 26817 sed '
cd9a469c 26818 /^ac_cv_env_/b end
4ee9c684 26819 t clear
cd9a469c 26820 :clear
4ee9c684 26821 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26822 t end
cd9a469c 26823 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26824 :end' >>confcache
26825if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26826 if test -w "$cache_file"; then
f00f02a3 26827 if test "x$cache_file" != "x/dev/null"; then
cd9a469c 26828 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26829$as_echo "$as_me: updating cache $cache_file" >&6;}
f00f02a3 26830 if test ! -f "$cache_file" || test -h "$cache_file"; then
26831 cat confcache >"$cache_file"
26832 else
26833 case $cache_file in #(
26834 */* | ?:*)
26835 mv -f confcache "$cache_file"$$ &&
26836 mv -f "$cache_file"$$ "$cache_file" ;; #(
26837 *)
26838 mv -f confcache "$cache_file" ;;
26839 esac
26840 fi
26841 fi
4ee9c684 26842 else
cd9a469c 26843 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26844$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4ee9c684 26845 fi
26846fi
26847rm -f confcache
26848
90973b19 26849if test ${multilib} = yes; then
26850 multilib_arg="--enable-multilib"
4ee9c684 26851else
90973b19 26852 multilib_arg=
4ee9c684 26853fi
4ee9c684 26854
87969c8c 26855# Write our Makefile and spec file.
26856ac_config_files="$ac_config_files Makefile libgfortran.spec"
90973b19 26857
4ee9c684 26858cat >confcache <<\_ACEOF
26859# This file is a shell script that caches the results of configure
26860# tests run on this system so they can be shared between configure
26861# scripts and configure runs, see configure's option --config-cache.
26862# It is not useful on other systems. If it contains results you don't
26863# want to keep, you may remove or edit it.
26864#
26865# config.status only pays attention to the cache file if you give it
26866# the --recheck option to rerun configure.
26867#
26868# `ac_cv_env_foo' variables (set or unset) will be overridden when
26869# loading this file, other *unset* `ac_cv_foo' will be assigned the
26870# following values.
26871
26872_ACEOF
26873
26874# The following way of writing the cache mishandles newlines in values,
26875# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 26876# So, we kill variables containing newlines.
4ee9c684 26877# Ultrix sh set writes to stderr and can't be redirected directly,
26878# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 26879(
26880 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26881 eval ac_val=\$$ac_var
26882 case $ac_val in #(
26883 *${as_nl}*)
26884 case $ac_var in #(
26885 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26886$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26887 esac
26888 case $ac_var in #(
26889 _ | IFS | as_nl) ;; #(
26890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26891 *) { eval $ac_var=; unset $ac_var;} ;;
26892 esac ;;
26893 esac
26894 done
26895
4ee9c684 26896 (set) 2>&1 |
cd9a469c 26897 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26898 *${as_nl}ac_space=\ *)
26899 # `set' does not quote correctly, so add quotes: double-quote
26900 # substitution turns \\\\ into \\, and sed turns \\ into \.
4ee9c684 26901 sed -n \
26902 "s/'/'\\\\''/g;
26903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 26904 ;; #(
4ee9c684 26905 *)
26906 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 26907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4ee9c684 26908 ;;
cd9a469c 26909 esac |
26910 sort
26911) |
4ee9c684 26912 sed '
cd9a469c 26913 /^ac_cv_env_/b end
4ee9c684 26914 t clear
cd9a469c 26915 :clear
4ee9c684 26916 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26917 t end
cd9a469c 26918 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26919 :end' >>confcache
26920if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26921 if test -w "$cache_file"; then
f00f02a3 26922 if test "x$cache_file" != "x/dev/null"; then
cd9a469c 26923 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26924$as_echo "$as_me: updating cache $cache_file" >&6;}
f00f02a3 26925 if test ! -f "$cache_file" || test -h "$cache_file"; then
26926 cat confcache >"$cache_file"
26927 else
26928 case $cache_file in #(
26929 */* | ?:*)
26930 mv -f confcache "$cache_file"$$ &&
26931 mv -f "$cache_file"$$ "$cache_file" ;; #(
26932 *)
26933 mv -f confcache "$cache_file" ;;
26934 esac
26935 fi
26936 fi
4ee9c684 26937 else
cd9a469c 26938 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26939$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4ee9c684 26940 fi
26941fi
26942rm -f confcache
26943
26944test "x$prefix" = xNONE && prefix=$ac_default_prefix
26945# Let make expand exec_prefix.
26946test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26947
4ee9c684 26948DEFS=-DHAVE_CONFIG_H
26949
26950ac_libobjs=
26951ac_ltlibobjs=
f00f02a3 26952U=
4ee9c684 26953for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26954 # 1. Remove the extension, and $U if already installed.
cd9a469c 26955 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26956 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26957 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26958 # will be set to the directory where LIBOBJS objects are built.
26959 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26960 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4ee9c684 26961done
26962LIBOBJS=$ac_libobjs
26963
26964LTLIBOBJS=$ac_ltlibobjs
26965
26966
93773f82 26967if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
f00f02a3 26968 as_fn_error $? "conditional \"onestep\" was never defined.
cd9a469c 26969Usually this means the macro was only invoked conditionally." "$LINENO" 5
26970fi
f00f02a3 26971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26972$as_echo_n "checking that generated files are newer than configure... " >&6; }
26973 if test -n "$am_sleep_pid"; then
26974 # Hide warnings about reused PIDs.
26975 wait $am_sleep_pid 2>/dev/null
26976 fi
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26978$as_echo "done" >&6; }
cd9a469c 26979 if test -n "$EXEEXT"; then
26980 am__EXEEXT_TRUE=
26981 am__EXEEXT_FALSE='#'
26982else
26983 am__EXEEXT_TRUE='#'
26984 am__EXEEXT_FALSE=
93773f82 26985fi
cd9a469c 26986
4ee9c684 26987if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
f00f02a3 26988 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cd9a469c 26989Usually this means the macro was only invoked conditionally." "$LINENO" 5
4ee9c684 26990fi
2fd61f51 26991if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
f00f02a3 26992 as_fn_error $? "conditional \"AMDEP\" was never defined.
cd9a469c 26993Usually this means the macro was only invoked conditionally." "$LINENO" 5
2fd61f51 26994fi
26995if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
f00f02a3 26996 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cd9a469c 26997Usually this means the macro was only invoked conditionally." "$LINENO" 5
2fd61f51 26998fi
d5d92632 26999if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
f00f02a3 27000 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
d5d92632 27001Usually this means the macro was only invoked conditionally." "$LINENO" 5
27002fi
ce1a737c 27003if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
f00f02a3 27004 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
cd9a469c 27005Usually this means the macro was only invoked conditionally." "$LINENO" 5
ce1a737c 27006fi
019fb48a 27007if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
f00f02a3 27008 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
019fb48a 27009Usually this means the macro was only invoked conditionally." "$LINENO" 5
27010fi
27011if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
f00f02a3 27012 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
019fb48a 27013Usually this means the macro was only invoked conditionally." "$LINENO" 5
27014fi
eb00e55c 27015if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
f00f02a3 27016 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined.
eb00e55c 27017Usually this means the macro was only invoked conditionally." "$LINENO" 5
27018fi
18ce903b 27019if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
f00f02a3 27020 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
18ce903b 27021Usually this means the macro was only invoked conditionally." "$LINENO" 5
27022fi
87969c8c 27023if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
f00f02a3 27024 as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
87969c8c 27025Usually this means the macro was only invoked conditionally." "$LINENO" 5
27026fi
d566c3e0 27027if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
f00f02a3 27028 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined.
d566c3e0 27029Usually this means the macro was only invoked conditionally." "$LINENO" 5
27030fi
b4e409cb 27031if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
f00f02a3 27032 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
b4e409cb 27033Usually this means the macro was only invoked conditionally." "$LINENO" 5
27034fi
a1a7ecea 27035if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
f00f02a3 27036 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
a1a7ecea 27037Usually this means the macro was only invoked conditionally." "$LINENO" 5
27038fi
4ee9c684 27039
f00f02a3 27040: "${CONFIG_STATUS=./config.status}"
cd9a469c 27041ac_write_fail=0
4ee9c684 27042ac_clean_files_save=$ac_clean_files
27043ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 27044{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27045$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27046as_write_fail=0
27047cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4ee9c684 27048#! $SHELL
27049# Generated by $as_me.
27050# Run this file to recreate the current configuration.
27051# Compiler output produced by configure, useful for debugging
27052# configure, is in config.log if it exists.
27053
27054debug=false
27055ac_cs_recheck=false
27056ac_cs_silent=false
4ee9c684 27057
cd9a469c 27058SHELL=\${CONFIG_SHELL-$SHELL}
27059export SHELL
27060_ASEOF
27061cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27062## -------------------- ##
27063## M4sh Initialization. ##
27064## -------------------- ##
27065
27066# Be more Bourne compatible
27067DUALCASE=1; export DUALCASE # for MKS sh
27068if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4ee9c684 27069 emulate sh
27070 NULLCMD=:
cd9a469c 27071 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4ee9c684 27072 # is contrary to our usage. Disable this feature.
27073 alias -g '${1+"$@"}'='"$@"'
cd9a469c 27074 setopt NO_GLOB_SUBST
27075else
27076 case `(set -o) 2>/dev/null` in #(
27077 *posix*) :
27078 set -o posix ;; #(
27079 *) :
27080 ;;
27081esac
4ee9c684 27082fi
4ee9c684 27083
cd9a469c 27084
27085as_nl='
27086'
27087export as_nl
27088# Printing a long string crashes Solaris 7 /usr/bin/printf.
27089as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27090as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27091as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27092# Prefer a ksh shell builtin over an external printf program on Solaris,
27093# but without wasting forks for bash or zsh.
27094if test -z "$BASH_VERSION$ZSH_VERSION" \
27095 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27096 as_echo='print -r --'
27097 as_echo_n='print -rn --'
27098elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27099 as_echo='printf %s\n'
27100 as_echo_n='printf %s'
27101else
27102 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27103 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27104 as_echo_n='/usr/ucb/echo -n'
27105 else
27106 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27107 as_echo_n_body='eval
27108 arg=$1;
27109 case $arg in #(
27110 *"$as_nl"*)
27111 expr "X$arg" : "X\\(.*\\)$as_nl";
27112 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27113 esac;
27114 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27115 '
27116 export as_echo_n_body
27117 as_echo_n='sh -c $as_echo_n_body as_echo'
27118 fi
27119 export as_echo_body
27120 as_echo='sh -c $as_echo_body as_echo'
27121fi
27122
27123# The user is always right.
27124if test "${PATH_SEPARATOR+set}" != set; then
27125 PATH_SEPARATOR=:
27126 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27127 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27128 PATH_SEPARATOR=';'
27129 }
4ee9c684 27130fi
27131
27132
cd9a469c 27133# IFS
27134# We need space, tab and new line, in precisely that order. Quoting is
27135# there to prevent editors from complaining about space-tab.
27136# (If _AS_PATH_WALK were called with IFS unset, it would disable word
27137# splitting by setting IFS to empty value.)
27138IFS=" "" $as_nl"
27139
27140# Find who we are. Look in the path if we contain no directory separator.
f00f02a3 27141as_myself=
cd9a469c 27142case $0 in #((
27143 *[\\/]* ) as_myself=$0 ;;
27144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27145for as_dir in $PATH
27146do
27147 IFS=$as_save_IFS
27148 test -z "$as_dir" && as_dir=.
27149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27150 done
27151IFS=$as_save_IFS
27152
27153 ;;
27154esac
27155# We did not find ourselves, most probably we were run as `sh COMMAND'
27156# in which case we are not to be found in the path.
27157if test "x$as_myself" = x; then
27158 as_myself=$0
27159fi
27160if test ! -f "$as_myself"; then
27161 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27162 exit 1
27163fi
27164
27165# Unset variables that we do not need and which cause bugs (e.g. in
27166# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27167# suppresses any "Segmentation fault" message there. '((' could
27168# trigger a bug in pdksh 5.2.14.
27169for as_var in BASH_ENV ENV MAIL MAILPATH
27170do eval test x\${$as_var+set} = xset \
27171 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27172done
4ee9c684 27173PS1='$ '
27174PS2='> '
27175PS4='+ '
27176
27177# NLS nuisances.
cd9a469c 27178LC_ALL=C
27179export LC_ALL
27180LANGUAGE=C
27181export LANGUAGE
27182
27183# CDPATH.
27184(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27185
27186
f00f02a3 27187# as_fn_error STATUS ERROR [LINENO LOG_FD]
27188# ----------------------------------------
cd9a469c 27189# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27190# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
f00f02a3 27191# script with STATUS, using 1 if that was 0.
cd9a469c 27192as_fn_error ()
27193{
f00f02a3 27194 as_status=$1; test $as_status -eq 0 && as_status=1
27195 if test "$4"; then
27196 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27197 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4ee9c684 27198 fi
f00f02a3 27199 $as_echo "$as_me: error: $2" >&2
cd9a469c 27200 as_fn_exit $as_status
27201} # as_fn_error
27202
27203
27204# as_fn_set_status STATUS
27205# -----------------------
27206# Set $? to STATUS, without forking.
27207as_fn_set_status ()
27208{
27209 return $1
27210} # as_fn_set_status
27211
27212# as_fn_exit STATUS
27213# -----------------
27214# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27215as_fn_exit ()
27216{
27217 set +e
27218 as_fn_set_status $1
27219 exit $1
27220} # as_fn_exit
27221
27222# as_fn_unset VAR
27223# ---------------
27224# Portably unset VAR.
27225as_fn_unset ()
27226{
27227 { eval $1=; unset $1;}
27228}
27229as_unset=as_fn_unset
27230# as_fn_append VAR VALUE
27231# ----------------------
27232# Append the text in VALUE to the end of the definition contained in VAR. Take
27233# advantage of any shell optimizations that allow amortized linear growth over
27234# repeated appends, instead of the typical quadratic growth present in naive
27235# implementations.
27236if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27237 eval 'as_fn_append ()
27238 {
27239 eval $1+=\$2
27240 }'
27241else
27242 as_fn_append ()
27243 {
27244 eval $1=\$$1\$2
27245 }
27246fi # as_fn_append
27247
27248# as_fn_arith ARG...
27249# ------------------
27250# Perform arithmetic evaluation on the ARGs, and store the result in the
27251# global $as_val. Take advantage of shells that can avoid forks. The arguments
27252# must be portable across $(()) and expr.
27253if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27254 eval 'as_fn_arith ()
27255 {
27256 as_val=$(( $* ))
27257 }'
27258else
27259 as_fn_arith ()
27260 {
27261 as_val=`expr "$@" || test $? -eq 1`
27262 }
27263fi # as_fn_arith
4ee9c684 27264
cd9a469c 27265
27266if expr a : '\(a\)' >/dev/null 2>&1 &&
27267 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4ee9c684 27268 as_expr=expr
27269else
27270 as_expr=false
27271fi
27272
cd9a469c 27273if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4ee9c684 27274 as_basename=basename
27275else
27276 as_basename=false
27277fi
27278
cd9a469c 27279if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27280 as_dirname=dirname
27281else
27282 as_dirname=false
27283fi
4ee9c684 27284
cd9a469c 27285as_me=`$as_basename -- "$0" ||
4ee9c684 27286$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27287 X"$0" : 'X\(//\)$' \| \
cd9a469c 27288 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27289$as_echo X/"$0" |
27290 sed '/^.*\/\([^/][^/]*\)\/*$/{
27291 s//\1/
27292 q
27293 }
27294 /^X\/\(\/\/\)$/{
27295 s//\1/
27296 q
27297 }
27298 /^X\/\(\/\).*/{
27299 s//\1/
27300 q
27301 }
27302 s/.*/./; q'`
82eaf560 27303
82eaf560 27304# Avoid depending upon Character Ranges.
27305as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27306as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27307as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27308as_cr_digits='0123456789'
27309as_cr_alnum=$as_cr_Letters$as_cr_digits
27310
cd9a469c 27311ECHO_C= ECHO_N= ECHO_T=
27312case `echo -n x` in #(((((
27313-n*)
27314 case `echo 'xy\c'` in
27315 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27316 xy) ECHO_C='\c';;
27317 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27318 ECHO_T=' ';;
27319 esac;;
27320*)
27321 ECHO_N='-n';;
4ee9c684 27322esac
27323
cd9a469c 27324rm -f conf$$ conf$$.exe conf$$.file
27325if test -d conf$$.dir; then
27326 rm -f conf$$.dir/conf$$.file
4ee9c684 27327else
cd9a469c 27328 rm -f conf$$.dir
27329 mkdir conf$$.dir 2>/dev/null
4ee9c684 27330fi
cd9a469c 27331if (echo >conf$$.file) 2>/dev/null; then
27332 if ln -s conf$$.file conf$$ 2>/dev/null; then
82eaf560 27333 as_ln_s='ln -s'
cd9a469c 27334 # ... but there are two gotchas:
27335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f00f02a3 27337 # In both cases, we have to default to `cp -pR'.
cd9a469c 27338 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 27339 as_ln_s='cp -pR'
cd9a469c 27340 elif ln conf$$.file conf$$ 2>/dev/null; then
27341 as_ln_s=ln
27342 else
f00f02a3 27343 as_ln_s='cp -pR'
82eaf560 27344 fi
4ee9c684 27345else
f00f02a3 27346 as_ln_s='cp -pR'
4ee9c684 27347fi
cd9a469c 27348rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27349rmdir conf$$.dir 2>/dev/null
27350
27351
27352# as_fn_mkdir_p
27353# -------------
27354# Create "$as_dir" as a directory, including parents if necessary.
27355as_fn_mkdir_p ()
27356{
27357
27358 case $as_dir in #(
27359 -*) as_dir=./$as_dir;;
27360 esac
27361 test -d "$as_dir" || eval $as_mkdir_p || {
27362 as_dirs=
27363 while :; do
27364 case $as_dir in #(
27365 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27366 *) as_qdir=$as_dir;;
27367 esac
27368 as_dirs="'$as_qdir' $as_dirs"
27369 as_dir=`$as_dirname -- "$as_dir" ||
27370$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27371 X"$as_dir" : 'X\(//\)[^/]' \| \
27372 X"$as_dir" : 'X\(//\)$' \| \
27373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27374$as_echo X"$as_dir" |
27375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27376 s//\1/
27377 q
27378 }
27379 /^X\(\/\/\)[^/].*/{
27380 s//\1/
27381 q
27382 }
27383 /^X\(\/\/\)$/{
27384 s//\1/
27385 q
27386 }
27387 /^X\(\/\).*/{
27388 s//\1/
27389 q
27390 }
27391 s/.*/./; q'`
27392 test -d "$as_dir" && break
27393 done
27394 test -z "$as_dirs" || eval "mkdir $as_dirs"
f00f02a3 27395 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cd9a469c 27396
4ee9c684 27397
cd9a469c 27398} # as_fn_mkdir_p
4ee9c684 27399if mkdir -p . 2>/dev/null; then
cd9a469c 27400 as_mkdir_p='mkdir -p "$as_dir"'
4ee9c684 27401else
27402 test -d ./-p && rmdir ./-p
27403 as_mkdir_p=false
27404fi
27405
f00f02a3 27406
27407# as_fn_executable_p FILE
27408# -----------------------
27409# Test if FILE is an executable regular file.
27410as_fn_executable_p ()
27411{
27412 test -f "$1" && test -x "$1"
27413} # as_fn_executable_p
27414as_test_x='test -x'
27415as_executable_p=as_fn_executable_p
4ee9c684 27416
27417# Sed expression to map a string onto a valid CPP name.
27418as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27419
27420# Sed expression to map a string onto a valid variable name.
27421as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27422
27423
4ee9c684 27424exec 6>&1
cd9a469c 27425## ----------------------------------- ##
27426## Main body of $CONFIG_STATUS script. ##
27427## ----------------------------------- ##
27428_ASEOF
27429test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27430
27431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27432# Save the log message, to keep $0 and so on meaningful, and to
4ee9c684 27433# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 27434# values after options handling.
27435ac_log="
76c0a846 27436This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
f00f02a3 27437generated by GNU Autoconf 2.69. Invocation command line was
4ee9c684 27438
27439 CONFIG_FILES = $CONFIG_FILES
27440 CONFIG_HEADERS = $CONFIG_HEADERS
27441 CONFIG_LINKS = $CONFIG_LINKS
27442 CONFIG_COMMANDS = $CONFIG_COMMANDS
27443 $ $0 $@
27444
cd9a469c 27445on `(hostname || uname -n) 2>/dev/null | sed 1q`
27446"
27447
4ee9c684 27448_ACEOF
27449
cd9a469c 27450case $ac_config_files in *"
27451"*) set x $ac_config_files; shift; ac_config_files=$*;;
27452esac
a106dabe 27453
cd9a469c 27454case $ac_config_headers in *"
27455"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27456esac
82eaf560 27457
82eaf560 27458
cd9a469c 27459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27460# Files that config.status was made for.
27461config_files="$ac_config_files"
27462config_headers="$ac_config_headers"
27463config_commands="$ac_config_commands"
4ee9c684 27464
cd9a469c 27465_ACEOF
82eaf560 27466
cd9a469c 27467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4ee9c684 27468ac_cs_usage="\
cd9a469c 27469\`$as_me' instantiates files and other configuration actions
27470from templates according to the current configuration. Unless the files
27471and actions are specified as TAGs, all are instantiated by default.
4ee9c684 27472
cd9a469c 27473Usage: $0 [OPTION]... [TAG]...
4ee9c684 27474
27475 -h, --help print this help, then exit
cd9a469c 27476 -V, --version print version number and configuration settings, then exit
f00f02a3 27477 --config print configuration, then exit
cd9a469c 27478 -q, --quiet, --silent
27479 do not print progress messages
4ee9c684 27480 -d, --debug don't remove temporary files
27481 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 27482 --file=FILE[:TEMPLATE]
27483 instantiate the configuration file FILE
27484 --header=FILE[:TEMPLATE]
27485 instantiate the configuration header FILE
4ee9c684 27486
27487Configuration files:
27488$config_files
27489
27490Configuration headers:
27491$config_headers
27492
27493Configuration commands:
27494$config_commands
27495
cd9a469c 27496Report bugs to the package provider.
27497GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27498General help using GNU software: <http://www.gnu.org/gethelp/>."
82eaf560 27499
cd9a469c 27500_ACEOF
27501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 27502ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4ee9c684 27503ac_cs_version="\\
76c0a846 27504GNU Fortran Runtime Library config.status 0.3
f00f02a3 27505configured by $0, generated by GNU Autoconf 2.69,
27506 with options \\"\$ac_cs_config\\"
4ee9c684 27507
f00f02a3 27508Copyright (C) 2012 Free Software Foundation, Inc.
4ee9c684 27509This config.status script is free software; the Free Software Foundation
27510gives unlimited permission to copy, distribute and modify it."
cd9a469c 27511
27512ac_pwd='$ac_pwd'
27513srcdir='$srcdir'
27514INSTALL='$INSTALL'
27515MKDIR_P='$MKDIR_P'
27516AWK='$AWK'
27517test -n "\$AWK" || AWK=awk
4ee9c684 27518_ACEOF
27519
cd9a469c 27520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27521# The default lists apply if the user does not specify any file.
4ee9c684 27522ac_need_defaults=:
27523while test $# != 0
27524do
27525 case $1 in
f00f02a3 27526 --*=?*)
cd9a469c 27527 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27528 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4ee9c684 27529 ac_shift=:
27530 ;;
f00f02a3 27531 --*=)
27532 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27533 ac_optarg=
27534 ac_shift=:
27535 ;;
cd9a469c 27536 *)
4ee9c684 27537 ac_option=$1
27538 ac_optarg=$2
27539 ac_shift=shift
27540 ;;
4ee9c684 27541 esac
27542
27543 case $ac_option in
27544 # Handling of the options.
4ee9c684 27545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27546 ac_cs_recheck=: ;;
cd9a469c 27547 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27548 $as_echo "$ac_cs_version"; exit ;;
f00f02a3 27549 --config | --confi | --conf | --con | --co | --c )
27550 $as_echo "$ac_cs_config"; exit ;;
cd9a469c 27551 --debug | --debu | --deb | --de | --d | -d )
4ee9c684 27552 debug=: ;;
27553 --file | --fil | --fi | --f )
27554 $ac_shift
cd9a469c 27555 case $ac_optarg in
27556 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
f00f02a3 27557 '') as_fn_error $? "missing file argument" ;;
cd9a469c 27558 esac
27559 as_fn_append CONFIG_FILES " '$ac_optarg'"
4ee9c684 27560 ac_need_defaults=false;;
27561 --header | --heade | --head | --hea )
27562 $ac_shift
cd9a469c 27563 case $ac_optarg in
27564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27565 esac
27566 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4ee9c684 27567 ac_need_defaults=false;;
cd9a469c 27568 --he | --h)
27569 # Conflict between --help and --header
f00f02a3 27570 as_fn_error $? "ambiguous option: \`$1'
cd9a469c 27571Try \`$0 --help' for more information.";;
27572 --help | --hel | -h )
27573 $as_echo "$ac_cs_usage"; exit ;;
4ee9c684 27574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27575 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27576 ac_cs_silent=: ;;
27577
27578 # This is an error.
f00f02a3 27579 -*) as_fn_error $? "unrecognized option: \`$1'
cd9a469c 27580Try \`$0 --help' for more information." ;;
4ee9c684 27581
cd9a469c 27582 *) as_fn_append ac_config_targets " $1"
27583 ac_need_defaults=false ;;
4ee9c684 27584
27585 esac
27586 shift
27587done
27588
27589ac_configure_extra_args=
27590
27591if $ac_cs_silent; then
27592 exec 6>/dev/null
27593 ac_configure_extra_args="$ac_configure_extra_args --silent"
27594fi
27595
27596_ACEOF
cd9a469c 27597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4ee9c684 27598if \$ac_cs_recheck; then
f00f02a3 27599 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cd9a469c 27600 shift
27601 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27602 CONFIG_SHELL='$SHELL'
27603 export CONFIG_SHELL
27604 exec "\$@"
4ee9c684 27605fi
27606
542f9784 27607_ACEOF
cd9a469c 27608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27609exec 5>>config.log
27610{
27611 echo
27612 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27613## Running $as_me. ##
27614_ASBOX
27615 $as_echo "$ac_log"
27616} >&5
542f9784 27617
cd9a469c 27618_ACEOF
27619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
542f9784 27620#
cd9a469c 27621# INIT-COMMANDS
542f9784 27622#
27623
542f9784 27624srcdir="$srcdir"
27625host="$host"
27626target="$target"
27627with_multisubdir="$with_multisubdir"
27628with_multisrctop="$with_multisrctop"
27629with_target_subdir="$with_target_subdir"
27630ac_configure_args="${multilib_arg} ${ac_configure_args}"
27631multi_basedir="$multi_basedir"
27632CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27633CC="$CC"
eaae6999 27634CXX="$CXX"
27635GFORTRAN="$GFORTRAN"
f00f02a3 27636GDC="$GDC"
542f9784 27637AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27638
27639
27640# The HP-UX ksh and POSIX shell print the target directory to stdout
27641# if CDPATH is set.
27642(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27643
27644sed_quote_subst='$sed_quote_subst'
27645double_quote_subst='$double_quote_subst'
27646delay_variable_subst='$delay_variable_subst'
18ce903b 27647SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27648Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27649GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27650EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27651FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27652SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27653ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27654LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
e6408286 27655macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27656macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27657enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27658enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27659pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27660enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
e6408286 27661host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27662host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27663host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27664build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27665build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27666build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
e6408286 27667NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27668LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27669max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27670ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27671exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27672lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27673lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27674lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27675reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27676reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27677OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27678deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27679file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27680AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27681AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27682STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27683RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27684old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27685old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27686old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27687lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27688CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27689CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27690compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27691GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27692lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27693lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27694lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27695lt_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"`'
27696objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27697MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27698lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27699lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27700lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27701lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27702lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27703need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27704DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27705NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27706LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27707OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27708OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27709libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27710shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27711extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27712archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27713enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27714export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27715whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27716compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27717old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27718old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27719archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27720archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27721module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27722module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27723with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27724allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27725no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27726hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27727hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27728hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27729hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27730hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27731hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27732hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27733hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27734inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27735link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27736fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27737always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27738export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27739exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27740include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27741prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27742file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27743variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27744need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27745need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27746version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27747runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27748shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27749shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27750libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27751library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27752soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27753install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27754postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27755postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27756finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27757finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27758hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27759sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27760sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27761hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27762enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27763enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27764enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27765old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27766striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27767compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27768predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27769postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27770predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27771postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27772compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27773LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27774reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27775reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27776old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27777compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27778GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27779lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27780lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27781lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27782lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27783lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27784archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27785enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27786export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27787whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27788compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27789old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27790old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27791archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27792archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27793module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27794module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27795with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27796allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27797no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27798hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27799hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27800hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27801hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27802hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27803hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27804hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27805hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27806inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27807link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27808fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27809always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27810export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27811exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27812include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27813prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27814file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27815hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27816compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27817predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27818postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27819predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27820postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27821compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
542f9784 27822
27823LTCC='$LTCC'
27824LTCFLAGS='$LTCFLAGS'
27825compiler='$compiler_DEFAULT'
27826
e6408286 27827# A function that is used when there is no print builtin or printf.
27828func_fallback_echo ()
27829{
27830 eval 'cat <<_LTECHO_EOF
27831\$1
27832_LTECHO_EOF'
27833}
27834
542f9784 27835# Quote evaled strings.
18ce903b 27836for var in SED \
542f9784 27837GREP \
27838EGREP \
27839FGREP \
18ce903b 27840SHELL \
27841ECHO \
542f9784 27842LD \
27843NM \
27844LN_S \
27845lt_SP2NL \
27846lt_NL2SP \
27847reload_flag \
00aafda4 27848OBJDUMP \
542f9784 27849deplibs_check_method \
27850file_magic_cmd \
27851AR \
27852AR_FLAGS \
27853STRIP \
27854RANLIB \
27855CC \
27856CFLAGS \
27857compiler \
27858lt_cv_sys_global_symbol_pipe \
27859lt_cv_sys_global_symbol_to_cdecl \
27860lt_cv_sys_global_symbol_to_c_name_address \
00aafda4 27861lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
542f9784 27862lt_prog_compiler_no_builtin_flag \
27863lt_prog_compiler_wl \
27864lt_prog_compiler_pic \
27865lt_prog_compiler_static \
27866lt_cv_prog_compiler_c_o \
27867need_locks \
00aafda4 27868DSYMUTIL \
27869NMEDIT \
27870LIPO \
27871OTOOL \
27872OTOOL64 \
542f9784 27873shrext_cmds \
27874export_dynamic_flag_spec \
27875whole_archive_flag_spec \
27876compiler_needs_object \
27877with_gnu_ld \
27878allow_undefined_flag \
27879no_undefined_flag \
27880hardcode_libdir_flag_spec \
27881hardcode_libdir_flag_spec_ld \
27882hardcode_libdir_separator \
27883fix_srcfile_path \
27884exclude_expsyms \
27885include_expsyms \
27886file_list_spec \
27887variables_saved_for_relink \
27888libname_spec \
27889library_names_spec \
27890soname_spec \
e6408286 27891install_override_mode \
542f9784 27892finish_eval \
27893old_striplib \
27894striplib \
00aafda4 27895compiler_lib_search_dirs \
542f9784 27896predep_objects \
27897postdep_objects \
27898predeps \
27899postdeps \
27900compiler_lib_search_path \
27901LD_FC \
e6408286 27902reload_flag_FC \
542f9784 27903compiler_FC \
27904lt_prog_compiler_no_builtin_flag_FC \
27905lt_prog_compiler_wl_FC \
27906lt_prog_compiler_pic_FC \
27907lt_prog_compiler_static_FC \
27908lt_cv_prog_compiler_c_o_FC \
27909export_dynamic_flag_spec_FC \
27910whole_archive_flag_spec_FC \
27911compiler_needs_object_FC \
27912with_gnu_ld_FC \
27913allow_undefined_flag_FC \
27914no_undefined_flag_FC \
27915hardcode_libdir_flag_spec_FC \
27916hardcode_libdir_flag_spec_ld_FC \
27917hardcode_libdir_separator_FC \
27918fix_srcfile_path_FC \
27919exclude_expsyms_FC \
27920include_expsyms_FC \
27921file_list_spec_FC \
00aafda4 27922compiler_lib_search_dirs_FC \
542f9784 27923predep_objects_FC \
27924postdep_objects_FC \
27925predeps_FC \
27926postdeps_FC \
27927compiler_lib_search_path_FC; do
e6408286 27928 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 27929 *[\\\\\\\`\\"\\\$]*)
e6408286 27930 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
542f9784 27931 ;;
27932 *)
27933 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27934 ;;
27935 esac
27936done
27937
27938# Double-quote double-evaled strings.
27939for var in reload_cmds \
27940old_postinstall_cmds \
27941old_postuninstall_cmds \
27942old_archive_cmds \
27943extract_expsyms_cmds \
27944old_archive_from_new_cmds \
27945old_archive_from_expsyms_cmds \
27946archive_cmds \
27947archive_expsym_cmds \
27948module_cmds \
27949module_expsym_cmds \
27950export_symbols_cmds \
27951prelink_cmds \
27952postinstall_cmds \
27953postuninstall_cmds \
27954finish_cmds \
27955sys_lib_search_path_spec \
27956sys_lib_dlsearch_path_spec \
e6408286 27957reload_cmds_FC \
542f9784 27958old_archive_cmds_FC \
27959old_archive_from_new_cmds_FC \
27960old_archive_from_expsyms_cmds_FC \
27961archive_cmds_FC \
27962archive_expsym_cmds_FC \
27963module_cmds_FC \
27964module_expsym_cmds_FC \
27965export_symbols_cmds_FC \
27966prelink_cmds_FC; do
e6408286 27967 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 27968 *[\\\\\\\`\\"\\\$]*)
e6408286 27969 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
542f9784 27970 ;;
27971 *)
27972 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27973 ;;
27974 esac
27975done
27976
542f9784 27977ac_aux_dir='$ac_aux_dir'
27978xsi_shell='$xsi_shell'
27979lt_shell_append='$lt_shell_append'
27980
27981# See if we are running on zsh, and set the options which allow our
27982# commands through without removal of \ escapes INIT.
27983if test -n "\${ZSH_VERSION+set}" ; then
27984 setopt NO_GLOB_SUBST
27985fi
27986
27987
27988 PACKAGE='$PACKAGE'
27989 VERSION='$VERSION'
27990 TIMESTAMP='$TIMESTAMP'
27991 RM='$RM'
27992 ofile='$ofile'
27993
27994
4ee9c684 27995
4ee9c684 27996
a106dabe 27997
4ee9c684 27998
2069752c 27999GCC="$GCC"
28000CC="$CC"
28001acx_cv_header_stdint="$acx_cv_header_stdint"
28002acx_cv_type_int8_t="$acx_cv_type_int8_t"
28003acx_cv_type_int16_t="$acx_cv_type_int16_t"
28004acx_cv_type_int32_t="$acx_cv_type_int32_t"
28005acx_cv_type_int64_t="$acx_cv_type_int64_t"
28006acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
28007ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
28008ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
28009ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
28010ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
28011ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
56c15991 28012ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
28013ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
2069752c 28014ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
56c15991 28015
28016
4ee9c684 28017_ACEOF
28018
cd9a469c 28019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ff4425cf 28020
cd9a469c 28021# Handling of arguments.
4ee9c684 28022for ac_config_target in $ac_config_targets
28023do
cd9a469c 28024 case $ac_config_target in
28025 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28026 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28027 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28028 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28029 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
28030 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
87969c8c 28031 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
cd9a469c 28032
f00f02a3 28033 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4ee9c684 28034 esac
28035done
28036
cd9a469c 28037
4ee9c684 28038# If the user did not use the arguments to specify the items to instantiate,
28039# then the envvar interface is used. Set only those that are not.
28040# We use the long form for the default assignment because of an extremely
28041# bizarre bug on SunOS 4.1.3.
28042if $ac_need_defaults; then
28043 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28044 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28045 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28046fi
28047
28048# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 28049# simply because there is no reason against having it here, and in addition,
4ee9c684 28050# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 28051# Hook for its removal unless debugging.
28052# Note that there is a small window in which the directory will not be cleaned:
28053# after its creation but before its name has been assigned to `$tmp'.
4ee9c684 28054$debug ||
28055{
f00f02a3 28056 tmp= ac_tmp=
cd9a469c 28057 trap 'exit_status=$?
f00f02a3 28058 : "${ac_tmp:=$tmp}"
28059 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cd9a469c 28060' 0
28061 trap 'as_fn_exit 1' 1 2 13 15
4ee9c684 28062}
4ee9c684 28063# Create a (secure) tmp directory for tmp files.
28064
28065{
cd9a469c 28066 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f00f02a3 28067 test -d "$tmp"
4ee9c684 28068} ||
28069{
cd9a469c 28070 tmp=./conf$$-$RANDOM
28071 (umask 077 && mkdir "$tmp")
f00f02a3 28072} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28073ac_tmp=$tmp
cd9a469c 28074
28075# Set up the scripts for CONFIG_FILES section.
28076# No need to generate them if there are no CONFIG_FILES.
28077# This happens for instance with `./config.status config.h'.
28078if test -n "$CONFIG_FILES"; then
28079
28080
28081ac_cr=`echo X | tr X '\015'`
28082# On cygwin, bash can eat \r inside `` if the user requested igncr.
28083# But we know of no other shell where ac_cr would be empty at this
28084# point, so we can use a bashism as a fallback.
28085if test "x$ac_cr" = x; then
28086 eval ac_cr=\$\'\\r\'
28087fi
28088ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28089if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
f00f02a3 28090 ac_cs_awk_cr='\\r'
cd9a469c 28091else
28092 ac_cs_awk_cr=$ac_cr
28093fi
28094
f00f02a3 28095echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cd9a469c 28096_ACEOF
28097
28098
4ee9c684 28099{
cd9a469c 28100 echo "cat >conf$$subs.awk <<_ACEOF" &&
28101 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28102 echo "_ACEOF"
28103} >conf$$subs.sh ||
f00f02a3 28104 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28105ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cd9a469c 28106ac_delim='%!_!# '
28107for ac_last_try in false false false false false :; do
28108 . ./conf$$subs.sh ||
f00f02a3 28109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 28110
28111 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28112 if test $ac_delim_n = $ac_delim_num; then
28113 break
28114 elif $ac_last_try; then
f00f02a3 28115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 28116 else
28117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28118 fi
28119done
28120rm -f conf$$subs.sh
28121
28122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 28123cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cd9a469c 28124_ACEOF
28125sed -n '
28126h
28127s/^/S["/; s/!.*/"]=/
28128p
28129g
28130s/^[^!]*!//
28131:repl
28132t repl
28133s/'"$ac_delim"'$//
28134t delim
28135:nl
28136h
f00f02a3 28137s/\(.\{148\}\)..*/\1/
cd9a469c 28138t more1
28139s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28140p
28141n
28142b repl
28143:more1
28144s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28145p
28146g
28147s/.\{148\}//
28148t nl
28149:delim
28150h
f00f02a3 28151s/\(.\{148\}\)..*/\1/
cd9a469c 28152t more2
28153s/["\\]/\\&/g; s/^/"/; s/$/"/
28154p
28155b
28156:more2
28157s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28158p
28159g
28160s/.\{148\}//
28161t delim
28162' <conf$$subs.awk | sed '
28163/^[^""]/{
28164 N
28165 s/\n//
28166}
28167' >>$CONFIG_STATUS || ac_write_fail=1
28168rm -f conf$$subs.awk
28169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28170_ACAWK
f00f02a3 28171cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cd9a469c 28172 for (key in S) S_is_set[key] = 1
28173 FS = "\a"
28174
28175}
28176{
28177 line = $ 0
28178 nfields = split(line, field, "@")
28179 substed = 0
28180 len = length(field[1])
28181 for (i = 2; i < nfields; i++) {
28182 key = field[i]
28183 keylen = length(key)
28184 if (S_is_set[key]) {
28185 value = S[key]
28186 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28187 len += length(value) + length(field[++i])
28188 substed = 1
28189 } else
28190 len += 1 + keylen
28191 }
28192
28193 print line
4ee9c684 28194}
28195
cd9a469c 28196_ACAWK
28197_ACEOF
28198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28199if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28200 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28201else
28202 cat
f00f02a3 28203fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28204 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
82eaf560 28205_ACEOF
28206
f00f02a3 28207# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28208# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cd9a469c 28209# trailing colons and then remove the whole line if VPATH becomes empty
28210# (actually we leave an empty line to preserve line numbers).
28211if test "x$srcdir" = x.; then
f00f02a3 28212 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28213h
28214s///
28215s/^/:/
28216s/[ ]*$/:/
28217s/:\$(srcdir):/:/g
28218s/:\${srcdir}:/:/g
28219s/:@srcdir@:/:/g
28220s/^:*//
cd9a469c 28221s/:*$//
f00f02a3 28222x
28223s/\(=[ ]*\).*/\1/
28224G
28225s/\n//
cd9a469c 28226s/^[^=]*=[ ]*$//
28227}'
28228fi
82eaf560 28229
cd9a469c 28230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28231fi # test -n "$CONFIG_FILES"
4ee9c684 28232
cd9a469c 28233# Set up the scripts for CONFIG_HEADERS section.
28234# No need to generate them if there are no CONFIG_HEADERS.
28235# This happens for instance with `./config.status Makefile'.
28236if test -n "$CONFIG_HEADERS"; then
f00f02a3 28237cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cd9a469c 28238BEGIN {
28239_ACEOF
28240
28241# Transform confdefs.h into an awk script `defines.awk', embedded as
28242# here-document in config.status, that substitutes the proper values into
28243# config.h.in to produce config.h.
28244
28245# Create a delimiter string that does not exist in confdefs.h, to ease
28246# handling of long lines.
28247ac_delim='%!_!# '
28248for ac_last_try in false false :; do
f00f02a3 28249 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28250 if test -z "$ac_tt"; then
cd9a469c 28251 break
28252 elif $ac_last_try; then
f00f02a3 28253 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cd9a469c 28254 else
28255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
ff4425cf 28256 fi
cd9a469c 28257done
ce1a737c 28258
cd9a469c 28259# For the awk script, D is an array of macro values keyed by name,
28260# likewise P contains macro parameters if any. Preserve backslash
28261# newline sequences.
28262
28263ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28264sed -n '
28265s/.\{148\}/&'"$ac_delim"'/g
28266t rset
28267:rset
28268s/^[ ]*#[ ]*define[ ][ ]*/ /
28269t def
28270d
28271:def
28272s/\\$//
28273t bsnl
28274s/["\\]/\\&/g
28275s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28276D["\1"]=" \3"/p
28277s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28278d
28279:bsnl
28280s/["\\]/\\&/g
28281s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28282D["\1"]=" \3\\\\\\n"\\/p
28283t cont
28284s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28285t cont
28286d
28287:cont
28288n
28289s/.\{148\}/&'"$ac_delim"'/g
28290t clear
28291:clear
28292s/\\$//
28293t bsnlc
28294s/["\\]/\\&/g; s/^/"/; s/$/"/p
28295d
28296:bsnlc
28297s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28298b cont
28299' <confdefs.h | sed '
28300s/'"$ac_delim"'/"\\\
28301"/g' >>$CONFIG_STATUS || ac_write_fail=1
28302
28303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28304 for (key in D) D_is_set[key] = 1
28305 FS = "\a"
28306}
28307/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28308 line = \$ 0
28309 split(line, arg, " ")
28310 if (arg[1] == "#") {
28311 defundef = arg[2]
28312 mac1 = arg[3]
28313 } else {
28314 defundef = substr(arg[1], 2)
28315 mac1 = arg[2]
28316 }
28317 split(mac1, mac2, "(") #)
28318 macro = mac2[1]
28319 prefix = substr(line, 1, index(line, defundef) - 1)
28320 if (D_is_set[macro]) {
28321 # Preserve the white space surrounding the "#".
28322 print prefix "define", macro P[macro] D[macro]
28323 next
28324 } else {
28325 # Replace #undef with comments. This is necessary, for example,
28326 # in the case of _POSIX_SOURCE, which is predefined and required
28327 # on some systems where configure will not decide to define it.
28328 if (defundef == "undef") {
28329 print "/*", prefix defundef, macro, "*/"
28330 next
28331 }
28332 }
28333}
28334{ print }
28335_ACAWK
4ee9c684 28336_ACEOF
cd9a469c 28337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f00f02a3 28338 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cd9a469c 28339fi # test -n "$CONFIG_HEADERS"
28340
28341
28342eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28343shift
28344for ac_tag
28345do
28346 case $ac_tag in
28347 :[FHLC]) ac_mode=$ac_tag; continue;;
28348 esac
28349 case $ac_mode$ac_tag in
28350 :[FHL]*:*);;
f00f02a3 28351 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cd9a469c 28352 :[FH]-) ac_tag=-:-;;
28353 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28354 esac
28355 ac_save_IFS=$IFS
28356 IFS=:
28357 set x $ac_tag
28358 IFS=$ac_save_IFS
28359 shift
28360 ac_file=$1
28361 shift
28362
28363 case $ac_mode in
28364 :L) ac_source=$1;;
28365 :[FH])
28366 ac_file_inputs=
28367 for ac_f
28368 do
28369 case $ac_f in
f00f02a3 28370 -) ac_f="$ac_tmp/stdin";;
cd9a469c 28371 *) # Look for the file first in the build tree, then in the source tree
28372 # (if the path is not absolute). The absolute path cannot be DOS-style,
28373 # because $ac_f cannot contain `:'.
28374 test -f "$ac_f" ||
28375 case $ac_f in
28376 [\\/$]*) false;;
28377 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28378 esac ||
f00f02a3 28379 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cd9a469c 28380 esac
28381 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28382 as_fn_append ac_file_inputs " '$ac_f'"
28383 done
28384
28385 # Let's still pretend it is `configure' which instantiates (i.e., don't
28386 # use $as_me), people would be surprised to read:
28387 # /* config.h. Generated by config.status. */
28388 configure_input='Generated from '`
28389 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28390 `' by configure.'
28391 if test x"$ac_file" != x-; then
28392 configure_input="$ac_file. $configure_input"
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28394$as_echo "$as_me: creating $ac_file" >&6;}
28395 fi
28396 # Neutralize special characters interpreted by sed in replacement strings.
28397 case $configure_input in #(
28398 *\&* | *\|* | *\\* )
28399 ac_sed_conf_input=`$as_echo "$configure_input" |
28400 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28401 *) ac_sed_conf_input=$configure_input;;
28402 esac
28403
28404 case $ac_tag in
f00f02a3 28405 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28406 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cd9a469c 28407 esac
28408 ;;
4ee9c684 28409 esac
28410
cd9a469c 28411 ac_dir=`$as_dirname -- "$ac_file" ||
4ee9c684 28412$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28413 X"$ac_file" : 'X\(//\)[^/]' \| \
28414 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 28415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28416$as_echo X"$ac_file" |
28417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28418 s//\1/
28419 q
28420 }
28421 /^X\(\/\/\)[^/].*/{
28422 s//\1/
28423 q
28424 }
28425 /^X\(\/\/\)$/{
28426 s//\1/
28427 q
28428 }
28429 /^X\(\/\).*/{
28430 s//\1/
28431 q
28432 }
28433 s/.*/./; q'`
28434 as_dir="$ac_dir"; as_fn_mkdir_p
4ee9c684 28435 ac_builddir=.
28436
cd9a469c 28437case "$ac_dir" in
28438.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28439*)
28440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28441 # A ".." for each directory in $ac_dir_suffix.
28442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28443 case $ac_top_builddir_sub in
28444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28446 esac ;;
28447esac
28448ac_abs_top_builddir=$ac_pwd
28449ac_abs_builddir=$ac_pwd$ac_dir_suffix
28450# for backward compatibility:
28451ac_top_builddir=$ac_top_build_prefix
4ee9c684 28452
28453case $srcdir in
cd9a469c 28454 .) # We are building in place.
4ee9c684 28455 ac_srcdir=.
cd9a469c 28456 ac_top_srcdir=$ac_top_builddir_sub
28457 ac_abs_top_srcdir=$ac_pwd ;;
28458 [\\/]* | ?:[\\/]* ) # Absolute name.
4ee9c684 28459 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 28460 ac_top_srcdir=$srcdir
28461 ac_abs_top_srcdir=$srcdir ;;
28462 *) # Relative name.
28463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28464 ac_top_srcdir=$ac_top_build_prefix$srcdir
28465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4ee9c684 28466esac
cd9a469c 28467ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4ee9c684 28468
4ee9c684 28469
cd9a469c 28470 case $ac_mode in
28471 :F)
28472 #
28473 # CONFIG_FILE
28474 #
4ee9c684 28475
28476 case $INSTALL in
28477 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 28478 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28479 esac
28480 ac_MKDIR_P=$MKDIR_P
28481 case $MKDIR_P in
28482 [\\/$]* | ?:[\\/]* ) ;;
28483 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
4ee9c684 28484 esac
cd9a469c 28485_ACEOF
4ee9c684 28486
cd9a469c 28487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28488# If the template does not know about datarootdir, expand it.
28489# FIXME: This hack should be removed a few years after 2.60.
28490ac_datarootdir_hack=; ac_datarootdir_seen=
28491ac_sed_dataroot='
28492/datarootdir/ {
28493 p
28494 q
28495}
28496/@datadir@/p
28497/@docdir@/p
28498/@infodir@/p
28499/@localedir@/p
28500/@mandir@/p'
28501case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28502*datarootdir*) ac_datarootdir_seen=yes;;
28503*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28505$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28506_ACEOF
28507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28508 ac_datarootdir_hack='
28509 s&@datadir@&$datadir&g
28510 s&@docdir@&$docdir&g
28511 s&@infodir@&$infodir&g
28512 s&@localedir@&$localedir&g
28513 s&@mandir@&$mandir&g
28514 s&\\\${datarootdir}&$datarootdir&g' ;;
28515esac
a106dabe 28516_ACEOF
cd9a469c 28517
28518# Neutralize VPATH when `$srcdir' = `.'.
28519# Shell code in configure.ac might set extrasub.
28520# FIXME: do we really want to maintain this feature?
28521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28522ac_sed_extra="$ac_vpsub
4ee9c684 28523$extrasub
28524_ACEOF
cd9a469c 28525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4ee9c684 28526:t
28527/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 28528s|@configure_input@|$ac_sed_conf_input|;t t
28529s&@top_builddir@&$ac_top_builddir_sub&;t t
28530s&@top_build_prefix@&$ac_top_build_prefix&;t t
28531s&@srcdir@&$ac_srcdir&;t t
28532s&@abs_srcdir@&$ac_abs_srcdir&;t t
28533s&@top_srcdir@&$ac_top_srcdir&;t t
28534s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28535s&@builddir@&$ac_builddir&;t t
28536s&@abs_builddir@&$ac_abs_builddir&;t t
28537s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28538s&@INSTALL@&$ac_INSTALL&;t t
28539s&@MKDIR_P@&$ac_MKDIR_P&;t t
28540$ac_datarootdir_hack
28541"
f00f02a3 28542eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28543 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cd9a469c 28544
28545test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
f00f02a3 28546 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28547 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28548 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cd9a469c 28549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 28550which seems to be undefined. Please make sure it is defined" >&5
cd9a469c 28551$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 28552which seems to be undefined. Please make sure it is defined" >&2;}
cd9a469c 28553
f00f02a3 28554 rm -f "$ac_tmp/stdin"
4ee9c684 28555 case $ac_file in
f00f02a3 28556 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28557 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cd9a469c 28558 esac \
f00f02a3 28559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cd9a469c 28560 ;;
28561 :H)
28562 #
28563 # CONFIG_HEADER
28564 #
4ee9c684 28565 if test x"$ac_file" != x-; then
cd9a469c 28566 {
28567 $as_echo "/* $configure_input */" \
f00f02a3 28568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28569 } >"$ac_tmp/config.h" \
28570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28571 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cd9a469c 28572 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28573$as_echo "$as_me: $ac_file is unchanged" >&6;}
4ee9c684 28574 else
cd9a469c 28575 rm -f "$ac_file"
f00f02a3 28576 mv "$ac_tmp/config.h" "$ac_file" \
28577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4ee9c684 28578 fi
28579 else
cd9a469c 28580 $as_echo "/* $configure_input */" \
f00f02a3 28581 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28582 || as_fn_error $? "could not create -" "$LINENO" 5
4ee9c684 28583 fi
cd9a469c 28584# Compute "$ac_file"'s index in $config_headers.
28585_am_arg="$ac_file"
4ee9c684 28586_am_stamp_count=1
28587for _am_header in $config_headers :; do
28588 case $_am_header in
cd9a469c 28589 $_am_arg | $_am_arg:* )
4ee9c684 28590 break ;;
28591 * )
28592 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28593 esac
28594done
cd9a469c 28595echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28596$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28597 X"$_am_arg" : 'X\(//\)[^/]' \| \
28598 X"$_am_arg" : 'X\(//\)$' \| \
28599 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28600$as_echo X"$_am_arg" |
28601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28602 s//\1/
28603 q
28604 }
28605 /^X\(\/\/\)[^/].*/{
28606 s//\1/
28607 q
28608 }
28609 /^X\(\/\/\)$/{
28610 s//\1/
28611 q
28612 }
28613 /^X\(\/\).*/{
28614 s//\1/
28615 q
28616 }
28617 s/.*/./; q'`/stamp-h$_am_stamp_count
28618 ;;
82eaf560 28619
cd9a469c 28620 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28621$as_echo "$as_me: executing $ac_file commands" >&6;}
28622 ;;
28623 esac
4ee9c684 28624
28625
cd9a469c 28626 case $ac_file$ac_mode in
28627 "default-1":C)
90973b19 28628# Only add multilib support code if we just rebuilt the top-level
28629# Makefile.
28630case " $CONFIG_FILES " in
28631 *" Makefile "*)
28632 ac_file=Makefile . ${multi_basedir}/config-ml.in
28633 ;;
28634esac ;;
cd9a469c 28635 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
f00f02a3 28636 # Older Autoconf quotes --file arguments for eval, but not when files
cd9a469c 28637 # are listed without --file. Let's play safe and only enable the eval
28638 # if we detect the quoting.
28639 case $CONFIG_FILES in
28640 *\'*) eval set x "$CONFIG_FILES" ;;
28641 *) set x $CONFIG_FILES ;;
28642 esac
28643 shift
28644 for mf
28645 do
28646 # Strip MF so we end up with the name of the file.
28647 mf=`echo "$mf" | sed -e 's/:.*$//'`
28648 # Check whether this is an Automake generated Makefile or not.
f00f02a3 28649 # We used to match only the files named 'Makefile.in', but
cd9a469c 28650 # some people rename them; so instead we look at the file content.
28651 # Grep'ing the first line is not enough: some people post-process
28652 # each Makefile.in and add a new line on top of each file to say so.
28653 # Grep'ing the whole file is not good either: AIX grep has a line
28654 # limit of 2048, but all sed's we know have understand at least 4000.
28655 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28656 dirpart=`$as_dirname -- "$mf" ||
2fd61f51 28657$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28658 X"$mf" : 'X\(//\)[^/]' \| \
28659 X"$mf" : 'X\(//\)$' \| \
cd9a469c 28660 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28661$as_echo X"$mf" |
28662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28663 s//\1/
28664 q
28665 }
28666 /^X\(\/\/\)[^/].*/{
28667 s//\1/
28668 q
28669 }
28670 /^X\(\/\/\)$/{
28671 s//\1/
28672 q
28673 }
28674 /^X\(\/\).*/{
28675 s//\1/
28676 q
28677 }
28678 s/.*/./; q'`
28679 else
28680 continue
28681 fi
28682 # Extract the definition of DEPDIR, am__include, and am__quote
f00f02a3 28683 # from the Makefile without running 'make'.
cd9a469c 28684 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28685 test -z "$DEPDIR" && continue
28686 am__include=`sed -n 's/^am__include = //p' < "$mf"`
f00f02a3 28687 test -z "$am__include" && continue
cd9a469c 28688 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cd9a469c 28689 # Find all dependency output files, they are included files with
28690 # $(DEPDIR) in their names. We invoke sed twice because it is the
28691 # simplest approach to changing $(DEPDIR) to its actual value in the
28692 # expansion.
28693 for file in `sed -n "
28694 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
f00f02a3 28695 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cd9a469c 28696 # Make sure the directory exists.
28697 test -f "$dirpart/$file" && continue
28698 fdir=`$as_dirname -- "$file" ||
2fd61f51 28699$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28700 X"$file" : 'X\(//\)[^/]' \| \
28701 X"$file" : 'X\(//\)$' \| \
cd9a469c 28702 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28703$as_echo X"$file" |
28704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28705 s//\1/
28706 q
28707 }
28708 /^X\(\/\/\)[^/].*/{
28709 s//\1/
28710 q
28711 }
28712 /^X\(\/\/\)$/{
28713 s//\1/
28714 q
28715 }
28716 /^X\(\/\).*/{
28717 s//\1/
28718 q
28719 }
28720 s/.*/./; q'`
28721 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28722 # echo "creating $dirpart/$file"
28723 echo '# dummy' > "$dirpart/$file"
2fd61f51 28724 done
2fd61f51 28725 done
cd9a469c 28726}
542f9784 28727 ;;
cd9a469c 28728 "libtool":C)
542f9784 28729
28730 # See if we are running on zsh, and set the options which allow our
28731 # commands through without removal of \ escapes.
28732 if test -n "${ZSH_VERSION+set}" ; then
28733 setopt NO_GLOB_SUBST
28734 fi
28735
28736 cfgfile="${ofile}T"
28737 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28738 $RM "$cfgfile"
28739
28740 cat <<_LT_EOF >> "$cfgfile"
28741#! $SHELL
28742
28743# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
00aafda4 28744# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
542f9784 28745# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28746# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28747#
00aafda4 28748# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
e6408286 28749# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
00aafda4 28750# Written by Gordon Matzigkeit, 1996
542f9784 28751#
00aafda4 28752# This file is part of GNU Libtool.
542f9784 28753#
00aafda4 28754# GNU Libtool is free software; you can redistribute it and/or
28755# modify it under the terms of the GNU General Public License as
28756# published by the Free Software Foundation; either version 2 of
28757# the License, or (at your option) any later version.
542f9784 28758#
00aafda4 28759# As a special exception to the GNU General Public License,
28760# if you distribute this file as part of a program or library that
28761# is built using GNU Libtool, you may include this file under the
28762# same distribution terms that you use for the rest of that program.
542f9784 28763#
00aafda4 28764# GNU Libtool is distributed in the hope that it will be useful,
28765# but WITHOUT ANY WARRANTY; without even the implied warranty of
28766# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28767# GNU General Public License for more details.
542f9784 28768#
00aafda4 28769# You should have received a copy of the GNU General Public License
28770# along with GNU Libtool; see the file COPYING. If not, a copy
28771# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28772# obtained by writing to the Free Software Foundation, Inc.,
28773# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
542f9784 28774
28775
28776# The names of the tagged configurations supported by this script.
28777available_tags="FC "
28778
28779# ### BEGIN LIBTOOL CONFIG
28780
18ce903b 28781# A sed program that does not truncate output.
28782SED=$lt_SED
28783
28784# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28785Xsed="\$SED -e 1s/^X//"
28786
28787# A grep program that handles long lines.
28788GREP=$lt_GREP
28789
28790# An ERE matcher.
28791EGREP=$lt_EGREP
28792
28793# A literal string matcher.
28794FGREP=$lt_FGREP
28795
28796# Shell to use when invoking shell scripts.
28797SHELL=$lt_SHELL
28798
28799# An echo program that protects backslashes.
28800ECHO=$lt_ECHO
28801
542f9784 28802# Which release of libtool.m4 was used?
28803macro_version=$macro_version
28804macro_revision=$macro_revision
28805
28806# Whether or not to build shared libraries.
28807build_libtool_libs=$enable_shared
28808
28809# Whether or not to build static libraries.
28810build_old_libs=$enable_static
28811
28812# What type of objects to build.
28813pic_mode=$pic_mode
28814
28815# Whether or not to optimize for fast installation.
28816fast_install=$enable_fast_install
28817
28818# The host system.
28819host_alias=$host_alias
28820host=$host
28821host_os=$host_os
28822
28823# The build system.
28824build_alias=$build_alias
28825build=$build
28826build_os=$build_os
28827
542f9784 28828# A BSD- or MS-compatible name lister.
28829NM=$lt_NM
28830
28831# Whether we need soft or hard links.
28832LN_S=$lt_LN_S
28833
28834# What is the maximum length of a command?
28835max_cmd_len=$max_cmd_len
28836
28837# Object file suffix (normally "o").
28838objext=$ac_objext
28839
28840# Executable file suffix (normally "").
28841exeext=$exeext
28842
28843# whether the shell understands "unset".
28844lt_unset=$lt_unset
28845
28846# turn spaces into newlines.
28847SP2NL=$lt_lt_SP2NL
28848
28849# turn newlines into spaces.
28850NL2SP=$lt_lt_NL2SP
28851
00aafda4 28852# An object symbol dumper.
28853OBJDUMP=$lt_OBJDUMP
28854
542f9784 28855# Method to check whether dependent libraries are shared objects.
28856deplibs_check_method=$lt_deplibs_check_method
28857
28858# Command to use when deplibs_check_method == "file_magic".
28859file_magic_cmd=$lt_file_magic_cmd
28860
28861# The archiver.
28862AR=$lt_AR
28863AR_FLAGS=$lt_AR_FLAGS
28864
28865# A symbol stripping program.
28866STRIP=$lt_STRIP
28867
28868# Commands used to install an old-style archive.
28869RANLIB=$lt_RANLIB
28870old_postinstall_cmds=$lt_old_postinstall_cmds
28871old_postuninstall_cmds=$lt_old_postuninstall_cmds
28872
e6408286 28873# Whether to use a lock for old archive extraction.
28874lock_old_archive_extraction=$lock_old_archive_extraction
28875
542f9784 28876# A C compiler.
28877LTCC=$lt_CC
28878
28879# LTCC compiler flags.
28880LTCFLAGS=$lt_CFLAGS
28881
28882# Take the output of nm and produce a listing of raw symbols and C names.
28883global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28884
28885# Transform the output of nm in a proper C declaration.
28886global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28887
28888# Transform the output of nm in a C name address pair.
28889global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28890
00aafda4 28891# Transform the output of nm in a C name address pair when lib prefix is needed.
28892global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28893
542f9784 28894# The name of the directory that contains temporary libtool files.
28895objdir=$objdir
28896
542f9784 28897# Used to examine libraries when file_magic_cmd begins with "file".
28898MAGIC_CMD=$MAGIC_CMD
28899
28900# Must we lock files when doing compilation?
28901need_locks=$lt_need_locks
28902
00aafda4 28903# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28904DSYMUTIL=$lt_DSYMUTIL
28905
28906# Tool to change global to local symbols on Mac OS X.
28907NMEDIT=$lt_NMEDIT
28908
28909# Tool to manipulate fat objects and archives on Mac OS X.
28910LIPO=$lt_LIPO
28911
28912# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28913OTOOL=$lt_OTOOL
28914
28915# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28916OTOOL64=$lt_OTOOL64
28917
542f9784 28918# Old archive suffix (normally "a").
28919libext=$libext
28920
28921# Shared library suffix (normally ".so").
28922shrext_cmds=$lt_shrext_cmds
28923
28924# The commands to extract the exported symbol list from a shared archive.
28925extract_expsyms_cmds=$lt_extract_expsyms_cmds
28926
28927# Variables whose values should be saved in libtool wrapper scripts and
28928# restored at link time.
28929variables_saved_for_relink=$lt_variables_saved_for_relink
28930
28931# Do we need the "lib" prefix for modules?
28932need_lib_prefix=$need_lib_prefix
28933
28934# Do we need a version for libraries?
28935need_version=$need_version
28936
28937# Library versioning type.
28938version_type=$version_type
28939
28940# Shared library runtime path variable.
28941runpath_var=$runpath_var
28942
28943# Shared library path variable.
28944shlibpath_var=$shlibpath_var
28945
28946# Is shlibpath searched before the hard-coded library search path?
28947shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28948
28949# Format of library name prefix.
28950libname_spec=$lt_libname_spec
28951
28952# List of archive names. First name is the real one, the rest are links.
28953# The last name is the one that the linker finds with -lNAME
28954library_names_spec=$lt_library_names_spec
28955
28956# The coded name of the library, if different from the real name.
28957soname_spec=$lt_soname_spec
28958
e6408286 28959# Permission mode override for installation of shared libraries.
28960install_override_mode=$lt_install_override_mode
28961
542f9784 28962# Command to use after installation of a shared archive.
28963postinstall_cmds=$lt_postinstall_cmds
28964
28965# Command to use after uninstallation of a shared archive.
28966postuninstall_cmds=$lt_postuninstall_cmds
28967
28968# Commands used to finish a libtool library installation in a directory.
28969finish_cmds=$lt_finish_cmds
28970
28971# As "finish_cmds", except a single script fragment to be evaled but
28972# not shown.
28973finish_eval=$lt_finish_eval
28974
28975# Whether we should hardcode library paths into libraries.
28976hardcode_into_libs=$hardcode_into_libs
28977
28978# Compile-time system search path for libraries.
28979sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28980
28981# Run-time system search path for libraries.
28982sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28983
28984# Whether dlopen is supported.
28985dlopen_support=$enable_dlopen
28986
28987# Whether dlopen of programs is supported.
28988dlopen_self=$enable_dlopen_self
28989
28990# Whether dlopen of statically linked programs is supported.
28991dlopen_self_static=$enable_dlopen_self_static
28992
28993# Commands to strip libraries.
28994old_striplib=$lt_old_striplib
28995striplib=$lt_striplib
28996
28997
28998# The linker used to build libraries.
28999LD=$lt_LD
29000
e6408286 29001# How to create reloadable object files.
29002reload_flag=$lt_reload_flag
29003reload_cmds=$lt_reload_cmds
29004
542f9784 29005# Commands used to build an old-style archive.
29006old_archive_cmds=$lt_old_archive_cmds
29007
29008# A language specific compiler.
29009CC=$lt_compiler
29010
29011# Is the compiler the GNU compiler?
29012with_gcc=$GCC
29013
29014# Compiler flag to turn off builtin functions.
29015no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29016
29017# How to pass a linker flag through the compiler.
29018wl=$lt_lt_prog_compiler_wl
29019
29020# Additional compiler flags for building library objects.
29021pic_flag=$lt_lt_prog_compiler_pic
29022
29023# Compiler flag to prevent dynamic linking.
29024link_static_flag=$lt_lt_prog_compiler_static
29025
29026# Does compiler simultaneously support -c and -o options?
29027compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29028
29029# Whether or not to add -lc for building shared libraries.
29030build_libtool_need_lc=$archive_cmds_need_lc
29031
29032# Whether or not to disallow shared libs when runtime libs are static.
29033allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29034
29035# Compiler flag to allow reflexive dlopens.
29036export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29037
29038# Compiler flag to generate shared objects directly from archives.
29039whole_archive_flag_spec=$lt_whole_archive_flag_spec
29040
29041# Whether the compiler copes with passing no objects directly.
29042compiler_needs_object=$lt_compiler_needs_object
29043
29044# Create an old-style archive from a shared archive.
29045old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29046
29047# Create a temporary old-style archive to link instead of a shared archive.
29048old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29049
29050# Commands used to build a shared archive.
29051archive_cmds=$lt_archive_cmds
29052archive_expsym_cmds=$lt_archive_expsym_cmds
29053
29054# Commands used to build a loadable module if different from building
29055# a shared archive.
29056module_cmds=$lt_module_cmds
29057module_expsym_cmds=$lt_module_expsym_cmds
29058
29059# Whether we are building with GNU ld or not.
29060with_gnu_ld=$lt_with_gnu_ld
29061
29062# Flag that allows shared libraries with undefined symbols to be built.
29063allow_undefined_flag=$lt_allow_undefined_flag
29064
29065# Flag that enforces no undefined symbols.
29066no_undefined_flag=$lt_no_undefined_flag
29067
29068# Flag to hardcode \$libdir into a binary during linking.
29069# This must work even if \$libdir does not exist
29070hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29071
29072# If ld is used when linking, flag to hardcode \$libdir into a binary
29073# during linking. This must work even if \$libdir does not exist.
29074hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29075
29076# Whether we need a single "-rpath" flag with a separated argument.
29077hardcode_libdir_separator=$lt_hardcode_libdir_separator
29078
29079# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29080# DIR into the resulting binary.
29081hardcode_direct=$hardcode_direct
29082
29083# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29084# DIR into the resulting binary and the resulting library dependency is
29085# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29086# library is relocated.
29087hardcode_direct_absolute=$hardcode_direct_absolute
29088
29089# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29090# into the resulting binary.
29091hardcode_minus_L=$hardcode_minus_L
29092
29093# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29094# into the resulting binary.
29095hardcode_shlibpath_var=$hardcode_shlibpath_var
29096
29097# Set to "yes" if building a shared library automatically hardcodes DIR
29098# into the library and all subsequent libraries and executables linked
29099# against it.
29100hardcode_automatic=$hardcode_automatic
29101
29102# Set to yes if linker adds runtime paths of dependent libraries
29103# to runtime path list.
29104inherit_rpath=$inherit_rpath
29105
29106# Whether libtool must link a program against all its dependency libraries.
29107link_all_deplibs=$link_all_deplibs
29108
29109# Fix the shell variable \$srcfile for the compiler.
29110fix_srcfile_path=$lt_fix_srcfile_path
29111
29112# Set to "yes" if exported symbols are required.
29113always_export_symbols=$always_export_symbols
29114
29115# The commands to list exported symbols.
29116export_symbols_cmds=$lt_export_symbols_cmds
29117
29118# Symbols that should not be listed in the preloaded symbols.
29119exclude_expsyms=$lt_exclude_expsyms
29120
29121# Symbols that must always be exported.
29122include_expsyms=$lt_include_expsyms
29123
29124# Commands necessary for linking programs (against libraries) with templates.
29125prelink_cmds=$lt_prelink_cmds
29126
29127# Specify filename containing input files.
29128file_list_spec=$lt_file_list_spec
29129
29130# How to hardcode a shared library path into an executable.
29131hardcode_action=$hardcode_action
29132
00aafda4 29133# The directories searched by this compiler when creating a shared library.
29134compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29135
542f9784 29136# Dependencies to place before and after the objects being linked to
29137# create a shared library.
29138predep_objects=$lt_predep_objects
29139postdep_objects=$lt_postdep_objects
29140predeps=$lt_predeps
29141postdeps=$lt_postdeps
29142
29143# The library search path used internally by the compiler when linking
29144# a shared library.
29145compiler_lib_search_path=$lt_compiler_lib_search_path
29146
29147# ### END LIBTOOL CONFIG
29148
29149_LT_EOF
29150
29151 case $host_os in
29152 aix3*)
29153 cat <<\_LT_EOF >> "$cfgfile"
29154# AIX sometimes has problems with the GCC collect2 program. For some
29155# reason, if we set the COLLECT_NAMES environment variable, the problems
29156# vanish in a puff of smoke.
29157if test "X${COLLECT_NAMES+set}" != Xset; then
29158 COLLECT_NAMES=
29159 export COLLECT_NAMES
29160fi
29161_LT_EOF
29162 ;;
29163 esac
29164
29165
29166ltmain="$ac_aux_dir/ltmain.sh"
29167
29168
29169 # We use sed instead of cat because bash on DJGPP gets confused if
29170 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29171 # text mode, it properly converts lines to CR/LF. This bash problem
29172 # is reportedly fixed, but why not run on old versions too?
29173 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29174 || (rm -f "$cfgfile"; exit 1)
29175
29176 case $xsi_shell in
29177 yes)
29178 cat << \_LT_EOF >> "$cfgfile"
00aafda4 29179
542f9784 29180# func_dirname file append nondir_replacement
29181# Compute the dirname of FILE. If nonempty, add APPEND to the result,
29182# otherwise set result to NONDIR_REPLACEMENT.
29183func_dirname ()
29184{
29185 case ${1} in
29186 */*) func_dirname_result="${1%/*}${2}" ;;
29187 * ) func_dirname_result="${3}" ;;
29188 esac
29189}
29190
29191# func_basename file
29192func_basename ()
29193{
29194 func_basename_result="${1##*/}"
29195}
29196
00aafda4 29197# func_dirname_and_basename file append nondir_replacement
29198# perform func_basename and func_dirname in a single function
29199# call:
29200# dirname: Compute the dirname of FILE. If nonempty,
29201# add APPEND to the result, otherwise set result
29202# to NONDIR_REPLACEMENT.
29203# value returned in "$func_dirname_result"
29204# basename: Compute filename of FILE.
29205# value retuned in "$func_basename_result"
29206# Implementation must be kept synchronized with func_dirname
29207# and func_basename. For efficiency, we do not delegate to
29208# those functions but instead duplicate the functionality here.
29209func_dirname_and_basename ()
29210{
29211 case ${1} in
29212 */*) func_dirname_result="${1%/*}${2}" ;;
29213 * ) func_dirname_result="${3}" ;;
29214 esac
29215 func_basename_result="${1##*/}"
29216}
29217
542f9784 29218# func_stripname prefix suffix name
29219# strip PREFIX and SUFFIX off of NAME.
29220# PREFIX and SUFFIX must not contain globbing or regex special
29221# characters, hashes, percent signs, but SUFFIX may contain a leading
29222# dot (in which case that matches only a dot).
29223func_stripname ()
29224{
29225 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29226 # positional parameters, so assign one to ordinary parameter first.
29227 func_stripname_result=${3}
29228 func_stripname_result=${func_stripname_result#"${1}"}
29229 func_stripname_result=${func_stripname_result%"${2}"}
29230}
29231
29232# func_opt_split
29233func_opt_split ()
29234{
29235 func_opt_split_opt=${1%%=*}
29236 func_opt_split_arg=${1#*=}
29237}
29238
29239# func_lo2o object
29240func_lo2o ()
29241{
29242 case ${1} in
29243 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29244 *) func_lo2o_result=${1} ;;
29245 esac
29246}
00aafda4 29247
29248# func_xform libobj-or-source
29249func_xform ()
29250{
29251 func_xform_result=${1%.*}.lo
29252}
29253
29254# func_arith arithmetic-term...
29255func_arith ()
29256{
29257 func_arith_result=$(( $* ))
29258}
29259
29260# func_len string
29261# STRING may not start with a hyphen.
29262func_len ()
29263{
29264 func_len_result=${#1}
29265}
29266
542f9784 29267_LT_EOF
29268 ;;
29269 *) # Bourne compatible functions.
29270 cat << \_LT_EOF >> "$cfgfile"
00aafda4 29271
542f9784 29272# func_dirname file append nondir_replacement
29273# Compute the dirname of FILE. If nonempty, add APPEND to the result,
29274# otherwise set result to NONDIR_REPLACEMENT.
29275func_dirname ()
29276{
29277 # Extract subdirectory from the argument.
e6408286 29278 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
542f9784 29279 if test "X$func_dirname_result" = "X${1}"; then
29280 func_dirname_result="${3}"
29281 else
29282 func_dirname_result="$func_dirname_result${2}"
29283 fi
29284}
29285
29286# func_basename file
29287func_basename ()
29288{
e6408286 29289 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
542f9784 29290}
29291
00aafda4 29292
542f9784 29293# func_stripname prefix suffix name
29294# strip PREFIX and SUFFIX off of NAME.
29295# PREFIX and SUFFIX must not contain globbing or regex special
29296# characters, hashes, percent signs, but SUFFIX may contain a leading
29297# dot (in which case that matches only a dot).
29298# func_strip_suffix prefix name
29299func_stripname ()
29300{
29301 case ${2} in
e6408286 29302 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29303 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
542f9784 29304 esac
29305}
29306
29307# sed scripts:
29308my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29309my_sed_long_arg='1s/^-[^=]*=//'
29310
29311# func_opt_split
29312func_opt_split ()
29313{
e6408286 29314 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29315 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
542f9784 29316}
29317
29318# func_lo2o object
29319func_lo2o ()
29320{
e6408286 29321 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
542f9784 29322}
00aafda4 29323
29324# func_xform libobj-or-source
29325func_xform ()
29326{
e6408286 29327 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
00aafda4 29328}
29329
29330# func_arith arithmetic-term...
29331func_arith ()
29332{
29333 func_arith_result=`expr "$@"`
29334}
29335
29336# func_len string
29337# STRING may not start with a hyphen.
29338func_len ()
29339{
29340 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29341}
29342
542f9784 29343_LT_EOF
29344esac
29345
29346case $lt_shell_append in
29347 yes)
29348 cat << \_LT_EOF >> "$cfgfile"
29349
29350# func_append var value
29351# Append VALUE to the end of shell variable VAR.
29352func_append ()
29353{
29354 eval "$1+=\$2"
29355}
29356_LT_EOF
29357 ;;
29358 *)
29359 cat << \_LT_EOF >> "$cfgfile"
29360
29361# func_append var value
29362# Append VALUE to the end of shell variable VAR.
29363func_append ()
29364{
29365 eval "$1=\$$1\$2"
29366}
00aafda4 29367
542f9784 29368_LT_EOF
29369 ;;
29370 esac
29371
29372
29373 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29374 || (rm -f "$cfgfile"; exit 1)
29375
29376 mv -f "$cfgfile" "$ofile" ||
29377 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29378 chmod +x "$ofile"
29379
29380
29381 cat <<_LT_EOF >> "$ofile"
29382
29383# ### BEGIN LIBTOOL TAG CONFIG: FC
29384
29385# The linker used to build libraries.
29386LD=$lt_LD_FC
29387
e6408286 29388# How to create reloadable object files.
29389reload_flag=$lt_reload_flag_FC
29390reload_cmds=$lt_reload_cmds_FC
29391
542f9784 29392# Commands used to build an old-style archive.
29393old_archive_cmds=$lt_old_archive_cmds_FC
29394
29395# A language specific compiler.
29396CC=$lt_compiler_FC
29397
29398# Is the compiler the GNU compiler?
29399with_gcc=$GCC_FC
29400
29401# Compiler flag to turn off builtin functions.
29402no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29403
29404# How to pass a linker flag through the compiler.
29405wl=$lt_lt_prog_compiler_wl_FC
29406
29407# Additional compiler flags for building library objects.
29408pic_flag=$lt_lt_prog_compiler_pic_FC
29409
29410# Compiler flag to prevent dynamic linking.
29411link_static_flag=$lt_lt_prog_compiler_static_FC
29412
29413# Does compiler simultaneously support -c and -o options?
29414compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29415
29416# Whether or not to add -lc for building shared libraries.
29417build_libtool_need_lc=$archive_cmds_need_lc_FC
29418
29419# Whether or not to disallow shared libs when runtime libs are static.
29420allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29421
29422# Compiler flag to allow reflexive dlopens.
29423export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29424
29425# Compiler flag to generate shared objects directly from archives.
29426whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29427
29428# Whether the compiler copes with passing no objects directly.
29429compiler_needs_object=$lt_compiler_needs_object_FC
29430
29431# Create an old-style archive from a shared archive.
29432old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29433
29434# Create a temporary old-style archive to link instead of a shared archive.
29435old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29436
29437# Commands used to build a shared archive.
29438archive_cmds=$lt_archive_cmds_FC
29439archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29440
29441# Commands used to build a loadable module if different from building
29442# a shared archive.
29443module_cmds=$lt_module_cmds_FC
29444module_expsym_cmds=$lt_module_expsym_cmds_FC
29445
29446# Whether we are building with GNU ld or not.
29447with_gnu_ld=$lt_with_gnu_ld_FC
29448
29449# Flag that allows shared libraries with undefined symbols to be built.
29450allow_undefined_flag=$lt_allow_undefined_flag_FC
29451
29452# Flag that enforces no undefined symbols.
29453no_undefined_flag=$lt_no_undefined_flag_FC
29454
29455# Flag to hardcode \$libdir into a binary during linking.
29456# This must work even if \$libdir does not exist
29457hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29458
29459# If ld is used when linking, flag to hardcode \$libdir into a binary
29460# during linking. This must work even if \$libdir does not exist.
29461hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29462
29463# Whether we need a single "-rpath" flag with a separated argument.
29464hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29465
29466# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29467# DIR into the resulting binary.
29468hardcode_direct=$hardcode_direct_FC
29469
29470# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29471# DIR into the resulting binary and the resulting library dependency is
29472# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29473# library is relocated.
29474hardcode_direct_absolute=$hardcode_direct_absolute_FC
29475
29476# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29477# into the resulting binary.
29478hardcode_minus_L=$hardcode_minus_L_FC
29479
29480# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29481# into the resulting binary.
29482hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29483
29484# Set to "yes" if building a shared library automatically hardcodes DIR
29485# into the library and all subsequent libraries and executables linked
29486# against it.
29487hardcode_automatic=$hardcode_automatic_FC
29488
29489# Set to yes if linker adds runtime paths of dependent libraries
29490# to runtime path list.
29491inherit_rpath=$inherit_rpath_FC
29492
29493# Whether libtool must link a program against all its dependency libraries.
29494link_all_deplibs=$link_all_deplibs_FC
29495
29496# Fix the shell variable \$srcfile for the compiler.
29497fix_srcfile_path=$lt_fix_srcfile_path_FC
29498
29499# Set to "yes" if exported symbols are required.
29500always_export_symbols=$always_export_symbols_FC
29501
29502# The commands to list exported symbols.
29503export_symbols_cmds=$lt_export_symbols_cmds_FC
29504
29505# Symbols that should not be listed in the preloaded symbols.
29506exclude_expsyms=$lt_exclude_expsyms_FC
29507
29508# Symbols that must always be exported.
29509include_expsyms=$lt_include_expsyms_FC
29510
29511# Commands necessary for linking programs (against libraries) with templates.
29512prelink_cmds=$lt_prelink_cmds_FC
29513
29514# Specify filename containing input files.
29515file_list_spec=$lt_file_list_spec_FC
29516
29517# How to hardcode a shared library path into an executable.
29518hardcode_action=$hardcode_action_FC
29519
00aafda4 29520# The directories searched by this compiler when creating a shared library.
29521compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29522
542f9784 29523# Dependencies to place before and after the objects being linked to
29524# create a shared library.
29525predep_objects=$lt_predep_objects_FC
29526postdep_objects=$lt_postdep_objects_FC
29527predeps=$lt_predeps_FC
29528postdeps=$lt_postdeps_FC
29529
29530# The library search path used internally by the compiler when linking
29531# a shared library.
29532compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29533
29534# ### END LIBTOOL TAG CONFIG: FC
29535_LT_EOF
29536
2fd61f51 29537 ;;
cd9a469c 29538 "gstdint.h":C)
2069752c 29539if test "$GCC" = yes; then
29540 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29541else
29542 echo "/* generated for $CC */" > tmp-stdint.h
29543fi
56c15991 29544
2069752c 29545sed 's/^ *//' >> tmp-stdint.h <<EOF
29546
29547 #ifndef GCC_GENERATED_STDINT_H
29548 #define GCC_GENERATED_STDINT_H 1
29549
29550 #include <sys/types.h>
56c15991 29551EOF
56c15991 29552
2069752c 29553if test "$acx_cv_header_stdint" != stdint.h; then
29554 echo "#include <stddef.h>" >> tmp-stdint.h
29555fi
29556if test "$acx_cv_header_stdint" != stddef.h; then
29557 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29558fi
29559
29560sed 's/^ *//' >> tmp-stdint.h <<EOF
29561 /* glibc uses these symbols as guards to prevent redefinitions. */
29562 #ifdef __int8_t_defined
29563 #define _INT8_T
29564 #define _INT16_T
29565 #define _INT32_T
29566 #endif
29567 #ifdef __uint32_t_defined
29568 #define _UINT32_T
29569 #endif
29570
29571EOF
29572
29573# ----------------- done header, emit basic int types -------------
29574if test "$acx_cv_header_stdint" = stddef.h; then
29575 sed 's/^ *//' >> tmp-stdint.h <<EOF
29576
29577 #ifndef _UINT8_T
29578 #define _UINT8_T
29579 #ifndef __uint8_t_defined
29580 #define __uint8_t_defined
9ad2e3f3 29581 #ifndef uint8_t
2069752c 29582 typedef unsigned $acx_cv_type_int8_t uint8_t;
29583 #endif
29584 #endif
9ad2e3f3 29585 #endif
2069752c 29586
29587 #ifndef _UINT16_T
29588 #define _UINT16_T
29589 #ifndef __uint16_t_defined
29590 #define __uint16_t_defined
9ad2e3f3 29591 #ifndef uint16_t
2069752c 29592 typedef unsigned $acx_cv_type_int16_t uint16_t;
29593 #endif
29594 #endif
9ad2e3f3 29595 #endif
2069752c 29596
29597 #ifndef _UINT32_T
29598 #define _UINT32_T
29599 #ifndef __uint32_t_defined
29600 #define __uint32_t_defined
9ad2e3f3 29601 #ifndef uint32_t
2069752c 29602 typedef unsigned $acx_cv_type_int32_t uint32_t;
29603 #endif
29604 #endif
9ad2e3f3 29605 #endif
2069752c 29606
29607 #ifndef _INT8_T
29608 #define _INT8_T
29609 #ifndef __int8_t_defined
29610 #define __int8_t_defined
9ad2e3f3 29611 #ifndef int8_t
2069752c 29612 typedef $acx_cv_type_int8_t int8_t;
29613 #endif
29614 #endif
9ad2e3f3 29615 #endif
2069752c 29616
29617 #ifndef _INT16_T
29618 #define _INT16_T
29619 #ifndef __int16_t_defined
29620 #define __int16_t_defined
9ad2e3f3 29621 #ifndef int16_t
2069752c 29622 typedef $acx_cv_type_int16_t int16_t;
29623 #endif
29624 #endif
9ad2e3f3 29625 #endif
2069752c 29626
29627 #ifndef _INT32_T
29628 #define _INT32_T
29629 #ifndef __int32_t_defined
29630 #define __int32_t_defined
9ad2e3f3 29631 #ifndef int32_t
2069752c 29632 typedef $acx_cv_type_int32_t int32_t;
29633 #endif
29634 #endif
9ad2e3f3 29635 #endif
2069752c 29636EOF
29637elif test "$ac_cv_type_u_int32_t" = yes; then
29638 sed 's/^ *//' >> tmp-stdint.h <<EOF
29639
29640 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29641 #ifndef _INT8_T
29642 #define _INT8_T
29643 #endif
29644 #ifndef _INT16_T
29645 #define _INT16_T
29646 #endif
29647 #ifndef _INT32_T
29648 #define _INT32_T
29649 #endif
29650
29651 #ifndef _UINT8_T
29652 #define _UINT8_T
29653 #ifndef __uint8_t_defined
29654 #define __uint8_t_defined
9ad2e3f3 29655 #ifndef uint8_t
2069752c 29656 typedef u_int8_t uint8_t;
29657 #endif
29658 #endif
9ad2e3f3 29659 #endif
2069752c 29660
29661 #ifndef _UINT16_T
29662 #define _UINT16_T
29663 #ifndef __uint16_t_defined
29664 #define __uint16_t_defined
9ad2e3f3 29665 #ifndef uint16_t
2069752c 29666 typedef u_int16_t uint16_t;
29667 #endif
29668 #endif
9ad2e3f3 29669 #endif
2069752c 29670
29671 #ifndef _UINT32_T
29672 #define _UINT32_T
29673 #ifndef __uint32_t_defined
29674 #define __uint32_t_defined
9ad2e3f3 29675 #ifndef uint32_t
2069752c 29676 typedef u_int32_t uint32_t;
29677 #endif
29678 #endif
9ad2e3f3 29679 #endif
2069752c 29680EOF
29681else
29682 sed 's/^ *//' >> tmp-stdint.h <<EOF
29683
29684 /* Some systems have guard macros to prevent redefinitions, define them. */
29685 #ifndef _INT8_T
29686 #define _INT8_T
29687 #endif
29688 #ifndef _INT16_T
29689 #define _INT16_T
29690 #endif
29691 #ifndef _INT32_T
29692 #define _INT32_T
29693 #endif
29694 #ifndef _UINT8_T
29695 #define _UINT8_T
29696 #endif
29697 #ifndef _UINT16_T
29698 #define _UINT16_T
29699 #endif
29700 #ifndef _UINT32_T
29701 #define _UINT32_T
29702 #endif
29703EOF
29704fi
29705
29706# ------------- done basic int types, emit int64_t types ------------
29707if test "$ac_cv_type_uint64_t" = yes; then
29708 sed 's/^ *//' >> tmp-stdint.h <<EOF
29709
29710 /* system headers have good uint64_t and int64_t */
29711 #ifndef _INT64_T
29712 #define _INT64_T
29713 #endif
29714 #ifndef _UINT64_T
29715 #define _UINT64_T
29716 #endif
29717EOF
29718elif test "$ac_cv_type_u_int64_t" = yes; then
29719 sed 's/^ *//' >> tmp-stdint.h <<EOF
29720
29721 /* system headers have an u_int64_t (and int64_t) */
29722 #ifndef _INT64_T
29723 #define _INT64_T
29724 #endif
29725 #ifndef _UINT64_T
29726 #define _UINT64_T
29727 #ifndef __uint64_t_defined
29728 #define __uint64_t_defined
9ad2e3f3 29729 #ifndef uint64_t
2069752c 29730 typedef u_int64_t uint64_t;
29731 #endif
29732 #endif
9ad2e3f3 29733 #endif
2069752c 29734EOF
29735elif test -n "$acx_cv_type_int64_t"; then
29736 sed 's/^ *//' >> tmp-stdint.h <<EOF
29737
29738 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29739 #ifndef _INT64_T
29740 #define _INT64_T
9ad2e3f3 29741 #ifndef int64_t
2069752c 29742 typedef $acx_cv_type_int64_t int64_t;
29743 #endif
9ad2e3f3 29744 #endif
2069752c 29745 #ifndef _UINT64_T
29746 #define _UINT64_T
29747 #ifndef __uint64_t_defined
29748 #define __uint64_t_defined
9ad2e3f3 29749 #ifndef uint64_t
2069752c 29750 typedef unsigned $acx_cv_type_int64_t uint64_t;
29751 #endif
29752 #endif
9ad2e3f3 29753 #endif
2069752c 29754EOF
29755else
29756 sed 's/^ *//' >> tmp-stdint.h <<EOF
29757
29758 /* some common heuristics for int64_t, using compiler-specific tests */
29759 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29760 #ifndef _INT64_T
29761 #define _INT64_T
29762 #ifndef __int64_t_defined
9ad2e3f3 29763 #ifndef int64_t
2069752c 29764 typedef long long int64_t;
29765 #endif
29766 #endif
9ad2e3f3 29767 #endif
2069752c 29768 #ifndef _UINT64_T
29769 #define _UINT64_T
9ad2e3f3 29770 #ifndef uint64_t
2069752c 29771 typedef unsigned long long uint64_t;
29772 #endif
9ad2e3f3 29773 #endif
2069752c 29774
29775 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29776 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29777 does not implement __extension__. But that compiler doesn't define
29778 __GNUC_MINOR__. */
29779 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29780 # define __extension__
29781 # endif
29782
29783 # ifndef _INT64_T
29784 # define _INT64_T
9ad2e3f3 29785 # ifndef int64_t
2069752c 29786 __extension__ typedef long long int64_t;
29787 # endif
9ad2e3f3 29788 # endif
2069752c 29789 # ifndef _UINT64_T
29790 # define _UINT64_T
9ad2e3f3 29791 # ifndef uint64_t
2069752c 29792 __extension__ typedef unsigned long long uint64_t;
29793 # endif
9ad2e3f3 29794 # endif
2069752c 29795
29796 #elif !defined __STRICT_ANSI__
29797 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29798
29799 # ifndef _INT64_T
29800 # define _INT64_T
9ad2e3f3 29801 # ifndef int64_t
2069752c 29802 typedef __int64 int64_t;
29803 # endif
9ad2e3f3 29804 # endif
2069752c 29805 # ifndef _UINT64_T
29806 # define _UINT64_T
9ad2e3f3 29807 # ifndef uint64_t
2069752c 29808 typedef unsigned __int64 uint64_t;
29809 # endif
9ad2e3f3 29810 # endif
2069752c 29811 # endif /* compiler */
29812
29813 #endif /* ANSI version */
29814EOF
29815fi
29816
29817# ------------- done int64_t types, emit intptr types ------------
29818if test "$ac_cv_type_uintptr_t" != yes; then
29819 sed 's/^ *//' >> tmp-stdint.h <<EOF
29820
29821 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29822 #ifndef __uintptr_t_defined
9ad2e3f3 29823 #ifndef uintptr_t
2069752c 29824 typedef u$acx_cv_type_intptr_t uintptr_t;
29825 #endif
9ad2e3f3 29826 #endif
2069752c 29827 #ifndef __intptr_t_defined
9ad2e3f3 29828 #ifndef intptr_t
2069752c 29829 typedef $acx_cv_type_intptr_t intptr_t;
29830 #endif
9ad2e3f3 29831 #endif
2069752c 29832EOF
29833fi
29834
29835# ------------- done intptr types, emit int_least types ------------
56c15991 29836if test "$ac_cv_type_int_least32_t" != yes; then
2069752c 29837 sed 's/^ *//' >> tmp-stdint.h <<EOF
56c15991 29838
29839 /* Define int_least types */
29840 typedef int8_t int_least8_t;
29841 typedef int16_t int_least16_t;
29842 typedef int32_t int_least32_t;
2069752c 29843 #ifdef _INT64_T
56c15991 29844 typedef int64_t int_least64_t;
2069752c 29845 #endif
56c15991 29846
29847 typedef uint8_t uint_least8_t;
29848 typedef uint16_t uint_least16_t;
29849 typedef uint32_t uint_least32_t;
2069752c 29850 #ifdef _UINT64_T
56c15991 29851 typedef uint64_t uint_least64_t;
2069752c 29852 #endif
56c15991 29853EOF
29854fi
29855
2069752c 29856# ------------- done intptr types, emit int_fast types ------------
56c15991 29857if test "$ac_cv_type_int_fast32_t" != yes; then
2069752c 29858 sed 's/^ *//' >> tmp-stdint.h <<EOF
56c15991 29859
29860 /* Define int_fast types. short is often slow */
29861 typedef int8_t int_fast8_t;
29862 typedef int int_fast16_t;
29863 typedef int32_t int_fast32_t;
2069752c 29864 #ifdef _INT64_T
56c15991 29865 typedef int64_t int_fast64_t;
2069752c 29866 #endif
56c15991 29867
29868 typedef uint8_t uint_fast8_t;
29869 typedef unsigned int uint_fast16_t;
29870 typedef uint32_t uint_fast32_t;
2069752c 29871 #ifdef _UINT64_T
56c15991 29872 typedef uint64_t uint_fast64_t;
2069752c 29873 #endif
29874EOF
29875fi
29876
29877if test "$ac_cv_type_uintmax_t" != yes; then
29878 sed 's/^ *//' >> tmp-stdint.h <<EOF
29879
29880 /* Define intmax based on what we found */
9ad2e3f3 29881 #ifndef intmax_t
2069752c 29882 #ifdef _INT64_T
29883 typedef int64_t intmax_t;
29884 #else
29885 typedef long intmax_t;
29886 #endif
9ad2e3f3 29887 #endif
29888 #ifndef uintmax_t
2069752c 29889 #ifdef _UINT64_T
29890 typedef uint64_t uintmax_t;
29891 #else
29892 typedef unsigned long uintmax_t;
29893 #endif
9ad2e3f3 29894 #endif
56c15991 29895EOF
29896fi
29897
2069752c 29898sed 's/^ *//' >> tmp-stdint.h <<EOF
29899
29900 #endif /* GCC_GENERATED_STDINT_H */
29901EOF
56c15991 29902
2069752c 29903if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29904 rm -f tmp-stdint.h
56c15991 29905else
2069752c 29906 mv -f tmp-stdint.h gstdint.h
56c15991 29907fi
29908
29909 ;;
cd9a469c 29910
4ee9c684 29911 esac
cd9a469c 29912done # for ac_tag
4ee9c684 29913
4ee9c684 29914
cd9a469c 29915as_fn_exit 0
4ee9c684 29916_ACEOF
4ee9c684 29917ac_clean_files=$ac_clean_files_save
29918
cd9a469c 29919test $ac_write_fail = 0 ||
f00f02a3 29920 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cd9a469c 29921
4ee9c684 29922
29923# configure is writing to config.log, and then calls config.status.
29924# config.status does its own redirection, appending to config.log.
29925# Unfortunately, on DOS this fails, as config.log is still kept open
29926# by configure, so config.status won't be able to write to it; its
29927# output is simply discarded. So we exec the FD to /dev/null,
29928# effectively closing config.log, so it can be properly (re)opened and
29929# appended to by config.status. When coming back to configure, we
29930# need to make the FD available again.
29931if test "$no_create" != yes; then
29932 ac_cs_success=:
29933 ac_config_status_args=
29934 test "$silent" = yes &&
29935 ac_config_status_args="$ac_config_status_args --quiet"
29936 exec 5>/dev/null
29937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29938 exec 5>>config.log
29939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29940 # would make configure fail if this is the last instruction.
f00f02a3 29941 $ac_cs_success || as_fn_exit 1
cd9a469c 29942fi
29943if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29945$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4ee9c684 29946fi
29947