]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
libgo: Use -std=gnu99 on Solaris 10.
[thirdparty/gcc.git] / libgfortran / configure
CommitLineData
4ee9c684 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cd9a469c 3# Generated by GNU Autoconf 2.64 for GNU Fortran Runtime Library 0.3.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
4ee9c684 8#
4ee9c684 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
cd9a469c 11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
4ee9c684 14
cd9a469c 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4ee9c684 18 emulate sh
19 NULLCMD=:
cd9a469c 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4ee9c684 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
cd9a469c 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
4ee9c684 31fi
4ee9c684 32
cd9a469c 33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
4ee9c684 79fi
80
81
cd9a469c 82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
4ee9c684 121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
cd9a469c 126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
d5d92632 172test \$(( 1 + 1 )) = 2 || exit 1
e6408286 173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
d5d92632 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cd9a469c 181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4ee9c684 192do
cd9a469c 193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
4ee9c684 236 else
cd9a469c 237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
4ee9c684 241 fi
cd9a469c 242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
4ee9c684 380
cd9a469c 381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4ee9c684 383 as_expr=expr
384else
385 as_expr=false
386fi
387
cd9a469c 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4ee9c684 389 as_basename=basename
390else
391 as_basename=false
392fi
393
cd9a469c 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
4ee9c684 399
cd9a469c 400as_me=`$as_basename -- "$0" ||
4ee9c684 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
cd9a469c 403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
ce1a737c 418
82eaf560 419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
ff4425cf 425
4ee9c684 426
cd9a469c 427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
4ee9c684 436 sed '
cd9a469c 437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
4ee9c684 441 N
cd9a469c 442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4ee9c684 444 t loop
cd9a469c 445 s/-\n.*//
4ee9c684 446 ' >$as_me.lineno &&
cd9a469c 447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4ee9c684 449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
cd9a469c 452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
4ee9c684 454 # Exit status is that of the last command.
455 exit
456}
457
cd9a469c 458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
4ee9c684 469esac
470
cd9a469c 471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
4ee9c684 474else
cd9a469c 475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
4ee9c684 477fi
cd9a469c 478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
82eaf560 480 as_ln_s='ln -s'
cd9a469c 481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
82eaf560 491 fi
4ee9c684 492else
493 as_ln_s='cp -p'
494fi
cd9a469c 495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
4ee9c684 497
498if mkdir -p . 2>/dev/null; then
cd9a469c 499 as_mkdir_p='mkdir -p "$as_dir"'
4ee9c684 500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
cd9a469c 505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
4ee9c684 527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
542f9784 534SHELL=${CONFIG_SHELL-/bin/sh}
535
542f9784 536
cd9a469c 537exec 7<&0 </dev/null 6>&1
538
4ee9c684 539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
4ee9c684 544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
cd9a469c 548ac_clean_files=
4ee9c684 549ac_config_libobj_dir=.
cd9a469c 550LIBOBJS=
4ee9c684 551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
82eaf560 555
4ee9c684 556# Identity of this package.
557PACKAGE_NAME='GNU Fortran Runtime Library'
558PACKAGE_TARNAME='libgfortran'
76c0a846 559PACKAGE_VERSION='0.3'
560PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
4ee9c684 561PACKAGE_BUGREPORT=''
cd9a469c 562PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
4ee9c684 563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
cd9a469c 567#ifdef HAVE_SYS_TYPES_H
4ee9c684 568# include <sys/types.h>
569#endif
cd9a469c 570#ifdef HAVE_SYS_STAT_H
4ee9c684 571# include <sys/stat.h>
572#endif
cd9a469c 573#ifdef STDC_HEADERS
4ee9c684 574# include <stdlib.h>
575# include <stddef.h>
576#else
cd9a469c 577# ifdef HAVE_STDLIB_H
4ee9c684 578# include <stdlib.h>
579# endif
580#endif
cd9a469c 581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
4ee9c684 583# include <memory.h>
584# endif
585# include <string.h>
586#endif
cd9a469c 587#ifdef HAVE_STRINGS_H
4ee9c684 588# include <strings.h>
589#endif
cd9a469c 590#ifdef HAVE_INTTYPES_H
4ee9c684 591# include <inttypes.h>
4ee9c684 592#endif
cd9a469c 593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
4ee9c684 597# include <unistd.h>
598#endif"
599
a1aa1d30 600ac_header_list=
601ac_func_list=
87969c8c 602ac_c_werror_flag=
cd9a469c 603ac_subst_vars='am__EXEEXT_FALSE
604am__EXEEXT_TRUE
605LTLIBOBJS
606LIBOBJS
607IEEE_FLAGS
608FPU_HOST_HEADER
87969c8c 609LIBGFOR_BUILD_QUAD_FALSE
610LIBGFOR_BUILD_QUAD_TRUE
611LIBQUADINCLUDE
612LIBQUADLIB_DEP
613LIBQUADLIB
614LIBQUADSPEC
cd9a469c 615extra_ldflags_libgfortran
616ac_ct_FC
617FCFLAGS
618FC
619enable_static
620enable_shared
8c35d268 621lt_host_flags
cd9a469c 622OTOOL64
623OTOOL
624LIPO
625NMEDIT
626DSYMUTIL
cd9a469c 627OBJDUMP
628LN_S
629NM
630ac_ct_DUMPBIN
631DUMPBIN
632LD
633FGREP
cd9a469c 634SED
635LIBTOOL
636RANLIB
637AR
638AS
639SECTION_FLAGS
019fb48a 640LIBGFOR_USE_SYMVER_SUN_FALSE
641LIBGFOR_USE_SYMVER_SUN_TRUE
642LIBGFOR_USE_SYMVER_GNU_FALSE
643LIBGFOR_USE_SYMVER_GNU_TRUE
cd9a469c 644LIBGFOR_USE_SYMVER_FALSE
645LIBGFOR_USE_SYMVER_TRUE
646AM_CFLAGS
647AM_FCFLAGS
d5d92632 648toolexeclibdir
649toolexecdir
650EGREP
651GREP
652CPP
cd9a469c 653am__fastdepCC_FALSE
654am__fastdepCC_TRUE
655CCDEPMODE
656AMDEPBACKSLASH
657AMDEP_FALSE
658AMDEP_TRUE
659am__quote
660am__include
661DEPDIR
662OBJEXT
663EXEEXT
664ac_ct_CC
665CPPFLAGS
666LDFLAGS
667CFLAGS
668CC
cd9a469c 669multi_basedir
670MAINT
671MAINTAINER_MODE_FALSE
672MAINTAINER_MODE_TRUE
673am__untar
674am__tar
675AMTAR
676am__leading_dot
677SET_MAKE
678AWK
679mkdir_p
680MKDIR_P
681INSTALL_STRIP_PROGRAM
682STRIP
683install_sh
684MAKEINFO
685AUTOHEADER
686AUTOMAKE
687AUTOCONF
688ACLOCAL
689VERSION
690PACKAGE
691CYGPATH_W
692am__isrc
693INSTALL_DATA
694INSTALL_SCRIPT
695INSTALL_PROGRAM
7eda0fb7 696target_noncanonical
cd9a469c 697target_os
698target_vendor
699target_cpu
700target
701host_os
702host_vendor
703host_cpu
704host
705onestep
706onestep_FALSE
707onestep_TRUE
708target_subdir
709host_subdir
710build_subdir
711build_libsubdir
712build_os
713build_vendor
714build_cpu
715build
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
746PACKAGE_URL
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL'
4ee9c684 754ac_subst_files=''
cd9a469c 755ac_user_opts='
756enable_option_checking
757with_build_libsubdir
758enable_version_specific_runtime_libs
759enable_intermodule
760enable_maintainer_mode
761enable_multilib
762enable_dependency_tracking
bbb514dc 763enable_symvers
cd9a469c 764enable_shared
765enable_static
766with_pic
767enable_fast_install
768with_gnu_ld
769enable_libtool_lock
770enable_largefile
d9d975ae 771enable_libquadmath_support
0ecf494e 772with_system_libunwind
cd9a469c 773'
774 ac_precious_vars='build_alias
775host_alias
776target_alias
d5d92632 777CC
778CFLAGS
779LDFLAGS
780LIBS
cd9a469c 781CPPFLAGS
d5d92632 782CPP
cd9a469c 783FC
d5d92632 784FCFLAGS'
cd9a469c 785
4ee9c684 786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
cd9a469c 790ac_unrecognized_opts=
791ac_unrecognized_sep=
4ee9c684 792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
cd9a469c 814# (The list follows the same order as the GNU Coding Standards.)
4ee9c684 815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
cd9a469c 818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
4ee9c684 820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
4ee9c684 823includedir='${prefix}/include'
824oldincludedir='/usr/include'
cd9a469c 825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
4ee9c684 834
835ac_prev=
cd9a469c 836ac_dashdash=
4ee9c684 837for ac_option
838do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
cd9a469c 841 eval $ac_prev=\$ac_option
4ee9c684 842 ac_prev=
843 continue
844 fi
845
cd9a469c 846 case $ac_option in
847 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *) ac_optarg=yes ;;
849 esac
4ee9c684 850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
cd9a469c 853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
4ee9c684 856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
861
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
876
cd9a469c 877 -datadir | --datadir | --datadi | --datad)
4ee9c684 878 ac_prev=datadir ;;
cd9a469c 879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
4ee9c684 880 datadir=$ac_optarg ;;
881
cd9a469c 882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
4ee9c684 889 -disable-* | --disable-*)
cd9a469c 890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
4ee9c684 891 # Reject names that are not valid shell variable names.
cd9a469c 892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898"enable_$ac_useropt"
899"*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
4ee9c684 914
915 -enable-* | --enable-*)
cd9a469c 916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
4ee9c684 917 # Reject names that are not valid shell variable names.
cd9a469c 918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924"enable_$ac_useropt"
925"*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
82eaf560 928 esac
cd9a469c 929 eval enable_$ac_useropt=\$ac_optarg ;;
4ee9c684 930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
cd9a469c 956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
4ee9c684 962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
cd9a469c 986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
4ee9c684 991 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 992 | --localstate | --localstat | --localsta | --localst | --locals)
4ee9c684 993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
4ee9c684 996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
cd9a469c 1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
4ee9c684 1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
cd9a469c 1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
4ee9c684 1121 # Reject names that are not valid shell variable names.
cd9a469c 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128"with_$ac_useropt"
1129"*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
82eaf560 1132 esac
cd9a469c 1133 eval with_$ac_useropt=\$ac_optarg ;;
4ee9c684 1134
1135 -without-* | --without-*)
cd9a469c 1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
4ee9c684 1137 # Reject names that are not valid shell variable names.
cd9a469c 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"with_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
4ee9c684 1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
cd9a469c 1169 -*) as_fn_error "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information."
4ee9c684 1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
cd9a469c 1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
4ee9c684 1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
4ee9c684 1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
4ee9c684 1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 ;;
1190
1191 esac
1192done
1193
1194if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cd9a469c 1196 as_fn_error "missing argument to $ac_option"
4ee9c684 1197fi
1198
cd9a469c 1199if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
82eaf560 1204 esac
cd9a469c 1205fi
82eaf560 1206
cd9a469c 1207# Check all directory arguments for consistency.
1208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
82eaf560 1212do
cd9a469c 1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
82eaf560 1221 case $ac_val in
cd9a469c 1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
4ee9c684 1224 esac
cd9a469c 1225 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
4ee9c684 1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
cd9a469c 1239 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
4ee9c684 1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244fi
1245
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
1250
1251
cd9a469c 1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error "working directory cannot be determined"
1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error "pwd does not report name of working directory"
1258
1259
4ee9c684 1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
cd9a469c 1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269$as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
4ee9c684 1287 srcdir=$ac_confdir
cd9a469c 1288 if test ! -r "$srcdir/$ac_unique_file"; then
4ee9c684 1289 srcdir=..
1290 fi
1291else
1292 ac_srcdir_defaulted=no
1293fi
cd9a469c 1294if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301 pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305fi
1306# Remove unnecessary trailing slashes from srcdir.
1307# Double slashes in file names in object file debugging info
1308# mess up M-x gdb in Emacs.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317done
4ee9c684 1318
1319#
1320# Report the --help message.
1321#
1322if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
76c0a846 1326\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
4ee9c684 1327
1328Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333Defaults for the options are specified in brackets.
1334
1335Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
4ee9c684 1346Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1348 [$ac_default_prefix]
4ee9c684 1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1350 [PREFIX]
4ee9c684 1351
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
1356
1357For better control, use the options below.
1358
1359Fine tuning of the installation directories:
cd9a469c 1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
4ee9c684 1379_ACEOF
1380
1381 cat <<\_ACEOF
1382
1383Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
90973b19 1391 --target=TARGET configure for building compilers for TARGET [HOST]
4ee9c684 1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396 case $ac_init_help in
76c0a846 1397 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
4ee9c684 1398 esac
1399 cat <<\_ACEOF
1400
1401Optional Features:
cd9a469c 1402 --disable-option-checking ignore unrecognized --enable/--with options
4ee9c684 1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d9d975ae 1405 --enable-version-specific-runtime-libs
1406 specify that runtime libraries should be installed
1407 in a compiler-specific directory
93773f82 1408 --enable-intermodule build the library in one step
4ee9c684 1409 --enable-maintainer-mode enable make rules and dependencies not useful
1410 (and sometimes confusing) to the casual installer
90973b19 1411 --enable-multilib build many library versions (default)
2fd61f51 1412 --disable-dependency-tracking speeds up one-time build
1413 --enable-dependency-tracking do not reject slow dependency extractors
bbb514dc 1414 --disable-symvers disable symbol versioning for libgfortran
cd9a469c 1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
542f9784 1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
4ee9c684 1419 --disable-libtool-lock avoid locking (might break parallel builds)
90e67cff 1420 --disable-largefile omit support for large files
d9d975ae 1421 --disable-libquadmath-support
1422 disable libquadmath support for Fortran
4ee9c684 1423
1424Optional Packages:
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3e427a9c 1427 --with-build-libsubdir=DIR Directory where to find libraries for build system
542f9784 1428 --with-pic try to use only PIC/non-PIC objects [default=use
1429 both]
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
0ecf494e 1431 --with-system-libunwind use installed libunwind
4ee9c684 1432
1433Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
cd9a469c 1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
542f9784 1441 CPP C preprocessor
6d73cceb 1442 FC Fortran compiler command
1443 FCFLAGS Fortran compiler flags
4ee9c684 1444
1445Use these variables to override the choices made by `configure' or to help
1446it to find libraries and programs with nonstandard names/locations.
1447
cd9a469c 1448Report bugs to the package provider.
1449GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1450General help using GNU software: <http://www.gnu.org/gethelp/>.
4ee9c684 1451_ACEOF
cd9a469c 1452ac_status=$?
4ee9c684 1453fi
1454
1455if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
4ee9c684 1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
4ee9c684 1461 ac_builddir=.
1462
cd9a469c 1463case "$ac_dir" in
1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465*)
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473esac
1474ac_abs_top_builddir=$ac_pwd
1475ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476# for backward compatibility:
1477ac_top_builddir=$ac_top_build_prefix
4ee9c684 1478
1479case $srcdir in
cd9a469c 1480 .) # We are building in place.
4ee9c684 1481 ac_srcdir=.
cd9a469c 1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
4ee9c684 1485 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a106dabe 1492esac
cd9a469c 1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
4ee9c684 1503 else
cd9a469c 1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
4ee9c684 1507 done
1508fi
1509
cd9a469c 1510test -n "$ac_init_help" && exit $ac_status
4ee9c684 1511if $ac_init_version; then
1512 cat <<\_ACEOF
76c0a846 1513GNU Fortran Runtime Library configure 0.3
cd9a469c 1514generated by GNU Autoconf 2.64
4ee9c684 1515
cd9a469c 1516Copyright (C) 2009 Free Software Foundation, Inc.
4ee9c684 1517This configure script is free software; the Free Software Foundation
1518gives unlimited permission to copy, distribute and modify it.
1519_ACEOF
cd9a469c 1520 exit
4ee9c684 1521fi
4ee9c684 1522
cd9a469c 1523## ------------------------ ##
1524## Autoconf initialization. ##
1525## ------------------------ ##
4ee9c684 1526
cd9a469c 1527# ac_fn_c_try_compile LINENO
1528# --------------------------
1529# Try to compile conftest.$ac_ext, and return whether this succeeded.
1530ac_fn_c_try_compile ()
1531{
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538esac
1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540$as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1547 fi
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554else
1555 $as_echo "$as_me: failed program was:" >&5
1556sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1557
cd9a469c 1558 ac_retval=1
1559fi
1560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1561 return $ac_retval
1562
1563} # ac_fn_c_try_compile
1564
d5d92632 1565# ac_fn_c_try_cpp LINENO
1566# ----------------------
1567# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_cpp ()
4ee9c684 1569{
cd9a469c 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d5d92632 1571 if { { ac_try="$ac_cpp conftest.$ac_ext"
cd9a469c 1572case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
d5d92632 1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cd9a469c 1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d5d92632 1586 test $ac_status = 0; } >/dev/null && {
1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
cd9a469c 1588 test ! -s conftest.err
cd9a469c 1589 }; then :
1590 ac_retval=0
1591else
1592 $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1594
d5d92632 1595 ac_retval=1
cd9a469c 1596fi
cd9a469c 1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 return $ac_retval
4ee9c684 1599
d5d92632 1600} # ac_fn_c_try_cpp
4ee9c684 1601
d5d92632 1602# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
cd9a469c 1603# -------------------------------------------------------
d5d92632 1604# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605# the include files in INCLUDES and setting the cache variable VAR
1606# accordingly.
1607ac_fn_c_check_header_mongrel ()
cd9a469c 1608{
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d5d92632 1610 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cd9a469c 1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612$as_echo_n "checking for $2... " >&6; }
1613if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1614 $as_echo_n "(cached) " >&6
d5d92632 1615fi
1616eval ac_res=\$$3
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618$as_echo "$ac_res" >&6; }
cd9a469c 1619else
d5d92632 1620 # Is the header compilable?
1621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622$as_echo_n "checking $2 usability... " >&6; }
1623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 1624/* end confdefs.h. */
1625$4
1626#include <$2>
1627_ACEOF
1628if ac_fn_c_try_compile "$LINENO"; then :
d5d92632 1629 ac_header_compiler=yes
cd9a469c 1630else
d5d92632 1631 ac_header_compiler=no
cd9a469c 1632fi
1633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5d92632 1634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635$as_echo "$ac_header_compiler" >&6; }
4ee9c684 1636
d5d92632 1637# Is the header present?
1638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639$as_echo_n "checking $2 presence... " >&6; }
1640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h. */
1642#include <$2>
1643_ACEOF
1644if ac_fn_c_try_cpp "$LINENO"; then :
1645 ac_header_preproc=yes
1646else
1647 ac_header_preproc=no
1648fi
1649rm -f conftest.err conftest.$ac_ext
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651$as_echo "$ac_header_preproc" >&6; }
4ee9c684 1652
d5d92632 1653# So? What about this header?
1654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1655 yes:no: )
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660 ;;
1661 no:yes:* )
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1665$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1669$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672 ;;
cd9a469c 1673esac
d5d92632 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675$as_echo_n "checking for $2... " >&6; }
1676if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1677 $as_echo_n "(cached) " >&6
cd9a469c 1678else
d5d92632 1679 eval "$3=\$ac_header_compiler"
1680fi
1681eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683$as_echo "$ac_res" >&6; }
cd9a469c 1684fi
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
4ee9c684 1686
d5d92632 1687} # ac_fn_c_check_header_mongrel
4ee9c684 1688
cd9a469c 1689# ac_fn_c_try_run LINENO
1690# ----------------------
1691# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692# that executables *can* be run.
1693ac_fn_c_try_run ()
1694{
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1722
cd9a469c 1723 ac_retval=$ac_status
1724fi
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
4ee9c684 1728
cd9a469c 1729} # ac_fn_c_try_run
4ee9c684 1730
d5d92632 1731# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732# -------------------------------------------------------
1733# Tests whether HEADER exists and can be compiled using the include files in
1734# INCLUDES, setting the cache variable VAR accordingly.
1735ac_fn_c_check_header_compile ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
1740if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 $as_echo_n "(cached) " >&6
1742else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h. */
1745$4
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750else
1751 eval "$3=no"
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754fi
1755eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757$as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759
1760} # ac_fn_c_check_header_compile
1761
1762# ac_fn_c_try_link LINENO
1763# -----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_link ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 $as_test_x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797fi
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 return $ac_retval
1805
1806} # ac_fn_c_try_link
1807
cd9a469c 1808# ac_fn_c_check_func LINENO FUNC VAR
1809# ----------------------------------
1810# Tests whether FUNC exists, setting the cache variable VAR accordingly
1811ac_fn_c_check_func ()
1812{
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815$as_echo_n "checking for $2... " >&6; }
1816if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1817 $as_echo_n "(cached) " >&6
1818else
1819 if test x$gcc_no_link = xyes; then
1820 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1821fi
1822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h. */
1824/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1826#define $2 innocuous_$2
4ee9c684 1827
cd9a469c 1828/* System header to define __stub macros and hopefully few prototypes,
1829 which can conflict with char $2 (); below.
1830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831 <limits.h> exists even on freestanding compilers. */
4ee9c684 1832
cd9a469c 1833#ifdef __STDC__
1834# include <limits.h>
1835#else
1836# include <assert.h>
1837#endif
4ee9c684 1838
cd9a469c 1839#undef $2
1840
1841/* Override any GCC internal prototype to avoid an error.
1842 Use char because int might match the return type of a GCC
1843 builtin and then its argument prototype would still apply. */
1844#ifdef __cplusplus
1845extern "C"
1846#endif
1847char $2 ();
1848/* The GNU C library defines this for functions which it implements
1849 to always fail with ENOSYS. Some functions are actually named
1850 something starting with __ and the normal name is an alias. */
1851#if defined __stub_$2 || defined __stub___$2
1852choke me
1853#endif
1854
1855int
1856main ()
82eaf560 1857{
cd9a469c 1858return $2 ();
1859 ;
1860 return 0;
82eaf560 1861}
cd9a469c 1862_ACEOF
1863if ac_fn_c_try_link "$LINENO"; then :
1864 eval "$3=yes"
1865else
1866 eval "$3=no"
1867fi
1868rm -f core conftest.err conftest.$ac_objext \
1869 conftest$ac_exeext conftest.$ac_ext
1870fi
1871eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
4ee9c684 1875
cd9a469c 1876} # ac_fn_c_check_func
4ee9c684 1877
cd9a469c 1878# ac_fn_fc_try_compile LINENO
1879# ---------------------------
1880# Try to compile conftest.$ac_ext, and return whether this succeeded.
1881ac_fn_fc_try_compile ()
1882{
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext
1885 if { { ac_try="$ac_compile"
1886case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889esac
1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891$as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_compile") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1898 fi
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_fc_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest.$ac_objext; then :
1904 ac_retval=0
1905else
1906 $as_echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1908
cd9a469c 1909 ac_retval=1
1910fi
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 return $ac_retval
4ee9c684 1913
cd9a469c 1914} # ac_fn_fc_try_compile
4ee9c684 1915
cd9a469c 1916# ac_fn_fc_try_link LINENO
1917# ------------------------
1918# Try to link conftest.$ac_ext, and return whether this succeeded.
1919ac_fn_fc_try_link ()
1920{
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 rm -f conftest.$ac_objext conftest$ac_exeext
1923 if { { ac_try="$ac_link"
1924case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927esac
1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929$as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_link") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1936 fi
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && {
1939 test -z "$ac_fc_werror_flag" ||
1940 test ! -s conftest.err
1941 } && test -s conftest$ac_exeext && {
1942 test "$cross_compiling" = yes ||
1943 $as_test_x conftest$ac_exeext
1944 }; then :
1945 ac_retval=0
1946else
1947 $as_echo "$as_me: failed program was:" >&5
1948sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1949
cd9a469c 1950 ac_retval=1
1951fi
1952 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1953 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1954 # interfere with the next link command; also delete a directory that is
1955 # left behind by Apple's compiler. We do this before executing the actions.
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958 return $ac_retval
4ee9c684 1959
cd9a469c 1960} # ac_fn_fc_try_link
4ee9c684 1961
cd9a469c 1962# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1963# -------------------------------------------
1964# Tests whether TYPE exists after having included INCLUDES, setting cache
1965# variable VAR accordingly.
1966ac_fn_c_check_type ()
1967{
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970$as_echo_n "checking for $2... " >&6; }
1971if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1972 $as_echo_n "(cached) " >&6
1973else
1974 eval "$3=no"
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976/* end confdefs.h. */
1977$4
1978int
1979main ()
1980{
1981if (sizeof ($2))
1982 return 0;
1983 ;
1984 return 0;
1985}
4ee9c684 1986_ACEOF
cd9a469c 1987if ac_fn_c_try_compile "$LINENO"; then :
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h. */
1990$4
1991int
1992main ()
1993{
1994if (sizeof (($2)))
1995 return 0;
1996 ;
1997 return 0;
1998}
4ee9c684 1999_ACEOF
cd9a469c 2000if ac_fn_c_try_compile "$LINENO"; then :
4ee9c684 2001
cd9a469c 2002else
2003 eval "$3=yes"
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008fi
2009eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011$as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
4ee9c684 2013
cd9a469c 2014} # ac_fn_c_check_type
4ee9c684 2015
d5d92632 2016# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2017# --------------------------------------------
2018# Tries to find the compile-time value of EXPR in a program that includes
2019# INCLUDES, setting VAR accordingly. Returns whether the value could be
2020# computed
2021ac_fn_c_compute_int ()
cd9a469c 2022{
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069752c 2024 if test "$cross_compiling" = yes; then
2025 # Depending upon the size, compute the lo and hi bounds.
2026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 2027/* end confdefs.h. */
2069752c 2028$4
cd9a469c 2029int
2030main ()
2031{
2069752c 2032static int test_array [1 - 2 * !(($2) >= 0)];
cd9a469c 2033test_array [0] = 0
4ee9c684 2034
cd9a469c 2035 ;
2036 return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
2069752c 2040 ac_lo=0 ac_mid=0
2041 while :; do
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 2043/* end confdefs.h. */
2069752c 2044$4
cd9a469c 2045int
2046main ()
2047{
2069752c 2048static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cd9a469c 2049test_array [0] = 0
4ee9c684 2050
cd9a469c 2051 ;
2052 return 0;
2053}
2054_ACEOF
2055if ac_fn_c_try_compile "$LINENO"; then :
2069752c 2056 ac_hi=$ac_mid; break
cd9a469c 2057else
2069752c 2058 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2059 if test $ac_lo -le $ac_mid; then
2060 ac_lo= ac_hi=
2061 break
2062 fi
2063 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
cd9a469c 2064fi
2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069752c 2066 done
2067else
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h. */
2070$4
2071int
2072main ()
2073{
2074static int test_array [1 - 2 * !(($2) < 0)];
2075test_array [0] = 0
2076
2077 ;
2078 return 0;
2079}
2080_ACEOF
2081if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_hi=-1 ac_mid=-1
2083 while :; do
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086$4
2087int
2088main ()
2089{
2090static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2091test_array [0] = 0
2092
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_lo=$ac_mid; break
2099else
2100 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2101 if test $ac_mid -le $ac_hi; then
2102 ac_lo= ac_hi=
2103 break
2104 fi
2105 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
cd9a469c 2106fi
2107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069752c 2108 done
ea6b3890 2109else
2069752c 2110 ac_lo= ac_hi=
cd9a469c 2111fi
2069752c 2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea6b3890 2113fi
2069752c 2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115# Binary search between lo and hi bounds.
2116while test "x$ac_lo" != "x$ac_hi"; do
2117 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 2119/* end confdefs.h. */
2069752c 2120$4
cd9a469c 2121int
2122main ()
2123{
2069752c 2124static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cd9a469c 2125test_array [0] = 0
4ee9c684 2126
cd9a469c 2127 ;
2128 return 0;
2129}
2130_ACEOF
2131if ac_fn_c_try_compile "$LINENO"; then :
2069752c 2132 ac_hi=$ac_mid
2133else
2134 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
cd9a469c 2135fi
2136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069752c 2137done
2138case $ac_lo in #((
2139?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2140'') ac_retval=1 ;;
2141esac
2142 else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$4
2146static long int longval () { return $2; }
2147static unsigned long int ulongval () { return $2; }
2148#include <stdio.h>
2149#include <stdlib.h>
2150int
2151main ()
2152{
4ee9c684 2153
2069752c 2154 FILE *f = fopen ("conftest.val", "w");
2155 if (! f)
2156 return 1;
2157 if (($2) < 0)
2158 {
2159 long int i = longval ();
2160 if (i != ($2))
2161 return 1;
2162 fprintf (f, "%ld", i);
2163 }
2164 else
2165 {
2166 unsigned long int i = ulongval ();
2167 if (i != ($2))
2168 return 1;
2169 fprintf (f, "%lu", i);
2170 }
2171 /* Do not output a trailing newline, as this causes \r\n confusion
2172 on some platforms. */
2173 return ferror (f) || fclose (f) != 0;
2174
2175 ;
2176 return 0;
2177}
2178_ACEOF
2179if ac_fn_c_try_run "$LINENO"; then :
2180 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
cd9a469c 2181else
2069752c 2182 ac_retval=1
ea6b3890 2183fi
2069752c 2184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2185 conftest.$ac_objext conftest.beam conftest.$ac_ext
2186rm -f conftest.val
2187
2188 fi
cd9a469c 2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069752c 2190 return $ac_retval
4ee9c684 2191
2069752c 2192} # ac_fn_c_compute_int
4ee9c684 2193
cd9a469c 2194# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2195# ----------------------------------------------------
2196# Tries to find if the field MEMBER exists in type AGGR, after including
2197# INCLUDES, setting cache variable VAR accordingly.
2198ac_fn_c_check_member ()
2199{
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2202$as_echo_n "checking for $2.$3... " >&6; }
2203if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2204 $as_echo_n "(cached) " >&6
2205else
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207/* end confdefs.h. */
2208$5
2209int
2210main ()
2211{
2212static $2 ac_aggr;
2213if (ac_aggr.$3)
2214return 0;
2215 ;
2216 return 0;
2217}
2218_ACEOF
2219if ac_fn_c_try_compile "$LINENO"; then :
2220 eval "$4=yes"
2221else
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223/* end confdefs.h. */
2224$5
2225int
2226main ()
2227{
2228static $2 ac_aggr;
2229if (sizeof ac_aggr.$3)
2230return 0;
2231 ;
2232 return 0;
2233}
2234_ACEOF
2235if ac_fn_c_try_compile "$LINENO"; then :
2236 eval "$4=yes"
2237else
2238 eval "$4=no"
2239fi
2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241fi
2242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243fi
2244eval ac_res=\$$4
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246$as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
4ee9c684 2248
cd9a469c 2249} # ac_fn_c_check_member
2250cat >config.log <<_ACEOF
2251This file contains any messages produced by compilers while
2252running configure, to aid debugging if configure makes a mistake.
4ee9c684 2253
cd9a469c 2254It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2255generated by GNU Autoconf 2.64. Invocation command line was
4ee9c684 2256
cd9a469c 2257 $ $0 $@
4ee9c684 2258
cd9a469c 2259_ACEOF
2260exec 5>>config.log
2261{
2262cat <<_ASUNAME
2263## --------- ##
2264## Platform. ##
2265## --------- ##
4ee9c684 2266
cd9a469c 2267hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2268uname -m = `(uname -m) 2>/dev/null || echo unknown`
2269uname -r = `(uname -r) 2>/dev/null || echo unknown`
2270uname -s = `(uname -s) 2>/dev/null || echo unknown`
2271uname -v = `(uname -v) 2>/dev/null || echo unknown`
4ee9c684 2272
cd9a469c 2273/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2274/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
4ee9c684 2275
cd9a469c 2276/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2277/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2278/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2279/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2280/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2281/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2282/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
4ee9c684 2283
cd9a469c 2284_ASUNAME
5b2c7553 2285
cd9a469c 2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287for as_dir in $PATH
2288do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 $as_echo "PATH: $as_dir"
2292 done
2293IFS=$as_save_IFS
5b2c7553 2294
cd9a469c 2295} >&5
5b2c7553 2296
cd9a469c 2297cat >&5 <<_ACEOF
4ee9c684 2298
2299
cd9a469c 2300## ----------- ##
2301## Core tests. ##
2302## ----------- ##
a106dabe 2303
cd9a469c 2304_ACEOF
82eaf560 2305
90973b19 2306
cd9a469c 2307# Keep a trace of the command line.
2308# Strip out --no-create and --no-recursion so they do not pile up.
2309# Strip out --silent because we don't want to record it for future runs.
2310# Also quote any args containing shell meta-characters.
2311# Make two passes to allow for proper duplicate-argument suppression.
2312ac_configure_args=
2313ac_configure_args0=
2314ac_configure_args1=
2315ac_must_keep_next=false
2316for ac_pass in 1 2
2317do
2318 for ac_arg
2319 do
2320 case $ac_arg in
2321 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2323 | -silent | --silent | --silen | --sile | --sil)
2324 continue ;;
2325 *\'*)
2326 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2327 esac
2328 case $ac_pass in
2329 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2330 2)
2331 as_fn_append ac_configure_args1 " '$ac_arg'"
2332 if test $ac_must_keep_next = true; then
2333 ac_must_keep_next=false # Got value, back to normal.
2334 else
2335 case $ac_arg in
2336 *=* | --config-cache | -C | -disable-* | --disable-* \
2337 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2338 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2339 | -with-* | --with-* | -without-* | --without-* | --x)
2340 case "$ac_configure_args0 " in
2341 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2342 esac
2343 ;;
2344 -* ) ac_must_keep_next=true ;;
2345 esac
2346 fi
2347 as_fn_append ac_configure_args " '$ac_arg'"
2348 ;;
2349 esac
2350 done
4ee9c684 2351done
cd9a469c 2352{ ac_configure_args0=; unset ac_configure_args0;}
2353{ ac_configure_args1=; unset ac_configure_args1;}
90973b19 2354
cd9a469c 2355# When interrupted or exit'd, cleanup temporary files, and complete
2356# config.log. We remove comments because anyway the quotes in there
2357# would cause problems or look ugly.
2358# WARNING: Use '\'' to represent an apostrophe within the trap.
2359# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2360trap 'exit_status=$?
2361 # Save into config.log some information that might help in debugging.
2362 {
2363 echo
90973b19 2364
cd9a469c 2365 cat <<\_ASBOX
2366## ---------------- ##
2367## Cache variables. ##
2368## ---------------- ##
2369_ASBOX
2370 echo
2371 # The following way of writing the cache mishandles newlines in values,
2372(
2373 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2374 eval ac_val=\$$ac_var
2375 case $ac_val in #(
2376 *${as_nl}*)
2377 case $ac_var in #(
2378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2379$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2380 esac
2381 case $ac_var in #(
2382 _ | IFS | as_nl) ;; #(
2383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2384 *) { eval $ac_var=; unset $ac_var;} ;;
2385 esac ;;
2386 esac
2387 done
2388 (set) 2>&1 |
2389 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2390 *${as_nl}ac_space=\ *)
2391 sed -n \
2392 "s/'\''/'\''\\\\'\'''\''/g;
2393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2394 ;; #(
2395 *)
2396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2397 ;;
2398 esac |
2399 sort
2400)
2401 echo
2402
2403 cat <<\_ASBOX
2404## ----------------- ##
2405## Output variables. ##
2406## ----------------- ##
2407_ASBOX
2408 echo
2409 for ac_var in $ac_subst_vars
2410 do
2411 eval ac_val=\$$ac_var
2412 case $ac_val in
2413 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 esac
2415 $as_echo "$ac_var='\''$ac_val'\''"
2416 done | sort
2417 echo
2418
2419 if test -n "$ac_subst_files"; then
2420 cat <<\_ASBOX
2421## ------------------- ##
2422## File substitutions. ##
2423## ------------------- ##
2424_ASBOX
2425 echo
2426 for ac_var in $ac_subst_files
2427 do
2428 eval ac_val=\$$ac_var
2429 case $ac_val in
2430 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431 esac
2432 $as_echo "$ac_var='\''$ac_val'\''"
2433 done | sort
2434 echo
2435 fi
2436
2437 if test -s confdefs.h; then
2438 cat <<\_ASBOX
2439## ----------- ##
2440## confdefs.h. ##
2441## ----------- ##
2442_ASBOX
2443 echo
2444 cat confdefs.h
2445 echo
2446 fi
2447 test "$ac_signal" != 0 &&
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
2450 } >&5
2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453 exit $exit_status
2454' 0
2455for ac_signal in 1 2 13 15; do
2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457done
2458ac_signal=0
2459
2460# confdefs.h avoids OS command line length limits that DEFS can exceed.
2461rm -f -r conftest* confdefs.h
2462
2463$as_echo "/* confdefs.h */" > confdefs.h
2464
2465# Predefined preprocessor variables.
2466
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_NAME "$PACKAGE_NAME"
2469_ACEOF
2470
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473_ACEOF
2474
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_VERSION "$PACKAGE_VERSION"
2477_ACEOF
2478
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_STRING "$PACKAGE_STRING"
2481_ACEOF
2482
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485_ACEOF
2486
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_URL "$PACKAGE_URL"
2489_ACEOF
2490
2491
2492# Let the site file select an alternate cache file if it wants to.
2493# Prefer an explicitly selected file to automatically selected ones.
2494ac_site_file1=NONE
2495ac_site_file2=NONE
2496if test -n "$CONFIG_SITE"; then
2497 ac_site_file1=$CONFIG_SITE
2498elif test "x$prefix" != xNONE; then
2499 ac_site_file1=$prefix/share/config.site
2500 ac_site_file2=$prefix/etc/config.site
2501else
2502 ac_site_file1=$ac_default_prefix/share/config.site
2503 ac_site_file2=$ac_default_prefix/etc/config.site
2504fi
2505for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2506do
2507 test "x$ac_site_file" = xNONE && continue
2508 if test -r "$ac_site_file"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2510$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2511 sed 's/^/| /' "$ac_site_file" >&5
2512 . "$ac_site_file"
2513 fi
2514done
2515
2516if test -r "$cache_file"; then
2517 # Some versions of bash will fail to source /dev/null (special
2518 # files actually), so we avoid doing that.
2519 if test -f "$cache_file"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2521$as_echo "$as_me: loading cache $cache_file" >&6;}
2522 case $cache_file in
2523 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2524 *) . "./$cache_file";;
2525 esac
2526 fi
2527else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2529$as_echo "$as_me: creating cache $cache_file" >&6;}
2530 >$cache_file
2531fi
2532
a1aa1d30 2533as_fn_append ac_header_list " unistd.h"
2534as_fn_append ac_header_list " sys/time.h"
2535as_fn_append ac_header_list " sys/times.h"
2536as_fn_append ac_header_list " sys/resource.h"
2537as_fn_append ac_header_list " sys/types.h"
2538as_fn_append ac_header_list " sys/stat.h"
2539as_fn_append ac_header_list " sys/wait.h"
2540as_fn_append ac_header_list " floatingpoint.h"
2541as_fn_append ac_header_list " ieeefp.h"
2542as_fn_append ac_header_list " fenv.h"
2543as_fn_append ac_header_list " fptrap.h"
2544as_fn_append ac_header_list " pwd.h"
2545as_fn_append ac_header_list " complex.h"
2546as_fn_append ac_func_list " getrusage"
2547as_fn_append ac_func_list " times"
2548as_fn_append ac_func_list " mkstemp"
2549as_fn_append ac_func_list " strtof"
2550as_fn_append ac_func_list " strtold"
2551as_fn_append ac_func_list " snprintf"
2552as_fn_append ac_func_list " ftruncate"
2553as_fn_append ac_func_list " chsize"
2554as_fn_append ac_func_list " chdir"
2555as_fn_append ac_func_list " getlogin"
2556as_fn_append ac_func_list " gethostname"
2557as_fn_append ac_func_list " kill"
2558as_fn_append ac_func_list " link"
2559as_fn_append ac_func_list " symlink"
2560as_fn_append ac_func_list " sleep"
2561as_fn_append ac_func_list " ttyname"
2562as_fn_append ac_func_list " alarm"
2563as_fn_append ac_func_list " access"
2564as_fn_append ac_func_list " fork"
2565as_fn_append ac_func_list " execl"
2566as_fn_append ac_func_list " wait"
2567as_fn_append ac_func_list " setmode"
2568as_fn_append ac_func_list " execve"
2569as_fn_append ac_func_list " pipe"
2570as_fn_append ac_func_list " dup2"
2571as_fn_append ac_func_list " close"
2572as_fn_append ac_func_list " fdopen"
2573as_fn_append ac_func_list " strcasestr"
2574as_fn_append ac_func_list " getrlimit"
2575as_fn_append ac_func_list " gettimeofday"
2576as_fn_append ac_func_list " stat"
2577as_fn_append ac_func_list " fstat"
2578as_fn_append ac_func_list " lstat"
2579as_fn_append ac_func_list " getpwuid"
2580as_fn_append ac_func_list " vsnprintf"
2581as_fn_append ac_func_list " dup"
2582as_fn_append ac_func_list " getcwd"
2583as_fn_append ac_func_list " localtime_r"
2584as_fn_append ac_func_list " gmtime_r"
2585as_fn_append ac_func_list " strerror_r"
2586as_fn_append ac_func_list " getpwuid_r"
2587as_fn_append ac_func_list " ttyname_r"
2588as_fn_append ac_func_list " clock_gettime"
2589as_fn_append ac_func_list " readlink"
2590as_fn_append ac_func_list " getgid"
2591as_fn_append ac_func_list " getpid"
2592as_fn_append ac_func_list " getppid"
2593as_fn_append ac_func_list " getuid"
2594as_fn_append ac_func_list " geteuid"
cd9a469c 2595# Check that the precious variables saved in the cache have kept the same
2596# value.
2597ac_cache_corrupted=false
2598for ac_var in $ac_precious_vars; do
2599 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2600 eval ac_new_set=\$ac_env_${ac_var}_set
2601 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2602 eval ac_new_val=\$ac_env_${ac_var}_value
2603 case $ac_old_set,$ac_new_set in
2604 set,)
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2606$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2608 ,set)
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2610$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2611 ac_cache_corrupted=: ;;
2612 ,);;
2613 *)
2614 if test "x$ac_old_val" != "x$ac_new_val"; then
2615 # differences in whitespace do not lead to failure.
2616 ac_old_val_w=`echo x $ac_old_val`
2617 ac_new_val_w=`echo x $ac_new_val`
2618 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2620$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2621 ac_cache_corrupted=:
2622 else
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2624$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2625 eval $ac_var=\$ac_old_val
2626 fi
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2628$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2630$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2631 fi;;
2632 esac
2633 # Pass precious variables to config.status.
2634 if test "$ac_new_set" = set; then
2635 case $ac_new_val in
2636 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2637 *) ac_arg=$ac_var=$ac_new_val ;;
2638 esac
2639 case " $ac_configure_args " in
2640 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2641 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2642 esac
2643 fi
2644done
2645if $ac_cache_corrupted; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2649$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2650 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2651fi
2652## -------------------- ##
2653## Main body of script. ##
2654## -------------------- ##
2655
2656ac_ext=c
2657ac_cpp='$CPP $CPPFLAGS'
2658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661
2662
2663
2664
2665
2666ac_config_headers="$ac_config_headers config.h"
2667
2668ac_aux_dir=
2669for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2670 for ac_t in install-sh install.sh shtool; do
2671 if test -f "$ac_dir/$ac_t"; then
2672 ac_aux_dir=$ac_dir
2673 ac_install_sh="$ac_aux_dir/$ac_t -c"
2674 break 2
2675 fi
2676 done
2677done
2678if test -z "$ac_aux_dir"; then
2679 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2680fi
2681
2682# These three variables are undocumented and unsupported,
2683# and are intended to be withdrawn in a future Autoconf release.
2684# They can cause serious problems if a builder's source tree is in a directory
2685# whose full name contains unusual characters.
2686ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2687ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2688ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2689
2690
2691# Make sure we can run config.sub.
2692$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2693 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2694
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2696$as_echo_n "checking build system type... " >&6; }
2697if test "${ac_cv_build+set}" = set; then :
2698 $as_echo_n "(cached) " >&6
2699else
2700 ac_build_alias=$build_alias
2701test "x$ac_build_alias" = x &&
2702 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2703test "x$ac_build_alias" = x &&
2704 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2705ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2706 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2707
2708fi
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2710$as_echo "$ac_cv_build" >&6; }
2711case $ac_cv_build in
2712*-*-*) ;;
2713*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2714esac
2715build=$ac_cv_build
2716ac_save_IFS=$IFS; IFS='-'
2717set x $ac_cv_build
2718shift
2719build_cpu=$1
2720build_vendor=$2
2721shift; shift
2722# Remember, the first character of IFS is used to create $*,
2723# except with old shells:
2724build_os=$*
2725IFS=$ac_save_IFS
2726case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2727
2728
2729 case ${build_alias} in
2730 "") build_noncanonical=${build} ;;
2731 *) build_noncanonical=${build_alias} ;;
2732esac
4c82c0dd 2733
2734 case ${host_alias} in
2735 "") host_noncanonical=${build_noncanonical} ;;
2736 *) host_noncanonical=${host_alias} ;;
2737esac
2738
2739 case ${target_alias} in
2740 "") target_noncanonical=${host_noncanonical} ;;
2741 *) target_noncanonical=${target_alias} ;;
2742esac
2743
3e427a9c 2744
2745# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2746# have matching libraries, they should use host libraries: Makefile.tpl
2747# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2748# However, they still use the build modules, because the corresponding
2749# host modules (e.g. bison) are only built for the host when bootstrap
2750# finishes. So:
2751# - build_subdir is where we find build modules, and never changes.
2752# - build_libsubdir is where we find build libraries, and can be overridden.
2753
2754# Prefix 'build-' so this never conflicts with target_subdir.
4c82c0dd 2755build_subdir="build-${build_noncanonical}"
3e427a9c 2756
cd9a469c 2757# Check whether --with-build-libsubdir was given.
2758if test "${with_build_libsubdir+set}" = set; then :
2759 withval=$with_build_libsubdir; build_libsubdir="$withval"
3e427a9c 2760else
2761 build_libsubdir="$build_subdir"
cd9a469c 2762fi
2763
4c82c0dd 2764# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2765if ( test $srcdir = . && test -d gcc ) \
2766 || test -d $srcdir/../host-${host_noncanonical}; then
2767 host_subdir="host-${host_noncanonical}"
2768else
2769 host_subdir=.
2770fi
2771# No prefix.
2772target_subdir=${target_noncanonical}
2773
2774
2775# -------
2776# Options
2777# -------
2778
cd9a469c 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2780$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2781# Check whether --enable-version-specific-runtime-libs was given.
2782if test "${enable_version_specific_runtime_libs+set}" = set; then :
2783 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4c82c0dd 2784 yes) version_specific_libs=yes ;;
2785 no) version_specific_libs=no ;;
cd9a469c 2786 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4c82c0dd 2787 esac
2788else
2789 version_specific_libs=no
cd9a469c 2790fi
2791
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2793$as_echo "$version_specific_libs" >&6; }
4c82c0dd 2794
93773f82 2795# Build with intermodule optimisations
cd9a469c 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2797$as_echo_n "checking for --enable-intermodule... " >&6; }
2798# Check whether --enable-intermodule was given.
2799if test "${enable_intermodule+set}" = set; then :
2800 enableval=$enable_intermodule; case "$enable_intermodule" in
93773f82 2801 yes) onestep="-onestep";;
2802 *) onestep="";;
2803esac
2804else
2805 onestep=""
cd9a469c 2806fi
93773f82 2807
cd9a469c 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2809$as_echo "$enable_intermodule" >&6; }
2810 if test x$onestep = x-onestep; then
93773f82 2811 onestep_TRUE=
2812 onestep_FALSE='#'
2813else
2814 onestep_TRUE='#'
2815 onestep_FALSE=
2816fi
2817
2818
4c82c0dd 2819
2820# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2821#
2822# You will slowly go insane if you do not grok the following fact: when
2823# building this library, the top-level /target/ becomes the library's /host/.
2824#
2825# configure then causes --target to default to --host, exactly like any
2826# other package using autoconf. Therefore, 'target' and 'host' will
2827# always be the same. This makes sense both for native and cross compilers
2828# just think about it for a little while. :-)
2829#
2830# Also, if this library is being configured as part of a cross compiler, the
2831# top-level configure script will pass the "real" host as $with_cross_host.
2832#
2833# Do not delete or change the following two lines. For why, see
2834# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
cd9a469c 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2836$as_echo_n "checking host system type... " >&6; }
2837if test "${ac_cv_host+set}" = set; then :
2838 $as_echo_n "(cached) " >&6
2839else
2840 if test "x$host_alias" = x; then
2841 ac_cv_host=$ac_cv_build
2842else
2843 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2844 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2845fi
2846
2847fi
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2849$as_echo "$ac_cv_host" >&6; }
2850case $ac_cv_host in
2851*-*-*) ;;
2852*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2853esac
90973b19 2854host=$ac_cv_host
cd9a469c 2855ac_save_IFS=$IFS; IFS='-'
2856set x $ac_cv_host
2857shift
2858host_cpu=$1
2859host_vendor=$2
2860shift; shift
2861# Remember, the first character of IFS is used to create $*,
2862# except with old shells:
2863host_os=$*
2864IFS=$ac_save_IFS
2865case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
82eaf560 2866
2867
cd9a469c 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2869$as_echo_n "checking target system type... " >&6; }
2870if test "${ac_cv_target+set}" = set; then :
2871 $as_echo_n "(cached) " >&6
90973b19 2872else
cd9a469c 2873 if test "x$target_alias" = x; then
2874 ac_cv_target=$ac_cv_host
2875else
2876 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2877 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2878fi
90973b19 2879
2880fi
cd9a469c 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2882$as_echo "$ac_cv_target" >&6; }
2883case $ac_cv_target in
2884*-*-*) ;;
2885*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2886esac
90973b19 2887target=$ac_cv_target
cd9a469c 2888ac_save_IFS=$IFS; IFS='-'
2889set x $ac_cv_target
2890shift
2891target_cpu=$1
2892target_vendor=$2
2893shift; shift
2894# Remember, the first character of IFS is used to create $*,
2895# except with old shells:
2896target_os=$*
2897IFS=$ac_save_IFS
2898case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
90973b19 2899
2900
2901# The aliases save the names the user supplied, while $host etc.
2902# will get canonicalized.
2903test -n "$target_alias" &&
2904 test "$program_prefix$program_suffix$program_transform_name" = \
2905 NONENONEs,x,x, &&
2906 program_prefix=${target_alias}-
cd9a469c 2907
7eda0fb7 2908
2909
2910
90973b19 2911target_alias=${target_alias-$host_alias}
2912
7eda0fb7 2913
90973b19 2914# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2915# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2fd61f51 2916# 1.9.6: minimum required version
90973b19 2917# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2918# of other PACKAGE_* variables will, however, and there's nothing
2919# we can do about that; they come from AC_INIT).
2920# foreign: we don't follow the normal rules for GNU packages (no COPYING
2921# file in the top srcdir, etc, etc), so stop complaining.
5dbeae57 2922# no-dist: we don't want 'dist' and related rules.
90973b19 2923# -Wall: turns on all automake warnings...
2924# -Wno-portability: ...except this one, since GNU make is required.
cd9a469c 2925am__api_version='1.11'
2926
4ee9c684 2927# Find a good install program. We prefer a C program (faster),
2928# so one script is as good as another. But avoid the broken or
2929# incompatible versions:
2930# SysV /etc/install, /usr/sbin/install
2931# SunOS /usr/etc/install
2932# IRIX /sbin/install
2933# AIX /bin/install
2934# AmigaOS /C/install, which installs bootblocks on floppy discs
2935# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2936# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2937# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2938# OS/2's system install, which has a completely different semantic
2939# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 2940# Reject install programs that cannot install multiple files.
cd9a469c 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2942$as_echo_n "checking for a BSD-compatible install... " >&6; }
4ee9c684 2943if test -z "$INSTALL"; then
cd9a469c 2944if test "${ac_cv_path_install+set}" = set; then :
2945 $as_echo_n "(cached) " >&6
4ee9c684 2946else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
cd9a469c 2952 # Account for people who put trailing slashes in PATH elements.
2953case $as_dir/ in #((
2954 ./ | .// | /[cC]/* | \
4ee9c684 2955 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 2956 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4ee9c684 2957 /usr/ucb/* ) ;;
2958 *)
2959 # OSF1 and SCO ODT 3.0 have their own names for install.
2960 # Don't use installbsd from OSF since it installs stuff as root
2961 # by default.
2962 for ac_prog in ginstall scoinst install; do
2963 for ac_exec_ext in '' $ac_executable_extensions; do
cd9a469c 2964 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4ee9c684 2965 if test $ac_prog = install &&
2966 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2967 # AIX install. It has an incompatible calling convention.
2968 :
2969 elif test $ac_prog = install &&
2970 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2971 # program-specific install script used by HP pwplus--don't use.
2972 :
2973 else
82eaf560 2974 rm -rf conftest.one conftest.two conftest.dir
2975 echo one > conftest.one
2976 echo two > conftest.two
2977 mkdir conftest.dir
2978 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2979 test -s conftest.one && test -s conftest.two &&
2980 test -s conftest.dir/conftest.one &&
2981 test -s conftest.dir/conftest.two
2982 then
2983 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2984 break 3
2985 fi
4ee9c684 2986 fi
2987 fi
2988 done
2989 done
2990 ;;
2991esac
cd9a469c 2992
2993 done
2994IFS=$as_save_IFS
4ee9c684 2995
82eaf560 2996rm -rf conftest.one conftest.two conftest.dir
4ee9c684 2997
2998fi
2999 if test "${ac_cv_path_install+set}" = set; then
3000 INSTALL=$ac_cv_path_install
3001 else
ff4425cf 3002 # As a last resort, use the slow shell script. Don't cache a
3003 # value for INSTALL within a source directory, because that will
4ee9c684 3004 # break other packages using the cache if that directory is
ff4425cf 3005 # removed, or if the value is a relative name.
4ee9c684 3006 INSTALL=$ac_install_sh
3007 fi
3008fi
cd9a469c 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3010$as_echo "$INSTALL" >&6; }
4ee9c684 3011
3012# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3013# It thinks the first close brace ends the variable substitution.
3014test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3015
3016test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3017
3018test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3019
cd9a469c 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3021$as_echo_n "checking whether build environment is sane... " >&6; }
4ee9c684 3022# Just in case
3023sleep 1
3024echo timestamp > conftest.file
cd9a469c 3025# Reject unsafe characters in $srcdir or the absolute working directory
3026# name. Accept space and tab only in the latter.
3027am_lf='
3028'
3029case `pwd` in
3030 *[\\\"\#\$\&\'\`$am_lf]*)
3031 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3032esac
3033case $srcdir in
3034 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3035 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3036esac
3037
4ee9c684 3038# Do `set' in a subshell so we don't clobber the current shell's
3039# arguments. Must try -L first in case configure is actually a
3040# symlink; some systems play weird games with the mod time of symlinks
3041# (eg FreeBSD returns the mod time of the symlink's containing
3042# directory).
3043if (
cd9a469c 3044 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4ee9c684 3045 if test "$*" = "X"; then
3046 # -L didn't work.
cd9a469c 3047 set X `ls -t "$srcdir/configure" conftest.file`
4ee9c684 3048 fi
3049 rm -f conftest.file
3050 if test "$*" != "X $srcdir/configure conftest.file" \
3051 && test "$*" != "X conftest.file $srcdir/configure"; then
3052
3053 # If neither matched, then we have a broken ls. This can happen
3054 # if, for instance, CONFIG_SHELL is bash and it inherits a
3055 # broken ls alias from the environment. This has actually
3056 # happened. Such a system could not be considered "sane".
cd9a469c 3057 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3058alias in your environment" "$LINENO" 5
4ee9c684 3059 fi
3060
3061 test "$2" = conftest.file
3062 )
3063then
3064 # Ok.
3065 :
3066else
cd9a469c 3067 as_fn_error "newly created file is older than distributed files!
3068Check your system clock" "$LINENO" 5
4ee9c684 3069fi
cd9a469c 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3071$as_echo "yes" >&6; }
4ee9c684 3072test "$program_prefix" != NONE &&
cd9a469c 3073 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4ee9c684 3074# Use a double $ so make ignores it.
3075test "$program_suffix" != NONE &&
cd9a469c 3076 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3077# Double any \ or $.
4ee9c684 3078# By default was `s,x,x', remove it if useless.
cd9a469c 3079ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3080program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4ee9c684 3081
3082# expand $ac_aux_dir to an absolute path
3083am_aux_dir=`cd $ac_aux_dir && pwd`
3084
cd9a469c 3085if test x"${MISSING+set}" != xset; then
3086 case $am_aux_dir in
3087 *\ * | *\ *)
3088 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3089 *)
3090 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3091 esac
3092fi
4ee9c684 3093# Use eval to expand $SHELL
3094if eval "$MISSING --run true"; then
3095 am_missing_run="$MISSING --run "
3096else
3097 am_missing_run=
cd9a469c 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3099$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4ee9c684 3100fi
3101
cd9a469c 3102if test x"${install_sh}" != xset; then
3103 case $am_aux_dir in
3104 *\ * | *\ *)
3105 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3106 *)
3107 install_sh="\${SHELL} $am_aux_dir/install-sh"
3108 esac
3109fi
3110
3111# Installed binaries are usually stripped using `strip' when the user
3112# run `make install-strip'. However `strip' might not be the right
3113# tool to use in cross-compilation environments, therefore Automake
3114# will honor the `STRIP' environment variable to overrule this program.
3115if test "$cross_compiling" != no; then
3116 if test -n "$ac_tool_prefix"; then
3117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3118set dummy ${ac_tool_prefix}strip; ac_word=$2
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120$as_echo_n "checking for $ac_word... " >&6; }
3121if test "${ac_cv_prog_STRIP+set}" = set; then :
3122 $as_echo_n "(cached) " >&6
4ee9c684 3123else
cd9a469c 3124 if test -n "$STRIP"; then
3125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4ee9c684 3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
cd9a469c 3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3136 break 2
3137 fi
3138done
cd9a469c 3139 done
3140IFS=$as_save_IFS
4ee9c684 3141
3142fi
3143fi
cd9a469c 3144STRIP=$ac_cv_prog_STRIP
3145if test -n "$STRIP"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3147$as_echo "$STRIP" >&6; }
4ee9c684 3148else
cd9a469c 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150$as_echo "no" >&6; }
4ee9c684 3151fi
3152
4ee9c684 3153
cd9a469c 3154fi
3155if test -z "$ac_cv_prog_STRIP"; then
3156 ac_ct_STRIP=$STRIP
3157 # Extract the first word of "strip", so it can be a program name with args.
3158set dummy strip; ac_word=$2
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160$as_echo_n "checking for $ac_word... " >&6; }
3161if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3162 $as_echo_n "(cached) " >&6
4ee9c684 3163else
cd9a469c 3164 if test -n "$ac_ct_STRIP"; then
3165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
82eaf560 3166else
cd9a469c 3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH
3169do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_ac_ct_STRIP="strip"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178done
3179 done
3180IFS=$as_save_IFS
3181
82eaf560 3182fi
4ee9c684 3183fi
cd9a469c 3184ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3185if test -n "$ac_ct_STRIP"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3187$as_echo "$ac_ct_STRIP" >&6; }
3188else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191fi
3192
3193 if test "x$ac_ct_STRIP" = x; then
3194 STRIP=":"
3195 else
3196 case $cross_compiling:$ac_tool_warned in
3197yes:)
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200ac_tool_warned=yes ;;
3201esac
3202 STRIP=$ac_ct_STRIP
3203 fi
3204else
3205 STRIP="$ac_cv_prog_STRIP"
3206fi
3207
3208fi
3209INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3210
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3212$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3213if test -z "$MKDIR_P"; then
3214 if test "${ac_cv_path_mkdir+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3216else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3219do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_prog in mkdir gmkdir; do
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3225 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3226 'mkdir (GNU coreutils) '* | \
3227 'mkdir (coreutils) '* | \
3228 'mkdir (fileutils) '4.1*)
3229 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3230 break 3;;
3231 esac
3232 done
3233 done
3234 done
3235IFS=$as_save_IFS
3236
3237fi
3238
3239 if test "${ac_cv_path_mkdir+set}" = set; then
3240 MKDIR_P="$ac_cv_path_mkdir -p"
3241 else
3242 # As a last resort, use the slow shell script. Don't cache a
3243 # value for MKDIR_P within a source directory, because that will
3244 # break other packages using the cache if that directory is
3245 # removed, or if the value is a relative name.
3246 test -d ./--version && rmdir ./--version
3247 MKDIR_P="$ac_install_sh -d"
3248 fi
3249fi
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3251$as_echo "$MKDIR_P" >&6; }
3252
3253mkdir_p="$MKDIR_P"
3254case $mkdir_p in
3255 [\\/$]* | ?:[\\/]*) ;;
3256 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3257esac
3258
3259for ac_prog in gawk mawk nawk awk
3260do
3261 # Extract the first word of "$ac_prog", so it can be a program name with args.
3262set dummy $ac_prog; ac_word=$2
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264$as_echo_n "checking for $ac_word... " >&6; }
3265if test "${ac_cv_prog_AWK+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3267else
3268 if test -n "$AWK"; then
3269 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3270else
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_AWK="$ac_prog"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282done
3283 done
3284IFS=$as_save_IFS
3285
3286fi
3287fi
3288AWK=$ac_cv_prog_AWK
3289if test -n "$AWK"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3291$as_echo "$AWK" >&6; }
3292else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295fi
3296
3297
3298 test -n "$AWK" && break
3299done
3300
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3302$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3303set x ${MAKE-make}
3304ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3305if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3306 $as_echo_n "(cached) " >&6
3307else
3308 cat >conftest.make <<\_ACEOF
3309SHELL = /bin/sh
3310all:
3311 @echo '@@@%%%=$(MAKE)=@@@%%%'
3312_ACEOF
3313# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3314case `${MAKE-make} -f conftest.make 2>/dev/null` in
3315 *@@@%%%=?*=@@@%%%*)
3316 eval ac_cv_prog_make_${ac_make}_set=yes;;
3317 *)
3318 eval ac_cv_prog_make_${ac_make}_set=no;;
3319esac
3320rm -f conftest.make
3321fi
3322if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324$as_echo "yes" >&6; }
4ee9c684 3325 SET_MAKE=
3326else
cd9a469c 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328$as_echo "no" >&6; }
4ee9c684 3329 SET_MAKE="MAKE=${MAKE-make}"
3330fi
3331
3332rm -rf .tst 2>/dev/null
3333mkdir .tst 2>/dev/null
3334if test -d .tst; then
3335 am__leading_dot=.
3336else
3337 am__leading_dot=_
3338fi
3339rmdir .tst 2>/dev/null
3340
cd9a469c 3341if test "`cd $srcdir && pwd`" != "`pwd`"; then
3342 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3343 # is not polluted with repeated "-I."
3344 am__isrc=' -I$(srcdir)'
3345 # test to see if srcdir already configured
3346 if test -f $srcdir/config.status; then
3347 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3348 fi
4ee9c684 3349fi
3350
3351# test whether we have cygpath
3352if test -z "$CYGPATH_W"; then
3353 if (cygpath --version) >/dev/null 2>/dev/null; then
3354 CYGPATH_W='cygpath -w'
3355 else
3356 CYGPATH_W=echo
3357 fi
3358fi
3359
3360
3361# Define the identity of the package.
3362 PACKAGE='libgfortran'
76c0a846 3363 VERSION='0.3'
4ee9c684 3364
3365
4ee9c684 3366# Some tools Automake needs.
3367
3368ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3369
3370
3371AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3372
3373
3374AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3375
3376
3377AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3378
3379
3380MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3381
4ee9c684 3382# We need awk for the "check" target. The system "awk" is bad on
3383# some platforms.
6745c9de 3384# Always define AMTAR for backward compatibility.
3385
3386AMTAR=${AMTAR-"${am_missing_run}tar"}
3387
3388am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3389
3390
4ee9c684 3391
3392
3393
4ee9c684 3394
cd9a469c 3395
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3397$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3398 # Check whether --enable-maintainer-mode was given.
3399if test "${enable_maintainer_mode+set}" = set; then :
3400 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4ee9c684 3401else
3402 USE_MAINTAINER_MODE=no
cd9a469c 3403fi
4ee9c684 3404
cd9a469c 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3406$as_echo "$USE_MAINTAINER_MODE" >&6; }
3407 if test $USE_MAINTAINER_MODE = yes; then
4ee9c684 3408 MAINTAINER_MODE_TRUE=
3409 MAINTAINER_MODE_FALSE='#'
3410else
3411 MAINTAINER_MODE_TRUE='#'
3412 MAINTAINER_MODE_FALSE=
3413fi
3414
3415 MAINT=$MAINTAINER_MODE_TRUE
3416
3417
90973b19 3418# Default to --enable-multilib
cd9a469c 3419# Check whether --enable-multilib was given.
3420if test "${enable_multilib+set}" = set; then :
3421 enableval=$enable_multilib; case "$enableval" in
90973b19 3422 yes) multilib=yes ;;
3423 no) multilib=no ;;
cd9a469c 3424 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
90973b19 3425 esac
3426else
3427 multilib=yes
cd9a469c 3428fi
3429
90973b19 3430
3431# We may get other options which we leave undocumented:
3432# --with-target-subdir, --with-multisrctop, --with-multisubdir
3433# See config-ml.in if you want the gory details.
3434
3435if test "$srcdir" = "."; then
3436 if test "$with_target_subdir" != "."; then
3437 multi_basedir="$srcdir/$with_multisrctop../.."
3438 else
3439 multi_basedir="$srcdir/$with_multisrctop.."
3440 fi
3441else
3442 multi_basedir="$srcdir/.."
3443fi
3444
3445
04c8b51e 3446# Even if the default multilib is not a cross compilation,
3447# it may be that some of the other multilibs are.
3448if test $cross_compiling = no && test $multilib = yes \
3449 && test "x${with_multisubdir}" != x ; then
3450 cross_compiling=maybe
3451fi
3452
cd9a469c 3453ac_config_commands="$ac_config_commands default-1"
90973b19 3454
3455
3456# Handy for debugging:
3457#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3458
3459# Are we being configured with some form of cross compiler?
3460# NB: We don't actually need to know this just now, but when, say, a test
3461# suite is included, we'll have to know.
3462if test "$build" != "$host"; then
3463 LIBGFOR_IS_NATIVE=false
b52ee437 3464
90973b19 3465else
3466 LIBGFOR_IS_NATIVE=true
3467fi
3468
d5d92632 3469DEPDIR="${am__leading_dot}deps"
90973b19 3470
d5d92632 3471ac_config_commands="$ac_config_commands depfiles"
90973b19 3472
4ee9c684 3473
d5d92632 3474am_make=${MAKE-make}
3475cat > confinc << 'END'
3476am__doit:
3477 @echo this is the am__doit target
3478.PHONY: am__doit
3479END
3480# If we don't find an include directive, just comment out the code.
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3482$as_echo_n "checking for style of include used by $am_make... " >&6; }
3483am__include="#"
3484am__quote=
3485_am_result=none
3486# First try GNU make style include.
3487echo "include confinc" > confmf
3488# Ignore all kinds of additional output from `make'.
3489case `$am_make -s -f confmf 2> /dev/null` in #(
3490*the\ am__doit\ target*)
3491 am__include=include
3492 am__quote=
3493 _am_result=GNU
3494 ;;
3495esac
3496# Now try BSD make style include.
3497if test "$am__include" = "#"; then
3498 echo '.include "confinc"' > confmf
3499 case `$am_make -s -f confmf 2> /dev/null` in #(
3500 *the\ am__doit\ target*)
3501 am__include=.include
3502 am__quote="\""
3503 _am_result=BSD
3504 ;;
3505 esac
3506fi
87969c8c 3507
4ee9c684 3508
d5d92632 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3510$as_echo "$_am_result" >&6; }
3511rm -f confinc confmf
3512
3513# Check whether --enable-dependency-tracking was given.
3514if test "${enable_dependency_tracking+set}" = set; then :
3515 enableval=$enable_dependency_tracking;
3516fi
3517
3518if test "x$enable_dependency_tracking" != xno; then
3519 am_depcomp="$ac_aux_dir/depcomp"
3520 AMDEPBACKSLASH='\'
3521fi
3522 if test "x$enable_dependency_tracking" != xno; then
3523 AMDEP_TRUE=
3524 AMDEP_FALSE='#'
3525else
3526 AMDEP_TRUE='#'
3527 AMDEP_FALSE=
3528fi
4ee9c684 3529
3530
4ee9c684 3531ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3538set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540$as_echo_n "checking for $ac_word... " >&6; }
3541if test "${ac_cv_prog_CC+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
4ee9c684 3543else
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC="$CC" # Let the user override the test.
3546else
3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548for as_dir in $PATH
3549do
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
cd9a469c 3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4ee9c684 3554 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3556 break 2
3557 fi
3558done
cd9a469c 3559 done
3560IFS=$as_save_IFS
4ee9c684 3561
3562fi
3563fi
3564CC=$ac_cv_prog_CC
3565if test -n "$CC"; then
cd9a469c 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567$as_echo "$CC" >&6; }
4ee9c684 3568else
cd9a469c 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570$as_echo "no" >&6; }
4ee9c684 3571fi
3572
cd9a469c 3573
4ee9c684 3574fi
3575if test -z "$ac_cv_prog_CC"; then
3576 ac_ct_CC=$CC
3577 # Extract the first word of "gcc", so it can be a program name with args.
3578set dummy gcc; ac_word=$2
cd9a469c 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580$as_echo_n "checking for $ac_word... " >&6; }
3581if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
4ee9c684 3583else
3584 if test -n "$ac_ct_CC"; then
3585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3586else
3587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588for as_dir in $PATH
3589do
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
cd9a469c 3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4ee9c684 3594 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3596 break 2
3597 fi
3598done
cd9a469c 3599 done
3600IFS=$as_save_IFS
4ee9c684 3601
3602fi
3603fi
3604ac_ct_CC=$ac_cv_prog_ac_ct_CC
3605if test -n "$ac_ct_CC"; then
cd9a469c 3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3607$as_echo "$ac_ct_CC" >&6; }
4ee9c684 3608else
cd9a469c 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610$as_echo "no" >&6; }
4ee9c684 3611fi
3612
cd9a469c 3613 if test "x$ac_ct_CC" = x; then
3614 CC=""
3615 else
3616 case $cross_compiling:$ac_tool_warned in
3617yes:)
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620ac_tool_warned=yes ;;
3621esac
3622 CC=$ac_ct_CC
3623 fi
4ee9c684 3624else
3625 CC="$ac_cv_prog_CC"
3626fi
3627
3628if test -z "$CC"; then
cd9a469c 3629 if test -n "$ac_tool_prefix"; then
3630 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4ee9c684 3631set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633$as_echo_n "checking for $ac_word... " >&6; }
3634if test "${ac_cv_prog_CC+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
4ee9c684 3636else
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC="$CC" # Let the user override the test.
3639else
3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH
3642do
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
cd9a469c 3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4ee9c684 3647 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3649 break 2
3650 fi
3651done
cd9a469c 3652 done
3653IFS=$as_save_IFS
4ee9c684 3654
3655fi
3656fi
3657CC=$ac_cv_prog_CC
3658if test -n "$CC"; then
cd9a469c 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3660$as_echo "$CC" >&6; }
82eaf560 3661else
cd9a469c 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663$as_echo "no" >&6; }
82eaf560 3664fi
3665
82eaf560 3666
cd9a469c 3667 fi
4ee9c684 3668fi
3669if test -z "$CC"; then
3670 # Extract the first word of "cc", so it can be a program name with args.
3671set dummy cc; ac_word=$2
cd9a469c 3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673$as_echo_n "checking for $ac_word... " >&6; }
3674if test "${ac_cv_prog_CC+set}" = set; then :
3675 $as_echo_n "(cached) " >&6
4ee9c684 3676else
3677 if test -n "$CC"; then
3678 ac_cv_prog_CC="$CC" # Let the user override the test.
3679else
3680 ac_prog_rejected=no
3681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682for as_dir in $PATH
3683do
3684 IFS=$as_save_IFS
3685 test -z "$as_dir" && as_dir=.
cd9a469c 3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4ee9c684 3688 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3689 ac_prog_rejected=yes
3690 continue
3691 fi
3692 ac_cv_prog_CC="cc"
cd9a469c 3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3694 break 2
3695 fi
3696done
cd9a469c 3697 done
3698IFS=$as_save_IFS
4ee9c684 3699
3700if test $ac_prog_rejected = yes; then
3701 # We found a bogon in the path, so make sure we never use it.
3702 set dummy $ac_cv_prog_CC
3703 shift
3704 if test $# != 0; then
3705 # We chose a different compiler from the bogus one.
3706 # However, it has the same basename, so the bogon will be chosen
3707 # first if we set CC to just the basename; use the full file name.
3708 shift
3709 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3710 fi
3711fi
3712fi
3713fi
3714CC=$ac_cv_prog_CC
3715if test -n "$CC"; then
cd9a469c 3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717$as_echo "$CC" >&6; }
4ee9c684 3718else
cd9a469c 3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720$as_echo "no" >&6; }
4ee9c684 3721fi
3722
cd9a469c 3723
4ee9c684 3724fi
3725if test -z "$CC"; then
3726 if test -n "$ac_tool_prefix"; then
cd9a469c 3727 for ac_prog in cl.exe
4ee9c684 3728 do
3729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3730set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732$as_echo_n "checking for $ac_word... " >&6; }
3733if test "${ac_cv_prog_CC+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
4ee9c684 3735else
3736 if test -n "$CC"; then
3737 ac_cv_prog_CC="$CC" # Let the user override the test.
3738else
3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740for as_dir in $PATH
3741do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
cd9a469c 3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4ee9c684 3746 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3748 break 2
3749 fi
3750done
cd9a469c 3751 done
3752IFS=$as_save_IFS
4ee9c684 3753
3754fi
3755fi
3756CC=$ac_cv_prog_CC
3757if test -n "$CC"; then
cd9a469c 3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3759$as_echo "$CC" >&6; }
4ee9c684 3760else
cd9a469c 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762$as_echo "no" >&6; }
4ee9c684 3763fi
3764
cd9a469c 3765
4ee9c684 3766 test -n "$CC" && break
3767 done
3768fi
3769if test -z "$CC"; then
3770 ac_ct_CC=$CC
cd9a469c 3771 for ac_prog in cl.exe
4ee9c684 3772do
3773 # Extract the first word of "$ac_prog", so it can be a program name with args.
3774set dummy $ac_prog; ac_word=$2
cd9a469c 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3776$as_echo_n "checking for $ac_word... " >&6; }
3777if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
4ee9c684 3779else
3780 if test -n "$ac_ct_CC"; then
3781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3782else
3783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
cd9a469c 3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4ee9c684 3790 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 3791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3792 break 2
3793 fi
3794done
cd9a469c 3795 done
3796IFS=$as_save_IFS
4ee9c684 3797
3798fi
3799fi
3800ac_ct_CC=$ac_cv_prog_ac_ct_CC
3801if test -n "$ac_ct_CC"; then
cd9a469c 3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3803$as_echo "$ac_ct_CC" >&6; }
4ee9c684 3804else
cd9a469c 3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806$as_echo "no" >&6; }
4ee9c684 3807fi
3808
cd9a469c 3809
4ee9c684 3810 test -n "$ac_ct_CC" && break
3811done
3812
cd9a469c 3813 if test "x$ac_ct_CC" = x; then
3814 CC=""
3815 else
3816 case $cross_compiling:$ac_tool_warned in
3817yes:)
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3820ac_tool_warned=yes ;;
3821esac
3822 CC=$ac_ct_CC
3823 fi
4ee9c684 3824fi
3825
3826fi
3827
3828
cd9a469c 3829test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831as_fn_error "no acceptable C compiler found in \$PATH
3832See \`config.log' for more details." "$LINENO" 5; }
4ee9c684 3833
3834# Provide some information about the compiler.
cd9a469c 3835$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3836set X $ac_compile
3837ac_compiler=$2
3838for ac_option in --version -v -V -qversion; do
3839 { { ac_try="$ac_compiler $ac_option >&5"
3840case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843esac
3844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845$as_echo "$ac_try_echo"; } >&5
3846 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4ee9c684 3847 ac_status=$?
cd9a469c 3848 if test -s conftest.err; then
3849 sed '10a\
3850... rest of stderr output deleted ...
3851 10q' conftest.err >conftest.er1
3852 cat conftest.er1 >&5
3853 rm -f conftest.er1 conftest.err
3854 fi
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }
3857done
4ee9c684 3858
cd9a469c 3859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 3860/* end confdefs.h. */
3861
b52ee437 3862int
3863main ()
3864{
3865
3866 ;
3867 return 0;
3868}
3869_ACEOF
3870# FIXME: Cleanup?
cd9a469c 3871if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
b52ee437 3872 (eval $ac_link) 2>&5
3873 ac_status=$?
cd9a469c 3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }; then :
b52ee437 3876 gcc_no_link=no
3877else
3878 gcc_no_link=yes
3879fi
b52ee437 3880if test x$gcc_no_link = xyes; then
3881 # Setting cross_compile will disable run tests; it will
3882 # also disable AC_CHECK_FILE but that's generally
3883 # correct if we can't link.
3884 cross_compiling=yes
3885 EXEEXT=
3886else
cd9a469c 3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 3888/* end confdefs.h. */
3889
4ee9c684 3890int
3891main ()
3892{
3893
3894 ;
3895 return 0;
3896}
3897_ACEOF
3898ac_clean_files_save=$ac_clean_files
cd9a469c 3899ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4ee9c684 3900# Try to create an executable without -o first, disregard a.out.
3901# It will help us diagnose broken compilers, and finding out an intuition
3902# of exeext.
cd9a469c 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3904$as_echo_n "checking for C compiler default output file name... " >&6; }
3905ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3906
3907# The possible output files:
3908ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3909
3910ac_rmfiles=
3911for ac_file in $ac_files
3912do
3913 case $ac_file in
3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3915 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3916 esac
3917done
3918rm -f $ac_rmfiles
3919
3920if { { ac_try="$ac_link_default"
3921case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924esac
3925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926$as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_link_default") 2>&5
3928 ac_status=$?
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }; then :
3931 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3932# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3933# in a Makefile. We should not override ac_cv_exeext if it was cached,
3934# so that the user can short-circuit this test for compilers unknown to
3935# Autoconf.
3936for ac_file in $ac_files ''
4ee9c684 3937do
3938 test -f "$ac_file" || continue
3939 case $ac_file in
cd9a469c 3940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4ee9c684 3941 ;;
3942 [ab].out )
3943 # We found the default executable, but exeext='' is most
3944 # certainly right.
3945 break;;
3946 *.* )
cd9a469c 3947 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3948 then :; else
3949 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3950 fi
3951 # We set ac_cv_exeext here because the later test for it is not
3952 # safe: cross compilers may not add the suffix if given an `-o'
3953 # argument, so we may need to know it at that point already.
3954 # Even if this section looks crufty: it has the advantage of
3955 # actually working.
4ee9c684 3956 break;;
3957 * )
3958 break;;
3959 esac
3960done
cd9a469c 3961test "$ac_cv_exeext" = no && ac_cv_exeext=
3962
4ee9c684 3963else
cd9a469c 3964 ac_file=''
3965fi
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3967$as_echo "$ac_file" >&6; }
3968if test -z "$ac_file"; then :
3969 $as_echo "$as_me: failed program was:" >&5
4ee9c684 3970sed 's/^/| /' conftest.$ac_ext >&5
3971
cd9a469c 3972{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974{ as_fn_set_status 77
3975as_fn_error "C compiler cannot create executables
3976See \`config.log' for more details." "$LINENO" 5; }; }
4ee9c684 3977fi
4ee9c684 3978ac_exeext=$ac_cv_exeext
4ee9c684 3979
cd9a469c 3980# Check that the compiler produces executables we can run. If not, either
4ee9c684 3981# the compiler is broken, or we cross compile.
cd9a469c 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3983$as_echo_n "checking whether the C compiler works... " >&6; }
4ee9c684 3984# If not cross compiling, check that we can run a simple program.
3985if test "$cross_compiling" != yes; then
3986 if { ac_try='./$ac_file'
cd9a469c 3987 { { case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990esac
3991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992$as_echo "$ac_try_echo"; } >&5
3993 (eval "$ac_try") 2>&5
4ee9c684 3994 ac_status=$?
cd9a469c 3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }; }; then
4ee9c684 3997 cross_compiling=no
3998 else
3999 if test "$cross_compiling" = maybe; then
4000 cross_compiling=yes
4001 else
cd9a469c 4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004as_fn_error "cannot run C compiled programs.
4ee9c684 4005If you meant to cross compile, use \`--host'.
cd9a469c 4006See \`config.log' for more details." "$LINENO" 5; }
4ee9c684 4007 fi
4008 fi
4009fi
cd9a469c 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4011$as_echo "yes" >&6; }
4ee9c684 4012
cd9a469c 4013rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4ee9c684 4014ac_clean_files=$ac_clean_files_save
cd9a469c 4015# Check that the compiler produces executables we can run. If not, either
4ee9c684 4016# the compiler is broken, or we cross compile.
cd9a469c 4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4018$as_echo_n "checking whether we are cross compiling... " >&6; }
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4020$as_echo "$cross_compiling" >&6; }
4021
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4023$as_echo_n "checking for suffix of executables... " >&6; }
4024if { { ac_try="$ac_link"
4025case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4028esac
4029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030$as_echo "$ac_try_echo"; } >&5
4031 (eval "$ac_link") 2>&5
4ee9c684 4032 ac_status=$?
cd9a469c 4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034 test $ac_status = 0; }; then :
4ee9c684 4035 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4036# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4037# work properly (i.e., refer to `conftest.exe'), while it won't with
4038# `rm'.
4039for ac_file in conftest.exe conftest conftest.*; do
4040 test -f "$ac_file" || continue
4041 case $ac_file in
cd9a469c 4042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4ee9c684 4043 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4ee9c684 4044 break;;
4045 * ) break;;
4046 esac
4047done
4048else
cd9a469c 4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051as_fn_error "cannot compute suffix of executables: cannot compile and link
4052See \`config.log' for more details." "$LINENO" 5; }
4ee9c684 4053fi
4ee9c684 4054rm -f conftest$ac_cv_exeext
cd9a469c 4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4056$as_echo "$ac_cv_exeext" >&6; }
4ee9c684 4057
4058rm -f conftest.$ac_ext
4059EXEEXT=$ac_cv_exeext
4060ac_exeext=$EXEEXT
b52ee437 4061fi
cd9a469c 4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4063$as_echo_n "checking for suffix of object files... " >&6; }
4064if test "${ac_cv_objext+set}" = set; then :
4065 $as_echo_n "(cached) " >&6
4ee9c684 4066else
cd9a469c 4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 4068/* end confdefs.h. */
4069
4070int
4071main ()
4072{
4073
4074 ;
4075 return 0;
4076}
4077_ACEOF
4078rm -f conftest.o conftest.obj
cd9a469c 4079if { { ac_try="$ac_compile"
4080case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083esac
4084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4085$as_echo "$ac_try_echo"; } >&5
4086 (eval "$ac_compile") 2>&5
4087 ac_status=$?
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }; then :
4090 for ac_file in conftest.o conftest.obj conftest.*; do
4091 test -f "$ac_file" || continue;
4ee9c684 4092 case $ac_file in
cd9a469c 4093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4ee9c684 4094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4095 break;;
4096 esac
4097done
4098else
cd9a469c 4099 $as_echo "$as_me: failed program was:" >&5
4ee9c684 4100sed 's/^/| /' conftest.$ac_ext >&5
4101
cd9a469c 4102{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4104as_fn_error "cannot compute suffix of object files: cannot compile
4105See \`config.log' for more details." "$LINENO" 5; }
a106dabe 4106fi
a106dabe 4107rm -f conftest.$ac_cv_objext conftest.$ac_ext
4108fi
cd9a469c 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4110$as_echo "$ac_cv_objext" >&6; }
a106dabe 4111OBJEXT=$ac_cv_objext
4112ac_objext=$OBJEXT
cd9a469c 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4114$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4115if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4116 $as_echo_n "(cached) " >&6
a106dabe 4117else
cd9a469c 4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 4119/* end confdefs.h. */
4ee9c684 4120
4ee9c684 4121int
4122main ()
4123{
a106dabe 4124#ifndef __GNUC__
4125 choke me
4126#endif
ce1a737c 4127
4ee9c684 4128 ;
4129 return 0;
4130}
4131_ACEOF
cd9a469c 4132if ac_fn_c_try_compile "$LINENO"; then :
a106dabe 4133 ac_compiler_gnu=yes
4ee9c684 4134else
cd9a469c 4135 ac_compiler_gnu=no
a106dabe 4136fi
cd9a469c 4137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a106dabe 4138ac_cv_c_compiler_gnu=$ac_compiler_gnu
4139
4140fi
cd9a469c 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4142$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4143if test $ac_compiler_gnu = yes; then
4144 GCC=yes
4145else
4146 GCC=
4147fi
a106dabe 4148ac_test_CFLAGS=${CFLAGS+set}
4149ac_save_CFLAGS=$CFLAGS
cd9a469c 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4151$as_echo_n "checking whether $CC accepts -g... " >&6; }
4152if test "${ac_cv_prog_cc_g+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
a106dabe 4154else
cd9a469c 4155 ac_save_c_werror_flag=$ac_c_werror_flag
4156 ac_c_werror_flag=yes
4157 ac_cv_prog_cc_g=no
4158 CFLAGS="-g"
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 4160/* end confdefs.h. */
ce1a737c 4161
4ee9c684 4162int
4163main ()
4164{
ce1a737c 4165
4ee9c684 4166 ;
4167 return 0;
4168}
4169_ACEOF
cd9a469c 4170if ac_fn_c_try_compile "$LINENO"; then :
ff4425cf 4171 ac_cv_prog_cc_g=yes
4172else
cd9a469c 4173 CFLAGS=""
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175/* end confdefs.h. */
4176
4177int
4178main ()
4179{
4180
4181 ;
4182 return 0;
4183}
4184_ACEOF
4185if ac_fn_c_try_compile "$LINENO"; then :
4186
4187else
4188 ac_c_werror_flag=$ac_save_c_werror_flag
4189 CFLAGS="-g"
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191/* end confdefs.h. */
ff4425cf 4192
cd9a469c 4193int
4194main ()
4195{
4196
4197 ;
4198 return 0;
4199}
4200_ACEOF
4201if ac_fn_c_try_compile "$LINENO"; then :
4202 ac_cv_prog_cc_g=yes
4203fi
4204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82eaf560 4205fi
cd9a469c 4206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82eaf560 4207fi
cd9a469c 4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 ac_c_werror_flag=$ac_save_c_werror_flag
4210fi
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4212$as_echo "$ac_cv_prog_cc_g" >&6; }
82eaf560 4213if test "$ac_test_CFLAGS" = set; then
4214 CFLAGS=$ac_save_CFLAGS
4215elif test $ac_cv_prog_cc_g = yes; then
4216 if test "$GCC" = yes; then
4217 CFLAGS="-g -O2"
4218 else
4219 CFLAGS="-g"
4220 fi
4221else
4222 if test "$GCC" = yes; then
4223 CFLAGS="-O2"
4224 else
4225 CFLAGS=
4226 fi
4227fi
cd9a469c 4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4229$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4230if test "${ac_cv_prog_cc_c89+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
82eaf560 4232else
cd9a469c 4233 ac_cv_prog_cc_c89=no
82eaf560 4234ac_save_CC=$CC
cd9a469c 4235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff4425cf 4236/* end confdefs.h. */
82eaf560 4237#include <stdarg.h>
4238#include <stdio.h>
4239#include <sys/types.h>
4240#include <sys/stat.h>
4241/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4242struct buf { int x; };
4243FILE * (*rcsopen) (struct buf *, struct stat *, int);
4244static char *e (p, i)
4245 char **p;
4246 int i;
4247{
4248 return p[i];
4249}
4250static char *f (char * (*g) (char **, int), char **p, ...)
4251{
4252 char *s;
4253 va_list v;
4254 va_start (v,p);
4255 s = g (p, va_arg (v,int));
4256 va_end (v);
4257 return s;
4258}
ff4425cf 4259
82eaf560 4260/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4261 function prototypes and stuff, but not '\xHH' hex character constants.
4262 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 4263 as 'x'. The following induces an error, until -std is added to get
82eaf560 4264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4265 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 4266 that's true only with -std. */
82eaf560 4267int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4268
cd9a469c 4269/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4270 inside strings and character constants. */
4271#define FOO(x) 'x'
4272int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4273
82eaf560 4274int test (int i, double x);
4275struct s1 {int (*f) (int a);};
4276struct s2 {int (*f) (double a);};
4277int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4278int argc;
4279char **argv;
ff4425cf 4280int
4281main ()
4282{
82eaf560 4283return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
ff4425cf 4284 ;
4285 return 0;
4286}
4287_ACEOF
cd9a469c 4288for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
82eaf560 4290do
4291 CC="$ac_save_CC $ac_arg"
cd9a469c 4292 if ac_fn_c_try_compile "$LINENO"; then :
4293 ac_cv_prog_cc_c89=$ac_arg
82eaf560 4294fi
cd9a469c 4295rm -f core conftest.err conftest.$ac_objext
4296 test "x$ac_cv_prog_cc_c89" != "xno" && break
82eaf560 4297done
cd9a469c 4298rm -f conftest.$ac_ext
82eaf560 4299CC=$ac_save_CC
4300
4301fi
cd9a469c 4302# AC_CACHE_VAL
4303case "x$ac_cv_prog_cc_c89" in
4304 x)
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4306$as_echo "none needed" >&6; } ;;
4307 xno)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4309$as_echo "unsupported" >&6; } ;;
82eaf560 4310 *)
cd9a469c 4311 CC="$CC $ac_cv_prog_cc_c89"
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4313$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
82eaf560 4314esac
cd9a469c 4315if test "x$ac_cv_prog_cc_c89" != xno; then :
4ee9c684 4316
4317fi
4ee9c684 4318
4ee9c684 4319ac_ext=c
4320ac_cpp='$CPP $CPPFLAGS'
4321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323ac_compiler_gnu=$ac_cv_c_compiler_gnu
2fd61f51 4324
2fd61f51 4325depcc="$CC" am_compiler_list=
4326
cd9a469c 4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4328$as_echo_n "checking dependency style of $depcc... " >&6; }
4329if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
2fd61f51 4331else
4332 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4333 # We make a subdir and do the tests there. Otherwise we can end up
4334 # making bogus files that we don't know about and never remove. For
4335 # instance it was reported that on HP-UX the gcc test will end up
4336 # making a dummy file named `D' -- because `-MD' means `put the output
4337 # in D'.
4338 mkdir conftest.dir
4339 # Copy depcomp to subdir because otherwise we won't find it if we're
4340 # using a relative directory.
4341 cp "$am_depcomp" conftest.dir
4342 cd conftest.dir
4343 # We will build objects and dependencies in a subdirectory because
4344 # it helps to detect inapplicable dependency modes. For instance
4345 # both Tru64's cc and ICC support -MD to output dependencies as a
4346 # side effect of compilation, but ICC will put the dependencies in
4347 # the current directory while Tru64 will put them in the object
4348 # directory.
4349 mkdir sub
4350
4351 am_cv_CC_dependencies_compiler_type=none
4352 if test "$am_compiler_list" = ""; then
4353 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4354 fi
cd9a469c 4355 am__universal=false
4356 case " $depcc " in #(
4357 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4358 esac
4359
2fd61f51 4360 for depmode in $am_compiler_list; do
4361 # Setup a source with many dependencies, because some compilers
4362 # like to wrap large dependency lists on column 80 (with \), and
4363 # we should not choose a depcomp mode which is confused by this.
4364 #
4365 # We need to recreate these files for each test, as the compiler may
4366 # overwrite some of them when testing with obscure command lines.
4367 # This happens at least with the AIX C compiler.
4368 : > sub/conftest.c
4369 for i in 1 2 3 4 5 6; do
4370 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4371 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4372 # Solaris 8's {/usr,}/bin/sh.
4373 touch sub/conftst$i.h
4374 done
4375 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4376
cd9a469c 4377 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4378 # mode. It turns out that the SunPro C++ compiler does not properly
4379 # handle `-M -o', and we need to detect this. Also, some Intel
4380 # versions had trouble with output in subdirs
4381 am__obj=sub/conftest.${OBJEXT-o}
4382 am__minus_obj="-o $am__obj"
2fd61f51 4383 case $depmode in
cd9a469c 4384 gcc)
4385 # This depmode causes a compiler race in universal mode.
4386 test "$am__universal" = false || continue
4387 ;;
2fd61f51 4388 nosideeffect)
4389 # after this tag, mechanisms are not by side-effect, so they'll
4390 # only be used when explicitly requested
4391 if test "x$enable_dependency_tracking" = xyes; then
4392 continue
4393 else
4394 break
4395 fi
4396 ;;
cd9a469c 4397 msvisualcpp | msvcmsys)
4398 # This compiler won't grok `-c -o', but also, the minuso test has
4399 # not run yet. These depmodes are late enough in the game, and
4400 # so weak that their functioning should not be impacted.
4401 am__obj=conftest.${OBJEXT-o}
4402 am__minus_obj=
4403 ;;
2fd61f51 4404 none) break ;;
4405 esac
2fd61f51 4406 if depmode=$depmode \
cd9a469c 4407 source=sub/conftest.c object=$am__obj \
2fd61f51 4408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cd9a469c 4409 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2fd61f51 4410 >/dev/null 2>conftest.err &&
cd9a469c 4411 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2fd61f51 4412 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cd9a469c 4413 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2fd61f51 4414 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4415 # icc doesn't choke on unknown options, it will just issue warnings
4416 # or remarks (even with -Werror). So we grep stderr for any message
4417 # that says an option was ignored or not supported.
4418 # When given -MP, icc 7.0 and 7.1 complain thusly:
4419 # icc: Command line warning: ignoring option '-M'; no argument required
4420 # The diagnosis changed in icc 8.0:
4421 # icc: Command line remark: option '-MP' not supported
4422 if (grep 'ignoring option' conftest.err ||
4423 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4424 am_cv_CC_dependencies_compiler_type=$depmode
4425 break
4426 fi
4427 fi
4428 done
4429
4430 cd ..
4431 rm -rf conftest.dir
4432else
4433 am_cv_CC_dependencies_compiler_type=none
4434fi
4435
4436fi
cd9a469c 4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4438$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2fd61f51 4439CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4440
cd9a469c 4441 if
2fd61f51 4442 test "x$enable_dependency_tracking" != xno \
4443 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4444 am__fastdepCC_TRUE=
4445 am__fastdepCC_FALSE='#'
4446else
4447 am__fastdepCC_TRUE='#'
4448 am__fastdepCC_FALSE=
4449fi
4450
4ee9c684 4451
4ee9c684 4452
d5d92632 4453ac_ext=c
4454ac_cpp='$CPP $CPPFLAGS'
4455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4459$as_echo_n "checking how to run the C preprocessor... " >&6; }
4460# On Suns, sometimes $CPP names a directory.
4461if test -n "$CPP" && test -d "$CPP"; then
4462 CPP=
4ee9c684 4463fi
d5d92632 4464if test -z "$CPP"; then
4465 if test "${ac_cv_prog_CPP+set}" = set; then :
4466 $as_echo_n "(cached) " >&6
4467else
4468 # Double quotes because CPP needs to be expanded
4469 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4470 do
4471 ac_preproc_ok=false
4472for ac_c_preproc_warn_flag in '' yes
4473do
4474 # Use a header file that comes with gcc, so configuring glibc
4475 # with a fresh cross-compiler works.
4476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4477 # <limits.h> exists even on freestanding compilers.
4478 # On the NeXT, cc -E runs the code through the compiler's parser,
4479 # not just through cpp. "Syntax error" is here to catch this case.
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce1a737c 4481/* end confdefs.h. */
d5d92632 4482#ifdef __STDC__
4483# include <limits.h>
4484#else
4485# include <assert.h>
4486#endif
4487 Syntax error
ce1a737c 4488_ACEOF
d5d92632 4489if ac_fn_c_try_cpp "$LINENO"; then :
4490
019fb48a 4491else
d5d92632 4492 # Broken: fails on valid input.
4493continue
019fb48a 4494fi
d5d92632 4495rm -f conftest.err conftest.$ac_ext
019fb48a 4496
d5d92632 4497 # OK, works on sane cases. Now check whether nonexistent headers
4498 # can be detected and how.
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500/* end confdefs.h. */
4501#include <ac_nonexistent.h>
019fb48a 4502_ACEOF
d5d92632 4503if ac_fn_c_try_cpp "$LINENO"; then :
4504 # Broken: success on invalid input.
4505continue
ce1a737c 4506else
d5d92632 4507 # Passes both tests.
4508ac_preproc_ok=:
4509break
019fb48a 4510fi
d5d92632 4511rm -f conftest.err conftest.$ac_ext
4512
4513done
4514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4515rm -f conftest.err conftest.$ac_ext
4516if $ac_preproc_ok; then :
4517 break
ce1a737c 4518fi
4519
d5d92632 4520 done
4521 ac_cv_prog_CPP=$CPP
4522
4523fi
4524 CPP=$ac_cv_prog_CPP
019fb48a 4525else
d5d92632 4526 ac_cv_prog_CPP=$CPP
019fb48a 4527fi
d5d92632 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4529$as_echo "$CPP" >&6; }
4530ac_preproc_ok=false
4531for ac_c_preproc_warn_flag in '' yes
4532do
4533 # Use a header file that comes with gcc, so configuring glibc
4534 # with a fresh cross-compiler works.
4535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4536 # <limits.h> exists even on freestanding compilers.
4537 # On the NeXT, cc -E runs the code through the compiler's parser,
4538 # not just through cpp. "Syntax error" is here to catch this case.
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540/* end confdefs.h. */
4541#ifdef __STDC__
4542# include <limits.h>
4543#else
4544# include <assert.h>
4545#endif
4546 Syntax error
4547_ACEOF
4548if ac_fn_c_try_cpp "$LINENO"; then :
019fb48a 4549
019fb48a 4550else
d5d92632 4551 # Broken: fails on valid input.
4552continue
019fb48a 4553fi
d5d92632 4554rm -f conftest.err conftest.$ac_ext
019fb48a 4555
d5d92632 4556 # OK, works on sane cases. Now check whether nonexistent headers
4557 # can be detected and how.
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443eac1 4559/* end confdefs.h. */
d5d92632 4560#include <ac_nonexistent.h>
3443eac1 4561_ACEOF
d5d92632 4562if ac_fn_c_try_cpp "$LINENO"; then :
4563 # Broken: success on invalid input.
4564continue
3443eac1 4565else
d5d92632 4566 # Passes both tests.
4567ac_preproc_ok=:
4568break
3443eac1 4569fi
d5d92632 4570rm -f conftest.err conftest.$ac_ext
4571
4572done
4573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4574rm -f conftest.err conftest.$ac_ext
4575if $ac_preproc_ok; then :
4576
3443eac1 4577else
d5d92632 4578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580as_fn_error "C preprocessor \"$CPP\" fails sanity check
4581See \`config.log' for more details." "$LINENO" 5; }
3443eac1 4582fi
3443eac1 4583
d5d92632 4584ac_ext=c
4585ac_cpp='$CPP $CPPFLAGS'
4586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443eac1 4589
d5d92632 4590
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4592$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4593if test "${ac_cv_path_GREP+set}" = set; then :
cd9a469c 4594 $as_echo_n "(cached) " >&6
4ee9c684 4595else
d5d92632 4596 if test -z "$GREP"; then
4597 ac_path_GREP_found=false
4598 # Loop through the user's path and test for each of PROGNAME-LIST
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
90973b19 4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
d5d92632 4604 for ac_prog in grep ggrep; do
cd9a469c 4605 for ac_exec_ext in '' $ac_executable_extensions; do
d5d92632 4606 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4607 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4608# Check for GNU ac_path_GREP and select it if it is found.
4609 # Check for GNU $ac_path_GREP
4610case `"$ac_path_GREP" --version 2>&1` in
4611*GNU*)
4612 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4613*)
4614 ac_count=0
4615 $as_echo_n 0123456789 >"conftest.in"
4616 while :
4617 do
4618 cat "conftest.in" "conftest.in" >"conftest.tmp"
4619 mv "conftest.tmp" "conftest.in"
4620 cp "conftest.in" "conftest.nl"
4621 $as_echo 'GREP' >> "conftest.nl"
4622 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624 as_fn_arith $ac_count + 1 && ac_count=$as_val
4625 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4626 # Best one so far, save it but keep looking for a better one
4627 ac_cv_path_GREP="$ac_path_GREP"
4628 ac_path_GREP_max=$ac_count
4629 fi
4630 # 10*(2^10) chars as input seems more than enough
4631 test $ac_count -gt 10 && break
cd9a469c 4632 done
d5d92632 4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634esac
4ee9c684 4635
d5d92632 4636 $ac_path_GREP_found && break 3
4637 done
4638 done
4639 done
4640IFS=$as_save_IFS
4641 if test -z "$ac_cv_path_GREP"; then
4642 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4643 fi
4ee9c684 4644else
d5d92632 4645 ac_cv_path_GREP=$GREP
4ee9c684 4646fi
4647
4ee9c684 4648fi
d5d92632 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4650$as_echo "$ac_cv_path_GREP" >&6; }
4651 GREP="$ac_cv_path_GREP"
4ee9c684 4652
d5d92632 4653
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4655$as_echo_n "checking for egrep... " >&6; }
4656if test "${ac_cv_path_EGREP+set}" = set; then :
cd9a469c 4657 $as_echo_n "(cached) " >&6
4ee9c684 4658else
d5d92632 4659 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4660 then ac_cv_path_EGREP="$GREP -E"
4661 else
4662 if test -z "$EGREP"; then
4663 ac_path_EGREP_found=false
4664 # Loop through the user's path and test for each of PROGNAME-LIST
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4ee9c684 4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
d5d92632 4670 for ac_prog in egrep; do
cd9a469c 4671 for ac_exec_ext in '' $ac_executable_extensions; do
d5d92632 4672 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4673 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4674# Check for GNU ac_path_EGREP and select it if it is found.
4675 # Check for GNU $ac_path_EGREP
4676case `"$ac_path_EGREP" --version 2>&1` in
4677*GNU*)
4678 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4679*)
4680 ac_count=0
4681 $as_echo_n 0123456789 >"conftest.in"
4682 while :
4683 do
4684 cat "conftest.in" "conftest.in" >"conftest.tmp"
4685 mv "conftest.tmp" "conftest.in"
4686 cp "conftest.in" "conftest.nl"
4687 $as_echo 'EGREP' >> "conftest.nl"
4688 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4690 as_fn_arith $ac_count + 1 && ac_count=$as_val
4691 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4692 # Best one so far, save it but keep looking for a better one
4693 ac_cv_path_EGREP="$ac_path_EGREP"
4694 ac_path_EGREP_max=$ac_count
4695 fi
4696 # 10*(2^10) chars as input seems more than enough
4697 test $ac_count -gt 10 && break
cd9a469c 4698 done
d5d92632 4699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4700esac
4ee9c684 4701
d5d92632 4702 $ac_path_EGREP_found && break 3
4703 done
4704 done
4705 done
4706IFS=$as_save_IFS
4707 if test -z "$ac_cv_path_EGREP"; then
4708 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4709 fi
4ee9c684 4710else
d5d92632 4711 ac_cv_path_EGREP=$EGREP
4ee9c684 4712fi
4713
d5d92632 4714 fi
4ee9c684 4715fi
d5d92632 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4717$as_echo "$ac_cv_path_EGREP" >&6; }
4718 EGREP="$ac_cv_path_EGREP"
4719
4720
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4722$as_echo_n "checking for ANSI C header files... " >&6; }
4723if test "${ac_cv_header_stdc+set}" = set; then :
cd9a469c 4724 $as_echo_n "(cached) " >&6
4ee9c684 4725else
d5d92632 4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h. */
4728#include <stdlib.h>
4729#include <stdarg.h>
4730#include <string.h>
4731#include <float.h>
4732
4733int
4734main ()
4735{
4736
4737 ;
4738 return 0;
4739}
4740_ACEOF
4741if ac_fn_c_try_compile "$LINENO"; then :
4742 ac_cv_header_stdc=yes
4ee9c684 4743else
d5d92632 4744 ac_cv_header_stdc=no
4745fi
4746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 4747
d5d92632 4748if test $ac_cv_header_stdc = yes; then
4749 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751/* end confdefs.h. */
4752#include <string.h>
4753
4754_ACEOF
4755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4756 $EGREP "memchr" >/dev/null 2>&1; then :
4757
4758else
4759 ac_cv_header_stdc=no
4ee9c684 4760fi
d5d92632 4761rm -f conftest*
4762
4ee9c684 4763fi
d5d92632 4764
4765if test $ac_cv_header_stdc = yes; then
4766 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768/* end confdefs.h. */
4769#include <stdlib.h>
4770
4771_ACEOF
4772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773 $EGREP "free" >/dev/null 2>&1; then :
4774
4ee9c684 4775else
d5d92632 4776 ac_cv_header_stdc=no
4ee9c684 4777fi
d5d92632 4778rm -f conftest*
4ee9c684 4779
4ee9c684 4780fi
4781
d5d92632 4782if test $ac_cv_header_stdc = yes; then
4783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4784 if test "$cross_compiling" = yes; then :
4785 :
4786else
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788/* end confdefs.h. */
4789#include <ctype.h>
4790#include <stdlib.h>
4791#if ((' ' & 0x0FF) == 0x020)
4792# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4793# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4794#else
4795# define ISLOWER(c) \
4796 (('a' <= (c) && (c) <= 'i') \
4797 || ('j' <= (c) && (c) <= 'r') \
4798 || ('s' <= (c) && (c) <= 'z'))
4799# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4800#endif
4801
4802#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4803int
4804main ()
4805{
4806 int i;
4807 for (i = 0; i < 256; i++)
4808 if (XOR (islower (i), ISLOWER (i))
4809 || toupper (i) != TOUPPER (i))
4810 return 2;
4811 return 0;
4812}
4813_ACEOF
4814if ac_fn_c_try_run "$LINENO"; then :
4815
4816else
4817 ac_cv_header_stdc=no
4818fi
4819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4820 conftest.$ac_objext conftest.beam conftest.$ac_ext
4821fi
4822
4823fi
4824fi
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4826$as_echo "$ac_cv_header_stdc" >&6; }
4827if test $ac_cv_header_stdc = yes; then
4828
4829$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4830
4831fi
4832
4833# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4834for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4835 inttypes.h stdint.h unistd.h
4836do :
4837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4838ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4839"
4840eval as_val=\$$as_ac_Header
4841 if test "x$as_val" = x""yes; then :
4842 cat >>confdefs.h <<_ACEOF
4843#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4844_ACEOF
4845
4846fi
4847
4848done
4849
4850
4851
4852 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4853if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4854 MINIX=yes
4855else
4856 MINIX=
4857fi
4858
4859
4860 if test "$MINIX" = yes; then
4861
4862$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4863
4864
4865$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4866
4867
4868$as_echo "#define _MINIX 1" >>confdefs.h
4869
4870 fi
4871
4872
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4874$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4875if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4876 $as_echo_n "(cached) " >&6
4877else
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879/* end confdefs.h. */
4880
4881# define __EXTENSIONS__ 1
4882 $ac_includes_default
4883int
4884main ()
4885{
4886
4887 ;
4888 return 0;
4889}
4890_ACEOF
4891if ac_fn_c_try_compile "$LINENO"; then :
4892 ac_cv_safe_to_define___extensions__=yes
4893else
4894 ac_cv_safe_to_define___extensions__=no
4895fi
4896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897fi
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4899$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4900 test $ac_cv_safe_to_define___extensions__ = yes &&
4901 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4902
4903 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4904
4905 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4906
4907 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4908
4909 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4910
4911
4912
4913# Calculate toolexeclibdir
4914# Also toolexecdir, though it's only used in toolexeclibdir
4915case ${version_specific_libs} in
4916 yes)
4917 # Need the gcc compiler version to know where to install libraries
4918 # and header files if --enable-version-specific-runtime-libs option
4919 # is selected.
4920 toolexecdir='$(libdir)/gcc/$(target_alias)'
4921 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4922 ;;
4923 no)
4924 if test -n "$with_cross_host" &&
4925 test x"$with_cross_host" != x"no"; then
4926 # Install a library built with a cross compiler in tooldir, not libdir.
4927 toolexecdir='$(exec_prefix)/$(target_alias)'
4928 toolexeclibdir='$(toolexecdir)/lib'
4929 else
4930 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4931 toolexeclibdir='$(libdir)'
4932 fi
4933 multi_os_directory=`$CC -print-multi-os-directory`
4934 case $multi_os_directory in
4935 .) ;; # Avoid trailing /.
4936 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4937 esac
4938 ;;
4939esac
4940
4941
4942
4943# Create a spec file, so that compile/link tests don't fail
4944test -f libgfortran.spec || touch libgfortran.spec
4945
7eda0fb7 4946ac_ext=c
4947ac_cpp='$CPP $CPPFLAGS'
4948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950ac_compiler_gnu=$ac_cv_c_compiler_gnu
4951
d5d92632 4952# Check the compiler.
4953# The same as in boehm-gc and libstdc++. Have to borrow it from there.
4954# We must force CC to /not/ be precious variables; otherwise
4955# the wrong, non-multilib-adjusted value will be used in multilibs.
4956# As a side effect, we have to subst CFLAGS ourselves.
4957
4958
4959
4960ac_ext=c
4961ac_cpp='$CPP $CPPFLAGS'
4962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4967set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969$as_echo_n "checking for $ac_word... " >&6; }
d5d92632 4970if test "${ac_cv_prog_CC+set}" = set; then :
cd9a469c 4971 $as_echo_n "(cached) " >&6
4ee9c684 4972else
d5d92632 4973 if test -n "$CC"; then
4974 ac_cv_prog_CC="$CC" # Let the user override the test.
4ee9c684 4975else
90973b19 4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
cd9a469c 4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d5d92632 4983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 4985 break 2
4986 fi
4987done
cd9a469c 4988 done
4989IFS=$as_save_IFS
4ee9c684 4990
4ee9c684 4991fi
90973b19 4992fi
d5d92632 4993CC=$ac_cv_prog_CC
4994if test -n "$CC"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4996$as_echo "$CC" >&6; }
90973b19 4997else
cd9a469c 4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
90973b19 5000fi
4ee9c684 5001
cd9a469c 5002
4ee9c684 5003fi
d5d92632 5004if test -z "$ac_cv_prog_CC"; then
5005 ac_ct_CC=$CC
5006 # Extract the first word of "gcc", so it can be a program name with args.
5007set dummy gcc; ac_word=$2
cd9a469c 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009$as_echo_n "checking for $ac_word... " >&6; }
d5d92632 5010if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cd9a469c 5011 $as_echo_n "(cached) " >&6
4ee9c684 5012else
d5d92632 5013 if test -n "$ac_ct_CC"; then
5014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4ee9c684 5015else
90973b19 5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
cd9a469c 5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d5d92632 5023 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 5025 break 2
5026 fi
5027done
cd9a469c 5028 done
5029IFS=$as_save_IFS
4ee9c684 5030
4ee9c684 5031fi
4ee9c684 5032fi
d5d92632 5033ac_ct_CC=$ac_cv_prog_ac_ct_CC
5034if test -n "$ac_ct_CC"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5036$as_echo "$ac_ct_CC" >&6; }
4ee9c684 5037else
cd9a469c 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
4ee9c684 5040fi
5041
d5d92632 5042 if test "x$ac_ct_CC" = x; then
5043 CC=""
cd9a469c 5044 else
5045 case $cross_compiling:$ac_tool_warned in
5046yes:)
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049ac_tool_warned=yes ;;
5050esac
d5d92632 5051 CC=$ac_ct_CC
cd9a469c 5052 fi
90973b19 5053else
d5d92632 5054 CC="$ac_cv_prog_CC"
4ee9c684 5055fi
90973b19 5056
d5d92632 5057if test -z "$CC"; then
5058 if test -n "$ac_tool_prefix"; then
5059 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5060set dummy ${ac_tool_prefix}cc; ac_word=$2
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062$as_echo_n "checking for $ac_word... " >&6; }
5063if test "${ac_cv_prog_CC+set}" = set; then :
cd9a469c 5064 $as_echo_n "(cached) " >&6
4ee9c684 5065else
d5d92632 5066 if test -n "$CC"; then
5067 ac_cv_prog_CC="$CC" # Let the user override the test.
4ee9c684 5068else
d5d92632 5069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070for as_dir in $PATH
5071do
5072 IFS=$as_save_IFS
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_prog_CC="${ac_tool_prefix}cc"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 break 2
5079 fi
5080done
5081 done
5082IFS=$as_save_IFS
5083
5084fi
5085fi
5086CC=$ac_cv_prog_CC
5087if test -n "$CC"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5089$as_echo "$CC" >&6; }
5090else
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092$as_echo "no" >&6; }
5093fi
5094
5095
5096 fi
5097fi
5098if test -z "$CC"; then
5099 # Extract the first word of "cc", so it can be a program name with args.
5100set dummy cc; ac_word=$2
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102$as_echo_n "checking for $ac_word... " >&6; }
5103if test "${ac_cv_prog_CC+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5105else
5106 if test -n "$CC"; then
5107 ac_cv_prog_CC="$CC" # Let the user override the test.
5108else
5109 ac_prog_rejected=no
5110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111for as_dir in $PATH
5112do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5118 ac_prog_rejected=yes
5119 continue
5120 fi
5121 ac_cv_prog_CC="cc"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125done
5126 done
5127IFS=$as_save_IFS
5128
5129if test $ac_prog_rejected = yes; then
5130 # We found a bogon in the path, so make sure we never use it.
5131 set dummy $ac_cv_prog_CC
5132 shift
5133 if test $# != 0; then
5134 # We chose a different compiler from the bogus one.
5135 # However, it has the same basename, so the bogon will be chosen
5136 # first if we set CC to just the basename; use the full file name.
5137 shift
5138 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5139 fi
5140fi
5141fi
5142fi
5143CC=$ac_cv_prog_CC
5144if test -n "$CC"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5146$as_echo "$CC" >&6; }
5147else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149$as_echo "no" >&6; }
5150fi
5151
5152
5153fi
5154if test -z "$CC"; then
5155 if test -n "$ac_tool_prefix"; then
5156 for ac_prog in cl.exe
5157 do
5158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5159set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161$as_echo_n "checking for $ac_word... " >&6; }
5162if test "${ac_cv_prog_CC+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5164else
5165 if test -n "$CC"; then
5166 ac_cv_prog_CC="$CC" # Let the user override the test.
5167else
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179done
5180 done
5181IFS=$as_save_IFS
5182
5183fi
5184fi
5185CC=$ac_cv_prog_CC
5186if test -n "$CC"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5188$as_echo "$CC" >&6; }
5189else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191$as_echo "no" >&6; }
5192fi
5193
5194
5195 test -n "$CC" && break
5196 done
5197fi
5198if test -z "$CC"; then
5199 ac_ct_CC=$CC
5200 for ac_prog in cl.exe
5201do
5202 # Extract the first word of "$ac_prog", so it can be a program name with args.
5203set dummy $ac_prog; ac_word=$2
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205$as_echo_n "checking for $ac_word... " >&6; }
5206if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5207 $as_echo_n "(cached) " >&6
5208else
5209 if test -n "$ac_ct_CC"; then
5210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5211else
5212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH
5214do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_prog_ac_ct_CC="$ac_prog"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5222 fi
5223done
5224 done
5225IFS=$as_save_IFS
5226
5227fi
5228fi
5229ac_ct_CC=$ac_cv_prog_ac_ct_CC
5230if test -n "$ac_ct_CC"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5232$as_echo "$ac_ct_CC" >&6; }
5233else
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235$as_echo "no" >&6; }
5236fi
5237
5238
5239 test -n "$ac_ct_CC" && break
5240done
5241
5242 if test "x$ac_ct_CC" = x; then
5243 CC=""
5244 else
5245 case $cross_compiling:$ac_tool_warned in
5246yes:)
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5249ac_tool_warned=yes ;;
5250esac
5251 CC=$ac_ct_CC
5252 fi
5253fi
5254
5255fi
5256
5257
5258test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5260as_fn_error "no acceptable C compiler found in \$PATH
5261See \`config.log' for more details." "$LINENO" 5; }
5262
5263# Provide some information about the compiler.
5264$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5265set X $ac_compile
5266ac_compiler=$2
5267for ac_option in --version -v -V -qversion; do
5268 { { ac_try="$ac_compiler $ac_option >&5"
5269case "(($ac_try" in
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5272esac
5273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5274$as_echo "$ac_try_echo"; } >&5
5275 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5276 ac_status=$?
5277 if test -s conftest.err; then
5278 sed '10a\
5279... rest of stderr output deleted ...
5280 10q' conftest.err >conftest.er1
5281 cat conftest.er1 >&5
5282 rm -f conftest.er1 conftest.err
5283 fi
5284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5285 test $ac_status = 0; }
5286done
5287
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5289$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5290if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5291 $as_echo_n "(cached) " >&6
5292else
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294/* end confdefs.h. */
5295
5296int
5297main ()
5298{
5299#ifndef __GNUC__
5300 choke me
5301#endif
5302
5303 ;
5304 return 0;
5305}
5306_ACEOF
5307if ac_fn_c_try_compile "$LINENO"; then :
5308 ac_compiler_gnu=yes
5309else
5310 ac_compiler_gnu=no
5311fi
5312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313ac_cv_c_compiler_gnu=$ac_compiler_gnu
5314
5315fi
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5317$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5318if test $ac_compiler_gnu = yes; then
5319 GCC=yes
5320else
5321 GCC=
5322fi
5323ac_test_CFLAGS=${CFLAGS+set}
5324ac_save_CFLAGS=$CFLAGS
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5326$as_echo_n "checking whether $CC accepts -g... " >&6; }
5327if test "${ac_cv_prog_cc_g+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5329else
5330 ac_save_c_werror_flag=$ac_c_werror_flag
5331 ac_c_werror_flag=yes
5332 ac_cv_prog_cc_g=no
5333 CFLAGS="-g"
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h. */
5336
5337int
5338main ()
5339{
5340
5341 ;
5342 return 0;
5343}
5344_ACEOF
5345if ac_fn_c_try_compile "$LINENO"; then :
5346 ac_cv_prog_cc_g=yes
5347else
5348 CFLAGS=""
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350/* end confdefs.h. */
5351
5352int
5353main ()
5354{
5355
5356 ;
5357 return 0;
5358}
5359_ACEOF
5360if ac_fn_c_try_compile "$LINENO"; then :
5361
5362else
5363 ac_c_werror_flag=$ac_save_c_werror_flag
5364 CFLAGS="-g"
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366/* end confdefs.h. */
5367
5368int
5369main ()
5370{
5371
5372 ;
5373 return 0;
5374}
5375_ACEOF
5376if ac_fn_c_try_compile "$LINENO"; then :
5377 ac_cv_prog_cc_g=yes
5378fi
5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380fi
5381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382fi
5383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 ac_c_werror_flag=$ac_save_c_werror_flag
5385fi
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5387$as_echo "$ac_cv_prog_cc_g" >&6; }
5388if test "$ac_test_CFLAGS" = set; then
5389 CFLAGS=$ac_save_CFLAGS
5390elif test $ac_cv_prog_cc_g = yes; then
5391 if test "$GCC" = yes; then
5392 CFLAGS="-g -O2"
5393 else
5394 CFLAGS="-g"
5395 fi
5396else
5397 if test "$GCC" = yes; then
5398 CFLAGS="-O2"
5399 else
5400 CFLAGS=
5401 fi
5402fi
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5404$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5405if test "${ac_cv_prog_cc_c89+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407else
5408 ac_cv_prog_cc_c89=no
5409ac_save_CC=$CC
5410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411/* end confdefs.h. */
5412#include <stdarg.h>
5413#include <stdio.h>
5414#include <sys/types.h>
5415#include <sys/stat.h>
5416/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5417struct buf { int x; };
5418FILE * (*rcsopen) (struct buf *, struct stat *, int);
5419static char *e (p, i)
5420 char **p;
5421 int i;
5422{
5423 return p[i];
5424}
5425static char *f (char * (*g) (char **, int), char **p, ...)
5426{
5427 char *s;
5428 va_list v;
5429 va_start (v,p);
5430 s = g (p, va_arg (v,int));
5431 va_end (v);
5432 return s;
5433}
5434
5435/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5436 function prototypes and stuff, but not '\xHH' hex character constants.
5437 These don't provoke an error unfortunately, instead are silently treated
5438 as 'x'. The following induces an error, until -std is added to get
5439 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5440 array size at least. It's necessary to write '\x00'==0 to get something
5441 that's true only with -std. */
5442int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5443
5444/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5445 inside strings and character constants. */
5446#define FOO(x) 'x'
5447int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5448
5449int test (int i, double x);
5450struct s1 {int (*f) (int a);};
5451struct s2 {int (*f) (double a);};
5452int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5453int argc;
5454char **argv;
5455int
5456main ()
5457{
5458return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5459 ;
5460 return 0;
5461}
5462_ACEOF
5463for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5464 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5465do
5466 CC="$ac_save_CC $ac_arg"
5467 if ac_fn_c_try_compile "$LINENO"; then :
5468 ac_cv_prog_cc_c89=$ac_arg
5469fi
5470rm -f core conftest.err conftest.$ac_objext
5471 test "x$ac_cv_prog_cc_c89" != "xno" && break
5472done
5473rm -f conftest.$ac_ext
5474CC=$ac_save_CC
5475
5476fi
5477# AC_CACHE_VAL
5478case "x$ac_cv_prog_cc_c89" in
5479 x)
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5481$as_echo "none needed" >&6; } ;;
5482 xno)
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5484$as_echo "unsupported" >&6; } ;;
5485 *)
5486 CC="$CC $ac_cv_prog_cc_c89"
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5488$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5489esac
5490if test "x$ac_cv_prog_cc_c89" != xno; then :
5491
5492fi
5493
5494ac_ext=c
5495ac_cpp='$CPP $CPPFLAGS'
5496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5498ac_compiler_gnu=$ac_cv_c_compiler_gnu
5499
5500depcc="$CC" am_compiler_list=
5501
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5503$as_echo_n "checking dependency style of $depcc... " >&6; }
5504if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506else
5507 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5508 # We make a subdir and do the tests there. Otherwise we can end up
5509 # making bogus files that we don't know about and never remove. For
5510 # instance it was reported that on HP-UX the gcc test will end up
5511 # making a dummy file named `D' -- because `-MD' means `put the output
5512 # in D'.
5513 mkdir conftest.dir
5514 # Copy depcomp to subdir because otherwise we won't find it if we're
5515 # using a relative directory.
5516 cp "$am_depcomp" conftest.dir
5517 cd conftest.dir
5518 # We will build objects and dependencies in a subdirectory because
5519 # it helps to detect inapplicable dependency modes. For instance
5520 # both Tru64's cc and ICC support -MD to output dependencies as a
5521 # side effect of compilation, but ICC will put the dependencies in
5522 # the current directory while Tru64 will put them in the object
5523 # directory.
5524 mkdir sub
5525
5526 am_cv_CC_dependencies_compiler_type=none
5527 if test "$am_compiler_list" = ""; then
5528 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5529 fi
5530 am__universal=false
5531 case " $depcc " in #(
5532 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5533 esac
5534
5535 for depmode in $am_compiler_list; do
5536 # Setup a source with many dependencies, because some compilers
5537 # like to wrap large dependency lists on column 80 (with \), and
5538 # we should not choose a depcomp mode which is confused by this.
5539 #
5540 # We need to recreate these files for each test, as the compiler may
5541 # overwrite some of them when testing with obscure command lines.
5542 # This happens at least with the AIX C compiler.
5543 : > sub/conftest.c
5544 for i in 1 2 3 4 5 6; do
5545 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5546 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5547 # Solaris 8's {/usr,}/bin/sh.
5548 touch sub/conftst$i.h
5549 done
5550 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5551
5552 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5553 # mode. It turns out that the SunPro C++ compiler does not properly
5554 # handle `-M -o', and we need to detect this. Also, some Intel
5555 # versions had trouble with output in subdirs
5556 am__obj=sub/conftest.${OBJEXT-o}
5557 am__minus_obj="-o $am__obj"
5558 case $depmode in
5559 gcc)
5560 # This depmode causes a compiler race in universal mode.
5561 test "$am__universal" = false || continue
5562 ;;
5563 nosideeffect)
5564 # after this tag, mechanisms are not by side-effect, so they'll
5565 # only be used when explicitly requested
5566 if test "x$enable_dependency_tracking" = xyes; then
5567 continue
5568 else
5569 break
5570 fi
5571 ;;
5572 msvisualcpp | msvcmsys)
5573 # This compiler won't grok `-c -o', but also, the minuso test has
5574 # not run yet. These depmodes are late enough in the game, and
5575 # so weak that their functioning should not be impacted.
5576 am__obj=conftest.${OBJEXT-o}
5577 am__minus_obj=
5578 ;;
5579 none) break ;;
5580 esac
5581 if depmode=$depmode \
5582 source=sub/conftest.c object=$am__obj \
5583 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5584 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5585 >/dev/null 2>conftest.err &&
5586 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5587 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5588 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5589 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5590 # icc doesn't choke on unknown options, it will just issue warnings
5591 # or remarks (even with -Werror). So we grep stderr for any message
5592 # that says an option was ignored or not supported.
5593 # When given -MP, icc 7.0 and 7.1 complain thusly:
5594 # icc: Command line warning: ignoring option '-M'; no argument required
5595 # The diagnosis changed in icc 8.0:
5596 # icc: Command line remark: option '-MP' not supported
5597 if (grep 'ignoring option' conftest.err ||
5598 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5599 am_cv_CC_dependencies_compiler_type=$depmode
5600 break
5601 fi
5602 fi
5603 done
5604
5605 cd ..
5606 rm -rf conftest.dir
5607else
5608 am_cv_CC_dependencies_compiler_type=none
5609fi
5610
5611fi
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5613$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5614CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5615
5616 if
5617 test "x$enable_dependency_tracking" != xno \
5618 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5619 am__fastdepCC_TRUE=
5620 am__fastdepCC_FALSE='#'
5621else
5622 am__fastdepCC_TRUE='#'
5623 am__fastdepCC_FALSE=
5624fi
5625
5626
5627
5628
7eda0fb7 5629
5630
5631if test "x$CC" != xcc; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5633$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5634else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5636$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5637fi
5638set dummy $CC; ac_cc=`$as_echo "$2" |
5639 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5640if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5641 $as_echo_n "(cached) " >&6
5642else
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h. */
5645
5646int
5647main ()
5648{
5649
5650 ;
5651 return 0;
5652}
5653_ACEOF
5654# Make sure it works both with $CC and with simple cc.
5655# We do the test twice because some compilers refuse to overwrite an
5656# existing .o file with -o, though they will create one.
5657ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5658rm -f conftest2.*
5659if { { case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662esac
5663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5664$as_echo "$ac_try_echo"; } >&5
5665 (eval "$ac_try") 2>&5
5666 ac_status=$?
5667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668 test $ac_status = 0; } &&
5669 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672esac
5673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5674$as_echo "$ac_try_echo"; } >&5
5675 (eval "$ac_try") 2>&5
5676 ac_status=$?
5677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5678 test $ac_status = 0; };
5679then
5680 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5681 if test "x$CC" != xcc; then
5682 # Test first that cc exists at all.
5683 if { ac_try='cc -c conftest.$ac_ext >&5'
5684 { { case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687esac
5688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5689$as_echo "$ac_try_echo"; } >&5
5690 (eval "$ac_try") 2>&5
5691 ac_status=$?
5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693 test $ac_status = 0; }; }; then
5694 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5695 rm -f conftest2.*
5696 if { { case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699esac
5700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5701$as_echo "$ac_try_echo"; } >&5
5702 (eval "$ac_try") 2>&5
5703 ac_status=$?
5704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5705 test $ac_status = 0; } &&
5706 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709esac
5710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5711$as_echo "$ac_try_echo"; } >&5
5712 (eval "$ac_try") 2>&5
5713 ac_status=$?
5714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5715 test $ac_status = 0; };
5716 then
5717 # cc works too.
5718 :
5719 else
5720 # cc exists but doesn't like -o.
5721 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5722 fi
5723 fi
5724 fi
5725else
5726 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5727fi
5728rm -f core conftest*
5729
5730fi
5731if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733$as_echo "yes" >&6; }
5734else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; }
5737
5738$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5739
5740fi
5741
5742# FIXME: we rely on the cache variable name because
5743# there is no other way.
5744set dummy $CC
5745am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5746eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5747if test "$am_t" != yes; then
5748 # Losing compiler, so override with the script.
5749 # FIXME: It is wrong to rewrite CC.
5750 # But if we don't then we get into trouble of one sort or another.
5751 # A longer-term fix would be to have automake use am__CC in this case,
5752 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5753 CC="$am_aux_dir/compile $CC"
5754fi
5755
5756
5757
d5d92632 5758# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5759if test "x$GCC" = "xyes"; then
5760 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5761 ## We like to use C99 routines when available. This makes sure that
5762 ## __STDC_VERSION__ is set such that libc includes make them available.
5763 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
5764 ## Compile the following tests with the same system header contents
5765 ## that we'll encounter when compiling our own source files.
5766 CFLAGS="-std=gnu99 $CFLAGS"
5767fi
5768
5769
5770
5771
5772# Check for symbol versioning (copied from libssp).
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5774$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bbb514dc 5775# Check whether --enable-symvers was given.
5776if test "${enable_symvers+set}" = set; then :
5777 enableval=$enable_symvers; gfortran_use_symver=$enableval
5778else
5779 gfortran_use_symver=yes
5780fi
5781
5782if test "x$gfortran_use_symver" = xyes; then
5783 save_LDFLAGS="$LDFLAGS"
5784 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5785 cat > conftest.map <<EOF
d5d92632 5786FOO_1.0 {
5787 global: *foo*; bar; local: *;
5788};
5789EOF
bbb514dc 5790 if test x$gcc_no_link = xyes; then
d5d92632 5791 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5792fi
5793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794/* end confdefs.h. */
5795int foo;
5796int
5797main ()
5798{
5799
5800 ;
5801 return 0;
5802}
5803_ACEOF
5804if ac_fn_c_try_link "$LINENO"; then :
5805 gfortran_use_symver=gnu
5806else
5807 gfortran_use_symver=no
5808fi
5809rm -f core conftest.err conftest.$ac_objext \
5810 conftest$ac_exeext conftest.$ac_ext
bbb514dc 5811 if test x$gfortran_use_symver = xno; then
5812 case "$target_os" in
5813 solaris2*)
5814 LDFLAGS="$save_LDFLAGS"
5815 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5816 # Sun ld cannot handle wildcards and treats all entries as undefined.
5817 cat > conftest.map <<EOF
d5d92632 5818FOO_1.0 {
5819 global: foo; local: *;
5820};
5821EOF
bbb514dc 5822 if test x$gcc_no_link = xyes; then
d5d92632 5823 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5824fi
5825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h. */
5827int foo;
5828int
5829main ()
5830{
5831
5832 ;
5833 return 0;
5834}
5835_ACEOF
5836if ac_fn_c_try_link "$LINENO"; then :
5837 gfortran_use_symver=sun
5838else
5839 gfortran_use_symver=no
5840fi
5841rm -f core conftest.err conftest.$ac_objext \
5842 conftest$ac_exeext conftest.$ac_ext
bbb514dc 5843 ;;
5844 esac
5845 fi
5846 LDFLAGS="$save_LDFLAGS"
d5d92632 5847fi
d5d92632 5848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5849$as_echo "$gfortran_use_symver" >&6; }
5850 if test "x$gfortran_use_symver" != xno; then
5851 LIBGFOR_USE_SYMVER_TRUE=
5852 LIBGFOR_USE_SYMVER_FALSE='#'
5853else
5854 LIBGFOR_USE_SYMVER_TRUE='#'
5855 LIBGFOR_USE_SYMVER_FALSE=
5856fi
5857
5858 if test "x$gfortran_use_symver" = xgnu; then
5859 LIBGFOR_USE_SYMVER_GNU_TRUE=
5860 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5861else
5862 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5863 LIBGFOR_USE_SYMVER_GNU_FALSE=
5864fi
5865
5866 if test "x$gfortran_use_symver" = xsun; then
5867 LIBGFOR_USE_SYMVER_SUN_TRUE=
5868 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5869else
5870 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5871 LIBGFOR_USE_SYMVER_SUN_FALSE=
5872fi
5873
5874
5875# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5876# similarly to how libstdc++ does it
5877ac_test_CFLAGS="${CFLAGS+set}"
5878ac_save_CFLAGS="$CFLAGS"
5879
5880# Check for -ffunction-sections -fdata-sections
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5882$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5883CFLAGS='-Werror -ffunction-sections -fdata-sections'
5884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885/* end confdefs.h. */
5886
5887int
5888main ()
5889{
5890int foo;
5891 ;
5892 return 0;
5893}
5894_ACEOF
5895if ac_fn_c_try_compile "$LINENO"; then :
5896 ac_fdsections=yes
5897else
5898 ac_fdsections=no
5899fi
5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901if test "$ac_test_CFLAGS" = set; then
5902 CFLAGS="$ac_save_CFLAGS"
5903else
5904 # this is the suspicious part
5905 CFLAGS=""
5906fi
5907if test x"$ac_fdsections" = x"yes"; then
5908 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5909fi
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5911$as_echo "$ac_fdsections" >&6; }
5912
5913
5914# Find other programs we need.
5915if test -n "$ac_tool_prefix"; then
5916 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5917set dummy ${ac_tool_prefix}as; ac_word=$2
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919$as_echo_n "checking for $ac_word... " >&6; }
5920if test "${ac_cv_prog_AS+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922else
5923 if test -n "$AS"; then
5924 ac_cv_prog_AS="$AS" # Let the user override the test.
5925else
5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH
5928do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_prog_AS="${ac_tool_prefix}as"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937done
5938 done
5939IFS=$as_save_IFS
5940
5941fi
5942fi
5943AS=$ac_cv_prog_AS
5944if test -n "$AS"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5946$as_echo "$AS" >&6; }
5947else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949$as_echo "no" >&6; }
5950fi
5951
5952
5953fi
5954if test -z "$ac_cv_prog_AS"; then
5955 ac_ct_AS=$AS
5956 # Extract the first word of "as", so it can be a program name with args.
5957set dummy as; ac_word=$2
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959$as_echo_n "checking for $ac_word... " >&6; }
5960if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962else
5963 if test -n "$ac_ct_AS"; then
5964 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_ac_ct_AS="as"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977done
5978 done
5979IFS=$as_save_IFS
5980
5981fi
5982fi
5983ac_ct_AS=$ac_cv_prog_ac_ct_AS
5984if test -n "$ac_ct_AS"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5986$as_echo "$ac_ct_AS" >&6; }
5987else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
5990fi
5991
5992 if test "x$ac_ct_AS" = x; then
5993 AS=""
5994 else
5995 case $cross_compiling:$ac_tool_warned in
5996yes:)
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999ac_tool_warned=yes ;;
6000esac
6001 AS=$ac_ct_AS
6002 fi
6003else
6004 AS="$ac_cv_prog_AS"
6005fi
6006
6007if test -n "$ac_tool_prefix"; then
6008 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6009set dummy ${ac_tool_prefix}ar; ac_word=$2
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011$as_echo_n "checking for $ac_word... " >&6; }
6012if test "${ac_cv_prog_AR+set}" = set; then :
6013 $as_echo_n "(cached) " >&6
6014else
6015 if test -n "$AR"; then
6016 ac_cv_prog_AR="$AR" # Let the user override the test.
6017else
6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025 ac_cv_prog_AR="${ac_tool_prefix}ar"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6028 fi
6029done
6030 done
6031IFS=$as_save_IFS
6032
6033fi
6034fi
6035AR=$ac_cv_prog_AR
6036if test -n "$AR"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6038$as_echo "$AR" >&6; }
6039else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041$as_echo "no" >&6; }
6042fi
6043
6044
6045fi
6046if test -z "$ac_cv_prog_AR"; then
6047 ac_ct_AR=$AR
6048 # Extract the first word of "ar", so it can be a program name with args.
6049set dummy ar; ac_word=$2
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051$as_echo_n "checking for $ac_word... " >&6; }
6052if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6054else
6055 if test -n "$ac_ct_AR"; then
6056 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_ac_ct_AR="ar"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069done
6070 done
6071IFS=$as_save_IFS
6072
6073fi
6074fi
6075ac_ct_AR=$ac_cv_prog_ac_ct_AR
6076if test -n "$ac_ct_AR"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6078$as_echo "$ac_ct_AR" >&6; }
6079else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081$as_echo "no" >&6; }
6082fi
6083
6084 if test "x$ac_ct_AR" = x; then
6085 AR=""
6086 else
6087 case $cross_compiling:$ac_tool_warned in
6088yes:)
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091ac_tool_warned=yes ;;
6092esac
6093 AR=$ac_ct_AR
6094 fi
6095else
6096 AR="$ac_cv_prog_AR"
6097fi
6098
6099if test -n "$ac_tool_prefix"; then
6100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6101set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103$as_echo_n "checking for $ac_word... " >&6; }
6104if test "${ac_cv_prog_RANLIB+set}" = set; then :
6105 $as_echo_n "(cached) " >&6
6106else
6107 if test -n "$RANLIB"; then
6108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6109else
6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111for as_dir in $PATH
6112do
6113 IFS=$as_save_IFS
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 break 2
6120 fi
6121done
6122 done
6123IFS=$as_save_IFS
6124
6125fi
6126fi
6127RANLIB=$ac_cv_prog_RANLIB
6128if test -n "$RANLIB"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6130$as_echo "$RANLIB" >&6; }
6131else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133$as_echo "no" >&6; }
6134fi
6135
6136
6137fi
6138if test -z "$ac_cv_prog_RANLIB"; then
6139 ac_ct_RANLIB=$RANLIB
6140 # Extract the first word of "ranlib", so it can be a program name with args.
6141set dummy ranlib; ac_word=$2
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143$as_echo_n "checking for $ac_word... " >&6; }
6144if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6146else
6147 if test -n "$ac_ct_RANLIB"; then
6148 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6149else
6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH
6152do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157 ac_cv_prog_ac_ct_RANLIB="ranlib"
6158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 break 2
6160 fi
6161done
6162 done
6163IFS=$as_save_IFS
6164
6165fi
6166fi
6167ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6168if test -n "$ac_ct_RANLIB"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6170$as_echo "$ac_ct_RANLIB" >&6; }
6171else
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173$as_echo "no" >&6; }
6174fi
6175
6176 if test "x$ac_ct_RANLIB" = x; then
6177 RANLIB="ranlib-not-found-in-path-error"
6178 else
6179 case $cross_compiling:$ac_tool_warned in
6180yes:)
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6183ac_tool_warned=yes ;;
6184esac
6185 RANLIB=$ac_ct_RANLIB
6186 fi
6187else
6188 RANLIB="$ac_cv_prog_RANLIB"
6189fi
6190
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6192$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6193set x ${MAKE-make}
6194ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6195if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6196 $as_echo_n "(cached) " >&6
6197else
6198 cat >conftest.make <<\_ACEOF
6199SHELL = /bin/sh
6200all:
6201 @echo '@@@%%%=$(MAKE)=@@@%%%'
6202_ACEOF
6203# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6204case `${MAKE-make} -f conftest.make 2>/dev/null` in
6205 *@@@%%%=?*=@@@%%%*)
6206 eval ac_cv_prog_make_${ac_make}_set=yes;;
6207 *)
6208 eval ac_cv_prog_make_${ac_make}_set=no;;
6209esac
6210rm -f conftest.make
6211fi
6212if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6214$as_echo "yes" >&6; }
6215 SET_MAKE=
6216else
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218$as_echo "no" >&6; }
6219 SET_MAKE="MAKE=${MAKE-make}"
6220fi
4ee9c684 6221
4ee9c684 6222
4ee9c684 6223
90973b19 6224# Configure libtool
6225#AC_MSG_NOTICE([====== Starting libtool configuration])
542f9784 6226enable_dlopen=yes
6227
6228
6229
00aafda4 6230case `pwd` in
6231 *\ * | *\ *)
cd9a469c 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6233$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
00aafda4 6234esac
542f9784 6235
6236
542f9784 6237
e6408286 6238macro_version='2.2.7a'
6239macro_revision='1.3134'
542f9784 6240
6241
6242
6243
6244
6245
4ee9c684 6246
542f9784 6247
6248
6249
6250
6251
6252
00aafda4 6253ltmain="$ac_aux_dir/ltmain.sh"
542f9784 6254
e6408286 6255# Backslashify metacharacters that are still active within
6256# double-quoted strings.
6257sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6258
6259# Same as above, but do not quote variable references.
6260double_quote_subst='s/\(["`\\]\)/\\\1/g'
6261
6262# Sed substitution to delay expansion of an escaped shell variable in a
6263# double_quote_subst'ed string.
6264delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6265
6266# Sed substitution to delay expansion of an escaped single quote.
6267delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6268
6269# Sed substitution to avoid accidental globbing in evaled expressions
6270no_glob_subst='s/\*/\\\*/g'
6271
6272ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6273ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6274ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6275
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6277$as_echo_n "checking how to print strings... " >&6; }
6278# Test print first, because it will be a builtin if present.
6279if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6280 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6281 ECHO='print -r --'
6282elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6283 ECHO='printf %s\n'
6284else
6285 # Use this function as a fallback that always works.
6286 func_fallback_echo ()
6287 {
6288 eval 'cat <<_LTECHO_EOF
6289$1
6290_LTECHO_EOF'
6291 }
6292 ECHO='func_fallback_echo'
6293fi
6294
6295# func_echo_all arg...
6296# Invoke $ECHO with all args, space-separated.
6297func_echo_all ()
6298{
6299 $ECHO ""
6300}
6301
6302case "$ECHO" in
6303 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6304$as_echo "printf" >&6; } ;;
6305 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6306$as_echo "print -r" >&6; } ;;
6307 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6308$as_echo "cat" >&6; } ;;
6309esac
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
d5d92632 6322
6323
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6325$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6326if test "${ac_cv_path_SED+set}" = set; then :
cd9a469c 6327 $as_echo_n "(cached) " >&6
542f9784 6328else
d5d92632 6329 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6330 for ac_i in 1 2 3 4 5 6 7; do
6331 ac_script="$ac_script$as_nl$ac_script"
6332 done
6333 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6334 { ac_script=; unset ac_script;}
6335 if test -z "$SED"; then
6336 ac_path_SED_found=false
cd9a469c 6337 # Loop through the user's path and test for each of PROGNAME-LIST
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d5d92632 6339for as_dir in $PATH
cd9a469c 6340do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
d5d92632 6343 for ac_prog in sed gsed; do
cd9a469c 6344 for ac_exec_ext in '' $ac_executable_extensions; do
d5d92632 6345 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6346 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6347# Check for GNU ac_path_SED and select it if it is found.
6348 # Check for GNU $ac_path_SED
6349case `"$ac_path_SED" --version 2>&1` in
cd9a469c 6350*GNU*)
d5d92632 6351 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
cd9a469c 6352*)
6353 ac_count=0
6354 $as_echo_n 0123456789 >"conftest.in"
6355 while :
6356 do
6357 cat "conftest.in" "conftest.in" >"conftest.tmp"
6358 mv "conftest.tmp" "conftest.in"
6359 cp "conftest.in" "conftest.nl"
d5d92632 6360 $as_echo '' >> "conftest.nl"
6361 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
cd9a469c 6362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6363 as_fn_arith $ac_count + 1 && ac_count=$as_val
d5d92632 6364 if test $ac_count -gt ${ac_path_SED_max-0}; then
cd9a469c 6365 # Best one so far, save it but keep looking for a better one
d5d92632 6366 ac_cv_path_SED="$ac_path_SED"
6367 ac_path_SED_max=$ac_count
82eaf560 6368 fi
cd9a469c 6369 # 10*(2^10) chars as input seems more than enough
6370 test $ac_count -gt 10 && break
6371 done
6372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6373esac
6374
d5d92632 6375 $ac_path_SED_found && break 3
cd9a469c 6376 done
6377 done
6378 done
6379IFS=$as_save_IFS
d5d92632 6380 if test -z "$ac_cv_path_SED"; then
6381 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cd9a469c 6382 fi
6383else
d5d92632 6384 ac_cv_path_SED=$SED
cd9a469c 6385fi
6386
542f9784 6387fi
d5d92632 6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6389$as_echo "$ac_cv_path_SED" >&6; }
6390 SED="$ac_cv_path_SED"
6391 rm -f conftest.sed
6392
6393test -z "$SED" && SED=sed
6394Xsed="$SED -e 1s/^X//"
6395
6396
6397
6398
6399
6400
6401
6402
6403
542f9784 6404
6405
cd9a469c 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6407$as_echo_n "checking for fgrep... " >&6; }
6408if test "${ac_cv_path_FGREP+set}" = set; then :
6409 $as_echo_n "(cached) " >&6
82eaf560 6410else
cd9a469c 6411 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6412 then ac_cv_path_FGREP="$GREP -F"
6413 else
6414 if test -z "$FGREP"; then
6415 ac_path_FGREP_found=false
6416 # Loop through the user's path and test for each of PROGNAME-LIST
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6419do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_prog in fgrep; do
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6425 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6426# Check for GNU ac_path_FGREP and select it if it is found.
6427 # Check for GNU $ac_path_FGREP
6428case `"$ac_path_FGREP" --version 2>&1` in
6429*GNU*)
6430 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6431*)
6432 ac_count=0
6433 $as_echo_n 0123456789 >"conftest.in"
6434 while :
6435 do
6436 cat "conftest.in" "conftest.in" >"conftest.tmp"
6437 mv "conftest.tmp" "conftest.in"
6438 cp "conftest.in" "conftest.nl"
6439 $as_echo 'FGREP' >> "conftest.nl"
6440 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6442 as_fn_arith $ac_count + 1 && ac_count=$as_val
6443 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6444 # Best one so far, save it but keep looking for a better one
6445 ac_cv_path_FGREP="$ac_path_FGREP"
6446 ac_path_FGREP_max=$ac_count
82eaf560 6447 fi
cd9a469c 6448 # 10*(2^10) chars as input seems more than enough
6449 test $ac_count -gt 10 && break
6450 done
6451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6452esac
6453
6454 $ac_path_FGREP_found && break 3
6455 done
6456 done
6457 done
6458IFS=$as_save_IFS
6459 if test -z "$ac_cv_path_FGREP"; then
6460 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6461 fi
6462else
6463 ac_cv_path_FGREP=$FGREP
542f9784 6464fi
cd9a469c 6465
6466 fi
6467fi
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6469$as_echo "$ac_cv_path_FGREP" >&6; }
6470 FGREP="$ac_cv_path_FGREP"
542f9784 6471
6472
6473test -z "$GREP" && GREP=grep
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
cd9a469c 6493# Check whether --with-gnu-ld was given.
6494if test "${with_gnu_ld+set}" = set; then :
6495 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
90973b19 6496else
6497 with_gnu_ld=no
cd9a469c 6498fi
6499
90973b19 6500ac_prog=ld
6501if test "$GCC" = yes; then
6502 # Check if gcc -print-prog-name=ld gives a path.
cd9a469c 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6504$as_echo_n "checking for ld used by $CC... " >&6; }
90973b19 6505 case $host in
6506 *-*-mingw*)
6507 # gcc leaves a trailing carriage return which upsets mingw
6508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6509 *)
6510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6511 esac
6512 case $ac_prog in
6513 # Accept absolute paths.
542f9784 6514 [\\/]* | ?:[\\/]*)
90973b19 6515 re_direlt='/[^/][^/]*/\.\./'
542f9784 6516 # Canonicalize the pathname of ld
6517 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6518 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6519 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
90973b19 6520 done
6521 test -z "$LD" && LD="$ac_prog"
6522 ;;
6523 "")
6524 # If it fails, then pretend we aren't using GCC.
6525 ac_prog=ld
6526 ;;
6527 *)
6528 # If it is relative, then search for the first ld in PATH.
6529 with_gnu_ld=unknown
6530 ;;
6531 esac
6532elif test "$with_gnu_ld" = yes; then
cd9a469c 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6534$as_echo_n "checking for GNU ld... " >&6; }
90973b19 6535else
cd9a469c 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6537$as_echo_n "checking for non-GNU ld... " >&6; }
90973b19 6538fi
cd9a469c 6539if test "${lt_cv_path_LD+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
90973b19 6541else
6542 if test -z "$LD"; then
542f9784 6543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
90973b19 6544 for ac_dir in $PATH; do
542f9784 6545 IFS="$lt_save_ifs"
90973b19 6546 test -z "$ac_dir" && ac_dir=.
6547 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6548 lt_cv_path_LD="$ac_dir/$ac_prog"
6549 # Check to see if the program is GNU ld. I'd rather use --version,
542f9784 6550 # but apparently some variants of GNU ld only accept -v.
90973b19 6551 # Break only if it was the GNU/non-GNU ld that we prefer.
542f9784 6552 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6553 *GNU* | *'with BFD'*)
90973b19 6554 test "$with_gnu_ld" != no && break
542f9784 6555 ;;
6556 *)
90973b19 6557 test "$with_gnu_ld" != yes && break
542f9784 6558 ;;
6559 esac
90973b19 6560 fi
6561 done
542f9784 6562 IFS="$lt_save_ifs"
90973b19 6563else
6564 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6565fi
6566fi
6567
6568LD="$lt_cv_path_LD"
6569if test -n "$LD"; then
cd9a469c 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6571$as_echo "$LD" >&6; }
90973b19 6572else
cd9a469c 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574$as_echo "no" >&6; }
90973b19 6575fi
cd9a469c 6576test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6578$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6579if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
90973b19 6581else
542f9784 6582 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6583case `$LD -v 2>&1 </dev/null` in
6584*GNU* | *'with BFD'*)
90973b19 6585 lt_cv_prog_gnu_ld=yes
542f9784 6586 ;;
6587*)
90973b19 6588 lt_cv_prog_gnu_ld=no
542f9784 6589 ;;
6590esac
90973b19 6591fi
cd9a469c 6592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6593$as_echo "$lt_cv_prog_gnu_ld" >&6; }
90973b19 6594with_gnu_ld=$lt_cv_prog_gnu_ld
6595
6596
90973b19 6597
542f9784 6598
6599
6600
6601
6602
6603
cd9a469c 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6605$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6606if test "${lt_cv_path_NM+set}" = set; then :
6607 $as_echo_n "(cached) " >&6
90973b19 6608else
6609 if test -n "$NM"; then
6610 # Let the user override the test.
6611 lt_cv_path_NM="$NM"
6612else
542f9784 6613 lt_nm_to_check="${ac_tool_prefix}nm"
6614 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6615 lt_nm_to_check="$lt_nm_to_check nm"
6616 fi
6617 for lt_tmp_nm in $lt_nm_to_check; do
6618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6619 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6620 IFS="$lt_save_ifs"
6621 test -z "$ac_dir" && ac_dir=.
6622 tmp_nm="$ac_dir/$lt_tmp_nm"
6623 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6624 # Check to see if the nm accepts a BSD-compat flag.
6625 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6626 # nm: unknown option "B" ignored
6627 # Tru64's nm complains that /dev/null is an invalid object file
6628 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6629 */dev/null* | *'Invalid file or object type'*)
6630 lt_cv_path_NM="$tmp_nm -B"
6631 break
6632 ;;
6633 *)
6634 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6635 */dev/null*)
6636 lt_cv_path_NM="$tmp_nm -p"
6637 break
6638 ;;
6639 *)
6640 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6641 continue # so that we can try to find one that supports BSD flags
6642 ;;
6643 esac
6644 ;;
6645 esac
6646 fi
6647 done
6648 IFS="$lt_save_ifs"
6649 done
6650 : ${lt_cv_path_NM=no}
6651fi
6652fi
cd9a469c 6653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6654$as_echo "$lt_cv_path_NM" >&6; }
542f9784 6655if test "$lt_cv_path_NM" != "no"; then
6656 NM="$lt_cv_path_NM"
6657else
6658 # Didn't find any BSD compatible name lister, look for dumpbin.
e6408286 6659 if test -n "$DUMPBIN"; then :
6660 # Let the user override the test.
6661 else
6662 if test -n "$ac_tool_prefix"; then
6663 for ac_prog in dumpbin "link -dump"
542f9784 6664 do
6665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6666set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668$as_echo_n "checking for $ac_word... " >&6; }
6669if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
542f9784 6671else
6672 if test -n "$DUMPBIN"; then
6673 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6674else
6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
cd9a469c 6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 6682 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cd9a469c 6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 6684 break 2
6685 fi
6686done
cd9a469c 6687 done
6688IFS=$as_save_IFS
542f9784 6689
6690fi
6691fi
6692DUMPBIN=$ac_cv_prog_DUMPBIN
6693if test -n "$DUMPBIN"; then
cd9a469c 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6695$as_echo "$DUMPBIN" >&6; }
542f9784 6696else
cd9a469c 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698$as_echo "no" >&6; }
542f9784 6699fi
6700
cd9a469c 6701
542f9784 6702 test -n "$DUMPBIN" && break
6703 done
6704fi
6705if test -z "$DUMPBIN"; then
6706 ac_ct_DUMPBIN=$DUMPBIN
e6408286 6707 for ac_prog in dumpbin "link -dump"
542f9784 6708do
6709 # Extract the first word of "$ac_prog", so it can be a program name with args.
6710set dummy $ac_prog; ac_word=$2
cd9a469c 6711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712$as_echo_n "checking for $ac_word... " >&6; }
6713if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6714 $as_echo_n "(cached) " >&6
542f9784 6715else
6716 if test -n "$ac_ct_DUMPBIN"; then
6717 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6718else
6719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720for as_dir in $PATH
6721do
6722 IFS=$as_save_IFS
6723 test -z "$as_dir" && as_dir=.
cd9a469c 6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 6726 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cd9a469c 6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 6728 break 2
6729 fi
6730done
cd9a469c 6731 done
6732IFS=$as_save_IFS
542f9784 6733
6734fi
6735fi
6736ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6737if test -n "$ac_ct_DUMPBIN"; then
cd9a469c 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6739$as_echo "$ac_ct_DUMPBIN" >&6; }
542f9784 6740else
cd9a469c 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742$as_echo "no" >&6; }
542f9784 6743fi
6744
cd9a469c 6745
542f9784 6746 test -n "$ac_ct_DUMPBIN" && break
6747done
542f9784 6748
cd9a469c 6749 if test "x$ac_ct_DUMPBIN" = x; then
6750 DUMPBIN=":"
6751 else
6752 case $cross_compiling:$ac_tool_warned in
6753yes:)
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756ac_tool_warned=yes ;;
6757esac
6758 DUMPBIN=$ac_ct_DUMPBIN
6759 fi
90973b19 6760fi
542f9784 6761
e6408286 6762 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6763 *COFF*)
6764 DUMPBIN="$DUMPBIN -symbols"
6765 ;;
6766 *)
6767 DUMPBIN=:
6768 ;;
6769 esac
6770 fi
542f9784 6771
6772 if test "$DUMPBIN" != ":"; then
6773 NM="$DUMPBIN"
6774 fi
90973b19 6775fi
542f9784 6776test -z "$NM" && NM=nm
6777
6778
90973b19 6779
542f9784 6780
6781
6782
cd9a469c 6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6784$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6785if test "${lt_cv_nm_interface+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
542f9784 6787else
6788 lt_cv_nm_interface="BSD nm"
6789 echo "int some_variable = 0;" > conftest.$ac_ext
e6408286 6790 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
542f9784 6791 (eval "$ac_compile" 2>conftest.err)
6792 cat conftest.err >&5
e6408286 6793 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
542f9784 6794 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6795 cat conftest.err >&5
e6408286 6796 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
542f9784 6797 cat conftest.out >&5
6798 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6799 lt_cv_nm_interface="MS dumpbin"
6800 fi
6801 rm -f conftest*
6802fi
cd9a469c 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6804$as_echo "$lt_cv_nm_interface" >&6; }
90973b19 6805
cd9a469c 6806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6807$as_echo_n "checking whether ln -s works... " >&6; }
90973b19 6808LN_S=$as_ln_s
6809if test "$LN_S" = "ln -s"; then
cd9a469c 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6811$as_echo "yes" >&6; }
90973b19 6812else
cd9a469c 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6814$as_echo "no, using $LN_S" >&6; }
90973b19 6815fi
6816
542f9784 6817# find the maximum length of command line arguments
cd9a469c 6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6819$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6820if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6821 $as_echo_n "(cached) " >&6
542f9784 6822else
6823 i=0
6824 teststring="ABCD"
6825
6826 case $build_os in
6827 msdosdjgpp*)
6828 # On DJGPP, this test can blow up pretty badly due to problems in libc
6829 # (any single argument exceeding 2000 bytes causes a buffer overrun
6830 # during glob expansion). Even if it were fixed, the result of this
6831 # check would be larger than it should be.
6832 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6833 ;;
6834
6835 gnu*)
6836 # Under GNU Hurd, this test is not required because there is
6837 # no limit to the length of command line arguments.
6838 # Libtool will interpret -1 as no limit whatsoever
6839 lt_cv_sys_max_cmd_len=-1;
6840 ;;
6841
00aafda4 6842 cygwin* | mingw* | cegcc*)
542f9784 6843 # On Win9x/ME, this test blows up -- it succeeds, but takes
6844 # about 5 minutes as the teststring grows exponentially.
6845 # Worse, since 9x/ME are not pre-emptively multitasking,
6846 # you end up with a "frozen" computer, even though with patience
6847 # the test eventually succeeds (with a max line length of 256k).
6848 # Instead, let's just punt: use the minimum linelength reported by
6849 # all of the supported platforms: 8192 (on NT/2K/XP).
6850 lt_cv_sys_max_cmd_len=8192;
6851 ;;
6852
e6408286 6853 mint*)
6854 # On MiNT this can take a long time and run out of memory.
6855 lt_cv_sys_max_cmd_len=8192;
6856 ;;
6857
542f9784 6858 amigaos*)
6859 # On AmigaOS with pdksh, this test takes hours, literally.
6860 # So we just punt and use a minimum line length of 8192.
6861 lt_cv_sys_max_cmd_len=8192;
6862 ;;
6863
6864 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6865 # This has been around since 386BSD, at least. Likely further.
6866 if test -x /sbin/sysctl; then
6867 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6868 elif test -x /usr/sbin/sysctl; then
6869 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6870 else
6871 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6872 fi
6873 # And add a safety zone
6874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6876 ;;
6877
6878 interix*)
6879 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6880 lt_cv_sys_max_cmd_len=196608
6881 ;;
6882
6883 osf*)
6884 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6885 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6886 # nice to cause kernel panics so lets avoid the loop below.
6887 # First set a reasonable default.
6888 lt_cv_sys_max_cmd_len=16384
6889 #
6890 if test -x /sbin/sysconfig; then
6891 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6892 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6893 esac
6894 fi
6895 ;;
6896 sco3.2v5*)
6897 lt_cv_sys_max_cmd_len=102400
6898 ;;
6899 sysv5* | sco5v6* | sysv4.2uw2*)
6900 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6901 if test -n "$kargmax"; then
6902 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6903 else
6904 lt_cv_sys_max_cmd_len=32768
6905 fi
6906 ;;
6907 *)
00aafda4 6908 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6909 if test -n "$lt_cv_sys_max_cmd_len"; then
07c46636 6910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6912 else
6913 # Make teststring a little bigger before we do anything with it.
6914 # a 1K string should be a reasonable start.
6915 for i in 1 2 3 4 5 6 7 8 ; do
6916 teststring=$teststring$teststring
6917 done
6918 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6919 # If test is not a shell built-in, we'll probably end up computing a
6920 # maximum length that is only half of the actual maximum length, but
6921 # we can't tell.
e6408286 6922 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6923 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
07c46636 6924 test $i != 17 # 1/2 MB should be enough
6925 do
6926 i=`expr $i + 1`
6927 teststring=$teststring$teststring
6928 done
6929 # Only check the string length outside the loop.
6930 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6931 teststring=
6932 # Add a significant safety factor because C++ compilers can tack on
6933 # massive amounts of additional arguments before passing them to the
6934 # linker. It appears as though 1/2 is a usable value.
6935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6936 fi
542f9784 6937 ;;
6938 esac
6939
6940fi
6941
6942if test -n $lt_cv_sys_max_cmd_len ; then
cd9a469c 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6944$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
542f9784 6945else
cd9a469c 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6947$as_echo "none" >&6; }
542f9784 6948fi
6949max_cmd_len=$lt_cv_sys_max_cmd_len
6950
6951
6952
6953
6954
6955
542f9784 6956: ${CP="cp -f"}
6957: ${MV="mv -f"}
6958: ${RM="rm -f"}
6959
cd9a469c 6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6961$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
542f9784 6962# Try some XSI features
6963xsi_shell=no
6964( _lt_dummy="a/b/c"
6965 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
00aafda4 6966 = c,a/b,, \
6967 && eval 'test $(( 1 + 1 )) -eq 2 \
6968 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
542f9784 6969 && xsi_shell=yes
cd9a469c 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6971$as_echo "$xsi_shell" >&6; }
542f9784 6972
6973
cd9a469c 6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6975$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
542f9784 6976lt_shell_append=no
6977( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6978 >/dev/null 2>&1 \
6979 && lt_shell_append=yes
cd9a469c 6980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6981$as_echo "$lt_shell_append" >&6; }
542f9784 6982
6983
6984if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6985 lt_unset=unset
6986else
6987 lt_unset=false
6988fi
6989
6990
6991
6992
6993
6994# test EBCDIC or ASCII
6995case `echo X|tr X '\101'` in
6996 A) # ASCII based system
6997 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6998 lt_SP2NL='tr \040 \012'
6999 lt_NL2SP='tr \015\012 \040\040'
7000 ;;
7001 *) # EBCDIC based system
7002 lt_SP2NL='tr \100 \n'
7003 lt_NL2SP='tr \r\n \100\100'
7004 ;;
7005esac
7006
7007
7008
7009
7010
7011
7012
7013
7014
cd9a469c 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7016$as_echo_n "checking for $LD option to reload object files... " >&6; }
7017if test "${lt_cv_ld_reload_flag+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
542f9784 7019else
7020 lt_cv_ld_reload_flag='-r'
7021fi
cd9a469c 7022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7023$as_echo "$lt_cv_ld_reload_flag" >&6; }
542f9784 7024reload_flag=$lt_cv_ld_reload_flag
7025case $reload_flag in
7026"" | " "*) ;;
7027*) reload_flag=" $reload_flag" ;;
7028esac
7029reload_cmds='$LD$reload_flag -o $output$reload_objs'
7030case $host_os in
7031 darwin*)
7032 if test "$GCC" = yes; then
7033 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7034 else
7035 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7036 fi
7037 ;;
7038esac
7039
7040
7041
7042
7043
7044
7045
7046
7047
00aafda4 7048if test -n "$ac_tool_prefix"; then
7049 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7050set dummy ${ac_tool_prefix}objdump; ac_word=$2
cd9a469c 7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052$as_echo_n "checking for $ac_word... " >&6; }
7053if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7054 $as_echo_n "(cached) " >&6
00aafda4 7055else
7056 if test -n "$OBJDUMP"; then
7057 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7058else
7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060for as_dir in $PATH
7061do
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
cd9a469c 7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
00aafda4 7066 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cd9a469c 7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 7068 break 2
7069 fi
7070done
cd9a469c 7071 done
7072IFS=$as_save_IFS
00aafda4 7073
7074fi
7075fi
7076OBJDUMP=$ac_cv_prog_OBJDUMP
7077if test -n "$OBJDUMP"; then
cd9a469c 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7079$as_echo "$OBJDUMP" >&6; }
00aafda4 7080else
cd9a469c 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082$as_echo "no" >&6; }
00aafda4 7083fi
7084
cd9a469c 7085
00aafda4 7086fi
7087if test -z "$ac_cv_prog_OBJDUMP"; then
7088 ac_ct_OBJDUMP=$OBJDUMP
7089 # Extract the first word of "objdump", so it can be a program name with args.
7090set dummy objdump; ac_word=$2
cd9a469c 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092$as_echo_n "checking for $ac_word... " >&6; }
7093if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
00aafda4 7095else
7096 if test -n "$ac_ct_OBJDUMP"; then
7097 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7098else
7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100for as_dir in $PATH
7101do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
cd9a469c 7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
00aafda4 7106 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cd9a469c 7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 7108 break 2
7109 fi
7110done
cd9a469c 7111 done
7112IFS=$as_save_IFS
00aafda4 7113
00aafda4 7114fi
7115fi
7116ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7117if test -n "$ac_ct_OBJDUMP"; then
cd9a469c 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7119$as_echo "$ac_ct_OBJDUMP" >&6; }
00aafda4 7120else
cd9a469c 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122$as_echo "no" >&6; }
00aafda4 7123fi
7124
cd9a469c 7125 if test "x$ac_ct_OBJDUMP" = x; then
7126 OBJDUMP="false"
7127 else
7128 case $cross_compiling:$ac_tool_warned in
7129yes:)
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7132ac_tool_warned=yes ;;
7133esac
7134 OBJDUMP=$ac_ct_OBJDUMP
7135 fi
00aafda4 7136else
7137 OBJDUMP="$ac_cv_prog_OBJDUMP"
7138fi
7139
7140test -z "$OBJDUMP" && OBJDUMP=objdump
7141
7142
7143
7144
7145
7146
7147
7148
542f9784 7149
cd9a469c 7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7151$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7152if test "${lt_cv_deplibs_check_method+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
90973b19 7154else
7155 lt_cv_file_magic_cmd='$MAGIC_CMD'
7156lt_cv_file_magic_test_file=
7157lt_cv_deplibs_check_method='unknown'
7158# Need to set the preceding variable on all platforms that support
7159# interlibrary dependencies.
7160# 'none' -- dependencies not supported.
7161# `unknown' -- same as none, but documents that we really don't know.
7162# 'pass_all' -- all dependencies passed with no checks.
7163# 'test_compile' -- check by making test program.
542f9784 7164# 'file_magic [[regex]]' -- check by looking for files in library path
7165# which responds to the $file_magic_cmd with a given extended regex.
90973b19 7166# If you have `file' or equivalent on your system and you're not sure
7167# whether `pass_all' will *always* work, you probably want this one.
7168
7169case $host_os in
21e07d2f 7170aix[4-9]*)
90973b19 7171 lt_cv_deplibs_check_method=pass_all
7172 ;;
7173
7174beos*)
7175 lt_cv_deplibs_check_method=pass_all
7176 ;;
7177
542f9784 7178bsdi[45]*)
90973b19 7179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7180 lt_cv_file_magic_cmd='/usr/bin/file -L'
7181 lt_cv_file_magic_test_file=/shlib/libc.so
7182 ;;
7183
542f9784 7184cygwin*)
7185 # func_win32_libid is a shell function defined in ltmain.sh
7186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7187 lt_cv_file_magic_cmd='func_win32_libid'
7188 ;;
7189
7190mingw* | pw32*)
7191 # Base MSYS/MinGW do not provide the 'file' command needed by
7192 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7193 # unless we find 'file', for example because we are cross-compiling.
e6408286 7194 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7195 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
542f9784 7196 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7197 lt_cv_file_magic_cmd='func_win32_libid'
7198 else
7199 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7200 lt_cv_file_magic_cmd='$OBJDUMP -f'
7201 fi
90973b19 7202 ;;
7203
e6408286 7204cegcc*)
00aafda4 7205 # use the weaker test based on 'objdump'. See mingw*.
7206 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7207 lt_cv_file_magic_cmd='$OBJDUMP -f'
7208 ;;
7209
90973b19 7210darwin* | rhapsody*)
90973b19 7211 lt_cv_deplibs_check_method=pass_all
7212 ;;
7213
542f9784 7214freebsd* | dragonfly*)
7215 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
90973b19 7216 case $host_cpu in
7217 i*86 )
7218 # Not sure whether the presence of OpenBSD here was a mistake.
7219 # Let's accept both of them until this is cleared up.
542f9784 7220 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
90973b19 7221 lt_cv_file_magic_cmd=/usr/bin/file
7222 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7223 ;;
7224 esac
7225 else
7226 lt_cv_deplibs_check_method=pass_all
7227 fi
7228 ;;
7229
7230gnu*)
7231 lt_cv_deplibs_check_method=pass_all
7232 ;;
7233
e6408286 7234haiku*)
7235 lt_cv_deplibs_check_method=pass_all
7236 ;;
7237
542f9784 7238hpux10.20* | hpux11*)
7239 lt_cv_file_magic_cmd=/usr/bin/file
90973b19 7240 case $host_cpu in
90973b19 7241 ia64*)
7242 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
90973b19 7243 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7244 ;;
542f9784 7245 hppa*64*)
e6408286 7246 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 7247 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
90973b19 7248 ;;
7249 *)
e6408286 7250 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
542f9784 7251 lt_cv_file_magic_test_file=/usr/lib/libc.sl
90973b19 7252 ;;
7253 esac
542f9784 7254 ;;
7255
7256interix[3-9]*)
7257 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7259 ;;
7260
7261irix5* | irix6* | nonstopux*)
7262 case $LD in
7263 *-32|*"-32 ") libmagic=32-bit;;
7264 *-n32|*"-n32 ") libmagic=N32;;
7265 *-64|*"-64 ") libmagic=64-bit;;
7266 *) libmagic=never-match;;
7267 esac
90973b19 7268 lt_cv_deplibs_check_method=pass_all
7269 ;;
7270
7271# This must be Linux ELF.
9af964d4 7272linux* | k*bsd*-gnu | kopensolaris*-gnu)
7f93fe7a 7273 lt_cv_deplibs_check_method=pass_all
90973b19 7274 ;;
7275
542f9784 7276netbsd*)
7277 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
90973b19 7279 else
542f9784 7280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
90973b19 7281 fi
7282 ;;
7283
542f9784 7284newos6*)
90973b19 7285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7286 lt_cv_file_magic_cmd=/usr/bin/file
7287 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7288 ;;
7289
542f9784 7290*nto* | *qnx*)
7291 lt_cv_deplibs_check_method=pass_all
7292 ;;
7293
7294openbsd*)
7295 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7297 else
7298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7299 fi
7300 ;;
7301
90973b19 7302osf3* | osf4* | osf5*)
90973b19 7303 lt_cv_deplibs_check_method=pass_all
7304 ;;
7305
542f9784 7306rdos*)
90973b19 7307 lt_cv_deplibs_check_method=pass_all
7308 ;;
7309
7310solaris*)
7311 lt_cv_deplibs_check_method=pass_all
90973b19 7312 ;;
7313
542f9784 7314sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
90973b19 7315 lt_cv_deplibs_check_method=pass_all
7316 ;;
7317
542f9784 7318sysv4 | sysv4.3*)
90973b19 7319 case $host_vendor in
90973b19 7320 motorola)
7321 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]'
7322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7323 ;;
542f9784 7324 ncr)
7325 lt_cv_deplibs_check_method=pass_all
7326 ;;
7327 sequent)
7328 lt_cv_file_magic_cmd='/bin/file'
7329 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7330 ;;
7331 sni)
7332 lt_cv_file_magic_cmd='/bin/file'
7333 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7334 lt_cv_file_magic_test_file=/lib/libc.so
7335 ;;
7336 siemens)
7337 lt_cv_deplibs_check_method=pass_all
7338 ;;
7339 pc)
7340 lt_cv_deplibs_check_method=pass_all
7341 ;;
90973b19 7342 esac
7343 ;;
542f9784 7344
7345tpf*)
7346 lt_cv_deplibs_check_method=pass_all
7347 ;;
90973b19 7348esac
7349
7350fi
cd9a469c 7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7352$as_echo "$lt_cv_deplibs_check_method" >&6; }
90973b19 7353file_magic_cmd=$lt_cv_file_magic_cmd
7354deplibs_check_method=$lt_cv_deplibs_check_method
542f9784 7355test -z "$deplibs_check_method" && deplibs_check_method=unknown
90973b19 7356
7357
7358
7359
90973b19 7360
90973b19 7361
90973b19 7362
90973b19 7363
4ee9c684 7364
4ee9c684 7365
4ee9c684 7366
4ee9c684 7367
90973b19 7368if test -n "$ac_tool_prefix"; then
542f9784 7369 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7370set dummy ${ac_tool_prefix}ar; ac_word=$2
cd9a469c 7371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372$as_echo_n "checking for $ac_word... " >&6; }
7373if test "${ac_cv_prog_AR+set}" = set; then :
7374 $as_echo_n "(cached) " >&6
4ee9c684 7375else
542f9784 7376 if test -n "$AR"; then
7377 ac_cv_prog_AR="$AR" # Let the user override the test.
90973b19 7378else
7379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH
7381do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
cd9a469c 7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 7386 ac_cv_prog_AR="${ac_tool_prefix}ar"
cd9a469c 7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7388 break 2
7389 fi
7390done
cd9a469c 7391 done
7392IFS=$as_save_IFS
4ee9c684 7393
90973b19 7394fi
7395fi
542f9784 7396AR=$ac_cv_prog_AR
7397if test -n "$AR"; then
cd9a469c 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7399$as_echo "$AR" >&6; }
90973b19 7400else
cd9a469c 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402$as_echo "no" >&6; }
4ee9c684 7403fi
7404
cd9a469c 7405
90973b19 7406fi
542f9784 7407if test -z "$ac_cv_prog_AR"; then
7408 ac_ct_AR=$AR
7409 # Extract the first word of "ar", so it can be a program name with args.
7410set dummy ar; ac_word=$2
cd9a469c 7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412$as_echo_n "checking for $ac_word... " >&6; }
7413if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
90973b19 7415else
542f9784 7416 if test -n "$ac_ct_AR"; then
7417 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
90973b19 7418else
7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
cd9a469c 7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 7426 ac_cv_prog_ac_ct_AR="ar"
cd9a469c 7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7428 break 2
7429 fi
7430done
cd9a469c 7431 done
7432IFS=$as_save_IFS
4ee9c684 7433
90973b19 7434fi
7435fi
542f9784 7436ac_ct_AR=$ac_cv_prog_ac_ct_AR
7437if test -n "$ac_ct_AR"; then
cd9a469c 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7439$as_echo "$ac_ct_AR" >&6; }
4ee9c684 7440else
cd9a469c 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442$as_echo "no" >&6; }
4ee9c684 7443fi
4ee9c684 7444
cd9a469c 7445 if test "x$ac_ct_AR" = x; then
7446 AR="false"
7447 else
7448 case $cross_compiling:$ac_tool_warned in
7449yes:)
7450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7452ac_tool_warned=yes ;;
7453esac
7454 AR=$ac_ct_AR
7455 fi
90973b19 7456else
542f9784 7457 AR="$ac_cv_prog_AR"
4ee9c684 7458fi
7459
542f9784 7460test -z "$AR" && AR=ar
7461test -z "$AR_FLAGS" && AR_FLAGS=cru
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
90973b19 7473if test -n "$ac_tool_prefix"; then
7474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7475set dummy ${ac_tool_prefix}strip; ac_word=$2
cd9a469c 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477$as_echo_n "checking for $ac_word... " >&6; }
7478if test "${ac_cv_prog_STRIP+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
4ee9c684 7480else
90973b19 7481 if test -n "$STRIP"; then
7482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7483else
7484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485for as_dir in $PATH
7486do
7487 IFS=$as_save_IFS
7488 test -z "$as_dir" && as_dir=.
cd9a469c 7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
90973b19 7491 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cd9a469c 7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7493 break 2
7494 fi
7495done
cd9a469c 7496 done
7497IFS=$as_save_IFS
4ee9c684 7498
90973b19 7499fi
7500fi
7501STRIP=$ac_cv_prog_STRIP
7502if test -n "$STRIP"; then
cd9a469c 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7504$as_echo "$STRIP" >&6; }
4ee9c684 7505else
cd9a469c 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507$as_echo "no" >&6; }
90973b19 7508fi
4ee9c684 7509
cd9a469c 7510
4ee9c684 7511fi
90973b19 7512if test -z "$ac_cv_prog_STRIP"; then
7513 ac_ct_STRIP=$STRIP
7514 # Extract the first word of "strip", so it can be a program name with args.
7515set dummy strip; ac_word=$2
cd9a469c 7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517$as_echo_n "checking for $ac_word... " >&6; }
7518if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
90973b19 7520else
7521 if test -n "$ac_ct_STRIP"; then
7522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7523else
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
cd9a469c 7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
90973b19 7531 ac_cv_prog_ac_ct_STRIP="strip"
cd9a469c 7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7533 break 2
7534 fi
7535done
cd9a469c 7536 done
7537IFS=$as_save_IFS
90973b19 7538
4ee9c684 7539fi
7540fi
90973b19 7541ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7542if test -n "$ac_ct_STRIP"; then
cd9a469c 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7544$as_echo "$ac_ct_STRIP" >&6; }
90973b19 7545else
cd9a469c 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547$as_echo "no" >&6; }
4ee9c684 7548fi
4ee9c684 7549
cd9a469c 7550 if test "x$ac_ct_STRIP" = x; then
7551 STRIP=":"
7552 else
7553 case $cross_compiling:$ac_tool_warned in
7554yes:)
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557ac_tool_warned=yes ;;
7558esac
7559 STRIP=$ac_ct_STRIP
7560 fi
90973b19 7561else
7562 STRIP="$ac_cv_prog_STRIP"
4ee9c684 7563fi
7564
542f9784 7565test -z "$STRIP" && STRIP=:
4ee9c684 7566
7567
7568
7569
7570
7571
542f9784 7572if test -n "$ac_tool_prefix"; then
7573 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7574set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cd9a469c 7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576$as_echo_n "checking for $ac_word... " >&6; }
7577if test "${ac_cv_prog_RANLIB+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
4ee9c684 7579else
542f9784 7580 if test -n "$RANLIB"; then
7581 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
cd9a469c 7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 7590 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cd9a469c 7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 7592 break 2
7593 fi
7594done
cd9a469c 7595 done
7596IFS=$as_save_IFS
542f9784 7597
7598fi
7599fi
7600RANLIB=$ac_cv_prog_RANLIB
7601if test -n "$RANLIB"; then
cd9a469c 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7603$as_echo "$RANLIB" >&6; }
542f9784 7604else
cd9a469c 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606$as_echo "no" >&6; }
542f9784 7607fi
7608
cd9a469c 7609
542f9784 7610fi
7611if test -z "$ac_cv_prog_RANLIB"; then
7612 ac_ct_RANLIB=$RANLIB
7613 # Extract the first word of "ranlib", so it can be a program name with args.
7614set dummy ranlib; ac_word=$2
cd9a469c 7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616$as_echo_n "checking for $ac_word... " >&6; }
7617if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
542f9784 7619else
7620 if test -n "$ac_ct_RANLIB"; then
7621 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7622else
7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH
7625do
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
cd9a469c 7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 7630 ac_cv_prog_ac_ct_RANLIB="ranlib"
cd9a469c 7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 7632 break 2
7633 fi
7634done
cd9a469c 7635 done
7636IFS=$as_save_IFS
542f9784 7637
542f9784 7638fi
7639fi
7640ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7641if test -n "$ac_ct_RANLIB"; then
cd9a469c 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7643$as_echo "$ac_ct_RANLIB" >&6; }
542f9784 7644else
cd9a469c 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
542f9784 7647fi
7648
cd9a469c 7649 if test "x$ac_ct_RANLIB" = x; then
7650 RANLIB=":"
7651 else
7652 case $cross_compiling:$ac_tool_warned in
7653yes:)
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656ac_tool_warned=yes ;;
7657esac
7658 RANLIB=$ac_ct_RANLIB
7659 fi
542f9784 7660else
7661 RANLIB="$ac_cv_prog_RANLIB"
7662fi
7663
7664test -z "$RANLIB" && RANLIB=:
7665
7666
7667
7668
7669
7670
7671# Determine commands to create old-style static archives.
00aafda4 7672old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
542f9784 7673old_postinstall_cmds='chmod 644 $oldlib'
7674old_postuninstall_cmds=
7675
7676if test -n "$RANLIB"; then
7677 case $host_os in
7678 openbsd*)
7679 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7680 ;;
7681 *)
7682 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7683 ;;
7684 esac
7685 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7686fi
7687
e6408286 7688case $host_os in
7689 darwin*)
7690 lock_old_archive_extraction=yes ;;
7691 *)
7692 lock_old_archive_extraction=no ;;
7693esac
7694
7695
7696
7697
7698
7699
542f9784 7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733# If no C compiler was specified, use CC.
7734LTCC=${LTCC-"$CC"}
7735
7736# If no C compiler flags were specified, use CFLAGS.
7737LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7738
7739# Allow CC to be a program name with arguments.
7740compiler=$CC
7741
7742
7743# Check for command to grab the raw symbol name followed by C symbol from nm.
cd9a469c 7744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7745$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7746if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
542f9784 7748else
7749
7750# These are sane defaults that work on at least a few old systems.
7751# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7752
7753# Character class describing NM global symbol codes.
7754symcode='[BCDEGRST]'
7755
7756# Regexp to match symbols that can be accessed directly from C.
7757sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7758
7759# Define system-specific variables.
7760case $host_os in
7761aix*)
7762 symcode='[BCDT]'
7763 ;;
00aafda4 7764cygwin* | mingw* | pw32* | cegcc*)
542f9784 7765 symcode='[ABCDGISTW]'
7766 ;;
7767hpux*)
7768 if test "$host_cpu" = ia64; then
7769 symcode='[ABCDEGRST]'
7770 fi
7771 ;;
7772irix* | nonstopux*)
7773 symcode='[BCDEGRST]'
7774 ;;
7775osf*)
7776 symcode='[BCDEGQRST]'
7777 ;;
7778solaris*)
7779 symcode='[BDRT]'
7780 ;;
7781sco3.2v5*)
7782 symcode='[DT]'
7783 ;;
7784sysv4.2uw2*)
7785 symcode='[DT]'
7786 ;;
7787sysv5* | sco5v6* | unixware* | OpenUNIX*)
7788 symcode='[ABDT]'
7789 ;;
7790sysv4)
7791 symcode='[DFNSTU]'
7792 ;;
7793esac
7794
7795# If we're using GNU nm, then use its standard symbol codes.
7796case `$NM -V 2>&1` in
7797*GNU* | *'with BFD'*)
7798 symcode='[ABCDGIRSTW]' ;;
7799esac
7800
7801# Transform an extracted symbol line into a proper C declaration.
7802# Some systems (esp. on ia64) link data and code symbols differently,
7803# so use this general approach.
7804lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7805
7806# Transform an extracted symbol line into symbol name and symbol address
7807lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
00aafda4 7808lt_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 7809
7810# Handle CRLF in mingw tool chain
7811opt_cr=
7812case $build_os in
7813mingw*)
7814 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7815 ;;
7816esac
7817
7818# Try without a prefix underscore, then with it.
7819for ac_symprfx in "" "_"; do
7820
7821 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7822 symxfrm="\\1 $ac_symprfx\\2 \\2"
7823
7824 # Write the raw and C identifiers.
7825 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7826 # Fake it for dumpbin and say T for any non-static function
7827 # and D for any global variable.
7828 # Also find C++ and __fastcall symbols from MSVC++,
7829 # which start with @ or ?.
7830 lt_cv_sys_global_symbol_pipe="$AWK '"\
7831" {last_section=section; section=\$ 3};"\
7832" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7833" \$ 0!~/External *\|/{next};"\
7834" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7835" {if(hide[section]) next};"\
7836" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7837" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7838" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7839" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7840" ' prfx=^$ac_symprfx"
7841 else
7842 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7843 fi
7844
7845 # Check to see that the pipe works correctly.
7846 pipe_works=no
7847
7848 rm -f conftest*
7849 cat > conftest.$ac_ext <<_LT_EOF
7850#ifdef __cplusplus
7851extern "C" {
7852#endif
7853char nm_test_var;
7854void nm_test_func(void);
7855void nm_test_func(void){}
7856#ifdef __cplusplus
7857}
7858#endif
7859int main(){nm_test_var='a';nm_test_func();return(0);}
7860_LT_EOF
7861
cd9a469c 7862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 7863 (eval $ac_compile) 2>&5
7864 ac_status=$?
cd9a469c 7865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7866 test $ac_status = 0; }; then
542f9784 7867 # Now try to grab the symbols.
7868 nlist=conftest.nm
e6408286 7869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7870 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
542f9784 7871 ac_status=$?
cd9a469c 7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; } && test -s "$nlist"; then
542f9784 7874 # Try sorting and uniquifying the output.
7875 if sort "$nlist" | uniq > "$nlist"T; then
7876 mv -f "$nlist"T "$nlist"
7877 else
7878 rm -f "$nlist"T
7879 fi
7880
7881 # Make sure that we snagged all the symbols we need.
7882 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7883 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7884 cat <<_LT_EOF > conftest.$ac_ext
7885#ifdef __cplusplus
7886extern "C" {
7887#endif
7888
7889_LT_EOF
7890 # Now generate the symbol file.
7891 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7892
7893 cat <<_LT_EOF >> conftest.$ac_ext
7894
7895/* The mapping between symbol names and symbols. */
7896const struct {
7897 const char *name;
7898 void *address;
7899}
7900lt__PROGRAM__LTX_preloaded_symbols[] =
7901{
7902 { "@PROGRAM@", (void *) 0 },
7903_LT_EOF
7904 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7905 cat <<\_LT_EOF >> conftest.$ac_ext
7906 {0, (void *) 0}
7907};
7908
7909/* This works around a problem in FreeBSD linker */
7910#ifdef FREEBSD_WORKAROUND
7911static const void *lt_preloaded_setup() {
7912 return lt__PROGRAM__LTX_preloaded_symbols;
7913}
7914#endif
7915
7916#ifdef __cplusplus
7917}
7918#endif
7919_LT_EOF
7920 # Now try linking the two files.
7921 mv conftest.$ac_objext conftstm.$ac_objext
7922 lt_save_LIBS="$LIBS"
7923 lt_save_CFLAGS="$CFLAGS"
7924 LIBS="conftstm.$ac_objext"
7925 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cd9a469c 7926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 7927 (eval $ac_link) 2>&5
7928 ac_status=$?
cd9a469c 7929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7930 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
542f9784 7931 pipe_works=yes
7932 fi
7933 LIBS="$lt_save_LIBS"
7934 CFLAGS="$lt_save_CFLAGS"
7935 else
7936 echo "cannot find nm_test_func in $nlist" >&5
7937 fi
7938 else
7939 echo "cannot find nm_test_var in $nlist" >&5
7940 fi
7941 else
7942 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7943 fi
7944 else
7945 echo "$progname: failed program was:" >&5
7946 cat conftest.$ac_ext >&5
7947 fi
00aafda4 7948 rm -rf conftest* conftst*
542f9784 7949
7950 # Do not use the global_symbol_pipe unless it works.
7951 if test "$pipe_works" = yes; then
7952 break
7953 else
7954 lt_cv_sys_global_symbol_pipe=
7955 fi
7956done
7957
7958fi
7959
7960if test -z "$lt_cv_sys_global_symbol_pipe"; then
7961 lt_cv_sys_global_symbol_to_cdecl=
7962fi
7963if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cd9a469c 7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7965$as_echo "failed" >&6; }
542f9784 7966else
cd9a469c 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7968$as_echo "ok" >&6; }
542f9784 7969fi
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
00aafda4 7985
7986
7987
7988
7989
542f9784 7990
7991
cd9a469c 7992# Check whether --enable-libtool-lock was given.
7993if test "${enable_libtool_lock+set}" = set; then :
7994 enableval=$enable_libtool_lock;
7995fi
542f9784 7996
542f9784 7997test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4ee9c684 7998
90973b19 7999# Some flags need to be propagated to the compiler or linker for good
8000# libtool support.
8001case $host in
542f9784 8002ia64-*-hpux*)
90973b19 8003 # Find out which ABI we are using.
542f9784 8004 echo 'int i;' > conftest.$ac_ext
cd9a469c 8005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
90973b19 8006 (eval $ac_compile) 2>&5
4ee9c684 8007 ac_status=$?
cd9a469c 8008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8009 test $ac_status = 0; }; then
90973b19 8010 case `/usr/bin/file conftest.$ac_objext` in
542f9784 8011 *ELF-32*)
8012 HPUX_IA64_MODE="32"
8013 ;;
8014 *ELF-64*)
8015 HPUX_IA64_MODE="64"
8016 ;;
90973b19 8017 esac
90973b19 8018 fi
8019 rm -rf conftest*
8020 ;;
542f9784 8021*-*-irix6*)
90973b19 8022 # Find out which ABI we are using.
e6408286 8023 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cd9a469c 8024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
90973b19 8025 (eval $ac_compile) 2>&5
4ee9c684 8026 ac_status=$?
cd9a469c 8027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8028 test $ac_status = 0; }; then
542f9784 8029 if test "$lt_cv_prog_gnu_ld" = yes; then
8030 case `/usr/bin/file conftest.$ac_objext` in
8031 *32-bit*)
8032 LD="${LD-ld} -melf32bsmip"
8033 ;;
8034 *N32*)
8035 LD="${LD-ld} -melf32bmipn32"
8036 ;;
8037 *64-bit*)
8038 LD="${LD-ld} -melf64bmip"
8039 ;;
8040 esac
8041 else
8042 case `/usr/bin/file conftest.$ac_objext` in
8043 *32-bit*)
8044 LD="${LD-ld} -32"
8045 ;;
8046 *N32*)
8047 LD="${LD-ld} -n32"
8048 ;;
8049 *64-bit*)
8050 LD="${LD-ld} -64"
8051 ;;
8052 esac
8053 fi
90973b19 8054 fi
8055 rm -rf conftest*
8056 ;;
4ee9c684 8057
542f9784 8058x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8059s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
90973b19 8060 # Find out which ABI we are using.
8061 echo 'int i;' > conftest.$ac_ext
cd9a469c 8062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
90973b19 8063 (eval $ac_compile) 2>&5
4ee9c684 8064 ac_status=$?
cd9a469c 8065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8066 test $ac_status = 0; }; then
542f9784 8067 case `/usr/bin/file conftest.o` in
8068 *32-bit*)
8069 case $host in
8070 x86_64-*kfreebsd*-gnu)
8071 LD="${LD-ld} -m elf_i386_fbsd"
8072 ;;
8073 x86_64-*linux*)
8074 LD="${LD-ld} -m elf_i386"
8075 ;;
8076 ppc64-*linux*|powerpc64-*linux*)
8077 LD="${LD-ld} -m elf32ppclinux"
8078 ;;
8079 s390x-*linux*)
8080 LD="${LD-ld} -m elf_s390"
8081 ;;
8082 sparc64-*linux*)
8083 LD="${LD-ld} -m elf32_sparc"
8084 ;;
8085 esac
8086 ;;
8087 *64-bit*)
8088 case $host in
8089 x86_64-*kfreebsd*-gnu)
8090 LD="${LD-ld} -m elf_x86_64_fbsd"
8091 ;;
8092 x86_64-*linux*)
8093 LD="${LD-ld} -m elf_x86_64"
8094 ;;
8095 ppc*-*linux*|powerpc*-*linux*)
8096 LD="${LD-ld} -m elf64ppc"
8097 ;;
8098 s390*-*linux*|s390*-*tpf*)
8099 LD="${LD-ld} -m elf64_s390"
8100 ;;
8101 sparc*-*linux*)
8102 LD="${LD-ld} -m elf64_sparc"
8103 ;;
8104 esac
8105 ;;
90973b19 8106 esac
4ee9c684 8107 fi
90973b19 8108 rm -rf conftest*
8109 ;;
4ee9c684 8110
90973b19 8111*-*-sco3.2v5*)
8112 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8113 SAVE_CFLAGS="$CFLAGS"
8114 CFLAGS="$CFLAGS -belf"
cd9a469c 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8116$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8117if test "${lt_cv_cc_needs_belf+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
4ee9c684 8119else
542f9784 8120 ac_ext=c
90973b19 8121ac_cpp='$CPP $CPPFLAGS'
8122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ee9c684 8125
b52ee437 8126 if test x$gcc_no_link = xyes; then
cd9a469c 8127 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 8128fi
cd9a469c 8129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 8130/* end confdefs.h. */
4ee9c684 8131
8132int
8133main ()
8134{
90973b19 8135
4ee9c684 8136 ;
8137 return 0;
8138}
8139_ACEOF
cd9a469c 8140if ac_fn_c_try_link "$LINENO"; then :
90973b19 8141 lt_cv_cc_needs_belf=yes
4ee9c684 8142else
cd9a469c 8143 lt_cv_cc_needs_belf=no
4ee9c684 8144fi
cd9a469c 8145rm -f core conftest.err conftest.$ac_objext \
8146 conftest$ac_exeext conftest.$ac_ext
90973b19 8147 ac_ext=c
8148ac_cpp='$CPP $CPPFLAGS'
8149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8151ac_compiler_gnu=$ac_cv_c_compiler_gnu
8152
4ee9c684 8153fi
cd9a469c 8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8155$as_echo "$lt_cv_cc_needs_belf" >&6; }
90973b19 8156 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8157 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8158 CFLAGS="$SAVE_CFLAGS"
8159 fi
8160 ;;
542f9784 8161sparc*-*solaris*)
8162 # Find out which ABI we are using.
8163 echo 'int i;' > conftest.$ac_ext
cd9a469c 8164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 8165 (eval $ac_compile) 2>&5
8166 ac_status=$?
cd9a469c 8167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8168 test $ac_status = 0; }; then
542f9784 8169 case `/usr/bin/file conftest.o` in
8170 *64-bit*)
8171 case $lt_cv_prog_gnu_ld in
8172 yes*) LD="${LD-ld} -m elf64_sparc" ;;
00aafda4 8173 *)
8174 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8175 LD="${LD-ld} -64"
8176 fi
8177 ;;
542f9784 8178 esac
8179 ;;
8180 esac
8181 fi
8182 rm -rf conftest*
8183 ;;
90973b19 8184esac
8185
542f9784 8186need_locks="$enable_libtool_lock"
90973b19 8187
00aafda4 8188
8189 case $host_os in
8190 rhapsody* | darwin*)
8191 if test -n "$ac_tool_prefix"; then
8192 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8193set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cd9a469c 8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195$as_echo_n "checking for $ac_word... " >&6; }
8196if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
00aafda4 8198else
8199 if test -n "$DSYMUTIL"; then
8200 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8201else
8202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203for as_dir in $PATH
8204do
8205 IFS=$as_save_IFS
8206 test -z "$as_dir" && as_dir=.
cd9a469c 8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
00aafda4 8209 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cd9a469c 8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8211 break 2
8212 fi
8213done
cd9a469c 8214 done
8215IFS=$as_save_IFS
00aafda4 8216
8217fi
8218fi
8219DSYMUTIL=$ac_cv_prog_DSYMUTIL
8220if test -n "$DSYMUTIL"; then
cd9a469c 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8222$as_echo "$DSYMUTIL" >&6; }
00aafda4 8223else
cd9a469c 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225$as_echo "no" >&6; }
00aafda4 8226fi
8227
cd9a469c 8228
00aafda4 8229fi
8230if test -z "$ac_cv_prog_DSYMUTIL"; then
8231 ac_ct_DSYMUTIL=$DSYMUTIL
8232 # Extract the first word of "dsymutil", so it can be a program name with args.
8233set dummy dsymutil; ac_word=$2
cd9a469c 8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235$as_echo_n "checking for $ac_word... " >&6; }
8236if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
00aafda4 8238else
d5d92632 8239 if test -n "$ac_ct_DSYMUTIL"; then
8240 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
00aafda4 8241else
8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243for as_dir in $PATH
8244do
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
cd9a469c 8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d5d92632 8249 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cd9a469c 8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8251 break 2
8252 fi
8253done
cd9a469c 8254 done
8255IFS=$as_save_IFS
00aafda4 8256
00aafda4 8257fi
8258fi
d5d92632 8259ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8260if test -n "$ac_ct_DSYMUTIL"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8262$as_echo "$ac_ct_DSYMUTIL" >&6; }
00aafda4 8263else
cd9a469c 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265$as_echo "no" >&6; }
00aafda4 8266fi
8267
d5d92632 8268 if test "x$ac_ct_DSYMUTIL" = x; then
8269 DSYMUTIL=":"
cd9a469c 8270 else
8271 case $cross_compiling:$ac_tool_warned in
8272yes:)
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8275ac_tool_warned=yes ;;
8276esac
d5d92632 8277 DSYMUTIL=$ac_ct_DSYMUTIL
cd9a469c 8278 fi
00aafda4 8279else
d5d92632 8280 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
00aafda4 8281fi
8282
8283 if test -n "$ac_tool_prefix"; then
d5d92632 8284 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8285set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cd9a469c 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8287$as_echo_n "checking for $ac_word... " >&6; }
d5d92632 8288if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cd9a469c 8289 $as_echo_n "(cached) " >&6
00aafda4 8290else
d5d92632 8291 if test -n "$NMEDIT"; then
8292 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
00aafda4 8293else
8294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295for as_dir in $PATH
8296do
8297 IFS=$as_save_IFS
8298 test -z "$as_dir" && as_dir=.
cd9a469c 8299 for ac_exec_ext in '' $ac_executable_extensions; do
8300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d5d92632 8301 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cd9a469c 8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8303 break 2
8304 fi
8305done
cd9a469c 8306 done
8307IFS=$as_save_IFS
00aafda4 8308
8309fi
8310fi
d5d92632 8311NMEDIT=$ac_cv_prog_NMEDIT
8312if test -n "$NMEDIT"; then
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8314$as_echo "$NMEDIT" >&6; }
00aafda4 8315else
cd9a469c 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317$as_echo "no" >&6; }
00aafda4 8318fi
8319
cd9a469c 8320
00aafda4 8321fi
d5d92632 8322if test -z "$ac_cv_prog_NMEDIT"; then
8323 ac_ct_NMEDIT=$NMEDIT
8324 # Extract the first word of "nmedit", so it can be a program name with args.
8325set dummy nmedit; ac_word=$2
cd9a469c 8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327$as_echo_n "checking for $ac_word... " >&6; }
d5d92632 8328if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cd9a469c 8329 $as_echo_n "(cached) " >&6
00aafda4 8330else
d5d92632 8331 if test -n "$ac_ct_NMEDIT"; then
8332 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
00aafda4 8333else
8334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335for as_dir in $PATH
8336do
8337 IFS=$as_save_IFS
8338 test -z "$as_dir" && as_dir=.
cd9a469c 8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d5d92632 8341 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cd9a469c 8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8343 break 2
8344 fi
8345done
cd9a469c 8346 done
8347IFS=$as_save_IFS
00aafda4 8348
00aafda4 8349fi
8350fi
d5d92632 8351ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8352if test -n "$ac_ct_NMEDIT"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8354$as_echo "$ac_ct_NMEDIT" >&6; }
00aafda4 8355else
cd9a469c 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357$as_echo "no" >&6; }
00aafda4 8358fi
8359
d5d92632 8360 if test "x$ac_ct_NMEDIT" = x; then
8361 NMEDIT=":"
cd9a469c 8362 else
8363 case $cross_compiling:$ac_tool_warned in
8364yes:)
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8367ac_tool_warned=yes ;;
8368esac
d5d92632 8369 NMEDIT=$ac_ct_NMEDIT
cd9a469c 8370 fi
00aafda4 8371else
d5d92632 8372 NMEDIT="$ac_cv_prog_NMEDIT"
00aafda4 8373fi
8374
8375 if test -n "$ac_tool_prefix"; then
d5d92632 8376 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8377set dummy ${ac_tool_prefix}lipo; ac_word=$2
cd9a469c 8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379$as_echo_n "checking for $ac_word... " >&6; }
d5d92632 8380if test "${ac_cv_prog_LIPO+set}" = set; then :
cd9a469c 8381 $as_echo_n "(cached) " >&6
00aafda4 8382else
d5d92632 8383 if test -n "$LIPO"; then
8384 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
00aafda4 8385else
8386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387for as_dir in $PATH
8388do
8389 IFS=$as_save_IFS
8390 test -z "$as_dir" && as_dir=.
cd9a469c 8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d5d92632 8393 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cd9a469c 8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8395 break 2
8396 fi
8397done
cd9a469c 8398 done
8399IFS=$as_save_IFS
00aafda4 8400
8401fi
8402fi
d5d92632 8403LIPO=$ac_cv_prog_LIPO
8404if test -n "$LIPO"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8406$as_echo "$LIPO" >&6; }
00aafda4 8407else
cd9a469c 8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409$as_echo "no" >&6; }
00aafda4 8410fi
8411
cd9a469c 8412
00aafda4 8413fi
d5d92632 8414if test -z "$ac_cv_prog_LIPO"; then
8415 ac_ct_LIPO=$LIPO
8416 # Extract the first word of "lipo", so it can be a program name with args.
8417set dummy lipo; ac_word=$2
cd9a469c 8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419$as_echo_n "checking for $ac_word... " >&6; }
d5d92632 8420if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cd9a469c 8421 $as_echo_n "(cached) " >&6
00aafda4 8422else
d5d92632 8423 if test -n "$ac_ct_LIPO"; then
8424 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
00aafda4 8425else
8426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427for as_dir in $PATH
8428do
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
cd9a469c 8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d5d92632 8433 ac_cv_prog_ac_ct_LIPO="lipo"
cd9a469c 8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8435 break 2
8436 fi
8437done
cd9a469c 8438 done
8439IFS=$as_save_IFS
00aafda4 8440
00aafda4 8441fi
8442fi
d5d92632 8443ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8444if test -n "$ac_ct_LIPO"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8446$as_echo "$ac_ct_LIPO" >&6; }
00aafda4 8447else
cd9a469c 8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449$as_echo "no" >&6; }
00aafda4 8450fi
8451
d5d92632 8452 if test "x$ac_ct_LIPO" = x; then
8453 LIPO=":"
cd9a469c 8454 else
8455 case $cross_compiling:$ac_tool_warned in
8456yes:)
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8459ac_tool_warned=yes ;;
8460esac
d5d92632 8461 LIPO=$ac_ct_LIPO
cd9a469c 8462 fi
00aafda4 8463else
d5d92632 8464 LIPO="$ac_cv_prog_LIPO"
00aafda4 8465fi
8466
d5d92632 8467 if test -n "$ac_tool_prefix"; then
8468 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8469set dummy ${ac_tool_prefix}otool; ac_word=$2
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471$as_echo_n "checking for $ac_word... " >&6; }
8472if test "${ac_cv_prog_OTOOL+set}" = set; then :
cd9a469c 8473 $as_echo_n "(cached) " >&6
00aafda4 8474else
d5d92632 8475 if test -n "$OTOOL"; then
8476 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
e6408286 8477else
d5d92632 8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8485 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489done
8490 done
8491IFS=$as_save_IFS
e6408286 8492
8493fi
d5d92632 8494fi
8495OTOOL=$ac_cv_prog_OTOOL
8496if test -n "$OTOOL"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8498$as_echo "$OTOOL" >&6; }
8499else
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501$as_echo "no" >&6; }
8502fi
8503
00aafda4 8504
542f9784 8505fi
d5d92632 8506if test -z "$ac_cv_prog_OTOOL"; then
8507 ac_ct_OTOOL=$OTOOL
8508 # Extract the first word of "otool", so it can be a program name with args.
8509set dummy otool; ac_word=$2
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511$as_echo_n "checking for $ac_word... " >&6; }
8512if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cd9a469c 8513 $as_echo_n "(cached) " >&6
542f9784 8514else
d5d92632 8515 if test -n "$ac_ct_OTOOL"; then
8516 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8517else
8518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519for as_dir in $PATH
542f9784 8520do
d5d92632 8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8525 ac_cv_prog_ac_ct_OTOOL="otool"
8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 break 2
8528 fi
8529done
8530 done
8531IFS=$as_save_IFS
4ee9c684 8532
d5d92632 8533fi
8534fi
8535ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8536if test -n "$ac_ct_OTOOL"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8538$as_echo "$ac_ct_OTOOL" >&6; }
cd9a469c 8539else
d5d92632 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541$as_echo "no" >&6; }
542f9784 8542fi
90973b19 8543
d5d92632 8544 if test "x$ac_ct_OTOOL" = x; then
8545 OTOOL=":"
8546 else
8547 case $cross_compiling:$ac_tool_warned in
8548yes:)
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8551ac_tool_warned=yes ;;
8552esac
8553 OTOOL=$ac_ct_OTOOL
8554 fi
542f9784 8555else
d5d92632 8556 OTOOL="$ac_cv_prog_OTOOL"
542f9784 8557fi
4ee9c684 8558
d5d92632 8559 if test -n "$ac_tool_prefix"; then
8560 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8561set dummy ${ac_tool_prefix}otool64; ac_word=$2
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563$as_echo_n "checking for $ac_word... " >&6; }
8564if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8565 $as_echo_n "(cached) " >&6
8566else
8567 if test -n "$OTOOL64"; then
8568 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8569else
8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571for as_dir in $PATH
8572do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8577 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8580 fi
542f9784 8581done
d5d92632 8582 done
8583IFS=$as_save_IFS
8584
8585fi
8586fi
8587OTOOL64=$ac_cv_prog_OTOOL64
8588if test -n "$OTOOL64"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8590$as_echo "$OTOOL64" >&6; }
8591else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593$as_echo "no" >&6; }
542f9784 8594fi
4ee9c684 8595
90973b19 8596
542f9784 8597fi
d5d92632 8598if test -z "$ac_cv_prog_OTOOL64"; then
8599 ac_ct_OTOOL64=$OTOOL64
8600 # Extract the first word of "otool64", so it can be a program name with args.
8601set dummy otool64; ac_word=$2
8602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603$as_echo_n "checking for $ac_word... " >&6; }
8604if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8605 $as_echo_n "(cached) " >&6
90973b19 8606else
d5d92632 8607 if test -n "$ac_ct_OTOOL64"; then
8608 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8609else
8610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611for as_dir in $PATH
90973b19 8612do
d5d92632 8613 IFS=$as_save_IFS
8614 test -z "$as_dir" && as_dir=.
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8617 ac_cv_prog_ac_ct_OTOOL64="otool64"
8618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 break 2
8620 fi
8621done
8622 done
8623IFS=$as_save_IFS
90973b19 8624
d5d92632 8625fi
8626fi
8627ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8628if test -n "$ac_ct_OTOOL64"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8630$as_echo "$ac_ct_OTOOL64" >&6; }
cd9a469c 8631else
d5d92632 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633$as_echo "no" >&6; }
90973b19 8634fi
8635
d5d92632 8636 if test "x$ac_ct_OTOOL64" = x; then
8637 OTOOL64=":"
8638 else
8639 case $cross_compiling:$ac_tool_warned in
8640yes:)
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8643ac_tool_warned=yes ;;
8644esac
8645 OTOOL64=$ac_ct_OTOOL64
8646 fi
4ee9c684 8647else
d5d92632 8648 OTOOL64="$ac_cv_prog_OTOOL64"
4ee9c684 8649fi
4ee9c684 8650
cd9a469c 8651
542f9784 8652
542f9784 8653
8654
4ee9c684 8655
542f9784 8656
4ee9c684 8657
542f9784 8658
cd9a469c 8659
4ee9c684 8660
9cf1c244 8661
2e4ef4e4 8662
cd9a469c 8663
2e4ef4e4 8664
2e4ef4e4 8665
d5d92632 8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8678$as_echo_n "checking for -single_module linker flag... " >&6; }
8679if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
542f9784 8681else
d5d92632 8682 lt_cv_apple_cc_single_mod=no
8683 if test -z "${LT_MULTI_MODULE}"; then
8684 # By default we will add the -single_module flag. You can override
8685 # by either setting the environment variable LT_MULTI_MODULE
8686 # non-empty at configure time, or by adding -multi_module to the
8687 # link flags.
8688 rm -rf libconftest.dylib*
8689 echo "int foo(void){return 1;}" > conftest.c
8690 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8691-dynamiclib -Wl,-single_module conftest.c" >&5
8692 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8693 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8694 _lt_result=$?
8695 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8696 lt_cv_apple_cc_single_mod=yes
8697 else
8698 cat conftest.err >&5
8699 fi
8700 rm -rf libconftest.dylib*
8701 rm -f conftest.*
8702 fi
8703fi
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8705$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8707$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8708if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8709 $as_echo_n "(cached) " >&6
8710else
8711 lt_cv_ld_exported_symbols_list=no
8712 save_LDFLAGS=$LDFLAGS
8713 echo "_main" > conftest.sym
8714 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8715 if test x$gcc_no_link = xyes; then
8716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8717fi
8718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 8719/* end confdefs.h. */
2e4ef4e4 8720
542f9784 8721int
8722main ()
8723{
d5d92632 8724
8725 ;
cd9a469c 8726 return 0;
542f9784 8727}
2e4ef4e4 8728_ACEOF
d5d92632 8729if ac_fn_c_try_link "$LINENO"; then :
8730 lt_cv_ld_exported_symbols_list=yes
cd9a469c 8731else
d5d92632 8732 lt_cv_ld_exported_symbols_list=no
542f9784 8733fi
d5d92632 8734rm -f core conftest.err conftest.$ac_objext \
8735 conftest$ac_exeext conftest.$ac_ext
8736 LDFLAGS="$save_LDFLAGS"
2e4ef4e4 8737
8738fi
d5d92632 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8740$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8742$as_echo_n "checking for -force_load linker flag... " >&6; }
8743if test "${lt_cv_ld_force_load+set}" = set; then :
8744 $as_echo_n "(cached) " >&6
8745else
8746 lt_cv_ld_force_load=no
8747 cat > conftest.c << _LT_EOF
8748int forced_loaded() { return 2;}
8749_LT_EOF
8750 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8751 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8752 echo "$AR cru libconftest.a conftest.o" >&5
8753 $AR cru libconftest.a conftest.o 2>&5
8754 cat > conftest.c << _LT_EOF
8755int main() { return 0;}
8756_LT_EOF
8757 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8758 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8759 _lt_result=$?
8760 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8761 lt_cv_ld_force_load=yes
8762 else
8763 cat conftest.err >&5
8764 fi
8765 rm -f conftest.err libconftest.a conftest conftest.c
8766 rm -rf conftest.dSYM
542f9784 8767
8768fi
d5d92632 8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8770$as_echo "$lt_cv_ld_force_load" >&6; }
8771 case $host_os in
8772 rhapsody* | darwin1.[012])
8773 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8774 darwin1.*)
8775 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8776 darwin*) # darwin 5.x on
8777 # if running on 10.5 or later, the deployment target defaults
8778 # to the OS version, if on x86, and 10.4, the deployment
8779 # target defaults to 10.4. Don't you love it?
8780 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8781 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8782 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8783 10.[012]*)
8784 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8785 10.*)
8786 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8787 esac
8788 ;;
8789 esac
8790 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8791 _lt_dar_single_mod='$single_module'
8792 fi
8793 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8794 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8795 else
8796 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8797 fi
8798 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8799 _lt_dsymutil='~$DSYMUTIL $lib || :'
8800 else
8801 _lt_dsymutil=
8802 fi
8803 ;;
8804 esac
542f9784 8805
542f9784 8806for ac_header in dlfcn.h
cd9a469c 8807do :
8808 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8809"
8810if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
542f9784 8811 cat >>confdefs.h <<_ACEOF
cd9a469c 8812#define HAVE_DLFCN_H 1
90e67cff 8813_ACEOF
90e67cff 8814
542f9784 8815fi
8816
8817done
8818
8819
8820
e6408286 8821
8822
00aafda4 8823# Set options
8824
8825
8826
8827
8828 enable_win32_dll=no
8829
8830
cd9a469c 8831 # Check whether --enable-shared was given.
8832if test "${enable_shared+set}" = set; then :
8833 enableval=$enable_shared; p=${PACKAGE-default}
00aafda4 8834 case $enableval in
8835 yes) enable_shared=yes ;;
8836 no) enable_shared=no ;;
8837 *)
8838 enable_shared=no
8839 # Look at the argument we got. We use all the common list separators.
8840 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8841 for pkg in $enableval; do
8842 IFS="$lt_save_ifs"
8843 if test "X$pkg" = "X$p"; then
8844 enable_shared=yes
8845 fi
8846 done
8847 IFS="$lt_save_ifs"
8848 ;;
8849 esac
8850else
8851 enable_shared=yes
cd9a469c 8852fi
8853
00aafda4 8854
8855
8856
8857
8858
8859
8860
8861
cd9a469c 8862 # Check whether --enable-static was given.
8863if test "${enable_static+set}" = set; then :
8864 enableval=$enable_static; p=${PACKAGE-default}
00aafda4 8865 case $enableval in
8866 yes) enable_static=yes ;;
8867 no) enable_static=no ;;
8868 *)
8869 enable_static=no
8870 # Look at the argument we got. We use all the common list separators.
8871 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8872 for pkg in $enableval; do
8873 IFS="$lt_save_ifs"
8874 if test "X$pkg" = "X$p"; then
8875 enable_static=yes
8876 fi
8877 done
8878 IFS="$lt_save_ifs"
8879 ;;
8880 esac
8881else
8882 enable_static=yes
cd9a469c 8883fi
8884
00aafda4 8885
8886
8887
8888
8889
8890
8891
8892
8893
cd9a469c 8894# Check whether --with-pic was given.
8895if test "${with_pic+set}" = set; then :
8896 withval=$with_pic; pic_mode="$withval"
00aafda4 8897else
8898 pic_mode=default
cd9a469c 8899fi
8900
00aafda4 8901
8902test -z "$pic_mode" && pic_mode=default
8903
8904
8905
8906
8907
8908
8909
cd9a469c 8910 # Check whether --enable-fast-install was given.
8911if test "${enable_fast_install+set}" = set; then :
8912 enableval=$enable_fast_install; p=${PACKAGE-default}
00aafda4 8913 case $enableval in
8914 yes) enable_fast_install=yes ;;
8915 no) enable_fast_install=no ;;
8916 *)
8917 enable_fast_install=no
8918 # Look at the argument we got. We use all the common list separators.
8919 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8920 for pkg in $enableval; do
8921 IFS="$lt_save_ifs"
8922 if test "X$pkg" = "X$p"; then
8923 enable_fast_install=yes
8924 fi
8925 done
8926 IFS="$lt_save_ifs"
8927 ;;
8928 esac
8929else
8930 enable_fast_install=yes
cd9a469c 8931fi
8932
00aafda4 8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
542f9784 8943# This can be used to rebuild libtool when needed
8944LIBTOOL_DEPS="$ltmain"
8945
8946# Always use our own libtool.
8947LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
e6408286 8971
542f9784 8972
8973
8974test -z "$LN_S" && LN_S="ln -s"
8975
8976
8977
8978
8979
90e67cff 8980
542f9784 8981
8982
8983
8984
8985
8986
8987
8988
8989if test -n "${ZSH_VERSION+set}" ; then
8990 setopt NO_GLOB_SUBST
90e67cff 8991fi
90e67cff 8992
cd9a469c 8993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8994$as_echo_n "checking for objdir... " >&6; }
8995if test "${lt_cv_objdir+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
90e67cff 8997else
542f9784 8998 rm -f .libs 2>/dev/null
8999mkdir .libs 2>/dev/null
9000if test -d .libs; then
9001 lt_cv_objdir=.libs
9002else
9003 # MS-DOS does not allow filenames that begin with a dot.
9004 lt_cv_objdir=_libs
90e67cff 9005fi
542f9784 9006rmdir .libs 2>/dev/null
90e67cff 9007fi
cd9a469c 9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9009$as_echo "$lt_cv_objdir" >&6; }
542f9784 9010objdir=$lt_cv_objdir
9011
9012
9013
9014
90e67cff 9015
9016cat >>confdefs.h <<_ACEOF
542f9784 9017#define LT_OBJDIR "$lt_cv_objdir/"
90e67cff 9018_ACEOF
9019
542f9784 9020
9021
9022
542f9784 9023case $host_os in
9024aix3*)
9025 # AIX sometimes has problems with the GCC collect2 program. For some
9026 # reason, if we set the COLLECT_NAMES environment variable, the problems
9027 # vanish in a puff of smoke.
9028 if test "X${COLLECT_NAMES+set}" != Xset; then
9029 COLLECT_NAMES=
9030 export COLLECT_NAMES
9031 fi
9032 ;;
9033esac
9034
542f9784 9035# Global variables:
9036ofile=libtool
9037can_build_shared=yes
9038
9039# All known linkers require a `.a' archive for static linking (except MSVC,
9040# which needs '.lib').
9041libext=a
9042
9043with_gnu_ld="$lt_cv_prog_gnu_ld"
9044
9045old_CC="$CC"
9046old_CFLAGS="$CFLAGS"
9047
9048# Set sane defaults for various variables
9049test -z "$CC" && CC=cc
9050test -z "$LTCC" && LTCC=$CC
9051test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9052test -z "$LD" && LD=ld
9053test -z "$ac_objext" && ac_objext=o
9054
9055for cc_temp in $compiler""; do
9056 case $cc_temp in
9057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9059 \-*) ;;
9060 *) break;;
9061 esac
9062done
e6408286 9063cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 9064
9065
9066# Only perform the check for file, if the check method requires it
9067test -z "$MAGIC_CMD" && MAGIC_CMD=file
9068case $deplibs_check_method in
9069file_magic*)
9070 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cd9a469c 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9072$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9073if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
90e67cff 9075else
542f9784 9076 case $MAGIC_CMD in
9077[\\/*] | ?:[\\/]*)
9078 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9079 ;;
9080*)
9081 lt_save_MAGIC_CMD="$MAGIC_CMD"
9082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9083 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9084 for ac_dir in $ac_dummy; do
9085 IFS="$lt_save_ifs"
9086 test -z "$ac_dir" && ac_dir=.
9087 if test -f $ac_dir/${ac_tool_prefix}file; then
9088 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9089 if test -n "$file_magic_test_file"; then
9090 case $deplibs_check_method in
9091 "file_magic "*)
9092 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9094 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9095 $EGREP "$file_magic_regex" > /dev/null; then
9096 :
9097 else
9098 cat <<_LT_EOF 1>&2
90e67cff 9099
542f9784 9100*** Warning: the command libtool uses to detect shared libraries,
9101*** $file_magic_cmd, produces output that libtool cannot recognize.
9102*** The result is that libtool may fail to recognize shared libraries
9103*** as such. This will affect the creation of libtool libraries that
9104*** depend on shared libraries, but programs linked with such libtool
9105*** libraries will work regardless of this problem. Nevertheless, you
9106*** may want to report the problem to your system manager and/or to
9107*** bug-libtool@gnu.org
9108
9109_LT_EOF
9110 fi ;;
9111 esac
9112 fi
9113 break
9114 fi
9115 done
9116 IFS="$lt_save_ifs"
9117 MAGIC_CMD="$lt_save_MAGIC_CMD"
9118 ;;
9119esac
9120fi
9121
9122MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9123if test -n "$MAGIC_CMD"; then
cd9a469c 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9125$as_echo "$MAGIC_CMD" >&6; }
542f9784 9126else
cd9a469c 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9128$as_echo "no" >&6; }
542f9784 9129fi
9130
9131
9132
9133
9134
9135if test -z "$lt_cv_path_MAGIC_CMD"; then
9136 if test -n "$ac_tool_prefix"; then
cd9a469c 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9138$as_echo_n "checking for file... " >&6; }
9139if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
542f9784 9141else
9142 case $MAGIC_CMD in
9143[\\/*] | ?:[\\/]*)
9144 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9145 ;;
9146*)
9147 lt_save_MAGIC_CMD="$MAGIC_CMD"
9148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9149 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9150 for ac_dir in $ac_dummy; do
9151 IFS="$lt_save_ifs"
9152 test -z "$ac_dir" && ac_dir=.
9153 if test -f $ac_dir/file; then
9154 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9155 if test -n "$file_magic_test_file"; then
9156 case $deplibs_check_method in
9157 "file_magic "*)
9158 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9159 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9160 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9161 $EGREP "$file_magic_regex" > /dev/null; then
9162 :
9163 else
9164 cat <<_LT_EOF 1>&2
9165
9166*** Warning: the command libtool uses to detect shared libraries,
9167*** $file_magic_cmd, produces output that libtool cannot recognize.
9168*** The result is that libtool may fail to recognize shared libraries
9169*** as such. This will affect the creation of libtool libraries that
9170*** depend on shared libraries, but programs linked with such libtool
9171*** libraries will work regardless of this problem. Nevertheless, you
9172*** may want to report the problem to your system manager and/or to
9173*** bug-libtool@gnu.org
9174
9175_LT_EOF
9176 fi ;;
9177 esac
9178 fi
9179 break
9180 fi
9181 done
9182 IFS="$lt_save_ifs"
9183 MAGIC_CMD="$lt_save_MAGIC_CMD"
9184 ;;
9185esac
9186fi
9187
9188MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9189if test -n "$MAGIC_CMD"; then
cd9a469c 9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9191$as_echo "$MAGIC_CMD" >&6; }
542f9784 9192else
cd9a469c 9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194$as_echo "no" >&6; }
542f9784 9195fi
9196
9197
9198 else
9199 MAGIC_CMD=:
9200 fi
9201fi
9202
9203 fi
9204 ;;
9205esac
9206
9207# Use C for the default configuration in the libtool script
9208
9209lt_save_CC="$CC"
9210ac_ext=c
9211ac_cpp='$CPP $CPPFLAGS'
9212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9214ac_compiler_gnu=$ac_cv_c_compiler_gnu
9215
9216
9217# Source file extension for C test sources.
9218ac_ext=c
9219
9220# Object file extension for compiled C test sources.
9221objext=o
9222objext=$objext
9223
9224# Code to be used in simple compile tests
9225lt_simple_compile_test_code="int some_variable = 0;"
9226
9227# Code to be used in simple link tests
9228lt_simple_link_test_code='int main(){return(0);}'
9229
9230
9231
9232
9233
9234
9235
9236# If no C compiler was specified, use CC.
9237LTCC=${LTCC-"$CC"}
9238
9239# If no C compiler flags were specified, use CFLAGS.
9240LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9241
9242# Allow CC to be a program name with arguments.
9243compiler=$CC
9244
9245# Save the default compiler, since it gets overwritten when the other
9246# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9247compiler_DEFAULT=$CC
9248
9249# save warnings/boilerplate of simple test code
9250ac_outfile=conftest.$ac_objext
9251echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9252eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9253_lt_compiler_boilerplate=`cat conftest.err`
9254$RM conftest*
9255
9256ac_outfile=conftest.$ac_objext
9257echo "$lt_simple_link_test_code" >conftest.$ac_ext
9258eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9259_lt_linker_boilerplate=`cat conftest.err`
00aafda4 9260$RM -r conftest*
542f9784 9261
9262
9263## CAVEAT EMPTOR:
9264## There is no encapsulation within the following macros, do not change
9265## the running order or otherwise move them around unless you know exactly
9266## what you are doing...
9267if test -n "$compiler"; then
9268
9269lt_prog_compiler_no_builtin_flag=
9270
9271if test "$GCC" = yes; then
e6408286 9272 case $cc_basename in
9273 nvcc*)
9274 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9275 *)
9276 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9277 esac
542f9784 9278
cd9a469c 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9280$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9281if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9282 $as_echo_n "(cached) " >&6
542f9784 9283else
9284 lt_cv_prog_compiler_rtti_exceptions=no
9285 ac_outfile=conftest.$ac_objext
9286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9287 lt_compiler_flag="-fno-rtti -fno-exceptions"
9288 # Insert the option either (1) after the last *FLAGS variable, or
9289 # (2) before a word containing "conftest.", or (3) at the end.
9290 # Note that $ac_compile itself does not contain backslashes and begins
9291 # with a dollar sign (not a hyphen), so the echo should work correctly.
9292 # The option is referenced via a variable to avoid confusing sed.
9293 lt_compile=`echo "$ac_compile" | $SED \
9294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9296 -e 's:$: $lt_compiler_flag:'`
e6408286 9297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 9298 (eval "$lt_compile" 2>conftest.err)
9299 ac_status=$?
9300 cat conftest.err >&5
e6408286 9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 9302 if (exit $ac_status) && test -s "$ac_outfile"; then
9303 # The compiler can only warn and ignore the option if not recognized
9304 # So say no if there are warnings other than the usual output.
e6408286 9305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 9306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9307 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9308 lt_cv_prog_compiler_rtti_exceptions=yes
9309 fi
9310 fi
9311 $RM conftest*
9312
9313fi
cd9a469c 9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9315$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
542f9784 9316
9317if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9318 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9319else
9320 :
9321fi
9322
9323fi
9324
9325
9326
9327
9328
9329
9330 lt_prog_compiler_wl=
9331lt_prog_compiler_pic=
9332lt_prog_compiler_static=
9333
cd9a469c 9334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9335$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
542f9784 9336
9337 if test "$GCC" = yes; then
9338 lt_prog_compiler_wl='-Wl,'
9339 lt_prog_compiler_static='-static'
9340
9341 case $host_os in
9342 aix*)
9343 # All AIX code is PIC.
9344 if test "$host_cpu" = ia64; then
9345 # AIX 5 now supports IA64 processor
9346 lt_prog_compiler_static='-Bstatic'
9347 fi
9348 ;;
9349
9350 amigaos*)
00aafda4 9351 case $host_cpu in
9352 powerpc)
9353 # see comment about AmigaOS4 .so support
9354 lt_prog_compiler_pic='-fPIC'
9355 ;;
9356 m68k)
9357 # FIXME: we need at least 68020 code to build shared libraries, but
9358 # adding the `-m68020' flag to GCC prevents building anything better,
9359 # like `-m68040'.
9360 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9361 ;;
9362 esac
542f9784 9363 ;;
9364
9365 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9366 # PIC is the default for these OSes.
9367 ;;
9368
00aafda4 9369 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 9370 # This hack is so that the source file can tell whether it is being
9371 # built for inclusion in a dll (and should export symbols for example).
9372 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9373 # (--disable-auto-import) libraries
9374 lt_prog_compiler_pic='-DDLL_EXPORT'
9375 ;;
9376
9377 darwin* | rhapsody*)
9378 # PIC is the default on this platform
9379 # Common symbols not allowed in MH_DYLIB files
9380 lt_prog_compiler_pic='-fno-common'
9381 ;;
9382
e6408286 9383 haiku*)
9384 # PIC is the default for Haiku.
9385 # The "-static" flag exists, but is broken.
9386 lt_prog_compiler_static=
9387 ;;
9388
542f9784 9389 hpux*)
00aafda4 9390 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9391 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9392 # sets the default TLS model and affects inlining.
542f9784 9393 case $host_cpu in
00aafda4 9394 hppa*64*)
542f9784 9395 # +Z the default
9396 ;;
9397 *)
9398 lt_prog_compiler_pic='-fPIC'
9399 ;;
9400 esac
9401 ;;
9402
9403 interix[3-9]*)
9404 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9405 # Instead, we relocate shared libraries at runtime.
9406 ;;
9407
9408 msdosdjgpp*)
9409 # Just because we use GCC doesn't mean we suddenly get shared libraries
9410 # on systems that don't support them.
9411 lt_prog_compiler_can_build_shared=no
9412 enable_shared=no
9413 ;;
9414
9415 *nto* | *qnx*)
9416 # QNX uses GNU C++, but need to define -shared option too, otherwise
9417 # it will coredump.
9418 lt_prog_compiler_pic='-fPIC -shared'
9419 ;;
9420
9421 sysv4*MP*)
9422 if test -d /usr/nec; then
9423 lt_prog_compiler_pic=-Kconform_pic
9424 fi
9425 ;;
9426
9427 *)
9428 lt_prog_compiler_pic='-fPIC'
9429 ;;
9430 esac
e6408286 9431
9432 case $cc_basename in
9433 nvcc*) # Cuda Compiler Driver 2.2
9434 lt_prog_compiler_wl='-Xlinker '
9435 lt_prog_compiler_pic='-Xcompiler -fPIC'
9436 ;;
9437 esac
542f9784 9438 else
9439 # PORTME Check for flag to pass linker flags through the system compiler.
9440 case $host_os in
9441 aix*)
9442 lt_prog_compiler_wl='-Wl,'
9443 if test "$host_cpu" = ia64; then
9444 # AIX 5 now supports IA64 processor
9445 lt_prog_compiler_static='-Bstatic'
9446 else
9447 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9448 fi
9449 ;;
542f9784 9450
00aafda4 9451 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 9452 # This hack is so that the source file can tell whether it is being
9453 # built for inclusion in a dll (and should export symbols for example).
9454 lt_prog_compiler_pic='-DDLL_EXPORT'
9455 ;;
9456
9457 hpux9* | hpux10* | hpux11*)
9458 lt_prog_compiler_wl='-Wl,'
9459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9460 # not for PA HP-UX.
9461 case $host_cpu in
9462 hppa*64*|ia64*)
9463 # +Z the default
9464 ;;
9465 *)
9466 lt_prog_compiler_pic='+Z'
9467 ;;
9468 esac
9469 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9470 lt_prog_compiler_static='${wl}-a ${wl}archive'
9471 ;;
9472
9473 irix5* | irix6* | nonstopux*)
9474 lt_prog_compiler_wl='-Wl,'
9475 # PIC (with -KPIC) is the default.
9476 lt_prog_compiler_static='-non_shared'
9477 ;;
9478
9af964d4 9479 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 9480 case $cc_basename in
00aafda4 9481 # old Intel for x86_64 which still supported -KPIC.
9482 ecc*)
542f9784 9483 lt_prog_compiler_wl='-Wl,'
9484 lt_prog_compiler_pic='-KPIC'
9485 lt_prog_compiler_static='-static'
9486 ;;
00aafda4 9487 # icc used to be incompatible with GCC.
9488 # ICC 10 doesn't accept -KPIC any more.
9489 icc* | ifort*)
9490 lt_prog_compiler_wl='-Wl,'
9491 lt_prog_compiler_pic='-fPIC'
9492 lt_prog_compiler_static='-static'
9493 ;;
9494 # Lahey Fortran 8.1.
9495 lf95*)
9496 lt_prog_compiler_wl='-Wl,'
9497 lt_prog_compiler_pic='--shared'
9498 lt_prog_compiler_static='--static'
9499 ;;
e6408286 9500 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 9501 # Portland Group compilers (*not* the Pentium gcc compiler,
9502 # which looks to be a dead project)
9503 lt_prog_compiler_wl='-Wl,'
9504 lt_prog_compiler_pic='-fpic'
9505 lt_prog_compiler_static='-Bstatic'
9506 ;;
9507 ccc*)
9508 lt_prog_compiler_wl='-Wl,'
9509 # All Alpha code is PIC.
9510 lt_prog_compiler_static='-non_shared'
9511 ;;
e6408286 9512 xl* | bgxl* | bgf* | mpixl*)
9513 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
00aafda4 9514 lt_prog_compiler_wl='-Wl,'
9515 lt_prog_compiler_pic='-qpic'
9516 lt_prog_compiler_static='-qstaticlink'
9517 ;;
542f9784 9518 *)
9519 case `$CC -V 2>&1 | sed 5q` in
e6408286 9520 *Sun\ F* | *Sun*Fortran*)
9521 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 9522 lt_prog_compiler_pic='-KPIC'
9523 lt_prog_compiler_static='-Bstatic'
e6408286 9524 lt_prog_compiler_wl=''
542f9784 9525 ;;
e6408286 9526 *Sun\ C*)
9527 # Sun C 5.9
542f9784 9528 lt_prog_compiler_pic='-KPIC'
9529 lt_prog_compiler_static='-Bstatic'
e6408286 9530 lt_prog_compiler_wl='-Wl,'
542f9784 9531 ;;
9532 esac
9533 ;;
9534 esac
9535 ;;
9536
9537 newsos6)
9538 lt_prog_compiler_pic='-KPIC'
9539 lt_prog_compiler_static='-Bstatic'
9540 ;;
9541
9542 *nto* | *qnx*)
9543 # QNX uses GNU C++, but need to define -shared option too, otherwise
9544 # it will coredump.
9545 lt_prog_compiler_pic='-fPIC -shared'
9546 ;;
9547
9548 osf3* | osf4* | osf5*)
9549 lt_prog_compiler_wl='-Wl,'
9550 # All OSF/1 code is PIC.
9551 lt_prog_compiler_static='-non_shared'
9552 ;;
9553
9554 rdos*)
9555 lt_prog_compiler_static='-non_shared'
9556 ;;
9557
9558 solaris*)
9559 lt_prog_compiler_pic='-KPIC'
9560 lt_prog_compiler_static='-Bstatic'
9561 case $cc_basename in
9562 f77* | f90* | f95*)
9563 lt_prog_compiler_wl='-Qoption ld ';;
9564 *)
9565 lt_prog_compiler_wl='-Wl,';;
9566 esac
9567 ;;
9568
9569 sunos4*)
9570 lt_prog_compiler_wl='-Qoption ld '
9571 lt_prog_compiler_pic='-PIC'
9572 lt_prog_compiler_static='-Bstatic'
9573 ;;
9574
9575 sysv4 | sysv4.2uw2* | sysv4.3*)
9576 lt_prog_compiler_wl='-Wl,'
9577 lt_prog_compiler_pic='-KPIC'
9578 lt_prog_compiler_static='-Bstatic'
9579 ;;
9580
9581 sysv4*MP*)
9582 if test -d /usr/nec ;then
9583 lt_prog_compiler_pic='-Kconform_pic'
9584 lt_prog_compiler_static='-Bstatic'
9585 fi
9586 ;;
9587
9588 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9589 lt_prog_compiler_wl='-Wl,'
9590 lt_prog_compiler_pic='-KPIC'
9591 lt_prog_compiler_static='-Bstatic'
9592 ;;
9593
9594 unicos*)
9595 lt_prog_compiler_wl='-Wl,'
9596 lt_prog_compiler_can_build_shared=no
9597 ;;
9598
9599 uts4*)
9600 lt_prog_compiler_pic='-pic'
9601 lt_prog_compiler_static='-Bstatic'
9602 ;;
9603
9604 *)
9605 lt_prog_compiler_can_build_shared=no
9606 ;;
9607 esac
9608 fi
9609
9610case $host_os in
9611 # For platforms which do not support PIC, -DPIC is meaningless:
9612 *djgpp*)
9613 lt_prog_compiler_pic=
9614 ;;
9615 *)
9616 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9617 ;;
9618esac
cd9a469c 9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9620$as_echo "$lt_prog_compiler_pic" >&6; }
542f9784 9621
9622
9623
9624
9625
9626
9627#
9628# Check to make sure the PIC flag actually works.
9629#
9630if test -n "$lt_prog_compiler_pic"; then
cd9a469c 9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9632$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9633if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
542f9784 9635else
00aafda4 9636 lt_cv_prog_compiler_pic_works=no
542f9784 9637 ac_outfile=conftest.$ac_objext
9638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9639 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9640 # Insert the option either (1) after the last *FLAGS variable, or
9641 # (2) before a word containing "conftest.", or (3) at the end.
9642 # Note that $ac_compile itself does not contain backslashes and begins
9643 # with a dollar sign (not a hyphen), so the echo should work correctly.
9644 # The option is referenced via a variable to avoid confusing sed.
9645 lt_compile=`echo "$ac_compile" | $SED \
9646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9648 -e 's:$: $lt_compiler_flag:'`
e6408286 9649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 9650 (eval "$lt_compile" 2>conftest.err)
9651 ac_status=$?
9652 cat conftest.err >&5
e6408286 9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 9654 if (exit $ac_status) && test -s "$ac_outfile"; then
9655 # The compiler can only warn and ignore the option if not recognized
9656 # So say no if there are warnings other than the usual output.
e6408286 9657 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 9658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9659 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 9660 lt_cv_prog_compiler_pic_works=yes
542f9784 9661 fi
9662 fi
9663 $RM conftest*
9664
9665fi
cd9a469c 9666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9667$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
542f9784 9668
00aafda4 9669if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
542f9784 9670 case $lt_prog_compiler_pic in
9671 "" | " "*) ;;
9672 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9673 esac
9674else
9675 lt_prog_compiler_pic=
9676 lt_prog_compiler_can_build_shared=no
9677fi
9678
9679fi
9680
9681
9682
9683
9684
9685
9686#
9687# Check to make sure the static flag actually works.
9688#
9689wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cd9a469c 9690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9691$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9692if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9693 $as_echo_n "(cached) " >&6
542f9784 9694else
00aafda4 9695 lt_cv_prog_compiler_static_works=no
542f9784 9696 save_LDFLAGS="$LDFLAGS"
9697 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9698 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9700 # The linker can only warn and ignore the option if not recognized
9701 # So say no if there are warnings
9702 if test -s conftest.err; then
9703 # Append any errors to the config.log.
9704 cat conftest.err 1>&5
e6408286 9705 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 9706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9707 if diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 9708 lt_cv_prog_compiler_static_works=yes
542f9784 9709 fi
9710 else
00aafda4 9711 lt_cv_prog_compiler_static_works=yes
542f9784 9712 fi
9713 fi
00aafda4 9714 $RM -r conftest*
542f9784 9715 LDFLAGS="$save_LDFLAGS"
9716
9717fi
cd9a469c 9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9719$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
542f9784 9720
00aafda4 9721if test x"$lt_cv_prog_compiler_static_works" = xyes; then
542f9784 9722 :
9723else
9724 lt_prog_compiler_static=
9725fi
9726
9727
9728
9729
9730
9731
9732
cd9a469c 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9734$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9735if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
542f9784 9737else
9738 lt_cv_prog_compiler_c_o=no
9739 $RM -r conftest 2>/dev/null
9740 mkdir conftest
9741 cd conftest
9742 mkdir out
9743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9744
9745 lt_compiler_flag="-o out/conftest2.$ac_objext"
9746 # Insert the option either (1) after the last *FLAGS variable, or
9747 # (2) before a word containing "conftest.", or (3) at the end.
9748 # Note that $ac_compile itself does not contain backslashes and begins
9749 # with a dollar sign (not a hyphen), so the echo should work correctly.
9750 lt_compile=`echo "$ac_compile" | $SED \
9751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9753 -e 's:$: $lt_compiler_flag:'`
e6408286 9754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 9755 (eval "$lt_compile" 2>out/conftest.err)
9756 ac_status=$?
9757 cat out/conftest.err >&5
e6408286 9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 9759 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9760 then
9761 # The compiler can only warn and ignore the option if not recognized
9762 # So say no if there are warnings
e6408286 9763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 9764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9766 lt_cv_prog_compiler_c_o=yes
9767 fi
9768 fi
9769 chmod u+w . 2>&5
9770 $RM conftest*
9771 # SGI C++ compiler will create directory out/ii_files/ for
9772 # template instantiation
9773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9774 $RM out/* && rmdir out
9775 cd ..
9776 $RM -r conftest
9777 $RM conftest*
9778
9779fi
cd9a469c 9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9781$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
542f9784 9782
9783
9784
9785
9786
9787
cd9a469c 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9789$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9790if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9791 $as_echo_n "(cached) " >&6
542f9784 9792else
9793 lt_cv_prog_compiler_c_o=no
9794 $RM -r conftest 2>/dev/null
9795 mkdir conftest
9796 cd conftest
9797 mkdir out
9798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9799
9800 lt_compiler_flag="-o out/conftest2.$ac_objext"
9801 # Insert the option either (1) after the last *FLAGS variable, or
9802 # (2) before a word containing "conftest.", or (3) at the end.
9803 # Note that $ac_compile itself does not contain backslashes and begins
9804 # with a dollar sign (not a hyphen), so the echo should work correctly.
9805 lt_compile=`echo "$ac_compile" | $SED \
9806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9808 -e 's:$: $lt_compiler_flag:'`
e6408286 9809 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 9810 (eval "$lt_compile" 2>out/conftest.err)
9811 ac_status=$?
9812 cat out/conftest.err >&5
e6408286 9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 9814 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9815 then
9816 # The compiler can only warn and ignore the option if not recognized
9817 # So say no if there are warnings
e6408286 9818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 9819 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9820 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9821 lt_cv_prog_compiler_c_o=yes
9822 fi
9823 fi
9824 chmod u+w . 2>&5
9825 $RM conftest*
9826 # SGI C++ compiler will create directory out/ii_files/ for
9827 # template instantiation
9828 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9829 $RM out/* && rmdir out
9830 cd ..
9831 $RM -r conftest
9832 $RM conftest*
9833
9834fi
cd9a469c 9835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9836$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
542f9784 9837
9838
9839
9840
9841hard_links="nottested"
9842if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9843 # do not overwrite the value of need_locks provided by the user
cd9a469c 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9845$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 9846 hard_links=yes
9847 $RM conftest*
9848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9849 touch conftest.a
9850 ln conftest.a conftest.b 2>&5 || hard_links=no
9851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9853$as_echo "$hard_links" >&6; }
542f9784 9854 if test "$hard_links" = no; then
cd9a469c 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9856$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 9857 need_locks=warn
9858 fi
9859else
9860 need_locks=no
9861fi
9862
9863
9864
9865
9866
9867
cd9a469c 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9869$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 9870
9871 runpath_var=
9872 allow_undefined_flag=
9873 always_export_symbols=no
9874 archive_cmds=
9875 archive_expsym_cmds=
9876 compiler_needs_object=no
9877 enable_shared_with_static_runtimes=no
9878 export_dynamic_flag_spec=
9879 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9880 hardcode_automatic=no
9881 hardcode_direct=no
9882 hardcode_direct_absolute=no
9883 hardcode_libdir_flag_spec=
9884 hardcode_libdir_flag_spec_ld=
9885 hardcode_libdir_separator=
9886 hardcode_minus_L=no
9887 hardcode_shlibpath_var=unsupported
9888 inherit_rpath=no
9889 link_all_deplibs=unknown
9890 module_cmds=
9891 module_expsym_cmds=
9892 old_archive_from_new_cmds=
9893 old_archive_from_expsyms_cmds=
9894 thread_safe_flag_spec=
9895 whole_archive_flag_spec=
9896 # include_expsyms should be a list of space-separated symbols to be *always*
9897 # included in the symbol list
9898 include_expsyms=
9899 # exclude_expsyms can be an extended regexp of symbols to exclude
9900 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9901 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9902 # as well as any symbol that contains `d'.
00aafda4 9903 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 9904 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9905 # platforms (ab)use it in PIC code, but their linkers get confused if
9906 # the symbol is explicitly referenced. Since portable code cannot
9907 # rely on this symbol name, it's probably fine to never include it in
9908 # preloaded symbol tables.
00aafda4 9909 # Exclude shared library initialization/finalization symbols.
542f9784 9910 extract_expsyms_cmds=
9911
9912 case $host_os in
00aafda4 9913 cygwin* | mingw* | pw32* | cegcc*)
542f9784 9914 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9915 # When not using gcc, we currently assume that we are using
9916 # Microsoft Visual C++.
9917 if test "$GCC" != yes; then
9918 with_gnu_ld=no
9919 fi
9920 ;;
9921 interix*)
9922 # we just hope/assume this is gcc and not c89 (= MSVC++)
9923 with_gnu_ld=yes
9924 ;;
9925 openbsd*)
9926 with_gnu_ld=no
9927 ;;
9928 esac
9929
9930 ld_shlibs=yes
e6408286 9931
9932 # On some targets, GNU ld is compatible enough with the native linker
9933 # that we're better off using the native interface for both.
9934 lt_use_gnu_ld_interface=no
542f9784 9935 if test "$with_gnu_ld" = yes; then
e6408286 9936 case $host_os in
9937 aix*)
9938 # The AIX port of GNU ld has always aspired to compatibility
9939 # with the native linker. However, as the warning in the GNU ld
9940 # block says, versions before 2.19.5* couldn't really create working
9941 # shared libraries, regardless of the interface used.
9942 case `$LD -v 2>&1` in
9943 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9944 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9945 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9946 *)
9947 lt_use_gnu_ld_interface=yes
9948 ;;
9949 esac
9950 ;;
9951 *)
9952 lt_use_gnu_ld_interface=yes
9953 ;;
9954 esac
9955 fi
9956
9957 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 9958 # If archive_cmds runs LD, not CC, wlarc should be empty
9959 wlarc='${wl}'
9960
9961 # Set some defaults for GNU ld with shared library support. These
9962 # are reset later if shared libraries are not supported. Putting them
9963 # here allows them to be overridden if necessary.
9964 runpath_var=LD_RUN_PATH
9965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9966 export_dynamic_flag_spec='${wl}--export-dynamic'
9967 # ancient GNU ld didn't support --whole-archive et. al.
9968 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9969 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9970 else
9971 whole_archive_flag_spec=
9972 fi
9973 supports_anon_versioning=no
9974 case `$LD -v 2>&1` in
e6408286 9975 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 9976 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9977 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9978 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9979 *\ 2.11.*) ;; # other 2.11 versions
9980 *) supports_anon_versioning=yes ;;
9981 esac
9982
9983 # See if GNU ld supports shared libraries.
9984 case $host_os in
21e07d2f 9985 aix[3-9]*)
542f9784 9986 # On AIX/PPC, the GNU linker is very broken
9987 if test "$host_cpu" != ia64; then
9988 ld_shlibs=no
9989 cat <<_LT_EOF 1>&2
9990
e6408286 9991*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 9992*** to be unable to reliably create shared libraries on AIX.
9993*** Therefore, libtool is disabling shared libraries support. If you
e6408286 9994*** really care for shared libraries, you may want to install binutils
9995*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9996*** You will then need to restart the configuration process.
542f9784 9997
9998_LT_EOF
9999 fi
10000 ;;
10001
10002 amigaos*)
00aafda4 10003 case $host_cpu in
10004 powerpc)
10005 # see comment about AmigaOS4 .so support
10006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10007 archive_expsym_cmds=''
10008 ;;
10009 m68k)
10010 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)'
10011 hardcode_libdir_flag_spec='-L$libdir'
10012 hardcode_minus_L=yes
10013 ;;
10014 esac
542f9784 10015 ;;
10016
10017 beos*)
10018 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10019 allow_undefined_flag=unsupported
10020 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10021 # support --undefined. This deserves some investigation. FIXME
10022 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10023 else
10024 ld_shlibs=no
10025 fi
10026 ;;
10027
00aafda4 10028 cygwin* | mingw* | pw32* | cegcc*)
542f9784 10029 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10030 # as there is no search path for DLLs.
10031 hardcode_libdir_flag_spec='-L$libdir'
e6408286 10032 export_dynamic_flag_spec='${wl}--export-all-symbols'
542f9784 10033 allow_undefined_flag=unsupported
10034 always_export_symbols=no
10035 enable_shared_with_static_runtimes=yes
10036 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10037
10038 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10040 # If the export-symbols file already is a .def file (1st line
10041 # is EXPORTS), use it as is; otherwise, prepend...
10042 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10043 cp $export_symbols $output_objdir/$soname.def;
10044 else
10045 echo EXPORTS > $output_objdir/$soname.def;
10046 cat $export_symbols >> $output_objdir/$soname.def;
10047 fi~
10048 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10049 else
10050 ld_shlibs=no
10051 fi
10052 ;;
10053
e6408286 10054 haiku*)
10055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10056 link_all_deplibs=yes
10057 ;;
10058
542f9784 10059 interix[3-9]*)
10060 hardcode_direct=no
10061 hardcode_shlibpath_var=no
10062 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10063 export_dynamic_flag_spec='${wl}-E'
10064 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10065 # Instead, shared libraries are loaded at an image base (0x10000000 by
10066 # default) and relocated if they conflict, which is a slow very memory
10067 # consuming and fragmenting process. To avoid this, we pick a random,
10068 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10069 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10070 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10071 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'
10072 ;;
10073
9af964d4 10074 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 10075 tmp_diet=no
10076 if test "$host_os" = linux-dietlibc; then
10077 case $cc_basename in
10078 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10079 esac
10080 fi
10081 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10082 && test "$tmp_diet" = no
10083 then
10084 tmp_addflag=
00aafda4 10085 tmp_sharedflag='-shared'
542f9784 10086 case $cc_basename,$host_cpu in
10087 pgcc*) # Portland Group C compiler
e6408286 10088 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 10089 tmp_addflag=' $pic_flag'
10090 ;;
e6408286 10091 pgf77* | pgf90* | pgf95* | pgfortran*)
10092 # Portland Group f77 and f90 compilers
10093 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 10094 tmp_addflag=' $pic_flag -Mnomain' ;;
10095 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10096 tmp_addflag=' -i_dynamic' ;;
10097 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10098 tmp_addflag=' -i_dynamic -nofor_main' ;;
10099 ifc* | ifort*) # Intel Fortran compiler
10100 tmp_addflag=' -nofor_main' ;;
00aafda4 10101 lf95*) # Lahey Fortran 8.1
10102 whole_archive_flag_spec=
10103 tmp_sharedflag='--shared' ;;
e6408286 10104 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
00aafda4 10105 tmp_sharedflag='-qmkshrobj'
10106 tmp_addflag= ;;
e6408286 10107 nvcc*) # Cuda Compiler Driver 2.2
10108 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'
10109 compiler_needs_object=yes
10110 ;;
542f9784 10111 esac
10112 case `$CC -V 2>&1 | sed 5q` in
10113 *Sun\ C*) # Sun C 5.9
e6408286 10114 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 10115 compiler_needs_object=yes
10116 tmp_sharedflag='-G' ;;
10117 *Sun\ F*) # Sun Fortran 8.3
10118 tmp_sharedflag='-G' ;;
542f9784 10119 esac
10120 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10121
10122 if test "x$supports_anon_versioning" = xyes; then
10123 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10124 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10125 echo "local: *; };" >> $output_objdir/$libname.ver~
10126 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10127 fi
00aafda4 10128
10129 case $cc_basename in
e6408286 10130 xlf* | bgf* | bgxlf* | mpixlf*)
00aafda4 10131 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10132 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10133 hardcode_libdir_flag_spec=
10134 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10135 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10136 if test "x$supports_anon_versioning" = xyes; then
10137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10139 echo "local: *; };" >> $output_objdir/$libname.ver~
10140 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10141 fi
10142 ;;
10143 esac
542f9784 10144 else
10145 ld_shlibs=no
10146 fi
10147 ;;
10148
10149 netbsd*)
10150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10151 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10152 wlarc=
10153 else
10154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10156 fi
10157 ;;
10158
10159 solaris*)
10160 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10161 ld_shlibs=no
10162 cat <<_LT_EOF 1>&2
10163
10164*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10165*** create shared libraries on Solaris systems. Therefore, libtool
10166*** is disabling shared libraries support. We urge you to upgrade GNU
10167*** binutils to release 2.9.1 or newer. Another option is to modify
10168*** your PATH or compiler configuration so that the native linker is
10169*** used, and then restart.
10170
10171_LT_EOF
10172 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10175 else
10176 ld_shlibs=no
10177 fi
10178 ;;
10179
10180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10181 case `$LD -v 2>&1` in
10182 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10183 ld_shlibs=no
10184 cat <<_LT_EOF 1>&2
10185
10186*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10187*** reliably create shared libraries on SCO systems. Therefore, libtool
10188*** is disabling shared libraries support. We urge you to upgrade GNU
10189*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10190*** your PATH or compiler configuration so that the native linker is
10191*** used, and then restart.
10192
10193_LT_EOF
10194 ;;
10195 *)
10196 # For security reasons, it is highly recommended that you always
10197 # use absolute paths for naming shared libraries, and exclude the
10198 # DT_RUNPATH tag from executables and libraries. But doing so
10199 # requires that you compile everything twice, which is a pain.
10200 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10204 else
10205 ld_shlibs=no
10206 fi
10207 ;;
10208 esac
10209 ;;
10210
10211 sunos4*)
10212 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10213 wlarc=
10214 hardcode_direct=yes
10215 hardcode_shlibpath_var=no
10216 ;;
10217
10218 *)
10219 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10222 else
10223 ld_shlibs=no
10224 fi
10225 ;;
10226 esac
10227
10228 if test "$ld_shlibs" = no; then
10229 runpath_var=
10230 hardcode_libdir_flag_spec=
10231 export_dynamic_flag_spec=
10232 whole_archive_flag_spec=
10233 fi
10234 else
10235 # PORTME fill in a description of your system's linker (not GNU ld)
10236 case $host_os in
10237 aix3*)
10238 allow_undefined_flag=unsupported
10239 always_export_symbols=yes
10240 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'
10241 # Note: this linker hardcodes the directories in LIBPATH if there
10242 # are no directories specified by -L.
10243 hardcode_minus_L=yes
10244 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10245 # Neither direct hardcoding nor static linking is supported with a
10246 # broken collect2.
10247 hardcode_direct=unsupported
10248 fi
10249 ;;
10250
21e07d2f 10251 aix[4-9]*)
542f9784 10252 if test "$host_cpu" = ia64; then
10253 # On IA64, the linker does run time linking by default, so we don't
10254 # have to do anything special.
10255 aix_use_runtimelinking=no
10256 exp_sym_flag='-Bexport'
10257 no_entry_flag=""
10258 else
10259 # If we're using GNU nm, then we don't want the "-C" option.
10260 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 10261 # Also, AIX nm treats weak defined symbols like other global
10262 # defined symbols, whereas GNU nm marks them as "W".
542f9784 10263 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 10264 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 10265 else
10266 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10267 fi
10268 aix_use_runtimelinking=no
10269
10270 # Test if we are trying to use run time linking or normal
10271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10272 # need to do runtime linking.
21e07d2f 10273 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 10274 for ld_flag in $LDFLAGS; do
10275 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10276 aix_use_runtimelinking=yes
10277 break
10278 fi
10279 done
10280 ;;
10281 esac
10282
10283 exp_sym_flag='-bexport'
10284 no_entry_flag='-bnoentry'
10285 fi
10286
10287 # When large executables or shared objects are built, AIX ld can
10288 # have problems creating the table of contents. If linking a library
10289 # or program results in "error TOC overflow" add -mminimal-toc to
10290 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10291 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10292
10293 archive_cmds=''
10294 hardcode_direct=yes
10295 hardcode_direct_absolute=yes
10296 hardcode_libdir_separator=':'
10297 link_all_deplibs=yes
10298 file_list_spec='${wl}-f,'
10299
10300 if test "$GCC" = yes; then
10301 case $host_os in aix4.[012]|aix4.[012].*)
10302 # We only want to do this on AIX 4.2 and lower, the check
10303 # below for broken collect2 doesn't work under 4.3+
10304 collect2name=`${CC} -print-prog-name=collect2`
10305 if test -f "$collect2name" &&
10306 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10307 then
10308 # We have reworked collect2
10309 :
10310 else
10311 # We have old collect2
10312 hardcode_direct=unsupported
10313 # It fails to find uninstalled libraries when the uninstalled
10314 # path is not listed in the libpath. Setting hardcode_minus_L
10315 # to unsupported forces relinking
10316 hardcode_minus_L=yes
10317 hardcode_libdir_flag_spec='-L$libdir'
10318 hardcode_libdir_separator=
10319 fi
10320 ;;
10321 esac
10322 shared_flag='-shared'
10323 if test "$aix_use_runtimelinking" = yes; then
10324 shared_flag="$shared_flag "'${wl}-G'
10325 fi
10326 else
10327 # not using gcc
10328 if test "$host_cpu" = ia64; then
10329 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10330 # chokes on -Wl,-G. The following line is correct:
10331 shared_flag='-G'
10332 else
10333 if test "$aix_use_runtimelinking" = yes; then
10334 shared_flag='${wl}-G'
10335 else
10336 shared_flag='${wl}-bM:SRE'
10337 fi
10338 fi
10339 fi
10340
00aafda4 10341 export_dynamic_flag_spec='${wl}-bexpall'
542f9784 10342 # It seems that -bexpall does not export symbols beginning with
10343 # underscore (_), so it is better to generate a list of symbols to export.
10344 always_export_symbols=yes
10345 if test "$aix_use_runtimelinking" = yes; then
10346 # Warning - without using the other runtime loading flags (-brtl),
10347 # -berok will link without error, but may produce a broken library.
10348 allow_undefined_flag='-berok'
10349 # Determine the default libpath from the value encoded in an
10350 # empty executable.
10351 if test x$gcc_no_link = xyes; then
cd9a469c 10352 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 10353fi
cd9a469c 10354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10355/* end confdefs.h. */
10356
10357int
10358main ()
10359{
10360
10361 ;
10362 return 0;
10363}
10364_ACEOF
cd9a469c 10365if ac_fn_c_try_link "$LINENO"; then :
542f9784 10366
10367lt_aix_libpath_sed='
10368 /Import File Strings/,/^$/ {
10369 /^0/ {
10370 s/^0 *\(.*\)$/\1/
10371 p
10372 }
10373 }'
10374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10375# Check for a 64-bit object if we didn't find anything.
10376if test -z "$aix_libpath"; then
10377 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10378fi
542f9784 10379fi
cd9a469c 10380rm -f core conftest.err conftest.$ac_objext \
10381 conftest$ac_exeext conftest.$ac_ext
542f9784 10382if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10383
10384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 10385 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 10386 else
10387 if test "$host_cpu" = ia64; then
10388 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10389 allow_undefined_flag="-z nodefs"
10390 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"
10391 else
10392 # Determine the default libpath from the value encoded in an
10393 # empty executable.
10394 if test x$gcc_no_link = xyes; then
cd9a469c 10395 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 10396fi
cd9a469c 10397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10398/* end confdefs.h. */
10399
10400int
10401main ()
10402{
10403
10404 ;
10405 return 0;
10406}
10407_ACEOF
cd9a469c 10408if ac_fn_c_try_link "$LINENO"; then :
542f9784 10409
10410lt_aix_libpath_sed='
10411 /Import File Strings/,/^$/ {
10412 /^0/ {
10413 s/^0 *\(.*\)$/\1/
10414 p
10415 }
10416 }'
10417aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10418# Check for a 64-bit object if we didn't find anything.
10419if test -z "$aix_libpath"; then
10420 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10421fi
542f9784 10422fi
cd9a469c 10423rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
542f9784 10425if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10426
10427 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10428 # Warning - without using the other run time loading flags,
10429 # -berok will link without error, but may produce a broken library.
10430 no_undefined_flag=' ${wl}-bernotok'
10431 allow_undefined_flag=' ${wl}-berok'
e6408286 10432 if test "$with_gnu_ld" = yes; then
10433 # We only use this code for GNU lds that support --whole-archive.
10434 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10435 else
10436 # Exported symbols can be pulled into shared objects from archives
10437 whole_archive_flag_spec='$convenience'
10438 fi
542f9784 10439 archive_cmds_need_lc=yes
10440 # This is similar to how AIX traditionally builds its shared libraries.
10441 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'
10442 fi
10443 fi
10444 ;;
10445
10446 amigaos*)
00aafda4 10447 case $host_cpu in
10448 powerpc)
10449 # see comment about AmigaOS4 .so support
10450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10451 archive_expsym_cmds=''
10452 ;;
10453 m68k)
10454 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)'
10455 hardcode_libdir_flag_spec='-L$libdir'
10456 hardcode_minus_L=yes
10457 ;;
10458 esac
542f9784 10459 ;;
10460
10461 bsdi[45]*)
10462 export_dynamic_flag_spec=-rdynamic
10463 ;;
10464
00aafda4 10465 cygwin* | mingw* | pw32* | cegcc*)
542f9784 10466 # When not using gcc, we currently assume that we are using
10467 # Microsoft Visual C++.
10468 # hardcode_libdir_flag_spec is actually meaningless, as there is
10469 # no search path for DLLs.
10470 hardcode_libdir_flag_spec=' '
10471 allow_undefined_flag=unsupported
10472 # Tell ltmain to make .lib files, not .a files.
10473 libext=lib
10474 # Tell ltmain to make .dll files, not .so files.
10475 shrext_cmds=".dll"
10476 # FIXME: Setting linknames here is a bad hack.
e6408286 10477 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 10478 # The linker will automatically build a .lib file if we build a DLL.
10479 old_archive_from_new_cmds='true'
10480 # FIXME: Should let the user specify the lib program.
10481 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10482 fix_srcfile_path='`cygpath -w "$srcfile"`'
10483 enable_shared_with_static_runtimes=yes
10484 ;;
10485
10486 darwin* | rhapsody*)
542f9784 10487
00aafda4 10488
10489 archive_cmds_need_lc=no
10490 hardcode_direct=no
10491 hardcode_automatic=yes
10492 hardcode_shlibpath_var=unsupported
e6408286 10493 if test "$lt_cv_ld_force_load" = "yes"; then
10494 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\"`'
10495 else
10496 whole_archive_flag_spec=''
10497 fi
00aafda4 10498 link_all_deplibs=yes
10499 allow_undefined_flag="$_lt_dar_allow_undefined"
10500 case $cc_basename in
10501 ifort*) _lt_dar_can_shared=yes ;;
10502 *) _lt_dar_can_shared=$GCC ;;
10503 esac
10504 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 10505 output_verbose_link_cmd=func_echo_all
00aafda4 10506 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10507 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10508 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}"
10509 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}"
10510
10511 else
10512 ld_shlibs=no
10513 fi
10514
542f9784 10515 ;;
10516
10517 dgux*)
10518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10519 hardcode_libdir_flag_spec='-L$libdir'
10520 hardcode_shlibpath_var=no
10521 ;;
10522
542f9784 10523 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10524 # support. Future versions do this automatically, but an explicit c++rt0.o
10525 # does not break anything, and helps significantly (at the cost of a little
10526 # extra space).
10527 freebsd2.2*)
10528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10529 hardcode_libdir_flag_spec='-R$libdir'
10530 hardcode_direct=yes
10531 hardcode_shlibpath_var=no
10532 ;;
10533
10534 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 10535 freebsd2.*)
542f9784 10536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10537 hardcode_direct=yes
10538 hardcode_minus_L=yes
10539 hardcode_shlibpath_var=no
10540 ;;
10541
10542 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10543 freebsd* | dragonfly*)
10544 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10545 hardcode_libdir_flag_spec='-R$libdir'
10546 hardcode_direct=yes
10547 hardcode_shlibpath_var=no
10548 ;;
10549
10550 hpux9*)
10551 if test "$GCC" = yes; then
10552 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'
10553 else
10554 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'
10555 fi
10556 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10557 hardcode_libdir_separator=:
10558 hardcode_direct=yes
10559
10560 # hardcode_minus_L: Not really in the search PATH,
10561 # but as the default location of the library.
10562 hardcode_minus_L=yes
10563 export_dynamic_flag_spec='${wl}-E'
10564 ;;
10565
10566 hpux10*)
e6408286 10567 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 10568 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10569 else
10570 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10571 fi
10572 if test "$with_gnu_ld" = no; then
10573 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10574 hardcode_libdir_flag_spec_ld='+b $libdir'
10575 hardcode_libdir_separator=:
10576 hardcode_direct=yes
10577 hardcode_direct_absolute=yes
10578 export_dynamic_flag_spec='${wl}-E'
10579 # hardcode_minus_L: Not really in the search PATH,
10580 # but as the default location of the library.
10581 hardcode_minus_L=yes
10582 fi
10583 ;;
10584
10585 hpux11*)
e6408286 10586 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 10587 case $host_cpu in
10588 hppa*64*)
10589 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10590 ;;
10591 ia64*)
00aafda4 10592 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 10593 ;;
10594 *)
10595 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10596 ;;
10597 esac
10598 else
10599 case $host_cpu in
10600 hppa*64*)
10601 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10602 ;;
10603 ia64*)
10604 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10605 ;;
10606 *)
e6408286 10607
10608 # Older versions of the 11.00 compiler do not understand -b yet
10609 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10611$as_echo_n "checking if $CC understands -b... " >&6; }
10612if test "${lt_cv_prog_compiler__b+set}" = set; then :
10613 $as_echo_n "(cached) " >&6
10614else
10615 lt_cv_prog_compiler__b=no
10616 save_LDFLAGS="$LDFLAGS"
10617 LDFLAGS="$LDFLAGS -b"
10618 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10619 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10620 # The linker can only warn and ignore the option if not recognized
10621 # So say no if there are warnings
10622 if test -s conftest.err; then
10623 # Append any errors to the config.log.
10624 cat conftest.err 1>&5
10625 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10626 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10627 if diff conftest.exp conftest.er2 >/dev/null; then
10628 lt_cv_prog_compiler__b=yes
10629 fi
10630 else
10631 lt_cv_prog_compiler__b=yes
10632 fi
10633 fi
10634 $RM -r conftest*
10635 LDFLAGS="$save_LDFLAGS"
10636
10637fi
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10639$as_echo "$lt_cv_prog_compiler__b" >&6; }
10640
10641if test x"$lt_cv_prog_compiler__b" = xyes; then
10642 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10643else
10644 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10645fi
10646
542f9784 10647 ;;
10648 esac
10649 fi
10650 if test "$with_gnu_ld" = no; then
10651 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10652 hardcode_libdir_separator=:
10653
10654 case $host_cpu in
10655 hppa*64*|ia64*)
10656 hardcode_direct=no
10657 hardcode_shlibpath_var=no
10658 ;;
10659 *)
10660 hardcode_direct=yes
10661 hardcode_direct_absolute=yes
10662 export_dynamic_flag_spec='${wl}-E'
10663
10664 # hardcode_minus_L: Not really in the search PATH,
10665 # but as the default location of the library.
10666 hardcode_minus_L=yes
10667 ;;
10668 esac
10669 fi
10670 ;;
10671
10672 irix5* | irix6* | nonstopux*)
10673 if test "$GCC" = yes; then
e6408286 10674 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 10675 # Try to use the -exported_symbol ld option, if it does not
10676 # work, assume that -exports_file does not work either and
10677 # implicitly export all symbols.
10678 save_LDFLAGS="$LDFLAGS"
10679 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10680 if test x$gcc_no_link = xyes; then
cd9a469c 10681 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 10682fi
cd9a469c 10683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684/* end confdefs.h. */
542f9784 10685int foo(void) {}
10686_ACEOF
cd9a469c 10687if ac_fn_c_try_link "$LINENO"; then :
e6408286 10688 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 10689
542f9784 10690fi
cd9a469c 10691rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
542f9784 10693 LDFLAGS="$save_LDFLAGS"
10694 else
e6408286 10695 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'
10696 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 10697 fi
10698 archive_cmds_need_lc='no'
10699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10700 hardcode_libdir_separator=:
10701 inherit_rpath=yes
10702 link_all_deplibs=yes
10703 ;;
10704
10705 netbsd*)
10706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10708 else
10709 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10710 fi
10711 hardcode_libdir_flag_spec='-R$libdir'
10712 hardcode_direct=yes
10713 hardcode_shlibpath_var=no
10714 ;;
10715
10716 newsos6)
10717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718 hardcode_direct=yes
10719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10720 hardcode_libdir_separator=:
10721 hardcode_shlibpath_var=no
10722 ;;
10723
10724 *nto* | *qnx*)
10725 ;;
10726
10727 openbsd*)
00aafda4 10728 if test -f /usr/libexec/ld.so; then
10729 hardcode_direct=yes
10730 hardcode_shlibpath_var=no
10731 hardcode_direct_absolute=yes
10732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 10733 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
00aafda4 10734 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 10735 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
00aafda4 10736 export_dynamic_flag_spec='${wl}-E'
10737 else
10738 case $host_os in
10739 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10741 hardcode_libdir_flag_spec='-R$libdir'
10742 ;;
10743 *)
10744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10745 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10746 ;;
10747 esac
10748 fi
10749 else
10750 ld_shlibs=no
542f9784 10751 fi
10752 ;;
10753
10754 os2*)
10755 hardcode_libdir_flag_spec='-L$libdir'
10756 hardcode_minus_L=yes
10757 allow_undefined_flag=unsupported
e6408286 10758 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 10759 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10760 ;;
10761
10762 osf3*)
10763 if test "$GCC" = yes; then
10764 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 10765 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 10766 else
10767 allow_undefined_flag=' -expect_unresolved \*'
e6408286 10768 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 10769 fi
10770 archive_cmds_need_lc='no'
10771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10772 hardcode_libdir_separator=:
10773 ;;
10774
10775 osf4* | osf5*) # as osf3* with the addition of -msym flag
10776 if test "$GCC" = yes; then
10777 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 10778 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 10779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10780 else
10781 allow_undefined_flag=' -expect_unresolved \*'
e6408286 10782 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 10783 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 10784 $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 10785
10786 # Both c and cxx compiler support -rpath directly
10787 hardcode_libdir_flag_spec='-rpath $libdir'
10788 fi
10789 archive_cmds_need_lc='no'
10790 hardcode_libdir_separator=:
10791 ;;
10792
10793 solaris*)
10794 no_undefined_flag=' -z defs'
10795 if test "$GCC" = yes; then
10796 wlarc='${wl}'
10797 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10798 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10799 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10800 else
10801 case `$CC -V 2>&1` in
10802 *"Compilers 5.0"*)
10803 wlarc=''
10804 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10805 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10806 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10807 ;;
10808 *)
10809 wlarc='${wl}'
10810 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10811 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10812 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10813 ;;
10814 esac
10815 fi
10816 hardcode_libdir_flag_spec='-R$libdir'
10817 hardcode_shlibpath_var=no
10818 case $host_os in
10819 solaris2.[0-5] | solaris2.[0-5].*) ;;
10820 *)
10821 # The compiler driver will combine and reorder linker options,
10822 # but understands `-z linker_flag'. GCC discards it without `$wl',
10823 # but is careful enough not to reorder.
10824 # Supported since Solaris 2.6 (maybe 2.5.1?)
10825 if test "$GCC" = yes; then
10826 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10827 else
10828 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10829 fi
10830 ;;
10831 esac
10832 link_all_deplibs=yes
10833 ;;
10834
10835 sunos4*)
10836 if test "x$host_vendor" = xsequent; then
10837 # Use $CC to link under sequent, because it throws in some extra .o
10838 # files that make .init and .fini sections work.
10839 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10840 else
10841 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10842 fi
10843 hardcode_libdir_flag_spec='-L$libdir'
10844 hardcode_direct=yes
10845 hardcode_minus_L=yes
10846 hardcode_shlibpath_var=no
10847 ;;
10848
10849 sysv4)
10850 case $host_vendor in
10851 sni)
10852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853 hardcode_direct=yes # is this really true???
10854 ;;
10855 siemens)
10856 ## LD is ld it makes a PLAMLIB
10857 ## CC just makes a GrossModule.
10858 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10859 reload_cmds='$CC -r -o $output$reload_objs'
10860 hardcode_direct=no
10861 ;;
10862 motorola)
10863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10864 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10865 ;;
10866 esac
10867 runpath_var='LD_RUN_PATH'
10868 hardcode_shlibpath_var=no
10869 ;;
10870
10871 sysv4.3*)
10872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10873 hardcode_shlibpath_var=no
10874 export_dynamic_flag_spec='-Bexport'
10875 ;;
10876
10877 sysv4*MP*)
10878 if test -d /usr/nec; then
10879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10880 hardcode_shlibpath_var=no
10881 runpath_var=LD_RUN_PATH
10882 hardcode_runpath_var=yes
10883 ld_shlibs=yes
10884 fi
10885 ;;
10886
10887 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10888 no_undefined_flag='${wl}-z,text'
10889 archive_cmds_need_lc=no
10890 hardcode_shlibpath_var=no
10891 runpath_var='LD_RUN_PATH'
10892
10893 if test "$GCC" = yes; then
10894 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10895 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10896 else
10897 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10898 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10899 fi
10900 ;;
10901
10902 sysv5* | sco3.2v5* | sco5v6*)
10903 # Note: We can NOT use -z defs as we might desire, because we do not
10904 # link with -lc, and that would cause any symbols used from libc to
10905 # always be unresolved, which means just about no library would
10906 # ever link correctly. If we're not using GNU ld we use -z text
10907 # though, which does catch some bad symbols but isn't as heavy-handed
10908 # as -z defs.
10909 no_undefined_flag='${wl}-z,text'
10910 allow_undefined_flag='${wl}-z,nodefs'
10911 archive_cmds_need_lc=no
10912 hardcode_shlibpath_var=no
10913 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10914 hardcode_libdir_separator=':'
10915 link_all_deplibs=yes
10916 export_dynamic_flag_spec='${wl}-Bexport'
10917 runpath_var='LD_RUN_PATH'
10918
10919 if test "$GCC" = yes; then
10920 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922 else
10923 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10925 fi
10926 ;;
10927
10928 uts4*)
10929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10930 hardcode_libdir_flag_spec='-L$libdir'
10931 hardcode_shlibpath_var=no
10932 ;;
10933
10934 *)
10935 ld_shlibs=no
10936 ;;
10937 esac
10938
10939 if test x$host_vendor = xsni; then
10940 case $host in
10941 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10942 export_dynamic_flag_spec='${wl}-Blargedynsym'
10943 ;;
10944 esac
10945 fi
10946 fi
10947
cd9a469c 10948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10949$as_echo "$ld_shlibs" >&6; }
542f9784 10950test "$ld_shlibs" = no && can_build_shared=no
10951
10952with_gnu_ld=$with_gnu_ld
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968#
10969# Do we need to explicitly link libc?
10970#
10971case "x$archive_cmds_need_lc" in
10972x|xyes)
10973 # Assume -lc should be added
10974 archive_cmds_need_lc=yes
10975
10976 if test "$enable_shared" = yes && test "$GCC" = yes; then
10977 case $archive_cmds in
10978 *'~'*)
10979 # FIXME: we may have to deal with multi-command sequences.
10980 ;;
10981 '$CC '*)
10982 # Test whether the compiler implicitly links with -lc since on some
10983 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10984 # to ld, don't add -lc before -lgcc.
cd9a469c 10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10986$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10987if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
9e6fd619 10989else
10990 $RM conftest*
10991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 10992
cd9a469c 10993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 10994 (eval $ac_compile) 2>&5
10995 ac_status=$?
cd9a469c 10996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10997 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 10998 soname=conftest
10999 lib=conftest
11000 libobjs=conftest.$ac_objext
11001 deplibs=
11002 wl=$lt_prog_compiler_wl
11003 pic_flag=$lt_prog_compiler_pic
11004 compiler_flags=-v
11005 linker_flags=-v
11006 verstring=
11007 output_objdir=.
11008 libname=conftest
11009 lt_save_allow_undefined_flag=$allow_undefined_flag
11010 allow_undefined_flag=
cd9a469c 11011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 11012 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11013 ac_status=$?
cd9a469c 11014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11015 test $ac_status = 0; }
9e6fd619 11016 then
11017 lt_cv_archive_cmds_need_lc=no
11018 else
11019 lt_cv_archive_cmds_need_lc=yes
11020 fi
11021 allow_undefined_flag=$lt_save_allow_undefined_flag
11022 else
11023 cat conftest.err 1>&5
11024 fi
11025 $RM conftest*
11026
11027fi
cd9a469c 11028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11029$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9e6fd619 11030 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
542f9784 11031 ;;
11032 esac
11033 fi
11034 ;;
11035esac
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
cd9a469c 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11194$as_echo_n "checking dynamic linker characteristics... " >&6; }
00aafda4 11195
11196if test "$GCC" = yes; then
542f9784 11197 case $host_os in
11198 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11199 *) lt_awk_arg="/^libraries:/" ;;
11200 esac
e6408286 11201 case $host_os in
11202 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11203 *) lt_sed_strip_eq="s,=/,/,g" ;;
11204 esac
11205 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11206 case $lt_search_path_spec in
11207 *\;*)
542f9784 11208 # if the path contains ";" then we assume it to be the separator
11209 # otherwise default to the standard path separator (i.e. ":") - it is
11210 # assumed that no part of a normal pathname contains ";" but that should
11211 # okay in the real world where ";" in dirpaths is itself problematic.
e6408286 11212 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11213 ;;
11214 *)
11215 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11216 ;;
11217 esac
542f9784 11218 # Ok, now we have the path, separated by spaces, we can step through it
11219 # and add multilib dir if necessary.
11220 lt_tmp_lt_search_path_spec=
11221 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11222 for lt_sys_path in $lt_search_path_spec; do
11223 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11224 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11225 else
11226 test -d "$lt_sys_path" && \
11227 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11228 fi
11229 done
e6408286 11230 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
542f9784 11231BEGIN {RS=" "; FS="/|\n";} {
11232 lt_foo="";
11233 lt_count=0;
11234 for (lt_i = NF; lt_i > 0; lt_i--) {
11235 if ($lt_i != "" && $lt_i != ".") {
11236 if ($lt_i == "..") {
11237 lt_count++;
11238 } else {
11239 if (lt_count == 0) {
11240 lt_foo="/" $lt_i lt_foo;
11241 } else {
11242 lt_count--;
11243 }
11244 }
11245 }
11246 }
11247 if (lt_foo != "") { lt_freq[lt_foo]++; }
11248 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11249}'`
e6408286 11250 # AWK program above erroneously prepends '/' to C:/dos/paths
11251 # for these hosts.
11252 case $host_os in
11253 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11254 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11255 esac
11256 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
542f9784 11257else
11258 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11259fi
11260library_names_spec=
11261libname_spec='lib$name'
11262soname_spec=
11263shrext_cmds=".so"
11264postinstall_cmds=
11265postuninstall_cmds=
11266finish_cmds=
11267finish_eval=
11268shlibpath_var=
11269shlibpath_overrides_runpath=unknown
11270version_type=none
11271dynamic_linker="$host_os ld.so"
11272sys_lib_dlsearch_path_spec="/lib /usr/lib"
11273need_lib_prefix=unknown
11274hardcode_into_libs=no
11275
11276# when you set need_version to no, make sure it does not cause -set_version
11277# flags to be left without arguments
11278need_version=unknown
11279
11280case $host_os in
11281aix3*)
11282 version_type=linux
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11284 shlibpath_var=LIBPATH
11285
11286 # AIX 3 has no versioning support, so we append a major version to the name.
11287 soname_spec='${libname}${release}${shared_ext}$major'
11288 ;;
11289
21e07d2f 11290aix[4-9]*)
542f9784 11291 version_type=linux
11292 need_lib_prefix=no
11293 need_version=no
11294 hardcode_into_libs=yes
11295 if test "$host_cpu" = ia64; then
11296 # AIX 5 supports IA64
11297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 else
11300 # With GCC up to 2.95.x, collect2 would create an import file
11301 # for dependence libraries. The import file would start with
11302 # the line `#! .'. This would cause the generated library to
11303 # depend on `.', always an invalid library. This was fixed in
11304 # development snapshots of GCC prior to 3.0.
11305 case $host_os in
11306 aix4 | aix4.[01] | aix4.[01].*)
11307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11308 echo ' yes '
11309 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11310 :
11311 else
11312 can_build_shared=no
11313 fi
11314 ;;
11315 esac
11316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11317 # soname into executable. Probably we can add versioning support to
11318 # collect2, so additional links can be useful in future.
11319 if test "$aix_use_runtimelinking" = yes; then
11320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11321 # instead of lib<name>.a to let people know that these are not
11322 # typical AIX shared libraries.
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324 else
11325 # We preserve .a as extension for shared libraries through AIX4.2
11326 # and later when we are not doing run time linking.
11327 library_names_spec='${libname}${release}.a $libname.a'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11329 fi
11330 shlibpath_var=LIBPATH
11331 fi
11332 ;;
11333
11334amigaos*)
00aafda4 11335 case $host_cpu in
11336 powerpc)
11337 # Since July 2007 AmigaOS4 officially supports .so libraries.
11338 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340 ;;
11341 m68k)
542f9784 11342 library_names_spec='$libname.ixlibrary $libname.a'
11343 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 11344 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 11345 ;;
11346 esac
542f9784 11347 ;;
11348
11349beos*)
11350 library_names_spec='${libname}${shared_ext}'
11351 dynamic_linker="$host_os ld.so"
11352 shlibpath_var=LIBRARY_PATH
11353 ;;
11354
11355bsdi[45]*)
11356 version_type=linux
11357 need_version=no
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359 soname_spec='${libname}${release}${shared_ext}$major'
11360 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11363 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11364 # the default ld.so.conf also contains /usr/contrib/lib and
11365 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11366 # libtool to hard-code these into programs
11367 ;;
11368
00aafda4 11369cygwin* | mingw* | pw32* | cegcc*)
542f9784 11370 version_type=windows
11371 shrext_cmds=".dll"
11372 need_version=no
11373 need_lib_prefix=no
11374
00aafda4 11375 case $GCC,$host_os in
11376 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 11377 library_names_spec='$libname.dll.a'
11378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11379 postinstall_cmds='base_file=`basename \${file}`~
11380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11381 dldir=$destdir/`dirname \$dlpath`~
11382 test -d \$dldir || mkdir -p \$dldir~
11383 $install_prog $dir/$dlname \$dldir/$dlname~
11384 chmod a+x \$dldir/$dlname~
11385 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11386 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11387 fi'
11388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11389 dlpath=$dir/\$dldll~
11390 $RM \$dlpath'
11391 shlibpath_overrides_runpath=yes
11392
11393 case $host_os in
11394 cygwin*)
11395 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11396 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 11397
11398 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
542f9784 11399 ;;
00aafda4 11400 mingw* | cegcc*)
542f9784 11401 # MinGW DLLs use traditional 'lib' prefix
11402 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 11403 ;;
11404 pw32*)
11405 # pw32 DLLs use 'pw' prefix rather than 'lib'
11406 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11407 ;;
11408 esac
11409 ;;
11410
11411 *)
11412 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11413 ;;
11414 esac
11415 dynamic_linker='Win32 ld.exe'
11416 # FIXME: first we should search . and the directory the executable is in
11417 shlibpath_var=PATH
11418 ;;
11419
11420darwin* | rhapsody*)
11421 dynamic_linker="$host_os dyld"
11422 version_type=darwin
11423 need_lib_prefix=no
11424 need_version=no
11425 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11426 soname_spec='${libname}${release}${major}$shared_ext'
11427 shlibpath_overrides_runpath=yes
11428 shlibpath_var=DYLD_LIBRARY_PATH
11429 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11430
11431 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11432 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11433 ;;
11434
11435dgux*)
11436 version_type=linux
11437 need_lib_prefix=no
11438 need_version=no
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 ;;
11443
542f9784 11444freebsd* | dragonfly*)
11445 # DragonFly does not have aout. When/if they implement a new
11446 # versioning mechanism, adjust this.
11447 if test -x /usr/bin/objformat; then
11448 objformat=`/usr/bin/objformat`
11449 else
11450 case $host_os in
30369aff 11451 freebsd[23].*) objformat=aout ;;
542f9784 11452 *) objformat=elf ;;
11453 esac
11454 fi
11455 version_type=freebsd-$objformat
11456 case $version_type in
11457 freebsd-elf*)
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11459 need_version=no
11460 need_lib_prefix=no
11461 ;;
11462 freebsd-*)
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11464 need_version=yes
11465 ;;
11466 esac
11467 shlibpath_var=LD_LIBRARY_PATH
11468 case $host_os in
30369aff 11469 freebsd2.*)
542f9784 11470 shlibpath_overrides_runpath=yes
11471 ;;
11472 freebsd3.[01]* | freebsdelf3.[01]*)
11473 shlibpath_overrides_runpath=yes
11474 hardcode_into_libs=yes
11475 ;;
11476 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11477 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11478 shlibpath_overrides_runpath=no
11479 hardcode_into_libs=yes
11480 ;;
11481 *) # from 4.6 on, and DragonFly
11482 shlibpath_overrides_runpath=yes
11483 hardcode_into_libs=yes
11484 ;;
11485 esac
11486 ;;
11487
11488gnu*)
11489 version_type=linux
11490 need_lib_prefix=no
11491 need_version=no
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11493 soname_spec='${libname}${release}${shared_ext}$major'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 hardcode_into_libs=yes
11496 ;;
11497
e6408286 11498haiku*)
11499 version_type=linux
11500 need_lib_prefix=no
11501 need_version=no
11502 dynamic_linker="$host_os runtime_loader"
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11504 soname_spec='${libname}${release}${shared_ext}$major'
11505 shlibpath_var=LIBRARY_PATH
11506 shlibpath_overrides_runpath=yes
11507 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11508 hardcode_into_libs=yes
11509 ;;
11510
542f9784 11511hpux9* | hpux10* | hpux11*)
11512 # Give a soname corresponding to the major version so that dld.sl refuses to
11513 # link against other versions.
11514 version_type=sunos
11515 need_lib_prefix=no
11516 need_version=no
11517 case $host_cpu in
11518 ia64*)
11519 shrext_cmds='.so'
11520 hardcode_into_libs=yes
11521 dynamic_linker="$host_os dld.so"
11522 shlibpath_var=LD_LIBRARY_PATH
11523 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 if test "X$HPUX_IA64_MODE" = X32; then
11527 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11528 else
11529 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11530 fi
11531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11532 ;;
11533 hppa*64*)
11534 shrext_cmds='.sl'
11535 hardcode_into_libs=yes
11536 dynamic_linker="$host_os dld.sl"
11537 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11543 ;;
11544 *)
11545 shrext_cmds='.sl'
11546 dynamic_linker="$host_os dld.sl"
11547 shlibpath_var=SHLIB_PATH
11548 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 ;;
11552 esac
e6408286 11553 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 11554 postinstall_cmds='chmod 555 $lib'
e6408286 11555 # or fails outright, so override atomically:
11556 install_override_mode=555
542f9784 11557 ;;
11558
11559interix[3-9]*)
11560 version_type=linux
11561 need_lib_prefix=no
11562 need_version=no
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11566 shlibpath_var=LD_LIBRARY_PATH
11567 shlibpath_overrides_runpath=no
11568 hardcode_into_libs=yes
11569 ;;
11570
11571irix5* | irix6* | nonstopux*)
11572 case $host_os in
11573 nonstopux*) version_type=nonstopux ;;
11574 *)
11575 if test "$lt_cv_prog_gnu_ld" = yes; then
11576 version_type=linux
11577 else
11578 version_type=irix
11579 fi ;;
11580 esac
11581 need_lib_prefix=no
11582 need_version=no
11583 soname_spec='${libname}${release}${shared_ext}$major'
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11585 case $host_os in
11586 irix5* | nonstopux*)
11587 libsuff= shlibsuff=
11588 ;;
11589 *)
11590 case $LD in # libtool.m4 will add one of these switches to LD
11591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11592 libsuff= shlibsuff= libmagic=32-bit;;
11593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11594 libsuff=32 shlibsuff=N32 libmagic=N32;;
11595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11596 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11597 *) libsuff= shlibsuff= libmagic=never-match;;
11598 esac
11599 ;;
11600 esac
11601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11602 shlibpath_overrides_runpath=no
11603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11605 hardcode_into_libs=yes
11606 ;;
11607
11608# No shared lib support for Linux oldld, aout, or coff.
11609linux*oldld* | linux*aout* | linux*coff*)
11610 dynamic_linker=no
11611 ;;
11612
11613# This must be Linux ELF.
9af964d4 11614linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 11615 version_type=linux
11616 need_lib_prefix=no
11617 need_version=no
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 soname_spec='${libname}${release}${shared_ext}$major'
11620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 shlibpath_overrides_runpath=no
9e6fd619 11623
542f9784 11624 # Some binutils ld are patched to set DT_RUNPATH
cd9a469c 11625 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
9e6fd619 11627else
11628 lt_cv_shlibpath_overrides_runpath=no
11629 save_LDFLAGS=$LDFLAGS
11630 save_libdir=$libdir
11631 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11632 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11633 if test x$gcc_no_link = xyes; then
cd9a469c 11634 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 11635fi
cd9a469c 11636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 11637/* end confdefs.h. */
11638
11639int
11640main ()
11641{
11642
11643 ;
11644 return 0;
11645}
11646_ACEOF
cd9a469c 11647if ac_fn_c_try_link "$LINENO"; then :
11648 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 11649 lt_cv_shlibpath_overrides_runpath=yes
542f9784 11650fi
542f9784 11651fi
cd9a469c 11652rm -f core conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
9e6fd619 11654 LDFLAGS=$save_LDFLAGS
11655 libdir=$save_libdir
11656
11657fi
11658
11659 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 11660
11661 # This implies no fast_install, which is unacceptable.
11662 # Some rework will be needed to allow for fast_install
11663 # before this can be enabled.
11664 hardcode_into_libs=yes
11665
11666 # Append ld.so.conf contents to the search path
11667 if test -f /etc/ld.so.conf; then
e6408286 11668 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 11669 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11670 fi
11671
11672 # We used to test for /lib/ld.so.1 and disable shared libraries on
11673 # powerpc, because MkLinux only supported shared libraries with the
11674 # GNU dynamic linker. Since this was broken with cross compilers,
11675 # most powerpc-linux boxes support dynamic linking these days and
11676 # people can always --disable-shared, the test was removed, and we
11677 # assume the GNU/Linux dynamic linker is in use.
11678 dynamic_linker='GNU/Linux ld.so'
11679 ;;
11680
11681netbsd*)
11682 version_type=sunos
11683 need_lib_prefix=no
11684 need_version=no
11685 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11688 dynamic_linker='NetBSD (a.out) ld.so'
11689 else
11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 dynamic_linker='NetBSD ld.elf_so'
11693 fi
11694 shlibpath_var=LD_LIBRARY_PATH
11695 shlibpath_overrides_runpath=yes
11696 hardcode_into_libs=yes
11697 ;;
11698
11699newsos6)
11700 version_type=linux
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=yes
11704 ;;
11705
11706*nto* | *qnx*)
11707 version_type=qnx
11708 need_lib_prefix=no
11709 need_version=no
11710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11711 soname_spec='${libname}${release}${shared_ext}$major'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 shlibpath_overrides_runpath=no
11714 hardcode_into_libs=yes
11715 dynamic_linker='ldqnx.so'
11716 ;;
11717
11718openbsd*)
11719 version_type=sunos
11720 sys_lib_dlsearch_path_spec="/usr/lib"
11721 need_lib_prefix=no
11722 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11723 case $host_os in
11724 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11725 *) need_version=no ;;
11726 esac
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11731 case $host_os in
11732 openbsd2.[89] | openbsd2.[89].*)
11733 shlibpath_overrides_runpath=no
11734 ;;
11735 *)
11736 shlibpath_overrides_runpath=yes
11737 ;;
11738 esac
11739 else
11740 shlibpath_overrides_runpath=yes
11741 fi
11742 ;;
11743
11744os2*)
11745 libname_spec='$name'
11746 shrext_cmds=".dll"
11747 need_lib_prefix=no
11748 library_names_spec='$libname${shared_ext} $libname.a'
11749 dynamic_linker='OS/2 ld.exe'
11750 shlibpath_var=LIBPATH
11751 ;;
11752
11753osf3* | osf4* | osf5*)
11754 version_type=osf
11755 need_lib_prefix=no
11756 need_version=no
11757 soname_spec='${libname}${release}${shared_ext}$major'
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759 shlibpath_var=LD_LIBRARY_PATH
11760 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11761 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11762 ;;
11763
11764rdos*)
11765 dynamic_linker=no
11766 ;;
11767
11768solaris*)
11769 version_type=linux
11770 need_lib_prefix=no
11771 need_version=no
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11773 soname_spec='${libname}${release}${shared_ext}$major'
11774 shlibpath_var=LD_LIBRARY_PATH
11775 shlibpath_overrides_runpath=yes
11776 hardcode_into_libs=yes
11777 # ldd complains unless libraries are executable
11778 postinstall_cmds='chmod +x $lib'
11779 ;;
11780
11781sunos4*)
11782 version_type=sunos
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11784 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 shlibpath_overrides_runpath=yes
11787 if test "$with_gnu_ld" = yes; then
11788 need_lib_prefix=no
11789 fi
11790 need_version=yes
11791 ;;
11792
11793sysv4 | sysv4.3*)
11794 version_type=linux
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 case $host_vendor in
11799 sni)
11800 shlibpath_overrides_runpath=no
11801 need_lib_prefix=no
11802 runpath_var=LD_RUN_PATH
11803 ;;
11804 siemens)
11805 need_lib_prefix=no
11806 ;;
11807 motorola)
11808 need_lib_prefix=no
11809 need_version=no
11810 shlibpath_overrides_runpath=no
11811 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11812 ;;
11813 esac
11814 ;;
11815
11816sysv4*MP*)
11817 if test -d /usr/nec ;then
11818 version_type=linux
11819 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11820 soname_spec='$libname${shared_ext}.$major'
11821 shlibpath_var=LD_LIBRARY_PATH
11822 fi
11823 ;;
11824
11825sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11826 version_type=freebsd-elf
11827 need_lib_prefix=no
11828 need_version=no
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11830 soname_spec='${libname}${release}${shared_ext}$major'
11831 shlibpath_var=LD_LIBRARY_PATH
11832 shlibpath_overrides_runpath=yes
11833 hardcode_into_libs=yes
11834 if test "$with_gnu_ld" = yes; then
11835 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11836 else
11837 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11838 case $host_os in
11839 sco3.2v5*)
11840 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11841 ;;
11842 esac
11843 fi
11844 sys_lib_dlsearch_path_spec='/usr/lib'
11845 ;;
11846
11847tpf*)
11848 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11849 version_type=linux
11850 need_lib_prefix=no
11851 need_version=no
00aafda4 11852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 11853 shlibpath_var=LD_LIBRARY_PATH
11854 shlibpath_overrides_runpath=no
11855 hardcode_into_libs=yes
11856 ;;
11857
11858uts4*)
11859 version_type=linux
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861 soname_spec='${libname}${release}${shared_ext}$major'
11862 shlibpath_var=LD_LIBRARY_PATH
11863 ;;
11864
11865*)
11866 dynamic_linker=no
11867 ;;
11868esac
cd9a469c 11869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11870$as_echo "$dynamic_linker" >&6; }
542f9784 11871test "$dynamic_linker" = no && can_build_shared=no
11872
11873variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11874if test "$GCC" = yes; then
11875 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11876fi
11877
00aafda4 11878if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11879 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11880fi
11881if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11882 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11883fi
11884
542f9784 11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
e6408286 11965
11966
11967
11968
11969
542f9784 11970
11971
11972
11973
11974
11975
cd9a469c 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11977$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
542f9784 11978hardcode_action=
11979if test -n "$hardcode_libdir_flag_spec" ||
11980 test -n "$runpath_var" ||
11981 test "X$hardcode_automatic" = "Xyes" ; then
11982
11983 # We can hardcode non-existent directories.
11984 if test "$hardcode_direct" != no &&
11985 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11986 # have to relink, otherwise we might link with an installed library
11987 # when we should be linking with a yet-to-be-installed one
11988 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11989 test "$hardcode_minus_L" != no; then
11990 # Linking always hardcodes the temporary library directory.
11991 hardcode_action=relink
11992 else
11993 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11994 hardcode_action=immediate
11995 fi
11996else
11997 # We cannot hardcode anything, or else we can only hardcode existing
11998 # directories.
11999 hardcode_action=unsupported
12000fi
cd9a469c 12001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12002$as_echo "$hardcode_action" >&6; }
542f9784 12003
12004if test "$hardcode_action" = relink ||
12005 test "$inherit_rpath" = yes; then
12006 # Fast installation is not supported
12007 enable_fast_install=no
12008elif test "$shlibpath_overrides_runpath" = yes ||
12009 test "$enable_shared" = no; then
12010 # Fast installation is not necessary
12011 enable_fast_install=needless
12012fi
12013
12014
12015
12016
12017
12018
12019 if test "x$enable_dlopen" != xyes; then
12020 enable_dlopen=unknown
12021 enable_dlopen_self=unknown
12022 enable_dlopen_self_static=unknown
12023else
12024 lt_cv_dlopen=no
12025 lt_cv_dlopen_libs=
12026
12027 case $host_os in
12028 beos*)
12029 lt_cv_dlopen="load_add_on"
12030 lt_cv_dlopen_libs=
12031 lt_cv_dlopen_self=yes
12032 ;;
12033
00aafda4 12034 mingw* | pw32* | cegcc*)
542f9784 12035 lt_cv_dlopen="LoadLibrary"
12036 lt_cv_dlopen_libs=
12037 ;;
12038
12039 cygwin*)
12040 lt_cv_dlopen="dlopen"
12041 lt_cv_dlopen_libs=
12042 ;;
12043
12044 darwin*)
12045 # if libdl is installed we need to link against it
cd9a469c 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12047$as_echo_n "checking for dlopen in -ldl... " >&6; }
12048if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
542f9784 12050else
12051 ac_check_lib_save_LIBS=$LIBS
12052LIBS="-ldl $LIBS"
12053if test x$gcc_no_link = xyes; then
cd9a469c 12054 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12055fi
cd9a469c 12056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12057/* end confdefs.h. */
12058
cd9a469c 12059/* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
542f9784 12062#ifdef __cplusplus
12063extern "C"
12064#endif
542f9784 12065char dlopen ();
12066int
12067main ()
12068{
cd9a469c 12069return dlopen ();
542f9784 12070 ;
12071 return 0;
12072}
12073_ACEOF
cd9a469c 12074if ac_fn_c_try_link "$LINENO"; then :
542f9784 12075 ac_cv_lib_dl_dlopen=yes
12076else
cd9a469c 12077 ac_cv_lib_dl_dlopen=no
542f9784 12078fi
cd9a469c 12079rm -f core conftest.err conftest.$ac_objext \
12080 conftest$ac_exeext conftest.$ac_ext
542f9784 12081LIBS=$ac_check_lib_save_LIBS
12082fi
cd9a469c 12083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12084$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12085if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
542f9784 12086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12087else
12088
12089 lt_cv_dlopen="dyld"
12090 lt_cv_dlopen_libs=
12091 lt_cv_dlopen_self=yes
12092
12093fi
12094
12095 ;;
12096
12097 *)
cd9a469c 12098 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12099if test "x$ac_cv_func_shl_load" = x""yes; then :
542f9784 12100 lt_cv_dlopen="shl_load"
12101else
cd9a469c 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12103$as_echo_n "checking for shl_load in -ldld... " >&6; }
12104if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
542f9784 12106else
12107 ac_check_lib_save_LIBS=$LIBS
12108LIBS="-ldld $LIBS"
12109if test x$gcc_no_link = xyes; then
cd9a469c 12110 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12111fi
cd9a469c 12112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12113/* end confdefs.h. */
12114
cd9a469c 12115/* Override any GCC internal prototype to avoid an error.
12116 Use char because int might match the return type of a GCC
12117 builtin and then its argument prototype would still apply. */
542f9784 12118#ifdef __cplusplus
12119extern "C"
12120#endif
542f9784 12121char shl_load ();
12122int
12123main ()
12124{
cd9a469c 12125return shl_load ();
542f9784 12126 ;
12127 return 0;
12128}
12129_ACEOF
cd9a469c 12130if ac_fn_c_try_link "$LINENO"; then :
542f9784 12131 ac_cv_lib_dld_shl_load=yes
12132else
cd9a469c 12133 ac_cv_lib_dld_shl_load=no
542f9784 12134fi
cd9a469c 12135rm -f core conftest.err conftest.$ac_objext \
12136 conftest$ac_exeext conftest.$ac_ext
542f9784 12137LIBS=$ac_check_lib_save_LIBS
12138fi
cd9a469c 12139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12140$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12141if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
00aafda4 12142 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
542f9784 12143else
cd9a469c 12144 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12145if test "x$ac_cv_func_dlopen" = x""yes; then :
542f9784 12146 lt_cv_dlopen="dlopen"
12147else
cd9a469c 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12149$as_echo_n "checking for dlopen in -ldl... " >&6; }
12150if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12151 $as_echo_n "(cached) " >&6
542f9784 12152else
12153 ac_check_lib_save_LIBS=$LIBS
12154LIBS="-ldl $LIBS"
12155if test x$gcc_no_link = xyes; then
cd9a469c 12156 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12157fi
cd9a469c 12158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12159/* end confdefs.h. */
12160
cd9a469c 12161/* Override any GCC internal prototype to avoid an error.
12162 Use char because int might match the return type of a GCC
12163 builtin and then its argument prototype would still apply. */
542f9784 12164#ifdef __cplusplus
12165extern "C"
12166#endif
542f9784 12167char dlopen ();
12168int
12169main ()
12170{
cd9a469c 12171return dlopen ();
542f9784 12172 ;
12173 return 0;
12174}
12175_ACEOF
cd9a469c 12176if ac_fn_c_try_link "$LINENO"; then :
542f9784 12177 ac_cv_lib_dl_dlopen=yes
12178else
cd9a469c 12179 ac_cv_lib_dl_dlopen=no
542f9784 12180fi
cd9a469c 12181rm -f core conftest.err conftest.$ac_objext \
12182 conftest$ac_exeext conftest.$ac_ext
542f9784 12183LIBS=$ac_check_lib_save_LIBS
12184fi
cd9a469c 12185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12186$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12187if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
542f9784 12188 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12189else
cd9a469c 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12191$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12192if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12193 $as_echo_n "(cached) " >&6
542f9784 12194else
12195 ac_check_lib_save_LIBS=$LIBS
12196LIBS="-lsvld $LIBS"
12197if test x$gcc_no_link = xyes; then
cd9a469c 12198 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12199fi
cd9a469c 12200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12201/* end confdefs.h. */
12202
cd9a469c 12203/* Override any GCC internal prototype to avoid an error.
12204 Use char because int might match the return type of a GCC
12205 builtin and then its argument prototype would still apply. */
542f9784 12206#ifdef __cplusplus
12207extern "C"
12208#endif
542f9784 12209char dlopen ();
12210int
12211main ()
12212{
cd9a469c 12213return dlopen ();
542f9784 12214 ;
12215 return 0;
12216}
12217_ACEOF
cd9a469c 12218if ac_fn_c_try_link "$LINENO"; then :
542f9784 12219 ac_cv_lib_svld_dlopen=yes
12220else
cd9a469c 12221 ac_cv_lib_svld_dlopen=no
542f9784 12222fi
cd9a469c 12223rm -f core conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
542f9784 12225LIBS=$ac_check_lib_save_LIBS
12226fi
cd9a469c 12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12228$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12229if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
542f9784 12230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12231else
cd9a469c 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12233$as_echo_n "checking for dld_link in -ldld... " >&6; }
12234if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
542f9784 12236else
12237 ac_check_lib_save_LIBS=$LIBS
12238LIBS="-ldld $LIBS"
12239if test x$gcc_no_link = xyes; then
cd9a469c 12240 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12241fi
cd9a469c 12242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12243/* end confdefs.h. */
12244
cd9a469c 12245/* Override any GCC internal prototype to avoid an error.
12246 Use char because int might match the return type of a GCC
12247 builtin and then its argument prototype would still apply. */
542f9784 12248#ifdef __cplusplus
12249extern "C"
12250#endif
542f9784 12251char dld_link ();
12252int
12253main ()
12254{
cd9a469c 12255return dld_link ();
542f9784 12256 ;
12257 return 0;
12258}
12259_ACEOF
cd9a469c 12260if ac_fn_c_try_link "$LINENO"; then :
542f9784 12261 ac_cv_lib_dld_dld_link=yes
12262else
cd9a469c 12263 ac_cv_lib_dld_dld_link=no
542f9784 12264fi
cd9a469c 12265rm -f core conftest.err conftest.$ac_objext \
12266 conftest$ac_exeext conftest.$ac_ext
542f9784 12267LIBS=$ac_check_lib_save_LIBS
12268fi
cd9a469c 12269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12270$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12271if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
00aafda4 12272 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
542f9784 12273fi
12274
12275
12276fi
12277
12278
12279fi
12280
12281
12282fi
12283
12284
12285fi
12286
12287
12288fi
12289
12290 ;;
12291 esac
12292
12293 if test "x$lt_cv_dlopen" != xno; then
12294 enable_dlopen=yes
12295 else
12296 enable_dlopen=no
12297 fi
12298
12299 case $lt_cv_dlopen in
12300 dlopen)
12301 save_CPPFLAGS="$CPPFLAGS"
12302 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12303
12304 save_LDFLAGS="$LDFLAGS"
12305 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12306
12307 save_LIBS="$LIBS"
12308 LIBS="$lt_cv_dlopen_libs $LIBS"
12309
cd9a469c 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12311$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12312if test "${lt_cv_dlopen_self+set}" = set; then :
12313 $as_echo_n "(cached) " >&6
542f9784 12314else
12315 if test "$cross_compiling" = yes; then :
12316 lt_cv_dlopen_self=cross
12317else
12318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12319 lt_status=$lt_dlunknown
12320 cat > conftest.$ac_ext <<_LT_EOF
a1aa1d30 12321#line 12321 "configure"
542f9784 12322#include "confdefs.h"
12323
12324#if HAVE_DLFCN_H
12325#include <dlfcn.h>
12326#endif
12327
12328#include <stdio.h>
12329
12330#ifdef RTLD_GLOBAL
12331# define LT_DLGLOBAL RTLD_GLOBAL
12332#else
12333# ifdef DL_GLOBAL
12334# define LT_DLGLOBAL DL_GLOBAL
12335# else
12336# define LT_DLGLOBAL 0
12337# endif
12338#endif
12339
12340/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12341 find out it does not work in some platform. */
12342#ifndef LT_DLLAZY_OR_NOW
12343# ifdef RTLD_LAZY
12344# define LT_DLLAZY_OR_NOW RTLD_LAZY
12345# else
12346# ifdef DL_LAZY
12347# define LT_DLLAZY_OR_NOW DL_LAZY
12348# else
12349# ifdef RTLD_NOW
12350# define LT_DLLAZY_OR_NOW RTLD_NOW
12351# else
12352# ifdef DL_NOW
12353# define LT_DLLAZY_OR_NOW DL_NOW
12354# else
12355# define LT_DLLAZY_OR_NOW 0
12356# endif
12357# endif
12358# endif
12359# endif
12360#endif
12361
e6408286 12362/* When -fvisbility=hidden is used, assume the code has been annotated
12363 correspondingly for the symbols needed. */
12364#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12365void fnord () __attribute__((visibility("default")));
12366#endif
12367
12368void fnord () { int i=42; }
542f9784 12369int main ()
12370{
12371 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12372 int status = $lt_dlunknown;
12373
12374 if (self)
12375 {
12376 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 12377 else
12378 {
12379 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12380 else puts (dlerror ());
12381 }
542f9784 12382 /* dlclose (self); */
12383 }
12384 else
12385 puts (dlerror ());
12386
00aafda4 12387 return status;
542f9784 12388}
12389_LT_EOF
cd9a469c 12390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 12391 (eval $ac_link) 2>&5
12392 ac_status=$?
cd9a469c 12393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12394 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 12395 (./conftest; exit; ) >&5 2>/dev/null
12396 lt_status=$?
12397 case x$lt_status in
12398 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12399 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12400 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12401 esac
12402 else :
12403 # compilation failed
12404 lt_cv_dlopen_self=no
12405 fi
12406fi
12407rm -fr conftest*
12408
12409
12410fi
cd9a469c 12411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12412$as_echo "$lt_cv_dlopen_self" >&6; }
542f9784 12413
12414 if test "x$lt_cv_dlopen_self" = xyes; then
12415 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cd9a469c 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12417$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12418if test "${lt_cv_dlopen_self_static+set}" = set; then :
12419 $as_echo_n "(cached) " >&6
542f9784 12420else
12421 if test "$cross_compiling" = yes; then :
12422 lt_cv_dlopen_self_static=cross
12423else
12424 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12425 lt_status=$lt_dlunknown
12426 cat > conftest.$ac_ext <<_LT_EOF
a1aa1d30 12427#line 12427 "configure"
542f9784 12428#include "confdefs.h"
12429
12430#if HAVE_DLFCN_H
12431#include <dlfcn.h>
12432#endif
12433
12434#include <stdio.h>
12435
12436#ifdef RTLD_GLOBAL
12437# define LT_DLGLOBAL RTLD_GLOBAL
12438#else
12439# ifdef DL_GLOBAL
12440# define LT_DLGLOBAL DL_GLOBAL
12441# else
12442# define LT_DLGLOBAL 0
12443# endif
12444#endif
12445
12446/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12447 find out it does not work in some platform. */
12448#ifndef LT_DLLAZY_OR_NOW
12449# ifdef RTLD_LAZY
12450# define LT_DLLAZY_OR_NOW RTLD_LAZY
12451# else
12452# ifdef DL_LAZY
12453# define LT_DLLAZY_OR_NOW DL_LAZY
12454# else
12455# ifdef RTLD_NOW
12456# define LT_DLLAZY_OR_NOW RTLD_NOW
12457# else
12458# ifdef DL_NOW
12459# define LT_DLLAZY_OR_NOW DL_NOW
12460# else
12461# define LT_DLLAZY_OR_NOW 0
12462# endif
12463# endif
12464# endif
12465# endif
12466#endif
12467
e6408286 12468/* When -fvisbility=hidden is used, assume the code has been annotated
12469 correspondingly for the symbols needed. */
12470#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12471void fnord () __attribute__((visibility("default")));
12472#endif
12473
12474void fnord () { int i=42; }
542f9784 12475int main ()
12476{
12477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12478 int status = $lt_dlunknown;
12479
12480 if (self)
12481 {
12482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 12483 else
12484 {
12485 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12486 else puts (dlerror ());
12487 }
542f9784 12488 /* dlclose (self); */
12489 }
12490 else
12491 puts (dlerror ());
12492
00aafda4 12493 return status;
542f9784 12494}
12495_LT_EOF
cd9a469c 12496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 12497 (eval $ac_link) 2>&5
12498 ac_status=$?
cd9a469c 12499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12500 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 12501 (./conftest; exit; ) >&5 2>/dev/null
12502 lt_status=$?
12503 case x$lt_status in
12504 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12505 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12506 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12507 esac
12508 else :
12509 # compilation failed
12510 lt_cv_dlopen_self_static=no
12511 fi
12512fi
12513rm -fr conftest*
12514
12515
12516fi
cd9a469c 12517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12518$as_echo "$lt_cv_dlopen_self_static" >&6; }
542f9784 12519 fi
12520
12521 CPPFLAGS="$save_CPPFLAGS"
12522 LDFLAGS="$save_LDFLAGS"
12523 LIBS="$save_LIBS"
12524 ;;
12525 esac
12526
12527 case $lt_cv_dlopen_self in
12528 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12529 *) enable_dlopen_self=unknown ;;
12530 esac
12531
12532 case $lt_cv_dlopen_self_static in
12533 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12534 *) enable_dlopen_self_static=unknown ;;
12535 esac
12536fi
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554striplib=
12555old_striplib=
cd9a469c 12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12557$as_echo_n "checking whether stripping libraries is possible... " >&6; }
542f9784 12558if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12559 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12560 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cd9a469c 12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12562$as_echo "yes" >&6; }
542f9784 12563else
12564# FIXME - insert some real tests, host_os isn't really good enough
12565 case $host_os in
12566 darwin*)
12567 if test -n "$STRIP" ; then
12568 striplib="$STRIP -x"
12569 old_striplib="$STRIP -S"
cd9a469c 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12571$as_echo "yes" >&6; }
542f9784 12572 else
cd9a469c 12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574$as_echo "no" >&6; }
542f9784 12575 fi
12576 ;;
12577 *)
cd9a469c 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579$as_echo "no" >&6; }
542f9784 12580 ;;
12581 esac
12582fi
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
e6408286 12595 # Report which library types will actually be built
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12597$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12599$as_echo "$can_build_shared" >&6; }
542f9784 12600
e6408286 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12602$as_echo_n "checking whether to build shared libraries... " >&6; }
12603 test "$can_build_shared" = "no" && enable_shared=no
542f9784 12604
e6408286 12605 # On AIX, shared libraries and static libraries use the same namespace, and
12606 # are all built from PIC.
12607 case $host_os in
12608 aix3*)
12609 test "$enable_shared" = yes && enable_static=no
12610 if test -n "$RANLIB"; then
12611 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12612 postinstall_cmds='$RANLIB $lib'
12613 fi
12614 ;;
542f9784 12615
e6408286 12616 aix[4-9]*)
12617 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12618 test "$enable_shared" = yes && enable_static=no
12619 fi
12620 ;;
12621 esac
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12623$as_echo "$enable_shared" >&6; }
542f9784 12624
e6408286 12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12626$as_echo_n "checking whether to build static libraries... " >&6; }
12627 # Make sure either enable_shared or enable_static is yes.
12628 test "$enable_shared" = yes || enable_static=yes
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12630$as_echo "$enable_static" >&6; }
542f9784 12631
542f9784 12632
542f9784 12633
542f9784 12634
12635fi
542f9784 12636ac_ext=c
12637ac_cpp='$CPP $CPPFLAGS'
12638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12640ac_compiler_gnu=$ac_cv_c_compiler_gnu
12641
e6408286 12642CC="$lt_save_CC"
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656 ac_config_commands="$ac_config_commands libtool"
12657
12658
12659
12660
12661# Only expand once:
12662
12663
12664
12665
8c35d268 12666
12667case $host in
12668 *-cygwin* | *-mingw*)
12669 # 'host' will be top-level target in the case of a target lib,
12670 # we must compare to with_cross_host to decide if this is a native
12671 # or cross-compiler and select where to install dlls appropriately.
12672 if test -n "$with_cross_host" &&
12673 test x"$with_cross_host" != x"no"; then
12674 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12675 else
12676 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12677 fi
12678 ;;
12679 *)
12680 lt_host_flags=
12681 ;;
12682esac
12683
12684
12685
12686
12687
e6408286 12688#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
542f9784 12689
e6408286 12690# We need gfortran to compile parts of the library
12691#AC_PROG_FC(gfortran)
12692FC="$GFORTRAN"
cd9a469c 12693ac_ext=${ac_fc_srcext-f}
12694ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12695ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 12696ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12697if test -n "$ac_tool_prefix"; then
e6408286 12698 for ac_prog in gfortran
542f9784 12699 do
12700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12701set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 12702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703$as_echo_n "checking for $ac_word... " >&6; }
12704if test "${ac_cv_prog_FC+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
542f9784 12706else
12707 if test -n "$FC"; then
12708 ac_cv_prog_FC="$FC" # Let the user override the test.
12709else
12710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711for as_dir in $PATH
12712do
12713 IFS=$as_save_IFS
12714 test -z "$as_dir" && as_dir=.
cd9a469c 12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 12717 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
cd9a469c 12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 12719 break 2
12720 fi
12721done
cd9a469c 12722 done
12723IFS=$as_save_IFS
542f9784 12724
12725fi
12726fi
12727FC=$ac_cv_prog_FC
12728if test -n "$FC"; then
cd9a469c 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12730$as_echo "$FC" >&6; }
542f9784 12731else
cd9a469c 12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733$as_echo "no" >&6; }
542f9784 12734fi
12735
cd9a469c 12736
542f9784 12737 test -n "$FC" && break
12738 done
12739fi
12740if test -z "$FC"; then
12741 ac_ct_FC=$FC
e6408286 12742 for ac_prog in gfortran
542f9784 12743do
12744 # Extract the first word of "$ac_prog", so it can be a program name with args.
12745set dummy $ac_prog; ac_word=$2
cd9a469c 12746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747$as_echo_n "checking for $ac_word... " >&6; }
12748if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
542f9784 12750else
12751 if test -n "$ac_ct_FC"; then
12752 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12753else
12754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755for as_dir in $PATH
12756do
12757 IFS=$as_save_IFS
12758 test -z "$as_dir" && as_dir=.
cd9a469c 12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 12761 ac_cv_prog_ac_ct_FC="$ac_prog"
cd9a469c 12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 12763 break 2
12764 fi
12765done
cd9a469c 12766 done
12767IFS=$as_save_IFS
542f9784 12768
12769fi
12770fi
12771ac_ct_FC=$ac_cv_prog_ac_ct_FC
12772if test -n "$ac_ct_FC"; then
cd9a469c 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12774$as_echo "$ac_ct_FC" >&6; }
542f9784 12775else
cd9a469c 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777$as_echo "no" >&6; }
542f9784 12778fi
12779
cd9a469c 12780
542f9784 12781 test -n "$ac_ct_FC" && break
82eaf560 12782done
12783
cd9a469c 12784 if test "x$ac_ct_FC" = x; then
12785 FC=""
12786 else
12787 case $cross_compiling:$ac_tool_warned in
12788yes:)
12789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12791ac_tool_warned=yes ;;
12792esac
12793 FC=$ac_ct_FC
12794 fi
542f9784 12795fi
12796
12797
12798# Provide some information about the compiler.
cd9a469c 12799$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12800set X $ac_compile
12801ac_compiler=$2
12802for ac_option in --version -v -V -qversion; do
12803 { { ac_try="$ac_compiler $ac_option >&5"
12804case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807esac
12808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12809$as_echo "$ac_try_echo"; } >&5
12810 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
542f9784 12811 ac_status=$?
cd9a469c 12812 if test -s conftest.err; then
12813 sed '10a\
12814... rest of stderr output deleted ...
12815 10q' conftest.err >conftest.er1
12816 cat conftest.er1 >&5
12817 rm -f conftest.er1 conftest.err
12818 fi
12819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12820 test $ac_status = 0; }
12821done
542f9784 12822rm -f a.out
12823
12824# If we don't use `.F' as extension, the preprocessor is not run on the
12825# input file. (Note that this only needs to work for GNU compilers.)
12826ac_save_ext=$ac_ext
12827ac_ext=F
cd9a469c 12828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12829$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12830if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12831 $as_echo_n "(cached) " >&6
542f9784 12832else
cd9a469c 12833 cat > conftest.$ac_ext <<_ACEOF
542f9784 12834 program main
12835#ifndef __GNUC__
12836 choke me
12837#endif
12838
12839 end
12840_ACEOF
cd9a469c 12841if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 12842 ac_compiler_gnu=yes
12843else
cd9a469c 12844 ac_compiler_gnu=no
542f9784 12845fi
cd9a469c 12846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 12847ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12848
12849fi
cd9a469c 12850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12851$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
542f9784 12852ac_ext=$ac_save_ext
cd9a469c 12853ac_test_FCFLAGS=${FCFLAGS+set}
12854ac_save_FCFLAGS=$FCFLAGS
542f9784 12855FCFLAGS=
cd9a469c 12856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12857$as_echo_n "checking whether $FC accepts -g... " >&6; }
12858if test "${ac_cv_prog_fc_g+set}" = set; then :
12859 $as_echo_n "(cached) " >&6
542f9784 12860else
12861 FCFLAGS=-g
cd9a469c 12862cat > conftest.$ac_ext <<_ACEOF
542f9784 12863 program main
12864
12865 end
12866_ACEOF
cd9a469c 12867if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 12868 ac_cv_prog_fc_g=yes
12869else
cd9a469c 12870 ac_cv_prog_fc_g=no
542f9784 12871fi
cd9a469c 12872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 12873
12874fi
cd9a469c 12875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12876$as_echo "$ac_cv_prog_fc_g" >&6; }
12877if test "$ac_test_FCFLAGS" = set; then
12878 FCFLAGS=$ac_save_FCFLAGS
542f9784 12879elif test $ac_cv_prog_fc_g = yes; then
12880 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12881 FCFLAGS="-g -O2"
12882 else
12883 FCFLAGS="-g"
12884 fi
12885else
12886 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12887 FCFLAGS="-O2"
12888 else
12889 FCFLAGS=
12890 fi
12891fi
12892
12893ac_ext=c
12894ac_cpp='$CPP $CPPFLAGS'
12895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12897ac_compiler_gnu=$ac_cv_c_compiler_gnu
12898
cd9a469c 12899 ac_ext=${ac_fc_srcext-f}
12900ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12901ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 12902ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12903
12904
e6408286 12905if test -z "$FC" || test "X$FC" = "Xno"; then
12906 _lt_disable_FC=yes
12907fi
12908
542f9784 12909archive_cmds_need_lc_FC=no
12910allow_undefined_flag_FC=
12911always_export_symbols_FC=no
12912archive_expsym_cmds_FC=
12913export_dynamic_flag_spec_FC=
12914hardcode_direct_FC=no
12915hardcode_direct_absolute_FC=no
12916hardcode_libdir_flag_spec_FC=
12917hardcode_libdir_flag_spec_ld_FC=
12918hardcode_libdir_separator_FC=
12919hardcode_minus_L_FC=no
12920hardcode_automatic_FC=no
12921inherit_rpath_FC=no
12922module_cmds_FC=
12923module_expsym_cmds_FC=
12924link_all_deplibs_FC=unknown
12925old_archive_cmds_FC=$old_archive_cmds
e6408286 12926reload_flag_FC=$reload_flag
12927reload_cmds_FC=$reload_cmds
542f9784 12928no_undefined_flag_FC=
12929whole_archive_flag_spec_FC=
12930enable_shared_with_static_runtimes_FC=no
12931
12932# Source file extension for fc test sources.
12933ac_ext=${ac_fc_srcext-f}
12934
12935# Object file extension for compiled fc test sources.
12936objext=o
12937objext_FC=$objext
12938
12939# No sense in running all these tests if we already determined that
12940# the FC compiler isn't working. Some variables (like enable_shared)
12941# are currently assumed to apply to all compilers on this platform,
12942# and will be corrupted by setting them based on a non-working compiler.
12943if test "$_lt_disable_FC" != yes; then
12944 # Code to be used in simple compile tests
12945 lt_simple_compile_test_code="\
12946 subroutine t
12947 return
12948 end
12949"
12950
12951 # Code to be used in simple link tests
12952 lt_simple_link_test_code="\
12953 program t
12954 end
12955"
12956
12957 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12958
12959
12960
12961
12962
12963
12964# If no C compiler was specified, use CC.
12965LTCC=${LTCC-"$CC"}
12966
12967# If no C compiler flags were specified, use CFLAGS.
12968LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12969
12970# Allow CC to be a program name with arguments.
12971compiler=$CC
12972
12973
12974 # save warnings/boilerplate of simple test code
12975 ac_outfile=conftest.$ac_objext
12976echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12977eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12978_lt_compiler_boilerplate=`cat conftest.err`
12979$RM conftest*
12980
12981 ac_outfile=conftest.$ac_objext
12982echo "$lt_simple_link_test_code" >conftest.$ac_ext
12983eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12984_lt_linker_boilerplate=`cat conftest.err`
00aafda4 12985$RM -r conftest*
542f9784 12986
12987
12988 # Allow CC to be a program name with arguments.
12989 lt_save_CC="$CC"
00aafda4 12990 lt_save_GCC=$GCC
542f9784 12991 CC=${FC-"f95"}
12992 compiler=$CC
00aafda4 12993 GCC=$ac_cv_fc_compiler_gnu
12994
542f9784 12995 compiler_FC=$CC
12996 for cc_temp in $compiler""; do
12997 case $cc_temp in
12998 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12999 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13000 \-*) ;;
13001 *) break;;
13002 esac
13003done
e6408286 13004cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 13005
13006
13007 if test -n "$compiler"; then
cd9a469c 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13009$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13011$as_echo "$can_build_shared" >&6; }
542f9784 13012
cd9a469c 13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13014$as_echo_n "checking whether to build shared libraries... " >&6; }
542f9784 13015 test "$can_build_shared" = "no" && enable_shared=no
13016
13017 # On AIX, shared libraries and static libraries use the same namespace, and
13018 # are all built from PIC.
13019 case $host_os in
13020 aix3*)
13021 test "$enable_shared" = yes && enable_static=no
13022 if test -n "$RANLIB"; then
13023 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13024 postinstall_cmds='$RANLIB $lib'
13025 fi
13026 ;;
21e07d2f 13027 aix[4-9]*)
542f9784 13028 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13029 test "$enable_shared" = yes && enable_static=no
13030 fi
13031 ;;
13032 esac
cd9a469c 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13034$as_echo "$enable_shared" >&6; }
542f9784 13035
cd9a469c 13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13037$as_echo_n "checking whether to build static libraries... " >&6; }
542f9784 13038 # Make sure either enable_shared or enable_static is yes.
13039 test "$enable_shared" = yes || enable_static=yes
cd9a469c 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13041$as_echo "$enable_static" >&6; }
542f9784 13042
13043 GCC_FC="$ac_cv_fc_compiler_gnu"
13044 LD_FC="$LD"
13045
13046 ## CAVEAT EMPTOR:
13047 ## There is no encapsulation within the following macros, do not change
13048 ## the running order or otherwise move them around unless you know exactly
13049 ## what you are doing...
13050 # Dependencies to place before and after the object being linked:
13051predep_objects_FC=
13052postdep_objects_FC=
13053predeps_FC=
13054postdeps_FC=
13055compiler_lib_search_path_FC=
13056
13057cat > conftest.$ac_ext <<_LT_EOF
13058 subroutine foo
13059 implicit none
13060 integer a
13061 a=0
13062 return
13063 end
13064_LT_EOF
13065
cd9a469c 13066if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 13067 (eval $ac_compile) 2>&5
13068 ac_status=$?
cd9a469c 13069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13070 test $ac_status = 0; }; then
542f9784 13071 # Parse the compiler output and extract the necessary
13072 # objects, libraries and library flags.
13073
13074 # Sentinel used to keep track of whether or not we are before
13075 # the conftest object file.
13076 pre_test_object_deps_done=no
13077
00aafda4 13078 for p in `eval "$output_verbose_link_cmd"`; do
542f9784 13079 case $p in
13080
13081 -L* | -R* | -l*)
13082 # Some compilers place space between "-{L,R}" and the path.
13083 # Remove the space.
13084 if test $p = "-L" ||
13085 test $p = "-R"; then
13086 prev=$p
13087 continue
13088 else
13089 prev=
13090 fi
13091
13092 if test "$pre_test_object_deps_done" = no; then
13093 case $p in
13094 -L* | -R*)
13095 # Internal compiler library paths should come after those
13096 # provided the user. The postdeps already come after the
13097 # user supplied libs so there is no need to process them.
13098 if test -z "$compiler_lib_search_path_FC"; then
13099 compiler_lib_search_path_FC="${prev}${p}"
13100 else
13101 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13102 fi
13103 ;;
13104 # The "-l" case would never come before the object being
13105 # linked, so don't bother handling this case.
13106 esac
13107 else
13108 if test -z "$postdeps_FC"; then
13109 postdeps_FC="${prev}${p}"
13110 else
13111 postdeps_FC="${postdeps_FC} ${prev}${p}"
13112 fi
13113 fi
13114 ;;
13115
13116 *.$objext)
13117 # This assumes that the test object file only shows up
13118 # once in the compiler output.
13119 if test "$p" = "conftest.$objext"; then
13120 pre_test_object_deps_done=yes
13121 continue
13122 fi
13123
13124 if test "$pre_test_object_deps_done" = no; then
13125 if test -z "$predep_objects_FC"; then
13126 predep_objects_FC="$p"
13127 else
13128 predep_objects_FC="$predep_objects_FC $p"
13129 fi
13130 else
13131 if test -z "$postdep_objects_FC"; then
13132 postdep_objects_FC="$p"
13133 else
13134 postdep_objects_FC="$postdep_objects_FC $p"
13135 fi
13136 fi
13137 ;;
13138
13139 *) ;; # Ignore the rest.
13140
13141 esac
13142 done
13143
13144 # Clean up.
13145 rm -f a.out a.exe
13146else
13147 echo "libtool.m4: error: problem compiling FC test program"
13148fi
13149
13150$RM -f confest.$objext
13151
13152# PORTME: override above test on systems where it is broken
13153
13154
13155case " $postdeps_FC " in
13156*" -lc "*) archive_cmds_need_lc_FC=no ;;
13157esac
00aafda4 13158 compiler_lib_search_dirs_FC=
13159if test -n "${compiler_lib_search_path_FC}"; then
13160 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13161fi
13162
13163
13164
13165
13166
542f9784 13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193 lt_prog_compiler_wl_FC=
13194lt_prog_compiler_pic_FC=
13195lt_prog_compiler_static_FC=
13196
cd9a469c 13197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13198$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
542f9784 13199
13200 if test "$GCC" = yes; then
13201 lt_prog_compiler_wl_FC='-Wl,'
13202 lt_prog_compiler_static_FC='-static'
13203
13204 case $host_os in
13205 aix*)
13206 # All AIX code is PIC.
13207 if test "$host_cpu" = ia64; then
13208 # AIX 5 now supports IA64 processor
13209 lt_prog_compiler_static_FC='-Bstatic'
13210 fi
13211 ;;
13212
13213 amigaos*)
00aafda4 13214 case $host_cpu in
13215 powerpc)
13216 # see comment about AmigaOS4 .so support
13217 lt_prog_compiler_pic_FC='-fPIC'
13218 ;;
13219 m68k)
13220 # FIXME: we need at least 68020 code to build shared libraries, but
13221 # adding the `-m68020' flag to GCC prevents building anything better,
13222 # like `-m68040'.
13223 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13224 ;;
13225 esac
542f9784 13226 ;;
13227
13228 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13229 # PIC is the default for these OSes.
13230 ;;
13231
00aafda4 13232 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 13233 # This hack is so that the source file can tell whether it is being
13234 # built for inclusion in a dll (and should export symbols for example).
13235 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13236 # (--disable-auto-import) libraries
13237 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13238 ;;
13239
13240 darwin* | rhapsody*)
13241 # PIC is the default on this platform
13242 # Common symbols not allowed in MH_DYLIB files
13243 lt_prog_compiler_pic_FC='-fno-common'
13244 ;;
13245
e6408286 13246 haiku*)
13247 # PIC is the default for Haiku.
13248 # The "-static" flag exists, but is broken.
13249 lt_prog_compiler_static_FC=
13250 ;;
13251
542f9784 13252 hpux*)
00aafda4 13253 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13254 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13255 # sets the default TLS model and affects inlining.
542f9784 13256 case $host_cpu in
00aafda4 13257 hppa*64*)
542f9784 13258 # +Z the default
13259 ;;
13260 *)
13261 lt_prog_compiler_pic_FC='-fPIC'
13262 ;;
13263 esac
13264 ;;
13265
13266 interix[3-9]*)
13267 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13268 # Instead, we relocate shared libraries at runtime.
13269 ;;
13270
13271 msdosdjgpp*)
13272 # Just because we use GCC doesn't mean we suddenly get shared libraries
13273 # on systems that don't support them.
13274 lt_prog_compiler_can_build_shared_FC=no
13275 enable_shared=no
13276 ;;
13277
13278 *nto* | *qnx*)
13279 # QNX uses GNU C++, but need to define -shared option too, otherwise
13280 # it will coredump.
13281 lt_prog_compiler_pic_FC='-fPIC -shared'
13282 ;;
13283
13284 sysv4*MP*)
13285 if test -d /usr/nec; then
13286 lt_prog_compiler_pic_FC=-Kconform_pic
13287 fi
13288 ;;
13289
13290 *)
13291 lt_prog_compiler_pic_FC='-fPIC'
13292 ;;
13293 esac
e6408286 13294
13295 case $cc_basename in
13296 nvcc*) # Cuda Compiler Driver 2.2
13297 lt_prog_compiler_wl_FC='-Xlinker '
13298 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13299 ;;
13300 esac
542f9784 13301 else
13302 # PORTME Check for flag to pass linker flags through the system compiler.
13303 case $host_os in
13304 aix*)
13305 lt_prog_compiler_wl_FC='-Wl,'
13306 if test "$host_cpu" = ia64; then
13307 # AIX 5 now supports IA64 processor
13308 lt_prog_compiler_static_FC='-Bstatic'
13309 else
13310 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13311 fi
13312 ;;
542f9784 13313
00aafda4 13314 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 13315 # This hack is so that the source file can tell whether it is being
13316 # built for inclusion in a dll (and should export symbols for example).
13317 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13318 ;;
13319
13320 hpux9* | hpux10* | hpux11*)
13321 lt_prog_compiler_wl_FC='-Wl,'
13322 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13323 # not for PA HP-UX.
13324 case $host_cpu in
13325 hppa*64*|ia64*)
13326 # +Z the default
13327 ;;
13328 *)
13329 lt_prog_compiler_pic_FC='+Z'
13330 ;;
13331 esac
13332 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13333 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13334 ;;
13335
13336 irix5* | irix6* | nonstopux*)
13337 lt_prog_compiler_wl_FC='-Wl,'
13338 # PIC (with -KPIC) is the default.
13339 lt_prog_compiler_static_FC='-non_shared'
13340 ;;
13341
9af964d4 13342 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 13343 case $cc_basename in
00aafda4 13344 # old Intel for x86_64 which still supported -KPIC.
13345 ecc*)
542f9784 13346 lt_prog_compiler_wl_FC='-Wl,'
13347 lt_prog_compiler_pic_FC='-KPIC'
13348 lt_prog_compiler_static_FC='-static'
13349 ;;
00aafda4 13350 # icc used to be incompatible with GCC.
13351 # ICC 10 doesn't accept -KPIC any more.
13352 icc* | ifort*)
13353 lt_prog_compiler_wl_FC='-Wl,'
13354 lt_prog_compiler_pic_FC='-fPIC'
13355 lt_prog_compiler_static_FC='-static'
13356 ;;
13357 # Lahey Fortran 8.1.
13358 lf95*)
13359 lt_prog_compiler_wl_FC='-Wl,'
13360 lt_prog_compiler_pic_FC='--shared'
13361 lt_prog_compiler_static_FC='--static'
13362 ;;
e6408286 13363 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 13364 # Portland Group compilers (*not* the Pentium gcc compiler,
13365 # which looks to be a dead project)
13366 lt_prog_compiler_wl_FC='-Wl,'
13367 lt_prog_compiler_pic_FC='-fpic'
13368 lt_prog_compiler_static_FC='-Bstatic'
13369 ;;
13370 ccc*)
13371 lt_prog_compiler_wl_FC='-Wl,'
13372 # All Alpha code is PIC.
13373 lt_prog_compiler_static_FC='-non_shared'
13374 ;;
e6408286 13375 xl* | bgxl* | bgf* | mpixl*)
13376 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
00aafda4 13377 lt_prog_compiler_wl_FC='-Wl,'
13378 lt_prog_compiler_pic_FC='-qpic'
13379 lt_prog_compiler_static_FC='-qstaticlink'
13380 ;;
542f9784 13381 *)
13382 case `$CC -V 2>&1 | sed 5q` in
e6408286 13383 *Sun\ F* | *Sun*Fortran*)
13384 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 13385 lt_prog_compiler_pic_FC='-KPIC'
13386 lt_prog_compiler_static_FC='-Bstatic'
e6408286 13387 lt_prog_compiler_wl_FC=''
542f9784 13388 ;;
e6408286 13389 *Sun\ C*)
13390 # Sun C 5.9
542f9784 13391 lt_prog_compiler_pic_FC='-KPIC'
13392 lt_prog_compiler_static_FC='-Bstatic'
e6408286 13393 lt_prog_compiler_wl_FC='-Wl,'
542f9784 13394 ;;
13395 esac
13396 ;;
13397 esac
13398 ;;
13399
13400 newsos6)
13401 lt_prog_compiler_pic_FC='-KPIC'
13402 lt_prog_compiler_static_FC='-Bstatic'
13403 ;;
13404
13405 *nto* | *qnx*)
13406 # QNX uses GNU C++, but need to define -shared option too, otherwise
13407 # it will coredump.
13408 lt_prog_compiler_pic_FC='-fPIC -shared'
13409 ;;
13410
13411 osf3* | osf4* | osf5*)
13412 lt_prog_compiler_wl_FC='-Wl,'
13413 # All OSF/1 code is PIC.
13414 lt_prog_compiler_static_FC='-non_shared'
13415 ;;
13416
13417 rdos*)
13418 lt_prog_compiler_static_FC='-non_shared'
13419 ;;
13420
13421 solaris*)
13422 lt_prog_compiler_pic_FC='-KPIC'
13423 lt_prog_compiler_static_FC='-Bstatic'
13424 case $cc_basename in
13425 f77* | f90* | f95*)
13426 lt_prog_compiler_wl_FC='-Qoption ld ';;
13427 *)
13428 lt_prog_compiler_wl_FC='-Wl,';;
13429 esac
13430 ;;
13431
13432 sunos4*)
13433 lt_prog_compiler_wl_FC='-Qoption ld '
13434 lt_prog_compiler_pic_FC='-PIC'
13435 lt_prog_compiler_static_FC='-Bstatic'
13436 ;;
13437
13438 sysv4 | sysv4.2uw2* | sysv4.3*)
13439 lt_prog_compiler_wl_FC='-Wl,'
13440 lt_prog_compiler_pic_FC='-KPIC'
13441 lt_prog_compiler_static_FC='-Bstatic'
13442 ;;
13443
13444 sysv4*MP*)
13445 if test -d /usr/nec ;then
13446 lt_prog_compiler_pic_FC='-Kconform_pic'
13447 lt_prog_compiler_static_FC='-Bstatic'
13448 fi
13449 ;;
13450
13451 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13452 lt_prog_compiler_wl_FC='-Wl,'
13453 lt_prog_compiler_pic_FC='-KPIC'
13454 lt_prog_compiler_static_FC='-Bstatic'
13455 ;;
13456
13457 unicos*)
13458 lt_prog_compiler_wl_FC='-Wl,'
13459 lt_prog_compiler_can_build_shared_FC=no
13460 ;;
13461
13462 uts4*)
13463 lt_prog_compiler_pic_FC='-pic'
13464 lt_prog_compiler_static_FC='-Bstatic'
13465 ;;
13466
13467 *)
13468 lt_prog_compiler_can_build_shared_FC=no
13469 ;;
13470 esac
13471 fi
13472
13473case $host_os in
13474 # For platforms which do not support PIC, -DPIC is meaningless:
13475 *djgpp*)
13476 lt_prog_compiler_pic_FC=
13477 ;;
13478 *)
13479 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13480 ;;
13481esac
cd9a469c 13482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13483$as_echo "$lt_prog_compiler_pic_FC" >&6; }
542f9784 13484
13485
13486
13487#
13488# Check to make sure the PIC flag actually works.
13489#
13490if test -n "$lt_prog_compiler_pic_FC"; then
cd9a469c 13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13492$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13493if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13494 $as_echo_n "(cached) " >&6
542f9784 13495else
00aafda4 13496 lt_cv_prog_compiler_pic_works_FC=no
542f9784 13497 ac_outfile=conftest.$ac_objext
13498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13499 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13500 # Insert the option either (1) after the last *FLAGS variable, or
13501 # (2) before a word containing "conftest.", or (3) at the end.
13502 # Note that $ac_compile itself does not contain backslashes and begins
13503 # with a dollar sign (not a hyphen), so the echo should work correctly.
13504 # The option is referenced via a variable to avoid confusing sed.
13505 lt_compile=`echo "$ac_compile" | $SED \
13506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13508 -e 's:$: $lt_compiler_flag:'`
e6408286 13509 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 13510 (eval "$lt_compile" 2>conftest.err)
13511 ac_status=$?
13512 cat conftest.err >&5
e6408286 13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 13514 if (exit $ac_status) && test -s "$ac_outfile"; then
13515 # The compiler can only warn and ignore the option if not recognized
13516 # So say no if there are warnings other than the usual output.
e6408286 13517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 13518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13519 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 13520 lt_cv_prog_compiler_pic_works_FC=yes
542f9784 13521 fi
13522 fi
13523 $RM conftest*
13524
13525fi
cd9a469c 13526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13527$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
542f9784 13528
00aafda4 13529if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
542f9784 13530 case $lt_prog_compiler_pic_FC in
13531 "" | " "*) ;;
13532 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13533 esac
13534else
13535 lt_prog_compiler_pic_FC=
13536 lt_prog_compiler_can_build_shared_FC=no
13537fi
13538
13539fi
13540
13541
13542
13543#
13544# Check to make sure the static flag actually works.
13545#
13546wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
cd9a469c 13547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13548$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13549if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13550 $as_echo_n "(cached) " >&6
542f9784 13551else
00aafda4 13552 lt_cv_prog_compiler_static_works_FC=no
542f9784 13553 save_LDFLAGS="$LDFLAGS"
13554 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13555 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13557 # The linker can only warn and ignore the option if not recognized
13558 # So say no if there are warnings
13559 if test -s conftest.err; then
13560 # Append any errors to the config.log.
13561 cat conftest.err 1>&5
e6408286 13562 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 13563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13564 if diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 13565 lt_cv_prog_compiler_static_works_FC=yes
542f9784 13566 fi
13567 else
00aafda4 13568 lt_cv_prog_compiler_static_works_FC=yes
542f9784 13569 fi
13570 fi
00aafda4 13571 $RM -r conftest*
542f9784 13572 LDFLAGS="$save_LDFLAGS"
13573
13574fi
cd9a469c 13575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13576$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
542f9784 13577
00aafda4 13578if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
542f9784 13579 :
13580else
13581 lt_prog_compiler_static_FC=
13582fi
13583
13584
13585
13586
cd9a469c 13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13588$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13589if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13590 $as_echo_n "(cached) " >&6
542f9784 13591else
13592 lt_cv_prog_compiler_c_o_FC=no
13593 $RM -r conftest 2>/dev/null
13594 mkdir conftest
13595 cd conftest
13596 mkdir out
13597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13598
13599 lt_compiler_flag="-o out/conftest2.$ac_objext"
13600 # Insert the option either (1) after the last *FLAGS variable, or
13601 # (2) before a word containing "conftest.", or (3) at the end.
13602 # Note that $ac_compile itself does not contain backslashes and begins
13603 # with a dollar sign (not a hyphen), so the echo should work correctly.
13604 lt_compile=`echo "$ac_compile" | $SED \
13605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13607 -e 's:$: $lt_compiler_flag:'`
e6408286 13608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 13609 (eval "$lt_compile" 2>out/conftest.err)
13610 ac_status=$?
13611 cat out/conftest.err >&5
e6408286 13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 13613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13614 then
13615 # The compiler can only warn and ignore the option if not recognized
13616 # So say no if there are warnings
e6408286 13617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 13618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13620 lt_cv_prog_compiler_c_o_FC=yes
13621 fi
13622 fi
13623 chmod u+w . 2>&5
13624 $RM conftest*
13625 # SGI C++ compiler will create directory out/ii_files/ for
13626 # template instantiation
13627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13628 $RM out/* && rmdir out
13629 cd ..
13630 $RM -r conftest
13631 $RM conftest*
13632
13633fi
cd9a469c 13634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13635$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
542f9784 13636
13637
13638
cd9a469c 13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13640$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13641if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13642 $as_echo_n "(cached) " >&6
542f9784 13643else
13644 lt_cv_prog_compiler_c_o_FC=no
13645 $RM -r conftest 2>/dev/null
13646 mkdir conftest
13647 cd conftest
13648 mkdir out
13649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13650
13651 lt_compiler_flag="-o out/conftest2.$ac_objext"
13652 # Insert the option either (1) after the last *FLAGS variable, or
13653 # (2) before a word containing "conftest.", or (3) at the end.
13654 # Note that $ac_compile itself does not contain backslashes and begins
13655 # with a dollar sign (not a hyphen), so the echo should work correctly.
13656 lt_compile=`echo "$ac_compile" | $SED \
13657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13659 -e 's:$: $lt_compiler_flag:'`
e6408286 13660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 13661 (eval "$lt_compile" 2>out/conftest.err)
13662 ac_status=$?
13663 cat out/conftest.err >&5
e6408286 13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 13665 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13666 then
13667 # The compiler can only warn and ignore the option if not recognized
13668 # So say no if there are warnings
e6408286 13669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 13670 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13671 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13672 lt_cv_prog_compiler_c_o_FC=yes
13673 fi
13674 fi
13675 chmod u+w . 2>&5
13676 $RM conftest*
13677 # SGI C++ compiler will create directory out/ii_files/ for
13678 # template instantiation
13679 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13680 $RM out/* && rmdir out
13681 cd ..
13682 $RM -r conftest
13683 $RM conftest*
13684
13685fi
cd9a469c 13686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13687$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
542f9784 13688
13689
13690
13691
13692hard_links="nottested"
13693if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13694 # do not overwrite the value of need_locks provided by the user
cd9a469c 13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13696$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 13697 hard_links=yes
13698 $RM conftest*
13699 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13700 touch conftest.a
13701 ln conftest.a conftest.b 2>&5 || hard_links=no
13702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13704$as_echo "$hard_links" >&6; }
542f9784 13705 if test "$hard_links" = no; then
cd9a469c 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13707$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 13708 need_locks=warn
13709 fi
13710else
13711 need_locks=no
13712fi
13713
13714
13715
cd9a469c 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13717$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 13718
13719 runpath_var=
13720 allow_undefined_flag_FC=
13721 always_export_symbols_FC=no
13722 archive_cmds_FC=
13723 archive_expsym_cmds_FC=
13724 compiler_needs_object_FC=no
13725 enable_shared_with_static_runtimes_FC=no
13726 export_dynamic_flag_spec_FC=
13727 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13728 hardcode_automatic_FC=no
13729 hardcode_direct_FC=no
13730 hardcode_direct_absolute_FC=no
13731 hardcode_libdir_flag_spec_FC=
13732 hardcode_libdir_flag_spec_ld_FC=
13733 hardcode_libdir_separator_FC=
13734 hardcode_minus_L_FC=no
13735 hardcode_shlibpath_var_FC=unsupported
13736 inherit_rpath_FC=no
13737 link_all_deplibs_FC=unknown
13738 module_cmds_FC=
13739 module_expsym_cmds_FC=
13740 old_archive_from_new_cmds_FC=
13741 old_archive_from_expsyms_cmds_FC=
13742 thread_safe_flag_spec_FC=
13743 whole_archive_flag_spec_FC=
13744 # include_expsyms should be a list of space-separated symbols to be *always*
13745 # included in the symbol list
13746 include_expsyms_FC=
13747 # exclude_expsyms can be an extended regexp of symbols to exclude
13748 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13749 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13750 # as well as any symbol that contains `d'.
00aafda4 13751 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 13752 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13753 # platforms (ab)use it in PIC code, but their linkers get confused if
13754 # the symbol is explicitly referenced. Since portable code cannot
13755 # rely on this symbol name, it's probably fine to never include it in
13756 # preloaded symbol tables.
00aafda4 13757 # Exclude shared library initialization/finalization symbols.
542f9784 13758 extract_expsyms_cmds=
13759
13760 case $host_os in
00aafda4 13761 cygwin* | mingw* | pw32* | cegcc*)
542f9784 13762 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13763 # When not using gcc, we currently assume that we are using
13764 # Microsoft Visual C++.
13765 if test "$GCC" != yes; then
13766 with_gnu_ld=no
13767 fi
13768 ;;
13769 interix*)
13770 # we just hope/assume this is gcc and not c89 (= MSVC++)
13771 with_gnu_ld=yes
13772 ;;
13773 openbsd*)
13774 with_gnu_ld=no
13775 ;;
13776 esac
13777
13778 ld_shlibs_FC=yes
e6408286 13779
13780 # On some targets, GNU ld is compatible enough with the native linker
13781 # that we're better off using the native interface for both.
13782 lt_use_gnu_ld_interface=no
542f9784 13783 if test "$with_gnu_ld" = yes; then
e6408286 13784 case $host_os in
13785 aix*)
13786 # The AIX port of GNU ld has always aspired to compatibility
13787 # with the native linker. However, as the warning in the GNU ld
13788 # block says, versions before 2.19.5* couldn't really create working
13789 # shared libraries, regardless of the interface used.
13790 case `$LD -v 2>&1` in
13791 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13792 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13793 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13794 *)
13795 lt_use_gnu_ld_interface=yes
13796 ;;
13797 esac
13798 ;;
13799 *)
13800 lt_use_gnu_ld_interface=yes
13801 ;;
13802 esac
13803 fi
13804
13805 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 13806 # If archive_cmds runs LD, not CC, wlarc should be empty
13807 wlarc='${wl}'
13808
13809 # Set some defaults for GNU ld with shared library support. These
13810 # are reset later if shared libraries are not supported. Putting them
13811 # here allows them to be overridden if necessary.
13812 runpath_var=LD_RUN_PATH
13813 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13814 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13815 # ancient GNU ld didn't support --whole-archive et. al.
13816 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13817 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13818 else
13819 whole_archive_flag_spec_FC=
13820 fi
13821 supports_anon_versioning=no
13822 case `$LD -v 2>&1` in
e6408286 13823 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 13824 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13825 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13826 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13827 *\ 2.11.*) ;; # other 2.11 versions
13828 *) supports_anon_versioning=yes ;;
13829 esac
13830
13831 # See if GNU ld supports shared libraries.
13832 case $host_os in
21e07d2f 13833 aix[3-9]*)
542f9784 13834 # On AIX/PPC, the GNU linker is very broken
13835 if test "$host_cpu" != ia64; then
13836 ld_shlibs_FC=no
13837 cat <<_LT_EOF 1>&2
13838
e6408286 13839*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 13840*** to be unable to reliably create shared libraries on AIX.
13841*** Therefore, libtool is disabling shared libraries support. If you
e6408286 13842*** really care for shared libraries, you may want to install binutils
13843*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13844*** You will then need to restart the configuration process.
542f9784 13845
13846_LT_EOF
13847 fi
13848 ;;
13849
13850 amigaos*)
00aafda4 13851 case $host_cpu in
13852 powerpc)
13853 # see comment about AmigaOS4 .so support
13854 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13855 archive_expsym_cmds_FC=''
13856 ;;
13857 m68k)
13858 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)'
13859 hardcode_libdir_flag_spec_FC='-L$libdir'
13860 hardcode_minus_L_FC=yes
13861 ;;
13862 esac
542f9784 13863 ;;
13864
13865 beos*)
13866 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13867 allow_undefined_flag_FC=unsupported
13868 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13869 # support --undefined. This deserves some investigation. FIXME
13870 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13871 else
13872 ld_shlibs_FC=no
13873 fi
13874 ;;
13875
00aafda4 13876 cygwin* | mingw* | pw32* | cegcc*)
542f9784 13877 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13878 # as there is no search path for DLLs.
13879 hardcode_libdir_flag_spec_FC='-L$libdir'
e6408286 13880 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
542f9784 13881 allow_undefined_flag_FC=unsupported
13882 always_export_symbols_FC=no
13883 enable_shared_with_static_runtimes_FC=yes
13884 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13885
13886 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13887 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13888 # If the export-symbols file already is a .def file (1st line
13889 # is EXPORTS), use it as is; otherwise, prepend...
13890 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13891 cp $export_symbols $output_objdir/$soname.def;
13892 else
13893 echo EXPORTS > $output_objdir/$soname.def;
13894 cat $export_symbols >> $output_objdir/$soname.def;
13895 fi~
13896 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13897 else
13898 ld_shlibs_FC=no
13899 fi
13900 ;;
13901
e6408286 13902 haiku*)
13903 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13904 link_all_deplibs_FC=yes
13905 ;;
13906
542f9784 13907 interix[3-9]*)
13908 hardcode_direct_FC=no
13909 hardcode_shlibpath_var_FC=no
13910 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13911 export_dynamic_flag_spec_FC='${wl}-E'
13912 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13913 # Instead, shared libraries are loaded at an image base (0x10000000 by
13914 # default) and relocated if they conflict, which is a slow very memory
13915 # consuming and fragmenting process. To avoid this, we pick a random,
13916 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13917 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13918 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'
13919 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'
13920 ;;
13921
9af964d4 13922 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 13923 tmp_diet=no
13924 if test "$host_os" = linux-dietlibc; then
13925 case $cc_basename in
13926 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13927 esac
13928 fi
13929 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13930 && test "$tmp_diet" = no
13931 then
13932 tmp_addflag=
00aafda4 13933 tmp_sharedflag='-shared'
542f9784 13934 case $cc_basename,$host_cpu in
13935 pgcc*) # Portland Group C compiler
e6408286 13936 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 13937 tmp_addflag=' $pic_flag'
13938 ;;
e6408286 13939 pgf77* | pgf90* | pgf95* | pgfortran*)
13940 # Portland Group f77 and f90 compilers
13941 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 13942 tmp_addflag=' $pic_flag -Mnomain' ;;
13943 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13944 tmp_addflag=' -i_dynamic' ;;
13945 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13946 tmp_addflag=' -i_dynamic -nofor_main' ;;
13947 ifc* | ifort*) # Intel Fortran compiler
13948 tmp_addflag=' -nofor_main' ;;
00aafda4 13949 lf95*) # Lahey Fortran 8.1
13950 whole_archive_flag_spec_FC=
13951 tmp_sharedflag='--shared' ;;
e6408286 13952 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
00aafda4 13953 tmp_sharedflag='-qmkshrobj'
13954 tmp_addflag= ;;
e6408286 13955 nvcc*) # Cuda Compiler Driver 2.2
13956 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'
13957 compiler_needs_object_FC=yes
13958 ;;
542f9784 13959 esac
13960 case `$CC -V 2>&1 | sed 5q` in
13961 *Sun\ C*) # Sun C 5.9
e6408286 13962 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 13963 compiler_needs_object_FC=yes
13964 tmp_sharedflag='-G' ;;
13965 *Sun\ F*) # Sun Fortran 8.3
13966 tmp_sharedflag='-G' ;;
542f9784 13967 esac
13968 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13969
13970 if test "x$supports_anon_versioning" = xyes; then
13971 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13972 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13973 echo "local: *; };" >> $output_objdir/$libname.ver~
13974 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13975 fi
00aafda4 13976
13977 case $cc_basename in
e6408286 13978 xlf* | bgf* | bgxlf* | mpixlf*)
00aafda4 13979 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13980 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13981 hardcode_libdir_flag_spec_FC=
13982 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13983 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13984 if test "x$supports_anon_versioning" = xyes; then
13985 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13986 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13987 echo "local: *; };" >> $output_objdir/$libname.ver~
13988 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13989 fi
13990 ;;
13991 esac
542f9784 13992 else
13993 ld_shlibs_FC=no
13994 fi
13995 ;;
13996
13997 netbsd*)
13998 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13999 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14000 wlarc=
14001 else
14002 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14003 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14004 fi
14005 ;;
14006
14007 solaris*)
14008 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14009 ld_shlibs_FC=no
14010 cat <<_LT_EOF 1>&2
14011
14012*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14013*** create shared libraries on Solaris systems. Therefore, libtool
14014*** is disabling shared libraries support. We urge you to upgrade GNU
14015*** binutils to release 2.9.1 or newer. Another option is to modify
14016*** your PATH or compiler configuration so that the native linker is
14017*** used, and then restart.
14018
14019_LT_EOF
14020 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14021 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14022 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14023 else
14024 ld_shlibs_FC=no
14025 fi
14026 ;;
14027
14028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14029 case `$LD -v 2>&1` in
14030 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14031 ld_shlibs_FC=no
14032 cat <<_LT_EOF 1>&2
14033
14034*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14035*** reliably create shared libraries on SCO systems. Therefore, libtool
14036*** is disabling shared libraries support. We urge you to upgrade GNU
14037*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14038*** your PATH or compiler configuration so that the native linker is
14039*** used, and then restart.
14040
14041_LT_EOF
14042 ;;
14043 *)
14044 # For security reasons, it is highly recommended that you always
14045 # use absolute paths for naming shared libraries, and exclude the
14046 # DT_RUNPATH tag from executables and libraries. But doing so
14047 # requires that you compile everything twice, which is a pain.
14048 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14049 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14050 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14051 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14052 else
14053 ld_shlibs_FC=no
14054 fi
14055 ;;
14056 esac
14057 ;;
14058
14059 sunos4*)
14060 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14061 wlarc=
14062 hardcode_direct_FC=yes
14063 hardcode_shlibpath_var_FC=no
14064 ;;
14065
14066 *)
14067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14068 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14069 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14070 else
14071 ld_shlibs_FC=no
14072 fi
14073 ;;
14074 esac
14075
14076 if test "$ld_shlibs_FC" = no; then
14077 runpath_var=
14078 hardcode_libdir_flag_spec_FC=
14079 export_dynamic_flag_spec_FC=
14080 whole_archive_flag_spec_FC=
14081 fi
14082 else
14083 # PORTME fill in a description of your system's linker (not GNU ld)
14084 case $host_os in
14085 aix3*)
14086 allow_undefined_flag_FC=unsupported
14087 always_export_symbols_FC=yes
14088 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'
14089 # Note: this linker hardcodes the directories in LIBPATH if there
14090 # are no directories specified by -L.
14091 hardcode_minus_L_FC=yes
14092 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14093 # Neither direct hardcoding nor static linking is supported with a
14094 # broken collect2.
14095 hardcode_direct_FC=unsupported
14096 fi
14097 ;;
14098
21e07d2f 14099 aix[4-9]*)
542f9784 14100 if test "$host_cpu" = ia64; then
14101 # On IA64, the linker does run time linking by default, so we don't
14102 # have to do anything special.
14103 aix_use_runtimelinking=no
14104 exp_sym_flag='-Bexport'
14105 no_entry_flag=""
14106 else
14107 # If we're using GNU nm, then we don't want the "-C" option.
14108 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 14109 # Also, AIX nm treats weak defined symbols like other global
14110 # defined symbols, whereas GNU nm marks them as "W".
542f9784 14111 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 14112 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 14113 else
14114 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14115 fi
14116 aix_use_runtimelinking=no
14117
14118 # Test if we are trying to use run time linking or normal
14119 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14120 # need to do runtime linking.
21e07d2f 14121 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 14122 for ld_flag in $LDFLAGS; do
14123 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14124 aix_use_runtimelinking=yes
14125 break
14126 fi
14127 done
14128 ;;
14129 esac
14130
14131 exp_sym_flag='-bexport'
14132 no_entry_flag='-bnoentry'
14133 fi
14134
14135 # When large executables or shared objects are built, AIX ld can
14136 # have problems creating the table of contents. If linking a library
14137 # or program results in "error TOC overflow" add -mminimal-toc to
14138 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14139 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14140
14141 archive_cmds_FC=''
14142 hardcode_direct_FC=yes
14143 hardcode_direct_absolute_FC=yes
14144 hardcode_libdir_separator_FC=':'
14145 link_all_deplibs_FC=yes
14146 file_list_spec_FC='${wl}-f,'
14147
14148 if test "$GCC" = yes; then
14149 case $host_os in aix4.[012]|aix4.[012].*)
14150 # We only want to do this on AIX 4.2 and lower, the check
14151 # below for broken collect2 doesn't work under 4.3+
14152 collect2name=`${CC} -print-prog-name=collect2`
14153 if test -f "$collect2name" &&
14154 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14155 then
14156 # We have reworked collect2
14157 :
14158 else
14159 # We have old collect2
14160 hardcode_direct_FC=unsupported
14161 # It fails to find uninstalled libraries when the uninstalled
14162 # path is not listed in the libpath. Setting hardcode_minus_L
14163 # to unsupported forces relinking
14164 hardcode_minus_L_FC=yes
14165 hardcode_libdir_flag_spec_FC='-L$libdir'
14166 hardcode_libdir_separator_FC=
14167 fi
14168 ;;
14169 esac
14170 shared_flag='-shared'
14171 if test "$aix_use_runtimelinking" = yes; then
14172 shared_flag="$shared_flag "'${wl}-G'
14173 fi
14174 else
14175 # not using gcc
14176 if test "$host_cpu" = ia64; then
14177 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14178 # chokes on -Wl,-G. The following line is correct:
14179 shared_flag='-G'
14180 else
14181 if test "$aix_use_runtimelinking" = yes; then
14182 shared_flag='${wl}-G'
14183 else
14184 shared_flag='${wl}-bM:SRE'
14185 fi
14186 fi
14187 fi
14188
00aafda4 14189 export_dynamic_flag_spec_FC='${wl}-bexpall'
542f9784 14190 # It seems that -bexpall does not export symbols beginning with
14191 # underscore (_), so it is better to generate a list of symbols to export.
14192 always_export_symbols_FC=yes
14193 if test "$aix_use_runtimelinking" = yes; then
14194 # Warning - without using the other runtime loading flags (-brtl),
14195 # -berok will link without error, but may produce a broken library.
14196 allow_undefined_flag_FC='-berok'
14197 # Determine the default libpath from the value encoded in an
14198 # empty executable.
14199 if test x$gcc_no_link = xyes; then
cd9a469c 14200 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 14201fi
cd9a469c 14202cat > conftest.$ac_ext <<_ACEOF
542f9784 14203 program main
14204
14205 end
14206_ACEOF
cd9a469c 14207if ac_fn_fc_try_link "$LINENO"; then :
542f9784 14208
14209lt_aix_libpath_sed='
14210 /Import File Strings/,/^$/ {
14211 /^0/ {
14212 s/^0 *\(.*\)$/\1/
14213 p
14214 }
14215 }'
14216aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14217# Check for a 64-bit object if we didn't find anything.
14218if test -z "$aix_libpath"; then
14219 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14220fi
542f9784 14221fi
cd9a469c 14222rm -f core conftest.err conftest.$ac_objext \
14223 conftest$ac_exeext conftest.$ac_ext
542f9784 14224if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14225
14226 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 14227 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 14228 else
14229 if test "$host_cpu" = ia64; then
14230 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14231 allow_undefined_flag_FC="-z nodefs"
14232 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"
14233 else
14234 # Determine the default libpath from the value encoded in an
14235 # empty executable.
14236 if test x$gcc_no_link = xyes; then
cd9a469c 14237 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 14238fi
cd9a469c 14239cat > conftest.$ac_ext <<_ACEOF
542f9784 14240 program main
14241
14242 end
14243_ACEOF
cd9a469c 14244if ac_fn_fc_try_link "$LINENO"; then :
542f9784 14245
14246lt_aix_libpath_sed='
14247 /Import File Strings/,/^$/ {
14248 /^0/ {
14249 s/^0 *\(.*\)$/\1/
14250 p
14251 }
14252 }'
14253aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14254# Check for a 64-bit object if we didn't find anything.
14255if test -z "$aix_libpath"; then
14256 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14257fi
542f9784 14258fi
cd9a469c 14259rm -f core conftest.err conftest.$ac_objext \
14260 conftest$ac_exeext conftest.$ac_ext
542f9784 14261if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14262
14263 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14264 # Warning - without using the other run time loading flags,
14265 # -berok will link without error, but may produce a broken library.
14266 no_undefined_flag_FC=' ${wl}-bernotok'
14267 allow_undefined_flag_FC=' ${wl}-berok'
e6408286 14268 if test "$with_gnu_ld" = yes; then
14269 # We only use this code for GNU lds that support --whole-archive.
14270 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14271 else
14272 # Exported symbols can be pulled into shared objects from archives
14273 whole_archive_flag_spec_FC='$convenience'
14274 fi
542f9784 14275 archive_cmds_need_lc_FC=yes
14276 # This is similar to how AIX traditionally builds its shared libraries.
14277 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'
14278 fi
14279 fi
14280 ;;
14281
14282 amigaos*)
00aafda4 14283 case $host_cpu in
14284 powerpc)
14285 # see comment about AmigaOS4 .so support
14286 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14287 archive_expsym_cmds_FC=''
14288 ;;
14289 m68k)
14290 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)'
14291 hardcode_libdir_flag_spec_FC='-L$libdir'
14292 hardcode_minus_L_FC=yes
14293 ;;
14294 esac
542f9784 14295 ;;
14296
14297 bsdi[45]*)
14298 export_dynamic_flag_spec_FC=-rdynamic
14299 ;;
14300
00aafda4 14301 cygwin* | mingw* | pw32* | cegcc*)
542f9784 14302 # When not using gcc, we currently assume that we are using
14303 # Microsoft Visual C++.
14304 # hardcode_libdir_flag_spec is actually meaningless, as there is
14305 # no search path for DLLs.
14306 hardcode_libdir_flag_spec_FC=' '
14307 allow_undefined_flag_FC=unsupported
14308 # Tell ltmain to make .lib files, not .a files.
14309 libext=lib
14310 # Tell ltmain to make .dll files, not .so files.
14311 shrext_cmds=".dll"
14312 # FIXME: Setting linknames here is a bad hack.
e6408286 14313 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 14314 # The linker will automatically build a .lib file if we build a DLL.
14315 old_archive_from_new_cmds_FC='true'
14316 # FIXME: Should let the user specify the lib program.
14317 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14318 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14319 enable_shared_with_static_runtimes_FC=yes
14320 ;;
14321
14322 darwin* | rhapsody*)
542f9784 14323
00aafda4 14324
14325 archive_cmds_need_lc_FC=no
14326 hardcode_direct_FC=no
14327 hardcode_automatic_FC=yes
14328 hardcode_shlibpath_var_FC=unsupported
e6408286 14329 if test "$lt_cv_ld_force_load" = "yes"; then
14330 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\"`'
14331 else
14332 whole_archive_flag_spec_FC=''
14333 fi
00aafda4 14334 link_all_deplibs_FC=yes
14335 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14336 case $cc_basename in
14337 ifort*) _lt_dar_can_shared=yes ;;
14338 *) _lt_dar_can_shared=$GCC ;;
14339 esac
14340 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 14341 output_verbose_link_cmd=func_echo_all
00aafda4 14342 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}"
14343 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14344 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}"
14345 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}"
14346
14347 else
14348 ld_shlibs_FC=no
14349 fi
14350
542f9784 14351 ;;
14352
14353 dgux*)
14354 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14355 hardcode_libdir_flag_spec_FC='-L$libdir'
14356 hardcode_shlibpath_var_FC=no
14357 ;;
14358
542f9784 14359 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14360 # support. Future versions do this automatically, but an explicit c++rt0.o
14361 # does not break anything, and helps significantly (at the cost of a little
14362 # extra space).
14363 freebsd2.2*)
14364 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14365 hardcode_libdir_flag_spec_FC='-R$libdir'
14366 hardcode_direct_FC=yes
14367 hardcode_shlibpath_var_FC=no
14368 ;;
14369
14370 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 14371 freebsd2.*)
542f9784 14372 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14373 hardcode_direct_FC=yes
14374 hardcode_minus_L_FC=yes
14375 hardcode_shlibpath_var_FC=no
14376 ;;
14377
14378 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14379 freebsd* | dragonfly*)
14380 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14381 hardcode_libdir_flag_spec_FC='-R$libdir'
14382 hardcode_direct_FC=yes
14383 hardcode_shlibpath_var_FC=no
14384 ;;
14385
14386 hpux9*)
14387 if test "$GCC" = yes; then
14388 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'
14389 else
14390 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'
14391 fi
14392 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14393 hardcode_libdir_separator_FC=:
14394 hardcode_direct_FC=yes
14395
14396 # hardcode_minus_L: Not really in the search PATH,
14397 # but as the default location of the library.
14398 hardcode_minus_L_FC=yes
14399 export_dynamic_flag_spec_FC='${wl}-E'
14400 ;;
14401
14402 hpux10*)
e6408286 14403 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 14404 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14405 else
14406 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14407 fi
14408 if test "$with_gnu_ld" = no; then
14409 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14410 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14411 hardcode_libdir_separator_FC=:
14412 hardcode_direct_FC=yes
14413 hardcode_direct_absolute_FC=yes
14414 export_dynamic_flag_spec_FC='${wl}-E'
14415 # hardcode_minus_L: Not really in the search PATH,
14416 # but as the default location of the library.
14417 hardcode_minus_L_FC=yes
14418 fi
14419 ;;
14420
14421 hpux11*)
e6408286 14422 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 14423 case $host_cpu in
14424 hppa*64*)
14425 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14426 ;;
14427 ia64*)
00aafda4 14428 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 14429 ;;
14430 *)
14431 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14432 ;;
14433 esac
14434 else
14435 case $host_cpu in
14436 hppa*64*)
14437 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14438 ;;
14439 ia64*)
14440 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14441 ;;
14442 *)
e6408286 14443 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
542f9784 14444 ;;
14445 esac
14446 fi
14447 if test "$with_gnu_ld" = no; then
14448 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14449 hardcode_libdir_separator_FC=:
14450
14451 case $host_cpu in
14452 hppa*64*|ia64*)
14453 hardcode_direct_FC=no
14454 hardcode_shlibpath_var_FC=no
14455 ;;
14456 *)
14457 hardcode_direct_FC=yes
14458 hardcode_direct_absolute_FC=yes
14459 export_dynamic_flag_spec_FC='${wl}-E'
14460
14461 # hardcode_minus_L: Not really in the search PATH,
14462 # but as the default location of the library.
14463 hardcode_minus_L_FC=yes
14464 ;;
14465 esac
14466 fi
14467 ;;
14468
14469 irix5* | irix6* | nonstopux*)
14470 if test "$GCC" = yes; then
e6408286 14471 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 14472 # Try to use the -exported_symbol ld option, if it does not
14473 # work, assume that -exports_file does not work either and
14474 # implicitly export all symbols.
14475 save_LDFLAGS="$LDFLAGS"
14476 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14477 if test x$gcc_no_link = xyes; then
cd9a469c 14478 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 14479fi
cd9a469c 14480cat > conftest.$ac_ext <<_ACEOF
542f9784 14481int foo(void) {}
14482_ACEOF
cd9a469c 14483if ac_fn_fc_try_link "$LINENO"; then :
e6408286 14484 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 14485
542f9784 14486fi
cd9a469c 14487rm -f core conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext conftest.$ac_ext
542f9784 14489 LDFLAGS="$save_LDFLAGS"
14490 else
e6408286 14491 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'
14492 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 14493 fi
14494 archive_cmds_need_lc_FC='no'
14495 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14496 hardcode_libdir_separator_FC=:
14497 inherit_rpath_FC=yes
14498 link_all_deplibs_FC=yes
14499 ;;
14500
14501 netbsd*)
14502 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14503 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14504 else
14505 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14506 fi
14507 hardcode_libdir_flag_spec_FC='-R$libdir'
14508 hardcode_direct_FC=yes
14509 hardcode_shlibpath_var_FC=no
14510 ;;
14511
14512 newsos6)
14513 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14514 hardcode_direct_FC=yes
14515 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14516 hardcode_libdir_separator_FC=:
14517 hardcode_shlibpath_var_FC=no
14518 ;;
14519
14520 *nto* | *qnx*)
14521 ;;
14522
14523 openbsd*)
00aafda4 14524 if test -f /usr/libexec/ld.so; then
14525 hardcode_direct_FC=yes
14526 hardcode_shlibpath_var_FC=no
14527 hardcode_direct_absolute_FC=yes
14528 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 14529 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
00aafda4 14530 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 14531 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
00aafda4 14532 export_dynamic_flag_spec_FC='${wl}-E'
14533 else
14534 case $host_os in
14535 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14536 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14537 hardcode_libdir_flag_spec_FC='-R$libdir'
14538 ;;
14539 *)
14540 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14541 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14542 ;;
14543 esac
14544 fi
14545 else
14546 ld_shlibs_FC=no
542f9784 14547 fi
14548 ;;
14549
14550 os2*)
14551 hardcode_libdir_flag_spec_FC='-L$libdir'
14552 hardcode_minus_L_FC=yes
14553 allow_undefined_flag_FC=unsupported
e6408286 14554 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 14555 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14556 ;;
14557
14558 osf3*)
14559 if test "$GCC" = yes; then
14560 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
e6408286 14561 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 14562 else
14563 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 14564 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 14565 fi
14566 archive_cmds_need_lc_FC='no'
14567 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14568 hardcode_libdir_separator_FC=:
14569 ;;
14570
14571 osf4* | osf5*) # as osf3* with the addition of -msym flag
14572 if test "$GCC" = yes; then
14573 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
e6408286 14574 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 14575 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14576 else
14577 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 14578 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 14579 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 14580 $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 14581
14582 # Both c and cxx compiler support -rpath directly
14583 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14584 fi
14585 archive_cmds_need_lc_FC='no'
14586 hardcode_libdir_separator_FC=:
14587 ;;
14588
14589 solaris*)
14590 no_undefined_flag_FC=' -z defs'
14591 if test "$GCC" = yes; then
14592 wlarc='${wl}'
14593 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14594 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14595 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14596 else
14597 case `$CC -V 2>&1` in
14598 *"Compilers 5.0"*)
14599 wlarc=''
14600 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14601 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14602 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14603 ;;
14604 *)
14605 wlarc='${wl}'
14606 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14607 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14608 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14609 ;;
14610 esac
14611 fi
14612 hardcode_libdir_flag_spec_FC='-R$libdir'
14613 hardcode_shlibpath_var_FC=no
14614 case $host_os in
14615 solaris2.[0-5] | solaris2.[0-5].*) ;;
14616 *)
14617 # The compiler driver will combine and reorder linker options,
14618 # but understands `-z linker_flag'. GCC discards it without `$wl',
14619 # but is careful enough not to reorder.
14620 # Supported since Solaris 2.6 (maybe 2.5.1?)
14621 if test "$GCC" = yes; then
14622 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14623 else
14624 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14625 fi
14626 ;;
14627 esac
14628 link_all_deplibs_FC=yes
14629 ;;
14630
14631 sunos4*)
14632 if test "x$host_vendor" = xsequent; then
14633 # Use $CC to link under sequent, because it throws in some extra .o
14634 # files that make .init and .fini sections work.
14635 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14636 else
14637 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14638 fi
14639 hardcode_libdir_flag_spec_FC='-L$libdir'
14640 hardcode_direct_FC=yes
14641 hardcode_minus_L_FC=yes
14642 hardcode_shlibpath_var_FC=no
14643 ;;
14644
14645 sysv4)
14646 case $host_vendor in
14647 sni)
14648 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14649 hardcode_direct_FC=yes # is this really true???
14650 ;;
14651 siemens)
14652 ## LD is ld it makes a PLAMLIB
14653 ## CC just makes a GrossModule.
14654 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14655 reload_cmds_FC='$CC -r -o $output$reload_objs'
14656 hardcode_direct_FC=no
14657 ;;
14658 motorola)
14659 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14660 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14661 ;;
14662 esac
14663 runpath_var='LD_RUN_PATH'
14664 hardcode_shlibpath_var_FC=no
14665 ;;
14666
14667 sysv4.3*)
14668 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14669 hardcode_shlibpath_var_FC=no
14670 export_dynamic_flag_spec_FC='-Bexport'
14671 ;;
14672
14673 sysv4*MP*)
14674 if test -d /usr/nec; then
14675 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14676 hardcode_shlibpath_var_FC=no
14677 runpath_var=LD_RUN_PATH
14678 hardcode_runpath_var=yes
14679 ld_shlibs_FC=yes
14680 fi
14681 ;;
14682
14683 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14684 no_undefined_flag_FC='${wl}-z,text'
14685 archive_cmds_need_lc_FC=no
14686 hardcode_shlibpath_var_FC=no
14687 runpath_var='LD_RUN_PATH'
14688
14689 if test "$GCC" = yes; then
14690 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14691 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14692 else
14693 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14694 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14695 fi
14696 ;;
14697
14698 sysv5* | sco3.2v5* | sco5v6*)
14699 # Note: We can NOT use -z defs as we might desire, because we do not
14700 # link with -lc, and that would cause any symbols used from libc to
14701 # always be unresolved, which means just about no library would
14702 # ever link correctly. If we're not using GNU ld we use -z text
14703 # though, which does catch some bad symbols but isn't as heavy-handed
14704 # as -z defs.
14705 no_undefined_flag_FC='${wl}-z,text'
14706 allow_undefined_flag_FC='${wl}-z,nodefs'
14707 archive_cmds_need_lc_FC=no
14708 hardcode_shlibpath_var_FC=no
14709 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14710 hardcode_libdir_separator_FC=':'
14711 link_all_deplibs_FC=yes
14712 export_dynamic_flag_spec_FC='${wl}-Bexport'
14713 runpath_var='LD_RUN_PATH'
14714
14715 if test "$GCC" = yes; then
14716 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14717 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14718 else
14719 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14720 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14721 fi
14722 ;;
14723
14724 uts4*)
14725 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14726 hardcode_libdir_flag_spec_FC='-L$libdir'
14727 hardcode_shlibpath_var_FC=no
14728 ;;
14729
14730 *)
14731 ld_shlibs_FC=no
14732 ;;
14733 esac
14734
14735 if test x$host_vendor = xsni; then
14736 case $host in
14737 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14738 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14739 ;;
14740 esac
14741 fi
14742 fi
14743
cd9a469c 14744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14745$as_echo "$ld_shlibs_FC" >&6; }
542f9784 14746test "$ld_shlibs_FC" = no && can_build_shared=no
14747
14748with_gnu_ld_FC=$with_gnu_ld
14749
14750
14751
14752
14753
14754
14755#
14756# Do we need to explicitly link libc?
14757#
14758case "x$archive_cmds_need_lc_FC" in
14759x|xyes)
14760 # Assume -lc should be added
14761 archive_cmds_need_lc_FC=yes
14762
14763 if test "$enable_shared" = yes && test "$GCC" = yes; then
14764 case $archive_cmds_FC in
14765 *'~'*)
14766 # FIXME: we may have to deal with multi-command sequences.
14767 ;;
14768 '$CC '*)
14769 # Test whether the compiler implicitly links with -lc since on some
14770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14771 # to ld, don't add -lc before -lgcc.
cd9a469c 14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14773$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14774if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14775 $as_echo_n "(cached) " >&6
9e6fd619 14776else
14777 $RM conftest*
14778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 14779
cd9a469c 14780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 14781 (eval $ac_compile) 2>&5
14782 ac_status=$?
cd9a469c 14783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14784 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 14785 soname=conftest
14786 lib=conftest
14787 libobjs=conftest.$ac_objext
14788 deplibs=
14789 wl=$lt_prog_compiler_wl_FC
14790 pic_flag=$lt_prog_compiler_pic_FC
14791 compiler_flags=-v
14792 linker_flags=-v
14793 verstring=
14794 output_objdir=.
14795 libname=conftest
14796 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14797 allow_undefined_flag_FC=
cd9a469c 14798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 14799 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
90e67cff 14800 ac_status=$?
cd9a469c 14801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14802 test $ac_status = 0; }
9e6fd619 14803 then
14804 lt_cv_archive_cmds_need_lc_FC=no
14805 else
14806 lt_cv_archive_cmds_need_lc_FC=yes
14807 fi
14808 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14809 else
14810 cat conftest.err 1>&5
14811 fi
14812 $RM conftest*
14813
14814fi
cd9a469c 14815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14816$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
9e6fd619 14817 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
542f9784 14818 ;;
14819 esac
14820 fi
14821 ;;
14822esac
90e67cff 14823
90e67cff 14824
542f9784 14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
cd9a469c 14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14888$as_echo_n "checking dynamic linker characteristics... " >&6; }
00aafda4 14889
542f9784 14890library_names_spec=
14891libname_spec='lib$name'
14892soname_spec=
14893shrext_cmds=".so"
14894postinstall_cmds=
14895postuninstall_cmds=
14896finish_cmds=
14897finish_eval=
14898shlibpath_var=
14899shlibpath_overrides_runpath=unknown
14900version_type=none
14901dynamic_linker="$host_os ld.so"
14902sys_lib_dlsearch_path_spec="/lib /usr/lib"
14903need_lib_prefix=unknown
14904hardcode_into_libs=no
14905
14906# when you set need_version to no, make sure it does not cause -set_version
14907# flags to be left without arguments
14908need_version=unknown
14909
14910case $host_os in
14911aix3*)
14912 version_type=linux
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14914 shlibpath_var=LIBPATH
14915
14916 # AIX 3 has no versioning support, so we append a major version to the name.
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 ;;
14919
21e07d2f 14920aix[4-9]*)
542f9784 14921 version_type=linux
14922 need_lib_prefix=no
14923 need_version=no
14924 hardcode_into_libs=yes
14925 if test "$host_cpu" = ia64; then
14926 # AIX 5 supports IA64
14927 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14928 shlibpath_var=LD_LIBRARY_PATH
14929 else
14930 # With GCC up to 2.95.x, collect2 would create an import file
14931 # for dependence libraries. The import file would start with
14932 # the line `#! .'. This would cause the generated library to
14933 # depend on `.', always an invalid library. This was fixed in
14934 # development snapshots of GCC prior to 3.0.
14935 case $host_os in
14936 aix4 | aix4.[01] | aix4.[01].*)
14937 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14938 echo ' yes '
14939 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14940 :
14941 else
14942 can_build_shared=no
14943 fi
14944 ;;
14945 esac
14946 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14947 # soname into executable. Probably we can add versioning support to
14948 # collect2, so additional links can be useful in future.
14949 if test "$aix_use_runtimelinking" = yes; then
14950 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14951 # instead of lib<name>.a to let people know that these are not
14952 # typical AIX shared libraries.
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954 else
14955 # We preserve .a as extension for shared libraries through AIX4.2
14956 # and later when we are not doing run time linking.
14957 library_names_spec='${libname}${release}.a $libname.a'
14958 soname_spec='${libname}${release}${shared_ext}$major'
14959 fi
14960 shlibpath_var=LIBPATH
14961 fi
14962 ;;
14963
14964amigaos*)
00aafda4 14965 case $host_cpu in
14966 powerpc)
14967 # Since July 2007 AmigaOS4 officially supports .so libraries.
14968 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970 ;;
14971 m68k)
542f9784 14972 library_names_spec='$libname.ixlibrary $libname.a'
14973 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 14974 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 14975 ;;
14976 esac
542f9784 14977 ;;
14978
14979beos*)
14980 library_names_spec='${libname}${shared_ext}'
14981 dynamic_linker="$host_os ld.so"
14982 shlibpath_var=LIBRARY_PATH
14983 ;;
14984
14985bsdi[45]*)
14986 version_type=linux
14987 need_version=no
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989 soname_spec='${libname}${release}${shared_ext}$major'
14990 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14991 shlibpath_var=LD_LIBRARY_PATH
14992 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14993 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14994 # the default ld.so.conf also contains /usr/contrib/lib and
14995 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14996 # libtool to hard-code these into programs
14997 ;;
14998
00aafda4 14999cygwin* | mingw* | pw32* | cegcc*)
542f9784 15000 version_type=windows
15001 shrext_cmds=".dll"
15002 need_version=no
15003 need_lib_prefix=no
15004
00aafda4 15005 case $GCC,$host_os in
15006 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 15007 library_names_spec='$libname.dll.a'
15008 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15009 postinstall_cmds='base_file=`basename \${file}`~
15010 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15011 dldir=$destdir/`dirname \$dlpath`~
15012 test -d \$dldir || mkdir -p \$dldir~
15013 $install_prog $dir/$dlname \$dldir/$dlname~
15014 chmod a+x \$dldir/$dlname~
15015 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15016 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15017 fi'
15018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15019 dlpath=$dir/\$dldll~
15020 $RM \$dlpath'
15021 shlibpath_overrides_runpath=yes
15022
15023 case $host_os in
15024 cygwin*)
15025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 15027
542f9784 15028 ;;
00aafda4 15029 mingw* | cegcc*)
542f9784 15030 # MinGW DLLs use traditional 'lib' prefix
15031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 15032 ;;
15033 pw32*)
15034 # pw32 DLLs use 'pw' prefix rather than 'lib'
15035 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15036 ;;
15037 esac
15038 ;;
15039
15040 *)
15041 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15042 ;;
15043 esac
15044 dynamic_linker='Win32 ld.exe'
15045 # FIXME: first we should search . and the directory the executable is in
15046 shlibpath_var=PATH
15047 ;;
15048
15049darwin* | rhapsody*)
15050 dynamic_linker="$host_os dyld"
15051 version_type=darwin
15052 need_lib_prefix=no
15053 need_version=no
15054 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15055 soname_spec='${libname}${release}${major}$shared_ext'
15056 shlibpath_overrides_runpath=yes
15057 shlibpath_var=DYLD_LIBRARY_PATH
15058 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15059
15060 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15061 ;;
15062
15063dgux*)
15064 version_type=linux
15065 need_lib_prefix=no
15066 need_version=no
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 shlibpath_var=LD_LIBRARY_PATH
15070 ;;
15071
542f9784 15072freebsd* | dragonfly*)
15073 # DragonFly does not have aout. When/if they implement a new
15074 # versioning mechanism, adjust this.
15075 if test -x /usr/bin/objformat; then
15076 objformat=`/usr/bin/objformat`
15077 else
15078 case $host_os in
30369aff 15079 freebsd[23].*) objformat=aout ;;
542f9784 15080 *) objformat=elf ;;
15081 esac
15082 fi
15083 version_type=freebsd-$objformat
15084 case $version_type in
15085 freebsd-elf*)
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15087 need_version=no
15088 need_lib_prefix=no
15089 ;;
15090 freebsd-*)
15091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15092 need_version=yes
15093 ;;
15094 esac
15095 shlibpath_var=LD_LIBRARY_PATH
15096 case $host_os in
30369aff 15097 freebsd2.*)
542f9784 15098 shlibpath_overrides_runpath=yes
15099 ;;
15100 freebsd3.[01]* | freebsdelf3.[01]*)
15101 shlibpath_overrides_runpath=yes
15102 hardcode_into_libs=yes
15103 ;;
15104 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15105 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15106 shlibpath_overrides_runpath=no
15107 hardcode_into_libs=yes
15108 ;;
15109 *) # from 4.6 on, and DragonFly
15110 shlibpath_overrides_runpath=yes
15111 hardcode_into_libs=yes
15112 ;;
15113 esac
15114 ;;
15115
15116gnu*)
15117 version_type=linux
15118 need_lib_prefix=no
15119 need_version=no
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15121 soname_spec='${libname}${release}${shared_ext}$major'
15122 shlibpath_var=LD_LIBRARY_PATH
15123 hardcode_into_libs=yes
15124 ;;
15125
e6408286 15126haiku*)
15127 version_type=linux
15128 need_lib_prefix=no
15129 need_version=no
15130 dynamic_linker="$host_os runtime_loader"
15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15132 soname_spec='${libname}${release}${shared_ext}$major'
15133 shlibpath_var=LIBRARY_PATH
15134 shlibpath_overrides_runpath=yes
15135 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15136 hardcode_into_libs=yes
15137 ;;
15138
542f9784 15139hpux9* | hpux10* | hpux11*)
15140 # Give a soname corresponding to the major version so that dld.sl refuses to
15141 # link against other versions.
15142 version_type=sunos
15143 need_lib_prefix=no
15144 need_version=no
15145 case $host_cpu in
15146 ia64*)
15147 shrext_cmds='.so'
15148 hardcode_into_libs=yes
15149 dynamic_linker="$host_os dld.so"
15150 shlibpath_var=LD_LIBRARY_PATH
15151 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15153 soname_spec='${libname}${release}${shared_ext}$major'
15154 if test "X$HPUX_IA64_MODE" = X32; then
15155 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15156 else
15157 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15158 fi
15159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15160 ;;
15161 hppa*64*)
15162 shrext_cmds='.sl'
15163 hardcode_into_libs=yes
15164 dynamic_linker="$host_os dld.sl"
15165 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15168 soname_spec='${libname}${release}${shared_ext}$major'
15169 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15170 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15171 ;;
15172 *)
15173 shrext_cmds='.sl'
15174 dynamic_linker="$host_os dld.sl"
15175 shlibpath_var=SHLIB_PATH
15176 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178 soname_spec='${libname}${release}${shared_ext}$major'
15179 ;;
15180 esac
e6408286 15181 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 15182 postinstall_cmds='chmod 555 $lib'
e6408286 15183 # or fails outright, so override atomically:
15184 install_override_mode=555
542f9784 15185 ;;
15186
15187interix[3-9]*)
15188 version_type=linux
15189 need_lib_prefix=no
15190 need_version=no
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 shlibpath_overrides_runpath=no
15196 hardcode_into_libs=yes
15197 ;;
15198
15199irix5* | irix6* | nonstopux*)
15200 case $host_os in
15201 nonstopux*) version_type=nonstopux ;;
15202 *)
15203 if test "$lt_cv_prog_gnu_ld" = yes; then
15204 version_type=linux
15205 else
15206 version_type=irix
15207 fi ;;
15208 esac
15209 need_lib_prefix=no
15210 need_version=no
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15213 case $host_os in
15214 irix5* | nonstopux*)
15215 libsuff= shlibsuff=
15216 ;;
15217 *)
15218 case $LD in # libtool.m4 will add one of these switches to LD
15219 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15220 libsuff= shlibsuff= libmagic=32-bit;;
15221 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15222 libsuff=32 shlibsuff=N32 libmagic=N32;;
15223 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15224 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15225 *) libsuff= shlibsuff= libmagic=never-match;;
15226 esac
15227 ;;
15228 esac
15229 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15230 shlibpath_overrides_runpath=no
15231 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15232 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15233 hardcode_into_libs=yes
15234 ;;
15235
15236# No shared lib support for Linux oldld, aout, or coff.
15237linux*oldld* | linux*aout* | linux*coff*)
15238 dynamic_linker=no
15239 ;;
15240
15241# This must be Linux ELF.
9af964d4 15242linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 15243 version_type=linux
15244 need_lib_prefix=no
15245 need_version=no
15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15247 soname_spec='${libname}${release}${shared_ext}$major'
15248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15249 shlibpath_var=LD_LIBRARY_PATH
15250 shlibpath_overrides_runpath=no
9e6fd619 15251
542f9784 15252 # Some binutils ld are patched to set DT_RUNPATH
cd9a469c 15253 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15254 $as_echo_n "(cached) " >&6
9e6fd619 15255else
15256 lt_cv_shlibpath_overrides_runpath=no
15257 save_LDFLAGS=$LDFLAGS
15258 save_libdir=$libdir
15259 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15260 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15261 if test x$gcc_no_link = xyes; then
cd9a469c 15262 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 15263fi
cd9a469c 15264cat > conftest.$ac_ext <<_ACEOF
542f9784 15265 program main
15266
15267 end
90e67cff 15268_ACEOF
cd9a469c 15269if ac_fn_fc_try_link "$LINENO"; then :
15270 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 15271 lt_cv_shlibpath_overrides_runpath=yes
542f9784 15272fi
90e67cff 15273fi
cd9a469c 15274rm -f core conftest.err conftest.$ac_objext \
15275 conftest$ac_exeext conftest.$ac_ext
9e6fd619 15276 LDFLAGS=$save_LDFLAGS
15277 libdir=$save_libdir
15278
15279fi
15280
15281 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 15282
15283 # This implies no fast_install, which is unacceptable.
15284 # Some rework will be needed to allow for fast_install
15285 # before this can be enabled.
15286 hardcode_into_libs=yes
15287
15288 # Append ld.so.conf contents to the search path
15289 if test -f /etc/ld.so.conf; then
e6408286 15290 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 15291 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15292 fi
15293
15294 # We used to test for /lib/ld.so.1 and disable shared libraries on
15295 # powerpc, because MkLinux only supported shared libraries with the
15296 # GNU dynamic linker. Since this was broken with cross compilers,
15297 # most powerpc-linux boxes support dynamic linking these days and
15298 # people can always --disable-shared, the test was removed, and we
15299 # assume the GNU/Linux dynamic linker is in use.
15300 dynamic_linker='GNU/Linux ld.so'
15301 ;;
15302
15303netbsd*)
15304 version_type=sunos
15305 need_lib_prefix=no
15306 need_version=no
15307 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15310 dynamic_linker='NetBSD (a.out) ld.so'
15311 else
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 dynamic_linker='NetBSD ld.elf_so'
15315 fi
15316 shlibpath_var=LD_LIBRARY_PATH
15317 shlibpath_overrides_runpath=yes
15318 hardcode_into_libs=yes
15319 ;;
15320
15321newsos6)
15322 version_type=linux
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15324 shlibpath_var=LD_LIBRARY_PATH
15325 shlibpath_overrides_runpath=yes
15326 ;;
15327
15328*nto* | *qnx*)
15329 version_type=qnx
15330 need_lib_prefix=no
15331 need_version=no
15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15333 soname_spec='${libname}${release}${shared_ext}$major'
15334 shlibpath_var=LD_LIBRARY_PATH
15335 shlibpath_overrides_runpath=no
15336 hardcode_into_libs=yes
15337 dynamic_linker='ldqnx.so'
15338 ;;
15339
15340openbsd*)
15341 version_type=sunos
15342 sys_lib_dlsearch_path_spec="/usr/lib"
15343 need_lib_prefix=no
15344 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15345 case $host_os in
15346 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15347 *) need_version=no ;;
15348 esac
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15351 shlibpath_var=LD_LIBRARY_PATH
15352 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15353 case $host_os in
15354 openbsd2.[89] | openbsd2.[89].*)
15355 shlibpath_overrides_runpath=no
15356 ;;
15357 *)
15358 shlibpath_overrides_runpath=yes
15359 ;;
15360 esac
15361 else
15362 shlibpath_overrides_runpath=yes
15363 fi
15364 ;;
15365
15366os2*)
15367 libname_spec='$name'
15368 shrext_cmds=".dll"
15369 need_lib_prefix=no
15370 library_names_spec='$libname${shared_ext} $libname.a'
15371 dynamic_linker='OS/2 ld.exe'
15372 shlibpath_var=LIBPATH
15373 ;;
15374
15375osf3* | osf4* | osf5*)
15376 version_type=osf
15377 need_lib_prefix=no
15378 need_version=no
15379 soname_spec='${libname}${release}${shared_ext}$major'
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15383 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15384 ;;
15385
15386rdos*)
15387 dynamic_linker=no
15388 ;;
15389
15390solaris*)
15391 version_type=linux
15392 need_lib_prefix=no
15393 need_version=no
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=yes
15398 hardcode_into_libs=yes
15399 # ldd complains unless libraries are executable
15400 postinstall_cmds='chmod +x $lib'
15401 ;;
15402
15403sunos4*)
15404 version_type=sunos
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15406 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15407 shlibpath_var=LD_LIBRARY_PATH
15408 shlibpath_overrides_runpath=yes
15409 if test "$with_gnu_ld" = yes; then
15410 need_lib_prefix=no
15411 fi
15412 need_version=yes
15413 ;;
15414
15415sysv4 | sysv4.3*)
15416 version_type=linux
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418 soname_spec='${libname}${release}${shared_ext}$major'
15419 shlibpath_var=LD_LIBRARY_PATH
15420 case $host_vendor in
15421 sni)
15422 shlibpath_overrides_runpath=no
15423 need_lib_prefix=no
15424 runpath_var=LD_RUN_PATH
15425 ;;
15426 siemens)
15427 need_lib_prefix=no
15428 ;;
15429 motorola)
15430 need_lib_prefix=no
15431 need_version=no
15432 shlibpath_overrides_runpath=no
15433 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15434 ;;
15435 esac
15436 ;;
15437
15438sysv4*MP*)
15439 if test -d /usr/nec ;then
15440 version_type=linux
15441 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15442 soname_spec='$libname${shared_ext}.$major'
15443 shlibpath_var=LD_LIBRARY_PATH
15444 fi
15445 ;;
15446
15447sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15448 version_type=freebsd-elf
15449 need_lib_prefix=no
15450 need_version=no
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15452 soname_spec='${libname}${release}${shared_ext}$major'
15453 shlibpath_var=LD_LIBRARY_PATH
15454 shlibpath_overrides_runpath=yes
15455 hardcode_into_libs=yes
15456 if test "$with_gnu_ld" = yes; then
15457 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15458 else
15459 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15460 case $host_os in
15461 sco3.2v5*)
15462 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15463 ;;
15464 esac
15465 fi
15466 sys_lib_dlsearch_path_spec='/usr/lib'
15467 ;;
15468
15469tpf*)
15470 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15471 version_type=linux
15472 need_lib_prefix=no
15473 need_version=no
00aafda4 15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 15475 shlibpath_var=LD_LIBRARY_PATH
15476 shlibpath_overrides_runpath=no
15477 hardcode_into_libs=yes
15478 ;;
15479
15480uts4*)
15481 version_type=linux
15482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15483 soname_spec='${libname}${release}${shared_ext}$major'
15484 shlibpath_var=LD_LIBRARY_PATH
15485 ;;
15486
15487*)
15488 dynamic_linker=no
15489 ;;
15490esac
cd9a469c 15491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15492$as_echo "$dynamic_linker" >&6; }
542f9784 15493test "$dynamic_linker" = no && can_build_shared=no
15494
15495variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15496if test "$GCC" = yes; then
15497 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
90e67cff 15498fi
90e67cff 15499
00aafda4 15500if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15501 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15502fi
15503if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15504 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15505fi
15506
90e67cff 15507
542f9784 15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
e6408286 15539
15540
542f9784 15541
15542
15543
cd9a469c 15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15545$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
542f9784 15546hardcode_action_FC=
15547if test -n "$hardcode_libdir_flag_spec_FC" ||
15548 test -n "$runpath_var_FC" ||
15549 test "X$hardcode_automatic_FC" = "Xyes" ; then
15550
15551 # We can hardcode non-existent directories.
15552 if test "$hardcode_direct_FC" != no &&
15553 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15554 # have to relink, otherwise we might link with an installed library
15555 # when we should be linking with a yet-to-be-installed one
15556 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15557 test "$hardcode_minus_L_FC" != no; then
15558 # Linking always hardcodes the temporary library directory.
15559 hardcode_action_FC=relink
15560 else
15561 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15562 hardcode_action_FC=immediate
15563 fi
15564else
15565 # We cannot hardcode anything, or else we can only hardcode existing
15566 # directories.
15567 hardcode_action_FC=unsupported
90e67cff 15568fi
cd9a469c 15569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15570$as_echo "$hardcode_action_FC" >&6; }
542f9784 15571
15572if test "$hardcode_action_FC" = relink ||
15573 test "$inherit_rpath_FC" = yes; then
15574 # Fast installation is not supported
15575 enable_fast_install=no
15576elif test "$shlibpath_overrides_runpath" = yes ||
15577 test "$enable_shared" = no; then
15578 # Fast installation is not necessary
15579 enable_fast_install=needless
90e67cff 15580fi
15581
542f9784 15582
15583
15584
15585
15586
15587
15588 fi # test -n "$compiler"
15589
00aafda4 15590 GCC=$lt_save_GCC
542f9784 15591 CC="$lt_save_CC"
15592fi # test "$_lt_disable_FC" != yes
15593
5c88bcbb 15594ac_ext=c
90973b19 15595ac_cpp='$CPP $CPPFLAGS'
15596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15598ac_compiler_gnu=$ac_cv_c_compiler_gnu
542f9784 15599
15600
15601
15602# extra LD Flags which are required for targets
15603case "${host}" in
15604 *-darwin*)
15605 # Darwin needs -single_module when linking libgfortran
15606 extra_ldflags_libgfortran=-Wl,-single_module
15607 ;;
15608esac
15609
15610
15611# We need a working compiler at that point, otherwise give a clear
15612# error message and bail out.
15613
cd9a469c 15614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15615$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15616ac_ext=${ac_fc_srcext-f}
15617ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15618ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 15619ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15620
cd9a469c 15621cat > conftest.$ac_ext <<_ACEOF
542f9784 15622
15623 program foo
15624 real, parameter :: bar = sin (12.34 / 2.5)
15625 end program foo
4ee9c684 15626_ACEOF
cd9a469c 15627if ac_fn_fc_try_compile "$LINENO"; then :
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15629$as_echo "yes" >&6; }
4ee9c684 15630else
cd9a469c 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15632$as_echo "no" >&6; }
15633 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 15634
90973b19 15635fi
cd9a469c 15636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 15637ac_ext=c
15638ac_cpp='$CPP $CPPFLAGS'
15639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15641ac_compiler_gnu=$ac_cv_c_compiler_gnu
90973b19 15642
90973b19 15643
542f9784 15644
cd9a469c 15645# Check whether --enable-largefile was given.
15646if test "${enable_largefile+set}" = set; then :
15647 enableval=$enable_largefile;
15648fi
542f9784 15649
542f9784 15650if test "$enable_largefile" != no; then
15651
cd9a469c 15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15653$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15654if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15655 $as_echo_n "(cached) " >&6
90973b19 15656else
542f9784 15657 ac_cv_sys_largefile_CC=no
15658 if test "$GCC" != yes; then
15659 ac_save_CC=$CC
15660 while :; do
cd9a469c 15661 # IRIX 6.2 and later do not support large files by default,
15662 # so use the C compiler's -n32 option if that helps.
15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90973b19 15664/* end confdefs.h. */
542f9784 15665#include <sys/types.h>
15666 /* Check that off_t can represent 2**63 - 1 correctly.
15667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15668 since some C++ compilers masquerading as C compilers
15669 incorrectly reject 9223372036854775807. */
15670#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
cd9a469c 15671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15672 && LARGE_OFF_T % 2147483647 == 1)
15673 ? 1 : -1];
56c15991 15674int
15675main ()
15676{
56c15991 15677
15678 ;
15679 return 0;
15680}
15681_ACEOF
cd9a469c 15682 if ac_fn_c_try_compile "$LINENO"; then :
15683 break
56c15991 15684fi
cd9a469c 15685rm -f core conftest.err conftest.$ac_objext
15686 CC="$CC -n32"
15687 if ac_fn_c_try_compile "$LINENO"; then :
15688 ac_cv_sys_largefile_CC=' -n32'; break
15689fi
15690rm -f core conftest.err conftest.$ac_objext
15691 break
15692 done
15693 CC=$ac_save_CC
15694 rm -f conftest.$ac_ext
15695 fi
15696fi
15697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15698$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15699 if test "$ac_cv_sys_largefile_CC" != no; then
15700 CC=$CC$ac_cv_sys_largefile_CC
15701 fi
56c15991 15702
cd9a469c 15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15704$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15705if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15706 $as_echo_n "(cached) " >&6
15707else
15708 while :; do
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56c15991 15710/* end confdefs.h. */
cd9a469c 15711#include <sys/types.h>
15712 /* Check that off_t can represent 2**63 - 1 correctly.
15713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15714 since some C++ compilers masquerading as C compilers
15715 incorrectly reject 9223372036854775807. */
15716#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15718 && LARGE_OFF_T % 2147483647 == 1)
15719 ? 1 : -1];
56c15991 15720int
15721main ()
15722{
56c15991 15723
15724 ;
15725 return 0;
15726}
15727_ACEOF
cd9a469c 15728if ac_fn_c_try_compile "$LINENO"; then :
15729 ac_cv_sys_file_offset_bits=no; break
15730fi
15731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56c15991 15733/* end confdefs.h. */
cd9a469c 15734#define _FILE_OFFSET_BITS 64
15735#include <sys/types.h>
15736 /* Check that off_t can represent 2**63 - 1 correctly.
15737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15738 since some C++ compilers masquerading as C compilers
15739 incorrectly reject 9223372036854775807. */
15740#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15742 && LARGE_OFF_T % 2147483647 == 1)
15743 ? 1 : -1];
56c15991 15744int
15745main ()
15746{
56c15991 15747
15748 ;
15749 return 0;
15750}
15751_ACEOF
cd9a469c 15752if ac_fn_c_try_compile "$LINENO"; then :
15753 ac_cv_sys_file_offset_bits=64; break
56c15991 15754fi
cd9a469c 15755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756 ac_cv_sys_file_offset_bits=unknown
15757 break
15758done
56c15991 15759fi
cd9a469c 15760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15761$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15762case $ac_cv_sys_file_offset_bits in #(
15763 no | unknown) ;;
15764 *)
15765cat >>confdefs.h <<_ACEOF
15766#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
56c15991 15767_ACEOF
cd9a469c 15768;;
15769esac
15770rm -rf conftest*
15771 if test $ac_cv_sys_file_offset_bits = unknown; then
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15773$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15774if test "${ac_cv_sys_large_files+set}" = set; then :
15775 $as_echo_n "(cached) " >&6
15776else
15777 while :; do
15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56c15991 15779/* end confdefs.h. */
cd9a469c 15780#include <sys/types.h>
15781 /* Check that off_t can represent 2**63 - 1 correctly.
15782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15783 since some C++ compilers masquerading as C compilers
15784 incorrectly reject 9223372036854775807. */
15785#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15787 && LARGE_OFF_T % 2147483647 == 1)
15788 ? 1 : -1];
56c15991 15789int
15790main ()
15791{
56c15991 15792
15793 ;
15794 return 0;
15795}
15796_ACEOF
cd9a469c 15797if ac_fn_c_try_compile "$LINENO"; then :
15798 ac_cv_sys_large_files=no; break
56c15991 15799fi
cd9a469c 15800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56c15991 15802/* end confdefs.h. */
cd9a469c 15803#define _LARGE_FILES 1
15804#include <sys/types.h>
15805 /* Check that off_t can represent 2**63 - 1 correctly.
15806 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15807 since some C++ compilers masquerading as C compilers
15808 incorrectly reject 9223372036854775807. */
15809#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15810 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15811 && LARGE_OFF_T % 2147483647 == 1)
15812 ? 1 : -1];
56c15991 15813int
15814main ()
15815{
15816
56c15991 15817 ;
15818 return 0;
15819}
15820_ACEOF
cd9a469c 15821if ac_fn_c_try_compile "$LINENO"; then :
15822 ac_cv_sys_large_files=1; break
56c15991 15823fi
cd9a469c 15824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825 ac_cv_sys_large_files=unknown
15826 break
15827done
82eaf560 15828fi
cd9a469c 15829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15830$as_echo "$ac_cv_sys_large_files" >&6; }
15831case $ac_cv_sys_large_files in #(
15832 no | unknown) ;;
15833 *)
56c15991 15834cat >>confdefs.h <<_ACEOF
cd9a469c 15835#define _LARGE_FILES $ac_cv_sys_large_files
56c15991 15836_ACEOF
cd9a469c 15837;;
15838esac
15839rm -rf conftest*
15840 fi
56c15991 15841fi
15842
c75dca49 15843
15844# Types
cd9a469c 15845ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15846if test "x$ac_cv_type_off_t" = x""yes; then :
56c15991 15847
cd9a469c 15848else
56c15991 15849
cd9a469c 15850cat >>confdefs.h <<_ACEOF
15851#define off_t long int
15852_ACEOF
56c15991 15853
c75dca49 15854fi
15855
15856
15857 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15858if test "x$ac_cv_type_intptr_t" = x""yes; then :
15859
15860$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15861
15862else
15863 for ac_type in 'int' 'long int' 'long long int'; do
15864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865/* end confdefs.h. */
15866$ac_includes_default
15867int
15868main ()
15869{
15870static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15871test_array [0] = 0
15872
15873 ;
15874 return 0;
15875}
15876_ACEOF
15877if ac_fn_c_try_compile "$LINENO"; then :
15878
15879cat >>confdefs.h <<_ACEOF
15880#define intptr_t $ac_type
15881_ACEOF
15882
15883 ac_type=
15884fi
15885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886 test -z "$ac_type" && break
15887 done
15888fi
15889
15890
15891
15892 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15893if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15894
15895$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15896
15897else
15898 for ac_type in 'unsigned int' 'unsigned long int' \
15899 'unsigned long long int'; do
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901/* end confdefs.h. */
15902$ac_includes_default
15903int
15904main ()
15905{
15906static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15907test_array [0] = 0
15908
15909 ;
15910 return 0;
15911}
15912_ACEOF
15913if ac_fn_c_try_compile "$LINENO"; then :
15914
15915cat >>confdefs.h <<_ACEOF
15916#define uintptr_t $ac_type
15917_ACEOF
15918
15919 ac_type=
15920fi
15921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15922 test -z "$ac_type" && break
15923 done
15924fi
15925
15926
15927ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15928if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15929
15930cat >>confdefs.h <<_ACEOF
15931#define HAVE_PTRDIFF_T 1
15932_ACEOF
15933
15934
56c15991 15935fi
15936
56c15991 15937
a1aa1d30 15938# check header files (we assume C89 is available, so don't check for that)
771c1b50 15939
cd9a469c 15940
771c1b50 15941
a1aa1d30 15942 for ac_header in $ac_header_list
15943do :
15944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15945ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15946"
15947eval as_val=\$$as_ac_Header
15948 if test "x$as_val" = x""yes; then :
15949 cat >>confdefs.h <<_ACEOF
15950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
771c1b50 15951_ACEOF
15952
cd9a469c 15953fi
771c1b50 15954
a1aa1d30 15955done
771c1b50 15956
cd9a469c 15957
cd9a469c 15958
771c1b50 15959
cd9a469c 15960
cd9a469c 15961
771c1b50 15962
771c1b50 15963
771c1b50 15964
15965
771c1b50 15966
771c1b50 15967
771c1b50 15968
15969
771c1b50 15970
15971
7dfba97b 15972
5e7b82bb 15973
c436f700 15974
a54b1ce7 15975
15976
14c3c235 15977
4dd3972f 15978
4dd3972f 15979
4dd3972f 15980
4dd3972f 15981
4dd3972f 15982
4dd3972f 15983
15984
4dd3972f 15985
4ee9c684 15986
2069752c 15987inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
4ee9c684 15988
2069752c 15989acx_cv_header_stdint=stddef.h
15990acx_cv_header_stdint_kind="(already complete)"
15991for i in stdint.h $inttype_headers; do
15992 unset ac_cv_type_uintptr_t
15993 unset ac_cv_type_uintmax_t
15994 unset ac_cv_type_int_least32_t
15995 unset ac_cv_type_int_fast32_t
15996 unset ac_cv_type_uint64_t
15997 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15998 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15999#include <$i>
16000"
16001if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16002 acx_cv_header_stdint=$i
cd9a469c 16003else
2069752c 16004 continue
cd9a469c 16005fi
4ee9c684 16006
2069752c 16007 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16008#include <$i>
16009"
16010if test "x$ac_cv_type_uintptr_t" = x""yes; then :
90973b19 16011
cd9a469c 16012else
2069752c 16013 acx_cv_header_stdint_kind="(mostly complete)"
cd9a469c 16014fi
90973b19 16015
2069752c 16016 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16017#include <$i>
16018"
16019if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16020
4dd3972f 16021else
2069752c 16022 acx_cv_header_stdint_kind="(mostly complete)"
cd9a469c 16023fi
cd9a469c 16024
2069752c 16025 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16026#include <$i>
16027"
16028if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
4dd3972f 16029
2069752c 16030else
16031 acx_cv_header_stdint_kind="(mostly complete)"
16032fi
ea6b3890 16033
2069752c 16034 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16035#include <$i>
16036"
16037if test "x$ac_cv_type_uint64_t" = x""yes; then :
ea6b3890 16038
cd9a469c 16039else
2069752c 16040 acx_cv_header_stdint_kind="(lacks uint64_t)"
16041fi
4dd3972f 16042
2069752c 16043 break
16044done
16045if test "$acx_cv_header_stdint" = stddef.h; then
16046 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16047 for i in stdint.h $inttype_headers; do
16048 unset ac_cv_type_uintptr_t
16049 unset ac_cv_type_uint32_t
16050 unset ac_cv_type_uint64_t
16051 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16052 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16053#include <$i>
16054"
16055if test "x$ac_cv_type_uint32_t" = x""yes; then :
16056 acx_cv_header_stdint=$i
16057else
16058 continue
cd9a469c 16059fi
4dd3972f 16060
2069752c 16061 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16062#include <$i>
16063"
16064if test "x$ac_cv_type_uint64_t" = x""yes; then :
f2c0a16d 16065
2069752c 16066fi
247981ce 16067
2069752c 16068 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16069#include <$i>
16070"
16071if test "x$ac_cv_type_uintptr_t" = x""yes; then :
247981ce 16072
2069752c 16073fi
b902b078 16074
2069752c 16075 break
16076 done
16077fi
16078if test "$acx_cv_header_stdint" = stddef.h; then
16079 acx_cv_header_stdint_kind="(u_intXX_t style)"
16080 for i in sys/types.h $inttype_headers; do
16081 unset ac_cv_type_u_int32_t
16082 unset ac_cv_type_u_int64_t
16083 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16084 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16085#include <$i>
16086"
16087if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16088 acx_cv_header_stdint=$i
ea6b3890 16089else
2069752c 16090 continue
16091fi
d2fc5bb1 16092
2069752c 16093 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16094#include <$i>
16095"
16096if test "x$ac_cv_type_u_int64_t" = x""yes; then :
d2fc5bb1 16097
2069752c 16098fi
d2fc5bb1 16099
2069752c 16100 break
16101 done
d2fc5bb1 16102fi
2069752c 16103if test "$acx_cv_header_stdint" = stddef.h; then
16104 acx_cv_header_stdint_kind="(using manual detection)"
cd9a469c 16105fi
d2fc5bb1 16106
2069752c 16107test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16108test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16109test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16110test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16111test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
d2fc5bb1 16112
2069752c 16113# ----------------- Summarize what we found so far
cd9a469c 16114
2069752c 16115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16116$as_echo_n "checking what to include in gstdint.h... " >&6; }
d2fc5bb1 16117
2069752c 16118case `$as_basename -- gstdint.h ||
16119$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16120 Xgstdint.h : 'X\(//\)$' \| \
16121 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16122$as_echo X/gstdint.h |
16123 sed '/^.*\/\([^/][^/]*\)\/*$/{
16124 s//\1/
16125 q
16126 }
16127 /^X\/\(\/\/\)$/{
16128 s//\1/
16129 q
16130 }
16131 /^X\/\(\/\).*/{
16132 s//\1/
16133 q
16134 }
16135 s/.*/./; q'` in
16136 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16137$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16138 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16139$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16140 *) ;;
16141esac
d2fc5bb1 16142
2069752c 16143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16144$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
e93cd318 16145
2069752c 16146# ----------------- done included file, check C basic types --------
99798ba4 16147
2069752c 16148# Lacking an uintptr_t? Test size of void *
16149case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16150 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16151# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16152# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16153# This bug is HP SR number 8606223364.
16154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16155$as_echo_n "checking size of void *... " >&6; }
16156if test "${ac_cv_sizeof_void_p+set}" = set; then :
16157 $as_echo_n "(cached) " >&6
16158else
16159 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
99798ba4 16160
2069752c 16161else
16162 if test "$ac_cv_type_void_p" = yes; then
16163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16165{ as_fn_set_status 77
16166as_fn_error "cannot compute sizeof (void *)
16167See \`config.log' for more details." "$LINENO" 5; }; }
16168 else
16169 ac_cv_sizeof_void_p=0
16170 fi
16171fi
ea6b3890 16172
2069752c 16173fi
16174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16175$as_echo "$ac_cv_sizeof_void_p" >&6; }
ea6b3890 16176
99798ba4 16177
16178
ea6b3890 16179cat >>confdefs.h <<_ACEOF
2069752c 16180#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
ea6b3890 16181_ACEOF
ea6b3890 16182
2069752c 16183 ;;
16184esac
ea6b3890 16185
2069752c 16186# Lacking an uint64_t? Test size of long
16187case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16188 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16189# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16190# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16191# This bug is HP SR number 8606223364.
16192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16193$as_echo_n "checking size of long... " >&6; }
16194if test "${ac_cv_sizeof_long+set}" = set; then :
cd9a469c 16195 $as_echo_n "(cached) " >&6
16196else
2069752c 16197 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
ea6b3890 16198
c634bedf 16199else
2069752c 16200 if test "$ac_cv_type_long" = yes; then
16201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16203{ as_fn_set_status 77
16204as_fn_error "cannot compute sizeof (long)
16205See \`config.log' for more details." "$LINENO" 5; }; }
16206 else
16207 ac_cv_sizeof_long=0
16208 fi
cd9a469c 16209fi
c634bedf 16210
2069752c 16211fi
16212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16213$as_echo "$ac_cv_sizeof_long" >&6; }
ea6b3890 16214
c634bedf 16215
ea6b3890 16216
16217cat >>confdefs.h <<_ACEOF
2069752c 16218#define SIZEOF_LONG $ac_cv_sizeof_long
ea6b3890 16219_ACEOF
c634bedf 16220
2069752c 16221 ;;
16222esac
74b918e9 16223
2069752c 16224if test $acx_cv_header_stdint = stddef.h; then
16225 # Lacking a good header? Test size of everything and deduce all types.
16226 # The cast to long int works around a bug in the HP C Compiler
16227# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16228# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16229# This bug is HP SR number 8606223364.
16230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16231$as_echo_n "checking size of int... " >&6; }
16232if test "${ac_cv_sizeof_int+set}" = set; then :
16233 $as_echo_n "(cached) " >&6
16234else
16235 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
c0e8efbe 16236
2069752c 16237else
16238 if test "$ac_cv_type_int" = yes; then
16239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16241{ as_fn_set_status 77
16242as_fn_error "cannot compute sizeof (int)
16243See \`config.log' for more details." "$LINENO" 5; }; }
16244 else
16245 ac_cv_sizeof_int=0
16246 fi
16247fi
5a037dbd 16248
2069752c 16249fi
16250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16251$as_echo "$ac_cv_sizeof_int" >&6; }
e0582811 16252
16253
99798ba4 16254
ea6b3890 16255cat >>confdefs.h <<_ACEOF
2069752c 16256#define SIZEOF_INT $ac_cv_sizeof_int
ea6b3890 16257_ACEOF
16258
ea6b3890 16259
2069752c 16260 # The cast to long int works around a bug in the HP C Compiler
16261# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16262# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16263# This bug is HP SR number 8606223364.
16264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16265$as_echo_n "checking size of short... " >&6; }
16266if test "${ac_cv_sizeof_short+set}" = set; then :
16267 $as_echo_n "(cached) " >&6
16268else
16269 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
ea6b3890 16270
2069752c 16271else
16272 if test "$ac_cv_type_short" = yes; then
16273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16275{ as_fn_set_status 77
16276as_fn_error "cannot compute sizeof (short)
16277See \`config.log' for more details." "$LINENO" 5; }; }
16278 else
16279 ac_cv_sizeof_short=0
16280 fi
16281fi
ea6b3890 16282
2069752c 16283fi
16284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16285$as_echo "$ac_cv_sizeof_short" >&6; }
ea6b3890 16286
16287
16288
2069752c 16289cat >>confdefs.h <<_ACEOF
16290#define SIZEOF_SHORT $ac_cv_sizeof_short
16291_ACEOF
ea6b3890 16292
16293
2069752c 16294 # The cast to long int works around a bug in the HP C Compiler
16295# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16296# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16297# This bug is HP SR number 8606223364.
16298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16299$as_echo_n "checking size of char... " >&6; }
16300if test "${ac_cv_sizeof_char+set}" = set; then :
16301 $as_echo_n "(cached) " >&6
16302else
16303 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
ea6b3890 16304
2069752c 16305else
16306 if test "$ac_cv_type_char" = yes; then
16307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16309{ as_fn_set_status 77
16310as_fn_error "cannot compute sizeof (char)
16311See \`config.log' for more details." "$LINENO" 5; }; }
16312 else
16313 ac_cv_sizeof_char=0
16314 fi
16315fi
ea6b3890 16316
2069752c 16317fi
16318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16319$as_echo "$ac_cv_sizeof_char" >&6; }
ea6b3890 16320
16321
ea6b3890 16322
cd9a469c 16323cat >>confdefs.h <<_ACEOF
2069752c 16324#define SIZEOF_CHAR $ac_cv_sizeof_char
99798ba4 16325_ACEOF
99798ba4 16326
99798ba4 16327
eaae6999 16328
2069752c 16329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16330$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16331 case "$ac_cv_sizeof_char" in
16332 1) acx_cv_type_int8_t=char ;;
9b15a251 16333 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
2069752c 16334 esac
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16336$as_echo "$acx_cv_type_int8_t" >&6; }
16337
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16339$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16340 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16341 2:*) acx_cv_type_int16_t=int ;;
16342 *:2) acx_cv_type_int16_t=short ;;
9b15a251 16343 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
2069752c 16344 esac
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16346$as_echo "$acx_cv_type_int16_t" >&6; }
16347
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16349$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16350 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16351 4:*) acx_cv_type_int32_t=int ;;
16352 *:4) acx_cv_type_int32_t=long ;;
9b15a251 16353 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
2069752c 16354 esac
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16356$as_echo "$acx_cv_type_int32_t" >&6; }
cd9a469c 16357fi
16358
2069752c 16359# These tests are here to make the output prettier
ea6b3890 16360
2069752c 16361if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16362 case "$ac_cv_sizeof_long" in
16363 8) acx_cv_type_int64_t=long ;;
16364 esac
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16366$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16368$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16369fi
16370
16371# Now we can use the above types
16372
16373if test "$ac_cv_type_uintptr_t" != yes; then
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16375$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16376 case $ac_cv_sizeof_void_p in
16377 2) acx_cv_type_intptr_t=int16_t ;;
16378 4) acx_cv_type_intptr_t=int32_t ;;
16379 8) acx_cv_type_intptr_t=int64_t ;;
9b15a251 16380 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
2069752c 16381 esac
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16383$as_echo "$acx_cv_type_intptr_t" >&6; }
16384fi
ea6b3890 16385
2069752c 16386# ----------------- done all checks, emit header -------------
cd9a469c 16387ac_config_commands="$ac_config_commands gstdint.h"
eaae6999 16388
eaae6999 16389
cd9a469c 16390
16391
16392ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16393if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16394
16395cat >>confdefs.h <<_ACEOF
16396#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
eaae6999 16397_ACEOF
eaae6999 16398
cd9a469c 16399
eaae6999 16400fi
cd9a469c 16401ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16402if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16403
16404cat >>confdefs.h <<_ACEOF
16405#define HAVE_STRUCT_STAT_ST_BLOCKS 1
eaae6999 16406_ACEOF
16407
cd9a469c 16408
eaae6999 16409fi
cd9a469c 16410ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16411if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
eaae6999 16412
cd9a469c 16413cat >>confdefs.h <<_ACEOF
16414#define HAVE_STRUCT_STAT_ST_RDEV 1
16415_ACEOF
99798ba4 16416
16417
b52ee437 16418fi
cd9a469c 16419
16420
16421# Check for library functions.
4dd3972f 16422
4dd3972f 16423
a1aa1d30 16424
16425 for ac_func in $ac_func_list
cd9a469c 16426do :
16427 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16428ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16429eval as_val=\$$as_ac_var
16430 if test "x$as_val" = x""yes; then :
16431 cat >>confdefs.h <<_ACEOF
16432#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16433_ACEOF
4dd3972f 16434
cd9a469c 16435fi
16436done
4dd3972f 16437
4dd3972f 16438
cd9a469c 16439
90973b19 16440
cd9a469c 16441
cd9a469c 16442
cd9a469c 16443
4ee9c684 16444
4ee9c684 16445
a2c0dc0f 16446
a2c0dc0f 16447
4ee9c684 16448
adad6c74 16449
adad6c74 16450
adad6c74 16451
adad6c74 16452
adad6c74 16453
adad6c74 16454
adad6c74 16455
adad6c74 16456
99798ba4 16457
99798ba4 16458
99798ba4 16459
99798ba4 16460
adad6c74 16461
adad6c74 16462
adad6c74 16463
adad6c74 16464
c0e8efbe 16465
c0e8efbe 16466
c0e8efbe 16467
a1aa1d30 16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
c0e8efbe 16536
adad6c74 16537
8f838781 16538# Check for C99 (and other IEEE) math functions
cd9a469c 16539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf in -lm" >&5
16540$as_echo_n "checking for acosf in -lm... " >&6; }
16541if test "${ac_cv_lib_m_acosf+set}" = set; then :
16542 $as_echo_n "(cached) " >&6
8f838781 16543else
16544 ac_check_lib_save_LIBS=$LIBS
16545LIBS="-lm $LIBS"
b52ee437 16546if test x$gcc_no_link = xyes; then
cd9a469c 16547 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16548fi
cd9a469c 16549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 16550/* end confdefs.h. */
16551
cd9a469c 16552/* Override any GCC internal prototype to avoid an error.
16553 Use char because int might match the return type of a GCC
16554 builtin and then its argument prototype would still apply. */
8f838781 16555#ifdef __cplusplus
16556extern "C"
16557#endif
8f838781 16558char acosf ();
16559int
16560main ()
16561{
cd9a469c 16562return acosf ();
8f838781 16563 ;
16564 return 0;
16565}
16566_ACEOF
cd9a469c 16567if ac_fn_c_try_link "$LINENO"; then :
8f838781 16568 ac_cv_lib_m_acosf=yes
16569else
cd9a469c 16570 ac_cv_lib_m_acosf=no
8f838781 16571fi
cd9a469c 16572rm -f core conftest.err conftest.$ac_objext \
16573 conftest$ac_exeext conftest.$ac_ext
8f838781 16574LIBS=$ac_check_lib_save_LIBS
16575fi
cd9a469c 16576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosf" >&5
16577$as_echo "$ac_cv_lib_m_acosf" >&6; }
16578if test "x$ac_cv_lib_m_acosf" = x""yes; then :
8f838781 16579
cd9a469c 16580$as_echo "#define HAVE_ACOSF 1" >>confdefs.h
8f838781 16581
16582fi
16583
cd9a469c 16584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos in -lm" >&5
16585$as_echo_n "checking for acos in -lm... " >&6; }
16586if test "${ac_cv_lib_m_acos+set}" = set; then :
16587 $as_echo_n "(cached) " >&6
b52ee437 16588else
16589 ac_check_lib_save_LIBS=$LIBS
16590LIBS="-lm $LIBS"
16591if test x$gcc_no_link = xyes; then
cd9a469c 16592 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16593fi
cd9a469c 16594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 16595/* end confdefs.h. */
16596
cd9a469c 16597/* Override any GCC internal prototype to avoid an error.
16598 Use char because int might match the return type of a GCC
16599 builtin and then its argument prototype would still apply. */
b52ee437 16600#ifdef __cplusplus
16601extern "C"
16602#endif
d213114b 16603char acos ();
b52ee437 16604int
16605main ()
16606{
cd9a469c 16607return acos ();
b52ee437 16608 ;
16609 return 0;
16610}
16611_ACEOF
cd9a469c 16612if ac_fn_c_try_link "$LINENO"; then :
d213114b 16613 ac_cv_lib_m_acos=yes
b52ee437 16614else
cd9a469c 16615 ac_cv_lib_m_acos=no
b52ee437 16616fi
cd9a469c 16617rm -f core conftest.err conftest.$ac_objext \
16618 conftest$ac_exeext conftest.$ac_ext
b52ee437 16619LIBS=$ac_check_lib_save_LIBS
16620fi
cd9a469c 16621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acos" >&5
16622$as_echo "$ac_cv_lib_m_acos" >&6; }
16623if test "x$ac_cv_lib_m_acos" = x""yes; then :
b52ee437 16624
cd9a469c 16625$as_echo "#define HAVE_ACOS 1" >>confdefs.h
b52ee437 16626
16627fi
16628
cd9a469c 16629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl in -lm" >&5
16630$as_echo_n "checking for acosl in -lm... " >&6; }
16631if test "${ac_cv_lib_m_acosl+set}" = set; then :
16632 $as_echo_n "(cached) " >&6
8f838781 16633else
16634 ac_check_lib_save_LIBS=$LIBS
16635LIBS="-lm $LIBS"
b52ee437 16636if test x$gcc_no_link = xyes; then
cd9a469c 16637 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16638fi
cd9a469c 16639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 16640/* end confdefs.h. */
16641
cd9a469c 16642/* Override any GCC internal prototype to avoid an error.
16643 Use char because int might match the return type of a GCC
16644 builtin and then its argument prototype would still apply. */
8f838781 16645#ifdef __cplusplus
16646extern "C"
16647#endif
d213114b 16648char acosl ();
8f838781 16649int
16650main ()
16651{
cd9a469c 16652return acosl ();
8f838781 16653 ;
16654 return 0;
16655}
16656_ACEOF
cd9a469c 16657if ac_fn_c_try_link "$LINENO"; then :
d213114b 16658 ac_cv_lib_m_acosl=yes
8f838781 16659else
cd9a469c 16660 ac_cv_lib_m_acosl=no
8f838781 16661fi
cd9a469c 16662rm -f core conftest.err conftest.$ac_objext \
16663 conftest$ac_exeext conftest.$ac_ext
8f838781 16664LIBS=$ac_check_lib_save_LIBS
16665fi
cd9a469c 16666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosl" >&5
16667$as_echo "$ac_cv_lib_m_acosl" >&6; }
16668if test "x$ac_cv_lib_m_acosl" = x""yes; then :
8f838781 16669
cd9a469c 16670$as_echo "#define HAVE_ACOSL 1" >>confdefs.h
8f838781 16671
16672fi
16673
cd9a469c 16674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf in -lm" >&5
16675$as_echo_n "checking for acoshf in -lm... " >&6; }
16676if test "${ac_cv_lib_m_acoshf+set}" = set; then :
16677 $as_echo_n "(cached) " >&6
b52ee437 16678else
16679 ac_check_lib_save_LIBS=$LIBS
16680LIBS="-lm $LIBS"
16681if test x$gcc_no_link = xyes; then
cd9a469c 16682 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16683fi
cd9a469c 16684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 16685/* end confdefs.h. */
16686
cd9a469c 16687/* Override any GCC internal prototype to avoid an error.
16688 Use char because int might match the return type of a GCC
16689 builtin and then its argument prototype would still apply. */
b52ee437 16690#ifdef __cplusplus
16691extern "C"
16692#endif
d213114b 16693char acoshf ();
b52ee437 16694int
16695main ()
16696{
cd9a469c 16697return acoshf ();
b52ee437 16698 ;
16699 return 0;
16700}
16701_ACEOF
cd9a469c 16702if ac_fn_c_try_link "$LINENO"; then :
d213114b 16703 ac_cv_lib_m_acoshf=yes
b52ee437 16704else
cd9a469c 16705 ac_cv_lib_m_acoshf=no
b52ee437 16706fi
cd9a469c 16707rm -f core conftest.err conftest.$ac_objext \
16708 conftest$ac_exeext conftest.$ac_ext
b52ee437 16709LIBS=$ac_check_lib_save_LIBS
16710fi
cd9a469c 16711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acoshf" >&5
16712$as_echo "$ac_cv_lib_m_acoshf" >&6; }
16713if test "x$ac_cv_lib_m_acoshf" = x""yes; then :
b52ee437 16714
cd9a469c 16715$as_echo "#define HAVE_ACOSHF 1" >>confdefs.h
b52ee437 16716
16717fi
16718
cd9a469c 16719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh in -lm" >&5
16720$as_echo_n "checking for acosh in -lm... " >&6; }
16721if test "${ac_cv_lib_m_acosh+set}" = set; then :
16722 $as_echo_n "(cached) " >&6
8f838781 16723else
16724 ac_check_lib_save_LIBS=$LIBS
16725LIBS="-lm $LIBS"
b52ee437 16726if test x$gcc_no_link = xyes; then
cd9a469c 16727 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16728fi
cd9a469c 16729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 16730/* end confdefs.h. */
16731
cd9a469c 16732/* Override any GCC internal prototype to avoid an error.
16733 Use char because int might match the return type of a GCC
16734 builtin and then its argument prototype would still apply. */
8f838781 16735#ifdef __cplusplus
16736extern "C"
16737#endif
d213114b 16738char acosh ();
8f838781 16739int
16740main ()
16741{
cd9a469c 16742return acosh ();
8f838781 16743 ;
16744 return 0;
16745}
16746_ACEOF
cd9a469c 16747if ac_fn_c_try_link "$LINENO"; then :
d213114b 16748 ac_cv_lib_m_acosh=yes
8f838781 16749else
cd9a469c 16750 ac_cv_lib_m_acosh=no
8f838781 16751fi
cd9a469c 16752rm -f core conftest.err conftest.$ac_objext \
16753 conftest$ac_exeext conftest.$ac_ext
8f838781 16754LIBS=$ac_check_lib_save_LIBS
16755fi
cd9a469c 16756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosh" >&5
16757$as_echo "$ac_cv_lib_m_acosh" >&6; }
16758if test "x$ac_cv_lib_m_acosh" = x""yes; then :
8f838781 16759
cd9a469c 16760$as_echo "#define HAVE_ACOSH 1" >>confdefs.h
8f838781 16761
16762fi
16763
cd9a469c 16764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl in -lm" >&5
16765$as_echo_n "checking for acoshl in -lm... " >&6; }
16766if test "${ac_cv_lib_m_acoshl+set}" = set; then :
16767 $as_echo_n "(cached) " >&6
8f838781 16768else
16769 ac_check_lib_save_LIBS=$LIBS
16770LIBS="-lm $LIBS"
b52ee437 16771if test x$gcc_no_link = xyes; then
cd9a469c 16772 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16773fi
cd9a469c 16774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 16775/* end confdefs.h. */
16776
cd9a469c 16777/* Override any GCC internal prototype to avoid an error.
16778 Use char because int might match the return type of a GCC
16779 builtin and then its argument prototype would still apply. */
8f838781 16780#ifdef __cplusplus
16781extern "C"
16782#endif
d213114b 16783char acoshl ();
8f838781 16784int
16785main ()
16786{
cd9a469c 16787return acoshl ();
8f838781 16788 ;
cd9a469c 16789 return 0;
16790}
16791_ACEOF
16792if ac_fn_c_try_link "$LINENO"; then :
d213114b 16793 ac_cv_lib_m_acoshl=yes
8f838781 16794else
cd9a469c 16795 ac_cv_lib_m_acoshl=no
8f838781 16796fi
cd9a469c 16797rm -f core conftest.err conftest.$ac_objext \
16798 conftest$ac_exeext conftest.$ac_ext
8f838781 16799LIBS=$ac_check_lib_save_LIBS
16800fi
cd9a469c 16801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acoshl" >&5
16802$as_echo "$ac_cv_lib_m_acoshl" >&6; }
16803if test "x$ac_cv_lib_m_acoshl" = x""yes; then :
8f838781 16804
cd9a469c 16805$as_echo "#define HAVE_ACOSHL 1" >>confdefs.h
8f838781 16806
16807fi
16808
cd9a469c 16809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf in -lm" >&5
16810$as_echo_n "checking for asinf in -lm... " >&6; }
16811if test "${ac_cv_lib_m_asinf+set}" = set; then :
16812 $as_echo_n "(cached) " >&6
b52ee437 16813else
16814 ac_check_lib_save_LIBS=$LIBS
16815LIBS="-lm $LIBS"
16816if test x$gcc_no_link = xyes; then
cd9a469c 16817 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16818fi
cd9a469c 16819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 16820/* end confdefs.h. */
16821
cd9a469c 16822/* Override any GCC internal prototype to avoid an error.
16823 Use char because int might match the return type of a GCC
16824 builtin and then its argument prototype would still apply. */
b52ee437 16825#ifdef __cplusplus
16826extern "C"
16827#endif
d213114b 16828char asinf ();
b52ee437 16829int
16830main ()
16831{
cd9a469c 16832return asinf ();
b52ee437 16833 ;
16834 return 0;
16835}
16836_ACEOF
cd9a469c 16837if ac_fn_c_try_link "$LINENO"; then :
d213114b 16838 ac_cv_lib_m_asinf=yes
b52ee437 16839else
cd9a469c 16840 ac_cv_lib_m_asinf=no
b52ee437 16841fi
cd9a469c 16842rm -f core conftest.err conftest.$ac_objext \
16843 conftest$ac_exeext conftest.$ac_ext
b52ee437 16844LIBS=$ac_check_lib_save_LIBS
16845fi
cd9a469c 16846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinf" >&5
16847$as_echo "$ac_cv_lib_m_asinf" >&6; }
16848if test "x$ac_cv_lib_m_asinf" = x""yes; then :
b52ee437 16849
cd9a469c 16850$as_echo "#define HAVE_ASINF 1" >>confdefs.h
b52ee437 16851
16852fi
16853
cd9a469c 16854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
16855$as_echo_n "checking for asin in -lm... " >&6; }
16856if test "${ac_cv_lib_m_asin+set}" = set; then :
16857 $as_echo_n "(cached) " >&6
8f838781 16858else
16859 ac_check_lib_save_LIBS=$LIBS
16860LIBS="-lm $LIBS"
b52ee437 16861if test x$gcc_no_link = xyes; then
cd9a469c 16862 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16863fi
cd9a469c 16864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 16865/* end confdefs.h. */
16866
cd9a469c 16867/* Override any GCC internal prototype to avoid an error.
16868 Use char because int might match the return type of a GCC
16869 builtin and then its argument prototype would still apply. */
8f838781 16870#ifdef __cplusplus
16871extern "C"
16872#endif
d213114b 16873char asin ();
8f838781 16874int
16875main ()
16876{
cd9a469c 16877return asin ();
8f838781 16878 ;
16879 return 0;
16880}
16881_ACEOF
cd9a469c 16882if ac_fn_c_try_link "$LINENO"; then :
d213114b 16883 ac_cv_lib_m_asin=yes
8f838781 16884else
cd9a469c 16885 ac_cv_lib_m_asin=no
8f838781 16886fi
cd9a469c 16887rm -f core conftest.err conftest.$ac_objext \
16888 conftest$ac_exeext conftest.$ac_ext
8f838781 16889LIBS=$ac_check_lib_save_LIBS
16890fi
cd9a469c 16891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
16892$as_echo "$ac_cv_lib_m_asin" >&6; }
16893if test "x$ac_cv_lib_m_asin" = x""yes; then :
8f838781 16894
cd9a469c 16895$as_echo "#define HAVE_ASIN 1" >>confdefs.h
8f838781 16896
16897fi
16898
cd9a469c 16899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl in -lm" >&5
16900$as_echo_n "checking for asinl in -lm... " >&6; }
16901if test "${ac_cv_lib_m_asinl+set}" = set; then :
16902 $as_echo_n "(cached) " >&6
8f838781 16903else
16904 ac_check_lib_save_LIBS=$LIBS
16905LIBS="-lm $LIBS"
b52ee437 16906if test x$gcc_no_link = xyes; then
cd9a469c 16907 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16908fi
cd9a469c 16909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 16910/* end confdefs.h. */
16911
cd9a469c 16912/* Override any GCC internal prototype to avoid an error.
16913 Use char because int might match the return type of a GCC
16914 builtin and then its argument prototype would still apply. */
8f838781 16915#ifdef __cplusplus
16916extern "C"
16917#endif
d213114b 16918char asinl ();
8f838781 16919int
16920main ()
16921{
cd9a469c 16922return asinl ();
8f838781 16923 ;
16924 return 0;
16925}
16926_ACEOF
cd9a469c 16927if ac_fn_c_try_link "$LINENO"; then :
d213114b 16928 ac_cv_lib_m_asinl=yes
8f838781 16929else
cd9a469c 16930 ac_cv_lib_m_asinl=no
8f838781 16931fi
cd9a469c 16932rm -f core conftest.err conftest.$ac_objext \
16933 conftest$ac_exeext conftest.$ac_ext
8f838781 16934LIBS=$ac_check_lib_save_LIBS
16935fi
cd9a469c 16936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinl" >&5
16937$as_echo "$ac_cv_lib_m_asinl" >&6; }
16938if test "x$ac_cv_lib_m_asinl" = x""yes; then :
8f838781 16939
cd9a469c 16940$as_echo "#define HAVE_ASINL 1" >>confdefs.h
8f838781 16941
16942fi
16943
cd9a469c 16944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf in -lm" >&5
16945$as_echo_n "checking for asinhf in -lm... " >&6; }
16946if test "${ac_cv_lib_m_asinhf+set}" = set; then :
16947 $as_echo_n "(cached) " >&6
8f838781 16948else
16949 ac_check_lib_save_LIBS=$LIBS
16950LIBS="-lm $LIBS"
b52ee437 16951if test x$gcc_no_link = xyes; then
cd9a469c 16952 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16953fi
cd9a469c 16954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 16955/* end confdefs.h. */
16956
cd9a469c 16957/* Override any GCC internal prototype to avoid an error.
16958 Use char because int might match the return type of a GCC
16959 builtin and then its argument prototype would still apply. */
8f838781 16960#ifdef __cplusplus
16961extern "C"
16962#endif
d213114b 16963char asinhf ();
8f838781 16964int
16965main ()
16966{
cd9a469c 16967return asinhf ();
8f838781 16968 ;
16969 return 0;
16970}
16971_ACEOF
cd9a469c 16972if ac_fn_c_try_link "$LINENO"; then :
d213114b 16973 ac_cv_lib_m_asinhf=yes
8f838781 16974else
cd9a469c 16975 ac_cv_lib_m_asinhf=no
8f838781 16976fi
cd9a469c 16977rm -f core conftest.err conftest.$ac_objext \
16978 conftest$ac_exeext conftest.$ac_ext
8f838781 16979LIBS=$ac_check_lib_save_LIBS
16980fi
cd9a469c 16981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinhf" >&5
16982$as_echo "$ac_cv_lib_m_asinhf" >&6; }
16983if test "x$ac_cv_lib_m_asinhf" = x""yes; then :
8f838781 16984
cd9a469c 16985$as_echo "#define HAVE_ASINHF 1" >>confdefs.h
8f838781 16986
16987fi
16988
cd9a469c 16989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh in -lm" >&5
16990$as_echo_n "checking for asinh in -lm... " >&6; }
16991if test "${ac_cv_lib_m_asinh+set}" = set; then :
16992 $as_echo_n "(cached) " >&6
8f838781 16993else
16994 ac_check_lib_save_LIBS=$LIBS
16995LIBS="-lm $LIBS"
b52ee437 16996if test x$gcc_no_link = xyes; then
cd9a469c 16997 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 16998fi
cd9a469c 16999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17000/* end confdefs.h. */
17001
cd9a469c 17002/* Override any GCC internal prototype to avoid an error.
17003 Use char because int might match the return type of a GCC
17004 builtin and then its argument prototype would still apply. */
8f838781 17005#ifdef __cplusplus
17006extern "C"
17007#endif
d213114b 17008char asinh ();
8f838781 17009int
17010main ()
17011{
cd9a469c 17012return asinh ();
8f838781 17013 ;
17014 return 0;
17015}
17016_ACEOF
cd9a469c 17017if ac_fn_c_try_link "$LINENO"; then :
d213114b 17018 ac_cv_lib_m_asinh=yes
8f838781 17019else
cd9a469c 17020 ac_cv_lib_m_asinh=no
8f838781 17021fi
cd9a469c 17022rm -f core conftest.err conftest.$ac_objext \
17023 conftest$ac_exeext conftest.$ac_ext
8f838781 17024LIBS=$ac_check_lib_save_LIBS
17025fi
cd9a469c 17026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinh" >&5
17027$as_echo "$ac_cv_lib_m_asinh" >&6; }
17028if test "x$ac_cv_lib_m_asinh" = x""yes; then :
8f838781 17029
cd9a469c 17030$as_echo "#define HAVE_ASINH 1" >>confdefs.h
8f838781 17031
17032fi
17033
cd9a469c 17034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl in -lm" >&5
17035$as_echo_n "checking for asinhl in -lm... " >&6; }
17036if test "${ac_cv_lib_m_asinhl+set}" = set; then :
17037 $as_echo_n "(cached) " >&6
8f838781 17038else
17039 ac_check_lib_save_LIBS=$LIBS
17040LIBS="-lm $LIBS"
b52ee437 17041if test x$gcc_no_link = xyes; then
cd9a469c 17042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17043fi
cd9a469c 17044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17045/* end confdefs.h. */
17046
cd9a469c 17047/* Override any GCC internal prototype to avoid an error.
17048 Use char because int might match the return type of a GCC
17049 builtin and then its argument prototype would still apply. */
8f838781 17050#ifdef __cplusplus
17051extern "C"
17052#endif
d213114b 17053char asinhl ();
8f838781 17054int
17055main ()
17056{
cd9a469c 17057return asinhl ();
8f838781 17058 ;
17059 return 0;
17060}
17061_ACEOF
cd9a469c 17062if ac_fn_c_try_link "$LINENO"; then :
d213114b 17063 ac_cv_lib_m_asinhl=yes
8f838781 17064else
cd9a469c 17065 ac_cv_lib_m_asinhl=no
8f838781 17066fi
cd9a469c 17067rm -f core conftest.err conftest.$ac_objext \
17068 conftest$ac_exeext conftest.$ac_ext
8f838781 17069LIBS=$ac_check_lib_save_LIBS
17070fi
cd9a469c 17071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinhl" >&5
17072$as_echo "$ac_cv_lib_m_asinhl" >&6; }
17073if test "x$ac_cv_lib_m_asinhl" = x""yes; then :
8f838781 17074
cd9a469c 17075$as_echo "#define HAVE_ASINHL 1" >>confdefs.h
8f838781 17076
17077fi
17078
cd9a469c 17079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f in -lm" >&5
17080$as_echo_n "checking for atan2f in -lm... " >&6; }
17081if test "${ac_cv_lib_m_atan2f+set}" = set; then :
17082 $as_echo_n "(cached) " >&6
334f03a1 17083else
17084 ac_check_lib_save_LIBS=$LIBS
17085LIBS="-lm $LIBS"
b52ee437 17086if test x$gcc_no_link = xyes; then
cd9a469c 17087 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17088fi
cd9a469c 17089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
334f03a1 17090/* end confdefs.h. */
17091
cd9a469c 17092/* Override any GCC internal prototype to avoid an error.
17093 Use char because int might match the return type of a GCC
17094 builtin and then its argument prototype would still apply. */
334f03a1 17095#ifdef __cplusplus
17096extern "C"
17097#endif
d213114b 17098char atan2f ();
334f03a1 17099int
17100main ()
17101{
cd9a469c 17102return atan2f ();
334f03a1 17103 ;
17104 return 0;
17105}
17106_ACEOF
cd9a469c 17107if ac_fn_c_try_link "$LINENO"; then :
d213114b 17108 ac_cv_lib_m_atan2f=yes
334f03a1 17109else
cd9a469c 17110 ac_cv_lib_m_atan2f=no
334f03a1 17111fi
cd9a469c 17112rm -f core conftest.err conftest.$ac_objext \
17113 conftest$ac_exeext conftest.$ac_ext
334f03a1 17114LIBS=$ac_check_lib_save_LIBS
17115fi
cd9a469c 17116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2f" >&5
17117$as_echo "$ac_cv_lib_m_atan2f" >&6; }
17118if test "x$ac_cv_lib_m_atan2f" = x""yes; then :
334f03a1 17119
cd9a469c 17120$as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
334f03a1 17121
17122fi
17123
cd9a469c 17124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2 in -lm" >&5
17125$as_echo_n "checking for atan2 in -lm... " >&6; }
17126if test "${ac_cv_lib_m_atan2+set}" = set; then :
17127 $as_echo_n "(cached) " >&6
8f838781 17128else
17129 ac_check_lib_save_LIBS=$LIBS
17130LIBS="-lm $LIBS"
b52ee437 17131if test x$gcc_no_link = xyes; then
cd9a469c 17132 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17133fi
cd9a469c 17134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17135/* end confdefs.h. */
17136
cd9a469c 17137/* Override any GCC internal prototype to avoid an error.
17138 Use char because int might match the return type of a GCC
17139 builtin and then its argument prototype would still apply. */
8f838781 17140#ifdef __cplusplus
17141extern "C"
17142#endif
d213114b 17143char atan2 ();
8f838781 17144int
17145main ()
17146{
cd9a469c 17147return atan2 ();
8f838781 17148 ;
17149 return 0;
17150}
17151_ACEOF
cd9a469c 17152if ac_fn_c_try_link "$LINENO"; then :
d213114b 17153 ac_cv_lib_m_atan2=yes
8f838781 17154else
cd9a469c 17155 ac_cv_lib_m_atan2=no
8f838781 17156fi
cd9a469c 17157rm -f core conftest.err conftest.$ac_objext \
17158 conftest$ac_exeext conftest.$ac_ext
8f838781 17159LIBS=$ac_check_lib_save_LIBS
17160fi
cd9a469c 17161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2" >&5
17162$as_echo "$ac_cv_lib_m_atan2" >&6; }
17163if test "x$ac_cv_lib_m_atan2" = x""yes; then :
8f838781 17164
cd9a469c 17165$as_echo "#define HAVE_ATAN2 1" >>confdefs.h
8f838781 17166
17167fi
17168
cd9a469c 17169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l in -lm" >&5
17170$as_echo_n "checking for atan2l in -lm... " >&6; }
17171if test "${ac_cv_lib_m_atan2l+set}" = set; then :
17172 $as_echo_n "(cached) " >&6
8f838781 17173else
17174 ac_check_lib_save_LIBS=$LIBS
17175LIBS="-lm $LIBS"
b52ee437 17176if test x$gcc_no_link = xyes; then
cd9a469c 17177 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17178fi
cd9a469c 17179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17180/* end confdefs.h. */
17181
cd9a469c 17182/* Override any GCC internal prototype to avoid an error.
17183 Use char because int might match the return type of a GCC
17184 builtin and then its argument prototype would still apply. */
8f838781 17185#ifdef __cplusplus
17186extern "C"
17187#endif
d213114b 17188char atan2l ();
8f838781 17189int
17190main ()
17191{
cd9a469c 17192return atan2l ();
8f838781 17193 ;
17194 return 0;
17195}
17196_ACEOF
cd9a469c 17197if ac_fn_c_try_link "$LINENO"; then :
d213114b 17198 ac_cv_lib_m_atan2l=yes
8f838781 17199else
cd9a469c 17200 ac_cv_lib_m_atan2l=no
8f838781 17201fi
cd9a469c 17202rm -f core conftest.err conftest.$ac_objext \
17203 conftest$ac_exeext conftest.$ac_ext
8f838781 17204LIBS=$ac_check_lib_save_LIBS
17205fi
cd9a469c 17206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2l" >&5
17207$as_echo "$ac_cv_lib_m_atan2l" >&6; }
17208if test "x$ac_cv_lib_m_atan2l" = x""yes; then :
8f838781 17209
cd9a469c 17210$as_echo "#define HAVE_ATAN2L 1" >>confdefs.h
8f838781 17211
17212fi
17213
cd9a469c 17214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf in -lm" >&5
17215$as_echo_n "checking for atanf in -lm... " >&6; }
17216if test "${ac_cv_lib_m_atanf+set}" = set; then :
17217 $as_echo_n "(cached) " >&6
8f838781 17218else
17219 ac_check_lib_save_LIBS=$LIBS
17220LIBS="-lm $LIBS"
b52ee437 17221if test x$gcc_no_link = xyes; then
cd9a469c 17222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17223fi
cd9a469c 17224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17225/* end confdefs.h. */
17226
cd9a469c 17227/* Override any GCC internal prototype to avoid an error.
17228 Use char because int might match the return type of a GCC
17229 builtin and then its argument prototype would still apply. */
8f838781 17230#ifdef __cplusplus
17231extern "C"
17232#endif
d213114b 17233char atanf ();
8f838781 17234int
17235main ()
17236{
cd9a469c 17237return atanf ();
8f838781 17238 ;
17239 return 0;
17240}
17241_ACEOF
cd9a469c 17242if ac_fn_c_try_link "$LINENO"; then :
d213114b 17243 ac_cv_lib_m_atanf=yes
8f838781 17244else
cd9a469c 17245 ac_cv_lib_m_atanf=no
8f838781 17246fi
cd9a469c 17247rm -f core conftest.err conftest.$ac_objext \
17248 conftest$ac_exeext conftest.$ac_ext
8f838781 17249LIBS=$ac_check_lib_save_LIBS
17250fi
cd9a469c 17251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanf" >&5
17252$as_echo "$ac_cv_lib_m_atanf" >&6; }
17253if test "x$ac_cv_lib_m_atanf" = x""yes; then :
8f838781 17254
cd9a469c 17255$as_echo "#define HAVE_ATANF 1" >>confdefs.h
8f838781 17256
17257fi
17258
cd9a469c 17259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan in -lm" >&5
17260$as_echo_n "checking for atan in -lm... " >&6; }
17261if test "${ac_cv_lib_m_atan+set}" = set; then :
17262 $as_echo_n "(cached) " >&6
8f838781 17263else
17264 ac_check_lib_save_LIBS=$LIBS
17265LIBS="-lm $LIBS"
b52ee437 17266if test x$gcc_no_link = xyes; then
cd9a469c 17267 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17268fi
cd9a469c 17269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17270/* end confdefs.h. */
17271
cd9a469c 17272/* Override any GCC internal prototype to avoid an error.
17273 Use char because int might match the return type of a GCC
17274 builtin and then its argument prototype would still apply. */
8f838781 17275#ifdef __cplusplus
17276extern "C"
17277#endif
d213114b 17278char atan ();
8f838781 17279int
17280main ()
17281{
cd9a469c 17282return atan ();
8f838781 17283 ;
17284 return 0;
17285}
17286_ACEOF
cd9a469c 17287if ac_fn_c_try_link "$LINENO"; then :
d213114b 17288 ac_cv_lib_m_atan=yes
8f838781 17289else
cd9a469c 17290 ac_cv_lib_m_atan=no
8f838781 17291fi
cd9a469c 17292rm -f core conftest.err conftest.$ac_objext \
17293 conftest$ac_exeext conftest.$ac_ext
8f838781 17294LIBS=$ac_check_lib_save_LIBS
17295fi
cd9a469c 17296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan" >&5
17297$as_echo "$ac_cv_lib_m_atan" >&6; }
17298if test "x$ac_cv_lib_m_atan" = x""yes; then :
8f838781 17299
cd9a469c 17300$as_echo "#define HAVE_ATAN 1" >>confdefs.h
8f838781 17301
17302fi
17303
cd9a469c 17304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl in -lm" >&5
17305$as_echo_n "checking for atanl in -lm... " >&6; }
17306if test "${ac_cv_lib_m_atanl+set}" = set; then :
17307 $as_echo_n "(cached) " >&6
8f838781 17308else
17309 ac_check_lib_save_LIBS=$LIBS
17310LIBS="-lm $LIBS"
b52ee437 17311if test x$gcc_no_link = xyes; then
cd9a469c 17312 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17313fi
cd9a469c 17314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17315/* end confdefs.h. */
17316
cd9a469c 17317/* Override any GCC internal prototype to avoid an error.
17318 Use char because int might match the return type of a GCC
17319 builtin and then its argument prototype would still apply. */
8f838781 17320#ifdef __cplusplus
17321extern "C"
17322#endif
d213114b 17323char atanl ();
8f838781 17324int
17325main ()
17326{
cd9a469c 17327return atanl ();
8f838781 17328 ;
17329 return 0;
17330}
17331_ACEOF
cd9a469c 17332if ac_fn_c_try_link "$LINENO"; then :
d213114b 17333 ac_cv_lib_m_atanl=yes
8f838781 17334else
cd9a469c 17335 ac_cv_lib_m_atanl=no
8f838781 17336fi
cd9a469c 17337rm -f core conftest.err conftest.$ac_objext \
17338 conftest$ac_exeext conftest.$ac_ext
8f838781 17339LIBS=$ac_check_lib_save_LIBS
17340fi
cd9a469c 17341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanl" >&5
17342$as_echo "$ac_cv_lib_m_atanl" >&6; }
17343if test "x$ac_cv_lib_m_atanl" = x""yes; then :
8f838781 17344
cd9a469c 17345$as_echo "#define HAVE_ATANL 1" >>confdefs.h
8f838781 17346
17347fi
17348
cd9a469c 17349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf in -lm" >&5
17350$as_echo_n "checking for atanhf in -lm... " >&6; }
17351if test "${ac_cv_lib_m_atanhf+set}" = set; then :
17352 $as_echo_n "(cached) " >&6
14c3c235 17353else
17354 ac_check_lib_save_LIBS=$LIBS
17355LIBS="-lm $LIBS"
b52ee437 17356if test x$gcc_no_link = xyes; then
cd9a469c 17357 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17358fi
cd9a469c 17359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14c3c235 17360/* end confdefs.h. */
17361
cd9a469c 17362/* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
14c3c235 17365#ifdef __cplusplus
17366extern "C"
17367#endif
d213114b 17368char atanhf ();
14c3c235 17369int
17370main ()
17371{
cd9a469c 17372return atanhf ();
14c3c235 17373 ;
17374 return 0;
17375}
17376_ACEOF
cd9a469c 17377if ac_fn_c_try_link "$LINENO"; then :
d213114b 17378 ac_cv_lib_m_atanhf=yes
14c3c235 17379else
cd9a469c 17380 ac_cv_lib_m_atanhf=no
14c3c235 17381fi
cd9a469c 17382rm -f core conftest.err conftest.$ac_objext \
17383 conftest$ac_exeext conftest.$ac_ext
14c3c235 17384LIBS=$ac_check_lib_save_LIBS
17385fi
cd9a469c 17386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanhf" >&5
17387$as_echo "$ac_cv_lib_m_atanhf" >&6; }
17388if test "x$ac_cv_lib_m_atanhf" = x""yes; then :
14c3c235 17389
cd9a469c 17390$as_echo "#define HAVE_ATANHF 1" >>confdefs.h
14c3c235 17391
17392fi
17393
cd9a469c 17394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh in -lm" >&5
17395$as_echo_n "checking for atanh in -lm... " >&6; }
17396if test "${ac_cv_lib_m_atanh+set}" = set; then :
17397 $as_echo_n "(cached) " >&6
8f838781 17398else
17399 ac_check_lib_save_LIBS=$LIBS
17400LIBS="-lm $LIBS"
b52ee437 17401if test x$gcc_no_link = xyes; then
cd9a469c 17402 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17403fi
cd9a469c 17404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17405/* end confdefs.h. */
17406
cd9a469c 17407/* Override any GCC internal prototype to avoid an error.
17408 Use char because int might match the return type of a GCC
17409 builtin and then its argument prototype would still apply. */
8f838781 17410#ifdef __cplusplus
17411extern "C"
17412#endif
d213114b 17413char atanh ();
8f838781 17414int
17415main ()
17416{
cd9a469c 17417return atanh ();
8f838781 17418 ;
17419 return 0;
17420}
17421_ACEOF
cd9a469c 17422if ac_fn_c_try_link "$LINENO"; then :
d213114b 17423 ac_cv_lib_m_atanh=yes
8f838781 17424else
cd9a469c 17425 ac_cv_lib_m_atanh=no
8f838781 17426fi
cd9a469c 17427rm -f core conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
8f838781 17429LIBS=$ac_check_lib_save_LIBS
17430fi
cd9a469c 17431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanh" >&5
17432$as_echo "$ac_cv_lib_m_atanh" >&6; }
17433if test "x$ac_cv_lib_m_atanh" = x""yes; then :
8f838781 17434
cd9a469c 17435$as_echo "#define HAVE_ATANH 1" >>confdefs.h
8f838781 17436
17437fi
17438
cd9a469c 17439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl in -lm" >&5
17440$as_echo_n "checking for atanhl in -lm... " >&6; }
17441if test "${ac_cv_lib_m_atanhl+set}" = set; then :
17442 $as_echo_n "(cached) " >&6
8f838781 17443else
17444 ac_check_lib_save_LIBS=$LIBS
17445LIBS="-lm $LIBS"
b52ee437 17446if test x$gcc_no_link = xyes; then
cd9a469c 17447 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17448fi
cd9a469c 17449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17450/* end confdefs.h. */
17451
cd9a469c 17452/* Override any GCC internal prototype to avoid an error.
17453 Use char because int might match the return type of a GCC
17454 builtin and then its argument prototype would still apply. */
8f838781 17455#ifdef __cplusplus
17456extern "C"
17457#endif
d213114b 17458char atanhl ();
8f838781 17459int
17460main ()
17461{
cd9a469c 17462return atanhl ();
8f838781 17463 ;
17464 return 0;
17465}
17466_ACEOF
cd9a469c 17467if ac_fn_c_try_link "$LINENO"; then :
d213114b 17468 ac_cv_lib_m_atanhl=yes
8f838781 17469else
cd9a469c 17470 ac_cv_lib_m_atanhl=no
8f838781 17471fi
cd9a469c 17472rm -f core conftest.err conftest.$ac_objext \
17473 conftest$ac_exeext conftest.$ac_ext
8f838781 17474LIBS=$ac_check_lib_save_LIBS
17475fi
cd9a469c 17476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanhl" >&5
17477$as_echo "$ac_cv_lib_m_atanhl" >&6; }
17478if test "x$ac_cv_lib_m_atanhl" = x""yes; then :
8f838781 17479
cd9a469c 17480$as_echo "#define HAVE_ATANHL 1" >>confdefs.h
8f838781 17481
17482fi
17483
cd9a469c 17484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf in -lm" >&5
17485$as_echo_n "checking for cargf in -lm... " >&6; }
17486if test "${ac_cv_lib_m_cargf+set}" = set; then :
17487 $as_echo_n "(cached) " >&6
a2d7a3ff 17488else
17489 ac_check_lib_save_LIBS=$LIBS
17490LIBS="-lm $LIBS"
b52ee437 17491if test x$gcc_no_link = xyes; then
cd9a469c 17492 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17493fi
cd9a469c 17494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2d7a3ff 17495/* end confdefs.h. */
17496
cd9a469c 17497/* Override any GCC internal prototype to avoid an error.
17498 Use char because int might match the return type of a GCC
17499 builtin and then its argument prototype would still apply. */
a2d7a3ff 17500#ifdef __cplusplus
17501extern "C"
17502#endif
d213114b 17503char cargf ();
a2d7a3ff 17504int
17505main ()
17506{
cd9a469c 17507return cargf ();
a2d7a3ff 17508 ;
17509 return 0;
17510}
17511_ACEOF
cd9a469c 17512if ac_fn_c_try_link "$LINENO"; then :
d213114b 17513 ac_cv_lib_m_cargf=yes
a2d7a3ff 17514else
cd9a469c 17515 ac_cv_lib_m_cargf=no
a2d7a3ff 17516fi
cd9a469c 17517rm -f core conftest.err conftest.$ac_objext \
17518 conftest$ac_exeext conftest.$ac_ext
a2d7a3ff 17519LIBS=$ac_check_lib_save_LIBS
17520fi
cd9a469c 17521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cargf" >&5
17522$as_echo "$ac_cv_lib_m_cargf" >&6; }
17523if test "x$ac_cv_lib_m_cargf" = x""yes; then :
a2d7a3ff 17524
cd9a469c 17525$as_echo "#define HAVE_CARGF 1" >>confdefs.h
a2d7a3ff 17526
17527fi
17528
cd9a469c 17529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg in -lm" >&5
17530$as_echo_n "checking for carg in -lm... " >&6; }
17531if test "${ac_cv_lib_m_carg+set}" = set; then :
17532 $as_echo_n "(cached) " >&6
a31bd8a4 17533else
17534 ac_check_lib_save_LIBS=$LIBS
17535LIBS="-lm $LIBS"
b52ee437 17536if test x$gcc_no_link = xyes; then
cd9a469c 17537 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17538fi
cd9a469c 17539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a31bd8a4 17540/* end confdefs.h. */
17541
cd9a469c 17542/* Override any GCC internal prototype to avoid an error.
17543 Use char because int might match the return type of a GCC
17544 builtin and then its argument prototype would still apply. */
a31bd8a4 17545#ifdef __cplusplus
17546extern "C"
17547#endif
d213114b 17548char carg ();
8f838781 17549int
17550main ()
17551{
cd9a469c 17552return carg ();
8f838781 17553 ;
17554 return 0;
17555}
17556_ACEOF
cd9a469c 17557if ac_fn_c_try_link "$LINENO"; then :
d213114b 17558 ac_cv_lib_m_carg=yes
8f838781 17559else
cd9a469c 17560 ac_cv_lib_m_carg=no
8f838781 17561fi
cd9a469c 17562rm -f core conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
8f838781 17564LIBS=$ac_check_lib_save_LIBS
17565fi
cd9a469c 17566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_carg" >&5
17567$as_echo "$ac_cv_lib_m_carg" >&6; }
17568if test "x$ac_cv_lib_m_carg" = x""yes; then :
8f838781 17569
cd9a469c 17570$as_echo "#define HAVE_CARG 1" >>confdefs.h
8f838781 17571
17572fi
17573
cd9a469c 17574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl in -lm" >&5
17575$as_echo_n "checking for cargl in -lm... " >&6; }
17576if test "${ac_cv_lib_m_cargl+set}" = set; then :
17577 $as_echo_n "(cached) " >&6
8f838781 17578else
17579 ac_check_lib_save_LIBS=$LIBS
17580LIBS="-lm $LIBS"
b52ee437 17581if test x$gcc_no_link = xyes; then
cd9a469c 17582 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17583fi
cd9a469c 17584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17585/* end confdefs.h. */
17586
cd9a469c 17587/* Override any GCC internal prototype to avoid an error.
17588 Use char because int might match the return type of a GCC
17589 builtin and then its argument prototype would still apply. */
8f838781 17590#ifdef __cplusplus
17591extern "C"
17592#endif
d213114b 17593char cargl ();
a31bd8a4 17594int
17595main ()
17596{
cd9a469c 17597return cargl ();
a31bd8a4 17598 ;
17599 return 0;
17600}
17601_ACEOF
cd9a469c 17602if ac_fn_c_try_link "$LINENO"; then :
d213114b 17603 ac_cv_lib_m_cargl=yes
a31bd8a4 17604else
cd9a469c 17605 ac_cv_lib_m_cargl=no
a31bd8a4 17606fi
cd9a469c 17607rm -f core conftest.err conftest.$ac_objext \
17608 conftest$ac_exeext conftest.$ac_ext
a31bd8a4 17609LIBS=$ac_check_lib_save_LIBS
17610fi
cd9a469c 17611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cargl" >&5
17612$as_echo "$ac_cv_lib_m_cargl" >&6; }
17613if test "x$ac_cv_lib_m_cargl" = x""yes; then :
a31bd8a4 17614
cd9a469c 17615$as_echo "#define HAVE_CARGL 1" >>confdefs.h
a31bd8a4 17616
17617fi
17618
cd9a469c 17619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf in -lm" >&5
17620$as_echo_n "checking for ceilf in -lm... " >&6; }
17621if test "${ac_cv_lib_m_ceilf+set}" = set; then :
17622 $as_echo_n "(cached) " >&6
a31bd8a4 17623else
17624 ac_check_lib_save_LIBS=$LIBS
17625LIBS="-lm $LIBS"
b52ee437 17626if test x$gcc_no_link = xyes; then
cd9a469c 17627 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17628fi
cd9a469c 17629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a31bd8a4 17630/* end confdefs.h. */
17631
cd9a469c 17632/* Override any GCC internal prototype to avoid an error.
17633 Use char because int might match the return type of a GCC
17634 builtin and then its argument prototype would still apply. */
a31bd8a4 17635#ifdef __cplusplus
17636extern "C"
17637#endif
d213114b 17638char ceilf ();
a31bd8a4 17639int
17640main ()
17641{
cd9a469c 17642return ceilf ();
a31bd8a4 17643 ;
17644 return 0;
17645}
17646_ACEOF
cd9a469c 17647if ac_fn_c_try_link "$LINENO"; then :
d213114b 17648 ac_cv_lib_m_ceilf=yes
a31bd8a4 17649else
cd9a469c 17650 ac_cv_lib_m_ceilf=no
a31bd8a4 17651fi
cd9a469c 17652rm -f core conftest.err conftest.$ac_objext \
17653 conftest$ac_exeext conftest.$ac_ext
a31bd8a4 17654LIBS=$ac_check_lib_save_LIBS
17655fi
cd9a469c 17656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceilf" >&5
17657$as_echo "$ac_cv_lib_m_ceilf" >&6; }
17658if test "x$ac_cv_lib_m_ceilf" = x""yes; then :
a31bd8a4 17659
cd9a469c 17660$as_echo "#define HAVE_CEILF 1" >>confdefs.h
a31bd8a4 17661
17662fi
17663
cd9a469c 17664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5
17665$as_echo_n "checking for ceil in -lm... " >&6; }
17666if test "${ac_cv_lib_m_ceil+set}" = set; then :
17667 $as_echo_n "(cached) " >&6
97844b15 17668else
17669 ac_check_lib_save_LIBS=$LIBS
17670LIBS="-lm $LIBS"
b52ee437 17671if test x$gcc_no_link = xyes; then
cd9a469c 17672 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17673fi
cd9a469c 17674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97844b15 17675/* end confdefs.h. */
17676
cd9a469c 17677/* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply. */
97844b15 17680#ifdef __cplusplus
17681extern "C"
17682#endif
d213114b 17683char ceil ();
97844b15 17684int
17685main ()
17686{
cd9a469c 17687return ceil ();
97844b15 17688 ;
17689 return 0;
17690}
17691_ACEOF
cd9a469c 17692if ac_fn_c_try_link "$LINENO"; then :
d213114b 17693 ac_cv_lib_m_ceil=yes
97844b15 17694else
cd9a469c 17695 ac_cv_lib_m_ceil=no
97844b15 17696fi
cd9a469c 17697rm -f core conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext conftest.$ac_ext
97844b15 17699LIBS=$ac_check_lib_save_LIBS
17700fi
cd9a469c 17701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5
17702$as_echo "$ac_cv_lib_m_ceil" >&6; }
17703if test "x$ac_cv_lib_m_ceil" = x""yes; then :
97844b15 17704
cd9a469c 17705$as_echo "#define HAVE_CEIL 1" >>confdefs.h
97844b15 17706
17707fi
17708
cd9a469c 17709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill in -lm" >&5
17710$as_echo_n "checking for ceill in -lm... " >&6; }
17711if test "${ac_cv_lib_m_ceill+set}" = set; then :
17712 $as_echo_n "(cached) " >&6
4db2deda 17713else
17714 ac_check_lib_save_LIBS=$LIBS
17715LIBS="-lm $LIBS"
b52ee437 17716if test x$gcc_no_link = xyes; then
cd9a469c 17717 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17718fi
cd9a469c 17719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4db2deda 17720/* end confdefs.h. */
17721
cd9a469c 17722/* Override any GCC internal prototype to avoid an error.
17723 Use char because int might match the return type of a GCC
17724 builtin and then its argument prototype would still apply. */
4db2deda 17725#ifdef __cplusplus
17726extern "C"
17727#endif
d213114b 17728char ceill ();
4db2deda 17729int
17730main ()
17731{
cd9a469c 17732return ceill ();
4db2deda 17733 ;
17734 return 0;
17735}
17736_ACEOF
cd9a469c 17737if ac_fn_c_try_link "$LINENO"; then :
d213114b 17738 ac_cv_lib_m_ceill=yes
4db2deda 17739else
cd9a469c 17740 ac_cv_lib_m_ceill=no
4db2deda 17741fi
cd9a469c 17742rm -f core conftest.err conftest.$ac_objext \
17743 conftest$ac_exeext conftest.$ac_ext
4db2deda 17744LIBS=$ac_check_lib_save_LIBS
17745fi
cd9a469c 17746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceill" >&5
17747$as_echo "$ac_cv_lib_m_ceill" >&6; }
17748if test "x$ac_cv_lib_m_ceill" = x""yes; then :
4db2deda 17749
cd9a469c 17750$as_echo "#define HAVE_CEILL 1" >>confdefs.h
4db2deda 17751
17752fi
17753
cd9a469c 17754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf in -lm" >&5
17755$as_echo_n "checking for copysignf in -lm... " >&6; }
17756if test "${ac_cv_lib_m_copysignf+set}" = set; then :
17757 $as_echo_n "(cached) " >&6
4db2deda 17758else
17759 ac_check_lib_save_LIBS=$LIBS
17760LIBS="-lm $LIBS"
b52ee437 17761if test x$gcc_no_link = xyes; then
cd9a469c 17762 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17763fi
cd9a469c 17764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4db2deda 17765/* end confdefs.h. */
17766
cd9a469c 17767/* Override any GCC internal prototype to avoid an error.
17768 Use char because int might match the return type of a GCC
17769 builtin and then its argument prototype would still apply. */
4db2deda 17770#ifdef __cplusplus
17771extern "C"
17772#endif
d213114b 17773char copysignf ();
4db2deda 17774int
17775main ()
17776{
cd9a469c 17777return copysignf ();
4db2deda 17778 ;
17779 return 0;
17780}
17781_ACEOF
cd9a469c 17782if ac_fn_c_try_link "$LINENO"; then :
d213114b 17783 ac_cv_lib_m_copysignf=yes
4db2deda 17784else
cd9a469c 17785 ac_cv_lib_m_copysignf=no
4db2deda 17786fi
cd9a469c 17787rm -f core conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
4db2deda 17789LIBS=$ac_check_lib_save_LIBS
17790fi
cd9a469c 17791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysignf" >&5
17792$as_echo "$ac_cv_lib_m_copysignf" >&6; }
17793if test "x$ac_cv_lib_m_copysignf" = x""yes; then :
4db2deda 17794
cd9a469c 17795$as_echo "#define HAVE_COPYSIGNF 1" >>confdefs.h
8f838781 17796
17797fi
17798
cd9a469c 17799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign in -lm" >&5
17800$as_echo_n "checking for copysign in -lm... " >&6; }
17801if test "${ac_cv_lib_m_copysign+set}" = set; then :
17802 $as_echo_n "(cached) " >&6
8f838781 17803else
17804 ac_check_lib_save_LIBS=$LIBS
17805LIBS="-lm $LIBS"
b52ee437 17806if test x$gcc_no_link = xyes; then
cd9a469c 17807 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17808fi
cd9a469c 17809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17810/* end confdefs.h. */
17811
cd9a469c 17812/* Override any GCC internal prototype to avoid an error.
17813 Use char because int might match the return type of a GCC
17814 builtin and then its argument prototype would still apply. */
8f838781 17815#ifdef __cplusplus
17816extern "C"
17817#endif
d213114b 17818char copysign ();
8f838781 17819int
17820main ()
17821{
cd9a469c 17822return copysign ();
8f838781 17823 ;
17824 return 0;
17825}
17826_ACEOF
cd9a469c 17827if ac_fn_c_try_link "$LINENO"; then :
d213114b 17828 ac_cv_lib_m_copysign=yes
8f838781 17829else
cd9a469c 17830 ac_cv_lib_m_copysign=no
8f838781 17831fi
cd9a469c 17832rm -f core conftest.err conftest.$ac_objext \
17833 conftest$ac_exeext conftest.$ac_ext
8f838781 17834LIBS=$ac_check_lib_save_LIBS
17835fi
cd9a469c 17836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysign" >&5
17837$as_echo "$ac_cv_lib_m_copysign" >&6; }
17838if test "x$ac_cv_lib_m_copysign" = x""yes; then :
8f838781 17839
cd9a469c 17840$as_echo "#define HAVE_COPYSIGN 1" >>confdefs.h
8f838781 17841
17842fi
17843
cd9a469c 17844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl in -lm" >&5
17845$as_echo_n "checking for copysignl in -lm... " >&6; }
17846if test "${ac_cv_lib_m_copysignl+set}" = set; then :
17847 $as_echo_n "(cached) " >&6
8f838781 17848else
17849 ac_check_lib_save_LIBS=$LIBS
17850LIBS="-lm $LIBS"
b52ee437 17851if test x$gcc_no_link = xyes; then
cd9a469c 17852 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17853fi
cd9a469c 17854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17855/* end confdefs.h. */
17856
cd9a469c 17857/* Override any GCC internal prototype to avoid an error.
17858 Use char because int might match the return type of a GCC
17859 builtin and then its argument prototype would still apply. */
8f838781 17860#ifdef __cplusplus
17861extern "C"
17862#endif
d213114b 17863char copysignl ();
8f838781 17864int
17865main ()
17866{
cd9a469c 17867return copysignl ();
8f838781 17868 ;
17869 return 0;
17870}
17871_ACEOF
cd9a469c 17872if ac_fn_c_try_link "$LINENO"; then :
d213114b 17873 ac_cv_lib_m_copysignl=yes
8f838781 17874else
cd9a469c 17875 ac_cv_lib_m_copysignl=no
8f838781 17876fi
cd9a469c 17877rm -f core conftest.err conftest.$ac_objext \
17878 conftest$ac_exeext conftest.$ac_ext
8f838781 17879LIBS=$ac_check_lib_save_LIBS
17880fi
cd9a469c 17881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysignl" >&5
17882$as_echo "$ac_cv_lib_m_copysignl" >&6; }
17883if test "x$ac_cv_lib_m_copysignl" = x""yes; then :
8f838781 17884
cd9a469c 17885$as_echo "#define HAVE_COPYSIGNL 1" >>confdefs.h
8f838781 17886
17887fi
17888
cd9a469c 17889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf in -lm" >&5
17890$as_echo_n "checking for cosf in -lm... " >&6; }
17891if test "${ac_cv_lib_m_cosf+set}" = set; then :
17892 $as_echo_n "(cached) " >&6
8f838781 17893else
17894 ac_check_lib_save_LIBS=$LIBS
17895LIBS="-lm $LIBS"
b52ee437 17896if test x$gcc_no_link = xyes; then
cd9a469c 17897 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17898fi
cd9a469c 17899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17900/* end confdefs.h. */
17901
cd9a469c 17902/* Override any GCC internal prototype to avoid an error.
17903 Use char because int might match the return type of a GCC
17904 builtin and then its argument prototype would still apply. */
8f838781 17905#ifdef __cplusplus
17906extern "C"
17907#endif
d213114b 17908char cosf ();
8f838781 17909int
17910main ()
17911{
cd9a469c 17912return cosf ();
8f838781 17913 ;
cd9a469c 17914 return 0;
17915}
17916_ACEOF
17917if ac_fn_c_try_link "$LINENO"; then :
d213114b 17918 ac_cv_lib_m_cosf=yes
8f838781 17919else
cd9a469c 17920 ac_cv_lib_m_cosf=no
8f838781 17921fi
cd9a469c 17922rm -f core conftest.err conftest.$ac_objext \
17923 conftest$ac_exeext conftest.$ac_ext
8f838781 17924LIBS=$ac_check_lib_save_LIBS
17925fi
cd9a469c 17926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosf" >&5
17927$as_echo "$ac_cv_lib_m_cosf" >&6; }
17928if test "x$ac_cv_lib_m_cosf" = x""yes; then :
8f838781 17929
cd9a469c 17930$as_echo "#define HAVE_COSF 1" >>confdefs.h
4db2deda 17931
17932fi
17933
cd9a469c 17934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
17935$as_echo_n "checking for cos in -lm... " >&6; }
17936if test "${ac_cv_lib_m_cos+set}" = set; then :
17937 $as_echo_n "(cached) " >&6
50f0ca0a 17938else
17939 ac_check_lib_save_LIBS=$LIBS
17940LIBS="-lm $LIBS"
b52ee437 17941if test x$gcc_no_link = xyes; then
cd9a469c 17942 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17943fi
cd9a469c 17944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50f0ca0a 17945/* end confdefs.h. */
17946
cd9a469c 17947/* Override any GCC internal prototype to avoid an error.
17948 Use char because int might match the return type of a GCC
17949 builtin and then its argument prototype would still apply. */
50f0ca0a 17950#ifdef __cplusplus
17951extern "C"
17952#endif
d213114b 17953char cos ();
50f0ca0a 17954int
17955main ()
17956{
cd9a469c 17957return cos ();
50f0ca0a 17958 ;
17959 return 0;
17960}
17961_ACEOF
cd9a469c 17962if ac_fn_c_try_link "$LINENO"; then :
d213114b 17963 ac_cv_lib_m_cos=yes
50f0ca0a 17964else
cd9a469c 17965 ac_cv_lib_m_cos=no
50f0ca0a 17966fi
cd9a469c 17967rm -f core conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
50f0ca0a 17969LIBS=$ac_check_lib_save_LIBS
17970fi
cd9a469c 17971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
17972$as_echo "$ac_cv_lib_m_cos" >&6; }
17973if test "x$ac_cv_lib_m_cos" = x""yes; then :
50f0ca0a 17974
cd9a469c 17975$as_echo "#define HAVE_COS 1" >>confdefs.h
d213114b 17976
17977fi
17978
cd9a469c 17979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl in -lm" >&5
17980$as_echo_n "checking for cosl in -lm... " >&6; }
17981if test "${ac_cv_lib_m_cosl+set}" = set; then :
17982 $as_echo_n "(cached) " >&6
d213114b 17983else
17984 ac_check_lib_save_LIBS=$LIBS
17985LIBS="-lm $LIBS"
17986if test x$gcc_no_link = xyes; then
cd9a469c 17987 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 17988fi
cd9a469c 17989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 17990/* end confdefs.h. */
17991
cd9a469c 17992/* Override any GCC internal prototype to avoid an error.
17993 Use char because int might match the return type of a GCC
17994 builtin and then its argument prototype would still apply. */
d213114b 17995#ifdef __cplusplus
17996extern "C"
17997#endif
d213114b 17998char cosl ();
17999int
18000main ()
18001{
cd9a469c 18002return cosl ();
d213114b 18003 ;
18004 return 0;
18005}
18006_ACEOF
cd9a469c 18007if ac_fn_c_try_link "$LINENO"; then :
d213114b 18008 ac_cv_lib_m_cosl=yes
18009else
cd9a469c 18010 ac_cv_lib_m_cosl=no
d213114b 18011fi
cd9a469c 18012rm -f core conftest.err conftest.$ac_objext \
18013 conftest$ac_exeext conftest.$ac_ext
d213114b 18014LIBS=$ac_check_lib_save_LIBS
18015fi
cd9a469c 18016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosl" >&5
18017$as_echo "$ac_cv_lib_m_cosl" >&6; }
18018if test "x$ac_cv_lib_m_cosl" = x""yes; then :
d213114b 18019
cd9a469c 18020$as_echo "#define HAVE_COSL 1" >>confdefs.h
d213114b 18021
18022fi
18023
cd9a469c 18024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf in -lm" >&5
18025$as_echo_n "checking for ccosf in -lm... " >&6; }
18026if test "${ac_cv_lib_m_ccosf+set}" = set; then :
18027 $as_echo_n "(cached) " >&6
d213114b 18028else
18029 ac_check_lib_save_LIBS=$LIBS
18030LIBS="-lm $LIBS"
18031if test x$gcc_no_link = xyes; then
cd9a469c 18032 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18033fi
cd9a469c 18034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18035/* end confdefs.h. */
18036
cd9a469c 18037/* Override any GCC internal prototype to avoid an error.
18038 Use char because int might match the return type of a GCC
18039 builtin and then its argument prototype would still apply. */
d213114b 18040#ifdef __cplusplus
18041extern "C"
18042#endif
d213114b 18043char ccosf ();
18044int
18045main ()
18046{
cd9a469c 18047return ccosf ();
d213114b 18048 ;
18049 return 0;
18050}
18051_ACEOF
cd9a469c 18052if ac_fn_c_try_link "$LINENO"; then :
d213114b 18053 ac_cv_lib_m_ccosf=yes
18054else
cd9a469c 18055 ac_cv_lib_m_ccosf=no
d213114b 18056fi
cd9a469c 18057rm -f core conftest.err conftest.$ac_objext \
18058 conftest$ac_exeext conftest.$ac_ext
d213114b 18059LIBS=$ac_check_lib_save_LIBS
18060fi
cd9a469c 18061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosf" >&5
18062$as_echo "$ac_cv_lib_m_ccosf" >&6; }
18063if test "x$ac_cv_lib_m_ccosf" = x""yes; then :
d213114b 18064
cd9a469c 18065$as_echo "#define HAVE_CCOSF 1" >>confdefs.h
d213114b 18066
18067fi
18068
cd9a469c 18069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos in -lm" >&5
18070$as_echo_n "checking for ccos in -lm... " >&6; }
18071if test "${ac_cv_lib_m_ccos+set}" = set; then :
18072 $as_echo_n "(cached) " >&6
d213114b 18073else
18074 ac_check_lib_save_LIBS=$LIBS
18075LIBS="-lm $LIBS"
18076if test x$gcc_no_link = xyes; then
cd9a469c 18077 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18078fi
cd9a469c 18079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18080/* end confdefs.h. */
18081
cd9a469c 18082/* Override any GCC internal prototype to avoid an error.
18083 Use char because int might match the return type of a GCC
18084 builtin and then its argument prototype would still apply. */
d213114b 18085#ifdef __cplusplus
18086extern "C"
18087#endif
d213114b 18088char ccos ();
18089int
18090main ()
18091{
cd9a469c 18092return ccos ();
d213114b 18093 ;
18094 return 0;
18095}
18096_ACEOF
cd9a469c 18097if ac_fn_c_try_link "$LINENO"; then :
d213114b 18098 ac_cv_lib_m_ccos=yes
18099else
cd9a469c 18100 ac_cv_lib_m_ccos=no
d213114b 18101fi
cd9a469c 18102rm -f core conftest.err conftest.$ac_objext \
18103 conftest$ac_exeext conftest.$ac_ext
d213114b 18104LIBS=$ac_check_lib_save_LIBS
18105fi
cd9a469c 18106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccos" >&5
18107$as_echo "$ac_cv_lib_m_ccos" >&6; }
18108if test "x$ac_cv_lib_m_ccos" = x""yes; then :
d213114b 18109
cd9a469c 18110$as_echo "#define HAVE_CCOS 1" >>confdefs.h
d213114b 18111
18112fi
18113
cd9a469c 18114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl in -lm" >&5
18115$as_echo_n "checking for ccosl in -lm... " >&6; }
18116if test "${ac_cv_lib_m_ccosl+set}" = set; then :
18117 $as_echo_n "(cached) " >&6
d213114b 18118else
18119 ac_check_lib_save_LIBS=$LIBS
18120LIBS="-lm $LIBS"
18121if test x$gcc_no_link = xyes; then
cd9a469c 18122 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18123fi
cd9a469c 18124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18125/* end confdefs.h. */
18126
cd9a469c 18127/* Override any GCC internal prototype to avoid an error.
18128 Use char because int might match the return type of a GCC
18129 builtin and then its argument prototype would still apply. */
d213114b 18130#ifdef __cplusplus
18131extern "C"
18132#endif
d213114b 18133char ccosl ();
18134int
18135main ()
18136{
cd9a469c 18137return ccosl ();
d213114b 18138 ;
18139 return 0;
18140}
18141_ACEOF
cd9a469c 18142if ac_fn_c_try_link "$LINENO"; then :
d213114b 18143 ac_cv_lib_m_ccosl=yes
18144else
cd9a469c 18145 ac_cv_lib_m_ccosl=no
d213114b 18146fi
cd9a469c 18147rm -f core conftest.err conftest.$ac_objext \
18148 conftest$ac_exeext conftest.$ac_ext
d213114b 18149LIBS=$ac_check_lib_save_LIBS
18150fi
cd9a469c 18151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosl" >&5
18152$as_echo "$ac_cv_lib_m_ccosl" >&6; }
18153if test "x$ac_cv_lib_m_ccosl" = x""yes; then :
d213114b 18154
cd9a469c 18155$as_echo "#define HAVE_CCOSL 1" >>confdefs.h
d213114b 18156
18157fi
18158
cd9a469c 18159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf in -lm" >&5
18160$as_echo_n "checking for coshf in -lm... " >&6; }
18161if test "${ac_cv_lib_m_coshf+set}" = set; then :
18162 $as_echo_n "(cached) " >&6
d213114b 18163else
18164 ac_check_lib_save_LIBS=$LIBS
18165LIBS="-lm $LIBS"
18166if test x$gcc_no_link = xyes; then
cd9a469c 18167 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18168fi
cd9a469c 18169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18170/* end confdefs.h. */
18171
cd9a469c 18172/* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
d213114b 18175#ifdef __cplusplus
18176extern "C"
18177#endif
d213114b 18178char coshf ();
18179int
18180main ()
18181{
cd9a469c 18182return coshf ();
d213114b 18183 ;
18184 return 0;
18185}
18186_ACEOF
cd9a469c 18187if ac_fn_c_try_link "$LINENO"; then :
d213114b 18188 ac_cv_lib_m_coshf=yes
18189else
cd9a469c 18190 ac_cv_lib_m_coshf=no
d213114b 18191fi
cd9a469c 18192rm -f core conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
d213114b 18194LIBS=$ac_check_lib_save_LIBS
18195fi
cd9a469c 18196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_coshf" >&5
18197$as_echo "$ac_cv_lib_m_coshf" >&6; }
18198if test "x$ac_cv_lib_m_coshf" = x""yes; then :
d213114b 18199
cd9a469c 18200$as_echo "#define HAVE_COSHF 1" >>confdefs.h
d213114b 18201
18202fi
18203
cd9a469c 18204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh in -lm" >&5
18205$as_echo_n "checking for cosh in -lm... " >&6; }
18206if test "${ac_cv_lib_m_cosh+set}" = set; then :
18207 $as_echo_n "(cached) " >&6
d213114b 18208else
18209 ac_check_lib_save_LIBS=$LIBS
18210LIBS="-lm $LIBS"
18211if test x$gcc_no_link = xyes; then
cd9a469c 18212 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18213fi
cd9a469c 18214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18215/* end confdefs.h. */
18216
cd9a469c 18217/* Override any GCC internal prototype to avoid an error.
18218 Use char because int might match the return type of a GCC
18219 builtin and then its argument prototype would still apply. */
d213114b 18220#ifdef __cplusplus
18221extern "C"
18222#endif
d213114b 18223char cosh ();
18224int
18225main ()
18226{
cd9a469c 18227return cosh ();
d213114b 18228 ;
18229 return 0;
18230}
18231_ACEOF
cd9a469c 18232if ac_fn_c_try_link "$LINENO"; then :
d213114b 18233 ac_cv_lib_m_cosh=yes
18234else
cd9a469c 18235 ac_cv_lib_m_cosh=no
d213114b 18236fi
cd9a469c 18237rm -f core conftest.err conftest.$ac_objext \
18238 conftest$ac_exeext conftest.$ac_ext
d213114b 18239LIBS=$ac_check_lib_save_LIBS
18240fi
cd9a469c 18241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosh" >&5
18242$as_echo "$ac_cv_lib_m_cosh" >&6; }
18243if test "x$ac_cv_lib_m_cosh" = x""yes; then :
d213114b 18244
cd9a469c 18245$as_echo "#define HAVE_COSH 1" >>confdefs.h
d213114b 18246
18247fi
18248
cd9a469c 18249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl in -lm" >&5
18250$as_echo_n "checking for coshl in -lm... " >&6; }
18251if test "${ac_cv_lib_m_coshl+set}" = set; then :
18252 $as_echo_n "(cached) " >&6
d213114b 18253else
18254 ac_check_lib_save_LIBS=$LIBS
18255LIBS="-lm $LIBS"
18256if test x$gcc_no_link = xyes; then
cd9a469c 18257 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18258fi
cd9a469c 18259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18260/* end confdefs.h. */
18261
cd9a469c 18262/* Override any GCC internal prototype to avoid an error.
18263 Use char because int might match the return type of a GCC
18264 builtin and then its argument prototype would still apply. */
d213114b 18265#ifdef __cplusplus
18266extern "C"
18267#endif
d213114b 18268char coshl ();
18269int
18270main ()
18271{
cd9a469c 18272return coshl ();
d213114b 18273 ;
18274 return 0;
18275}
18276_ACEOF
cd9a469c 18277if ac_fn_c_try_link "$LINENO"; then :
d213114b 18278 ac_cv_lib_m_coshl=yes
18279else
cd9a469c 18280 ac_cv_lib_m_coshl=no
d213114b 18281fi
cd9a469c 18282rm -f core conftest.err conftest.$ac_objext \
18283 conftest$ac_exeext conftest.$ac_ext
d213114b 18284LIBS=$ac_check_lib_save_LIBS
18285fi
cd9a469c 18286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_coshl" >&5
18287$as_echo "$ac_cv_lib_m_coshl" >&6; }
18288if test "x$ac_cv_lib_m_coshl" = x""yes; then :
d213114b 18289
cd9a469c 18290$as_echo "#define HAVE_COSHL 1" >>confdefs.h
d213114b 18291
18292fi
18293
cd9a469c 18294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf in -lm" >&5
18295$as_echo_n "checking for ccoshf in -lm... " >&6; }
18296if test "${ac_cv_lib_m_ccoshf+set}" = set; then :
18297 $as_echo_n "(cached) " >&6
d213114b 18298else
18299 ac_check_lib_save_LIBS=$LIBS
18300LIBS="-lm $LIBS"
18301if test x$gcc_no_link = xyes; then
cd9a469c 18302 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18303fi
cd9a469c 18304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18305/* end confdefs.h. */
18306
cd9a469c 18307/* Override any GCC internal prototype to avoid an error.
18308 Use char because int might match the return type of a GCC
18309 builtin and then its argument prototype would still apply. */
d213114b 18310#ifdef __cplusplus
18311extern "C"
18312#endif
d213114b 18313char ccoshf ();
18314int
18315main ()
18316{
cd9a469c 18317return ccoshf ();
d213114b 18318 ;
18319 return 0;
18320}
18321_ACEOF
cd9a469c 18322if ac_fn_c_try_link "$LINENO"; then :
d213114b 18323 ac_cv_lib_m_ccoshf=yes
18324else
cd9a469c 18325 ac_cv_lib_m_ccoshf=no
d213114b 18326fi
cd9a469c 18327rm -f core conftest.err conftest.$ac_objext \
18328 conftest$ac_exeext conftest.$ac_ext
d213114b 18329LIBS=$ac_check_lib_save_LIBS
18330fi
cd9a469c 18331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccoshf" >&5
18332$as_echo "$ac_cv_lib_m_ccoshf" >&6; }
18333if test "x$ac_cv_lib_m_ccoshf" = x""yes; then :
d213114b 18334
cd9a469c 18335$as_echo "#define HAVE_CCOSHF 1" >>confdefs.h
d213114b 18336
18337fi
18338
cd9a469c 18339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh in -lm" >&5
18340$as_echo_n "checking for ccosh in -lm... " >&6; }
18341if test "${ac_cv_lib_m_ccosh+set}" = set; then :
18342 $as_echo_n "(cached) " >&6
d213114b 18343else
18344 ac_check_lib_save_LIBS=$LIBS
18345LIBS="-lm $LIBS"
18346if test x$gcc_no_link = xyes; then
cd9a469c 18347 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18348fi
cd9a469c 18349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18350/* end confdefs.h. */
18351
cd9a469c 18352/* Override any GCC internal prototype to avoid an error.
18353 Use char because int might match the return type of a GCC
18354 builtin and then its argument prototype would still apply. */
d213114b 18355#ifdef __cplusplus
18356extern "C"
18357#endif
d213114b 18358char ccosh ();
18359int
18360main ()
18361{
cd9a469c 18362return ccosh ();
d213114b 18363 ;
18364 return 0;
18365}
18366_ACEOF
cd9a469c 18367if ac_fn_c_try_link "$LINENO"; then :
d213114b 18368 ac_cv_lib_m_ccosh=yes
18369else
cd9a469c 18370 ac_cv_lib_m_ccosh=no
d213114b 18371fi
cd9a469c 18372rm -f core conftest.err conftest.$ac_objext \
18373 conftest$ac_exeext conftest.$ac_ext
d213114b 18374LIBS=$ac_check_lib_save_LIBS
18375fi
cd9a469c 18376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosh" >&5
18377$as_echo "$ac_cv_lib_m_ccosh" >&6; }
18378if test "x$ac_cv_lib_m_ccosh" = x""yes; then :
d213114b 18379
cd9a469c 18380$as_echo "#define HAVE_CCOSH 1" >>confdefs.h
d213114b 18381
18382fi
18383
cd9a469c 18384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl in -lm" >&5
18385$as_echo_n "checking for ccoshl in -lm... " >&6; }
18386if test "${ac_cv_lib_m_ccoshl+set}" = set; then :
18387 $as_echo_n "(cached) " >&6
d213114b 18388else
18389 ac_check_lib_save_LIBS=$LIBS
18390LIBS="-lm $LIBS"
18391if test x$gcc_no_link = xyes; then
cd9a469c 18392 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18393fi
cd9a469c 18394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18395/* end confdefs.h. */
18396
cd9a469c 18397/* Override any GCC internal prototype to avoid an error.
18398 Use char because int might match the return type of a GCC
18399 builtin and then its argument prototype would still apply. */
d213114b 18400#ifdef __cplusplus
18401extern "C"
18402#endif
d213114b 18403char ccoshl ();
18404int
18405main ()
18406{
cd9a469c 18407return ccoshl ();
d213114b 18408 ;
18409 return 0;
18410}
18411_ACEOF
cd9a469c 18412if ac_fn_c_try_link "$LINENO"; then :
d213114b 18413 ac_cv_lib_m_ccoshl=yes
18414else
cd9a469c 18415 ac_cv_lib_m_ccoshl=no
d213114b 18416fi
cd9a469c 18417rm -f core conftest.err conftest.$ac_objext \
18418 conftest$ac_exeext conftest.$ac_ext
d213114b 18419LIBS=$ac_check_lib_save_LIBS
18420fi
cd9a469c 18421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccoshl" >&5
18422$as_echo "$ac_cv_lib_m_ccoshl" >&6; }
18423if test "x$ac_cv_lib_m_ccoshl" = x""yes; then :
d213114b 18424
cd9a469c 18425$as_echo "#define HAVE_CCOSHL 1" >>confdefs.h
d213114b 18426
18427fi
18428
cd9a469c 18429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf in -lm" >&5
18430$as_echo_n "checking for expf in -lm... " >&6; }
18431if test "${ac_cv_lib_m_expf+set}" = set; then :
18432 $as_echo_n "(cached) " >&6
d213114b 18433else
18434 ac_check_lib_save_LIBS=$LIBS
18435LIBS="-lm $LIBS"
18436if test x$gcc_no_link = xyes; then
cd9a469c 18437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18438fi
cd9a469c 18439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18440/* end confdefs.h. */
18441
cd9a469c 18442/* Override any GCC internal prototype to avoid an error.
18443 Use char because int might match the return type of a GCC
18444 builtin and then its argument prototype would still apply. */
d213114b 18445#ifdef __cplusplus
18446extern "C"
18447#endif
d213114b 18448char expf ();
18449int
18450main ()
18451{
cd9a469c 18452return expf ();
d213114b 18453 ;
18454 return 0;
18455}
18456_ACEOF
cd9a469c 18457if ac_fn_c_try_link "$LINENO"; then :
d213114b 18458 ac_cv_lib_m_expf=yes
18459else
cd9a469c 18460 ac_cv_lib_m_expf=no
d213114b 18461fi
cd9a469c 18462rm -f core conftest.err conftest.$ac_objext \
18463 conftest$ac_exeext conftest.$ac_ext
d213114b 18464LIBS=$ac_check_lib_save_LIBS
18465fi
cd9a469c 18466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_expf" >&5
18467$as_echo "$ac_cv_lib_m_expf" >&6; }
18468if test "x$ac_cv_lib_m_expf" = x""yes; then :
d213114b 18469
cd9a469c 18470$as_echo "#define HAVE_EXPF 1" >>confdefs.h
d213114b 18471
18472fi
18473
cd9a469c 18474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
18475$as_echo_n "checking for exp in -lm... " >&6; }
18476if test "${ac_cv_lib_m_exp+set}" = set; then :
18477 $as_echo_n "(cached) " >&6
d213114b 18478else
18479 ac_check_lib_save_LIBS=$LIBS
18480LIBS="-lm $LIBS"
18481if test x$gcc_no_link = xyes; then
cd9a469c 18482 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18483fi
cd9a469c 18484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18485/* end confdefs.h. */
18486
cd9a469c 18487/* Override any GCC internal prototype to avoid an error.
18488 Use char because int might match the return type of a GCC
18489 builtin and then its argument prototype would still apply. */
d213114b 18490#ifdef __cplusplus
18491extern "C"
18492#endif
d213114b 18493char exp ();
18494int
18495main ()
18496{
cd9a469c 18497return exp ();
d213114b 18498 ;
18499 return 0;
18500}
18501_ACEOF
cd9a469c 18502if ac_fn_c_try_link "$LINENO"; then :
d213114b 18503 ac_cv_lib_m_exp=yes
18504else
cd9a469c 18505 ac_cv_lib_m_exp=no
d213114b 18506fi
cd9a469c 18507rm -f core conftest.err conftest.$ac_objext \
18508 conftest$ac_exeext conftest.$ac_ext
d213114b 18509LIBS=$ac_check_lib_save_LIBS
18510fi
cd9a469c 18511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
18512$as_echo "$ac_cv_lib_m_exp" >&6; }
18513if test "x$ac_cv_lib_m_exp" = x""yes; then :
d213114b 18514
cd9a469c 18515$as_echo "#define HAVE_EXP 1" >>confdefs.h
d213114b 18516
18517fi
18518
cd9a469c 18519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl in -lm" >&5
18520$as_echo_n "checking for expl in -lm... " >&6; }
18521if test "${ac_cv_lib_m_expl+set}" = set; then :
18522 $as_echo_n "(cached) " >&6
d213114b 18523else
18524 ac_check_lib_save_LIBS=$LIBS
18525LIBS="-lm $LIBS"
18526if test x$gcc_no_link = xyes; then
cd9a469c 18527 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18528fi
cd9a469c 18529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18530/* end confdefs.h. */
18531
cd9a469c 18532/* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
d213114b 18535#ifdef __cplusplus
18536extern "C"
18537#endif
d213114b 18538char expl ();
18539int
18540main ()
18541{
cd9a469c 18542return expl ();
d213114b 18543 ;
18544 return 0;
18545}
18546_ACEOF
cd9a469c 18547if ac_fn_c_try_link "$LINENO"; then :
d213114b 18548 ac_cv_lib_m_expl=yes
18549else
cd9a469c 18550 ac_cv_lib_m_expl=no
d213114b 18551fi
cd9a469c 18552rm -f core conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
d213114b 18554LIBS=$ac_check_lib_save_LIBS
18555fi
cd9a469c 18556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_expl" >&5
18557$as_echo "$ac_cv_lib_m_expl" >&6; }
18558if test "x$ac_cv_lib_m_expl" = x""yes; then :
d213114b 18559
cd9a469c 18560$as_echo "#define HAVE_EXPL 1" >>confdefs.h
d213114b 18561
18562fi
18563
cd9a469c 18564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf in -lm" >&5
18565$as_echo_n "checking for cexpf in -lm... " >&6; }
18566if test "${ac_cv_lib_m_cexpf+set}" = set; then :
18567 $as_echo_n "(cached) " >&6
d213114b 18568else
18569 ac_check_lib_save_LIBS=$LIBS
18570LIBS="-lm $LIBS"
18571if test x$gcc_no_link = xyes; then
cd9a469c 18572 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18573fi
cd9a469c 18574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18575/* end confdefs.h. */
18576
cd9a469c 18577/* Override any GCC internal prototype to avoid an error.
18578 Use char because int might match the return type of a GCC
18579 builtin and then its argument prototype would still apply. */
d213114b 18580#ifdef __cplusplus
18581extern "C"
18582#endif
d213114b 18583char cexpf ();
18584int
18585main ()
18586{
cd9a469c 18587return cexpf ();
d213114b 18588 ;
18589 return 0;
18590}
18591_ACEOF
cd9a469c 18592if ac_fn_c_try_link "$LINENO"; then :
d213114b 18593 ac_cv_lib_m_cexpf=yes
18594else
cd9a469c 18595 ac_cv_lib_m_cexpf=no
d213114b 18596fi
cd9a469c 18597rm -f core conftest.err conftest.$ac_objext \
18598 conftest$ac_exeext conftest.$ac_ext
d213114b 18599LIBS=$ac_check_lib_save_LIBS
18600fi
cd9a469c 18601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexpf" >&5
18602$as_echo "$ac_cv_lib_m_cexpf" >&6; }
18603if test "x$ac_cv_lib_m_cexpf" = x""yes; then :
d213114b 18604
cd9a469c 18605$as_echo "#define HAVE_CEXPF 1" >>confdefs.h
d213114b 18606
18607fi
18608
cd9a469c 18609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp in -lm" >&5
18610$as_echo_n "checking for cexp in -lm... " >&6; }
18611if test "${ac_cv_lib_m_cexp+set}" = set; then :
18612 $as_echo_n "(cached) " >&6
d213114b 18613else
18614 ac_check_lib_save_LIBS=$LIBS
18615LIBS="-lm $LIBS"
18616if test x$gcc_no_link = xyes; then
cd9a469c 18617 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18618fi
cd9a469c 18619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18620/* end confdefs.h. */
18621
cd9a469c 18622/* Override any GCC internal prototype to avoid an error.
18623 Use char because int might match the return type of a GCC
18624 builtin and then its argument prototype would still apply. */
d213114b 18625#ifdef __cplusplus
18626extern "C"
18627#endif
d213114b 18628char cexp ();
18629int
18630main ()
18631{
cd9a469c 18632return cexp ();
d213114b 18633 ;
18634 return 0;
18635}
18636_ACEOF
cd9a469c 18637if ac_fn_c_try_link "$LINENO"; then :
d213114b 18638 ac_cv_lib_m_cexp=yes
18639else
cd9a469c 18640 ac_cv_lib_m_cexp=no
d213114b 18641fi
cd9a469c 18642rm -f core conftest.err conftest.$ac_objext \
18643 conftest$ac_exeext conftest.$ac_ext
d213114b 18644LIBS=$ac_check_lib_save_LIBS
18645fi
cd9a469c 18646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexp" >&5
18647$as_echo "$ac_cv_lib_m_cexp" >&6; }
18648if test "x$ac_cv_lib_m_cexp" = x""yes; then :
d213114b 18649
cd9a469c 18650$as_echo "#define HAVE_CEXP 1" >>confdefs.h
d213114b 18651
18652fi
18653
cd9a469c 18654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl in -lm" >&5
18655$as_echo_n "checking for cexpl in -lm... " >&6; }
18656if test "${ac_cv_lib_m_cexpl+set}" = set; then :
18657 $as_echo_n "(cached) " >&6
d213114b 18658else
18659 ac_check_lib_save_LIBS=$LIBS
18660LIBS="-lm $LIBS"
18661if test x$gcc_no_link = xyes; then
cd9a469c 18662 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18663fi
cd9a469c 18664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18665/* end confdefs.h. */
18666
cd9a469c 18667/* Override any GCC internal prototype to avoid an error.
18668 Use char because int might match the return type of a GCC
18669 builtin and then its argument prototype would still apply. */
d213114b 18670#ifdef __cplusplus
18671extern "C"
18672#endif
d213114b 18673char cexpl ();
18674int
18675main ()
18676{
cd9a469c 18677return cexpl ();
d213114b 18678 ;
18679 return 0;
18680}
18681_ACEOF
cd9a469c 18682if ac_fn_c_try_link "$LINENO"; then :
d213114b 18683 ac_cv_lib_m_cexpl=yes
18684else
cd9a469c 18685 ac_cv_lib_m_cexpl=no
d213114b 18686fi
cd9a469c 18687rm -f core conftest.err conftest.$ac_objext \
18688 conftest$ac_exeext conftest.$ac_ext
d213114b 18689LIBS=$ac_check_lib_save_LIBS
18690fi
cd9a469c 18691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexpl" >&5
18692$as_echo "$ac_cv_lib_m_cexpl" >&6; }
18693if test "x$ac_cv_lib_m_cexpl" = x""yes; then :
d213114b 18694
cd9a469c 18695$as_echo "#define HAVE_CEXPL 1" >>confdefs.h
d213114b 18696
18697fi
18698
cd9a469c 18699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf in -lm" >&5
18700$as_echo_n "checking for fabsf in -lm... " >&6; }
18701if test "${ac_cv_lib_m_fabsf+set}" = set; then :
18702 $as_echo_n "(cached) " >&6
d213114b 18703else
18704 ac_check_lib_save_LIBS=$LIBS
18705LIBS="-lm $LIBS"
18706if test x$gcc_no_link = xyes; then
cd9a469c 18707 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18708fi
cd9a469c 18709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18710/* end confdefs.h. */
18711
cd9a469c 18712/* Override any GCC internal prototype to avoid an error.
18713 Use char because int might match the return type of a GCC
18714 builtin and then its argument prototype would still apply. */
d213114b 18715#ifdef __cplusplus
18716extern "C"
18717#endif
d213114b 18718char fabsf ();
18719int
18720main ()
18721{
cd9a469c 18722return fabsf ();
d213114b 18723 ;
18724 return 0;
18725}
18726_ACEOF
cd9a469c 18727if ac_fn_c_try_link "$LINENO"; then :
d213114b 18728 ac_cv_lib_m_fabsf=yes
18729else
cd9a469c 18730 ac_cv_lib_m_fabsf=no
d213114b 18731fi
cd9a469c 18732rm -f core conftest.err conftest.$ac_objext \
18733 conftest$ac_exeext conftest.$ac_ext
d213114b 18734LIBS=$ac_check_lib_save_LIBS
18735fi
cd9a469c 18736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsf" >&5
18737$as_echo "$ac_cv_lib_m_fabsf" >&6; }
18738if test "x$ac_cv_lib_m_fabsf" = x""yes; then :
d213114b 18739
cd9a469c 18740$as_echo "#define HAVE_FABSF 1" >>confdefs.h
d213114b 18741
18742fi
18743
cd9a469c 18744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
18745$as_echo_n "checking for fabs in -lm... " >&6; }
18746if test "${ac_cv_lib_m_fabs+set}" = set; then :
18747 $as_echo_n "(cached) " >&6
d213114b 18748else
18749 ac_check_lib_save_LIBS=$LIBS
18750LIBS="-lm $LIBS"
18751if test x$gcc_no_link = xyes; then
cd9a469c 18752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18753fi
cd9a469c 18754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18755/* end confdefs.h. */
18756
cd9a469c 18757/* Override any GCC internal prototype to avoid an error.
18758 Use char because int might match the return type of a GCC
18759 builtin and then its argument prototype would still apply. */
d213114b 18760#ifdef __cplusplus
18761extern "C"
18762#endif
d213114b 18763char fabs ();
18764int
18765main ()
18766{
cd9a469c 18767return fabs ();
d213114b 18768 ;
18769 return 0;
18770}
18771_ACEOF
cd9a469c 18772if ac_fn_c_try_link "$LINENO"; then :
d213114b 18773 ac_cv_lib_m_fabs=yes
18774else
cd9a469c 18775 ac_cv_lib_m_fabs=no
d213114b 18776fi
cd9a469c 18777rm -f core conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
d213114b 18779LIBS=$ac_check_lib_save_LIBS
18780fi
cd9a469c 18781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
18782$as_echo "$ac_cv_lib_m_fabs" >&6; }
18783if test "x$ac_cv_lib_m_fabs" = x""yes; then :
d213114b 18784
cd9a469c 18785$as_echo "#define HAVE_FABS 1" >>confdefs.h
d213114b 18786
18787fi
18788
cd9a469c 18789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl in -lm" >&5
18790$as_echo_n "checking for fabsl in -lm... " >&6; }
18791if test "${ac_cv_lib_m_fabsl+set}" = set; then :
18792 $as_echo_n "(cached) " >&6
d213114b 18793else
18794 ac_check_lib_save_LIBS=$LIBS
18795LIBS="-lm $LIBS"
18796if test x$gcc_no_link = xyes; then
cd9a469c 18797 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18798fi
cd9a469c 18799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18800/* end confdefs.h. */
18801
cd9a469c 18802/* Override any GCC internal prototype to avoid an error.
18803 Use char because int might match the return type of a GCC
18804 builtin and then its argument prototype would still apply. */
d213114b 18805#ifdef __cplusplus
18806extern "C"
18807#endif
d213114b 18808char fabsl ();
18809int
18810main ()
18811{
cd9a469c 18812return fabsl ();
d213114b 18813 ;
18814 return 0;
18815}
18816_ACEOF
cd9a469c 18817if ac_fn_c_try_link "$LINENO"; then :
d213114b 18818 ac_cv_lib_m_fabsl=yes
18819else
cd9a469c 18820 ac_cv_lib_m_fabsl=no
d213114b 18821fi
cd9a469c 18822rm -f core conftest.err conftest.$ac_objext \
18823 conftest$ac_exeext conftest.$ac_ext
d213114b 18824LIBS=$ac_check_lib_save_LIBS
18825fi
cd9a469c 18826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsl" >&5
18827$as_echo "$ac_cv_lib_m_fabsl" >&6; }
18828if test "x$ac_cv_lib_m_fabsl" = x""yes; then :
d213114b 18829
cd9a469c 18830$as_echo "#define HAVE_FABSL 1" >>confdefs.h
d213114b 18831
18832fi
18833
cd9a469c 18834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf in -lm" >&5
18835$as_echo_n "checking for cabsf in -lm... " >&6; }
18836if test "${ac_cv_lib_m_cabsf+set}" = set; then :
18837 $as_echo_n "(cached) " >&6
d213114b 18838else
18839 ac_check_lib_save_LIBS=$LIBS
18840LIBS="-lm $LIBS"
18841if test x$gcc_no_link = xyes; then
cd9a469c 18842 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18843fi
cd9a469c 18844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18845/* end confdefs.h. */
18846
cd9a469c 18847/* Override any GCC internal prototype to avoid an error.
18848 Use char because int might match the return type of a GCC
18849 builtin and then its argument prototype would still apply. */
d213114b 18850#ifdef __cplusplus
18851extern "C"
18852#endif
d213114b 18853char cabsf ();
18854int
18855main ()
18856{
cd9a469c 18857return cabsf ();
d213114b 18858 ;
18859 return 0;
18860}
18861_ACEOF
cd9a469c 18862if ac_fn_c_try_link "$LINENO"; then :
d213114b 18863 ac_cv_lib_m_cabsf=yes
18864else
cd9a469c 18865 ac_cv_lib_m_cabsf=no
d213114b 18866fi
cd9a469c 18867rm -f core conftest.err conftest.$ac_objext \
18868 conftest$ac_exeext conftest.$ac_ext
d213114b 18869LIBS=$ac_check_lib_save_LIBS
18870fi
cd9a469c 18871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabsf" >&5
18872$as_echo "$ac_cv_lib_m_cabsf" >&6; }
18873if test "x$ac_cv_lib_m_cabsf" = x""yes; then :
d213114b 18874
cd9a469c 18875$as_echo "#define HAVE_CABSF 1" >>confdefs.h
d213114b 18876
18877fi
18878
cd9a469c 18879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs in -lm" >&5
18880$as_echo_n "checking for cabs in -lm... " >&6; }
18881if test "${ac_cv_lib_m_cabs+set}" = set; then :
18882 $as_echo_n "(cached) " >&6
d213114b 18883else
18884 ac_check_lib_save_LIBS=$LIBS
18885LIBS="-lm $LIBS"
18886if test x$gcc_no_link = xyes; then
cd9a469c 18887 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18888fi
cd9a469c 18889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18890/* end confdefs.h. */
18891
cd9a469c 18892/* Override any GCC internal prototype to avoid an error.
18893 Use char because int might match the return type of a GCC
18894 builtin and then its argument prototype would still apply. */
d213114b 18895#ifdef __cplusplus
18896extern "C"
18897#endif
d213114b 18898char cabs ();
18899int
18900main ()
18901{
cd9a469c 18902return cabs ();
d213114b 18903 ;
18904 return 0;
18905}
18906_ACEOF
cd9a469c 18907if ac_fn_c_try_link "$LINENO"; then :
d213114b 18908 ac_cv_lib_m_cabs=yes
18909else
cd9a469c 18910 ac_cv_lib_m_cabs=no
d213114b 18911fi
cd9a469c 18912rm -f core conftest.err conftest.$ac_objext \
18913 conftest$ac_exeext conftest.$ac_ext
d213114b 18914LIBS=$ac_check_lib_save_LIBS
18915fi
cd9a469c 18916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabs" >&5
18917$as_echo "$ac_cv_lib_m_cabs" >&6; }
18918if test "x$ac_cv_lib_m_cabs" = x""yes; then :
d213114b 18919
cd9a469c 18920$as_echo "#define HAVE_CABS 1" >>confdefs.h
d213114b 18921
18922fi
18923
cd9a469c 18924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl in -lm" >&5
18925$as_echo_n "checking for cabsl in -lm... " >&6; }
18926if test "${ac_cv_lib_m_cabsl+set}" = set; then :
18927 $as_echo_n "(cached) " >&6
d213114b 18928else
18929 ac_check_lib_save_LIBS=$LIBS
18930LIBS="-lm $LIBS"
18931if test x$gcc_no_link = xyes; then
cd9a469c 18932 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18933fi
cd9a469c 18934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18935/* end confdefs.h. */
18936
cd9a469c 18937/* Override any GCC internal prototype to avoid an error.
18938 Use char because int might match the return type of a GCC
18939 builtin and then its argument prototype would still apply. */
d213114b 18940#ifdef __cplusplus
18941extern "C"
18942#endif
d213114b 18943char cabsl ();
18944int
18945main ()
18946{
cd9a469c 18947return cabsl ();
d213114b 18948 ;
18949 return 0;
18950}
18951_ACEOF
cd9a469c 18952if ac_fn_c_try_link "$LINENO"; then :
d213114b 18953 ac_cv_lib_m_cabsl=yes
18954else
cd9a469c 18955 ac_cv_lib_m_cabsl=no
d213114b 18956fi
cd9a469c 18957rm -f core conftest.err conftest.$ac_objext \
18958 conftest$ac_exeext conftest.$ac_ext
d213114b 18959LIBS=$ac_check_lib_save_LIBS
18960fi
cd9a469c 18961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabsl" >&5
18962$as_echo "$ac_cv_lib_m_cabsl" >&6; }
18963if test "x$ac_cv_lib_m_cabsl" = x""yes; then :
d213114b 18964
cd9a469c 18965$as_echo "#define HAVE_CABSL 1" >>confdefs.h
d213114b 18966
18967fi
18968
cd9a469c 18969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf in -lm" >&5
18970$as_echo_n "checking for floorf in -lm... " >&6; }
18971if test "${ac_cv_lib_m_floorf+set}" = set; then :
18972 $as_echo_n "(cached) " >&6
d213114b 18973else
18974 ac_check_lib_save_LIBS=$LIBS
18975LIBS="-lm $LIBS"
18976if test x$gcc_no_link = xyes; then
cd9a469c 18977 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18978fi
cd9a469c 18979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18980/* end confdefs.h. */
18981
cd9a469c 18982/* Override any GCC internal prototype to avoid an error.
18983 Use char because int might match the return type of a GCC
18984 builtin and then its argument prototype would still apply. */
d213114b 18985#ifdef __cplusplus
18986extern "C"
18987#endif
d213114b 18988char floorf ();
18989int
18990main ()
18991{
cd9a469c 18992return floorf ();
d213114b 18993 ;
18994 return 0;
18995}
18996_ACEOF
cd9a469c 18997if ac_fn_c_try_link "$LINENO"; then :
d213114b 18998 ac_cv_lib_m_floorf=yes
18999else
cd9a469c 19000 ac_cv_lib_m_floorf=no
d213114b 19001fi
cd9a469c 19002rm -f core conftest.err conftest.$ac_objext \
19003 conftest$ac_exeext conftest.$ac_ext
d213114b 19004LIBS=$ac_check_lib_save_LIBS
19005fi
cd9a469c 19006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floorf" >&5
19007$as_echo "$ac_cv_lib_m_floorf" >&6; }
19008if test "x$ac_cv_lib_m_floorf" = x""yes; then :
d213114b 19009
cd9a469c 19010$as_echo "#define HAVE_FLOORF 1" >>confdefs.h
d213114b 19011
19012fi
19013
cd9a469c 19014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
19015$as_echo_n "checking for floor in -lm... " >&6; }
19016if test "${ac_cv_lib_m_floor+set}" = set; then :
19017 $as_echo_n "(cached) " >&6
d213114b 19018else
19019 ac_check_lib_save_LIBS=$LIBS
19020LIBS="-lm $LIBS"
19021if test x$gcc_no_link = xyes; then
cd9a469c 19022 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19023fi
cd9a469c 19024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19025/* end confdefs.h. */
19026
cd9a469c 19027/* Override any GCC internal prototype to avoid an error.
19028 Use char because int might match the return type of a GCC
19029 builtin and then its argument prototype would still apply. */
d213114b 19030#ifdef __cplusplus
19031extern "C"
19032#endif
d213114b 19033char floor ();
19034int
19035main ()
19036{
cd9a469c 19037return floor ();
d213114b 19038 ;
cd9a469c 19039 return 0;
19040}
19041_ACEOF
19042if ac_fn_c_try_link "$LINENO"; then :
d213114b 19043 ac_cv_lib_m_floor=yes
19044else
cd9a469c 19045 ac_cv_lib_m_floor=no
d213114b 19046fi
cd9a469c 19047rm -f core conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
d213114b 19049LIBS=$ac_check_lib_save_LIBS
19050fi
cd9a469c 19051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
19052$as_echo "$ac_cv_lib_m_floor" >&6; }
19053if test "x$ac_cv_lib_m_floor" = x""yes; then :
d213114b 19054
cd9a469c 19055$as_echo "#define HAVE_FLOOR 1" >>confdefs.h
d213114b 19056
19057fi
19058
cd9a469c 19059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl in -lm" >&5
19060$as_echo_n "checking for floorl in -lm... " >&6; }
19061if test "${ac_cv_lib_m_floorl+set}" = set; then :
19062 $as_echo_n "(cached) " >&6
d213114b 19063else
19064 ac_check_lib_save_LIBS=$LIBS
19065LIBS="-lm $LIBS"
19066if test x$gcc_no_link = xyes; then
cd9a469c 19067 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19068fi
cd9a469c 19069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19070/* end confdefs.h. */
19071
cd9a469c 19072/* Override any GCC internal prototype to avoid an error.
19073 Use char because int might match the return type of a GCC
19074 builtin and then its argument prototype would still apply. */
d213114b 19075#ifdef __cplusplus
19076extern "C"
19077#endif
d213114b 19078char floorl ();
19079int
19080main ()
19081{
cd9a469c 19082return floorl ();
d213114b 19083 ;
19084 return 0;
19085}
19086_ACEOF
cd9a469c 19087if ac_fn_c_try_link "$LINENO"; then :
d213114b 19088 ac_cv_lib_m_floorl=yes
19089else
cd9a469c 19090 ac_cv_lib_m_floorl=no
d213114b 19091fi
cd9a469c 19092rm -f core conftest.err conftest.$ac_objext \
19093 conftest$ac_exeext conftest.$ac_ext
d213114b 19094LIBS=$ac_check_lib_save_LIBS
19095fi
cd9a469c 19096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floorl" >&5
19097$as_echo "$ac_cv_lib_m_floorl" >&6; }
19098if test "x$ac_cv_lib_m_floorl" = x""yes; then :
d213114b 19099
cd9a469c 19100$as_echo "#define HAVE_FLOORL 1" >>confdefs.h
d213114b 19101
19102fi
19103
cd9a469c 19104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf in -lm" >&5
19105$as_echo_n "checking for fmodf in -lm... " >&6; }
19106if test "${ac_cv_lib_m_fmodf+set}" = set; then :
19107 $as_echo_n "(cached) " >&6
71d5b534 19108else
19109 ac_check_lib_save_LIBS=$LIBS
19110LIBS="-lm $LIBS"
19111if test x$gcc_no_link = xyes; then
cd9a469c 19112 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d5b534 19113fi
cd9a469c 19114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d5b534 19115/* end confdefs.h. */
19116
cd9a469c 19117/* Override any GCC internal prototype to avoid an error.
19118 Use char because int might match the return type of a GCC
19119 builtin and then its argument prototype would still apply. */
71d5b534 19120#ifdef __cplusplus
19121extern "C"
19122#endif
71d5b534 19123char fmodf ();
19124int
19125main ()
19126{
cd9a469c 19127return fmodf ();
71d5b534 19128 ;
19129 return 0;
19130}
19131_ACEOF
cd9a469c 19132if ac_fn_c_try_link "$LINENO"; then :
71d5b534 19133 ac_cv_lib_m_fmodf=yes
19134else
cd9a469c 19135 ac_cv_lib_m_fmodf=no
71d5b534 19136fi
cd9a469c 19137rm -f core conftest.err conftest.$ac_objext \
19138 conftest$ac_exeext conftest.$ac_ext
71d5b534 19139LIBS=$ac_check_lib_save_LIBS
19140fi
cd9a469c 19141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmodf" >&5
19142$as_echo "$ac_cv_lib_m_fmodf" >&6; }
19143if test "x$ac_cv_lib_m_fmodf" = x""yes; then :
71d5b534 19144
cd9a469c 19145$as_echo "#define HAVE_FMODF 1" >>confdefs.h
71d5b534 19146
19147fi
19148
cd9a469c 19149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
19150$as_echo_n "checking for fmod in -lm... " >&6; }
19151if test "${ac_cv_lib_m_fmod+set}" = set; then :
19152 $as_echo_n "(cached) " >&6
71d5b534 19153else
19154 ac_check_lib_save_LIBS=$LIBS
19155LIBS="-lm $LIBS"
19156if test x$gcc_no_link = xyes; then
cd9a469c 19157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d5b534 19158fi
cd9a469c 19159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d5b534 19160/* end confdefs.h. */
19161
cd9a469c 19162/* Override any GCC internal prototype to avoid an error.
19163 Use char because int might match the return type of a GCC
19164 builtin and then its argument prototype would still apply. */
71d5b534 19165#ifdef __cplusplus
19166extern "C"
19167#endif
71d5b534 19168char fmod ();
19169int
19170main ()
19171{
cd9a469c 19172return fmod ();
71d5b534 19173 ;
19174 return 0;
19175}
19176_ACEOF
cd9a469c 19177if ac_fn_c_try_link "$LINENO"; then :
71d5b534 19178 ac_cv_lib_m_fmod=yes
19179else
cd9a469c 19180 ac_cv_lib_m_fmod=no
71d5b534 19181fi
cd9a469c 19182rm -f core conftest.err conftest.$ac_objext \
19183 conftest$ac_exeext conftest.$ac_ext
71d5b534 19184LIBS=$ac_check_lib_save_LIBS
19185fi
cd9a469c 19186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
19187$as_echo "$ac_cv_lib_m_fmod" >&6; }
19188if test "x$ac_cv_lib_m_fmod" = x""yes; then :
71d5b534 19189
cd9a469c 19190$as_echo "#define HAVE_FMOD 1" >>confdefs.h
71d5b534 19191
19192fi
19193
cd9a469c 19194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl in -lm" >&5
19195$as_echo_n "checking for fmodl in -lm... " >&6; }
19196if test "${ac_cv_lib_m_fmodl+set}" = set; then :
19197 $as_echo_n "(cached) " >&6
71d5b534 19198else
19199 ac_check_lib_save_LIBS=$LIBS
19200LIBS="-lm $LIBS"
19201if test x$gcc_no_link = xyes; then
cd9a469c 19202 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d5b534 19203fi
cd9a469c 19204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d5b534 19205/* end confdefs.h. */
19206
cd9a469c 19207/* Override any GCC internal prototype to avoid an error.
19208 Use char because int might match the return type of a GCC
19209 builtin and then its argument prototype would still apply. */
71d5b534 19210#ifdef __cplusplus
19211extern "C"
19212#endif
71d5b534 19213char fmodl ();
19214int
19215main ()
19216{
cd9a469c 19217return fmodl ();
71d5b534 19218 ;
19219 return 0;
19220}
19221_ACEOF
cd9a469c 19222if ac_fn_c_try_link "$LINENO"; then :
71d5b534 19223 ac_cv_lib_m_fmodl=yes
19224else
cd9a469c 19225 ac_cv_lib_m_fmodl=no
71d5b534 19226fi
cd9a469c 19227rm -f core conftest.err conftest.$ac_objext \
19228 conftest$ac_exeext conftest.$ac_ext
71d5b534 19229LIBS=$ac_check_lib_save_LIBS
19230fi
cd9a469c 19231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmodl" >&5
19232$as_echo "$ac_cv_lib_m_fmodl" >&6; }
19233if test "x$ac_cv_lib_m_fmodl" = x""yes; then :
71d5b534 19234
cd9a469c 19235$as_echo "#define HAVE_FMODL 1" >>confdefs.h
71d5b534 19236
19237fi
19238
cd9a469c 19239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf in -lm" >&5
19240$as_echo_n "checking for frexpf in -lm... " >&6; }
19241if test "${ac_cv_lib_m_frexpf+set}" = set; then :
19242 $as_echo_n "(cached) " >&6
d213114b 19243else
19244 ac_check_lib_save_LIBS=$LIBS
19245LIBS="-lm $LIBS"
19246if test x$gcc_no_link = xyes; then
cd9a469c 19247 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19248fi
cd9a469c 19249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19250/* end confdefs.h. */
19251
cd9a469c 19252/* Override any GCC internal prototype to avoid an error.
19253 Use char because int might match the return type of a GCC
19254 builtin and then its argument prototype would still apply. */
d213114b 19255#ifdef __cplusplus
19256extern "C"
19257#endif
d213114b 19258char frexpf ();
19259int
19260main ()
19261{
cd9a469c 19262return frexpf ();
d213114b 19263 ;
19264 return 0;
19265}
19266_ACEOF
cd9a469c 19267if ac_fn_c_try_link "$LINENO"; then :
d213114b 19268 ac_cv_lib_m_frexpf=yes
19269else
cd9a469c 19270 ac_cv_lib_m_frexpf=no
d213114b 19271fi
cd9a469c 19272rm -f core conftest.err conftest.$ac_objext \
19273 conftest$ac_exeext conftest.$ac_ext
d213114b 19274LIBS=$ac_check_lib_save_LIBS
19275fi
cd9a469c 19276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexpf" >&5
19277$as_echo "$ac_cv_lib_m_frexpf" >&6; }
19278if test "x$ac_cv_lib_m_frexpf" = x""yes; then :
d213114b 19279
cd9a469c 19280$as_echo "#define HAVE_FREXPF 1" >>confdefs.h
d213114b 19281
19282fi
19283
cd9a469c 19284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp in -lm" >&5
19285$as_echo_n "checking for frexp in -lm... " >&6; }
19286if test "${ac_cv_lib_m_frexp+set}" = set; then :
19287 $as_echo_n "(cached) " >&6
d213114b 19288else
19289 ac_check_lib_save_LIBS=$LIBS
19290LIBS="-lm $LIBS"
19291if test x$gcc_no_link = xyes; then
cd9a469c 19292 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19293fi
cd9a469c 19294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19295/* end confdefs.h. */
19296
cd9a469c 19297/* Override any GCC internal prototype to avoid an error.
19298 Use char because int might match the return type of a GCC
19299 builtin and then its argument prototype would still apply. */
d213114b 19300#ifdef __cplusplus
19301extern "C"
19302#endif
d213114b 19303char frexp ();
19304int
19305main ()
19306{
cd9a469c 19307return frexp ();
d213114b 19308 ;
19309 return 0;
19310}
19311_ACEOF
cd9a469c 19312if ac_fn_c_try_link "$LINENO"; then :
d213114b 19313 ac_cv_lib_m_frexp=yes
19314else
cd9a469c 19315 ac_cv_lib_m_frexp=no
d213114b 19316fi
cd9a469c 19317rm -f core conftest.err conftest.$ac_objext \
19318 conftest$ac_exeext conftest.$ac_ext
d213114b 19319LIBS=$ac_check_lib_save_LIBS
19320fi
cd9a469c 19321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexp" >&5
19322$as_echo "$ac_cv_lib_m_frexp" >&6; }
19323if test "x$ac_cv_lib_m_frexp" = x""yes; then :
d213114b 19324
cd9a469c 19325$as_echo "#define HAVE_FREXP 1" >>confdefs.h
d213114b 19326
19327fi
19328
cd9a469c 19329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl in -lm" >&5
19330$as_echo_n "checking for frexpl in -lm... " >&6; }
19331if test "${ac_cv_lib_m_frexpl+set}" = set; then :
19332 $as_echo_n "(cached) " >&6
d213114b 19333else
19334 ac_check_lib_save_LIBS=$LIBS
19335LIBS="-lm $LIBS"
19336if test x$gcc_no_link = xyes; then
cd9a469c 19337 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19338fi
cd9a469c 19339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19340/* end confdefs.h. */
19341
cd9a469c 19342/* Override any GCC internal prototype to avoid an error.
19343 Use char because int might match the return type of a GCC
19344 builtin and then its argument prototype would still apply. */
d213114b 19345#ifdef __cplusplus
19346extern "C"
19347#endif
d213114b 19348char frexpl ();
19349int
19350main ()
19351{
cd9a469c 19352return frexpl ();
d213114b 19353 ;
19354 return 0;
19355}
19356_ACEOF
cd9a469c 19357if ac_fn_c_try_link "$LINENO"; then :
d213114b 19358 ac_cv_lib_m_frexpl=yes
19359else
cd9a469c 19360 ac_cv_lib_m_frexpl=no
d213114b 19361fi
cd9a469c 19362rm -f core conftest.err conftest.$ac_objext \
19363 conftest$ac_exeext conftest.$ac_ext
d213114b 19364LIBS=$ac_check_lib_save_LIBS
19365fi
cd9a469c 19366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexpl" >&5
19367$as_echo "$ac_cv_lib_m_frexpl" >&6; }
19368if test "x$ac_cv_lib_m_frexpl" = x""yes; then :
d213114b 19369
cd9a469c 19370$as_echo "#define HAVE_FREXPL 1" >>confdefs.h
d213114b 19371
19372fi
19373
cd9a469c 19374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf in -lm" >&5
19375$as_echo_n "checking for hypotf in -lm... " >&6; }
19376if test "${ac_cv_lib_m_hypotf+set}" = set; then :
19377 $as_echo_n "(cached) " >&6
d213114b 19378else
19379 ac_check_lib_save_LIBS=$LIBS
19380LIBS="-lm $LIBS"
19381if test x$gcc_no_link = xyes; then
cd9a469c 19382 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19383fi
cd9a469c 19384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19385/* end confdefs.h. */
19386
cd9a469c 19387/* Override any GCC internal prototype to avoid an error.
19388 Use char because int might match the return type of a GCC
19389 builtin and then its argument prototype would still apply. */
d213114b 19390#ifdef __cplusplus
19391extern "C"
19392#endif
d213114b 19393char hypotf ();
19394int
19395main ()
19396{
cd9a469c 19397return hypotf ();
d213114b 19398 ;
19399 return 0;
19400}
19401_ACEOF
cd9a469c 19402if ac_fn_c_try_link "$LINENO"; then :
d213114b 19403 ac_cv_lib_m_hypotf=yes
19404else
cd9a469c 19405 ac_cv_lib_m_hypotf=no
d213114b 19406fi
cd9a469c 19407rm -f core conftest.err conftest.$ac_objext \
19408 conftest$ac_exeext conftest.$ac_ext
d213114b 19409LIBS=$ac_check_lib_save_LIBS
19410fi
cd9a469c 19411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypotf" >&5
19412$as_echo "$ac_cv_lib_m_hypotf" >&6; }
19413if test "x$ac_cv_lib_m_hypotf" = x""yes; then :
d213114b 19414
cd9a469c 19415$as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
d213114b 19416
19417fi
19418
cd9a469c 19419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
19420$as_echo_n "checking for hypot in -lm... " >&6; }
19421if test "${ac_cv_lib_m_hypot+set}" = set; then :
19422 $as_echo_n "(cached) " >&6
d213114b 19423else
19424 ac_check_lib_save_LIBS=$LIBS
19425LIBS="-lm $LIBS"
19426if test x$gcc_no_link = xyes; then
cd9a469c 19427 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19428fi
cd9a469c 19429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19430/* end confdefs.h. */
19431
cd9a469c 19432/* Override any GCC internal prototype to avoid an error.
19433 Use char because int might match the return type of a GCC
19434 builtin and then its argument prototype would still apply. */
d213114b 19435#ifdef __cplusplus
19436extern "C"
19437#endif
d213114b 19438char hypot ();
19439int
19440main ()
19441{
cd9a469c 19442return hypot ();
d213114b 19443 ;
19444 return 0;
19445}
19446_ACEOF
cd9a469c 19447if ac_fn_c_try_link "$LINENO"; then :
d213114b 19448 ac_cv_lib_m_hypot=yes
19449else
cd9a469c 19450 ac_cv_lib_m_hypot=no
d213114b 19451fi
cd9a469c 19452rm -f core conftest.err conftest.$ac_objext \
19453 conftest$ac_exeext conftest.$ac_ext
d213114b 19454LIBS=$ac_check_lib_save_LIBS
19455fi
cd9a469c 19456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
19457$as_echo "$ac_cv_lib_m_hypot" >&6; }
19458if test "x$ac_cv_lib_m_hypot" = x""yes; then :
d213114b 19459
cd9a469c 19460$as_echo "#define HAVE_HYPOT 1" >>confdefs.h
d213114b 19461
19462fi
19463
cd9a469c 19464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl in -lm" >&5
19465$as_echo_n "checking for hypotl in -lm... " >&6; }
19466if test "${ac_cv_lib_m_hypotl+set}" = set; then :
19467 $as_echo_n "(cached) " >&6
d213114b 19468else
19469 ac_check_lib_save_LIBS=$LIBS
19470LIBS="-lm $LIBS"
19471if test x$gcc_no_link = xyes; then
cd9a469c 19472 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19473fi
cd9a469c 19474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19475/* end confdefs.h. */
19476
cd9a469c 19477/* Override any GCC internal prototype to avoid an error.
19478 Use char because int might match the return type of a GCC
19479 builtin and then its argument prototype would still apply. */
d213114b 19480#ifdef __cplusplus
19481extern "C"
19482#endif
d213114b 19483char hypotl ();
19484int
19485main ()
19486{
cd9a469c 19487return hypotl ();
d213114b 19488 ;
19489 return 0;
19490}
19491_ACEOF
cd9a469c 19492if ac_fn_c_try_link "$LINENO"; then :
d213114b 19493 ac_cv_lib_m_hypotl=yes
19494else
cd9a469c 19495 ac_cv_lib_m_hypotl=no
d213114b 19496fi
cd9a469c 19497rm -f core conftest.err conftest.$ac_objext \
19498 conftest$ac_exeext conftest.$ac_ext
d213114b 19499LIBS=$ac_check_lib_save_LIBS
19500fi
cd9a469c 19501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypotl" >&5
19502$as_echo "$ac_cv_lib_m_hypotl" >&6; }
19503if test "x$ac_cv_lib_m_hypotl" = x""yes; then :
d213114b 19504
cd9a469c 19505$as_echo "#define HAVE_HYPOTL 1" >>confdefs.h
d213114b 19506
19507fi
19508
cd9a469c 19509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf in -lm" >&5
19510$as_echo_n "checking for ldexpf in -lm... " >&6; }
19511if test "${ac_cv_lib_m_ldexpf+set}" = set; then :
19512 $as_echo_n "(cached) " >&6
71d90ac4 19513else
19514 ac_check_lib_save_LIBS=$LIBS
19515LIBS="-lm $LIBS"
19516if test x$gcc_no_link = xyes; then
cd9a469c 19517 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d90ac4 19518fi
cd9a469c 19519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d90ac4 19520/* end confdefs.h. */
19521
cd9a469c 19522/* Override any GCC internal prototype to avoid an error.
19523 Use char because int might match the return type of a GCC
19524 builtin and then its argument prototype would still apply. */
71d90ac4 19525#ifdef __cplusplus
19526extern "C"
19527#endif
71d90ac4 19528char ldexpf ();
19529int
19530main ()
19531{
cd9a469c 19532return ldexpf ();
71d90ac4 19533 ;
19534 return 0;
19535}
19536_ACEOF
cd9a469c 19537if ac_fn_c_try_link "$LINENO"; then :
71d90ac4 19538 ac_cv_lib_m_ldexpf=yes
19539else
cd9a469c 19540 ac_cv_lib_m_ldexpf=no
71d90ac4 19541fi
cd9a469c 19542rm -f core conftest.err conftest.$ac_objext \
19543 conftest$ac_exeext conftest.$ac_ext
71d90ac4 19544LIBS=$ac_check_lib_save_LIBS
19545fi
cd9a469c 19546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexpf" >&5
19547$as_echo "$ac_cv_lib_m_ldexpf" >&6; }
19548if test "x$ac_cv_lib_m_ldexpf" = x""yes; then :
71d90ac4 19549
cd9a469c 19550$as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
71d90ac4 19551
19552fi
19553
cd9a469c 19554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp in -lm" >&5
19555$as_echo_n "checking for ldexp in -lm... " >&6; }
19556if test "${ac_cv_lib_m_ldexp+set}" = set; then :
19557 $as_echo_n "(cached) " >&6
71d90ac4 19558else
19559 ac_check_lib_save_LIBS=$LIBS
19560LIBS="-lm $LIBS"
19561if test x$gcc_no_link = xyes; then
cd9a469c 19562 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d90ac4 19563fi
cd9a469c 19564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d90ac4 19565/* end confdefs.h. */
19566
cd9a469c 19567/* Override any GCC internal prototype to avoid an error.
19568 Use char because int might match the return type of a GCC
19569 builtin and then its argument prototype would still apply. */
71d90ac4 19570#ifdef __cplusplus
19571extern "C"
19572#endif
71d90ac4 19573char ldexp ();
19574int
19575main ()
19576{
cd9a469c 19577return ldexp ();
71d90ac4 19578 ;
19579 return 0;
19580}
19581_ACEOF
cd9a469c 19582if ac_fn_c_try_link "$LINENO"; then :
71d90ac4 19583 ac_cv_lib_m_ldexp=yes
19584else
cd9a469c 19585 ac_cv_lib_m_ldexp=no
71d90ac4 19586fi
cd9a469c 19587rm -f core conftest.err conftest.$ac_objext \
19588 conftest$ac_exeext conftest.$ac_ext
71d90ac4 19589LIBS=$ac_check_lib_save_LIBS
19590fi
cd9a469c 19591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexp" >&5
19592$as_echo "$ac_cv_lib_m_ldexp" >&6; }
19593if test "x$ac_cv_lib_m_ldexp" = x""yes; then :
71d90ac4 19594
cd9a469c 19595$as_echo "#define HAVE_LDEXP 1" >>confdefs.h
71d90ac4 19596
19597fi
19598
cd9a469c 19599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl in -lm" >&5
19600$as_echo_n "checking for ldexpl in -lm... " >&6; }
19601if test "${ac_cv_lib_m_ldexpl+set}" = set; then :
19602 $as_echo_n "(cached) " >&6
71d90ac4 19603else
19604 ac_check_lib_save_LIBS=$LIBS
19605LIBS="-lm $LIBS"
19606if test x$gcc_no_link = xyes; then
cd9a469c 19607 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d90ac4 19608fi
cd9a469c 19609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d90ac4 19610/* end confdefs.h. */
19611
cd9a469c 19612/* Override any GCC internal prototype to avoid an error.
19613 Use char because int might match the return type of a GCC
19614 builtin and then its argument prototype would still apply. */
71d90ac4 19615#ifdef __cplusplus
19616extern "C"
19617#endif
71d90ac4 19618char ldexpl ();
19619int
19620main ()
19621{
cd9a469c 19622return ldexpl ();
71d90ac4 19623 ;
19624 return 0;
19625}
19626_ACEOF
cd9a469c 19627if ac_fn_c_try_link "$LINENO"; then :
71d90ac4 19628 ac_cv_lib_m_ldexpl=yes
19629else
cd9a469c 19630 ac_cv_lib_m_ldexpl=no
71d90ac4 19631fi
cd9a469c 19632rm -f core conftest.err conftest.$ac_objext \
19633 conftest$ac_exeext conftest.$ac_ext
71d90ac4 19634LIBS=$ac_check_lib_save_LIBS
19635fi
cd9a469c 19636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexpl" >&5
19637$as_echo "$ac_cv_lib_m_ldexpl" >&6; }
19638if test "x$ac_cv_lib_m_ldexpl" = x""yes; then :
71d90ac4 19639
cd9a469c 19640$as_echo "#define HAVE_LDEXPL 1" >>confdefs.h
71d90ac4 19641
19642fi
19643
cd9a469c 19644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf in -lm" >&5
19645$as_echo_n "checking for logf in -lm... " >&6; }
19646if test "${ac_cv_lib_m_logf+set}" = set; then :
19647 $as_echo_n "(cached) " >&6
d213114b 19648else
19649 ac_check_lib_save_LIBS=$LIBS
19650LIBS="-lm $LIBS"
19651if test x$gcc_no_link = xyes; then
cd9a469c 19652 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19653fi
cd9a469c 19654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19655/* end confdefs.h. */
19656
cd9a469c 19657/* Override any GCC internal prototype to avoid an error.
19658 Use char because int might match the return type of a GCC
19659 builtin and then its argument prototype would still apply. */
d213114b 19660#ifdef __cplusplus
19661extern "C"
19662#endif
d213114b 19663char logf ();
19664int
19665main ()
19666{
cd9a469c 19667return logf ();
d213114b 19668 ;
19669 return 0;
19670}
19671_ACEOF
cd9a469c 19672if ac_fn_c_try_link "$LINENO"; then :
d213114b 19673 ac_cv_lib_m_logf=yes
19674else
cd9a469c 19675 ac_cv_lib_m_logf=no
d213114b 19676fi
cd9a469c 19677rm -f core conftest.err conftest.$ac_objext \
19678 conftest$ac_exeext conftest.$ac_ext
d213114b 19679LIBS=$ac_check_lib_save_LIBS
19680fi
cd9a469c 19681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_logf" >&5
19682$as_echo "$ac_cv_lib_m_logf" >&6; }
19683if test "x$ac_cv_lib_m_logf" = x""yes; then :
d213114b 19684
cd9a469c 19685$as_echo "#define HAVE_LOGF 1" >>confdefs.h
d213114b 19686
19687fi
19688
cd9a469c 19689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5
19690$as_echo_n "checking for log in -lm... " >&6; }
19691if test "${ac_cv_lib_m_log+set}" = set; then :
19692 $as_echo_n "(cached) " >&6
d213114b 19693else
19694 ac_check_lib_save_LIBS=$LIBS
19695LIBS="-lm $LIBS"
19696if test x$gcc_no_link = xyes; then
cd9a469c 19697 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19698fi
cd9a469c 19699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19700/* end confdefs.h. */
19701
cd9a469c 19702/* Override any GCC internal prototype to avoid an error.
19703 Use char because int might match the return type of a GCC
19704 builtin and then its argument prototype would still apply. */
d213114b 19705#ifdef __cplusplus
19706extern "C"
19707#endif
d213114b 19708char log ();
19709int
19710main ()
19711{
cd9a469c 19712return log ();
d213114b 19713 ;
19714 return 0;
19715}
19716_ACEOF
cd9a469c 19717if ac_fn_c_try_link "$LINENO"; then :
d213114b 19718 ac_cv_lib_m_log=yes
19719else
cd9a469c 19720 ac_cv_lib_m_log=no
d213114b 19721fi
cd9a469c 19722rm -f core conftest.err conftest.$ac_objext \
19723 conftest$ac_exeext conftest.$ac_ext
d213114b 19724LIBS=$ac_check_lib_save_LIBS
19725fi
cd9a469c 19726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5
19727$as_echo "$ac_cv_lib_m_log" >&6; }
19728if test "x$ac_cv_lib_m_log" = x""yes; then :
d213114b 19729
cd9a469c 19730$as_echo "#define HAVE_LOG 1" >>confdefs.h
d213114b 19731
19732fi
19733
cd9a469c 19734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl in -lm" >&5
19735$as_echo_n "checking for logl in -lm... " >&6; }
19736if test "${ac_cv_lib_m_logl+set}" = set; then :
19737 $as_echo_n "(cached) " >&6
d213114b 19738else
19739 ac_check_lib_save_LIBS=$LIBS
19740LIBS="-lm $LIBS"
19741if test x$gcc_no_link = xyes; then
cd9a469c 19742 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19743fi
cd9a469c 19744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19745/* end confdefs.h. */
19746
cd9a469c 19747/* Override any GCC internal prototype to avoid an error.
19748 Use char because int might match the return type of a GCC
19749 builtin and then its argument prototype would still apply. */
d213114b 19750#ifdef __cplusplus
19751extern "C"
19752#endif
d213114b 19753char logl ();
19754int
19755main ()
19756{
cd9a469c 19757return logl ();
d213114b 19758 ;
19759 return 0;
19760}
19761_ACEOF
cd9a469c 19762if ac_fn_c_try_link "$LINENO"; then :
d213114b 19763 ac_cv_lib_m_logl=yes
19764else
cd9a469c 19765 ac_cv_lib_m_logl=no
d213114b 19766fi
cd9a469c 19767rm -f core conftest.err conftest.$ac_objext \
19768 conftest$ac_exeext conftest.$ac_ext
d213114b 19769LIBS=$ac_check_lib_save_LIBS
19770fi
cd9a469c 19771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_logl" >&5
19772$as_echo "$ac_cv_lib_m_logl" >&6; }
19773if test "x$ac_cv_lib_m_logl" = x""yes; then :
d213114b 19774
cd9a469c 19775$as_echo "#define HAVE_LOGL 1" >>confdefs.h
d213114b 19776
19777fi
19778
cd9a469c 19779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf in -lm" >&5
19780$as_echo_n "checking for clogf in -lm... " >&6; }
19781if test "${ac_cv_lib_m_clogf+set}" = set; then :
19782 $as_echo_n "(cached) " >&6
d213114b 19783else
19784 ac_check_lib_save_LIBS=$LIBS
19785LIBS="-lm $LIBS"
19786if test x$gcc_no_link = xyes; then
cd9a469c 19787 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19788fi
cd9a469c 19789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19790/* end confdefs.h. */
19791
cd9a469c 19792/* Override any GCC internal prototype to avoid an error.
19793 Use char because int might match the return type of a GCC
19794 builtin and then its argument prototype would still apply. */
d213114b 19795#ifdef __cplusplus
19796extern "C"
19797#endif
d213114b 19798char clogf ();
19799int
19800main ()
19801{
cd9a469c 19802return clogf ();
d213114b 19803 ;
19804 return 0;
19805}
19806_ACEOF
cd9a469c 19807if ac_fn_c_try_link "$LINENO"; then :
d213114b 19808 ac_cv_lib_m_clogf=yes
19809else
cd9a469c 19810 ac_cv_lib_m_clogf=no
d213114b 19811fi
cd9a469c 19812rm -f core conftest.err conftest.$ac_objext \
19813 conftest$ac_exeext conftest.$ac_ext
d213114b 19814LIBS=$ac_check_lib_save_LIBS
19815fi
cd9a469c 19816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clogf" >&5
19817$as_echo "$ac_cv_lib_m_clogf" >&6; }
19818if test "x$ac_cv_lib_m_clogf" = x""yes; then :
d213114b 19819
cd9a469c 19820$as_echo "#define HAVE_CLOGF 1" >>confdefs.h
d213114b 19821
19822fi
19823
cd9a469c 19824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog in -lm" >&5
19825$as_echo_n "checking for clog in -lm... " >&6; }
19826if test "${ac_cv_lib_m_clog+set}" = set; then :
19827 $as_echo_n "(cached) " >&6
d213114b 19828else
19829 ac_check_lib_save_LIBS=$LIBS
19830LIBS="-lm $LIBS"
19831if test x$gcc_no_link = xyes; then
cd9a469c 19832 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19833fi
cd9a469c 19834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19835/* end confdefs.h. */
19836
cd9a469c 19837/* Override any GCC internal prototype to avoid an error.
19838 Use char because int might match the return type of a GCC
19839 builtin and then its argument prototype would still apply. */
d213114b 19840#ifdef __cplusplus
19841extern "C"
19842#endif
d213114b 19843char clog ();
19844int
19845main ()
19846{
cd9a469c 19847return clog ();
d213114b 19848 ;
19849 return 0;
19850}
19851_ACEOF
cd9a469c 19852if ac_fn_c_try_link "$LINENO"; then :
d213114b 19853 ac_cv_lib_m_clog=yes
19854else
cd9a469c 19855 ac_cv_lib_m_clog=no
d213114b 19856fi
cd9a469c 19857rm -f core conftest.err conftest.$ac_objext \
19858 conftest$ac_exeext conftest.$ac_ext
d213114b 19859LIBS=$ac_check_lib_save_LIBS
19860fi
cd9a469c 19861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog" >&5
19862$as_echo "$ac_cv_lib_m_clog" >&6; }
19863if test "x$ac_cv_lib_m_clog" = x""yes; then :
d213114b 19864
cd9a469c 19865$as_echo "#define HAVE_CLOG 1" >>confdefs.h
d213114b 19866
19867fi
19868
cd9a469c 19869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl in -lm" >&5
19870$as_echo_n "checking for clogl in -lm... " >&6; }
19871if test "${ac_cv_lib_m_clogl+set}" = set; then :
19872 $as_echo_n "(cached) " >&6
d213114b 19873else
19874 ac_check_lib_save_LIBS=$LIBS
19875LIBS="-lm $LIBS"
19876if test x$gcc_no_link = xyes; then
cd9a469c 19877 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19878fi
cd9a469c 19879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19880/* end confdefs.h. */
19881
cd9a469c 19882/* Override any GCC internal prototype to avoid an error.
19883 Use char because int might match the return type of a GCC
19884 builtin and then its argument prototype would still apply. */
d213114b 19885#ifdef __cplusplus
19886extern "C"
19887#endif
d213114b 19888char clogl ();
19889int
19890main ()
19891{
cd9a469c 19892return clogl ();
d213114b 19893 ;
19894 return 0;
19895}
19896_ACEOF
cd9a469c 19897if ac_fn_c_try_link "$LINENO"; then :
d213114b 19898 ac_cv_lib_m_clogl=yes
19899else
cd9a469c 19900 ac_cv_lib_m_clogl=no
d213114b 19901fi
cd9a469c 19902rm -f core conftest.err conftest.$ac_objext \
19903 conftest$ac_exeext conftest.$ac_ext
d213114b 19904LIBS=$ac_check_lib_save_LIBS
19905fi
cd9a469c 19906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clogl" >&5
19907$as_echo "$ac_cv_lib_m_clogl" >&6; }
19908if test "x$ac_cv_lib_m_clogl" = x""yes; then :
d213114b 19909
cd9a469c 19910$as_echo "#define HAVE_CLOGL 1" >>confdefs.h
d213114b 19911
19912fi
19913
cd9a469c 19914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f in -lm" >&5
19915$as_echo_n "checking for log10f in -lm... " >&6; }
19916if test "${ac_cv_lib_m_log10f+set}" = set; then :
19917 $as_echo_n "(cached) " >&6
d213114b 19918else
19919 ac_check_lib_save_LIBS=$LIBS
19920LIBS="-lm $LIBS"
19921if test x$gcc_no_link = xyes; then
cd9a469c 19922 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19923fi
cd9a469c 19924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19925/* end confdefs.h. */
19926
cd9a469c 19927/* Override any GCC internal prototype to avoid an error.
19928 Use char because int might match the return type of a GCC
19929 builtin and then its argument prototype would still apply. */
d213114b 19930#ifdef __cplusplus
19931extern "C"
19932#endif
d213114b 19933char log10f ();
19934int
19935main ()
19936{
cd9a469c 19937return log10f ();
d213114b 19938 ;
19939 return 0;
19940}
19941_ACEOF
cd9a469c 19942if ac_fn_c_try_link "$LINENO"; then :
d213114b 19943 ac_cv_lib_m_log10f=yes
19944else
cd9a469c 19945 ac_cv_lib_m_log10f=no
d213114b 19946fi
cd9a469c 19947rm -f core conftest.err conftest.$ac_objext \
19948 conftest$ac_exeext conftest.$ac_ext
d213114b 19949LIBS=$ac_check_lib_save_LIBS
19950fi
cd9a469c 19951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10f" >&5
19952$as_echo "$ac_cv_lib_m_log10f" >&6; }
19953if test "x$ac_cv_lib_m_log10f" = x""yes; then :
d213114b 19954
cd9a469c 19955$as_echo "#define HAVE_LOG10F 1" >>confdefs.h
d213114b 19956
19957fi
19958
cd9a469c 19959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
19960$as_echo_n "checking for log10 in -lm... " >&6; }
19961if test "${ac_cv_lib_m_log10+set}" = set; then :
19962 $as_echo_n "(cached) " >&6
d213114b 19963else
19964 ac_check_lib_save_LIBS=$LIBS
19965LIBS="-lm $LIBS"
19966if test x$gcc_no_link = xyes; then
cd9a469c 19967 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19968fi
cd9a469c 19969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19970/* end confdefs.h. */
19971
cd9a469c 19972/* Override any GCC internal prototype to avoid an error.
19973 Use char because int might match the return type of a GCC
19974 builtin and then its argument prototype would still apply. */
d213114b 19975#ifdef __cplusplus
19976extern "C"
19977#endif
d213114b 19978char log10 ();
19979int
19980main ()
19981{
cd9a469c 19982return log10 ();
d213114b 19983 ;
19984 return 0;
19985}
19986_ACEOF
cd9a469c 19987if ac_fn_c_try_link "$LINENO"; then :
d213114b 19988 ac_cv_lib_m_log10=yes
19989else
cd9a469c 19990 ac_cv_lib_m_log10=no
d213114b 19991fi
cd9a469c 19992rm -f core conftest.err conftest.$ac_objext \
19993 conftest$ac_exeext conftest.$ac_ext
d213114b 19994LIBS=$ac_check_lib_save_LIBS
19995fi
cd9a469c 19996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
19997$as_echo "$ac_cv_lib_m_log10" >&6; }
19998if test "x$ac_cv_lib_m_log10" = x""yes; then :
d213114b 19999
cd9a469c 20000$as_echo "#define HAVE_LOG10 1" >>confdefs.h
d213114b 20001
20002fi
20003
cd9a469c 20004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l in -lm" >&5
20005$as_echo_n "checking for log10l in -lm... " >&6; }
20006if test "${ac_cv_lib_m_log10l+set}" = set; then :
20007 $as_echo_n "(cached) " >&6
d213114b 20008else
20009 ac_check_lib_save_LIBS=$LIBS
20010LIBS="-lm $LIBS"
20011if test x$gcc_no_link = xyes; then
cd9a469c 20012 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20013fi
cd9a469c 20014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20015/* end confdefs.h. */
20016
cd9a469c 20017/* Override any GCC internal prototype to avoid an error.
20018 Use char because int might match the return type of a GCC
20019 builtin and then its argument prototype would still apply. */
d213114b 20020#ifdef __cplusplus
20021extern "C"
20022#endif
d213114b 20023char log10l ();
20024int
20025main ()
20026{
cd9a469c 20027return log10l ();
d213114b 20028 ;
20029 return 0;
20030}
20031_ACEOF
cd9a469c 20032if ac_fn_c_try_link "$LINENO"; then :
d213114b 20033 ac_cv_lib_m_log10l=yes
20034else
cd9a469c 20035 ac_cv_lib_m_log10l=no
d213114b 20036fi
cd9a469c 20037rm -f core conftest.err conftest.$ac_objext \
20038 conftest$ac_exeext conftest.$ac_ext
d213114b 20039LIBS=$ac_check_lib_save_LIBS
20040fi
cd9a469c 20041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10l" >&5
20042$as_echo "$ac_cv_lib_m_log10l" >&6; }
20043if test "x$ac_cv_lib_m_log10l" = x""yes; then :
d213114b 20044
cd9a469c 20045$as_echo "#define HAVE_LOG10L 1" >>confdefs.h
d213114b 20046
20047fi
20048
cd9a469c 20049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f in -lm" >&5
20050$as_echo_n "checking for clog10f in -lm... " >&6; }
20051if test "${ac_cv_lib_m_clog10f+set}" = set; then :
20052 $as_echo_n "(cached) " >&6
d213114b 20053else
20054 ac_check_lib_save_LIBS=$LIBS
20055LIBS="-lm $LIBS"
20056if test x$gcc_no_link = xyes; then
cd9a469c 20057 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20058fi
cd9a469c 20059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20060/* end confdefs.h. */
20061
cd9a469c 20062/* Override any GCC internal prototype to avoid an error.
20063 Use char because int might match the return type of a GCC
20064 builtin and then its argument prototype would still apply. */
d213114b 20065#ifdef __cplusplus
20066extern "C"
20067#endif
d213114b 20068char clog10f ();
20069int
20070main ()
20071{
cd9a469c 20072return clog10f ();
d213114b 20073 ;
20074 return 0;
20075}
20076_ACEOF
cd9a469c 20077if ac_fn_c_try_link "$LINENO"; then :
d213114b 20078 ac_cv_lib_m_clog10f=yes
20079else
cd9a469c 20080 ac_cv_lib_m_clog10f=no
d213114b 20081fi
cd9a469c 20082rm -f core conftest.err conftest.$ac_objext \
20083 conftest$ac_exeext conftest.$ac_ext
d213114b 20084LIBS=$ac_check_lib_save_LIBS
20085fi
cd9a469c 20086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10f" >&5
20087$as_echo "$ac_cv_lib_m_clog10f" >&6; }
20088if test "x$ac_cv_lib_m_clog10f" = x""yes; then :
d213114b 20089
cd9a469c 20090$as_echo "#define HAVE_CLOG10F 1" >>confdefs.h
d213114b 20091
20092fi
20093
cd9a469c 20094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10 in -lm" >&5
20095$as_echo_n "checking for clog10 in -lm... " >&6; }
20096if test "${ac_cv_lib_m_clog10+set}" = set; then :
20097 $as_echo_n "(cached) " >&6
d213114b 20098else
20099 ac_check_lib_save_LIBS=$LIBS
20100LIBS="-lm $LIBS"
20101if test x$gcc_no_link = xyes; then
cd9a469c 20102 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20103fi
cd9a469c 20104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20105/* end confdefs.h. */
20106
cd9a469c 20107/* Override any GCC internal prototype to avoid an error.
20108 Use char because int might match the return type of a GCC
20109 builtin and then its argument prototype would still apply. */
d213114b 20110#ifdef __cplusplus
20111extern "C"
20112#endif
d213114b 20113char clog10 ();
20114int
20115main ()
20116{
cd9a469c 20117return clog10 ();
d213114b 20118 ;
20119 return 0;
20120}
20121_ACEOF
cd9a469c 20122if ac_fn_c_try_link "$LINENO"; then :
d213114b 20123 ac_cv_lib_m_clog10=yes
20124else
cd9a469c 20125 ac_cv_lib_m_clog10=no
d213114b 20126fi
cd9a469c 20127rm -f core conftest.err conftest.$ac_objext \
20128 conftest$ac_exeext conftest.$ac_ext
d213114b 20129LIBS=$ac_check_lib_save_LIBS
20130fi
cd9a469c 20131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10" >&5
20132$as_echo "$ac_cv_lib_m_clog10" >&6; }
20133if test "x$ac_cv_lib_m_clog10" = x""yes; then :
d213114b 20134
cd9a469c 20135$as_echo "#define HAVE_CLOG10 1" >>confdefs.h
d213114b 20136
20137fi
20138
cd9a469c 20139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l in -lm" >&5
20140$as_echo_n "checking for clog10l in -lm... " >&6; }
20141if test "${ac_cv_lib_m_clog10l+set}" = set; then :
20142 $as_echo_n "(cached) " >&6
d213114b 20143else
20144 ac_check_lib_save_LIBS=$LIBS
20145LIBS="-lm $LIBS"
20146if test x$gcc_no_link = xyes; then
cd9a469c 20147 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20148fi
cd9a469c 20149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20150/* end confdefs.h. */
20151
cd9a469c 20152/* Override any GCC internal prototype to avoid an error.
20153 Use char because int might match the return type of a GCC
20154 builtin and then its argument prototype would still apply. */
d213114b 20155#ifdef __cplusplus
20156extern "C"
20157#endif
d213114b 20158char clog10l ();
20159int
20160main ()
20161{
cd9a469c 20162return clog10l ();
d213114b 20163 ;
cd9a469c 20164 return 0;
20165}
20166_ACEOF
20167if ac_fn_c_try_link "$LINENO"; then :
d213114b 20168 ac_cv_lib_m_clog10l=yes
20169else
cd9a469c 20170 ac_cv_lib_m_clog10l=no
d213114b 20171fi
cd9a469c 20172rm -f core conftest.err conftest.$ac_objext \
20173 conftest$ac_exeext conftest.$ac_ext
d213114b 20174LIBS=$ac_check_lib_save_LIBS
20175fi
cd9a469c 20176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10l" >&5
20177$as_echo "$ac_cv_lib_m_clog10l" >&6; }
20178if test "x$ac_cv_lib_m_clog10l" = x""yes; then :
d213114b 20179
cd9a469c 20180$as_echo "#define HAVE_CLOG10L 1" >>confdefs.h
d213114b 20181
20182fi
20183
cd9a469c 20184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf in -lm" >&5
20185$as_echo_n "checking for nextafterf in -lm... " >&6; }
20186if test "${ac_cv_lib_m_nextafterf+set}" = set; then :
20187 $as_echo_n "(cached) " >&6
d213114b 20188else
20189 ac_check_lib_save_LIBS=$LIBS
20190LIBS="-lm $LIBS"
20191if test x$gcc_no_link = xyes; then
cd9a469c 20192 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20193fi
cd9a469c 20194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20195/* end confdefs.h. */
20196
cd9a469c 20197/* Override any GCC internal prototype to avoid an error.
20198 Use char because int might match the return type of a GCC
20199 builtin and then its argument prototype would still apply. */
d213114b 20200#ifdef __cplusplus
20201extern "C"
20202#endif
d213114b 20203char nextafterf ();
20204int
20205main ()
20206{
cd9a469c 20207return nextafterf ();
d213114b 20208 ;
20209 return 0;
20210}
20211_ACEOF
cd9a469c 20212if ac_fn_c_try_link "$LINENO"; then :
d213114b 20213 ac_cv_lib_m_nextafterf=yes
20214else
cd9a469c 20215 ac_cv_lib_m_nextafterf=no
d213114b 20216fi
cd9a469c 20217rm -f core conftest.err conftest.$ac_objext \
20218 conftest$ac_exeext conftest.$ac_ext
d213114b 20219LIBS=$ac_check_lib_save_LIBS
20220fi
cd9a469c 20221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafterf" >&5
20222$as_echo "$ac_cv_lib_m_nextafterf" >&6; }
20223if test "x$ac_cv_lib_m_nextafterf" = x""yes; then :
d213114b 20224
cd9a469c 20225$as_echo "#define HAVE_NEXTAFTERF 1" >>confdefs.h
d213114b 20226
20227fi
20228
cd9a469c 20229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter in -lm" >&5
20230$as_echo_n "checking for nextafter in -lm... " >&6; }
20231if test "${ac_cv_lib_m_nextafter+set}" = set; then :
20232 $as_echo_n "(cached) " >&6
d213114b 20233else
20234 ac_check_lib_save_LIBS=$LIBS
20235LIBS="-lm $LIBS"
20236if test x$gcc_no_link = xyes; then
cd9a469c 20237 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20238fi
cd9a469c 20239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20240/* end confdefs.h. */
20241
cd9a469c 20242/* Override any GCC internal prototype to avoid an error.
20243 Use char because int might match the return type of a GCC
20244 builtin and then its argument prototype would still apply. */
d213114b 20245#ifdef __cplusplus
20246extern "C"
20247#endif
d213114b 20248char nextafter ();
20249int
20250main ()
20251{
cd9a469c 20252return nextafter ();
d213114b 20253 ;
20254 return 0;
20255}
20256_ACEOF
cd9a469c 20257if ac_fn_c_try_link "$LINENO"; then :
d213114b 20258 ac_cv_lib_m_nextafter=yes
20259else
cd9a469c 20260 ac_cv_lib_m_nextafter=no
d213114b 20261fi
cd9a469c 20262rm -f core conftest.err conftest.$ac_objext \
20263 conftest$ac_exeext conftest.$ac_ext
d213114b 20264LIBS=$ac_check_lib_save_LIBS
20265fi
cd9a469c 20266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafter" >&5
20267$as_echo "$ac_cv_lib_m_nextafter" >&6; }
20268if test "x$ac_cv_lib_m_nextafter" = x""yes; then :
d213114b 20269
cd9a469c 20270$as_echo "#define HAVE_NEXTAFTER 1" >>confdefs.h
d213114b 20271
20272fi
20273
cd9a469c 20274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl in -lm" >&5
20275$as_echo_n "checking for nextafterl in -lm... " >&6; }
20276if test "${ac_cv_lib_m_nextafterl+set}" = set; then :
20277 $as_echo_n "(cached) " >&6
d213114b 20278else
20279 ac_check_lib_save_LIBS=$LIBS
20280LIBS="-lm $LIBS"
20281if test x$gcc_no_link = xyes; then
cd9a469c 20282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20283fi
cd9a469c 20284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20285/* end confdefs.h. */
20286
cd9a469c 20287/* Override any GCC internal prototype to avoid an error.
20288 Use char because int might match the return type of a GCC
20289 builtin and then its argument prototype would still apply. */
d213114b 20290#ifdef __cplusplus
20291extern "C"
20292#endif
d213114b 20293char nextafterl ();
20294int
20295main ()
20296{
cd9a469c 20297return nextafterl ();
d213114b 20298 ;
20299 return 0;
20300}
20301_ACEOF
cd9a469c 20302if ac_fn_c_try_link "$LINENO"; then :
d213114b 20303 ac_cv_lib_m_nextafterl=yes
20304else
cd9a469c 20305 ac_cv_lib_m_nextafterl=no
d213114b 20306fi
cd9a469c 20307rm -f core conftest.err conftest.$ac_objext \
20308 conftest$ac_exeext conftest.$ac_ext
d213114b 20309LIBS=$ac_check_lib_save_LIBS
20310fi
cd9a469c 20311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafterl" >&5
20312$as_echo "$ac_cv_lib_m_nextafterl" >&6; }
20313if test "x$ac_cv_lib_m_nextafterl" = x""yes; then :
d213114b 20314
cd9a469c 20315$as_echo "#define HAVE_NEXTAFTERL 1" >>confdefs.h
d213114b 20316
20317fi
20318
cd9a469c 20319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf in -lm" >&5
20320$as_echo_n "checking for powf in -lm... " >&6; }
20321if test "${ac_cv_lib_m_powf+set}" = set; then :
20322 $as_echo_n "(cached) " >&6
d213114b 20323else
20324 ac_check_lib_save_LIBS=$LIBS
20325LIBS="-lm $LIBS"
20326if test x$gcc_no_link = xyes; then
cd9a469c 20327 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20328fi
cd9a469c 20329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20330/* end confdefs.h. */
20331
cd9a469c 20332/* Override any GCC internal prototype to avoid an error.
20333 Use char because int might match the return type of a GCC
20334 builtin and then its argument prototype would still apply. */
d213114b 20335#ifdef __cplusplus
20336extern "C"
20337#endif
d213114b 20338char powf ();
20339int
20340main ()
20341{
cd9a469c 20342return powf ();
d213114b 20343 ;
20344 return 0;
20345}
20346_ACEOF
cd9a469c 20347if ac_fn_c_try_link "$LINENO"; then :
d213114b 20348 ac_cv_lib_m_powf=yes
20349else
cd9a469c 20350 ac_cv_lib_m_powf=no
d213114b 20351fi
cd9a469c 20352rm -f core conftest.err conftest.$ac_objext \
20353 conftest$ac_exeext conftest.$ac_ext
d213114b 20354LIBS=$ac_check_lib_save_LIBS
20355fi
cd9a469c 20356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_powf" >&5
20357$as_echo "$ac_cv_lib_m_powf" >&6; }
20358if test "x$ac_cv_lib_m_powf" = x""yes; then :
d213114b 20359
cd9a469c 20360$as_echo "#define HAVE_POWF 1" >>confdefs.h
d213114b 20361
20362fi
20363
cd9a469c 20364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
20365$as_echo_n "checking for pow in -lm... " >&6; }
20366if test "${ac_cv_lib_m_pow+set}" = set; then :
20367 $as_echo_n "(cached) " >&6
d213114b 20368else
20369 ac_check_lib_save_LIBS=$LIBS
20370LIBS="-lm $LIBS"
20371if test x$gcc_no_link = xyes; then
cd9a469c 20372 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20373fi
cd9a469c 20374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20375/* end confdefs.h. */
20376
cd9a469c 20377/* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
d213114b 20380#ifdef __cplusplus
20381extern "C"
20382#endif
d213114b 20383char pow ();
20384int
20385main ()
20386{
cd9a469c 20387return pow ();
d213114b 20388 ;
20389 return 0;
20390}
20391_ACEOF
cd9a469c 20392if ac_fn_c_try_link "$LINENO"; then :
d213114b 20393 ac_cv_lib_m_pow=yes
20394else
cd9a469c 20395 ac_cv_lib_m_pow=no
d213114b 20396fi
cd9a469c 20397rm -f core conftest.err conftest.$ac_objext \
20398 conftest$ac_exeext conftest.$ac_ext
d213114b 20399LIBS=$ac_check_lib_save_LIBS
20400fi
cd9a469c 20401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
20402$as_echo "$ac_cv_lib_m_pow" >&6; }
20403if test "x$ac_cv_lib_m_pow" = x""yes; then :
d213114b 20404
cd9a469c 20405$as_echo "#define HAVE_POW 1" >>confdefs.h
d213114b 20406
20407fi
20408
cd9a469c 20409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl in -lm" >&5
20410$as_echo_n "checking for powl in -lm... " >&6; }
20411if test "${ac_cv_lib_m_powl+set}" = set; then :
20412 $as_echo_n "(cached) " >&6
d213114b 20413else
20414 ac_check_lib_save_LIBS=$LIBS
20415LIBS="-lm $LIBS"
20416if test x$gcc_no_link = xyes; then
cd9a469c 20417 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20418fi
cd9a469c 20419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20420/* end confdefs.h. */
20421
cd9a469c 20422/* Override any GCC internal prototype to avoid an error.
20423 Use char because int might match the return type of a GCC
20424 builtin and then its argument prototype would still apply. */
d213114b 20425#ifdef __cplusplus
20426extern "C"
20427#endif
d213114b 20428char powl ();
20429int
20430main ()
20431{
cd9a469c 20432return powl ();
d213114b 20433 ;
20434 return 0;
20435}
20436_ACEOF
cd9a469c 20437if ac_fn_c_try_link "$LINENO"; then :
d213114b 20438 ac_cv_lib_m_powl=yes
20439else
cd9a469c 20440 ac_cv_lib_m_powl=no
d213114b 20441fi
cd9a469c 20442rm -f core conftest.err conftest.$ac_objext \
20443 conftest$ac_exeext conftest.$ac_ext
d213114b 20444LIBS=$ac_check_lib_save_LIBS
20445fi
cd9a469c 20446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_powl" >&5
20447$as_echo "$ac_cv_lib_m_powl" >&6; }
20448if test "x$ac_cv_lib_m_powl" = x""yes; then :
d213114b 20449
cd9a469c 20450$as_echo "#define HAVE_POWL 1" >>confdefs.h
d213114b 20451
20452fi
20453
cd9a469c 20454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf in -lm" >&5
20455$as_echo_n "checking for cpowf in -lm... " >&6; }
20456if test "${ac_cv_lib_m_cpowf+set}" = set; then :
20457 $as_echo_n "(cached) " >&6
d213114b 20458else
20459 ac_check_lib_save_LIBS=$LIBS
20460LIBS="-lm $LIBS"
20461if test x$gcc_no_link = xyes; then
cd9a469c 20462 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20463fi
cd9a469c 20464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20465/* end confdefs.h. */
20466
cd9a469c 20467/* Override any GCC internal prototype to avoid an error.
20468 Use char because int might match the return type of a GCC
20469 builtin and then its argument prototype would still apply. */
d213114b 20470#ifdef __cplusplus
20471extern "C"
20472#endif
d213114b 20473char cpowf ();
20474int
20475main ()
20476{
cd9a469c 20477return cpowf ();
d213114b 20478 ;
20479 return 0;
20480}
20481_ACEOF
cd9a469c 20482if ac_fn_c_try_link "$LINENO"; then :
d213114b 20483 ac_cv_lib_m_cpowf=yes
20484else
cd9a469c 20485 ac_cv_lib_m_cpowf=no
d213114b 20486fi
cd9a469c 20487rm -f core conftest.err conftest.$ac_objext \
20488 conftest$ac_exeext conftest.$ac_ext
d213114b 20489LIBS=$ac_check_lib_save_LIBS
20490fi
cd9a469c 20491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpowf" >&5
20492$as_echo "$ac_cv_lib_m_cpowf" >&6; }
20493if test "x$ac_cv_lib_m_cpowf" = x""yes; then :
d213114b 20494
cd9a469c 20495$as_echo "#define HAVE_CPOWF 1" >>confdefs.h
d213114b 20496
20497fi
20498
cd9a469c 20499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow in -lm" >&5
20500$as_echo_n "checking for cpow in -lm... " >&6; }
20501if test "${ac_cv_lib_m_cpow+set}" = set; then :
20502 $as_echo_n "(cached) " >&6
d213114b 20503else
20504 ac_check_lib_save_LIBS=$LIBS
20505LIBS="-lm $LIBS"
20506if test x$gcc_no_link = xyes; then
cd9a469c 20507 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20508fi
cd9a469c 20509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20510/* end confdefs.h. */
20511
cd9a469c 20512/* Override any GCC internal prototype to avoid an error.
20513 Use char because int might match the return type of a GCC
20514 builtin and then its argument prototype would still apply. */
d213114b 20515#ifdef __cplusplus
20516extern "C"
20517#endif
d213114b 20518char cpow ();
20519int
20520main ()
20521{
cd9a469c 20522return cpow ();
d213114b 20523 ;
20524 return 0;
20525}
20526_ACEOF
cd9a469c 20527if ac_fn_c_try_link "$LINENO"; then :
d213114b 20528 ac_cv_lib_m_cpow=yes
20529else
cd9a469c 20530 ac_cv_lib_m_cpow=no
d213114b 20531fi
cd9a469c 20532rm -f core conftest.err conftest.$ac_objext \
20533 conftest$ac_exeext conftest.$ac_ext
d213114b 20534LIBS=$ac_check_lib_save_LIBS
20535fi
cd9a469c 20536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpow" >&5
20537$as_echo "$ac_cv_lib_m_cpow" >&6; }
20538if test "x$ac_cv_lib_m_cpow" = x""yes; then :
d213114b 20539
cd9a469c 20540$as_echo "#define HAVE_CPOW 1" >>confdefs.h
d213114b 20541
20542fi
20543
cd9a469c 20544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl in -lm" >&5
20545$as_echo_n "checking for cpowl in -lm... " >&6; }
20546if test "${ac_cv_lib_m_cpowl+set}" = set; then :
20547 $as_echo_n "(cached) " >&6
d213114b 20548else
20549 ac_check_lib_save_LIBS=$LIBS
20550LIBS="-lm $LIBS"
20551if test x$gcc_no_link = xyes; then
cd9a469c 20552 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20553fi
cd9a469c 20554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20555/* end confdefs.h. */
20556
cd9a469c 20557/* Override any GCC internal prototype to avoid an error.
20558 Use char because int might match the return type of a GCC
20559 builtin and then its argument prototype would still apply. */
d213114b 20560#ifdef __cplusplus
20561extern "C"
20562#endif
d213114b 20563char cpowl ();
20564int
20565main ()
20566{
cd9a469c 20567return cpowl ();
d213114b 20568 ;
20569 return 0;
20570}
20571_ACEOF
cd9a469c 20572if ac_fn_c_try_link "$LINENO"; then :
d213114b 20573 ac_cv_lib_m_cpowl=yes
20574else
cd9a469c 20575 ac_cv_lib_m_cpowl=no
d213114b 20576fi
cd9a469c 20577rm -f core conftest.err conftest.$ac_objext \
20578 conftest$ac_exeext conftest.$ac_ext
d213114b 20579LIBS=$ac_check_lib_save_LIBS
20580fi
cd9a469c 20581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpowl" >&5
20582$as_echo "$ac_cv_lib_m_cpowl" >&6; }
20583if test "x$ac_cv_lib_m_cpowl" = x""yes; then :
d213114b 20584
cd9a469c 20585$as_echo "#define HAVE_CPOWL 1" >>confdefs.h
d213114b 20586
20587fi
20588
cd9a469c 20589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf in -lm" >&5
20590$as_echo_n "checking for roundf in -lm... " >&6; }
20591if test "${ac_cv_lib_m_roundf+set}" = set; then :
20592 $as_echo_n "(cached) " >&6
d213114b 20593else
20594 ac_check_lib_save_LIBS=$LIBS
20595LIBS="-lm $LIBS"
20596if test x$gcc_no_link = xyes; then
cd9a469c 20597 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20598fi
cd9a469c 20599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20600/* end confdefs.h. */
20601
cd9a469c 20602/* Override any GCC internal prototype to avoid an error.
20603 Use char because int might match the return type of a GCC
20604 builtin and then its argument prototype would still apply. */
d213114b 20605#ifdef __cplusplus
20606extern "C"
20607#endif
d213114b 20608char roundf ();
20609int
20610main ()
20611{
cd9a469c 20612return roundf ();
d213114b 20613 ;
20614 return 0;
20615}
20616_ACEOF
cd9a469c 20617if ac_fn_c_try_link "$LINENO"; then :
d213114b 20618 ac_cv_lib_m_roundf=yes
20619else
cd9a469c 20620 ac_cv_lib_m_roundf=no
d213114b 20621fi
cd9a469c 20622rm -f core conftest.err conftest.$ac_objext \
20623 conftest$ac_exeext conftest.$ac_ext
d213114b 20624LIBS=$ac_check_lib_save_LIBS
20625fi
cd9a469c 20626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_roundf" >&5
20627$as_echo "$ac_cv_lib_m_roundf" >&6; }
20628if test "x$ac_cv_lib_m_roundf" = x""yes; then :
d213114b 20629
cd9a469c 20630$as_echo "#define HAVE_ROUNDF 1" >>confdefs.h
d213114b 20631
20632fi
20633
cd9a469c 20634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
20635$as_echo_n "checking for round in -lm... " >&6; }
20636if test "${ac_cv_lib_m_round+set}" = set; then :
20637 $as_echo_n "(cached) " >&6
d213114b 20638else
20639 ac_check_lib_save_LIBS=$LIBS
20640LIBS="-lm $LIBS"
20641if test x$gcc_no_link = xyes; then
cd9a469c 20642 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20643fi
cd9a469c 20644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20645/* end confdefs.h. */
20646
cd9a469c 20647/* Override any GCC internal prototype to avoid an error.
20648 Use char because int might match the return type of a GCC
20649 builtin and then its argument prototype would still apply. */
d213114b 20650#ifdef __cplusplus
20651extern "C"
20652#endif
d213114b 20653char round ();
20654int
20655main ()
20656{
cd9a469c 20657return round ();
d213114b 20658 ;
20659 return 0;
20660}
20661_ACEOF
cd9a469c 20662if ac_fn_c_try_link "$LINENO"; then :
d213114b 20663 ac_cv_lib_m_round=yes
20664else
cd9a469c 20665 ac_cv_lib_m_round=no
d213114b 20666fi
cd9a469c 20667rm -f core conftest.err conftest.$ac_objext \
20668 conftest$ac_exeext conftest.$ac_ext
d213114b 20669LIBS=$ac_check_lib_save_LIBS
20670fi
cd9a469c 20671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
20672$as_echo "$ac_cv_lib_m_round" >&6; }
20673if test "x$ac_cv_lib_m_round" = x""yes; then :
d213114b 20674
cd9a469c 20675$as_echo "#define HAVE_ROUND 1" >>confdefs.h
d213114b 20676
20677fi
20678
cd9a469c 20679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl in -lm" >&5
20680$as_echo_n "checking for roundl in -lm... " >&6; }
20681if test "${ac_cv_lib_m_roundl+set}" = set; then :
20682 $as_echo_n "(cached) " >&6
d213114b 20683else
20684 ac_check_lib_save_LIBS=$LIBS
20685LIBS="-lm $LIBS"
20686if test x$gcc_no_link = xyes; then
cd9a469c 20687 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20688fi
cd9a469c 20689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20690/* end confdefs.h. */
20691
cd9a469c 20692/* Override any GCC internal prototype to avoid an error.
20693 Use char because int might match the return type of a GCC
20694 builtin and then its argument prototype would still apply. */
d213114b 20695#ifdef __cplusplus
20696extern "C"
20697#endif
d213114b 20698char roundl ();
20699int
20700main ()
20701{
cd9a469c 20702return roundl ();
d213114b 20703 ;
20704 return 0;
20705}
20706_ACEOF
cd9a469c 20707if ac_fn_c_try_link "$LINENO"; then :
d213114b 20708 ac_cv_lib_m_roundl=yes
20709else
cd9a469c 20710 ac_cv_lib_m_roundl=no
d213114b 20711fi
cd9a469c 20712rm -f core conftest.err conftest.$ac_objext \
20713 conftest$ac_exeext conftest.$ac_ext
d213114b 20714LIBS=$ac_check_lib_save_LIBS
20715fi
cd9a469c 20716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_roundl" >&5
20717$as_echo "$ac_cv_lib_m_roundl" >&6; }
20718if test "x$ac_cv_lib_m_roundl" = x""yes; then :
d213114b 20719
cd9a469c 20720$as_echo "#define HAVE_ROUNDL 1" >>confdefs.h
d213114b 20721
20722fi
20723
cd9a469c 20724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf in -lm" >&5
20725$as_echo_n "checking for lroundf in -lm... " >&6; }
20726if test "${ac_cv_lib_m_lroundf+set}" = set; then :
20727 $as_echo_n "(cached) " >&6
ef080b63 20728else
20729 ac_check_lib_save_LIBS=$LIBS
20730LIBS="-lm $LIBS"
20731if test x$gcc_no_link = xyes; then
cd9a469c 20732 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 20733fi
cd9a469c 20734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 20735/* end confdefs.h. */
20736
cd9a469c 20737/* Override any GCC internal prototype to avoid an error.
20738 Use char because int might match the return type of a GCC
20739 builtin and then its argument prototype would still apply. */
ef080b63 20740#ifdef __cplusplus
20741extern "C"
20742#endif
ef080b63 20743char lroundf ();
20744int
20745main ()
20746{
cd9a469c 20747return lroundf ();
ef080b63 20748 ;
20749 return 0;
20750}
20751_ACEOF
cd9a469c 20752if ac_fn_c_try_link "$LINENO"; then :
ef080b63 20753 ac_cv_lib_m_lroundf=yes
20754else
cd9a469c 20755 ac_cv_lib_m_lroundf=no
ef080b63 20756fi
cd9a469c 20757rm -f core conftest.err conftest.$ac_objext \
20758 conftest$ac_exeext conftest.$ac_ext
ef080b63 20759LIBS=$ac_check_lib_save_LIBS
20760fi
cd9a469c 20761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lroundf" >&5
20762$as_echo "$ac_cv_lib_m_lroundf" >&6; }
20763if test "x$ac_cv_lib_m_lroundf" = x""yes; then :
ef080b63 20764
cd9a469c 20765$as_echo "#define HAVE_LROUNDF 1" >>confdefs.h
ef080b63 20766
20767fi
20768
cd9a469c 20769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround in -lm" >&5
20770$as_echo_n "checking for lround in -lm... " >&6; }
20771if test "${ac_cv_lib_m_lround+set}" = set; then :
20772 $as_echo_n "(cached) " >&6
ef080b63 20773else
20774 ac_check_lib_save_LIBS=$LIBS
20775LIBS="-lm $LIBS"
20776if test x$gcc_no_link = xyes; then
cd9a469c 20777 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 20778fi
cd9a469c 20779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 20780/* end confdefs.h. */
20781
cd9a469c 20782/* Override any GCC internal prototype to avoid an error.
20783 Use char because int might match the return type of a GCC
20784 builtin and then its argument prototype would still apply. */
ef080b63 20785#ifdef __cplusplus
20786extern "C"
20787#endif
ef080b63 20788char lround ();
20789int
20790main ()
20791{
cd9a469c 20792return lround ();
ef080b63 20793 ;
20794 return 0;
20795}
20796_ACEOF
cd9a469c 20797if ac_fn_c_try_link "$LINENO"; then :
ef080b63 20798 ac_cv_lib_m_lround=yes
20799else
cd9a469c 20800 ac_cv_lib_m_lround=no
ef080b63 20801fi
cd9a469c 20802rm -f core conftest.err conftest.$ac_objext \
20803 conftest$ac_exeext conftest.$ac_ext
ef080b63 20804LIBS=$ac_check_lib_save_LIBS
20805fi
cd9a469c 20806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lround" >&5
20807$as_echo "$ac_cv_lib_m_lround" >&6; }
20808if test "x$ac_cv_lib_m_lround" = x""yes; then :
ef080b63 20809
cd9a469c 20810$as_echo "#define HAVE_LROUND 1" >>confdefs.h
ef080b63 20811
20812fi
20813
cd9a469c 20814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl in -lm" >&5
20815$as_echo_n "checking for lroundl in -lm... " >&6; }
20816if test "${ac_cv_lib_m_lroundl+set}" = set; then :
20817 $as_echo_n "(cached) " >&6
ef080b63 20818else
20819 ac_check_lib_save_LIBS=$LIBS
20820LIBS="-lm $LIBS"
20821if test x$gcc_no_link = xyes; then
cd9a469c 20822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 20823fi
cd9a469c 20824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 20825/* end confdefs.h. */
20826
cd9a469c 20827/* Override any GCC internal prototype to avoid an error.
20828 Use char because int might match the return type of a GCC
20829 builtin and then its argument prototype would still apply. */
ef080b63 20830#ifdef __cplusplus
20831extern "C"
20832#endif
ef080b63 20833char lroundl ();
20834int
20835main ()
20836{
cd9a469c 20837return lroundl ();
ef080b63 20838 ;
20839 return 0;
20840}
20841_ACEOF
cd9a469c 20842if ac_fn_c_try_link "$LINENO"; then :
ef080b63 20843 ac_cv_lib_m_lroundl=yes
20844else
cd9a469c 20845 ac_cv_lib_m_lroundl=no
ef080b63 20846fi
cd9a469c 20847rm -f core conftest.err conftest.$ac_objext \
20848 conftest$ac_exeext conftest.$ac_ext
ef080b63 20849LIBS=$ac_check_lib_save_LIBS
20850fi
cd9a469c 20851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lroundl" >&5
20852$as_echo "$ac_cv_lib_m_lroundl" >&6; }
20853if test "x$ac_cv_lib_m_lroundl" = x""yes; then :
ef080b63 20854
cd9a469c 20855$as_echo "#define HAVE_LROUNDL 1" >>confdefs.h
ef080b63 20856
20857fi
20858
cd9a469c 20859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf in -lm" >&5
20860$as_echo_n "checking for llroundf in -lm... " >&6; }
20861if test "${ac_cv_lib_m_llroundf+set}" = set; then :
20862 $as_echo_n "(cached) " >&6
ef080b63 20863else
20864 ac_check_lib_save_LIBS=$LIBS
20865LIBS="-lm $LIBS"
20866if test x$gcc_no_link = xyes; then
cd9a469c 20867 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 20868fi
cd9a469c 20869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 20870/* end confdefs.h. */
20871
cd9a469c 20872/* Override any GCC internal prototype to avoid an error.
20873 Use char because int might match the return type of a GCC
20874 builtin and then its argument prototype would still apply. */
ef080b63 20875#ifdef __cplusplus
20876extern "C"
20877#endif
ef080b63 20878char llroundf ();
20879int
20880main ()
20881{
cd9a469c 20882return llroundf ();
ef080b63 20883 ;
20884 return 0;
20885}
20886_ACEOF
cd9a469c 20887if ac_fn_c_try_link "$LINENO"; then :
ef080b63 20888 ac_cv_lib_m_llroundf=yes
20889else
cd9a469c 20890 ac_cv_lib_m_llroundf=no
ef080b63 20891fi
cd9a469c 20892rm -f core conftest.err conftest.$ac_objext \
20893 conftest$ac_exeext conftest.$ac_ext
ef080b63 20894LIBS=$ac_check_lib_save_LIBS
20895fi
cd9a469c 20896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llroundf" >&5
20897$as_echo "$ac_cv_lib_m_llroundf" >&6; }
20898if test "x$ac_cv_lib_m_llroundf" = x""yes; then :
ef080b63 20899
cd9a469c 20900$as_echo "#define HAVE_LLROUNDF 1" >>confdefs.h
ef080b63 20901
20902fi
20903
cd9a469c 20904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround in -lm" >&5
20905$as_echo_n "checking for llround in -lm... " >&6; }
20906if test "${ac_cv_lib_m_llround+set}" = set; then :
20907 $as_echo_n "(cached) " >&6
ef080b63 20908else
20909 ac_check_lib_save_LIBS=$LIBS
20910LIBS="-lm $LIBS"
20911if test x$gcc_no_link = xyes; then
cd9a469c 20912 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 20913fi
cd9a469c 20914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 20915/* end confdefs.h. */
20916
cd9a469c 20917/* Override any GCC internal prototype to avoid an error.
20918 Use char because int might match the return type of a GCC
20919 builtin and then its argument prototype would still apply. */
ef080b63 20920#ifdef __cplusplus
20921extern "C"
20922#endif
ef080b63 20923char llround ();
20924int
20925main ()
20926{
cd9a469c 20927return llround ();
ef080b63 20928 ;
20929 return 0;
20930}
20931_ACEOF
cd9a469c 20932if ac_fn_c_try_link "$LINENO"; then :
ef080b63 20933 ac_cv_lib_m_llround=yes
20934else
cd9a469c 20935 ac_cv_lib_m_llround=no
ef080b63 20936fi
cd9a469c 20937rm -f core conftest.err conftest.$ac_objext \
20938 conftest$ac_exeext conftest.$ac_ext
ef080b63 20939LIBS=$ac_check_lib_save_LIBS
20940fi
cd9a469c 20941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llround" >&5
20942$as_echo "$ac_cv_lib_m_llround" >&6; }
20943if test "x$ac_cv_lib_m_llround" = x""yes; then :
ef080b63 20944
cd9a469c 20945$as_echo "#define HAVE_LLROUND 1" >>confdefs.h
ef080b63 20946
20947fi
20948
cd9a469c 20949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl in -lm" >&5
20950$as_echo_n "checking for llroundl in -lm... " >&6; }
20951if test "${ac_cv_lib_m_llroundl+set}" = set; then :
20952 $as_echo_n "(cached) " >&6
ef080b63 20953else
20954 ac_check_lib_save_LIBS=$LIBS
20955LIBS="-lm $LIBS"
20956if test x$gcc_no_link = xyes; then
cd9a469c 20957 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 20958fi
cd9a469c 20959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 20960/* end confdefs.h. */
20961
cd9a469c 20962/* Override any GCC internal prototype to avoid an error.
20963 Use char because int might match the return type of a GCC
20964 builtin and then its argument prototype would still apply. */
ef080b63 20965#ifdef __cplusplus
20966extern "C"
20967#endif
ef080b63 20968char llroundl ();
20969int
20970main ()
20971{
cd9a469c 20972return llroundl ();
ef080b63 20973 ;
20974 return 0;
20975}
20976_ACEOF
cd9a469c 20977if ac_fn_c_try_link "$LINENO"; then :
ef080b63 20978 ac_cv_lib_m_llroundl=yes
20979else
cd9a469c 20980 ac_cv_lib_m_llroundl=no
ef080b63 20981fi
cd9a469c 20982rm -f core conftest.err conftest.$ac_objext \
20983 conftest$ac_exeext conftest.$ac_ext
ef080b63 20984LIBS=$ac_check_lib_save_LIBS
20985fi
cd9a469c 20986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llroundl" >&5
20987$as_echo "$ac_cv_lib_m_llroundl" >&6; }
20988if test "x$ac_cv_lib_m_llroundl" = x""yes; then :
ef080b63 20989
cd9a469c 20990$as_echo "#define HAVE_LLROUNDL 1" >>confdefs.h
ef080b63 20991
20992fi
20993
cd9a469c 20994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf in -lm" >&5
20995$as_echo_n "checking for scalbnf in -lm... " >&6; }
20996if test "${ac_cv_lib_m_scalbnf+set}" = set; then :
20997 $as_echo_n "(cached) " >&6
d213114b 20998else
20999 ac_check_lib_save_LIBS=$LIBS
21000LIBS="-lm $LIBS"
21001if test x$gcc_no_link = xyes; then
cd9a469c 21002 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21003fi
cd9a469c 21004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21005/* end confdefs.h. */
21006
cd9a469c 21007/* Override any GCC internal prototype to avoid an error.
21008 Use char because int might match the return type of a GCC
21009 builtin and then its argument prototype would still apply. */
d213114b 21010#ifdef __cplusplus
21011extern "C"
21012#endif
d213114b 21013char scalbnf ();
21014int
21015main ()
21016{
cd9a469c 21017return scalbnf ();
d213114b 21018 ;
21019 return 0;
21020}
21021_ACEOF
cd9a469c 21022if ac_fn_c_try_link "$LINENO"; then :
d213114b 21023 ac_cv_lib_m_scalbnf=yes
21024else
cd9a469c 21025 ac_cv_lib_m_scalbnf=no
d213114b 21026fi
cd9a469c 21027rm -f core conftest.err conftest.$ac_objext \
21028 conftest$ac_exeext conftest.$ac_ext
d213114b 21029LIBS=$ac_check_lib_save_LIBS
21030fi
cd9a469c 21031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbnf" >&5
21032$as_echo "$ac_cv_lib_m_scalbnf" >&6; }
21033if test "x$ac_cv_lib_m_scalbnf" = x""yes; then :
d213114b 21034
cd9a469c 21035$as_echo "#define HAVE_SCALBNF 1" >>confdefs.h
d213114b 21036
21037fi
21038
cd9a469c 21039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn in -lm" >&5
21040$as_echo_n "checking for scalbn in -lm... " >&6; }
21041if test "${ac_cv_lib_m_scalbn+set}" = set; then :
21042 $as_echo_n "(cached) " >&6
d213114b 21043else
21044 ac_check_lib_save_LIBS=$LIBS
21045LIBS="-lm $LIBS"
21046if test x$gcc_no_link = xyes; then
cd9a469c 21047 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21048fi
cd9a469c 21049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21050/* end confdefs.h. */
21051
cd9a469c 21052/* Override any GCC internal prototype to avoid an error.
21053 Use char because int might match the return type of a GCC
21054 builtin and then its argument prototype would still apply. */
d213114b 21055#ifdef __cplusplus
21056extern "C"
21057#endif
d213114b 21058char scalbn ();
21059int
21060main ()
21061{
cd9a469c 21062return scalbn ();
d213114b 21063 ;
21064 return 0;
21065}
21066_ACEOF
cd9a469c 21067if ac_fn_c_try_link "$LINENO"; then :
d213114b 21068 ac_cv_lib_m_scalbn=yes
21069else
cd9a469c 21070 ac_cv_lib_m_scalbn=no
d213114b 21071fi
cd9a469c 21072rm -f core conftest.err conftest.$ac_objext \
21073 conftest$ac_exeext conftest.$ac_ext
d213114b 21074LIBS=$ac_check_lib_save_LIBS
21075fi
cd9a469c 21076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbn" >&5
21077$as_echo "$ac_cv_lib_m_scalbn" >&6; }
21078if test "x$ac_cv_lib_m_scalbn" = x""yes; then :
d213114b 21079
cd9a469c 21080$as_echo "#define HAVE_SCALBN 1" >>confdefs.h
d213114b 21081
21082fi
21083
cd9a469c 21084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl in -lm" >&5
21085$as_echo_n "checking for scalbnl in -lm... " >&6; }
21086if test "${ac_cv_lib_m_scalbnl+set}" = set; then :
21087 $as_echo_n "(cached) " >&6
d213114b 21088else
21089 ac_check_lib_save_LIBS=$LIBS
21090LIBS="-lm $LIBS"
21091if test x$gcc_no_link = xyes; then
cd9a469c 21092 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21093fi
cd9a469c 21094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21095/* end confdefs.h. */
21096
cd9a469c 21097/* Override any GCC internal prototype to avoid an error.
21098 Use char because int might match the return type of a GCC
21099 builtin and then its argument prototype would still apply. */
d213114b 21100#ifdef __cplusplus
21101extern "C"
21102#endif
d213114b 21103char scalbnl ();
21104int
21105main ()
21106{
cd9a469c 21107return scalbnl ();
d213114b 21108 ;
21109 return 0;
21110}
21111_ACEOF
cd9a469c 21112if ac_fn_c_try_link "$LINENO"; then :
d213114b 21113 ac_cv_lib_m_scalbnl=yes
21114else
cd9a469c 21115 ac_cv_lib_m_scalbnl=no
d213114b 21116fi
cd9a469c 21117rm -f core conftest.err conftest.$ac_objext \
21118 conftest$ac_exeext conftest.$ac_ext
d213114b 21119LIBS=$ac_check_lib_save_LIBS
21120fi
cd9a469c 21121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbnl" >&5
21122$as_echo "$ac_cv_lib_m_scalbnl" >&6; }
21123if test "x$ac_cv_lib_m_scalbnl" = x""yes; then :
d213114b 21124
cd9a469c 21125$as_echo "#define HAVE_SCALBNL 1" >>confdefs.h
d213114b 21126
21127fi
21128
cd9a469c 21129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf in -lm" >&5
21130$as_echo_n "checking for sinf in -lm... " >&6; }
21131if test "${ac_cv_lib_m_sinf+set}" = set; then :
21132 $as_echo_n "(cached) " >&6
d213114b 21133else
21134 ac_check_lib_save_LIBS=$LIBS
21135LIBS="-lm $LIBS"
21136if test x$gcc_no_link = xyes; then
cd9a469c 21137 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21138fi
cd9a469c 21139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21140/* end confdefs.h. */
21141
cd9a469c 21142/* Override any GCC internal prototype to avoid an error.
21143 Use char because int might match the return type of a GCC
21144 builtin and then its argument prototype would still apply. */
d213114b 21145#ifdef __cplusplus
21146extern "C"
21147#endif
d213114b 21148char sinf ();
21149int
21150main ()
21151{
cd9a469c 21152return sinf ();
d213114b 21153 ;
21154 return 0;
21155}
21156_ACEOF
cd9a469c 21157if ac_fn_c_try_link "$LINENO"; then :
d213114b 21158 ac_cv_lib_m_sinf=yes
21159else
cd9a469c 21160 ac_cv_lib_m_sinf=no
d213114b 21161fi
cd9a469c 21162rm -f core conftest.err conftest.$ac_objext \
21163 conftest$ac_exeext conftest.$ac_ext
d213114b 21164LIBS=$ac_check_lib_save_LIBS
21165fi
cd9a469c 21166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinf" >&5
21167$as_echo "$ac_cv_lib_m_sinf" >&6; }
21168if test "x$ac_cv_lib_m_sinf" = x""yes; then :
d213114b 21169
cd9a469c 21170$as_echo "#define HAVE_SINF 1" >>confdefs.h
d213114b 21171
21172fi
21173
cd9a469c 21174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
21175$as_echo_n "checking for sin in -lm... " >&6; }
21176if test "${ac_cv_lib_m_sin+set}" = set; then :
21177 $as_echo_n "(cached) " >&6
d213114b 21178else
21179 ac_check_lib_save_LIBS=$LIBS
21180LIBS="-lm $LIBS"
21181if test x$gcc_no_link = xyes; then
cd9a469c 21182 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21183fi
cd9a469c 21184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21185/* end confdefs.h. */
21186
cd9a469c 21187/* Override any GCC internal prototype to avoid an error.
21188 Use char because int might match the return type of a GCC
21189 builtin and then its argument prototype would still apply. */
d213114b 21190#ifdef __cplusplus
21191extern "C"
21192#endif
d213114b 21193char sin ();
21194int
21195main ()
21196{
cd9a469c 21197return sin ();
d213114b 21198 ;
21199 return 0;
21200}
21201_ACEOF
cd9a469c 21202if ac_fn_c_try_link "$LINENO"; then :
d213114b 21203 ac_cv_lib_m_sin=yes
21204else
cd9a469c 21205 ac_cv_lib_m_sin=no
d213114b 21206fi
cd9a469c 21207rm -f core conftest.err conftest.$ac_objext \
21208 conftest$ac_exeext conftest.$ac_ext
d213114b 21209LIBS=$ac_check_lib_save_LIBS
21210fi
cd9a469c 21211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
21212$as_echo "$ac_cv_lib_m_sin" >&6; }
21213if test "x$ac_cv_lib_m_sin" = x""yes; then :
d213114b 21214
cd9a469c 21215$as_echo "#define HAVE_SIN 1" >>confdefs.h
d213114b 21216
21217fi
21218
cd9a469c 21219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl in -lm" >&5
21220$as_echo_n "checking for sinl in -lm... " >&6; }
21221if test "${ac_cv_lib_m_sinl+set}" = set; then :
21222 $as_echo_n "(cached) " >&6
d213114b 21223else
21224 ac_check_lib_save_LIBS=$LIBS
21225LIBS="-lm $LIBS"
21226if test x$gcc_no_link = xyes; then
cd9a469c 21227 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21228fi
cd9a469c 21229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21230/* end confdefs.h. */
21231
cd9a469c 21232/* Override any GCC internal prototype to avoid an error.
21233 Use char because int might match the return type of a GCC
21234 builtin and then its argument prototype would still apply. */
d213114b 21235#ifdef __cplusplus
21236extern "C"
21237#endif
d213114b 21238char sinl ();
21239int
21240main ()
21241{
cd9a469c 21242return sinl ();
d213114b 21243 ;
21244 return 0;
21245}
21246_ACEOF
cd9a469c 21247if ac_fn_c_try_link "$LINENO"; then :
d213114b 21248 ac_cv_lib_m_sinl=yes
21249else
cd9a469c 21250 ac_cv_lib_m_sinl=no
d213114b 21251fi
cd9a469c 21252rm -f core conftest.err conftest.$ac_objext \
21253 conftest$ac_exeext conftest.$ac_ext
d213114b 21254LIBS=$ac_check_lib_save_LIBS
21255fi
cd9a469c 21256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinl" >&5
21257$as_echo "$ac_cv_lib_m_sinl" >&6; }
21258if test "x$ac_cv_lib_m_sinl" = x""yes; then :
d213114b 21259
cd9a469c 21260$as_echo "#define HAVE_SINL 1" >>confdefs.h
d213114b 21261
21262fi
21263
cd9a469c 21264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf in -lm" >&5
21265$as_echo_n "checking for csinf in -lm... " >&6; }
21266if test "${ac_cv_lib_m_csinf+set}" = set; then :
21267 $as_echo_n "(cached) " >&6
d213114b 21268else
21269 ac_check_lib_save_LIBS=$LIBS
21270LIBS="-lm $LIBS"
21271if test x$gcc_no_link = xyes; then
cd9a469c 21272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21273fi
cd9a469c 21274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21275/* end confdefs.h. */
21276
cd9a469c 21277/* Override any GCC internal prototype to avoid an error.
21278 Use char because int might match the return type of a GCC
21279 builtin and then its argument prototype would still apply. */
d213114b 21280#ifdef __cplusplus
21281extern "C"
21282#endif
d213114b 21283char csinf ();
21284int
21285main ()
21286{
cd9a469c 21287return csinf ();
d213114b 21288 ;
cd9a469c 21289 return 0;
21290}
21291_ACEOF
21292if ac_fn_c_try_link "$LINENO"; then :
d213114b 21293 ac_cv_lib_m_csinf=yes
21294else
cd9a469c 21295 ac_cv_lib_m_csinf=no
d213114b 21296fi
cd9a469c 21297rm -f core conftest.err conftest.$ac_objext \
21298 conftest$ac_exeext conftest.$ac_ext
d213114b 21299LIBS=$ac_check_lib_save_LIBS
21300fi
cd9a469c 21301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinf" >&5
21302$as_echo "$ac_cv_lib_m_csinf" >&6; }
21303if test "x$ac_cv_lib_m_csinf" = x""yes; then :
d213114b 21304
cd9a469c 21305$as_echo "#define HAVE_CSINF 1" >>confdefs.h
d213114b 21306
21307fi
21308
cd9a469c 21309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin in -lm" >&5
21310$as_echo_n "checking for csin in -lm... " >&6; }
21311if test "${ac_cv_lib_m_csin+set}" = set; then :
21312 $as_echo_n "(cached) " >&6
d213114b 21313else
21314 ac_check_lib_save_LIBS=$LIBS
21315LIBS="-lm $LIBS"
21316if test x$gcc_no_link = xyes; then
cd9a469c 21317 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21318fi
cd9a469c 21319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21320/* end confdefs.h. */
21321
cd9a469c 21322/* Override any GCC internal prototype to avoid an error.
21323 Use char because int might match the return type of a GCC
21324 builtin and then its argument prototype would still apply. */
d213114b 21325#ifdef __cplusplus
21326extern "C"
21327#endif
d213114b 21328char csin ();
21329int
21330main ()
21331{
cd9a469c 21332return csin ();
d213114b 21333 ;
21334 return 0;
21335}
21336_ACEOF
cd9a469c 21337if ac_fn_c_try_link "$LINENO"; then :
d213114b 21338 ac_cv_lib_m_csin=yes
21339else
cd9a469c 21340 ac_cv_lib_m_csin=no
d213114b 21341fi
cd9a469c 21342rm -f core conftest.err conftest.$ac_objext \
21343 conftest$ac_exeext conftest.$ac_ext
d213114b 21344LIBS=$ac_check_lib_save_LIBS
21345fi
cd9a469c 21346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csin" >&5
21347$as_echo "$ac_cv_lib_m_csin" >&6; }
21348if test "x$ac_cv_lib_m_csin" = x""yes; then :
d213114b 21349
cd9a469c 21350$as_echo "#define HAVE_CSIN 1" >>confdefs.h
d213114b 21351
21352fi
21353
cd9a469c 21354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl in -lm" >&5
21355$as_echo_n "checking for csinl in -lm... " >&6; }
21356if test "${ac_cv_lib_m_csinl+set}" = set; then :
21357 $as_echo_n "(cached) " >&6
d213114b 21358else
21359 ac_check_lib_save_LIBS=$LIBS
21360LIBS="-lm $LIBS"
21361if test x$gcc_no_link = xyes; then
cd9a469c 21362 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21363fi
cd9a469c 21364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21365/* end confdefs.h. */
21366
cd9a469c 21367/* Override any GCC internal prototype to avoid an error.
21368 Use char because int might match the return type of a GCC
21369 builtin and then its argument prototype would still apply. */
d213114b 21370#ifdef __cplusplus
21371extern "C"
21372#endif
d213114b 21373char csinl ();
21374int
21375main ()
21376{
cd9a469c 21377return csinl ();
d213114b 21378 ;
21379 return 0;
21380}
21381_ACEOF
cd9a469c 21382if ac_fn_c_try_link "$LINENO"; then :
d213114b 21383 ac_cv_lib_m_csinl=yes
21384else
cd9a469c 21385 ac_cv_lib_m_csinl=no
d213114b 21386fi
cd9a469c 21387rm -f core conftest.err conftest.$ac_objext \
21388 conftest$ac_exeext conftest.$ac_ext
d213114b 21389LIBS=$ac_check_lib_save_LIBS
21390fi
cd9a469c 21391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinl" >&5
21392$as_echo "$ac_cv_lib_m_csinl" >&6; }
21393if test "x$ac_cv_lib_m_csinl" = x""yes; then :
d213114b 21394
cd9a469c 21395$as_echo "#define HAVE_CSINL 1" >>confdefs.h
d213114b 21396
21397fi
21398
cd9a469c 21399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf in -lm" >&5
21400$as_echo_n "checking for sinhf in -lm... " >&6; }
21401if test "${ac_cv_lib_m_sinhf+set}" = set; then :
21402 $as_echo_n "(cached) " >&6
d213114b 21403else
21404 ac_check_lib_save_LIBS=$LIBS
21405LIBS="-lm $LIBS"
21406if test x$gcc_no_link = xyes; then
cd9a469c 21407 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21408fi
cd9a469c 21409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21410/* end confdefs.h. */
21411
cd9a469c 21412/* Override any GCC internal prototype to avoid an error.
21413 Use char because int might match the return type of a GCC
21414 builtin and then its argument prototype would still apply. */
d213114b 21415#ifdef __cplusplus
21416extern "C"
21417#endif
d213114b 21418char sinhf ();
21419int
21420main ()
21421{
cd9a469c 21422return sinhf ();
d213114b 21423 ;
21424 return 0;
21425}
21426_ACEOF
cd9a469c 21427if ac_fn_c_try_link "$LINENO"; then :
d213114b 21428 ac_cv_lib_m_sinhf=yes
21429else
cd9a469c 21430 ac_cv_lib_m_sinhf=no
d213114b 21431fi
cd9a469c 21432rm -f core conftest.err conftest.$ac_objext \
21433 conftest$ac_exeext conftest.$ac_ext
d213114b 21434LIBS=$ac_check_lib_save_LIBS
21435fi
cd9a469c 21436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinhf" >&5
21437$as_echo "$ac_cv_lib_m_sinhf" >&6; }
21438if test "x$ac_cv_lib_m_sinhf" = x""yes; then :
d213114b 21439
cd9a469c 21440$as_echo "#define HAVE_SINHF 1" >>confdefs.h
d213114b 21441
21442fi
21443
cd9a469c 21444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh in -lm" >&5
21445$as_echo_n "checking for sinh in -lm... " >&6; }
21446if test "${ac_cv_lib_m_sinh+set}" = set; then :
21447 $as_echo_n "(cached) " >&6
d213114b 21448else
21449 ac_check_lib_save_LIBS=$LIBS
21450LIBS="-lm $LIBS"
21451if test x$gcc_no_link = xyes; then
cd9a469c 21452 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21453fi
cd9a469c 21454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21455/* end confdefs.h. */
21456
cd9a469c 21457/* Override any GCC internal prototype to avoid an error.
21458 Use char because int might match the return type of a GCC
21459 builtin and then its argument prototype would still apply. */
d213114b 21460#ifdef __cplusplus
21461extern "C"
21462#endif
d213114b 21463char sinh ();
21464int
21465main ()
21466{
cd9a469c 21467return sinh ();
d213114b 21468 ;
21469 return 0;
21470}
21471_ACEOF
cd9a469c 21472if ac_fn_c_try_link "$LINENO"; then :
d213114b 21473 ac_cv_lib_m_sinh=yes
21474else
cd9a469c 21475 ac_cv_lib_m_sinh=no
d213114b 21476fi
cd9a469c 21477rm -f core conftest.err conftest.$ac_objext \
21478 conftest$ac_exeext conftest.$ac_ext
d213114b 21479LIBS=$ac_check_lib_save_LIBS
21480fi
cd9a469c 21481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinh" >&5
21482$as_echo "$ac_cv_lib_m_sinh" >&6; }
21483if test "x$ac_cv_lib_m_sinh" = x""yes; then :
d213114b 21484
cd9a469c 21485$as_echo "#define HAVE_SINH 1" >>confdefs.h
d213114b 21486
21487fi
21488
cd9a469c 21489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl in -lm" >&5
21490$as_echo_n "checking for sinhl in -lm... " >&6; }
21491if test "${ac_cv_lib_m_sinhl+set}" = set; then :
21492 $as_echo_n "(cached) " >&6
d213114b 21493else
21494 ac_check_lib_save_LIBS=$LIBS
21495LIBS="-lm $LIBS"
21496if test x$gcc_no_link = xyes; then
cd9a469c 21497 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21498fi
cd9a469c 21499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21500/* end confdefs.h. */
21501
cd9a469c 21502/* Override any GCC internal prototype to avoid an error.
21503 Use char because int might match the return type of a GCC
21504 builtin and then its argument prototype would still apply. */
d213114b 21505#ifdef __cplusplus
21506extern "C"
21507#endif
d213114b 21508char sinhl ();
21509int
21510main ()
21511{
cd9a469c 21512return sinhl ();
d213114b 21513 ;
21514 return 0;
21515}
21516_ACEOF
cd9a469c 21517if ac_fn_c_try_link "$LINENO"; then :
d213114b 21518 ac_cv_lib_m_sinhl=yes
21519else
cd9a469c 21520 ac_cv_lib_m_sinhl=no
d213114b 21521fi
cd9a469c 21522rm -f core conftest.err conftest.$ac_objext \
21523 conftest$ac_exeext conftest.$ac_ext
d213114b 21524LIBS=$ac_check_lib_save_LIBS
21525fi
cd9a469c 21526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinhl" >&5
21527$as_echo "$ac_cv_lib_m_sinhl" >&6; }
21528if test "x$ac_cv_lib_m_sinhl" = x""yes; then :
d213114b 21529
cd9a469c 21530$as_echo "#define HAVE_SINHL 1" >>confdefs.h
d213114b 21531
21532fi
21533
cd9a469c 21534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf in -lm" >&5
21535$as_echo_n "checking for csinhf in -lm... " >&6; }
21536if test "${ac_cv_lib_m_csinhf+set}" = set; then :
21537 $as_echo_n "(cached) " >&6
d213114b 21538else
21539 ac_check_lib_save_LIBS=$LIBS
21540LIBS="-lm $LIBS"
21541if test x$gcc_no_link = xyes; then
cd9a469c 21542 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21543fi
cd9a469c 21544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21545/* end confdefs.h. */
21546
cd9a469c 21547/* Override any GCC internal prototype to avoid an error.
21548 Use char because int might match the return type of a GCC
21549 builtin and then its argument prototype would still apply. */
d213114b 21550#ifdef __cplusplus
21551extern "C"
21552#endif
d213114b 21553char csinhf ();
21554int
21555main ()
21556{
cd9a469c 21557return csinhf ();
d213114b 21558 ;
21559 return 0;
21560}
21561_ACEOF
cd9a469c 21562if ac_fn_c_try_link "$LINENO"; then :
d213114b 21563 ac_cv_lib_m_csinhf=yes
21564else
cd9a469c 21565 ac_cv_lib_m_csinhf=no
d213114b 21566fi
cd9a469c 21567rm -f core conftest.err conftest.$ac_objext \
21568 conftest$ac_exeext conftest.$ac_ext
d213114b 21569LIBS=$ac_check_lib_save_LIBS
21570fi
cd9a469c 21571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinhf" >&5
21572$as_echo "$ac_cv_lib_m_csinhf" >&6; }
21573if test "x$ac_cv_lib_m_csinhf" = x""yes; then :
d213114b 21574
cd9a469c 21575$as_echo "#define HAVE_CSINHF 1" >>confdefs.h
d213114b 21576
21577fi
21578
cd9a469c 21579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh in -lm" >&5
21580$as_echo_n "checking for csinh in -lm... " >&6; }
21581if test "${ac_cv_lib_m_csinh+set}" = set; then :
21582 $as_echo_n "(cached) " >&6
d213114b 21583else
21584 ac_check_lib_save_LIBS=$LIBS
21585LIBS="-lm $LIBS"
21586if test x$gcc_no_link = xyes; then
cd9a469c 21587 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21588fi
cd9a469c 21589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21590/* end confdefs.h. */
21591
cd9a469c 21592/* Override any GCC internal prototype to avoid an error.
21593 Use char because int might match the return type of a GCC
21594 builtin and then its argument prototype would still apply. */
d213114b 21595#ifdef __cplusplus
21596extern "C"
21597#endif
d213114b 21598char csinh ();
21599int
21600main ()
21601{
cd9a469c 21602return csinh ();
d213114b 21603 ;
21604 return 0;
21605}
21606_ACEOF
cd9a469c 21607if ac_fn_c_try_link "$LINENO"; then :
d213114b 21608 ac_cv_lib_m_csinh=yes
21609else
cd9a469c 21610 ac_cv_lib_m_csinh=no
d213114b 21611fi
cd9a469c 21612rm -f core conftest.err conftest.$ac_objext \
21613 conftest$ac_exeext conftest.$ac_ext
d213114b 21614LIBS=$ac_check_lib_save_LIBS
21615fi
cd9a469c 21616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinh" >&5
21617$as_echo "$ac_cv_lib_m_csinh" >&6; }
21618if test "x$ac_cv_lib_m_csinh" = x""yes; then :
d213114b 21619
cd9a469c 21620$as_echo "#define HAVE_CSINH 1" >>confdefs.h
d213114b 21621
21622fi
21623
cd9a469c 21624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl in -lm" >&5
21625$as_echo_n "checking for csinhl in -lm... " >&6; }
21626if test "${ac_cv_lib_m_csinhl+set}" = set; then :
21627 $as_echo_n "(cached) " >&6
d213114b 21628else
21629 ac_check_lib_save_LIBS=$LIBS
21630LIBS="-lm $LIBS"
21631if test x$gcc_no_link = xyes; then
cd9a469c 21632 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21633fi
cd9a469c 21634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21635/* end confdefs.h. */
21636
cd9a469c 21637/* Override any GCC internal prototype to avoid an error.
21638 Use char because int might match the return type of a GCC
21639 builtin and then its argument prototype would still apply. */
d213114b 21640#ifdef __cplusplus
21641extern "C"
21642#endif
d213114b 21643char csinhl ();
21644int
21645main ()
21646{
cd9a469c 21647return csinhl ();
d213114b 21648 ;
21649 return 0;
21650}
21651_ACEOF
cd9a469c 21652if ac_fn_c_try_link "$LINENO"; then :
d213114b 21653 ac_cv_lib_m_csinhl=yes
21654else
cd9a469c 21655 ac_cv_lib_m_csinhl=no
d213114b 21656fi
cd9a469c 21657rm -f core conftest.err conftest.$ac_objext \
21658 conftest$ac_exeext conftest.$ac_ext
d213114b 21659LIBS=$ac_check_lib_save_LIBS
21660fi
cd9a469c 21661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinhl" >&5
21662$as_echo "$ac_cv_lib_m_csinhl" >&6; }
21663if test "x$ac_cv_lib_m_csinhl" = x""yes; then :
d213114b 21664
cd9a469c 21665$as_echo "#define HAVE_CSINHL 1" >>confdefs.h
d213114b 21666
21667fi
21668
cd9a469c 21669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf in -lm" >&5
21670$as_echo_n "checking for sqrtf in -lm... " >&6; }
21671if test "${ac_cv_lib_m_sqrtf+set}" = set; then :
21672 $as_echo_n "(cached) " >&6
d213114b 21673else
21674 ac_check_lib_save_LIBS=$LIBS
21675LIBS="-lm $LIBS"
21676if test x$gcc_no_link = xyes; then
cd9a469c 21677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21678fi
cd9a469c 21679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21680/* end confdefs.h. */
21681
cd9a469c 21682/* Override any GCC internal prototype to avoid an error.
21683 Use char because int might match the return type of a GCC
21684 builtin and then its argument prototype would still apply. */
d213114b 21685#ifdef __cplusplus
21686extern "C"
21687#endif
d213114b 21688char sqrtf ();
21689int
21690main ()
21691{
cd9a469c 21692return sqrtf ();
d213114b 21693 ;
21694 return 0;
21695}
21696_ACEOF
cd9a469c 21697if ac_fn_c_try_link "$LINENO"; then :
d213114b 21698 ac_cv_lib_m_sqrtf=yes
21699else
cd9a469c 21700 ac_cv_lib_m_sqrtf=no
d213114b 21701fi
cd9a469c 21702rm -f core conftest.err conftest.$ac_objext \
21703 conftest$ac_exeext conftest.$ac_ext
d213114b 21704LIBS=$ac_check_lib_save_LIBS
21705fi
cd9a469c 21706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtf" >&5
21707$as_echo "$ac_cv_lib_m_sqrtf" >&6; }
21708if test "x$ac_cv_lib_m_sqrtf" = x""yes; then :
d213114b 21709
cd9a469c 21710$as_echo "#define HAVE_SQRTF 1" >>confdefs.h
d213114b 21711
21712fi
21713
cd9a469c 21714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
21715$as_echo_n "checking for sqrt in -lm... " >&6; }
21716if test "${ac_cv_lib_m_sqrt+set}" = set; then :
21717 $as_echo_n "(cached) " >&6
d213114b 21718else
21719 ac_check_lib_save_LIBS=$LIBS
21720LIBS="-lm $LIBS"
21721if test x$gcc_no_link = xyes; then
cd9a469c 21722 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21723fi
cd9a469c 21724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21725/* end confdefs.h. */
21726
cd9a469c 21727/* Override any GCC internal prototype to avoid an error.
21728 Use char because int might match the return type of a GCC
21729 builtin and then its argument prototype would still apply. */
d213114b 21730#ifdef __cplusplus
21731extern "C"
21732#endif
d213114b 21733char sqrt ();
21734int
21735main ()
21736{
cd9a469c 21737return sqrt ();
d213114b 21738 ;
21739 return 0;
21740}
21741_ACEOF
cd9a469c 21742if ac_fn_c_try_link "$LINENO"; then :
d213114b 21743 ac_cv_lib_m_sqrt=yes
21744else
cd9a469c 21745 ac_cv_lib_m_sqrt=no
d213114b 21746fi
cd9a469c 21747rm -f core conftest.err conftest.$ac_objext \
21748 conftest$ac_exeext conftest.$ac_ext
d213114b 21749LIBS=$ac_check_lib_save_LIBS
21750fi
cd9a469c 21751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
21752$as_echo "$ac_cv_lib_m_sqrt" >&6; }
21753if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
d213114b 21754
cd9a469c 21755$as_echo "#define HAVE_SQRT 1" >>confdefs.h
d213114b 21756
21757fi
21758
cd9a469c 21759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
21760$as_echo_n "checking for sqrtl in -lm... " >&6; }
21761if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
21762 $as_echo_n "(cached) " >&6
d213114b 21763else
21764 ac_check_lib_save_LIBS=$LIBS
21765LIBS="-lm $LIBS"
21766if test x$gcc_no_link = xyes; then
cd9a469c 21767 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21768fi
cd9a469c 21769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21770/* end confdefs.h. */
21771
cd9a469c 21772/* Override any GCC internal prototype to avoid an error.
21773 Use char because int might match the return type of a GCC
21774 builtin and then its argument prototype would still apply. */
d213114b 21775#ifdef __cplusplus
21776extern "C"
21777#endif
d213114b 21778char sqrtl ();
21779int
21780main ()
21781{
cd9a469c 21782return sqrtl ();
d213114b 21783 ;
21784 return 0;
21785}
21786_ACEOF
cd9a469c 21787if ac_fn_c_try_link "$LINENO"; then :
d213114b 21788 ac_cv_lib_m_sqrtl=yes
21789else
cd9a469c 21790 ac_cv_lib_m_sqrtl=no
d213114b 21791fi
cd9a469c 21792rm -f core conftest.err conftest.$ac_objext \
21793 conftest$ac_exeext conftest.$ac_ext
d213114b 21794LIBS=$ac_check_lib_save_LIBS
21795fi
cd9a469c 21796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
21797$as_echo "$ac_cv_lib_m_sqrtl" >&6; }
21798if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
d213114b 21799
cd9a469c 21800$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
d213114b 21801
21802fi
21803
cd9a469c 21804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf in -lm" >&5
21805$as_echo_n "checking for csqrtf in -lm... " >&6; }
21806if test "${ac_cv_lib_m_csqrtf+set}" = set; then :
21807 $as_echo_n "(cached) " >&6
d213114b 21808else
21809 ac_check_lib_save_LIBS=$LIBS
21810LIBS="-lm $LIBS"
21811if test x$gcc_no_link = xyes; then
cd9a469c 21812 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21813fi
cd9a469c 21814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21815/* end confdefs.h. */
21816
cd9a469c 21817/* Override any GCC internal prototype to avoid an error.
21818 Use char because int might match the return type of a GCC
21819 builtin and then its argument prototype would still apply. */
d213114b 21820#ifdef __cplusplus
21821extern "C"
21822#endif
d213114b 21823char csqrtf ();
21824int
21825main ()
21826{
cd9a469c 21827return csqrtf ();
d213114b 21828 ;
21829 return 0;
21830}
21831_ACEOF
cd9a469c 21832if ac_fn_c_try_link "$LINENO"; then :
d213114b 21833 ac_cv_lib_m_csqrtf=yes
21834else
cd9a469c 21835 ac_cv_lib_m_csqrtf=no
d213114b 21836fi
cd9a469c 21837rm -f core conftest.err conftest.$ac_objext \
21838 conftest$ac_exeext conftest.$ac_ext
d213114b 21839LIBS=$ac_check_lib_save_LIBS
21840fi
cd9a469c 21841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrtf" >&5
21842$as_echo "$ac_cv_lib_m_csqrtf" >&6; }
21843if test "x$ac_cv_lib_m_csqrtf" = x""yes; then :
d213114b 21844
cd9a469c 21845$as_echo "#define HAVE_CSQRTF 1" >>confdefs.h
d213114b 21846
21847fi
21848
cd9a469c 21849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt in -lm" >&5
21850$as_echo_n "checking for csqrt in -lm... " >&6; }
21851if test "${ac_cv_lib_m_csqrt+set}" = set; then :
21852 $as_echo_n "(cached) " >&6
d213114b 21853else
21854 ac_check_lib_save_LIBS=$LIBS
21855LIBS="-lm $LIBS"
21856if test x$gcc_no_link = xyes; then
cd9a469c 21857 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21858fi
cd9a469c 21859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21860/* end confdefs.h. */
21861
cd9a469c 21862/* Override any GCC internal prototype to avoid an error.
21863 Use char because int might match the return type of a GCC
21864 builtin and then its argument prototype would still apply. */
d213114b 21865#ifdef __cplusplus
21866extern "C"
21867#endif
d213114b 21868char csqrt ();
21869int
21870main ()
21871{
cd9a469c 21872return csqrt ();
d213114b 21873 ;
21874 return 0;
21875}
21876_ACEOF
cd9a469c 21877if ac_fn_c_try_link "$LINENO"; then :
d213114b 21878 ac_cv_lib_m_csqrt=yes
21879else
cd9a469c 21880 ac_cv_lib_m_csqrt=no
d213114b 21881fi
cd9a469c 21882rm -f core conftest.err conftest.$ac_objext \
21883 conftest$ac_exeext conftest.$ac_ext
d213114b 21884LIBS=$ac_check_lib_save_LIBS
21885fi
cd9a469c 21886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrt" >&5
21887$as_echo "$ac_cv_lib_m_csqrt" >&6; }
21888if test "x$ac_cv_lib_m_csqrt" = x""yes; then :
d213114b 21889
cd9a469c 21890$as_echo "#define HAVE_CSQRT 1" >>confdefs.h
d213114b 21891
21892fi
21893
cd9a469c 21894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl in -lm" >&5
21895$as_echo_n "checking for csqrtl in -lm... " >&6; }
21896if test "${ac_cv_lib_m_csqrtl+set}" = set; then :
21897 $as_echo_n "(cached) " >&6
d213114b 21898else
21899 ac_check_lib_save_LIBS=$LIBS
21900LIBS="-lm $LIBS"
21901if test x$gcc_no_link = xyes; then
cd9a469c 21902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21903fi
cd9a469c 21904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21905/* end confdefs.h. */
21906
cd9a469c 21907/* Override any GCC internal prototype to avoid an error.
21908 Use char because int might match the return type of a GCC
21909 builtin and then its argument prototype would still apply. */
d213114b 21910#ifdef __cplusplus
21911extern "C"
21912#endif
d213114b 21913char csqrtl ();
21914int
21915main ()
21916{
cd9a469c 21917return csqrtl ();
d213114b 21918 ;
21919 return 0;
21920}
21921_ACEOF
cd9a469c 21922if ac_fn_c_try_link "$LINENO"; then :
d213114b 21923 ac_cv_lib_m_csqrtl=yes
21924else
cd9a469c 21925 ac_cv_lib_m_csqrtl=no
d213114b 21926fi
cd9a469c 21927rm -f core conftest.err conftest.$ac_objext \
21928 conftest$ac_exeext conftest.$ac_ext
d213114b 21929LIBS=$ac_check_lib_save_LIBS
21930fi
cd9a469c 21931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrtl" >&5
21932$as_echo "$ac_cv_lib_m_csqrtl" >&6; }
21933if test "x$ac_cv_lib_m_csqrtl" = x""yes; then :
d213114b 21934
cd9a469c 21935$as_echo "#define HAVE_CSQRTL 1" >>confdefs.h
d213114b 21936
21937fi
21938
cd9a469c 21939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf in -lm" >&5
21940$as_echo_n "checking for tanf in -lm... " >&6; }
21941if test "${ac_cv_lib_m_tanf+set}" = set; then :
21942 $as_echo_n "(cached) " >&6
d213114b 21943else
21944 ac_check_lib_save_LIBS=$LIBS
21945LIBS="-lm $LIBS"
21946if test x$gcc_no_link = xyes; then
cd9a469c 21947 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21948fi
cd9a469c 21949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21950/* end confdefs.h. */
21951
cd9a469c 21952/* Override any GCC internal prototype to avoid an error.
21953 Use char because int might match the return type of a GCC
21954 builtin and then its argument prototype would still apply. */
d213114b 21955#ifdef __cplusplus
21956extern "C"
21957#endif
d213114b 21958char tanf ();
21959int
21960main ()
21961{
cd9a469c 21962return tanf ();
d213114b 21963 ;
21964 return 0;
21965}
21966_ACEOF
cd9a469c 21967if ac_fn_c_try_link "$LINENO"; then :
d213114b 21968 ac_cv_lib_m_tanf=yes
21969else
cd9a469c 21970 ac_cv_lib_m_tanf=no
d213114b 21971fi
cd9a469c 21972rm -f core conftest.err conftest.$ac_objext \
21973 conftest$ac_exeext conftest.$ac_ext
d213114b 21974LIBS=$ac_check_lib_save_LIBS
21975fi
cd9a469c 21976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanf" >&5
21977$as_echo "$ac_cv_lib_m_tanf" >&6; }
21978if test "x$ac_cv_lib_m_tanf" = x""yes; then :
d213114b 21979
cd9a469c 21980$as_echo "#define HAVE_TANF 1" >>confdefs.h
d213114b 21981
21982fi
21983
cd9a469c 21984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan in -lm" >&5
21985$as_echo_n "checking for tan in -lm... " >&6; }
21986if test "${ac_cv_lib_m_tan+set}" = set; then :
21987 $as_echo_n "(cached) " >&6
d213114b 21988else
21989 ac_check_lib_save_LIBS=$LIBS
21990LIBS="-lm $LIBS"
21991if test x$gcc_no_link = xyes; then
cd9a469c 21992 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21993fi
cd9a469c 21994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21995/* end confdefs.h. */
21996
cd9a469c 21997/* Override any GCC internal prototype to avoid an error.
21998 Use char because int might match the return type of a GCC
21999 builtin and then its argument prototype would still apply. */
d213114b 22000#ifdef __cplusplus
22001extern "C"
22002#endif
d213114b 22003char tan ();
22004int
22005main ()
22006{
cd9a469c 22007return tan ();
d213114b 22008 ;
22009 return 0;
22010}
22011_ACEOF
cd9a469c 22012if ac_fn_c_try_link "$LINENO"; then :
d213114b 22013 ac_cv_lib_m_tan=yes
22014else
cd9a469c 22015 ac_cv_lib_m_tan=no
d213114b 22016fi
cd9a469c 22017rm -f core conftest.err conftest.$ac_objext \
22018 conftest$ac_exeext conftest.$ac_ext
d213114b 22019LIBS=$ac_check_lib_save_LIBS
22020fi
cd9a469c 22021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tan" >&5
22022$as_echo "$ac_cv_lib_m_tan" >&6; }
22023if test "x$ac_cv_lib_m_tan" = x""yes; then :
d213114b 22024
cd9a469c 22025$as_echo "#define HAVE_TAN 1" >>confdefs.h
d213114b 22026
22027fi
22028
cd9a469c 22029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl in -lm" >&5
22030$as_echo_n "checking for tanl in -lm... " >&6; }
22031if test "${ac_cv_lib_m_tanl+set}" = set; then :
22032 $as_echo_n "(cached) " >&6
d213114b 22033else
22034 ac_check_lib_save_LIBS=$LIBS
22035LIBS="-lm $LIBS"
22036if test x$gcc_no_link = xyes; then
cd9a469c 22037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22038fi
cd9a469c 22039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22040/* end confdefs.h. */
22041
cd9a469c 22042/* Override any GCC internal prototype to avoid an error.
22043 Use char because int might match the return type of a GCC
22044 builtin and then its argument prototype would still apply. */
d213114b 22045#ifdef __cplusplus
22046extern "C"
22047#endif
d213114b 22048char tanl ();
22049int
22050main ()
22051{
cd9a469c 22052return tanl ();
d213114b 22053 ;
22054 return 0;
22055}
22056_ACEOF
cd9a469c 22057if ac_fn_c_try_link "$LINENO"; then :
d213114b 22058 ac_cv_lib_m_tanl=yes
22059else
cd9a469c 22060 ac_cv_lib_m_tanl=no
d213114b 22061fi
cd9a469c 22062rm -f core conftest.err conftest.$ac_objext \
22063 conftest$ac_exeext conftest.$ac_ext
d213114b 22064LIBS=$ac_check_lib_save_LIBS
22065fi
cd9a469c 22066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanl" >&5
22067$as_echo "$ac_cv_lib_m_tanl" >&6; }
22068if test "x$ac_cv_lib_m_tanl" = x""yes; then :
d213114b 22069
cd9a469c 22070$as_echo "#define HAVE_TANL 1" >>confdefs.h
d213114b 22071
22072fi
22073
cd9a469c 22074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf in -lm" >&5
22075$as_echo_n "checking for ctanf in -lm... " >&6; }
22076if test "${ac_cv_lib_m_ctanf+set}" = set; then :
22077 $as_echo_n "(cached) " >&6
d213114b 22078else
22079 ac_check_lib_save_LIBS=$LIBS
22080LIBS="-lm $LIBS"
22081if test x$gcc_no_link = xyes; then
cd9a469c 22082 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22083fi
cd9a469c 22084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22085/* end confdefs.h. */
22086
cd9a469c 22087/* Override any GCC internal prototype to avoid an error.
22088 Use char because int might match the return type of a GCC
22089 builtin and then its argument prototype would still apply. */
d213114b 22090#ifdef __cplusplus
22091extern "C"
22092#endif
d213114b 22093char ctanf ();
22094int
22095main ()
22096{
cd9a469c 22097return ctanf ();
d213114b 22098 ;
22099 return 0;
22100}
22101_ACEOF
cd9a469c 22102if ac_fn_c_try_link "$LINENO"; then :
d213114b 22103 ac_cv_lib_m_ctanf=yes
22104else
cd9a469c 22105 ac_cv_lib_m_ctanf=no
d213114b 22106fi
cd9a469c 22107rm -f core conftest.err conftest.$ac_objext \
22108 conftest$ac_exeext conftest.$ac_ext
d213114b 22109LIBS=$ac_check_lib_save_LIBS
22110fi
cd9a469c 22111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanf" >&5
22112$as_echo "$ac_cv_lib_m_ctanf" >&6; }
22113if test "x$ac_cv_lib_m_ctanf" = x""yes; then :
d213114b 22114
cd9a469c 22115$as_echo "#define HAVE_CTANF 1" >>confdefs.h
d213114b 22116
22117fi
22118
cd9a469c 22119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan in -lm" >&5
22120$as_echo_n "checking for ctan in -lm... " >&6; }
22121if test "${ac_cv_lib_m_ctan+set}" = set; then :
22122 $as_echo_n "(cached) " >&6
d213114b 22123else
22124 ac_check_lib_save_LIBS=$LIBS
22125LIBS="-lm $LIBS"
22126if test x$gcc_no_link = xyes; then
cd9a469c 22127 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22128fi
cd9a469c 22129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22130/* end confdefs.h. */
22131
cd9a469c 22132/* Override any GCC internal prototype to avoid an error.
22133 Use char because int might match the return type of a GCC
22134 builtin and then its argument prototype would still apply. */
d213114b 22135#ifdef __cplusplus
22136extern "C"
22137#endif
d213114b 22138char ctan ();
22139int
22140main ()
22141{
cd9a469c 22142return ctan ();
d213114b 22143 ;
22144 return 0;
22145}
22146_ACEOF
cd9a469c 22147if ac_fn_c_try_link "$LINENO"; then :
d213114b 22148 ac_cv_lib_m_ctan=yes
22149else
cd9a469c 22150 ac_cv_lib_m_ctan=no
d213114b 22151fi
cd9a469c 22152rm -f core conftest.err conftest.$ac_objext \
22153 conftest$ac_exeext conftest.$ac_ext
d213114b 22154LIBS=$ac_check_lib_save_LIBS
22155fi
cd9a469c 22156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctan" >&5
22157$as_echo "$ac_cv_lib_m_ctan" >&6; }
22158if test "x$ac_cv_lib_m_ctan" = x""yes; then :
d213114b 22159
cd9a469c 22160$as_echo "#define HAVE_CTAN 1" >>confdefs.h
d213114b 22161
22162fi
22163
cd9a469c 22164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl in -lm" >&5
22165$as_echo_n "checking for ctanl in -lm... " >&6; }
22166if test "${ac_cv_lib_m_ctanl+set}" = set; then :
22167 $as_echo_n "(cached) " >&6
d213114b 22168else
22169 ac_check_lib_save_LIBS=$LIBS
22170LIBS="-lm $LIBS"
22171if test x$gcc_no_link = xyes; then
cd9a469c 22172 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22173fi
cd9a469c 22174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22175/* end confdefs.h. */
22176
cd9a469c 22177/* Override any GCC internal prototype to avoid an error.
22178 Use char because int might match the return type of a GCC
22179 builtin and then its argument prototype would still apply. */
d213114b 22180#ifdef __cplusplus
22181extern "C"
22182#endif
d213114b 22183char ctanl ();
22184int
22185main ()
22186{
cd9a469c 22187return ctanl ();
d213114b 22188 ;
22189 return 0;
22190}
22191_ACEOF
cd9a469c 22192if ac_fn_c_try_link "$LINENO"; then :
d213114b 22193 ac_cv_lib_m_ctanl=yes
22194else
cd9a469c 22195 ac_cv_lib_m_ctanl=no
d213114b 22196fi
cd9a469c 22197rm -f core conftest.err conftest.$ac_objext \
22198 conftest$ac_exeext conftest.$ac_ext
d213114b 22199LIBS=$ac_check_lib_save_LIBS
22200fi
cd9a469c 22201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanl" >&5
22202$as_echo "$ac_cv_lib_m_ctanl" >&6; }
22203if test "x$ac_cv_lib_m_ctanl" = x""yes; then :
d213114b 22204
cd9a469c 22205$as_echo "#define HAVE_CTANL 1" >>confdefs.h
d213114b 22206
22207fi
22208
cd9a469c 22209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf in -lm" >&5
22210$as_echo_n "checking for tanhf in -lm... " >&6; }
22211if test "${ac_cv_lib_m_tanhf+set}" = set; then :
22212 $as_echo_n "(cached) " >&6
d213114b 22213else
22214 ac_check_lib_save_LIBS=$LIBS
22215LIBS="-lm $LIBS"
22216if test x$gcc_no_link = xyes; then
cd9a469c 22217 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22218fi
cd9a469c 22219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22220/* end confdefs.h. */
22221
cd9a469c 22222/* Override any GCC internal prototype to avoid an error.
22223 Use char because int might match the return type of a GCC
22224 builtin and then its argument prototype would still apply. */
d213114b 22225#ifdef __cplusplus
22226extern "C"
22227#endif
d213114b 22228char tanhf ();
22229int
22230main ()
22231{
cd9a469c 22232return tanhf ();
d213114b 22233 ;
22234 return 0;
22235}
22236_ACEOF
cd9a469c 22237if ac_fn_c_try_link "$LINENO"; then :
d213114b 22238 ac_cv_lib_m_tanhf=yes
22239else
cd9a469c 22240 ac_cv_lib_m_tanhf=no
d213114b 22241fi
cd9a469c 22242rm -f core conftest.err conftest.$ac_objext \
22243 conftest$ac_exeext conftest.$ac_ext
d213114b 22244LIBS=$ac_check_lib_save_LIBS
22245fi
cd9a469c 22246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanhf" >&5
22247$as_echo "$ac_cv_lib_m_tanhf" >&6; }
22248if test "x$ac_cv_lib_m_tanhf" = x""yes; then :
d213114b 22249
cd9a469c 22250$as_echo "#define HAVE_TANHF 1" >>confdefs.h
d213114b 22251
22252fi
22253
cd9a469c 22254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh in -lm" >&5
22255$as_echo_n "checking for tanh in -lm... " >&6; }
22256if test "${ac_cv_lib_m_tanh+set}" = set; then :
22257 $as_echo_n "(cached) " >&6
d213114b 22258else
22259 ac_check_lib_save_LIBS=$LIBS
22260LIBS="-lm $LIBS"
22261if test x$gcc_no_link = xyes; then
cd9a469c 22262 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22263fi
cd9a469c 22264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22265/* end confdefs.h. */
22266
cd9a469c 22267/* Override any GCC internal prototype to avoid an error.
22268 Use char because int might match the return type of a GCC
22269 builtin and then its argument prototype would still apply. */
d213114b 22270#ifdef __cplusplus
22271extern "C"
22272#endif
d213114b 22273char tanh ();
22274int
22275main ()
22276{
cd9a469c 22277return tanh ();
d213114b 22278 ;
22279 return 0;
22280}
22281_ACEOF
cd9a469c 22282if ac_fn_c_try_link "$LINENO"; then :
d213114b 22283 ac_cv_lib_m_tanh=yes
22284else
cd9a469c 22285 ac_cv_lib_m_tanh=no
d213114b 22286fi
cd9a469c 22287rm -f core conftest.err conftest.$ac_objext \
22288 conftest$ac_exeext conftest.$ac_ext
d213114b 22289LIBS=$ac_check_lib_save_LIBS
22290fi
cd9a469c 22291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanh" >&5
22292$as_echo "$ac_cv_lib_m_tanh" >&6; }
22293if test "x$ac_cv_lib_m_tanh" = x""yes; then :
d213114b 22294
cd9a469c 22295$as_echo "#define HAVE_TANH 1" >>confdefs.h
d213114b 22296
22297fi
22298
cd9a469c 22299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl in -lm" >&5
22300$as_echo_n "checking for tanhl in -lm... " >&6; }
22301if test "${ac_cv_lib_m_tanhl+set}" = set; then :
22302 $as_echo_n "(cached) " >&6
d213114b 22303else
22304 ac_check_lib_save_LIBS=$LIBS
22305LIBS="-lm $LIBS"
22306if test x$gcc_no_link = xyes; then
cd9a469c 22307 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22308fi
cd9a469c 22309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22310/* end confdefs.h. */
22311
cd9a469c 22312/* Override any GCC internal prototype to avoid an error.
22313 Use char because int might match the return type of a GCC
22314 builtin and then its argument prototype would still apply. */
d213114b 22315#ifdef __cplusplus
22316extern "C"
22317#endif
d213114b 22318char tanhl ();
22319int
22320main ()
22321{
cd9a469c 22322return tanhl ();
d213114b 22323 ;
22324 return 0;
22325}
22326_ACEOF
cd9a469c 22327if ac_fn_c_try_link "$LINENO"; then :
d213114b 22328 ac_cv_lib_m_tanhl=yes
22329else
cd9a469c 22330 ac_cv_lib_m_tanhl=no
d213114b 22331fi
cd9a469c 22332rm -f core conftest.err conftest.$ac_objext \
22333 conftest$ac_exeext conftest.$ac_ext
d213114b 22334LIBS=$ac_check_lib_save_LIBS
22335fi
cd9a469c 22336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanhl" >&5
22337$as_echo "$ac_cv_lib_m_tanhl" >&6; }
22338if test "x$ac_cv_lib_m_tanhl" = x""yes; then :
d213114b 22339
cd9a469c 22340$as_echo "#define HAVE_TANHL 1" >>confdefs.h
d213114b 22341
22342fi
22343
cd9a469c 22344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf in -lm" >&5
22345$as_echo_n "checking for ctanhf in -lm... " >&6; }
22346if test "${ac_cv_lib_m_ctanhf+set}" = set; then :
22347 $as_echo_n "(cached) " >&6
d213114b 22348else
22349 ac_check_lib_save_LIBS=$LIBS
22350LIBS="-lm $LIBS"
22351if test x$gcc_no_link = xyes; then
cd9a469c 22352 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22353fi
cd9a469c 22354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22355/* end confdefs.h. */
22356
cd9a469c 22357/* Override any GCC internal prototype to avoid an error.
22358 Use char because int might match the return type of a GCC
22359 builtin and then its argument prototype would still apply. */
d213114b 22360#ifdef __cplusplus
22361extern "C"
22362#endif
d213114b 22363char ctanhf ();
22364int
22365main ()
22366{
cd9a469c 22367return ctanhf ();
d213114b 22368 ;
22369 return 0;
22370}
22371_ACEOF
cd9a469c 22372if ac_fn_c_try_link "$LINENO"; then :
d213114b 22373 ac_cv_lib_m_ctanhf=yes
22374else
cd9a469c 22375 ac_cv_lib_m_ctanhf=no
d213114b 22376fi
cd9a469c 22377rm -f core conftest.err conftest.$ac_objext \
22378 conftest$ac_exeext conftest.$ac_ext
d213114b 22379LIBS=$ac_check_lib_save_LIBS
22380fi
cd9a469c 22381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanhf" >&5
22382$as_echo "$ac_cv_lib_m_ctanhf" >&6; }
22383if test "x$ac_cv_lib_m_ctanhf" = x""yes; then :
d213114b 22384
cd9a469c 22385$as_echo "#define HAVE_CTANHF 1" >>confdefs.h
d213114b 22386
22387fi
22388
cd9a469c 22389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh in -lm" >&5
22390$as_echo_n "checking for ctanh in -lm... " >&6; }
22391if test "${ac_cv_lib_m_ctanh+set}" = set; then :
22392 $as_echo_n "(cached) " >&6
d213114b 22393else
22394 ac_check_lib_save_LIBS=$LIBS
22395LIBS="-lm $LIBS"
22396if test x$gcc_no_link = xyes; then
cd9a469c 22397 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22398fi
cd9a469c 22399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22400/* end confdefs.h. */
22401
cd9a469c 22402/* Override any GCC internal prototype to avoid an error.
22403 Use char because int might match the return type of a GCC
22404 builtin and then its argument prototype would still apply. */
d213114b 22405#ifdef __cplusplus
22406extern "C"
22407#endif
d213114b 22408char ctanh ();
22409int
22410main ()
22411{
cd9a469c 22412return ctanh ();
d213114b 22413 ;
cd9a469c 22414 return 0;
22415}
22416_ACEOF
22417if ac_fn_c_try_link "$LINENO"; then :
d213114b 22418 ac_cv_lib_m_ctanh=yes
22419else
cd9a469c 22420 ac_cv_lib_m_ctanh=no
d213114b 22421fi
cd9a469c 22422rm -f core conftest.err conftest.$ac_objext \
22423 conftest$ac_exeext conftest.$ac_ext
d213114b 22424LIBS=$ac_check_lib_save_LIBS
22425fi
cd9a469c 22426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanh" >&5
22427$as_echo "$ac_cv_lib_m_ctanh" >&6; }
22428if test "x$ac_cv_lib_m_ctanh" = x""yes; then :
d213114b 22429
cd9a469c 22430$as_echo "#define HAVE_CTANH 1" >>confdefs.h
d213114b 22431
22432fi
22433
cd9a469c 22434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl in -lm" >&5
22435$as_echo_n "checking for ctanhl in -lm... " >&6; }
22436if test "${ac_cv_lib_m_ctanhl+set}" = set; then :
22437 $as_echo_n "(cached) " >&6
d213114b 22438else
22439 ac_check_lib_save_LIBS=$LIBS
22440LIBS="-lm $LIBS"
22441if test x$gcc_no_link = xyes; then
cd9a469c 22442 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22443fi
cd9a469c 22444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22445/* end confdefs.h. */
22446
cd9a469c 22447/* Override any GCC internal prototype to avoid an error.
22448 Use char because int might match the return type of a GCC
22449 builtin and then its argument prototype would still apply. */
d213114b 22450#ifdef __cplusplus
22451extern "C"
22452#endif
d213114b 22453char ctanhl ();
22454int
22455main ()
22456{
cd9a469c 22457return ctanhl ();
d213114b 22458 ;
22459 return 0;
22460}
22461_ACEOF
cd9a469c 22462if ac_fn_c_try_link "$LINENO"; then :
d213114b 22463 ac_cv_lib_m_ctanhl=yes
22464else
cd9a469c 22465 ac_cv_lib_m_ctanhl=no
d213114b 22466fi
cd9a469c 22467rm -f core conftest.err conftest.$ac_objext \
22468 conftest$ac_exeext conftest.$ac_ext
d213114b 22469LIBS=$ac_check_lib_save_LIBS
22470fi
cd9a469c 22471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanhl" >&5
22472$as_echo "$ac_cv_lib_m_ctanhl" >&6; }
22473if test "x$ac_cv_lib_m_ctanhl" = x""yes; then :
d213114b 22474
cd9a469c 22475$as_echo "#define HAVE_CTANHL 1" >>confdefs.h
50f0ca0a 22476
22477fi
22478
cd9a469c 22479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf in -lm" >&5
22480$as_echo_n "checking for truncf in -lm... " >&6; }
22481if test "${ac_cv_lib_m_truncf+set}" = set; then :
22482 $as_echo_n "(cached) " >&6
50f0ca0a 22483else
22484 ac_check_lib_save_LIBS=$LIBS
22485LIBS="-lm $LIBS"
b52ee437 22486if test x$gcc_no_link = xyes; then
cd9a469c 22487 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 22488fi
cd9a469c 22489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50f0ca0a 22490/* end confdefs.h. */
22491
cd9a469c 22492/* Override any GCC internal prototype to avoid an error.
22493 Use char because int might match the return type of a GCC
22494 builtin and then its argument prototype would still apply. */
50f0ca0a 22495#ifdef __cplusplus
22496extern "C"
22497#endif
d213114b 22498char truncf ();
22499int
22500main ()
22501{
cd9a469c 22502return truncf ();
d213114b 22503 ;
22504 return 0;
22505}
22506_ACEOF
cd9a469c 22507if ac_fn_c_try_link "$LINENO"; then :
d213114b 22508 ac_cv_lib_m_truncf=yes
22509else
cd9a469c 22510 ac_cv_lib_m_truncf=no
d213114b 22511fi
cd9a469c 22512rm -f core conftest.err conftest.$ac_objext \
22513 conftest$ac_exeext conftest.$ac_ext
d213114b 22514LIBS=$ac_check_lib_save_LIBS
22515fi
cd9a469c 22516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_truncf" >&5
22517$as_echo "$ac_cv_lib_m_truncf" >&6; }
22518if test "x$ac_cv_lib_m_truncf" = x""yes; then :
d213114b 22519
cd9a469c 22520$as_echo "#define HAVE_TRUNCF 1" >>confdefs.h
d213114b 22521
22522fi
22523
cd9a469c 22524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc in -lm" >&5
22525$as_echo_n "checking for trunc in -lm... " >&6; }
22526if test "${ac_cv_lib_m_trunc+set}" = set; then :
22527 $as_echo_n "(cached) " >&6
d213114b 22528else
22529 ac_check_lib_save_LIBS=$LIBS
22530LIBS="-lm $LIBS"
22531if test x$gcc_no_link = xyes; then
cd9a469c 22532 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22533fi
cd9a469c 22534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22535/* end confdefs.h. */
22536
cd9a469c 22537/* Override any GCC internal prototype to avoid an error.
22538 Use char because int might match the return type of a GCC
22539 builtin and then its argument prototype would still apply. */
d213114b 22540#ifdef __cplusplus
22541extern "C"
22542#endif
d213114b 22543char trunc ();
22544int
22545main ()
22546{
cd9a469c 22547return trunc ();
d213114b 22548 ;
22549 return 0;
22550}
22551_ACEOF
cd9a469c 22552if ac_fn_c_try_link "$LINENO"; then :
d213114b 22553 ac_cv_lib_m_trunc=yes
22554else
cd9a469c 22555 ac_cv_lib_m_trunc=no
d213114b 22556fi
cd9a469c 22557rm -f core conftest.err conftest.$ac_objext \
22558 conftest$ac_exeext conftest.$ac_ext
d213114b 22559LIBS=$ac_check_lib_save_LIBS
22560fi
cd9a469c 22561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_trunc" >&5
22562$as_echo "$ac_cv_lib_m_trunc" >&6; }
22563if test "x$ac_cv_lib_m_trunc" = x""yes; then :
d213114b 22564
cd9a469c 22565$as_echo "#define HAVE_TRUNC 1" >>confdefs.h
d213114b 22566
22567fi
22568
cd9a469c 22569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl in -lm" >&5
22570$as_echo_n "checking for truncl in -lm... " >&6; }
22571if test "${ac_cv_lib_m_truncl+set}" = set; then :
22572 $as_echo_n "(cached) " >&6
d213114b 22573else
22574 ac_check_lib_save_LIBS=$LIBS
22575LIBS="-lm $LIBS"
22576if test x$gcc_no_link = xyes; then
cd9a469c 22577 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22578fi
cd9a469c 22579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22580/* end confdefs.h. */
22581
cd9a469c 22582/* Override any GCC internal prototype to avoid an error.
22583 Use char because int might match the return type of a GCC
22584 builtin and then its argument prototype would still apply. */
d213114b 22585#ifdef __cplusplus
22586extern "C"
22587#endif
d213114b 22588char truncl ();
22589int
22590main ()
22591{
cd9a469c 22592return truncl ();
d213114b 22593 ;
22594 return 0;
22595}
22596_ACEOF
cd9a469c 22597if ac_fn_c_try_link "$LINENO"; then :
d213114b 22598 ac_cv_lib_m_truncl=yes
22599else
cd9a469c 22600 ac_cv_lib_m_truncl=no
d213114b 22601fi
cd9a469c 22602rm -f core conftest.err conftest.$ac_objext \
22603 conftest$ac_exeext conftest.$ac_ext
d213114b 22604LIBS=$ac_check_lib_save_LIBS
22605fi
cd9a469c 22606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_truncl" >&5
22607$as_echo "$ac_cv_lib_m_truncl" >&6; }
22608if test "x$ac_cv_lib_m_truncl" = x""yes; then :
d213114b 22609
cd9a469c 22610$as_echo "#define HAVE_TRUNCL 1" >>confdefs.h
d213114b 22611
22612fi
22613
cd9a469c 22614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff in -lm" >&5
22615$as_echo_n "checking for erff in -lm... " >&6; }
22616if test "${ac_cv_lib_m_erff+set}" = set; then :
22617 $as_echo_n "(cached) " >&6
d213114b 22618else
22619 ac_check_lib_save_LIBS=$LIBS
22620LIBS="-lm $LIBS"
22621if test x$gcc_no_link = xyes; then
cd9a469c 22622 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22623fi
cd9a469c 22624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22625/* end confdefs.h. */
22626
cd9a469c 22627/* Override any GCC internal prototype to avoid an error.
22628 Use char because int might match the return type of a GCC
22629 builtin and then its argument prototype would still apply. */
d213114b 22630#ifdef __cplusplus
22631extern "C"
22632#endif
d213114b 22633char erff ();
22634int
22635main ()
22636{
cd9a469c 22637return erff ();
d213114b 22638 ;
22639 return 0;
22640}
22641_ACEOF
cd9a469c 22642if ac_fn_c_try_link "$LINENO"; then :
d213114b 22643 ac_cv_lib_m_erff=yes
22644else
cd9a469c 22645 ac_cv_lib_m_erff=no
d213114b 22646fi
cd9a469c 22647rm -f core conftest.err conftest.$ac_objext \
22648 conftest$ac_exeext conftest.$ac_ext
d213114b 22649LIBS=$ac_check_lib_save_LIBS
22650fi
cd9a469c 22651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erff" >&5
22652$as_echo "$ac_cv_lib_m_erff" >&6; }
22653if test "x$ac_cv_lib_m_erff" = x""yes; then :
d213114b 22654
cd9a469c 22655$as_echo "#define HAVE_ERFF 1" >>confdefs.h
d213114b 22656
22657fi
22658
cd9a469c 22659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf in -lm" >&5
22660$as_echo_n "checking for erf in -lm... " >&6; }
22661if test "${ac_cv_lib_m_erf+set}" = set; then :
22662 $as_echo_n "(cached) " >&6
d213114b 22663else
22664 ac_check_lib_save_LIBS=$LIBS
22665LIBS="-lm $LIBS"
22666if test x$gcc_no_link = xyes; then
cd9a469c 22667 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22668fi
cd9a469c 22669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22670/* end confdefs.h. */
22671
cd9a469c 22672/* Override any GCC internal prototype to avoid an error.
22673 Use char because int might match the return type of a GCC
22674 builtin and then its argument prototype would still apply. */
d213114b 22675#ifdef __cplusplus
22676extern "C"
22677#endif
d213114b 22678char erf ();
22679int
22680main ()
22681{
cd9a469c 22682return erf ();
d213114b 22683 ;
22684 return 0;
22685}
22686_ACEOF
cd9a469c 22687if ac_fn_c_try_link "$LINENO"; then :
d213114b 22688 ac_cv_lib_m_erf=yes
22689else
cd9a469c 22690 ac_cv_lib_m_erf=no
d213114b 22691fi
cd9a469c 22692rm -f core conftest.err conftest.$ac_objext \
22693 conftest$ac_exeext conftest.$ac_ext
d213114b 22694LIBS=$ac_check_lib_save_LIBS
22695fi
cd9a469c 22696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erf" >&5
22697$as_echo "$ac_cv_lib_m_erf" >&6; }
22698if test "x$ac_cv_lib_m_erf" = x""yes; then :
d213114b 22699
cd9a469c 22700$as_echo "#define HAVE_ERF 1" >>confdefs.h
d213114b 22701
22702fi
22703
cd9a469c 22704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl in -lm" >&5
22705$as_echo_n "checking for erfl in -lm... " >&6; }
22706if test "${ac_cv_lib_m_erfl+set}" = set; then :
22707 $as_echo_n "(cached) " >&6
d213114b 22708else
22709 ac_check_lib_save_LIBS=$LIBS
22710LIBS="-lm $LIBS"
22711if test x$gcc_no_link = xyes; then
cd9a469c 22712 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22713fi
cd9a469c 22714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22715/* end confdefs.h. */
22716
cd9a469c 22717/* Override any GCC internal prototype to avoid an error.
22718 Use char because int might match the return type of a GCC
22719 builtin and then its argument prototype would still apply. */
d213114b 22720#ifdef __cplusplus
22721extern "C"
22722#endif
d213114b 22723char erfl ();
22724int
22725main ()
22726{
cd9a469c 22727return erfl ();
d213114b 22728 ;
22729 return 0;
22730}
22731_ACEOF
cd9a469c 22732if ac_fn_c_try_link "$LINENO"; then :
d213114b 22733 ac_cv_lib_m_erfl=yes
22734else
cd9a469c 22735 ac_cv_lib_m_erfl=no
d213114b 22736fi
cd9a469c 22737rm -f core conftest.err conftest.$ac_objext \
22738 conftest$ac_exeext conftest.$ac_ext
d213114b 22739LIBS=$ac_check_lib_save_LIBS
22740fi
cd9a469c 22741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfl" >&5
22742$as_echo "$ac_cv_lib_m_erfl" >&6; }
22743if test "x$ac_cv_lib_m_erfl" = x""yes; then :
d213114b 22744
cd9a469c 22745$as_echo "#define HAVE_ERFL 1" >>confdefs.h
d213114b 22746
22747fi
22748
cd9a469c 22749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf in -lm" >&5
22750$as_echo_n "checking for erfcf in -lm... " >&6; }
22751if test "${ac_cv_lib_m_erfcf+set}" = set; then :
22752 $as_echo_n "(cached) " >&6
d213114b 22753else
22754 ac_check_lib_save_LIBS=$LIBS
22755LIBS="-lm $LIBS"
22756if test x$gcc_no_link = xyes; then
cd9a469c 22757 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22758fi
cd9a469c 22759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22760/* end confdefs.h. */
22761
cd9a469c 22762/* Override any GCC internal prototype to avoid an error.
22763 Use char because int might match the return type of a GCC
22764 builtin and then its argument prototype would still apply. */
d213114b 22765#ifdef __cplusplus
22766extern "C"
22767#endif
d213114b 22768char erfcf ();
22769int
22770main ()
22771{
cd9a469c 22772return erfcf ();
d213114b 22773 ;
22774 return 0;
22775}
22776_ACEOF
cd9a469c 22777if ac_fn_c_try_link "$LINENO"; then :
d213114b 22778 ac_cv_lib_m_erfcf=yes
22779else
cd9a469c 22780 ac_cv_lib_m_erfcf=no
d213114b 22781fi
cd9a469c 22782rm -f core conftest.err conftest.$ac_objext \
22783 conftest$ac_exeext conftest.$ac_ext
d213114b 22784LIBS=$ac_check_lib_save_LIBS
22785fi
cd9a469c 22786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfcf" >&5
22787$as_echo "$ac_cv_lib_m_erfcf" >&6; }
22788if test "x$ac_cv_lib_m_erfcf" = x""yes; then :
d213114b 22789
cd9a469c 22790$as_echo "#define HAVE_ERFCF 1" >>confdefs.h
d213114b 22791
22792fi
22793
cd9a469c 22794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc in -lm" >&5
22795$as_echo_n "checking for erfc in -lm... " >&6; }
22796if test "${ac_cv_lib_m_erfc+set}" = set; then :
22797 $as_echo_n "(cached) " >&6
d213114b 22798else
22799 ac_check_lib_save_LIBS=$LIBS
22800LIBS="-lm $LIBS"
22801if test x$gcc_no_link = xyes; then
cd9a469c 22802 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22803fi
cd9a469c 22804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22805/* end confdefs.h. */
22806
cd9a469c 22807/* Override any GCC internal prototype to avoid an error.
22808 Use char because int might match the return type of a GCC
22809 builtin and then its argument prototype would still apply. */
d213114b 22810#ifdef __cplusplus
22811extern "C"
22812#endif
d213114b 22813char erfc ();
50f0ca0a 22814int
22815main ()
22816{
cd9a469c 22817return erfc ();
50f0ca0a 22818 ;
22819 return 0;
22820}
22821_ACEOF
cd9a469c 22822if ac_fn_c_try_link "$LINENO"; then :
d213114b 22823 ac_cv_lib_m_erfc=yes
50f0ca0a 22824else
cd9a469c 22825 ac_cv_lib_m_erfc=no
50f0ca0a 22826fi
cd9a469c 22827rm -f core conftest.err conftest.$ac_objext \
22828 conftest$ac_exeext conftest.$ac_ext
50f0ca0a 22829LIBS=$ac_check_lib_save_LIBS
22830fi
cd9a469c 22831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfc" >&5
22832$as_echo "$ac_cv_lib_m_erfc" >&6; }
22833if test "x$ac_cv_lib_m_erfc" = x""yes; then :
50f0ca0a 22834
cd9a469c 22835$as_echo "#define HAVE_ERFC 1" >>confdefs.h
50f0ca0a 22836
22837fi
22838
cd9a469c 22839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl in -lm" >&5
22840$as_echo_n "checking for erfcl in -lm... " >&6; }
22841if test "${ac_cv_lib_m_erfcl+set}" = set; then :
22842 $as_echo_n "(cached) " >&6
158e0e64 22843else
22844 ac_check_lib_save_LIBS=$LIBS
22845LIBS="-lm $LIBS"
b52ee437 22846if test x$gcc_no_link = xyes; then
cd9a469c 22847 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 22848fi
cd9a469c 22849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 22850/* end confdefs.h. */
22851
cd9a469c 22852/* Override any GCC internal prototype to avoid an error.
22853 Use char because int might match the return type of a GCC
22854 builtin and then its argument prototype would still apply. */
158e0e64 22855#ifdef __cplusplus
22856extern "C"
22857#endif
d213114b 22858char erfcl ();
158e0e64 22859int
22860main ()
22861{
cd9a469c 22862return erfcl ();
158e0e64 22863 ;
22864 return 0;
22865}
22866_ACEOF
cd9a469c 22867if ac_fn_c_try_link "$LINENO"; then :
d213114b 22868 ac_cv_lib_m_erfcl=yes
158e0e64 22869else
cd9a469c 22870 ac_cv_lib_m_erfcl=no
158e0e64 22871fi
cd9a469c 22872rm -f core conftest.err conftest.$ac_objext \
22873 conftest$ac_exeext conftest.$ac_ext
158e0e64 22874LIBS=$ac_check_lib_save_LIBS
22875fi
cd9a469c 22876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfcl" >&5
22877$as_echo "$ac_cv_lib_m_erfcl" >&6; }
22878if test "x$ac_cv_lib_m_erfcl" = x""yes; then :
158e0e64 22879
cd9a469c 22880$as_echo "#define HAVE_ERFCL 1" >>confdefs.h
158e0e64 22881
22882fi
22883
cd9a469c 22884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f in -lm" >&5
22885$as_echo_n "checking for j0f in -lm... " >&6; }
22886if test "${ac_cv_lib_m_j0f+set}" = set; then :
22887 $as_echo_n "(cached) " >&6
158e0e64 22888else
22889 ac_check_lib_save_LIBS=$LIBS
22890LIBS="-lm $LIBS"
b52ee437 22891if test x$gcc_no_link = xyes; then
cd9a469c 22892 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 22893fi
cd9a469c 22894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 22895/* end confdefs.h. */
22896
cd9a469c 22897/* Override any GCC internal prototype to avoid an error.
22898 Use char because int might match the return type of a GCC
22899 builtin and then its argument prototype would still apply. */
158e0e64 22900#ifdef __cplusplus
22901extern "C"
22902#endif
d213114b 22903char j0f ();
158e0e64 22904int
22905main ()
22906{
cd9a469c 22907return j0f ();
158e0e64 22908 ;
22909 return 0;
22910}
22911_ACEOF
cd9a469c 22912if ac_fn_c_try_link "$LINENO"; then :
d213114b 22913 ac_cv_lib_m_j0f=yes
158e0e64 22914else
cd9a469c 22915 ac_cv_lib_m_j0f=no
d213114b 22916fi
cd9a469c 22917rm -f core conftest.err conftest.$ac_objext \
22918 conftest$ac_exeext conftest.$ac_ext
d213114b 22919LIBS=$ac_check_lib_save_LIBS
22920fi
cd9a469c 22921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0f" >&5
22922$as_echo "$ac_cv_lib_m_j0f" >&6; }
22923if test "x$ac_cv_lib_m_j0f" = x""yes; then :
d213114b 22924
cd9a469c 22925$as_echo "#define HAVE_J0F 1" >>confdefs.h
d213114b 22926
22927fi
22928
cd9a469c 22929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0 in -lm" >&5
22930$as_echo_n "checking for j0 in -lm... " >&6; }
22931if test "${ac_cv_lib_m_j0+set}" = set; then :
22932 $as_echo_n "(cached) " >&6
d213114b 22933else
22934 ac_check_lib_save_LIBS=$LIBS
22935LIBS="-lm $LIBS"
22936if test x$gcc_no_link = xyes; then
cd9a469c 22937 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22938fi
cd9a469c 22939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22940/* end confdefs.h. */
22941
cd9a469c 22942/* Override any GCC internal prototype to avoid an error.
22943 Use char because int might match the return type of a GCC
22944 builtin and then its argument prototype would still apply. */
d213114b 22945#ifdef __cplusplus
22946extern "C"
22947#endif
d213114b 22948char j0 ();
22949int
22950main ()
22951{
cd9a469c 22952return j0 ();
d213114b 22953 ;
22954 return 0;
22955}
22956_ACEOF
cd9a469c 22957if ac_fn_c_try_link "$LINENO"; then :
d213114b 22958 ac_cv_lib_m_j0=yes
22959else
cd9a469c 22960 ac_cv_lib_m_j0=no
d213114b 22961fi
cd9a469c 22962rm -f core conftest.err conftest.$ac_objext \
22963 conftest$ac_exeext conftest.$ac_ext
d213114b 22964LIBS=$ac_check_lib_save_LIBS
22965fi
cd9a469c 22966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0" >&5
22967$as_echo "$ac_cv_lib_m_j0" >&6; }
22968if test "x$ac_cv_lib_m_j0" = x""yes; then :
d213114b 22969
cd9a469c 22970$as_echo "#define HAVE_J0 1" >>confdefs.h
d213114b 22971
22972fi
22973
cd9a469c 22974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l in -lm" >&5
22975$as_echo_n "checking for j0l in -lm... " >&6; }
22976if test "${ac_cv_lib_m_j0l+set}" = set; then :
22977 $as_echo_n "(cached) " >&6
d213114b 22978else
22979 ac_check_lib_save_LIBS=$LIBS
22980LIBS="-lm $LIBS"
22981if test x$gcc_no_link = xyes; then
cd9a469c 22982 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22983fi
cd9a469c 22984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22985/* end confdefs.h. */
22986
cd9a469c 22987/* Override any GCC internal prototype to avoid an error.
22988 Use char because int might match the return type of a GCC
22989 builtin and then its argument prototype would still apply. */
d213114b 22990#ifdef __cplusplus
22991extern "C"
22992#endif
d213114b 22993char j0l ();
22994int
22995main ()
22996{
cd9a469c 22997return j0l ();
d213114b 22998 ;
22999 return 0;
23000}
23001_ACEOF
cd9a469c 23002if ac_fn_c_try_link "$LINENO"; then :
d213114b 23003 ac_cv_lib_m_j0l=yes
23004else
cd9a469c 23005 ac_cv_lib_m_j0l=no
d213114b 23006fi
cd9a469c 23007rm -f core conftest.err conftest.$ac_objext \
23008 conftest$ac_exeext conftest.$ac_ext
d213114b 23009LIBS=$ac_check_lib_save_LIBS
23010fi
cd9a469c 23011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0l" >&5
23012$as_echo "$ac_cv_lib_m_j0l" >&6; }
23013if test "x$ac_cv_lib_m_j0l" = x""yes; then :
d213114b 23014
cd9a469c 23015$as_echo "#define HAVE_J0L 1" >>confdefs.h
d213114b 23016
23017fi
23018
cd9a469c 23019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f in -lm" >&5
23020$as_echo_n "checking for j1f in -lm... " >&6; }
23021if test "${ac_cv_lib_m_j1f+set}" = set; then :
23022 $as_echo_n "(cached) " >&6
d213114b 23023else
23024 ac_check_lib_save_LIBS=$LIBS
23025LIBS="-lm $LIBS"
23026if test x$gcc_no_link = xyes; then
cd9a469c 23027 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23028fi
cd9a469c 23029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23030/* end confdefs.h. */
23031
cd9a469c 23032/* Override any GCC internal prototype to avoid an error.
23033 Use char because int might match the return type of a GCC
23034 builtin and then its argument prototype would still apply. */
d213114b 23035#ifdef __cplusplus
23036extern "C"
23037#endif
d213114b 23038char j1f ();
23039int
23040main ()
23041{
cd9a469c 23042return j1f ();
d213114b 23043 ;
23044 return 0;
23045}
23046_ACEOF
cd9a469c 23047if ac_fn_c_try_link "$LINENO"; then :
d213114b 23048 ac_cv_lib_m_j1f=yes
23049else
cd9a469c 23050 ac_cv_lib_m_j1f=no
158e0e64 23051fi
cd9a469c 23052rm -f core conftest.err conftest.$ac_objext \
23053 conftest$ac_exeext conftest.$ac_ext
158e0e64 23054LIBS=$ac_check_lib_save_LIBS
23055fi
cd9a469c 23056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1f" >&5
23057$as_echo "$ac_cv_lib_m_j1f" >&6; }
23058if test "x$ac_cv_lib_m_j1f" = x""yes; then :
158e0e64 23059
cd9a469c 23060$as_echo "#define HAVE_J1F 1" >>confdefs.h
158e0e64 23061
23062fi
23063
cd9a469c 23064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1 in -lm" >&5
23065$as_echo_n "checking for j1 in -lm... " >&6; }
23066if test "${ac_cv_lib_m_j1+set}" = set; then :
23067 $as_echo_n "(cached) " >&6
158e0e64 23068else
23069 ac_check_lib_save_LIBS=$LIBS
23070LIBS="-lm $LIBS"
b52ee437 23071if test x$gcc_no_link = xyes; then
cd9a469c 23072 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23073fi
cd9a469c 23074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23075/* end confdefs.h. */
23076
cd9a469c 23077/* Override any GCC internal prototype to avoid an error.
23078 Use char because int might match the return type of a GCC
23079 builtin and then its argument prototype would still apply. */
158e0e64 23080#ifdef __cplusplus
23081extern "C"
23082#endif
d213114b 23083char j1 ();
158e0e64 23084int
23085main ()
23086{
cd9a469c 23087return j1 ();
158e0e64 23088 ;
23089 return 0;
23090}
23091_ACEOF
cd9a469c 23092if ac_fn_c_try_link "$LINENO"; then :
d213114b 23093 ac_cv_lib_m_j1=yes
158e0e64 23094else
cd9a469c 23095 ac_cv_lib_m_j1=no
158e0e64 23096fi
cd9a469c 23097rm -f core conftest.err conftest.$ac_objext \
23098 conftest$ac_exeext conftest.$ac_ext
158e0e64 23099LIBS=$ac_check_lib_save_LIBS
23100fi
cd9a469c 23101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1" >&5
23102$as_echo "$ac_cv_lib_m_j1" >&6; }
23103if test "x$ac_cv_lib_m_j1" = x""yes; then :
158e0e64 23104
cd9a469c 23105$as_echo "#define HAVE_J1 1" >>confdefs.h
158e0e64 23106
23107fi
23108
cd9a469c 23109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l in -lm" >&5
23110$as_echo_n "checking for j1l in -lm... " >&6; }
23111if test "${ac_cv_lib_m_j1l+set}" = set; then :
23112 $as_echo_n "(cached) " >&6
158e0e64 23113else
23114 ac_check_lib_save_LIBS=$LIBS
23115LIBS="-lm $LIBS"
b52ee437 23116if test x$gcc_no_link = xyes; then
cd9a469c 23117 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23118fi
cd9a469c 23119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23120/* end confdefs.h. */
23121
cd9a469c 23122/* Override any GCC internal prototype to avoid an error.
23123 Use char because int might match the return type of a GCC
23124 builtin and then its argument prototype would still apply. */
158e0e64 23125#ifdef __cplusplus
23126extern "C"
23127#endif
d213114b 23128char j1l ();
158e0e64 23129int
23130main ()
23131{
cd9a469c 23132return j1l ();
158e0e64 23133 ;
23134 return 0;
23135}
23136_ACEOF
cd9a469c 23137if ac_fn_c_try_link "$LINENO"; then :
d213114b 23138 ac_cv_lib_m_j1l=yes
158e0e64 23139else
cd9a469c 23140 ac_cv_lib_m_j1l=no
158e0e64 23141fi
cd9a469c 23142rm -f core conftest.err conftest.$ac_objext \
23143 conftest$ac_exeext conftest.$ac_ext
158e0e64 23144LIBS=$ac_check_lib_save_LIBS
23145fi
cd9a469c 23146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1l" >&5
23147$as_echo "$ac_cv_lib_m_j1l" >&6; }
23148if test "x$ac_cv_lib_m_j1l" = x""yes; then :
158e0e64 23149
cd9a469c 23150$as_echo "#define HAVE_J1L 1" >>confdefs.h
158e0e64 23151
23152fi
23153
cd9a469c 23154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf in -lm" >&5
23155$as_echo_n "checking for jnf in -lm... " >&6; }
23156if test "${ac_cv_lib_m_jnf+set}" = set; then :
23157 $as_echo_n "(cached) " >&6
158e0e64 23158else
23159 ac_check_lib_save_LIBS=$LIBS
23160LIBS="-lm $LIBS"
b52ee437 23161if test x$gcc_no_link = xyes; then
cd9a469c 23162 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23163fi
cd9a469c 23164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23165/* end confdefs.h. */
23166
cd9a469c 23167/* Override any GCC internal prototype to avoid an error.
23168 Use char because int might match the return type of a GCC
23169 builtin and then its argument prototype would still apply. */
158e0e64 23170#ifdef __cplusplus
23171extern "C"
23172#endif
d213114b 23173char jnf ();
158e0e64 23174int
23175main ()
23176{
cd9a469c 23177return jnf ();
158e0e64 23178 ;
23179 return 0;
23180}
23181_ACEOF
cd9a469c 23182if ac_fn_c_try_link "$LINENO"; then :
d213114b 23183 ac_cv_lib_m_jnf=yes
158e0e64 23184else
cd9a469c 23185 ac_cv_lib_m_jnf=no
158e0e64 23186fi
cd9a469c 23187rm -f core conftest.err conftest.$ac_objext \
23188 conftest$ac_exeext conftest.$ac_ext
158e0e64 23189LIBS=$ac_check_lib_save_LIBS
23190fi
cd9a469c 23191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jnf" >&5
23192$as_echo "$ac_cv_lib_m_jnf" >&6; }
23193if test "x$ac_cv_lib_m_jnf" = x""yes; then :
158e0e64 23194
cd9a469c 23195$as_echo "#define HAVE_JNF 1" >>confdefs.h
158e0e64 23196
23197fi
23198
cd9a469c 23199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn in -lm" >&5
23200$as_echo_n "checking for jn in -lm... " >&6; }
23201if test "${ac_cv_lib_m_jn+set}" = set; then :
23202 $as_echo_n "(cached) " >&6
158e0e64 23203else
23204 ac_check_lib_save_LIBS=$LIBS
23205LIBS="-lm $LIBS"
b52ee437 23206if test x$gcc_no_link = xyes; then
cd9a469c 23207 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23208fi
cd9a469c 23209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23210/* end confdefs.h. */
23211
cd9a469c 23212/* Override any GCC internal prototype to avoid an error.
23213 Use char because int might match the return type of a GCC
23214 builtin and then its argument prototype would still apply. */
158e0e64 23215#ifdef __cplusplus
23216extern "C"
23217#endif
d213114b 23218char jn ();
158e0e64 23219int
23220main ()
23221{
cd9a469c 23222return jn ();
158e0e64 23223 ;
23224 return 0;
23225}
23226_ACEOF
cd9a469c 23227if ac_fn_c_try_link "$LINENO"; then :
d213114b 23228 ac_cv_lib_m_jn=yes
158e0e64 23229else
cd9a469c 23230 ac_cv_lib_m_jn=no
158e0e64 23231fi
cd9a469c 23232rm -f core conftest.err conftest.$ac_objext \
23233 conftest$ac_exeext conftest.$ac_ext
158e0e64 23234LIBS=$ac_check_lib_save_LIBS
23235fi
cd9a469c 23236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jn" >&5
23237$as_echo "$ac_cv_lib_m_jn" >&6; }
23238if test "x$ac_cv_lib_m_jn" = x""yes; then :
158e0e64 23239
cd9a469c 23240$as_echo "#define HAVE_JN 1" >>confdefs.h
158e0e64 23241
23242fi
23243
cd9a469c 23244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl in -lm" >&5
23245$as_echo_n "checking for jnl in -lm... " >&6; }
23246if test "${ac_cv_lib_m_jnl+set}" = set; then :
23247 $as_echo_n "(cached) " >&6
158e0e64 23248else
23249 ac_check_lib_save_LIBS=$LIBS
23250LIBS="-lm $LIBS"
b52ee437 23251if test x$gcc_no_link = xyes; then
cd9a469c 23252 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23253fi
cd9a469c 23254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23255/* end confdefs.h. */
23256
cd9a469c 23257/* Override any GCC internal prototype to avoid an error.
23258 Use char because int might match the return type of a GCC
23259 builtin and then its argument prototype would still apply. */
158e0e64 23260#ifdef __cplusplus
23261extern "C"
23262#endif
d213114b 23263char jnl ();
158e0e64 23264int
23265main ()
23266{
cd9a469c 23267return jnl ();
158e0e64 23268 ;
23269 return 0;
23270}
23271_ACEOF
cd9a469c 23272if ac_fn_c_try_link "$LINENO"; then :
d213114b 23273 ac_cv_lib_m_jnl=yes
158e0e64 23274else
cd9a469c 23275 ac_cv_lib_m_jnl=no
158e0e64 23276fi
cd9a469c 23277rm -f core conftest.err conftest.$ac_objext \
23278 conftest$ac_exeext conftest.$ac_ext
158e0e64 23279LIBS=$ac_check_lib_save_LIBS
23280fi
cd9a469c 23281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jnl" >&5
23282$as_echo "$ac_cv_lib_m_jnl" >&6; }
23283if test "x$ac_cv_lib_m_jnl" = x""yes; then :
158e0e64 23284
cd9a469c 23285$as_echo "#define HAVE_JNL 1" >>confdefs.h
158e0e64 23286
23287fi
23288
cd9a469c 23289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f in -lm" >&5
23290$as_echo_n "checking for y0f in -lm... " >&6; }
23291if test "${ac_cv_lib_m_y0f+set}" = set; then :
23292 $as_echo_n "(cached) " >&6
158e0e64 23293else
23294 ac_check_lib_save_LIBS=$LIBS
23295LIBS="-lm $LIBS"
b52ee437 23296if test x$gcc_no_link = xyes; then
cd9a469c 23297 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23298fi
cd9a469c 23299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23300/* end confdefs.h. */
23301
cd9a469c 23302/* Override any GCC internal prototype to avoid an error.
23303 Use char because int might match the return type of a GCC
23304 builtin and then its argument prototype would still apply. */
158e0e64 23305#ifdef __cplusplus
23306extern "C"
23307#endif
d213114b 23308char y0f ();
158e0e64 23309int
23310main ()
23311{
cd9a469c 23312return y0f ();
158e0e64 23313 ;
23314 return 0;
23315}
23316_ACEOF
cd9a469c 23317if ac_fn_c_try_link "$LINENO"; then :
d213114b 23318 ac_cv_lib_m_y0f=yes
158e0e64 23319else
cd9a469c 23320 ac_cv_lib_m_y0f=no
158e0e64 23321fi
cd9a469c 23322rm -f core conftest.err conftest.$ac_objext \
23323 conftest$ac_exeext conftest.$ac_ext
158e0e64 23324LIBS=$ac_check_lib_save_LIBS
23325fi
cd9a469c 23326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0f" >&5
23327$as_echo "$ac_cv_lib_m_y0f" >&6; }
23328if test "x$ac_cv_lib_m_y0f" = x""yes; then :
158e0e64 23329
cd9a469c 23330$as_echo "#define HAVE_Y0F 1" >>confdefs.h
158e0e64 23331
23332fi
23333
cd9a469c 23334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0 in -lm" >&5
23335$as_echo_n "checking for y0 in -lm... " >&6; }
23336if test "${ac_cv_lib_m_y0+set}" = set; then :
23337 $as_echo_n "(cached) " >&6
158e0e64 23338else
23339 ac_check_lib_save_LIBS=$LIBS
23340LIBS="-lm $LIBS"
b52ee437 23341if test x$gcc_no_link = xyes; then
cd9a469c 23342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23343fi
cd9a469c 23344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23345/* end confdefs.h. */
23346
cd9a469c 23347/* Override any GCC internal prototype to avoid an error.
23348 Use char because int might match the return type of a GCC
23349 builtin and then its argument prototype would still apply. */
158e0e64 23350#ifdef __cplusplus
23351extern "C"
23352#endif
d213114b 23353char y0 ();
158e0e64 23354int
23355main ()
23356{
cd9a469c 23357return y0 ();
158e0e64 23358 ;
23359 return 0;
23360}
23361_ACEOF
cd9a469c 23362if ac_fn_c_try_link "$LINENO"; then :
d213114b 23363 ac_cv_lib_m_y0=yes
158e0e64 23364else
cd9a469c 23365 ac_cv_lib_m_y0=no
158e0e64 23366fi
cd9a469c 23367rm -f core conftest.err conftest.$ac_objext \
23368 conftest$ac_exeext conftest.$ac_ext
158e0e64 23369LIBS=$ac_check_lib_save_LIBS
23370fi
cd9a469c 23371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0" >&5
23372$as_echo "$ac_cv_lib_m_y0" >&6; }
23373if test "x$ac_cv_lib_m_y0" = x""yes; then :
158e0e64 23374
cd9a469c 23375$as_echo "#define HAVE_Y0 1" >>confdefs.h
158e0e64 23376
23377fi
23378
cd9a469c 23379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l in -lm" >&5
23380$as_echo_n "checking for y0l in -lm... " >&6; }
23381if test "${ac_cv_lib_m_y0l+set}" = set; then :
23382 $as_echo_n "(cached) " >&6
158e0e64 23383else
23384 ac_check_lib_save_LIBS=$LIBS
23385LIBS="-lm $LIBS"
b52ee437 23386if test x$gcc_no_link = xyes; then
cd9a469c 23387 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23388fi
cd9a469c 23389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23390/* end confdefs.h. */
23391
cd9a469c 23392/* Override any GCC internal prototype to avoid an error.
23393 Use char because int might match the return type of a GCC
23394 builtin and then its argument prototype would still apply. */
158e0e64 23395#ifdef __cplusplus
23396extern "C"
23397#endif
d213114b 23398char y0l ();
158e0e64 23399int
23400main ()
23401{
cd9a469c 23402return y0l ();
158e0e64 23403 ;
23404 return 0;
23405}
23406_ACEOF
cd9a469c 23407if ac_fn_c_try_link "$LINENO"; then :
d213114b 23408 ac_cv_lib_m_y0l=yes
158e0e64 23409else
cd9a469c 23410 ac_cv_lib_m_y0l=no
158e0e64 23411fi
cd9a469c 23412rm -f core conftest.err conftest.$ac_objext \
23413 conftest$ac_exeext conftest.$ac_ext
158e0e64 23414LIBS=$ac_check_lib_save_LIBS
23415fi
cd9a469c 23416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0l" >&5
23417$as_echo "$ac_cv_lib_m_y0l" >&6; }
23418if test "x$ac_cv_lib_m_y0l" = x""yes; then :
158e0e64 23419
cd9a469c 23420$as_echo "#define HAVE_Y0L 1" >>confdefs.h
158e0e64 23421
23422fi
23423
cd9a469c 23424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f in -lm" >&5
23425$as_echo_n "checking for y1f in -lm... " >&6; }
23426if test "${ac_cv_lib_m_y1f+set}" = set; then :
23427 $as_echo_n "(cached) " >&6
158e0e64 23428else
23429 ac_check_lib_save_LIBS=$LIBS
23430LIBS="-lm $LIBS"
b52ee437 23431if test x$gcc_no_link = xyes; then
cd9a469c 23432 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23433fi
cd9a469c 23434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23435/* end confdefs.h. */
23436
cd9a469c 23437/* Override any GCC internal prototype to avoid an error.
23438 Use char because int might match the return type of a GCC
23439 builtin and then its argument prototype would still apply. */
158e0e64 23440#ifdef __cplusplus
23441extern "C"
23442#endif
d213114b 23443char y1f ();
158e0e64 23444int
23445main ()
23446{
cd9a469c 23447return y1f ();
158e0e64 23448 ;
23449 return 0;
23450}
23451_ACEOF
cd9a469c 23452if ac_fn_c_try_link "$LINENO"; then :
d213114b 23453 ac_cv_lib_m_y1f=yes
158e0e64 23454else
cd9a469c 23455 ac_cv_lib_m_y1f=no
158e0e64 23456fi
cd9a469c 23457rm -f core conftest.err conftest.$ac_objext \
23458 conftest$ac_exeext conftest.$ac_ext
158e0e64 23459LIBS=$ac_check_lib_save_LIBS
23460fi
cd9a469c 23461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1f" >&5
23462$as_echo "$ac_cv_lib_m_y1f" >&6; }
23463if test "x$ac_cv_lib_m_y1f" = x""yes; then :
158e0e64 23464
cd9a469c 23465$as_echo "#define HAVE_Y1F 1" >>confdefs.h
158e0e64 23466
23467fi
23468
cd9a469c 23469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1 in -lm" >&5
23470$as_echo_n "checking for y1 in -lm... " >&6; }
23471if test "${ac_cv_lib_m_y1+set}" = set; then :
23472 $as_echo_n "(cached) " >&6
158e0e64 23473else
23474 ac_check_lib_save_LIBS=$LIBS
23475LIBS="-lm $LIBS"
b52ee437 23476if test x$gcc_no_link = xyes; then
cd9a469c 23477 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23478fi
cd9a469c 23479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23480/* end confdefs.h. */
23481
cd9a469c 23482/* Override any GCC internal prototype to avoid an error.
23483 Use char because int might match the return type of a GCC
23484 builtin and then its argument prototype would still apply. */
158e0e64 23485#ifdef __cplusplus
23486extern "C"
23487#endif
d213114b 23488char y1 ();
158e0e64 23489int
23490main ()
23491{
cd9a469c 23492return y1 ();
158e0e64 23493 ;
23494 return 0;
23495}
23496_ACEOF
cd9a469c 23497if ac_fn_c_try_link "$LINENO"; then :
d213114b 23498 ac_cv_lib_m_y1=yes
158e0e64 23499else
cd9a469c 23500 ac_cv_lib_m_y1=no
158e0e64 23501fi
cd9a469c 23502rm -f core conftest.err conftest.$ac_objext \
23503 conftest$ac_exeext conftest.$ac_ext
158e0e64 23504LIBS=$ac_check_lib_save_LIBS
23505fi
cd9a469c 23506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1" >&5
23507$as_echo "$ac_cv_lib_m_y1" >&6; }
23508if test "x$ac_cv_lib_m_y1" = x""yes; then :
158e0e64 23509
cd9a469c 23510$as_echo "#define HAVE_Y1 1" >>confdefs.h
158e0e64 23511
23512fi
23513
cd9a469c 23514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l in -lm" >&5
23515$as_echo_n "checking for y1l in -lm... " >&6; }
23516if test "${ac_cv_lib_m_y1l+set}" = set; then :
23517 $as_echo_n "(cached) " >&6
158e0e64 23518else
23519 ac_check_lib_save_LIBS=$LIBS
23520LIBS="-lm $LIBS"
b52ee437 23521if test x$gcc_no_link = xyes; then
cd9a469c 23522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23523fi
cd9a469c 23524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23525/* end confdefs.h. */
23526
cd9a469c 23527/* Override any GCC internal prototype to avoid an error.
23528 Use char because int might match the return type of a GCC
23529 builtin and then its argument prototype would still apply. */
158e0e64 23530#ifdef __cplusplus
23531extern "C"
23532#endif
d213114b 23533char y1l ();
158e0e64 23534int
23535main ()
23536{
cd9a469c 23537return y1l ();
158e0e64 23538 ;
23539 return 0;
23540}
23541_ACEOF
cd9a469c 23542if ac_fn_c_try_link "$LINENO"; then :
d213114b 23543 ac_cv_lib_m_y1l=yes
158e0e64 23544else
cd9a469c 23545 ac_cv_lib_m_y1l=no
158e0e64 23546fi
cd9a469c 23547rm -f core conftest.err conftest.$ac_objext \
23548 conftest$ac_exeext conftest.$ac_ext
158e0e64 23549LIBS=$ac_check_lib_save_LIBS
23550fi
cd9a469c 23551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1l" >&5
23552$as_echo "$ac_cv_lib_m_y1l" >&6; }
23553if test "x$ac_cv_lib_m_y1l" = x""yes; then :
158e0e64 23554
cd9a469c 23555$as_echo "#define HAVE_Y1L 1" >>confdefs.h
158e0e64 23556
23557fi
23558
cd9a469c 23559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf in -lm" >&5
23560$as_echo_n "checking for ynf in -lm... " >&6; }
23561if test "${ac_cv_lib_m_ynf+set}" = set; then :
23562 $as_echo_n "(cached) " >&6
158e0e64 23563else
23564 ac_check_lib_save_LIBS=$LIBS
23565LIBS="-lm $LIBS"
b52ee437 23566if test x$gcc_no_link = xyes; then
cd9a469c 23567 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23568fi
cd9a469c 23569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23570/* end confdefs.h. */
23571
cd9a469c 23572/* Override any GCC internal prototype to avoid an error.
23573 Use char because int might match the return type of a GCC
23574 builtin and then its argument prototype would still apply. */
158e0e64 23575#ifdef __cplusplus
23576extern "C"
23577#endif
d213114b 23578char ynf ();
158e0e64 23579int
23580main ()
23581{
cd9a469c 23582return ynf ();
158e0e64 23583 ;
23584 return 0;
23585}
23586_ACEOF
cd9a469c 23587if ac_fn_c_try_link "$LINENO"; then :
d213114b 23588 ac_cv_lib_m_ynf=yes
158e0e64 23589else
cd9a469c 23590 ac_cv_lib_m_ynf=no
158e0e64 23591fi
cd9a469c 23592rm -f core conftest.err conftest.$ac_objext \
23593 conftest$ac_exeext conftest.$ac_ext
158e0e64 23594LIBS=$ac_check_lib_save_LIBS
23595fi
cd9a469c 23596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ynf" >&5
23597$as_echo "$ac_cv_lib_m_ynf" >&6; }
23598if test "x$ac_cv_lib_m_ynf" = x""yes; then :
158e0e64 23599
cd9a469c 23600$as_echo "#define HAVE_YNF 1" >>confdefs.h
158e0e64 23601
23602fi
23603
cd9a469c 23604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn in -lm" >&5
23605$as_echo_n "checking for yn in -lm... " >&6; }
23606if test "${ac_cv_lib_m_yn+set}" = set; then :
23607 $as_echo_n "(cached) " >&6
158e0e64 23608else
23609 ac_check_lib_save_LIBS=$LIBS
23610LIBS="-lm $LIBS"
b52ee437 23611if test x$gcc_no_link = xyes; then
cd9a469c 23612 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23613fi
cd9a469c 23614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23615/* end confdefs.h. */
23616
cd9a469c 23617/* Override any GCC internal prototype to avoid an error.
23618 Use char because int might match the return type of a GCC
23619 builtin and then its argument prototype would still apply. */
158e0e64 23620#ifdef __cplusplus
23621extern "C"
23622#endif
158e0e64 23623char yn ();
23624int
23625main ()
23626{
cd9a469c 23627return yn ();
158e0e64 23628 ;
23629 return 0;
23630}
23631_ACEOF
cd9a469c 23632if ac_fn_c_try_link "$LINENO"; then :
158e0e64 23633 ac_cv_lib_m_yn=yes
23634else
cd9a469c 23635 ac_cv_lib_m_yn=no
158e0e64 23636fi
cd9a469c 23637rm -f core conftest.err conftest.$ac_objext \
23638 conftest$ac_exeext conftest.$ac_ext
158e0e64 23639LIBS=$ac_check_lib_save_LIBS
23640fi
cd9a469c 23641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_yn" >&5
23642$as_echo "$ac_cv_lib_m_yn" >&6; }
23643if test "x$ac_cv_lib_m_yn" = x""yes; then :
158e0e64 23644
cd9a469c 23645$as_echo "#define HAVE_YN 1" >>confdefs.h
158e0e64 23646
23647fi
23648
cd9a469c 23649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl in -lm" >&5
23650$as_echo_n "checking for ynl in -lm... " >&6; }
23651if test "${ac_cv_lib_m_ynl+set}" = set; then :
23652 $as_echo_n "(cached) " >&6
158e0e64 23653else
23654 ac_check_lib_save_LIBS=$LIBS
23655LIBS="-lm $LIBS"
b52ee437 23656if test x$gcc_no_link = xyes; then
cd9a469c 23657 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23658fi
cd9a469c 23659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23660/* end confdefs.h. */
23661
cd9a469c 23662/* Override any GCC internal prototype to avoid an error.
23663 Use char because int might match the return type of a GCC
23664 builtin and then its argument prototype would still apply. */
158e0e64 23665#ifdef __cplusplus
23666extern "C"
23667#endif
d213114b 23668char ynl ();
158e0e64 23669int
23670main ()
23671{
cd9a469c 23672return ynl ();
158e0e64 23673 ;
23674 return 0;
23675}
23676_ACEOF
cd9a469c 23677if ac_fn_c_try_link "$LINENO"; then :
d213114b 23678 ac_cv_lib_m_ynl=yes
158e0e64 23679else
cd9a469c 23680 ac_cv_lib_m_ynl=no
158e0e64 23681fi
cd9a469c 23682rm -f core conftest.err conftest.$ac_objext \
23683 conftest$ac_exeext conftest.$ac_ext
158e0e64 23684LIBS=$ac_check_lib_save_LIBS
23685fi
cd9a469c 23686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ynl" >&5
23687$as_echo "$ac_cv_lib_m_ynl" >&6; }
23688if test "x$ac_cv_lib_m_ynl" = x""yes; then :
158e0e64 23689
cd9a469c 23690$as_echo "#define HAVE_YNL 1" >>confdefs.h
158e0e64 23691
23692fi
23693
cd9a469c 23694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma in -lm" >&5
23695$as_echo_n "checking for tgamma in -lm... " >&6; }
23696if test "${ac_cv_lib_m_tgamma+set}" = set; then :
23697 $as_echo_n "(cached) " >&6
6d516d29 23698else
23699 ac_check_lib_save_LIBS=$LIBS
23700LIBS="-lm $LIBS"
23701if test x$gcc_no_link = xyes; then
cd9a469c 23702 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 23703fi
cd9a469c 23704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 23705/* end confdefs.h. */
23706
cd9a469c 23707/* Override any GCC internal prototype to avoid an error.
23708 Use char because int might match the return type of a GCC
23709 builtin and then its argument prototype would still apply. */
6d516d29 23710#ifdef __cplusplus
23711extern "C"
23712#endif
6d516d29 23713char tgamma ();
23714int
23715main ()
23716{
cd9a469c 23717return tgamma ();
6d516d29 23718 ;
23719 return 0;
23720}
23721_ACEOF
cd9a469c 23722if ac_fn_c_try_link "$LINENO"; then :
6d516d29 23723 ac_cv_lib_m_tgamma=yes
23724else
cd9a469c 23725 ac_cv_lib_m_tgamma=no
6d516d29 23726fi
cd9a469c 23727rm -f core conftest.err conftest.$ac_objext \
23728 conftest$ac_exeext conftest.$ac_ext
6d516d29 23729LIBS=$ac_check_lib_save_LIBS
23730fi
cd9a469c 23731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgamma" >&5
23732$as_echo "$ac_cv_lib_m_tgamma" >&6; }
23733if test "x$ac_cv_lib_m_tgamma" = x""yes; then :
6d516d29 23734
cd9a469c 23735$as_echo "#define HAVE_TGAMMA 1" >>confdefs.h
6d516d29 23736
23737fi
23738
cd9a469c 23739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf in -lm" >&5
23740$as_echo_n "checking for tgammaf in -lm... " >&6; }
23741if test "${ac_cv_lib_m_tgammaf+set}" = set; then :
23742 $as_echo_n "(cached) " >&6
6d516d29 23743else
23744 ac_check_lib_save_LIBS=$LIBS
23745LIBS="-lm $LIBS"
23746if test x$gcc_no_link = xyes; then
cd9a469c 23747 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 23748fi
cd9a469c 23749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 23750/* end confdefs.h. */
23751
cd9a469c 23752/* Override any GCC internal prototype to avoid an error.
23753 Use char because int might match the return type of a GCC
23754 builtin and then its argument prototype would still apply. */
6d516d29 23755#ifdef __cplusplus
23756extern "C"
23757#endif
6d516d29 23758char tgammaf ();
23759int
23760main ()
23761{
cd9a469c 23762return tgammaf ();
6d516d29 23763 ;
23764 return 0;
23765}
23766_ACEOF
cd9a469c 23767if ac_fn_c_try_link "$LINENO"; then :
6d516d29 23768 ac_cv_lib_m_tgammaf=yes
23769else
cd9a469c 23770 ac_cv_lib_m_tgammaf=no
6d516d29 23771fi
cd9a469c 23772rm -f core conftest.err conftest.$ac_objext \
23773 conftest$ac_exeext conftest.$ac_ext
6d516d29 23774LIBS=$ac_check_lib_save_LIBS
23775fi
cd9a469c 23776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgammaf" >&5
23777$as_echo "$ac_cv_lib_m_tgammaf" >&6; }
23778if test "x$ac_cv_lib_m_tgammaf" = x""yes; then :
6d516d29 23779
cd9a469c 23780$as_echo "#define HAVE_TGAMMAF 1" >>confdefs.h
6d516d29 23781
23782fi
23783
cd9a469c 23784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal in -lm" >&5
23785$as_echo_n "checking for tgammal in -lm... " >&6; }
23786if test "${ac_cv_lib_m_tgammal+set}" = set; then :
23787 $as_echo_n "(cached) " >&6
6d516d29 23788else
23789 ac_check_lib_save_LIBS=$LIBS
23790LIBS="-lm $LIBS"
23791if test x$gcc_no_link = xyes; then
cd9a469c 23792 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 23793fi
cd9a469c 23794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 23795/* end confdefs.h. */
23796
cd9a469c 23797/* Override any GCC internal prototype to avoid an error.
23798 Use char because int might match the return type of a GCC
23799 builtin and then its argument prototype would still apply. */
6d516d29 23800#ifdef __cplusplus
23801extern "C"
23802#endif
6d516d29 23803char tgammal ();
23804int
23805main ()
23806{
cd9a469c 23807return tgammal ();
6d516d29 23808 ;
23809 return 0;
23810}
23811_ACEOF
cd9a469c 23812if ac_fn_c_try_link "$LINENO"; then :
6d516d29 23813 ac_cv_lib_m_tgammal=yes
23814else
cd9a469c 23815 ac_cv_lib_m_tgammal=no
6d516d29 23816fi
cd9a469c 23817rm -f core conftest.err conftest.$ac_objext \
23818 conftest$ac_exeext conftest.$ac_ext
6d516d29 23819LIBS=$ac_check_lib_save_LIBS
23820fi
cd9a469c 23821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgammal" >&5
23822$as_echo "$ac_cv_lib_m_tgammal" >&6; }
23823if test "x$ac_cv_lib_m_tgammal" = x""yes; then :
6d516d29 23824
cd9a469c 23825$as_echo "#define HAVE_TGAMMAL 1" >>confdefs.h
6d516d29 23826
23827fi
23828
cd9a469c 23829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma in -lm" >&5
23830$as_echo_n "checking for lgamma in -lm... " >&6; }
23831if test "${ac_cv_lib_m_lgamma+set}" = set; then :
23832 $as_echo_n "(cached) " >&6
6d516d29 23833else
23834 ac_check_lib_save_LIBS=$LIBS
23835LIBS="-lm $LIBS"
23836if test x$gcc_no_link = xyes; then
cd9a469c 23837 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 23838fi
cd9a469c 23839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 23840/* end confdefs.h. */
23841
cd9a469c 23842/* Override any GCC internal prototype to avoid an error.
23843 Use char because int might match the return type of a GCC
23844 builtin and then its argument prototype would still apply. */
6d516d29 23845#ifdef __cplusplus
23846extern "C"
23847#endif
6d516d29 23848char lgamma ();
23849int
23850main ()
23851{
cd9a469c 23852return lgamma ();
6d516d29 23853 ;
23854 return 0;
23855}
23856_ACEOF
cd9a469c 23857if ac_fn_c_try_link "$LINENO"; then :
6d516d29 23858 ac_cv_lib_m_lgamma=yes
23859else
cd9a469c 23860 ac_cv_lib_m_lgamma=no
6d516d29 23861fi
cd9a469c 23862rm -f core conftest.err conftest.$ac_objext \
23863 conftest$ac_exeext conftest.$ac_ext
6d516d29 23864LIBS=$ac_check_lib_save_LIBS
23865fi
cd9a469c 23866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgamma" >&5
23867$as_echo "$ac_cv_lib_m_lgamma" >&6; }
23868if test "x$ac_cv_lib_m_lgamma" = x""yes; then :
6d516d29 23869
cd9a469c 23870$as_echo "#define HAVE_LGAMMA 1" >>confdefs.h
6d516d29 23871
23872fi
23873
cd9a469c 23874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf in -lm" >&5
23875$as_echo_n "checking for lgammaf in -lm... " >&6; }
23876if test "${ac_cv_lib_m_lgammaf+set}" = set; then :
23877 $as_echo_n "(cached) " >&6
6d516d29 23878else
23879 ac_check_lib_save_LIBS=$LIBS
23880LIBS="-lm $LIBS"
23881if test x$gcc_no_link = xyes; then
cd9a469c 23882 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 23883fi
cd9a469c 23884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 23885/* end confdefs.h. */
23886
cd9a469c 23887/* Override any GCC internal prototype to avoid an error.
23888 Use char because int might match the return type of a GCC
23889 builtin and then its argument prototype would still apply. */
6d516d29 23890#ifdef __cplusplus
23891extern "C"
23892#endif
6d516d29 23893char lgammaf ();
23894int
23895main ()
23896{
cd9a469c 23897return lgammaf ();
6d516d29 23898 ;
23899 return 0;
23900}
23901_ACEOF
cd9a469c 23902if ac_fn_c_try_link "$LINENO"; then :
6d516d29 23903 ac_cv_lib_m_lgammaf=yes
23904else
cd9a469c 23905 ac_cv_lib_m_lgammaf=no
6d516d29 23906fi
cd9a469c 23907rm -f core conftest.err conftest.$ac_objext \
23908 conftest$ac_exeext conftest.$ac_ext
6d516d29 23909LIBS=$ac_check_lib_save_LIBS
23910fi
cd9a469c 23911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgammaf" >&5
23912$as_echo "$ac_cv_lib_m_lgammaf" >&6; }
23913if test "x$ac_cv_lib_m_lgammaf" = x""yes; then :
6d516d29 23914
cd9a469c 23915$as_echo "#define HAVE_LGAMMAF 1" >>confdefs.h
6d516d29 23916
23917fi
23918
cd9a469c 23919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal in -lm" >&5
23920$as_echo_n "checking for lgammal in -lm... " >&6; }
23921if test "${ac_cv_lib_m_lgammal+set}" = set; then :
23922 $as_echo_n "(cached) " >&6
6d516d29 23923else
23924 ac_check_lib_save_LIBS=$LIBS
23925LIBS="-lm $LIBS"
23926if test x$gcc_no_link = xyes; then
cd9a469c 23927 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 23928fi
cd9a469c 23929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 23930/* end confdefs.h. */
23931
cd9a469c 23932/* Override any GCC internal prototype to avoid an error.
23933 Use char because int might match the return type of a GCC
23934 builtin and then its argument prototype would still apply. */
6d516d29 23935#ifdef __cplusplus
23936extern "C"
23937#endif
6d516d29 23938char lgammal ();
23939int
23940main ()
23941{
cd9a469c 23942return lgammal ();
6d516d29 23943 ;
23944 return 0;
23945}
23946_ACEOF
cd9a469c 23947if ac_fn_c_try_link "$LINENO"; then :
6d516d29 23948 ac_cv_lib_m_lgammal=yes
23949else
cd9a469c 23950 ac_cv_lib_m_lgammal=no
6d516d29 23951fi
cd9a469c 23952rm -f core conftest.err conftest.$ac_objext \
23953 conftest$ac_exeext conftest.$ac_ext
6d516d29 23954LIBS=$ac_check_lib_save_LIBS
23955fi
cd9a469c 23956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgammal" >&5
23957$as_echo "$ac_cv_lib_m_lgammal" >&6; }
23958if test "x$ac_cv_lib_m_lgammal" = x""yes; then :
6d516d29 23959
cd9a469c 23960$as_echo "#define HAVE_LGAMMAL 1" >>confdefs.h
6d516d29 23961
23962fi
23963
a31bd8a4 23964
89b803c8 23965# Check for GFORTRAN_C99_1.1 funcs
23966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos in -lm" >&5
23967$as_echo_n "checking for cacos in -lm... " >&6; }
23968if test "${ac_cv_lib_m_cacos+set}" = set; then :
23969 $as_echo_n "(cached) " >&6
23970else
23971 ac_check_lib_save_LIBS=$LIBS
23972LIBS="-lm $LIBS"
23973if test x$gcc_no_link = xyes; then
23974 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23975fi
23976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23977/* end confdefs.h. */
23978
23979/* Override any GCC internal prototype to avoid an error.
23980 Use char because int might match the return type of a GCC
23981 builtin and then its argument prototype would still apply. */
23982#ifdef __cplusplus
23983extern "C"
23984#endif
23985char cacos ();
23986int
23987main ()
23988{
23989return cacos ();
23990 ;
23991 return 0;
23992}
23993_ACEOF
23994if ac_fn_c_try_link "$LINENO"; then :
23995 ac_cv_lib_m_cacos=yes
23996else
23997 ac_cv_lib_m_cacos=no
23998fi
23999rm -f core conftest.err conftest.$ac_objext \
24000 conftest$ac_exeext conftest.$ac_ext
24001LIBS=$ac_check_lib_save_LIBS
24002fi
24003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacos" >&5
24004$as_echo "$ac_cv_lib_m_cacos" >&6; }
24005if test "x$ac_cv_lib_m_cacos" = x""yes; then :
24006
24007$as_echo "#define HAVE_CACOS 1" >>confdefs.h
24008
24009fi
24010
24011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf in -lm" >&5
24012$as_echo_n "checking for cacosf in -lm... " >&6; }
24013if test "${ac_cv_lib_m_cacosf+set}" = set; then :
24014 $as_echo_n "(cached) " >&6
24015else
24016 ac_check_lib_save_LIBS=$LIBS
24017LIBS="-lm $LIBS"
24018if test x$gcc_no_link = xyes; then
24019 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24020fi
24021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24022/* end confdefs.h. */
24023
24024/* Override any GCC internal prototype to avoid an error.
24025 Use char because int might match the return type of a GCC
24026 builtin and then its argument prototype would still apply. */
24027#ifdef __cplusplus
24028extern "C"
24029#endif
24030char cacosf ();
24031int
24032main ()
24033{
24034return cacosf ();
24035 ;
24036 return 0;
24037}
24038_ACEOF
24039if ac_fn_c_try_link "$LINENO"; then :
24040 ac_cv_lib_m_cacosf=yes
24041else
24042 ac_cv_lib_m_cacosf=no
24043fi
24044rm -f core conftest.err conftest.$ac_objext \
24045 conftest$ac_exeext conftest.$ac_ext
24046LIBS=$ac_check_lib_save_LIBS
24047fi
24048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosf" >&5
24049$as_echo "$ac_cv_lib_m_cacosf" >&6; }
24050if test "x$ac_cv_lib_m_cacosf" = x""yes; then :
24051
24052$as_echo "#define HAVE_CACOSF 1" >>confdefs.h
24053
24054fi
24055
24056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh in -lm" >&5
24057$as_echo_n "checking for cacosh in -lm... " >&6; }
24058if test "${ac_cv_lib_m_cacosh+set}" = set; then :
24059 $as_echo_n "(cached) " >&6
24060else
24061 ac_check_lib_save_LIBS=$LIBS
24062LIBS="-lm $LIBS"
24063if test x$gcc_no_link = xyes; then
24064 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24065fi
24066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24067/* end confdefs.h. */
24068
24069/* Override any GCC internal prototype to avoid an error.
24070 Use char because int might match the return type of a GCC
24071 builtin and then its argument prototype would still apply. */
24072#ifdef __cplusplus
24073extern "C"
24074#endif
24075char cacosh ();
24076int
24077main ()
24078{
24079return cacosh ();
24080 ;
24081 return 0;
24082}
24083_ACEOF
24084if ac_fn_c_try_link "$LINENO"; then :
24085 ac_cv_lib_m_cacosh=yes
24086else
24087 ac_cv_lib_m_cacosh=no
24088fi
24089rm -f core conftest.err conftest.$ac_objext \
24090 conftest$ac_exeext conftest.$ac_ext
24091LIBS=$ac_check_lib_save_LIBS
24092fi
24093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosh" >&5
24094$as_echo "$ac_cv_lib_m_cacosh" >&6; }
24095if test "x$ac_cv_lib_m_cacosh" = x""yes; then :
24096
24097$as_echo "#define HAVE_CACOSH 1" >>confdefs.h
24098
24099fi
24100
24101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf in -lm" >&5
24102$as_echo_n "checking for cacoshf in -lm... " >&6; }
24103if test "${ac_cv_lib_m_cacoshf+set}" = set; then :
24104 $as_echo_n "(cached) " >&6
24105else
24106 ac_check_lib_save_LIBS=$LIBS
24107LIBS="-lm $LIBS"
24108if test x$gcc_no_link = xyes; then
24109 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24110fi
24111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24112/* end confdefs.h. */
24113
24114/* Override any GCC internal prototype to avoid an error.
24115 Use char because int might match the return type of a GCC
24116 builtin and then its argument prototype would still apply. */
24117#ifdef __cplusplus
24118extern "C"
24119#endif
24120char cacoshf ();
24121int
24122main ()
24123{
24124return cacoshf ();
24125 ;
24126 return 0;
24127}
24128_ACEOF
24129if ac_fn_c_try_link "$LINENO"; then :
24130 ac_cv_lib_m_cacoshf=yes
24131else
24132 ac_cv_lib_m_cacoshf=no
24133fi
24134rm -f core conftest.err conftest.$ac_objext \
24135 conftest$ac_exeext conftest.$ac_ext
24136LIBS=$ac_check_lib_save_LIBS
24137fi
24138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacoshf" >&5
24139$as_echo "$ac_cv_lib_m_cacoshf" >&6; }
24140if test "x$ac_cv_lib_m_cacoshf" = x""yes; then :
24141
24142$as_echo "#define HAVE_CACOSHF 1" >>confdefs.h
24143
24144fi
24145
24146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl in -lm" >&5
24147$as_echo_n "checking for cacoshl in -lm... " >&6; }
24148if test "${ac_cv_lib_m_cacoshl+set}" = set; then :
24149 $as_echo_n "(cached) " >&6
24150else
24151 ac_check_lib_save_LIBS=$LIBS
24152LIBS="-lm $LIBS"
24153if test x$gcc_no_link = xyes; then
24154 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24155fi
24156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24157/* end confdefs.h. */
24158
24159/* Override any GCC internal prototype to avoid an error.
24160 Use char because int might match the return type of a GCC
24161 builtin and then its argument prototype would still apply. */
24162#ifdef __cplusplus
24163extern "C"
24164#endif
24165char cacoshl ();
24166int
24167main ()
24168{
24169return cacoshl ();
24170 ;
24171 return 0;
24172}
24173_ACEOF
24174if ac_fn_c_try_link "$LINENO"; then :
24175 ac_cv_lib_m_cacoshl=yes
24176else
24177 ac_cv_lib_m_cacoshl=no
24178fi
24179rm -f core conftest.err conftest.$ac_objext \
24180 conftest$ac_exeext conftest.$ac_ext
24181LIBS=$ac_check_lib_save_LIBS
24182fi
24183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacoshl" >&5
24184$as_echo "$ac_cv_lib_m_cacoshl" >&6; }
24185if test "x$ac_cv_lib_m_cacoshl" = x""yes; then :
24186
24187$as_echo "#define HAVE_CACOSHL 1" >>confdefs.h
24188
24189fi
24190
24191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl in -lm" >&5
24192$as_echo_n "checking for cacosl in -lm... " >&6; }
24193if test "${ac_cv_lib_m_cacosl+set}" = set; then :
24194 $as_echo_n "(cached) " >&6
24195else
24196 ac_check_lib_save_LIBS=$LIBS
24197LIBS="-lm $LIBS"
24198if test x$gcc_no_link = xyes; then
24199 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24200fi
24201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24202/* end confdefs.h. */
24203
24204/* Override any GCC internal prototype to avoid an error.
24205 Use char because int might match the return type of a GCC
24206 builtin and then its argument prototype would still apply. */
24207#ifdef __cplusplus
24208extern "C"
24209#endif
24210char cacosl ();
24211int
24212main ()
24213{
24214return cacosl ();
24215 ;
24216 return 0;
24217}
24218_ACEOF
24219if ac_fn_c_try_link "$LINENO"; then :
24220 ac_cv_lib_m_cacosl=yes
24221else
24222 ac_cv_lib_m_cacosl=no
24223fi
24224rm -f core conftest.err conftest.$ac_objext \
24225 conftest$ac_exeext conftest.$ac_ext
24226LIBS=$ac_check_lib_save_LIBS
24227fi
24228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosl" >&5
24229$as_echo "$ac_cv_lib_m_cacosl" >&6; }
24230if test "x$ac_cv_lib_m_cacosl" = x""yes; then :
24231
24232$as_echo "#define HAVE_CACOSL 1" >>confdefs.h
24233
24234fi
24235
24236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin in -lm" >&5
24237$as_echo_n "checking for casin in -lm... " >&6; }
24238if test "${ac_cv_lib_m_casin+set}" = set; then :
24239 $as_echo_n "(cached) " >&6
24240else
24241 ac_check_lib_save_LIBS=$LIBS
24242LIBS="-lm $LIBS"
24243if test x$gcc_no_link = xyes; then
24244 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24245fi
24246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24247/* end confdefs.h. */
24248
24249/* Override any GCC internal prototype to avoid an error.
24250 Use char because int might match the return type of a GCC
24251 builtin and then its argument prototype would still apply. */
24252#ifdef __cplusplus
24253extern "C"
24254#endif
24255char casin ();
24256int
24257main ()
24258{
24259return casin ();
24260 ;
24261 return 0;
24262}
24263_ACEOF
24264if ac_fn_c_try_link "$LINENO"; then :
24265 ac_cv_lib_m_casin=yes
24266else
24267 ac_cv_lib_m_casin=no
24268fi
24269rm -f core conftest.err conftest.$ac_objext \
24270 conftest$ac_exeext conftest.$ac_ext
24271LIBS=$ac_check_lib_save_LIBS
24272fi
24273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casin" >&5
24274$as_echo "$ac_cv_lib_m_casin" >&6; }
24275if test "x$ac_cv_lib_m_casin" = x""yes; then :
24276
24277$as_echo "#define HAVE_CASIN 1" >>confdefs.h
24278
24279fi
24280
24281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf in -lm" >&5
24282$as_echo_n "checking for casinf in -lm... " >&6; }
24283if test "${ac_cv_lib_m_casinf+set}" = set; then :
24284 $as_echo_n "(cached) " >&6
24285else
24286 ac_check_lib_save_LIBS=$LIBS
24287LIBS="-lm $LIBS"
24288if test x$gcc_no_link = xyes; then
24289 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24290fi
24291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24292/* end confdefs.h. */
24293
24294/* Override any GCC internal prototype to avoid an error.
24295 Use char because int might match the return type of a GCC
24296 builtin and then its argument prototype would still apply. */
24297#ifdef __cplusplus
24298extern "C"
24299#endif
24300char casinf ();
24301int
24302main ()
24303{
24304return casinf ();
24305 ;
24306 return 0;
24307}
24308_ACEOF
24309if ac_fn_c_try_link "$LINENO"; then :
24310 ac_cv_lib_m_casinf=yes
24311else
24312 ac_cv_lib_m_casinf=no
24313fi
24314rm -f core conftest.err conftest.$ac_objext \
24315 conftest$ac_exeext conftest.$ac_ext
24316LIBS=$ac_check_lib_save_LIBS
24317fi
24318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinf" >&5
24319$as_echo "$ac_cv_lib_m_casinf" >&6; }
24320if test "x$ac_cv_lib_m_casinf" = x""yes; then :
24321
24322$as_echo "#define HAVE_CASINF 1" >>confdefs.h
24323
24324fi
24325
24326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh in -lm" >&5
24327$as_echo_n "checking for casinh in -lm... " >&6; }
24328if test "${ac_cv_lib_m_casinh+set}" = set; then :
24329 $as_echo_n "(cached) " >&6
24330else
24331 ac_check_lib_save_LIBS=$LIBS
24332LIBS="-lm $LIBS"
24333if test x$gcc_no_link = xyes; then
24334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24335fi
24336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24337/* end confdefs.h. */
24338
24339/* Override any GCC internal prototype to avoid an error.
24340 Use char because int might match the return type of a GCC
24341 builtin and then its argument prototype would still apply. */
24342#ifdef __cplusplus
24343extern "C"
24344#endif
24345char casinh ();
24346int
24347main ()
24348{
24349return casinh ();
24350 ;
24351 return 0;
24352}
24353_ACEOF
24354if ac_fn_c_try_link "$LINENO"; then :
24355 ac_cv_lib_m_casinh=yes
24356else
24357 ac_cv_lib_m_casinh=no
24358fi
24359rm -f core conftest.err conftest.$ac_objext \
24360 conftest$ac_exeext conftest.$ac_ext
24361LIBS=$ac_check_lib_save_LIBS
24362fi
24363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinh" >&5
24364$as_echo "$ac_cv_lib_m_casinh" >&6; }
24365if test "x$ac_cv_lib_m_casinh" = x""yes; then :
24366
24367$as_echo "#define HAVE_CASINH 1" >>confdefs.h
24368
24369fi
24370
24371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf in -lm" >&5
24372$as_echo_n "checking for casinhf in -lm... " >&6; }
24373if test "${ac_cv_lib_m_casinhf+set}" = set; then :
24374 $as_echo_n "(cached) " >&6
24375else
24376 ac_check_lib_save_LIBS=$LIBS
24377LIBS="-lm $LIBS"
24378if test x$gcc_no_link = xyes; then
24379 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24380fi
24381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24382/* end confdefs.h. */
24383
24384/* Override any GCC internal prototype to avoid an error.
24385 Use char because int might match the return type of a GCC
24386 builtin and then its argument prototype would still apply. */
24387#ifdef __cplusplus
24388extern "C"
24389#endif
24390char casinhf ();
24391int
24392main ()
24393{
24394return casinhf ();
24395 ;
24396 return 0;
24397}
24398_ACEOF
24399if ac_fn_c_try_link "$LINENO"; then :
24400 ac_cv_lib_m_casinhf=yes
24401else
24402 ac_cv_lib_m_casinhf=no
24403fi
24404rm -f core conftest.err conftest.$ac_objext \
24405 conftest$ac_exeext conftest.$ac_ext
24406LIBS=$ac_check_lib_save_LIBS
24407fi
24408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinhf" >&5
24409$as_echo "$ac_cv_lib_m_casinhf" >&6; }
24410if test "x$ac_cv_lib_m_casinhf" = x""yes; then :
24411
24412$as_echo "#define HAVE_CASINHF 1" >>confdefs.h
24413
24414fi
24415
24416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl in -lm" >&5
24417$as_echo_n "checking for casinhl in -lm... " >&6; }
24418if test "${ac_cv_lib_m_casinhl+set}" = set; then :
24419 $as_echo_n "(cached) " >&6
24420else
24421 ac_check_lib_save_LIBS=$LIBS
24422LIBS="-lm $LIBS"
24423if test x$gcc_no_link = xyes; then
24424 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24425fi
24426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24427/* end confdefs.h. */
24428
24429/* Override any GCC internal prototype to avoid an error.
24430 Use char because int might match the return type of a GCC
24431 builtin and then its argument prototype would still apply. */
24432#ifdef __cplusplus
24433extern "C"
24434#endif
24435char casinhl ();
24436int
24437main ()
24438{
24439return casinhl ();
24440 ;
24441 return 0;
24442}
24443_ACEOF
24444if ac_fn_c_try_link "$LINENO"; then :
24445 ac_cv_lib_m_casinhl=yes
24446else
24447 ac_cv_lib_m_casinhl=no
24448fi
24449rm -f core conftest.err conftest.$ac_objext \
24450 conftest$ac_exeext conftest.$ac_ext
24451LIBS=$ac_check_lib_save_LIBS
24452fi
24453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinhl" >&5
24454$as_echo "$ac_cv_lib_m_casinhl" >&6; }
24455if test "x$ac_cv_lib_m_casinhl" = x""yes; then :
24456
24457$as_echo "#define HAVE_CASINHL 1" >>confdefs.h
24458
24459fi
24460
24461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl in -lm" >&5
24462$as_echo_n "checking for casinl in -lm... " >&6; }
24463if test "${ac_cv_lib_m_casinl+set}" = set; then :
24464 $as_echo_n "(cached) " >&6
24465else
24466 ac_check_lib_save_LIBS=$LIBS
24467LIBS="-lm $LIBS"
24468if test x$gcc_no_link = xyes; then
24469 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24470fi
24471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24472/* end confdefs.h. */
24473
24474/* Override any GCC internal prototype to avoid an error.
24475 Use char because int might match the return type of a GCC
24476 builtin and then its argument prototype would still apply. */
24477#ifdef __cplusplus
24478extern "C"
24479#endif
24480char casinl ();
24481int
24482main ()
24483{
24484return casinl ();
24485 ;
24486 return 0;
24487}
24488_ACEOF
24489if ac_fn_c_try_link "$LINENO"; then :
24490 ac_cv_lib_m_casinl=yes
24491else
24492 ac_cv_lib_m_casinl=no
24493fi
24494rm -f core conftest.err conftest.$ac_objext \
24495 conftest$ac_exeext conftest.$ac_ext
24496LIBS=$ac_check_lib_save_LIBS
24497fi
24498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinl" >&5
24499$as_echo "$ac_cv_lib_m_casinl" >&6; }
24500if test "x$ac_cv_lib_m_casinl" = x""yes; then :
24501
24502$as_echo "#define HAVE_CASINL 1" >>confdefs.h
24503
24504fi
24505
24506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan in -lm" >&5
24507$as_echo_n "checking for catan in -lm... " >&6; }
24508if test "${ac_cv_lib_m_catan+set}" = set; then :
24509 $as_echo_n "(cached) " >&6
24510else
24511 ac_check_lib_save_LIBS=$LIBS
24512LIBS="-lm $LIBS"
24513if test x$gcc_no_link = xyes; then
24514 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24515fi
24516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24517/* end confdefs.h. */
24518
24519/* Override any GCC internal prototype to avoid an error.
24520 Use char because int might match the return type of a GCC
24521 builtin and then its argument prototype would still apply. */
24522#ifdef __cplusplus
24523extern "C"
24524#endif
24525char catan ();
24526int
24527main ()
24528{
24529return catan ();
24530 ;
24531 return 0;
24532}
24533_ACEOF
24534if ac_fn_c_try_link "$LINENO"; then :
24535 ac_cv_lib_m_catan=yes
24536else
24537 ac_cv_lib_m_catan=no
24538fi
24539rm -f core conftest.err conftest.$ac_objext \
24540 conftest$ac_exeext conftest.$ac_ext
24541LIBS=$ac_check_lib_save_LIBS
24542fi
24543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catan" >&5
24544$as_echo "$ac_cv_lib_m_catan" >&6; }
24545if test "x$ac_cv_lib_m_catan" = x""yes; then :
24546
24547$as_echo "#define HAVE_CATAN 1" >>confdefs.h
24548
24549fi
24550
24551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf in -lm" >&5
24552$as_echo_n "checking for catanf in -lm... " >&6; }
24553if test "${ac_cv_lib_m_catanf+set}" = set; then :
24554 $as_echo_n "(cached) " >&6
24555else
24556 ac_check_lib_save_LIBS=$LIBS
24557LIBS="-lm $LIBS"
24558if test x$gcc_no_link = xyes; then
24559 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24560fi
24561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24562/* end confdefs.h. */
24563
24564/* Override any GCC internal prototype to avoid an error.
24565 Use char because int might match the return type of a GCC
24566 builtin and then its argument prototype would still apply. */
24567#ifdef __cplusplus
24568extern "C"
24569#endif
24570char catanf ();
24571int
24572main ()
24573{
24574return catanf ();
24575 ;
24576 return 0;
24577}
24578_ACEOF
24579if ac_fn_c_try_link "$LINENO"; then :
24580 ac_cv_lib_m_catanf=yes
24581else
24582 ac_cv_lib_m_catanf=no
24583fi
24584rm -f core conftest.err conftest.$ac_objext \
24585 conftest$ac_exeext conftest.$ac_ext
24586LIBS=$ac_check_lib_save_LIBS
24587fi
24588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanf" >&5
24589$as_echo "$ac_cv_lib_m_catanf" >&6; }
24590if test "x$ac_cv_lib_m_catanf" = x""yes; then :
24591
24592$as_echo "#define HAVE_CATANF 1" >>confdefs.h
24593
24594fi
24595
24596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh in -lm" >&5
24597$as_echo_n "checking for catanh in -lm... " >&6; }
24598if test "${ac_cv_lib_m_catanh+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24600else
24601 ac_check_lib_save_LIBS=$LIBS
24602LIBS="-lm $LIBS"
24603if test x$gcc_no_link = xyes; then
24604 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24605fi
24606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24607/* end confdefs.h. */
24608
24609/* Override any GCC internal prototype to avoid an error.
24610 Use char because int might match the return type of a GCC
24611 builtin and then its argument prototype would still apply. */
24612#ifdef __cplusplus
24613extern "C"
24614#endif
24615char catanh ();
24616int
24617main ()
24618{
24619return catanh ();
24620 ;
24621 return 0;
24622}
24623_ACEOF
24624if ac_fn_c_try_link "$LINENO"; then :
24625 ac_cv_lib_m_catanh=yes
24626else
24627 ac_cv_lib_m_catanh=no
24628fi
24629rm -f core conftest.err conftest.$ac_objext \
24630 conftest$ac_exeext conftest.$ac_ext
24631LIBS=$ac_check_lib_save_LIBS
24632fi
24633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanh" >&5
24634$as_echo "$ac_cv_lib_m_catanh" >&6; }
24635if test "x$ac_cv_lib_m_catanh" = x""yes; then :
24636
24637$as_echo "#define HAVE_CATANH 1" >>confdefs.h
24638
24639fi
24640
24641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf in -lm" >&5
24642$as_echo_n "checking for catanhf in -lm... " >&6; }
24643if test "${ac_cv_lib_m_catanhf+set}" = set; then :
24644 $as_echo_n "(cached) " >&6
24645else
24646 ac_check_lib_save_LIBS=$LIBS
24647LIBS="-lm $LIBS"
24648if test x$gcc_no_link = xyes; then
24649 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24650fi
24651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24652/* end confdefs.h. */
24653
24654/* Override any GCC internal prototype to avoid an error.
24655 Use char because int might match the return type of a GCC
24656 builtin and then its argument prototype would still apply. */
24657#ifdef __cplusplus
24658extern "C"
24659#endif
24660char catanhf ();
24661int
24662main ()
24663{
24664return catanhf ();
24665 ;
24666 return 0;
24667}
24668_ACEOF
24669if ac_fn_c_try_link "$LINENO"; then :
24670 ac_cv_lib_m_catanhf=yes
24671else
24672 ac_cv_lib_m_catanhf=no
24673fi
24674rm -f core conftest.err conftest.$ac_objext \
24675 conftest$ac_exeext conftest.$ac_ext
24676LIBS=$ac_check_lib_save_LIBS
24677fi
24678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanhf" >&5
24679$as_echo "$ac_cv_lib_m_catanhf" >&6; }
24680if test "x$ac_cv_lib_m_catanhf" = x""yes; then :
24681
24682$as_echo "#define HAVE_CATANHF 1" >>confdefs.h
24683
24684fi
24685
24686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl in -lm" >&5
24687$as_echo_n "checking for catanhl in -lm... " >&6; }
24688if test "${ac_cv_lib_m_catanhl+set}" = set; then :
24689 $as_echo_n "(cached) " >&6
24690else
24691 ac_check_lib_save_LIBS=$LIBS
24692LIBS="-lm $LIBS"
24693if test x$gcc_no_link = xyes; then
24694 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24695fi
24696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24697/* end confdefs.h. */
24698
24699/* Override any GCC internal prototype to avoid an error.
24700 Use char because int might match the return type of a GCC
24701 builtin and then its argument prototype would still apply. */
24702#ifdef __cplusplus
24703extern "C"
24704#endif
24705char catanhl ();
24706int
24707main ()
24708{
24709return catanhl ();
24710 ;
24711 return 0;
24712}
24713_ACEOF
24714if ac_fn_c_try_link "$LINENO"; then :
24715 ac_cv_lib_m_catanhl=yes
24716else
24717 ac_cv_lib_m_catanhl=no
24718fi
24719rm -f core conftest.err conftest.$ac_objext \
24720 conftest$ac_exeext conftest.$ac_ext
24721LIBS=$ac_check_lib_save_LIBS
24722fi
24723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanhl" >&5
24724$as_echo "$ac_cv_lib_m_catanhl" >&6; }
24725if test "x$ac_cv_lib_m_catanhl" = x""yes; then :
24726
24727$as_echo "#define HAVE_CATANHL 1" >>confdefs.h
24728
24729fi
24730
24731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl in -lm" >&5
24732$as_echo_n "checking for catanl in -lm... " >&6; }
24733if test "${ac_cv_lib_m_catanl+set}" = set; then :
24734 $as_echo_n "(cached) " >&6
24735else
24736 ac_check_lib_save_LIBS=$LIBS
24737LIBS="-lm $LIBS"
24738if test x$gcc_no_link = xyes; then
24739 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24740fi
24741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24742/* end confdefs.h. */
24743
24744/* Override any GCC internal prototype to avoid an error.
24745 Use char because int might match the return type of a GCC
24746 builtin and then its argument prototype would still apply. */
24747#ifdef __cplusplus
24748extern "C"
24749#endif
24750char catanl ();
24751int
24752main ()
24753{
24754return catanl ();
24755 ;
24756 return 0;
24757}
24758_ACEOF
24759if ac_fn_c_try_link "$LINENO"; then :
24760 ac_cv_lib_m_catanl=yes
24761else
24762 ac_cv_lib_m_catanl=no
24763fi
24764rm -f core conftest.err conftest.$ac_objext \
24765 conftest$ac_exeext conftest.$ac_ext
24766LIBS=$ac_check_lib_save_LIBS
24767fi
24768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanl" >&5
24769$as_echo "$ac_cv_lib_m_catanl" >&6; }
24770if test "x$ac_cv_lib_m_catanl" = x""yes; then :
24771
24772$as_echo "#define HAVE_CATANL 1" >>confdefs.h
24773
24774fi
24775
24776
839904a0 24777# On AIX, clog is present in libm as __clog
cd9a469c 24778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
24779$as_echo_n "checking for __clog in -lm... " >&6; }
24780if test "${ac_cv_lib_m___clog+set}" = set; then :
24781 $as_echo_n "(cached) " >&6
62a413d5 24782else
24783 ac_check_lib_save_LIBS=$LIBS
24784LIBS="-lm $LIBS"
24785if test x$gcc_no_link = xyes; then
cd9a469c 24786 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
62a413d5 24787fi
cd9a469c 24788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62a413d5 24789/* end confdefs.h. */
24790
cd9a469c 24791/* Override any GCC internal prototype to avoid an error.
24792 Use char because int might match the return type of a GCC
24793 builtin and then its argument prototype would still apply. */
62a413d5 24794#ifdef __cplusplus
24795extern "C"
24796#endif
62a413d5 24797char __clog ();
24798int
24799main ()
24800{
cd9a469c 24801return __clog ();
62a413d5 24802 ;
24803 return 0;
24804}
24805_ACEOF
cd9a469c 24806if ac_fn_c_try_link "$LINENO"; then :
62a413d5 24807 ac_cv_lib_m___clog=yes
24808else
cd9a469c 24809 ac_cv_lib_m___clog=no
62a413d5 24810fi
cd9a469c 24811rm -f core conftest.err conftest.$ac_objext \
24812 conftest$ac_exeext conftest.$ac_ext
62a413d5 24813LIBS=$ac_check_lib_save_LIBS
24814fi
cd9a469c 24815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
24816$as_echo "$ac_cv_lib_m___clog" >&6; }
24817if test "x$ac_cv_lib_m___clog" = x""yes; then :
62a413d5 24818
cd9a469c 24819$as_echo "#define HAVE_CLOG 1" >>confdefs.h
62a413d5 24820
24821fi
24822
24823
daad4fd5 24824# Check whether the system has a working stat()
24825
cd9a469c 24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
24827$as_echo_n "checking whether the target stat is reliable... " >&6; }
24828if test "${libgfor_cv_have_working_stat+set}" = set; then :
24829 $as_echo_n "(cached) " >&6
daad4fd5 24830else
24831
cd9a469c 24832 if test "$cross_compiling" = yes; then :
daad4fd5 24833
24834case "${target}" in
6992582a 24835 *mingw*) libgfor_cv_have_working_stat=no ;;
24836 *) libgfor_cv_have_working_stat=yes;;
daad4fd5 24837esac
24838else
cd9a469c 24839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
daad4fd5 24840/* end confdefs.h. */
24841
24842#include <stdio.h>
24843#include <sys/types.h>
24844#include <sys/stat.h>
24845#include <unistd.h>
24846
24847int main ()
24848{
24849 FILE *f, *g;
24850 struct stat st1, st2;
24851
24852 f = fopen ("foo", "w");
24853 g = fopen ("bar", "w");
24854 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
24855 return 1;
24856 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
24857 return 1;
24858 fclose(f);
24859 fclose(g);
24860 return 0;
24861}
24862_ACEOF
cd9a469c 24863if ac_fn_c_try_run "$LINENO"; then :
6992582a 24864 libgfor_cv_have_working_stat=yes
daad4fd5 24865else
cd9a469c 24866 libgfor_cv_have_working_stat=no
daad4fd5 24867fi
cd9a469c 24868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24869 conftest.$ac_objext conftest.beam conftest.$ac_ext
daad4fd5 24870fi
cd9a469c 24871
daad4fd5 24872fi
cd9a469c 24873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
24874$as_echo "$libgfor_cv_have_working_stat" >&6; }
6992582a 24875if test x"$libgfor_cv_have_working_stat" = xyes; then
daad4fd5 24876
cd9a469c 24877$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
daad4fd5 24878
24879fi
24880
3b99ec70 24881# Check whether __mingw_snprintf() is present
24882
cd9a469c 24883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
24884$as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
24885if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
24886 $as_echo_n "(cached) " >&6
3b99ec70 24887else
24888
24889 if test x$gcc_no_link = xyes; then
cd9a469c 24890 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
3b99ec70 24891fi
cd9a469c 24892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3b99ec70 24893/* end confdefs.h. */
24894
24895#include <stdio.h>
24896extern int __mingw_snprintf (char *, size_t, const char *, ...);
24897
24898int
24899main ()
24900{
24901
24902__mingw_snprintf (NULL, 0, "%d\n", 1);
24903
24904 ;
24905 return 0;
24906}
24907_ACEOF
cd9a469c 24908if ac_fn_c_try_link "$LINENO"; then :
6992582a 24909 eval "libgfor_cv_have_mingw_snprintf=yes"
3b99ec70 24910else
cd9a469c 24911 eval "libgfor_cv_have_mingw_snprintf=no"
3b99ec70 24912fi
cd9a469c 24913rm -f core conftest.err conftest.$ac_objext \
24914 conftest$ac_exeext conftest.$ac_ext
3b99ec70 24915
24916fi
cd9a469c 24917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
24918$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
6992582a 24919 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
3b99ec70 24920
cd9a469c 24921$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
3b99ec70 24922
24923 fi
24924
24925
0dc2aff5 24926# Check for a broken powf implementation
24927
cd9a469c 24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether powf is broken" >&5
24929$as_echo_n "checking whether powf is broken... " >&6; }
24930if test "${libgfor_cv_have_broken_powf+set}" = set; then :
24931 $as_echo_n "(cached) " >&6
0dc2aff5 24932else
24933
24934case "${target}" in
24935 hppa*64*-*-hpux*) libgfor_cv_have_broken_powf=yes ;;
24936 *) libgfor_cv_have_broken_powf=no;;
24937esac
24938fi
cd9a469c 24939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_broken_powf" >&5
24940$as_echo "$libgfor_cv_have_broken_powf" >&6; }
0dc2aff5 24941 if test x"$libgfor_cv_have_broken_powf" = xyes; then
24942
cd9a469c 24943$as_echo "#define HAVE_BROKEN_POWF 1" >>confdefs.h
0dc2aff5 24944
24945 fi
24946
24947
d9d975ae 24948# Check whether libquadmath should be used
24949# Check whether --enable-libquadmath-support was given.
24950if test "${enable_libquadmath_support+set}" = set; then :
24951 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
24952else
24953 ENABLE_LIBQUADMATH_SUPPORT=yes
24954fi
24955
24956enable_libquadmath_support=
24957if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
24958 enable_libquadmath_support=no
24959fi
24960
24961# Check whether we have a __float128 type, depends on enable_libquadmath_support
87969c8c 24962
24963 LIBQUADSPEC=
d9d975ae 24964
24965 if test "x$enable_libquadmath_support" != xno; then
24966
87969c8c 24967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
24968$as_echo_n "checking whether we have a usable __float128 type... " >&6; }
24969if test "${libgfor_cv_have_float128+set}" = set; then :
24970 $as_echo_n "(cached) " >&6
24971else
24972
9af9660c 24973 if test x$gcc_no_link = xyes; then
24974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 24975/* end confdefs.h. */
24976
9af9660c 24977 typedef _Complex float __attribute__((mode(TC))) __complex128;
24978
24979 __float128 foo (__float128 x)
24980 {
24981
24982 __complex128 z1, z2;
24983
24984 z1 = x;
24985 z2 = x / 7.Q;
24986 z2 /= z1;
24987
24988 return (__float128) z2;
24989 }
24990
24991 __float128 bar (__float128 x)
24992 {
24993 return x * __builtin_huge_valq ();
24994 }
87969c8c 24995
24996int
24997main ()
24998{
24999
9af9660c 25000 foo (1.2Q);
25001 bar (1.2Q);
87969c8c 25002
9af9660c 25003 ;
25004 return 0;
25005}
25006_ACEOF
25007if ac_fn_c_try_compile "$LINENO"; then :
87969c8c 25008
9af9660c 25009 libgfor_cv_have_float128=yes
87969c8c 25010
9af9660c 25011else
25012
25013 libgfor_cv_have_float128=no
25014
25015fi
25016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25017else
25018 if test x$gcc_no_link = xyes; then
25019 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25020fi
25021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25022/* end confdefs.h. */
25023
25024 typedef _Complex float __attribute__((mode(TC))) __complex128;
25025
25026 __float128 foo (__float128 x)
25027 {
25028
25029 __complex128 z1, z2;
25030
25031 z1 = x;
25032 z2 = x / 7.Q;
25033 z2 /= z1;
25034
25035 return (__float128) z2;
25036 }
25037
25038 __float128 bar (__float128 x)
25039 {
25040 return x * __builtin_huge_valq ();
25041 }
25042
25043int
25044main ()
25045{
25046
25047 foo (1.2Q);
25048 bar (1.2Q);
87969c8c 25049
25050 ;
25051 return 0;
25052}
25053_ACEOF
25054if ac_fn_c_try_link "$LINENO"; then :
9af9660c 25055
25056 libgfor_cv_have_float128=yes
25057
87969c8c 25058else
9af9660c 25059
25060 libgfor_cv_have_float128=no
25061
87969c8c 25062fi
25063rm -f core conftest.err conftest.$ac_objext \
25064 conftest$ac_exeext conftest.$ac_ext
9af9660c 25065fi
87969c8c 25066fi
25067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25068$as_echo "$libgfor_cv_have_float128" >&6; }
25069
25070 if test "x$libgfor_cv_have_float128" = xyes; then
25071
25072$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25073
25074
25075 ac_xsave_c_werror_flag=$ac_c_werror_flag
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed works" >&5
25077$as_echo_n "checking whether --as-needed works... " >&6; }
25078if test "${libgfor_cv_have_as_needed+set}" = set; then :
25079 $as_echo_n "(cached) " >&6
25080else
25081
25082 save_LDFLAGS="$LDFLAGS"
25083 LDFLAGS="$LDFLAGS -Wl,--as-needed -lm -Wl,--no-as-needed"
25084 libgfor_cv_have_as_needed=no
25085
25086ac_c_werror_flag=yes
25087 if test x$gcc_no_link = xyes; then
25088 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25089fi
25090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25091/* end confdefs.h. */
25092
25093int
25094main ()
25095{
25096
25097 ;
25098 return 0;
25099}
25100_ACEOF
25101if ac_fn_c_try_link "$LINENO"; then :
25102 libgfor_cv_have_as_needed=yes
25103else
25104 libgfor_cv_have_as_needed=no
25105fi
25106rm -f core conftest.err conftest.$ac_objext \
25107 conftest$ac_exeext conftest.$ac_ext
25108 LDFLAGS="$save_LDFLAGS"
25109 ac_c_werror_flag=$ac_xsave_c_werror_flag
25110
25111fi
25112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25113$as_echo "$libgfor_cv_have_as_needed" >&6; }
25114
25115 if test "x$libgfor_cv_have_as_needed" = xyes; then
25116 LIBQUADSPEC="%{static-libgfortran:--as-needed} -lquadmath %{static-libgfortran:--no-as-needed}"
25117 else
25118 LIBQUADSPEC="-lquadmath"
25119 fi
25120 if test -f ../libquadmath/libquadmath.la; then
25121 LIBQUADLIB=../libquadmath/libquadmath.la
25122 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25123 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25124 else
25125 LIBQUADLIB="-lquadmath"
25126 LIBQUADLIB_DEP=
25127 LIBQUADINCLUDE=
25128 fi
25129 fi
d9d975ae 25130 else
25131 # for --disable-quadmath
25132 LIBQUADLIB=
25133 LIBQUADLIB_DEP=
25134 LIBQUADINCLUDE=
25135 fi
87969c8c 25136
25137
25138
25139
25140
25141
25142 if test "x$libgfor_cv_have_float128" = xyes; then
25143 LIBGFOR_BUILD_QUAD_TRUE=
25144 LIBGFOR_BUILD_QUAD_FALSE='#'
25145else
25146 LIBGFOR_BUILD_QUAD_TRUE='#'
25147 LIBGFOR_BUILD_QUAD_FALSE=
25148fi
25149
25150
25151
8c84a5de 25152# Check for GNU libc feenableexcept
cd9a469c 25153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25154$as_echo_n "checking for feenableexcept in -lm... " >&6; }
25155if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25156 $as_echo_n "(cached) " >&6
8c84a5de 25157else
25158 ac_check_lib_save_LIBS=$LIBS
25159LIBS="-lm $LIBS"
25160if test x$gcc_no_link = xyes; then
cd9a469c 25161 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8c84a5de 25162fi
cd9a469c 25163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8c84a5de 25164/* end confdefs.h. */
25165
cd9a469c 25166/* Override any GCC internal prototype to avoid an error.
25167 Use char because int might match the return type of a GCC
25168 builtin and then its argument prototype would still apply. */
8c84a5de 25169#ifdef __cplusplus
25170extern "C"
25171#endif
8c84a5de 25172char feenableexcept ();
25173int
25174main ()
25175{
cd9a469c 25176return feenableexcept ();
8c84a5de 25177 ;
25178 return 0;
25179}
25180_ACEOF
cd9a469c 25181if ac_fn_c_try_link "$LINENO"; then :
8c84a5de 25182 ac_cv_lib_m_feenableexcept=yes
25183else
cd9a469c 25184 ac_cv_lib_m_feenableexcept=no
8c84a5de 25185fi
cd9a469c 25186rm -f core conftest.err conftest.$ac_objext \
25187 conftest$ac_exeext conftest.$ac_ext
8c84a5de 25188LIBS=$ac_check_lib_save_LIBS
25189fi
cd9a469c 25190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25191$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25192if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
8c84a5de 25193 have_feenableexcept=yes
cd9a469c 25194$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
aaa798ba 25195
25196fi
25197
aaa798ba 25198
d90d0997 25199# At least for glibc and Tru64, clock_gettime is in librt. But don't
25200# pull that in if it still doesn't give us the function we want. This
25201# test is copied from libgomp, and modified to not link in -lrt as
25202# libgfortran calls clock_gettime via a weak reference if it's found
25203# in librt.
a2c0dc0f 25204if test $ac_cv_func_clock_gettime = no; then
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25206$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25207if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25208 $as_echo_n "(cached) " >&6
25209else
25210 ac_check_lib_save_LIBS=$LIBS
25211LIBS="-lrt $LIBS"
25212if test x$gcc_no_link = xyes; then
25213 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25214fi
25215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25216/* end confdefs.h. */
25217
25218/* Override any GCC internal prototype to avoid an error.
25219 Use char because int might match the return type of a GCC
25220 builtin and then its argument prototype would still apply. */
25221#ifdef __cplusplus
25222extern "C"
25223#endif
25224char clock_gettime ();
25225int
25226main ()
25227{
25228return clock_gettime ();
25229 ;
25230 return 0;
25231}
25232_ACEOF
25233if ac_fn_c_try_link "$LINENO"; then :
25234 ac_cv_lib_rt_clock_gettime=yes
25235else
25236 ac_cv_lib_rt_clock_gettime=no
25237fi
25238rm -f core conftest.err conftest.$ac_objext \
25239 conftest$ac_exeext conftest.$ac_ext
25240LIBS=$ac_check_lib_save_LIBS
25241fi
25242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25243$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25244if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
a2c0dc0f 25245
d90d0997 25246$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
a2c0dc0f 25247
25248fi
25249
25250fi
25251
cd9a469c 25252# Check for SysV fpsetmask
aaa798ba 25253
cd9a469c 25254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25255$as_echo_n "checking whether fpsetmask is present... " >&6; }
25256if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25257 $as_echo_n "(cached) " >&6
25258else
aaa798ba 25259
cd9a469c 25260 if test x$gcc_no_link = xyes; then
25261 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25262fi
25263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25264/* end confdefs.h. */
aaa798ba 25265
cd9a469c 25266#if HAVE_FLOATINGPOINT_H
25267# include <floatingpoint.h>
25268#endif /* HAVE_FLOATINGPOINT_H */
25269#if HAVE_IEEEFP_H
25270# include <ieeefp.h>
25271#endif /* HAVE_IEEEFP_H */
aaa798ba 25272int
25273main ()
25274{
cd9a469c 25275fpsetmask(0);
aaa798ba 25276 ;
25277 return 0;
25278}
25279_ACEOF
cd9a469c 25280if ac_fn_c_try_link "$LINENO"; then :
25281 eval "libgfor_cv_have_fpsetmask=yes"
aaa798ba 25282else
cd9a469c 25283 eval "libgfor_cv_have_fpsetmask=no"
25284fi
25285rm -f core conftest.err conftest.$ac_objext \
25286 conftest$ac_exeext conftest.$ac_ext
aaa798ba 25287
aaa798ba 25288fi
cd9a469c 25289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25290$as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25291 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
b00fa2cf 25292 have_fpsetmask=yes
cd9a469c 25293
25294$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25295
25296 fi
25297
25298
25299# Check for AIX fp_trap and fp_enable
25300ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25301if test "x$ac_cv_func_fp_trap" = x""yes; then :
25302 have_fp_trap=yes
25303$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25304
aaa798ba 25305fi
cd9a469c 25306
25307ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25308if test "x$ac_cv_func_fp_enable" = x""yes; then :
aaa798ba 25309 have_fp_enable=yes
cd9a469c 25310$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
aaa798ba 25311
25312fi
25313
25314
8c84a5de 25315# Runs configure.host to set up necessary host-dependent shell variables.
25316# We then display a message about it, and propagate them through the
25317# build chain.
25318. ${srcdir}/configure.host
cd9a469c 25319{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25320$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
8c84a5de 25321FPU_HOST_HEADER=config/${fpu_host}.h
25322
25323
72934c53 25324# Some targets require additional compiler options for IEEE compatibility.
25325IEEE_FLAGS="${ieee_flags}"
25326
25327
d78db4a0 25328
25329# Check for POSIX getpwuid_r
25330#
25331# There are two versions of getpwuid_r, the POSIX one with 5
25332# arguments, and another one with 4 arguments used by at least HP-UX
25333# 10.2.
25334if test "$ac_cv_func_getpwuid_r" = "yes"; then
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25336$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
25337if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
25338 $as_echo_n "(cached) " >&6
25339else
25340
25341 if test x$gcc_no_link = xyes; then
25342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25343fi
25344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25345/* end confdefs.h. */
25346
25347#include <stdio.h>
25348#include <sys/types.h>
25349#include <pwd.h>
25350int
25351main ()
25352{
25353
25354 getpwuid_r(0, NULL, NULL, 0, NULL);
25355
25356 ;
25357 return 0;
25358}
25359_ACEOF
25360if ac_fn_c_try_link "$LINENO"; then :
25361 libgfor_cv_posix_getpwuid_r="yes"
25362else
25363 libgfor_cv_posix_getpwuid_r="no"
25364fi
25365rm -f core conftest.err conftest.$ac_objext \
25366 conftest$ac_exeext conftest.$ac_ext
25367fi
25368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
25369$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
25370fi
25371if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
25372
25373$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
25374
25375fi
25376
25377
7b6cb5bd 25378# Check out attribute support.
25379
cd9a469c 25380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
25381$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
25382if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
25383 $as_echo_n "(cached) " >&6
7b6cb5bd 25384else
25385
25386 save_CFLAGS="$CFLAGS"
25387 CFLAGS="$CFLAGS -Werror"
cd9a469c 25388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7b6cb5bd 25389/* end confdefs.h. */
25390void __attribute__((visibility("hidden"))) foo(void) { }
25391int
25392main ()
25393{
25394
25395 ;
25396 return 0;
25397}
25398_ACEOF
cd9a469c 25399if ac_fn_c_try_compile "$LINENO"; then :
6992582a 25400 libgfor_cv_have_attribute_visibility=yes
7b6cb5bd 25401else
cd9a469c 25402 libgfor_cv_have_attribute_visibility=no
7b6cb5bd 25403fi
cd9a469c 25404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7b6cb5bd 25405 CFLAGS="$save_CFLAGS"
25406fi
cd9a469c 25407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
25408$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6992582a 25409 if test $libgfor_cv_have_attribute_visibility = yes; then
7b6cb5bd 25410
cd9a469c 25411$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7b6cb5bd 25412
25413 fi
25414
cd9a469c 25415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
25416$as_echo_n "checking whether the target supports dllexport... " >&6; }
25417if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
25418 $as_echo_n "(cached) " >&6
7b6cb5bd 25419else
25420
25421 save_CFLAGS="$CFLAGS"
25422 CFLAGS="$CFLAGS -Werror"
cd9a469c 25423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7b6cb5bd 25424/* end confdefs.h. */
25425void __attribute__((dllexport)) foo(void) { }
25426int
25427main ()
25428{
25429
25430 ;
25431 return 0;
25432}
25433_ACEOF
cd9a469c 25434if ac_fn_c_try_compile "$LINENO"; then :
6992582a 25435 libgfor_cv_have_attribute_dllexport=yes
7b6cb5bd 25436else
cd9a469c 25437 libgfor_cv_have_attribute_dllexport=no
7b6cb5bd 25438fi
cd9a469c 25439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7b6cb5bd 25440 CFLAGS="$save_CFLAGS"
25441fi
cd9a469c 25442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
25443$as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
6992582a 25444 if test $libgfor_cv_have_attribute_dllexport = yes; then
7b6cb5bd 25445
cd9a469c 25446$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
7b6cb5bd 25447
25448 fi
25449
cd9a469c 25450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
25451$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
25452if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
25453 $as_echo_n "(cached) " >&6
7b6cb5bd 25454else
25455
b52ee437 25456 if test x$gcc_no_link = xyes; then
cd9a469c 25457 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 25458fi
cd9a469c 25459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7b6cb5bd 25460/* end confdefs.h. */
25461
7b6cb5bd 25462void foo(void) { }
5a2b0c34 25463extern void bar(void) __attribute__((alias("foo")));
7b6cb5bd 25464int
25465main ()
25466{
25467bar();
25468 ;
25469 return 0;
25470}
25471_ACEOF
cd9a469c 25472if ac_fn_c_try_link "$LINENO"; then :
6992582a 25473 libgfor_cv_have_attribute_alias=yes
7b6cb5bd 25474else
cd9a469c 25475 libgfor_cv_have_attribute_alias=no
7b6cb5bd 25476fi
cd9a469c 25477rm -f core conftest.err conftest.$ac_objext \
25478 conftest$ac_exeext conftest.$ac_ext
7b6cb5bd 25479fi
cd9a469c 25480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
25481$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6992582a 25482 if test $libgfor_cv_have_attribute_alias = yes; then
7b6cb5bd 25483
cd9a469c 25484$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7b6cb5bd 25485
25486 fi
25487
60c514ba 25488# Check out sync builtins support.
25489
cd9a469c 25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
25491$as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
25492if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
25493 $as_echo_n "(cached) " >&6
60c514ba 25494else
25495
25496 if test x$gcc_no_link = xyes; then
cd9a469c 25497 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
60c514ba 25498fi
cd9a469c 25499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60c514ba 25500/* end confdefs.h. */
25501int foovar = 0;
25502int
25503main ()
25504{
25505
25506if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
25507if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
25508 ;
25509 return 0;
25510}
25511_ACEOF
cd9a469c 25512if ac_fn_c_try_link "$LINENO"; then :
6992582a 25513 libgfor_cv_have_sync_fetch_and_add=yes
60c514ba 25514else
cd9a469c 25515 libgfor_cv_have_sync_fetch_and_add=no
60c514ba 25516fi
cd9a469c 25517rm -f core conftest.err conftest.$ac_objext \
25518 conftest$ac_exeext conftest.$ac_ext
60c514ba 25519fi
cd9a469c 25520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
25521$as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
6992582a 25522 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
60c514ba 25523
cd9a469c 25524$as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
60c514ba 25525
25526 fi
25527
60c514ba 25528# Check out #pragma weak.
25529
cd9a469c 25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
25531$as_echo_n "checking whether pragma weak works... " >&6; }
25532if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
25533 $as_echo_n "(cached) " >&6
60c514ba 25534else
25535
25536 gfor_save_CFLAGS="$CFLAGS"
25537 CFLAGS="$CFLAGS -Wunknown-pragmas"
cd9a469c 25538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60c514ba 25539/* end confdefs.h. */
b9a8e1d9 25540
60c514ba 25541void foo (void);
25542#pragma weak foo
b9a8e1d9 25543
60c514ba 25544int
25545main ()
25546{
25547if (foo) foo ();
25548 ;
25549 return 0;
25550}
25551_ACEOF
cd9a469c 25552if ac_fn_c_try_compile "$LINENO"; then :
6992582a 25553 libgfor_cv_have_pragma_weak=yes
60c514ba 25554else
cd9a469c 25555 libgfor_cv_have_pragma_weak=no
60c514ba 25556fi
cd9a469c 25557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60c514ba 25558fi
cd9a469c 25559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
25560$as_echo "$libgfor_cv_have_pragma_weak" >&6; }
6992582a 25561 if test $libgfor_cv_have_pragma_weak = yes; then
60c514ba 25562
cd9a469c 25563$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
60c514ba 25564
25565 fi
0a207fde 25566 case "$host" in
d90d0997 25567 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | alpha*-dec-osf* )
0a207fde 25568
cd9a469c 25569$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
0a207fde 25570
25571 ;;
25572 esac
60c514ba 25573
1dc95e51 25574# Various other checks on target
25575
cd9a469c 25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
25577$as_echo_n "checking whether the target can unlink an open file... " >&6; }
25578if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
25579 $as_echo_n "(cached) " >&6
1dc95e51 25580else
25581
cd9a469c 25582 if test "$cross_compiling" = yes; then :
1dc95e51 25583
25584case "${target}" in
6992582a 25585 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
25586 *) libgfor_cv_have_unlink_open_file=yes;;
1dc95e51 25587esac
25588else
cd9a469c 25589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1dc95e51 25590/* end confdefs.h. */
25591
25592#include <errno.h>
25593#include <fcntl.h>
25594#include <unistd.h>
25595#include <sys/stat.h>
25596
25597int main ()
25598{
25599 int fd;
25600
25601 fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD);
25602 if (fd <= 0)
25603 return 0;
25604 if (unlink ("testfile") == -1)
25605 return 1;
25606 write (fd, "This is a test\n", 15);
25607 close (fd);
25608
25609 if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT)
25610 return 0;
25611 else
25612 return 1;
25613}
25614_ACEOF
cd9a469c 25615if ac_fn_c_try_run "$LINENO"; then :
6992582a 25616 libgfor_cv_have_unlink_open_file=yes
1dc95e51 25617else
cd9a469c 25618 libgfor_cv_have_unlink_open_file=no
1dc95e51 25619fi
cd9a469c 25620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25621 conftest.$ac_objext conftest.beam conftest.$ac_ext
1dc95e51 25622fi
cd9a469c 25623
1dc95e51 25624fi
cd9a469c 25625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
25626$as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
6992582a 25627if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
1dc95e51 25628
cd9a469c 25629$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
1dc95e51 25630
25631fi
25632
cf55c3cf 25633# Check whether line terminator is LF or CRLF
25634
cd9a469c 25635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
25636$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
25637if test "${libgfor_cv_have_crlf+set}" = set; then :
25638 $as_echo_n "(cached) " >&6
cf55c3cf 25639else
25640
cd9a469c 25641 if test "$cross_compiling" = yes; then :
cf55c3cf 25642
25643case "${target}" in
6992582a 25644 *mingw*) libgfor_cv_have_crlf=yes ;;
25645 *) libgfor_cv_have_crlf=no;;
cf55c3cf 25646esac
25647else
cd9a469c 25648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cf55c3cf 25649/* end confdefs.h. */
25650
25651/* This test program should exit with status 0 if system uses a CRLF as
25652 line terminator, and status 1 otherwise.
25653 Since it is used to check for mingw systems, and should return 0 in any
25654 other case, in case of a failure we will not use CRLF. */
25655#include <sys/stat.h>
25656#include <stdlib.h>
25657#include <fcntl.h>
25658#include <stdio.h>
25659
25660int main ()
25661{
25662#ifndef O_BINARY
25663 exit(1);
25664#else
25665 int fd, bytes;
25666 char buff[5];
25667
25668 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
25669 if (fd < 0)
25670 exit(1);
25671 if (write (fd, "\n", 1) < 0)
25672 perror ("write");
25673
25674 close (fd);
25675
25676 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
25677 exit(1);
25678 bytes = read (fd, buff, 5);
25679 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
25680 exit(0);
25681 else
25682 exit(1);
25683#endif
25684}
25685_ACEOF
cd9a469c 25686if ac_fn_c_try_run "$LINENO"; then :
6992582a 25687 libgfor_cv_have_crlf=yes
cf55c3cf 25688else
cd9a469c 25689 libgfor_cv_have_crlf=no
cf55c3cf 25690fi
cd9a469c 25691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25692 conftest.$ac_objext conftest.beam conftest.$ac_ext
cf55c3cf 25693fi
cd9a469c 25694
cf55c3cf 25695fi
cd9a469c 25696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
25697$as_echo "$libgfor_cv_have_crlf" >&6; }
6992582a 25698if test x"$libgfor_cv_have_crlf" = xyes; then
cf55c3cf 25699
cd9a469c 25700$as_echo "#define HAVE_CRLF 1" >>confdefs.h
cf55c3cf 25701
25702fi
25703
0ecf494e 25704# Check whether we have _Unwind_GetIPInfo for backtrace
25705
25706
25707# Check whether --with-system-libunwind was given.
25708if test "${with_system_libunwind+set}" = set; then :
25709 withval=$with_system_libunwind;
25710fi
25711
25712 # If system-libunwind was not specifically set, pick a default setting.
25713 if test x$with_system_libunwind = x; then
25714 case ${target} in
25715 ia64-*-hpux*) with_system_libunwind=yes ;;
25716 *) with_system_libunwind=no ;;
25717 esac
25718 fi
25719 # Based on system-libunwind and target, do we have ipinfo?
25720 if test x$with_system_libunwind = xyes; then
25721 case ${target} in
25722 ia64-*-*) have_unwind_getipinfo=no ;;
25723 *) have_unwind_getipinfo=yes ;;
25724 esac
25725 else
25726 # Darwin before version 9 does not have _Unwind_GetIPInfo.
25727
25728 case ${target} in
25729 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
25730 *) have_unwind_getipinfo=yes ;;
25731 esac
25732
25733 fi
25734
25735 if test x$have_unwind_getipinfo = xyes; then
25736
25737$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
25738
25739 fi
25740
25741
4ee9c684 25742cat >confcache <<\_ACEOF
25743# This file is a shell script that caches the results of configure
25744# tests run on this system so they can be shared between configure
25745# scripts and configure runs, see configure's option --config-cache.
25746# It is not useful on other systems. If it contains results you don't
25747# want to keep, you may remove or edit it.
25748#
25749# config.status only pays attention to the cache file if you give it
25750# the --recheck option to rerun configure.
25751#
25752# `ac_cv_env_foo' variables (set or unset) will be overridden when
25753# loading this file, other *unset* `ac_cv_foo' will be assigned the
25754# following values.
25755
25756_ACEOF
25757
25758# The following way of writing the cache mishandles newlines in values,
25759# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 25760# So, we kill variables containing newlines.
4ee9c684 25761# Ultrix sh set writes to stderr and can't be redirected directly,
25762# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 25763(
25764 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25765 eval ac_val=\$$ac_var
25766 case $ac_val in #(
25767 *${as_nl}*)
25768 case $ac_var in #(
25769 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25770$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25771 esac
25772 case $ac_var in #(
25773 _ | IFS | as_nl) ;; #(
25774 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25775 *) { eval $ac_var=; unset $ac_var;} ;;
25776 esac ;;
25777 esac
25778 done
25779
4ee9c684 25780 (set) 2>&1 |
cd9a469c 25781 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25782 *${as_nl}ac_space=\ *)
25783 # `set' does not quote correctly, so add quotes: double-quote
25784 # substitution turns \\\\ into \\, and sed turns \\ into \.
4ee9c684 25785 sed -n \
25786 "s/'/'\\\\''/g;
25787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 25788 ;; #(
4ee9c684 25789 *)
25790 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 25791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4ee9c684 25792 ;;
cd9a469c 25793 esac |
25794 sort
25795) |
4ee9c684 25796 sed '
cd9a469c 25797 /^ac_cv_env_/b end
4ee9c684 25798 t clear
cd9a469c 25799 :clear
4ee9c684 25800 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25801 t end
cd9a469c 25802 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25803 :end' >>confcache
25804if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25805 if test -w "$cache_file"; then
25806 test "x$cache_file" != "x/dev/null" &&
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25808$as_echo "$as_me: updating cache $cache_file" >&6;}
4ee9c684 25809 cat confcache >$cache_file
25810 else
cd9a469c 25811 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25812$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4ee9c684 25813 fi
25814fi
25815rm -f confcache
25816
90973b19 25817if test ${multilib} = yes; then
25818 multilib_arg="--enable-multilib"
4ee9c684 25819else
90973b19 25820 multilib_arg=
4ee9c684 25821fi
4ee9c684 25822
87969c8c 25823# Write our Makefile and spec file.
25824ac_config_files="$ac_config_files Makefile libgfortran.spec"
90973b19 25825
4ee9c684 25826cat >confcache <<\_ACEOF
25827# This file is a shell script that caches the results of configure
25828# tests run on this system so they can be shared between configure
25829# scripts and configure runs, see configure's option --config-cache.
25830# It is not useful on other systems. If it contains results you don't
25831# want to keep, you may remove or edit it.
25832#
25833# config.status only pays attention to the cache file if you give it
25834# the --recheck option to rerun configure.
25835#
25836# `ac_cv_env_foo' variables (set or unset) will be overridden when
25837# loading this file, other *unset* `ac_cv_foo' will be assigned the
25838# following values.
25839
25840_ACEOF
25841
25842# The following way of writing the cache mishandles newlines in values,
25843# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 25844# So, we kill variables containing newlines.
4ee9c684 25845# Ultrix sh set writes to stderr and can't be redirected directly,
25846# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 25847(
25848 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25849 eval ac_val=\$$ac_var
25850 case $ac_val in #(
25851 *${as_nl}*)
25852 case $ac_var in #(
25853 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25854$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25855 esac
25856 case $ac_var in #(
25857 _ | IFS | as_nl) ;; #(
25858 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25859 *) { eval $ac_var=; unset $ac_var;} ;;
25860 esac ;;
25861 esac
25862 done
25863
4ee9c684 25864 (set) 2>&1 |
cd9a469c 25865 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25866 *${as_nl}ac_space=\ *)
25867 # `set' does not quote correctly, so add quotes: double-quote
25868 # substitution turns \\\\ into \\, and sed turns \\ into \.
4ee9c684 25869 sed -n \
25870 "s/'/'\\\\''/g;
25871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 25872 ;; #(
4ee9c684 25873 *)
25874 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 25875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4ee9c684 25876 ;;
cd9a469c 25877 esac |
25878 sort
25879) |
4ee9c684 25880 sed '
cd9a469c 25881 /^ac_cv_env_/b end
4ee9c684 25882 t clear
cd9a469c 25883 :clear
4ee9c684 25884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25885 t end
cd9a469c 25886 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25887 :end' >>confcache
25888if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25889 if test -w "$cache_file"; then
25890 test "x$cache_file" != "x/dev/null" &&
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25892$as_echo "$as_me: updating cache $cache_file" >&6;}
4ee9c684 25893 cat confcache >$cache_file
25894 else
cd9a469c 25895 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25896$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4ee9c684 25897 fi
25898fi
25899rm -f confcache
25900
25901test "x$prefix" = xNONE && prefix=$ac_default_prefix
25902# Let make expand exec_prefix.
25903test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25904
4ee9c684 25905DEFS=-DHAVE_CONFIG_H
25906
25907ac_libobjs=
25908ac_ltlibobjs=
25909for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25910 # 1. Remove the extension, and $U if already installed.
cd9a469c 25911 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25912 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25913 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25914 # will be set to the directory where LIBOBJS objects are built.
25915 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25916 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4ee9c684 25917done
25918LIBOBJS=$ac_libobjs
25919
25920LTLIBOBJS=$ac_ltlibobjs
25921
25922
93773f82 25923if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
cd9a469c 25924 as_fn_error "conditional \"onestep\" was never defined.
25925Usually this means the macro was only invoked conditionally." "$LINENO" 5
25926fi
25927 if test -n "$EXEEXT"; then
25928 am__EXEEXT_TRUE=
25929 am__EXEEXT_FALSE='#'
25930else
25931 am__EXEEXT_TRUE='#'
25932 am__EXEEXT_FALSE=
93773f82 25933fi
cd9a469c 25934
4ee9c684 25935if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cd9a469c 25936 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25937Usually this means the macro was only invoked conditionally." "$LINENO" 5
4ee9c684 25938fi
2fd61f51 25939if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cd9a469c 25940 as_fn_error "conditional \"AMDEP\" was never defined.
25941Usually this means the macro was only invoked conditionally." "$LINENO" 5
2fd61f51 25942fi
25943if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cd9a469c 25944 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25945Usually this means the macro was only invoked conditionally." "$LINENO" 5
2fd61f51 25946fi
d5d92632 25947if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25948 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25949Usually this means the macro was only invoked conditionally." "$LINENO" 5
25950fi
ce1a737c 25951if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
cd9a469c 25952 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
25953Usually this means the macro was only invoked conditionally." "$LINENO" 5
ce1a737c 25954fi
019fb48a 25955if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
25956 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
25957Usually this means the macro was only invoked conditionally." "$LINENO" 5
25958fi
25959if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
25960 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
25961Usually this means the macro was only invoked conditionally." "$LINENO" 5
25962fi
87969c8c 25963if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
25964 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
25965Usually this means the macro was only invoked conditionally." "$LINENO" 5
25966fi
4ee9c684 25967
25968: ${CONFIG_STATUS=./config.status}
cd9a469c 25969ac_write_fail=0
4ee9c684 25970ac_clean_files_save=$ac_clean_files
25971ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 25972{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25973$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25974as_write_fail=0
25975cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4ee9c684 25976#! $SHELL
25977# Generated by $as_me.
25978# Run this file to recreate the current configuration.
25979# Compiler output produced by configure, useful for debugging
25980# configure, is in config.log if it exists.
25981
25982debug=false
25983ac_cs_recheck=false
25984ac_cs_silent=false
4ee9c684 25985
cd9a469c 25986SHELL=\${CONFIG_SHELL-$SHELL}
25987export SHELL
25988_ASEOF
25989cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25990## -------------------- ##
25991## M4sh Initialization. ##
25992## -------------------- ##
25993
25994# Be more Bourne compatible
25995DUALCASE=1; export DUALCASE # for MKS sh
25996if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4ee9c684 25997 emulate sh
25998 NULLCMD=:
cd9a469c 25999 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4ee9c684 26000 # is contrary to our usage. Disable this feature.
26001 alias -g '${1+"$@"}'='"$@"'
cd9a469c 26002 setopt NO_GLOB_SUBST
26003else
26004 case `(set -o) 2>/dev/null` in #(
26005 *posix*) :
26006 set -o posix ;; #(
26007 *) :
26008 ;;
26009esac
4ee9c684 26010fi
4ee9c684 26011
cd9a469c 26012
26013as_nl='
26014'
26015export as_nl
26016# Printing a long string crashes Solaris 7 /usr/bin/printf.
26017as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26018as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26019as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26020# Prefer a ksh shell builtin over an external printf program on Solaris,
26021# but without wasting forks for bash or zsh.
26022if test -z "$BASH_VERSION$ZSH_VERSION" \
26023 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26024 as_echo='print -r --'
26025 as_echo_n='print -rn --'
26026elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26027 as_echo='printf %s\n'
26028 as_echo_n='printf %s'
26029else
26030 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26031 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26032 as_echo_n='/usr/ucb/echo -n'
26033 else
26034 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26035 as_echo_n_body='eval
26036 arg=$1;
26037 case $arg in #(
26038 *"$as_nl"*)
26039 expr "X$arg" : "X\\(.*\\)$as_nl";
26040 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26041 esac;
26042 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26043 '
26044 export as_echo_n_body
26045 as_echo_n='sh -c $as_echo_n_body as_echo'
26046 fi
26047 export as_echo_body
26048 as_echo='sh -c $as_echo_body as_echo'
26049fi
26050
26051# The user is always right.
26052if test "${PATH_SEPARATOR+set}" != set; then
26053 PATH_SEPARATOR=:
26054 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26055 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26056 PATH_SEPARATOR=';'
26057 }
4ee9c684 26058fi
26059
26060
cd9a469c 26061# IFS
26062# We need space, tab and new line, in precisely that order. Quoting is
26063# there to prevent editors from complaining about space-tab.
26064# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26065# splitting by setting IFS to empty value.)
26066IFS=" "" $as_nl"
26067
26068# Find who we are. Look in the path if we contain no directory separator.
26069case $0 in #((
26070 *[\\/]* ) as_myself=$0 ;;
26071 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26072for as_dir in $PATH
26073do
26074 IFS=$as_save_IFS
26075 test -z "$as_dir" && as_dir=.
26076 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26077 done
26078IFS=$as_save_IFS
26079
26080 ;;
26081esac
26082# We did not find ourselves, most probably we were run as `sh COMMAND'
26083# in which case we are not to be found in the path.
26084if test "x$as_myself" = x; then
26085 as_myself=$0
26086fi
26087if test ! -f "$as_myself"; then
26088 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26089 exit 1
26090fi
26091
26092# Unset variables that we do not need and which cause bugs (e.g. in
26093# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26094# suppresses any "Segmentation fault" message there. '((' could
26095# trigger a bug in pdksh 5.2.14.
26096for as_var in BASH_ENV ENV MAIL MAILPATH
26097do eval test x\${$as_var+set} = xset \
26098 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26099done
4ee9c684 26100PS1='$ '
26101PS2='> '
26102PS4='+ '
26103
26104# NLS nuisances.
cd9a469c 26105LC_ALL=C
26106export LC_ALL
26107LANGUAGE=C
26108export LANGUAGE
26109
26110# CDPATH.
26111(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26112
26113
26114# as_fn_error ERROR [LINENO LOG_FD]
26115# ---------------------------------
26116# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26117# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26118# script with status $?, using 1 if that was 0.
26119as_fn_error ()
26120{
26121 as_status=$?; test $as_status -eq 0 && as_status=1
26122 if test "$3"; then
26123 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26124 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4ee9c684 26125 fi
cd9a469c 26126 $as_echo "$as_me: error: $1" >&2
26127 as_fn_exit $as_status
26128} # as_fn_error
26129
26130
26131# as_fn_set_status STATUS
26132# -----------------------
26133# Set $? to STATUS, without forking.
26134as_fn_set_status ()
26135{
26136 return $1
26137} # as_fn_set_status
26138
26139# as_fn_exit STATUS
26140# -----------------
26141# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26142as_fn_exit ()
26143{
26144 set +e
26145 as_fn_set_status $1
26146 exit $1
26147} # as_fn_exit
26148
26149# as_fn_unset VAR
26150# ---------------
26151# Portably unset VAR.
26152as_fn_unset ()
26153{
26154 { eval $1=; unset $1;}
26155}
26156as_unset=as_fn_unset
26157# as_fn_append VAR VALUE
26158# ----------------------
26159# Append the text in VALUE to the end of the definition contained in VAR. Take
26160# advantage of any shell optimizations that allow amortized linear growth over
26161# repeated appends, instead of the typical quadratic growth present in naive
26162# implementations.
26163if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26164 eval 'as_fn_append ()
26165 {
26166 eval $1+=\$2
26167 }'
26168else
26169 as_fn_append ()
26170 {
26171 eval $1=\$$1\$2
26172 }
26173fi # as_fn_append
26174
26175# as_fn_arith ARG...
26176# ------------------
26177# Perform arithmetic evaluation on the ARGs, and store the result in the
26178# global $as_val. Take advantage of shells that can avoid forks. The arguments
26179# must be portable across $(()) and expr.
26180if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26181 eval 'as_fn_arith ()
26182 {
26183 as_val=$(( $* ))
26184 }'
26185else
26186 as_fn_arith ()
26187 {
26188 as_val=`expr "$@" || test $? -eq 1`
26189 }
26190fi # as_fn_arith
4ee9c684 26191
cd9a469c 26192
26193if expr a : '\(a\)' >/dev/null 2>&1 &&
26194 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4ee9c684 26195 as_expr=expr
26196else
26197 as_expr=false
26198fi
26199
cd9a469c 26200if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4ee9c684 26201 as_basename=basename
26202else
26203 as_basename=false
26204fi
26205
cd9a469c 26206if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26207 as_dirname=dirname
26208else
26209 as_dirname=false
26210fi
4ee9c684 26211
cd9a469c 26212as_me=`$as_basename -- "$0" ||
4ee9c684 26213$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26214 X"$0" : 'X\(//\)$' \| \
cd9a469c 26215 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26216$as_echo X/"$0" |
26217 sed '/^.*\/\([^/][^/]*\)\/*$/{
26218 s//\1/
26219 q
26220 }
26221 /^X\/\(\/\/\)$/{
26222 s//\1/
26223 q
26224 }
26225 /^X\/\(\/\).*/{
26226 s//\1/
26227 q
26228 }
26229 s/.*/./; q'`
82eaf560 26230
82eaf560 26231# Avoid depending upon Character Ranges.
26232as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26233as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26234as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26235as_cr_digits='0123456789'
26236as_cr_alnum=$as_cr_Letters$as_cr_digits
26237
cd9a469c 26238ECHO_C= ECHO_N= ECHO_T=
26239case `echo -n x` in #(((((
26240-n*)
26241 case `echo 'xy\c'` in
26242 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26243 xy) ECHO_C='\c';;
26244 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26245 ECHO_T=' ';;
26246 esac;;
26247*)
26248 ECHO_N='-n';;
4ee9c684 26249esac
26250
cd9a469c 26251rm -f conf$$ conf$$.exe conf$$.file
26252if test -d conf$$.dir; then
26253 rm -f conf$$.dir/conf$$.file
4ee9c684 26254else
cd9a469c 26255 rm -f conf$$.dir
26256 mkdir conf$$.dir 2>/dev/null
4ee9c684 26257fi
cd9a469c 26258if (echo >conf$$.file) 2>/dev/null; then
26259 if ln -s conf$$.file conf$$ 2>/dev/null; then
82eaf560 26260 as_ln_s='ln -s'
cd9a469c 26261 # ... but there are two gotchas:
26262 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26263 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26264 # In both cases, we have to default to `cp -p'.
26265 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26266 as_ln_s='cp -p'
26267 elif ln conf$$.file conf$$ 2>/dev/null; then
26268 as_ln_s=ln
26269 else
26270 as_ln_s='cp -p'
82eaf560 26271 fi
4ee9c684 26272else
26273 as_ln_s='cp -p'
26274fi
cd9a469c 26275rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26276rmdir conf$$.dir 2>/dev/null
26277
26278
26279# as_fn_mkdir_p
26280# -------------
26281# Create "$as_dir" as a directory, including parents if necessary.
26282as_fn_mkdir_p ()
26283{
26284
26285 case $as_dir in #(
26286 -*) as_dir=./$as_dir;;
26287 esac
26288 test -d "$as_dir" || eval $as_mkdir_p || {
26289 as_dirs=
26290 while :; do
26291 case $as_dir in #(
26292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26293 *) as_qdir=$as_dir;;
26294 esac
26295 as_dirs="'$as_qdir' $as_dirs"
26296 as_dir=`$as_dirname -- "$as_dir" ||
26297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26298 X"$as_dir" : 'X\(//\)[^/]' \| \
26299 X"$as_dir" : 'X\(//\)$' \| \
26300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26301$as_echo X"$as_dir" |
26302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26303 s//\1/
26304 q
26305 }
26306 /^X\(\/\/\)[^/].*/{
26307 s//\1/
26308 q
26309 }
26310 /^X\(\/\/\)$/{
26311 s//\1/
26312 q
26313 }
26314 /^X\(\/\).*/{
26315 s//\1/
26316 q
26317 }
26318 s/.*/./; q'`
26319 test -d "$as_dir" && break
26320 done
26321 test -z "$as_dirs" || eval "mkdir $as_dirs"
26322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26323
4ee9c684 26324
cd9a469c 26325} # as_fn_mkdir_p
4ee9c684 26326if mkdir -p . 2>/dev/null; then
cd9a469c 26327 as_mkdir_p='mkdir -p "$as_dir"'
4ee9c684 26328else
26329 test -d ./-p && rmdir ./-p
26330 as_mkdir_p=false
26331fi
26332
cd9a469c 26333if test -x / >/dev/null 2>&1; then
26334 as_test_x='test -x'
26335else
26336 if ls -dL / >/dev/null 2>&1; then
26337 as_ls_L_option=L
26338 else
26339 as_ls_L_option=
26340 fi
26341 as_test_x='
26342 eval sh -c '\''
26343 if test -d "$1"; then
26344 test -d "$1/.";
26345 else
26346 case $1 in #(
26347 -*)set "./$1";;
26348 esac;
26349 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26350 ???[sx]*):;;*)false;;esac;fi
26351 '\'' sh
26352 '
26353fi
26354as_executable_p=$as_test_x
4ee9c684 26355
26356# Sed expression to map a string onto a valid CPP name.
26357as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26358
26359# Sed expression to map a string onto a valid variable name.
26360as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26361
26362
4ee9c684 26363exec 6>&1
cd9a469c 26364## ----------------------------------- ##
26365## Main body of $CONFIG_STATUS script. ##
26366## ----------------------------------- ##
26367_ASEOF
26368test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26369
26370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26371# Save the log message, to keep $0 and so on meaningful, and to
4ee9c684 26372# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 26373# values after options handling.
26374ac_log="
76c0a846 26375This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
cd9a469c 26376generated by GNU Autoconf 2.64. Invocation command line was
4ee9c684 26377
26378 CONFIG_FILES = $CONFIG_FILES
26379 CONFIG_HEADERS = $CONFIG_HEADERS
26380 CONFIG_LINKS = $CONFIG_LINKS
26381 CONFIG_COMMANDS = $CONFIG_COMMANDS
26382 $ $0 $@
26383
cd9a469c 26384on `(hostname || uname -n) 2>/dev/null | sed 1q`
26385"
26386
4ee9c684 26387_ACEOF
26388
cd9a469c 26389case $ac_config_files in *"
26390"*) set x $ac_config_files; shift; ac_config_files=$*;;
26391esac
a106dabe 26392
cd9a469c 26393case $ac_config_headers in *"
26394"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26395esac
82eaf560 26396
82eaf560 26397
cd9a469c 26398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26399# Files that config.status was made for.
26400config_files="$ac_config_files"
26401config_headers="$ac_config_headers"
26402config_commands="$ac_config_commands"
4ee9c684 26403
cd9a469c 26404_ACEOF
82eaf560 26405
cd9a469c 26406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4ee9c684 26407ac_cs_usage="\
cd9a469c 26408\`$as_me' instantiates files and other configuration actions
26409from templates according to the current configuration. Unless the files
26410and actions are specified as TAGs, all are instantiated by default.
4ee9c684 26411
cd9a469c 26412Usage: $0 [OPTION]... [TAG]...
4ee9c684 26413
26414 -h, --help print this help, then exit
cd9a469c 26415 -V, --version print version number and configuration settings, then exit
26416 -q, --quiet, --silent
26417 do not print progress messages
4ee9c684 26418 -d, --debug don't remove temporary files
26419 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 26420 --file=FILE[:TEMPLATE]
26421 instantiate the configuration file FILE
26422 --header=FILE[:TEMPLATE]
26423 instantiate the configuration header FILE
4ee9c684 26424
26425Configuration files:
26426$config_files
26427
26428Configuration headers:
26429$config_headers
26430
26431Configuration commands:
26432$config_commands
26433
cd9a469c 26434Report bugs to the package provider.
26435GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
26436General help using GNU software: <http://www.gnu.org/gethelp/>."
82eaf560 26437
cd9a469c 26438_ACEOF
26439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4ee9c684 26440ac_cs_version="\\
76c0a846 26441GNU Fortran Runtime Library config.status 0.3
cd9a469c 26442configured by $0, generated by GNU Autoconf 2.64,
26443 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4ee9c684 26444
cd9a469c 26445Copyright (C) 2009 Free Software Foundation, Inc.
4ee9c684 26446This config.status script is free software; the Free Software Foundation
26447gives unlimited permission to copy, distribute and modify it."
cd9a469c 26448
26449ac_pwd='$ac_pwd'
26450srcdir='$srcdir'
26451INSTALL='$INSTALL'
26452MKDIR_P='$MKDIR_P'
26453AWK='$AWK'
26454test -n "\$AWK" || AWK=awk
4ee9c684 26455_ACEOF
26456
cd9a469c 26457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26458# The default lists apply if the user does not specify any file.
4ee9c684 26459ac_need_defaults=:
26460while test $# != 0
26461do
26462 case $1 in
26463 --*=*)
cd9a469c 26464 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26465 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4ee9c684 26466 ac_shift=:
26467 ;;
cd9a469c 26468 *)
4ee9c684 26469 ac_option=$1
26470 ac_optarg=$2
26471 ac_shift=shift
26472 ;;
4ee9c684 26473 esac
26474
26475 case $ac_option in
26476 # Handling of the options.
4ee9c684 26477 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26478 ac_cs_recheck=: ;;
cd9a469c 26479 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26480 $as_echo "$ac_cs_version"; exit ;;
26481 --debug | --debu | --deb | --de | --d | -d )
4ee9c684 26482 debug=: ;;
26483 --file | --fil | --fi | --f )
26484 $ac_shift
cd9a469c 26485 case $ac_optarg in
26486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26487 esac
26488 as_fn_append CONFIG_FILES " '$ac_optarg'"
4ee9c684 26489 ac_need_defaults=false;;
26490 --header | --heade | --head | --hea )
26491 $ac_shift
cd9a469c 26492 case $ac_optarg in
26493 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26494 esac
26495 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4ee9c684 26496 ac_need_defaults=false;;
cd9a469c 26497 --he | --h)
26498 # Conflict between --help and --header
26499 as_fn_error "ambiguous option: \`$1'
26500Try \`$0 --help' for more information.";;
26501 --help | --hel | -h )
26502 $as_echo "$ac_cs_usage"; exit ;;
4ee9c684 26503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26504 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26505 ac_cs_silent=: ;;
26506
26507 # This is an error.
cd9a469c 26508 -*) as_fn_error "unrecognized option: \`$1'
26509Try \`$0 --help' for more information." ;;
4ee9c684 26510
cd9a469c 26511 *) as_fn_append ac_config_targets " $1"
26512 ac_need_defaults=false ;;
4ee9c684 26513
26514 esac
26515 shift
26516done
26517
26518ac_configure_extra_args=
26519
26520if $ac_cs_silent; then
26521 exec 6>/dev/null
26522 ac_configure_extra_args="$ac_configure_extra_args --silent"
26523fi
26524
26525_ACEOF
cd9a469c 26526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4ee9c684 26527if \$ac_cs_recheck; then
cd9a469c 26528 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26529 shift
26530 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26531 CONFIG_SHELL='$SHELL'
26532 export CONFIG_SHELL
26533 exec "\$@"
4ee9c684 26534fi
26535
542f9784 26536_ACEOF
cd9a469c 26537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26538exec 5>>config.log
26539{
26540 echo
26541 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26542## Running $as_me. ##
26543_ASBOX
26544 $as_echo "$ac_log"
26545} >&5
542f9784 26546
cd9a469c 26547_ACEOF
26548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
542f9784 26549#
cd9a469c 26550# INIT-COMMANDS
542f9784 26551#
26552
542f9784 26553srcdir="$srcdir"
26554host="$host"
26555target="$target"
26556with_multisubdir="$with_multisubdir"
26557with_multisrctop="$with_multisrctop"
26558with_target_subdir="$with_target_subdir"
26559ac_configure_args="${multilib_arg} ${ac_configure_args}"
26560multi_basedir="$multi_basedir"
26561CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
26562CC="$CC"
eaae6999 26563CXX="$CXX"
26564GFORTRAN="$GFORTRAN"
26565GCJ="$GCJ"
542f9784 26566AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26567
26568
26569# The HP-UX ksh and POSIX shell print the target directory to stdout
26570# if CDPATH is set.
26571(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26572
26573sed_quote_subst='$sed_quote_subst'
26574double_quote_subst='$double_quote_subst'
26575delay_variable_subst='$delay_variable_subst'
e6408286 26576macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26577macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26578enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26579enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26580pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26581enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26582SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26583ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26584host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26585host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26586host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26587build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26588build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26589build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26590SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26591Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26592GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26593EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26594FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26595LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26596NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26597LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26598max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26599ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26600exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26601lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26602lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26603lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26604reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26605reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26606OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26607deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26608file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26609AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26610AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26611STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26612RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26613old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26614old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26615old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26616lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26617CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26618CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26619compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26620GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26621lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26622lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26623lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26624lt_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"`'
26625objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26626MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26627lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26628lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26629lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26630lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26631lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26632need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26633DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26634NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26635LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26636OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26637OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26638libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26639shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26640extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26641archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26642enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26643export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26644whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26645compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26646old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26647old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26648archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26649archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26650module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26651module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26652with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26653allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26654no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26655hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26656hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26657hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26658hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26659hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26660hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26661hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26662hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26663inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26664link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26665fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
26666always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26667export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26668exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26669include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26670prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26671file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26672variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26673need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26674need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26675version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26676runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26677shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26678shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26679libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26680library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26681soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26682install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26683postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26684postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26685finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26686finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26687hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26688sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26689sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26690hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26691enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26692enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26693enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26694old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26695striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26696compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26697predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26698postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26699predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26700postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26701compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26702LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
26703reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
26704reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
26705old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
26706compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
26707GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
26708lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
26709lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
26710lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
26711lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
26712lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
26713archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
26714enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
26715export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26716whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26717compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
26718old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
26719old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
26720archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
26721archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
26722module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
26723module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
26724with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
26725allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
26726no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
26727hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26728hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
26729hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
26730hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
26731hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
26732hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
26733hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
26734hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
26735inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
26736link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
26737fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
26738always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
26739export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
26740exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
26741include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
26742prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
26743file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
26744hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
26745compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
26746predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
26747postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
26748predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
26749postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
26750compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
542f9784 26751
26752LTCC='$LTCC'
26753LTCFLAGS='$LTCFLAGS'
26754compiler='$compiler_DEFAULT'
26755
e6408286 26756# A function that is used when there is no print builtin or printf.
26757func_fallback_echo ()
26758{
26759 eval 'cat <<_LTECHO_EOF
26760\$1
26761_LTECHO_EOF'
26762}
26763
542f9784 26764# Quote evaled strings.
e6408286 26765for var in SHELL \
26766ECHO \
26767SED \
542f9784 26768GREP \
26769EGREP \
26770FGREP \
26771LD \
26772NM \
26773LN_S \
26774lt_SP2NL \
26775lt_NL2SP \
26776reload_flag \
00aafda4 26777OBJDUMP \
542f9784 26778deplibs_check_method \
26779file_magic_cmd \
26780AR \
26781AR_FLAGS \
26782STRIP \
26783RANLIB \
26784CC \
26785CFLAGS \
26786compiler \
26787lt_cv_sys_global_symbol_pipe \
26788lt_cv_sys_global_symbol_to_cdecl \
26789lt_cv_sys_global_symbol_to_c_name_address \
00aafda4 26790lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
542f9784 26791lt_prog_compiler_no_builtin_flag \
26792lt_prog_compiler_wl \
26793lt_prog_compiler_pic \
26794lt_prog_compiler_static \
26795lt_cv_prog_compiler_c_o \
26796need_locks \
00aafda4 26797DSYMUTIL \
26798NMEDIT \
26799LIPO \
26800OTOOL \
26801OTOOL64 \
542f9784 26802shrext_cmds \
26803export_dynamic_flag_spec \
26804whole_archive_flag_spec \
26805compiler_needs_object \
26806with_gnu_ld \
26807allow_undefined_flag \
26808no_undefined_flag \
26809hardcode_libdir_flag_spec \
26810hardcode_libdir_flag_spec_ld \
26811hardcode_libdir_separator \
26812fix_srcfile_path \
26813exclude_expsyms \
26814include_expsyms \
26815file_list_spec \
26816variables_saved_for_relink \
26817libname_spec \
26818library_names_spec \
26819soname_spec \
e6408286 26820install_override_mode \
542f9784 26821finish_eval \
26822old_striplib \
26823striplib \
00aafda4 26824compiler_lib_search_dirs \
542f9784 26825predep_objects \
26826postdep_objects \
26827predeps \
26828postdeps \
26829compiler_lib_search_path \
26830LD_FC \
e6408286 26831reload_flag_FC \
542f9784 26832compiler_FC \
26833lt_prog_compiler_no_builtin_flag_FC \
26834lt_prog_compiler_wl_FC \
26835lt_prog_compiler_pic_FC \
26836lt_prog_compiler_static_FC \
26837lt_cv_prog_compiler_c_o_FC \
26838export_dynamic_flag_spec_FC \
26839whole_archive_flag_spec_FC \
26840compiler_needs_object_FC \
26841with_gnu_ld_FC \
26842allow_undefined_flag_FC \
26843no_undefined_flag_FC \
26844hardcode_libdir_flag_spec_FC \
26845hardcode_libdir_flag_spec_ld_FC \
26846hardcode_libdir_separator_FC \
26847fix_srcfile_path_FC \
26848exclude_expsyms_FC \
26849include_expsyms_FC \
26850file_list_spec_FC \
00aafda4 26851compiler_lib_search_dirs_FC \
542f9784 26852predep_objects_FC \
26853postdep_objects_FC \
26854predeps_FC \
26855postdeps_FC \
26856compiler_lib_search_path_FC; do
e6408286 26857 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 26858 *[\\\\\\\`\\"\\\$]*)
e6408286 26859 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
542f9784 26860 ;;
26861 *)
26862 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26863 ;;
26864 esac
26865done
26866
26867# Double-quote double-evaled strings.
26868for var in reload_cmds \
26869old_postinstall_cmds \
26870old_postuninstall_cmds \
26871old_archive_cmds \
26872extract_expsyms_cmds \
26873old_archive_from_new_cmds \
26874old_archive_from_expsyms_cmds \
26875archive_cmds \
26876archive_expsym_cmds \
26877module_cmds \
26878module_expsym_cmds \
26879export_symbols_cmds \
26880prelink_cmds \
26881postinstall_cmds \
26882postuninstall_cmds \
26883finish_cmds \
26884sys_lib_search_path_spec \
26885sys_lib_dlsearch_path_spec \
e6408286 26886reload_cmds_FC \
542f9784 26887old_archive_cmds_FC \
26888old_archive_from_new_cmds_FC \
26889old_archive_from_expsyms_cmds_FC \
26890archive_cmds_FC \
26891archive_expsym_cmds_FC \
26892module_cmds_FC \
26893module_expsym_cmds_FC \
26894export_symbols_cmds_FC \
26895prelink_cmds_FC; do
e6408286 26896 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 26897 *[\\\\\\\`\\"\\\$]*)
e6408286 26898 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
542f9784 26899 ;;
26900 *)
26901 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26902 ;;
26903 esac
26904done
26905
542f9784 26906ac_aux_dir='$ac_aux_dir'
26907xsi_shell='$xsi_shell'
26908lt_shell_append='$lt_shell_append'
26909
26910# See if we are running on zsh, and set the options which allow our
26911# commands through without removal of \ escapes INIT.
26912if test -n "\${ZSH_VERSION+set}" ; then
26913 setopt NO_GLOB_SUBST
26914fi
26915
26916
26917 PACKAGE='$PACKAGE'
26918 VERSION='$VERSION'
26919 TIMESTAMP='$TIMESTAMP'
26920 RM='$RM'
26921 ofile='$ofile'
26922
26923
4ee9c684 26924
4ee9c684 26925
a106dabe 26926
4ee9c684 26927
2069752c 26928GCC="$GCC"
26929CC="$CC"
26930acx_cv_header_stdint="$acx_cv_header_stdint"
26931acx_cv_type_int8_t="$acx_cv_type_int8_t"
26932acx_cv_type_int16_t="$acx_cv_type_int16_t"
26933acx_cv_type_int32_t="$acx_cv_type_int32_t"
26934acx_cv_type_int64_t="$acx_cv_type_int64_t"
26935acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
26936ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
26937ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
26938ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
26939ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
26940ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
56c15991 26941ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
26942ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
2069752c 26943ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
56c15991 26944
26945
4ee9c684 26946_ACEOF
26947
cd9a469c 26948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ff4425cf 26949
cd9a469c 26950# Handling of arguments.
4ee9c684 26951for ac_config_target in $ac_config_targets
26952do
cd9a469c 26953 case $ac_config_target in
26954 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26955 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26956 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26957 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26958 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
26959 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
87969c8c 26960 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
cd9a469c 26961
26962 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4ee9c684 26963 esac
26964done
26965
cd9a469c 26966
4ee9c684 26967# If the user did not use the arguments to specify the items to instantiate,
26968# then the envvar interface is used. Set only those that are not.
26969# We use the long form for the default assignment because of an extremely
26970# bizarre bug on SunOS 4.1.3.
26971if $ac_need_defaults; then
26972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26973 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26974 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26975fi
26976
26977# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 26978# simply because there is no reason against having it here, and in addition,
4ee9c684 26979# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 26980# Hook for its removal unless debugging.
26981# Note that there is a small window in which the directory will not be cleaned:
26982# after its creation but before its name has been assigned to `$tmp'.
4ee9c684 26983$debug ||
26984{
cd9a469c 26985 tmp=
26986 trap 'exit_status=$?
26987 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26988' 0
26989 trap 'as_fn_exit 1' 1 2 13 15
4ee9c684 26990}
4ee9c684 26991# Create a (secure) tmp directory for tmp files.
26992
26993{
cd9a469c 26994 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4ee9c684 26995 test -n "$tmp" && test -d "$tmp"
26996} ||
26997{
cd9a469c 26998 tmp=./conf$$-$RANDOM
26999 (umask 077 && mkdir "$tmp")
27000} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27001
27002# Set up the scripts for CONFIG_FILES section.
27003# No need to generate them if there are no CONFIG_FILES.
27004# This happens for instance with `./config.status config.h'.
27005if test -n "$CONFIG_FILES"; then
27006
27007
27008ac_cr=`echo X | tr X '\015'`
27009# On cygwin, bash can eat \r inside `` if the user requested igncr.
27010# But we know of no other shell where ac_cr would be empty at this
27011# point, so we can use a bashism as a fallback.
27012if test "x$ac_cr" = x; then
27013 eval ac_cr=\$\'\\r\'
27014fi
27015ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27016if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27017 ac_cs_awk_cr='\r'
27018else
27019 ac_cs_awk_cr=$ac_cr
27020fi
27021
27022echo 'BEGIN {' >"$tmp/subs1.awk" &&
27023_ACEOF
27024
27025
4ee9c684 27026{
cd9a469c 27027 echo "cat >conf$$subs.awk <<_ACEOF" &&
27028 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27029 echo "_ACEOF"
27030} >conf$$subs.sh ||
27031 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27032ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27033ac_delim='%!_!# '
27034for ac_last_try in false false false false false :; do
27035 . ./conf$$subs.sh ||
27036 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27037
27038 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27039 if test $ac_delim_n = $ac_delim_num; then
27040 break
27041 elif $ac_last_try; then
27042 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27043 else
27044 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27045 fi
27046done
27047rm -f conf$$subs.sh
27048
27049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27050cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27051_ACEOF
27052sed -n '
27053h
27054s/^/S["/; s/!.*/"]=/
27055p
27056g
27057s/^[^!]*!//
27058:repl
27059t repl
27060s/'"$ac_delim"'$//
27061t delim
27062:nl
27063h
27064s/\(.\{148\}\).*/\1/
27065t more1
27066s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27067p
27068n
27069b repl
27070:more1
27071s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27072p
27073g
27074s/.\{148\}//
27075t nl
27076:delim
27077h
27078s/\(.\{148\}\).*/\1/
27079t more2
27080s/["\\]/\\&/g; s/^/"/; s/$/"/
27081p
27082b
27083:more2
27084s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27085p
27086g
27087s/.\{148\}//
27088t delim
27089' <conf$$subs.awk | sed '
27090/^[^""]/{
27091 N
27092 s/\n//
27093}
27094' >>$CONFIG_STATUS || ac_write_fail=1
27095rm -f conf$$subs.awk
27096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27097_ACAWK
27098cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27099 for (key in S) S_is_set[key] = 1
27100 FS = "\a"
27101
27102}
27103{
27104 line = $ 0
27105 nfields = split(line, field, "@")
27106 substed = 0
27107 len = length(field[1])
27108 for (i = 2; i < nfields; i++) {
27109 key = field[i]
27110 keylen = length(key)
27111 if (S_is_set[key]) {
27112 value = S[key]
27113 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27114 len += length(value) + length(field[++i])
27115 substed = 1
27116 } else
27117 len += 1 + keylen
27118 }
27119
27120 print line
4ee9c684 27121}
27122
cd9a469c 27123_ACAWK
27124_ACEOF
27125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27126if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27127 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27128else
27129 cat
27130fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27131 || as_fn_error "could not setup config files machinery" "$LINENO" 5
82eaf560 27132_ACEOF
27133
cd9a469c 27134# VPATH may cause trouble with some makes, so we remove $(srcdir),
27135# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27136# trailing colons and then remove the whole line if VPATH becomes empty
27137# (actually we leave an empty line to preserve line numbers).
27138if test "x$srcdir" = x.; then
27139 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27140s/:*\$(srcdir):*/:/
27141s/:*\${srcdir}:*/:/
27142s/:*@srcdir@:*/:/
27143s/^\([^=]*=[ ]*\):*/\1/
27144s/:*$//
27145s/^[^=]*=[ ]*$//
27146}'
27147fi
82eaf560 27148
cd9a469c 27149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27150fi # test -n "$CONFIG_FILES"
4ee9c684 27151
cd9a469c 27152# Set up the scripts for CONFIG_HEADERS section.
27153# No need to generate them if there are no CONFIG_HEADERS.
27154# This happens for instance with `./config.status Makefile'.
27155if test -n "$CONFIG_HEADERS"; then
27156cat >"$tmp/defines.awk" <<\_ACAWK ||
27157BEGIN {
27158_ACEOF
27159
27160# Transform confdefs.h into an awk script `defines.awk', embedded as
27161# here-document in config.status, that substitutes the proper values into
27162# config.h.in to produce config.h.
27163
27164# Create a delimiter string that does not exist in confdefs.h, to ease
27165# handling of long lines.
27166ac_delim='%!_!# '
27167for ac_last_try in false false :; do
27168 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27169 if test -z "$ac_t"; then
27170 break
27171 elif $ac_last_try; then
27172 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27173 else
27174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
ff4425cf 27175 fi
cd9a469c 27176done
ce1a737c 27177
cd9a469c 27178# For the awk script, D is an array of macro values keyed by name,
27179# likewise P contains macro parameters if any. Preserve backslash
27180# newline sequences.
27181
27182ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27183sed -n '
27184s/.\{148\}/&'"$ac_delim"'/g
27185t rset
27186:rset
27187s/^[ ]*#[ ]*define[ ][ ]*/ /
27188t def
27189d
27190:def
27191s/\\$//
27192t bsnl
27193s/["\\]/\\&/g
27194s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27195D["\1"]=" \3"/p
27196s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27197d
27198:bsnl
27199s/["\\]/\\&/g
27200s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27201D["\1"]=" \3\\\\\\n"\\/p
27202t cont
27203s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27204t cont
27205d
27206:cont
27207n
27208s/.\{148\}/&'"$ac_delim"'/g
27209t clear
27210:clear
27211s/\\$//
27212t bsnlc
27213s/["\\]/\\&/g; s/^/"/; s/$/"/p
27214d
27215:bsnlc
27216s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27217b cont
27218' <confdefs.h | sed '
27219s/'"$ac_delim"'/"\\\
27220"/g' >>$CONFIG_STATUS || ac_write_fail=1
27221
27222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27223 for (key in D) D_is_set[key] = 1
27224 FS = "\a"
27225}
27226/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27227 line = \$ 0
27228 split(line, arg, " ")
27229 if (arg[1] == "#") {
27230 defundef = arg[2]
27231 mac1 = arg[3]
27232 } else {
27233 defundef = substr(arg[1], 2)
27234 mac1 = arg[2]
27235 }
27236 split(mac1, mac2, "(") #)
27237 macro = mac2[1]
27238 prefix = substr(line, 1, index(line, defundef) - 1)
27239 if (D_is_set[macro]) {
27240 # Preserve the white space surrounding the "#".
27241 print prefix "define", macro P[macro] D[macro]
27242 next
27243 } else {
27244 # Replace #undef with comments. This is necessary, for example,
27245 # in the case of _POSIX_SOURCE, which is predefined and required
27246 # on some systems where configure will not decide to define it.
27247 if (defundef == "undef") {
27248 print "/*", prefix defundef, macro, "*/"
27249 next
27250 }
27251 }
27252}
27253{ print }
27254_ACAWK
4ee9c684 27255_ACEOF
cd9a469c 27256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27257 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27258fi # test -n "$CONFIG_HEADERS"
27259
27260
27261eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27262shift
27263for ac_tag
27264do
27265 case $ac_tag in
27266 :[FHLC]) ac_mode=$ac_tag; continue;;
27267 esac
27268 case $ac_mode$ac_tag in
27269 :[FHL]*:*);;
27270 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27271 :[FH]-) ac_tag=-:-;;
27272 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27273 esac
27274 ac_save_IFS=$IFS
27275 IFS=:
27276 set x $ac_tag
27277 IFS=$ac_save_IFS
27278 shift
27279 ac_file=$1
27280 shift
27281
27282 case $ac_mode in
27283 :L) ac_source=$1;;
27284 :[FH])
27285 ac_file_inputs=
27286 for ac_f
27287 do
27288 case $ac_f in
27289 -) ac_f="$tmp/stdin";;
27290 *) # Look for the file first in the build tree, then in the source tree
27291 # (if the path is not absolute). The absolute path cannot be DOS-style,
27292 # because $ac_f cannot contain `:'.
27293 test -f "$ac_f" ||
27294 case $ac_f in
27295 [\\/$]*) false;;
27296 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27297 esac ||
27298 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27299 esac
27300 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27301 as_fn_append ac_file_inputs " '$ac_f'"
27302 done
27303
27304 # Let's still pretend it is `configure' which instantiates (i.e., don't
27305 # use $as_me), people would be surprised to read:
27306 # /* config.h. Generated by config.status. */
27307 configure_input='Generated from '`
27308 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27309 `' by configure.'
27310 if test x"$ac_file" != x-; then
27311 configure_input="$ac_file. $configure_input"
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27313$as_echo "$as_me: creating $ac_file" >&6;}
27314 fi
27315 # Neutralize special characters interpreted by sed in replacement strings.
27316 case $configure_input in #(
27317 *\&* | *\|* | *\\* )
27318 ac_sed_conf_input=`$as_echo "$configure_input" |
27319 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27320 *) ac_sed_conf_input=$configure_input;;
27321 esac
27322
27323 case $ac_tag in
27324 *:-:* | *:-) cat >"$tmp/stdin" \
27325 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27326 esac
27327 ;;
4ee9c684 27328 esac
27329
cd9a469c 27330 ac_dir=`$as_dirname -- "$ac_file" ||
4ee9c684 27331$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27332 X"$ac_file" : 'X\(//\)[^/]' \| \
27333 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 27334 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27335$as_echo X"$ac_file" |
27336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27337 s//\1/
27338 q
27339 }
27340 /^X\(\/\/\)[^/].*/{
27341 s//\1/
27342 q
27343 }
27344 /^X\(\/\/\)$/{
27345 s//\1/
27346 q
27347 }
27348 /^X\(\/\).*/{
27349 s//\1/
27350 q
27351 }
27352 s/.*/./; q'`
27353 as_dir="$ac_dir"; as_fn_mkdir_p
4ee9c684 27354 ac_builddir=.
27355
cd9a469c 27356case "$ac_dir" in
27357.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27358*)
27359 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27360 # A ".." for each directory in $ac_dir_suffix.
27361 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27362 case $ac_top_builddir_sub in
27363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27365 esac ;;
27366esac
27367ac_abs_top_builddir=$ac_pwd
27368ac_abs_builddir=$ac_pwd$ac_dir_suffix
27369# for backward compatibility:
27370ac_top_builddir=$ac_top_build_prefix
4ee9c684 27371
27372case $srcdir in
cd9a469c 27373 .) # We are building in place.
4ee9c684 27374 ac_srcdir=.
cd9a469c 27375 ac_top_srcdir=$ac_top_builddir_sub
27376 ac_abs_top_srcdir=$ac_pwd ;;
27377 [\\/]* | ?:[\\/]* ) # Absolute name.
4ee9c684 27378 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 27379 ac_top_srcdir=$srcdir
27380 ac_abs_top_srcdir=$srcdir ;;
27381 *) # Relative name.
27382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27383 ac_top_srcdir=$ac_top_build_prefix$srcdir
27384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4ee9c684 27385esac
cd9a469c 27386ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4ee9c684 27387
4ee9c684 27388
cd9a469c 27389 case $ac_mode in
27390 :F)
27391 #
27392 # CONFIG_FILE
27393 #
4ee9c684 27394
27395 case $INSTALL in
27396 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 27397 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27398 esac
27399 ac_MKDIR_P=$MKDIR_P
27400 case $MKDIR_P in
27401 [\\/$]* | ?:[\\/]* ) ;;
27402 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
4ee9c684 27403 esac
cd9a469c 27404_ACEOF
4ee9c684 27405
cd9a469c 27406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27407# If the template does not know about datarootdir, expand it.
27408# FIXME: This hack should be removed a few years after 2.60.
27409ac_datarootdir_hack=; ac_datarootdir_seen=
27410ac_sed_dataroot='
27411/datarootdir/ {
27412 p
27413 q
27414}
27415/@datadir@/p
27416/@docdir@/p
27417/@infodir@/p
27418/@localedir@/p
27419/@mandir@/p'
27420case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27421*datarootdir*) ac_datarootdir_seen=yes;;
27422*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27424$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27425_ACEOF
27426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27427 ac_datarootdir_hack='
27428 s&@datadir@&$datadir&g
27429 s&@docdir@&$docdir&g
27430 s&@infodir@&$infodir&g
27431 s&@localedir@&$localedir&g
27432 s&@mandir@&$mandir&g
27433 s&\\\${datarootdir}&$datarootdir&g' ;;
27434esac
a106dabe 27435_ACEOF
cd9a469c 27436
27437# Neutralize VPATH when `$srcdir' = `.'.
27438# Shell code in configure.ac might set extrasub.
27439# FIXME: do we really want to maintain this feature?
27440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27441ac_sed_extra="$ac_vpsub
4ee9c684 27442$extrasub
27443_ACEOF
cd9a469c 27444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4ee9c684 27445:t
27446/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 27447s|@configure_input@|$ac_sed_conf_input|;t t
27448s&@top_builddir@&$ac_top_builddir_sub&;t t
27449s&@top_build_prefix@&$ac_top_build_prefix&;t t
27450s&@srcdir@&$ac_srcdir&;t t
27451s&@abs_srcdir@&$ac_abs_srcdir&;t t
27452s&@top_srcdir@&$ac_top_srcdir&;t t
27453s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27454s&@builddir@&$ac_builddir&;t t
27455s&@abs_builddir@&$ac_abs_builddir&;t t
27456s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27457s&@INSTALL@&$ac_INSTALL&;t t
27458s&@MKDIR_P@&$ac_MKDIR_P&;t t
27459$ac_datarootdir_hack
27460"
27461eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27462 || as_fn_error "could not create $ac_file" "$LINENO" 5
27463
27464test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27465 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27466 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27468which seems to be undefined. Please make sure it is defined." >&5
27469$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27470which seems to be undefined. Please make sure it is defined." >&2;}
27471
27472 rm -f "$tmp/stdin"
4ee9c684 27473 case $ac_file in
cd9a469c 27474 -) cat "$tmp/out" && rm -f "$tmp/out";;
27475 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27476 esac \
27477 || as_fn_error "could not create $ac_file" "$LINENO" 5
27478 ;;
27479 :H)
27480 #
27481 # CONFIG_HEADER
27482 #
4ee9c684 27483 if test x"$ac_file" != x-; then
cd9a469c 27484 {
27485 $as_echo "/* $configure_input */" \
27486 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27487 } >"$tmp/config.h" \
27488 || as_fn_error "could not create $ac_file" "$LINENO" 5
27489 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27491$as_echo "$as_me: $ac_file is unchanged" >&6;}
4ee9c684 27492 else
cd9a469c 27493 rm -f "$ac_file"
27494 mv "$tmp/config.h" "$ac_file" \
27495 || as_fn_error "could not create $ac_file" "$LINENO" 5
4ee9c684 27496 fi
27497 else
cd9a469c 27498 $as_echo "/* $configure_input */" \
27499 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27500 || as_fn_error "could not create -" "$LINENO" 5
4ee9c684 27501 fi
cd9a469c 27502# Compute "$ac_file"'s index in $config_headers.
27503_am_arg="$ac_file"
4ee9c684 27504_am_stamp_count=1
27505for _am_header in $config_headers :; do
27506 case $_am_header in
cd9a469c 27507 $_am_arg | $_am_arg:* )
4ee9c684 27508 break ;;
27509 * )
27510 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27511 esac
27512done
cd9a469c 27513echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27514$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27515 X"$_am_arg" : 'X\(//\)[^/]' \| \
27516 X"$_am_arg" : 'X\(//\)$' \| \
27517 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27518$as_echo X"$_am_arg" |
27519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27520 s//\1/
27521 q
27522 }
27523 /^X\(\/\/\)[^/].*/{
27524 s//\1/
27525 q
27526 }
27527 /^X\(\/\/\)$/{
27528 s//\1/
27529 q
27530 }
27531 /^X\(\/\).*/{
27532 s//\1/
27533 q
27534 }
27535 s/.*/./; q'`/stamp-h$_am_stamp_count
27536 ;;
82eaf560 27537
cd9a469c 27538 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27539$as_echo "$as_me: executing $ac_file commands" >&6;}
27540 ;;
27541 esac
4ee9c684 27542
27543
cd9a469c 27544 case $ac_file$ac_mode in
27545 "default-1":C)
90973b19 27546# Only add multilib support code if we just rebuilt the top-level
27547# Makefile.
27548case " $CONFIG_FILES " in
27549 *" Makefile "*)
27550 ac_file=Makefile . ${multi_basedir}/config-ml.in
27551 ;;
27552esac ;;
cd9a469c 27553 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27554 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27555 # are listed without --file. Let's play safe and only enable the eval
27556 # if we detect the quoting.
27557 case $CONFIG_FILES in
27558 *\'*) eval set x "$CONFIG_FILES" ;;
27559 *) set x $CONFIG_FILES ;;
27560 esac
27561 shift
27562 for mf
27563 do
27564 # Strip MF so we end up with the name of the file.
27565 mf=`echo "$mf" | sed -e 's/:.*$//'`
27566 # Check whether this is an Automake generated Makefile or not.
27567 # We used to match only the files named `Makefile.in', but
27568 # some people rename them; so instead we look at the file content.
27569 # Grep'ing the first line is not enough: some people post-process
27570 # each Makefile.in and add a new line on top of each file to say so.
27571 # Grep'ing the whole file is not good either: AIX grep has a line
27572 # limit of 2048, but all sed's we know have understand at least 4000.
27573 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27574 dirpart=`$as_dirname -- "$mf" ||
2fd61f51 27575$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27576 X"$mf" : 'X\(//\)[^/]' \| \
27577 X"$mf" : 'X\(//\)$' \| \
cd9a469c 27578 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27579$as_echo X"$mf" |
27580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27581 s//\1/
27582 q
27583 }
27584 /^X\(\/\/\)[^/].*/{
27585 s//\1/
27586 q
27587 }
27588 /^X\(\/\/\)$/{
27589 s//\1/
27590 q
27591 }
27592 /^X\(\/\).*/{
27593 s//\1/
27594 q
27595 }
27596 s/.*/./; q'`
27597 else
27598 continue
27599 fi
27600 # Extract the definition of DEPDIR, am__include, and am__quote
27601 # from the Makefile without running `make'.
27602 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27603 test -z "$DEPDIR" && continue
27604 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27605 test -z "am__include" && continue
27606 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27607 # When using ansi2knr, U may be empty or an underscore; expand it
27608 U=`sed -n 's/^U = //p' < "$mf"`
27609 # Find all dependency output files, they are included files with
27610 # $(DEPDIR) in their names. We invoke sed twice because it is the
27611 # simplest approach to changing $(DEPDIR) to its actual value in the
27612 # expansion.
27613 for file in `sed -n "
27614 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27615 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27616 # Make sure the directory exists.
27617 test -f "$dirpart/$file" && continue
27618 fdir=`$as_dirname -- "$file" ||
2fd61f51 27619$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27620 X"$file" : 'X\(//\)[^/]' \| \
27621 X"$file" : 'X\(//\)$' \| \
cd9a469c 27622 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27623$as_echo X"$file" |
27624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27625 s//\1/
27626 q
27627 }
27628 /^X\(\/\/\)[^/].*/{
27629 s//\1/
27630 q
27631 }
27632 /^X\(\/\/\)$/{
27633 s//\1/
27634 q
27635 }
27636 /^X\(\/\).*/{
27637 s//\1/
27638 q
27639 }
27640 s/.*/./; q'`
27641 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27642 # echo "creating $dirpart/$file"
27643 echo '# dummy' > "$dirpart/$file"
2fd61f51 27644 done
2fd61f51 27645 done
cd9a469c 27646}
542f9784 27647 ;;
cd9a469c 27648 "libtool":C)
542f9784 27649
27650 # See if we are running on zsh, and set the options which allow our
27651 # commands through without removal of \ escapes.
27652 if test -n "${ZSH_VERSION+set}" ; then
27653 setopt NO_GLOB_SUBST
27654 fi
27655
27656 cfgfile="${ofile}T"
27657 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27658 $RM "$cfgfile"
27659
27660 cat <<_LT_EOF >> "$cfgfile"
27661#! $SHELL
27662
27663# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
00aafda4 27664# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
542f9784 27665# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27666# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27667#
00aafda4 27668# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
e6408286 27669# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
00aafda4 27670# Written by Gordon Matzigkeit, 1996
542f9784 27671#
00aafda4 27672# This file is part of GNU Libtool.
542f9784 27673#
00aafda4 27674# GNU Libtool is free software; you can redistribute it and/or
27675# modify it under the terms of the GNU General Public License as
27676# published by the Free Software Foundation; either version 2 of
27677# the License, or (at your option) any later version.
542f9784 27678#
00aafda4 27679# As a special exception to the GNU General Public License,
27680# if you distribute this file as part of a program or library that
27681# is built using GNU Libtool, you may include this file under the
27682# same distribution terms that you use for the rest of that program.
542f9784 27683#
00aafda4 27684# GNU Libtool is distributed in the hope that it will be useful,
27685# but WITHOUT ANY WARRANTY; without even the implied warranty of
27686# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27687# GNU General Public License for more details.
542f9784 27688#
00aafda4 27689# You should have received a copy of the GNU General Public License
27690# along with GNU Libtool; see the file COPYING. If not, a copy
27691# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27692# obtained by writing to the Free Software Foundation, Inc.,
27693# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
542f9784 27694
27695
27696# The names of the tagged configurations supported by this script.
27697available_tags="FC "
27698
27699# ### BEGIN LIBTOOL CONFIG
27700
27701# Which release of libtool.m4 was used?
27702macro_version=$macro_version
27703macro_revision=$macro_revision
27704
27705# Whether or not to build shared libraries.
27706build_libtool_libs=$enable_shared
27707
27708# Whether or not to build static libraries.
27709build_old_libs=$enable_static
27710
27711# What type of objects to build.
27712pic_mode=$pic_mode
27713
27714# Whether or not to optimize for fast installation.
27715fast_install=$enable_fast_install
27716
e6408286 27717# Shell to use when invoking shell scripts.
27718SHELL=$lt_SHELL
27719
27720# An echo program that protects backslashes.
27721ECHO=$lt_ECHO
27722
542f9784 27723# The host system.
27724host_alias=$host_alias
27725host=$host
27726host_os=$host_os
27727
27728# The build system.
27729build_alias=$build_alias
27730build=$build
27731build_os=$build_os
27732
27733# A sed program that does not truncate output.
27734SED=$lt_SED
27735
27736# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27737Xsed="\$SED -e 1s/^X//"
27738
27739# A grep program that handles long lines.
27740GREP=$lt_GREP
27741
27742# An ERE matcher.
27743EGREP=$lt_EGREP
27744
27745# A literal string matcher.
27746FGREP=$lt_FGREP
27747
27748# A BSD- or MS-compatible name lister.
27749NM=$lt_NM
27750
27751# Whether we need soft or hard links.
27752LN_S=$lt_LN_S
27753
27754# What is the maximum length of a command?
27755max_cmd_len=$max_cmd_len
27756
27757# Object file suffix (normally "o").
27758objext=$ac_objext
27759
27760# Executable file suffix (normally "").
27761exeext=$exeext
27762
27763# whether the shell understands "unset".
27764lt_unset=$lt_unset
27765
27766# turn spaces into newlines.
27767SP2NL=$lt_lt_SP2NL
27768
27769# turn newlines into spaces.
27770NL2SP=$lt_lt_NL2SP
27771
00aafda4 27772# An object symbol dumper.
27773OBJDUMP=$lt_OBJDUMP
27774
542f9784 27775# Method to check whether dependent libraries are shared objects.
27776deplibs_check_method=$lt_deplibs_check_method
27777
27778# Command to use when deplibs_check_method == "file_magic".
27779file_magic_cmd=$lt_file_magic_cmd
27780
27781# The archiver.
27782AR=$lt_AR
27783AR_FLAGS=$lt_AR_FLAGS
27784
27785# A symbol stripping program.
27786STRIP=$lt_STRIP
27787
27788# Commands used to install an old-style archive.
27789RANLIB=$lt_RANLIB
27790old_postinstall_cmds=$lt_old_postinstall_cmds
27791old_postuninstall_cmds=$lt_old_postuninstall_cmds
27792
e6408286 27793# Whether to use a lock for old archive extraction.
27794lock_old_archive_extraction=$lock_old_archive_extraction
27795
542f9784 27796# A C compiler.
27797LTCC=$lt_CC
27798
27799# LTCC compiler flags.
27800LTCFLAGS=$lt_CFLAGS
27801
27802# Take the output of nm and produce a listing of raw symbols and C names.
27803global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27804
27805# Transform the output of nm in a proper C declaration.
27806global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27807
27808# Transform the output of nm in a C name address pair.
27809global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27810
00aafda4 27811# Transform the output of nm in a C name address pair when lib prefix is needed.
27812global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27813
542f9784 27814# The name of the directory that contains temporary libtool files.
27815objdir=$objdir
27816
542f9784 27817# Used to examine libraries when file_magic_cmd begins with "file".
27818MAGIC_CMD=$MAGIC_CMD
27819
27820# Must we lock files when doing compilation?
27821need_locks=$lt_need_locks
27822
00aafda4 27823# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27824DSYMUTIL=$lt_DSYMUTIL
27825
27826# Tool to change global to local symbols on Mac OS X.
27827NMEDIT=$lt_NMEDIT
27828
27829# Tool to manipulate fat objects and archives on Mac OS X.
27830LIPO=$lt_LIPO
27831
27832# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27833OTOOL=$lt_OTOOL
27834
27835# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27836OTOOL64=$lt_OTOOL64
27837
542f9784 27838# Old archive suffix (normally "a").
27839libext=$libext
27840
27841# Shared library suffix (normally ".so").
27842shrext_cmds=$lt_shrext_cmds
27843
27844# The commands to extract the exported symbol list from a shared archive.
27845extract_expsyms_cmds=$lt_extract_expsyms_cmds
27846
27847# Variables whose values should be saved in libtool wrapper scripts and
27848# restored at link time.
27849variables_saved_for_relink=$lt_variables_saved_for_relink
27850
27851# Do we need the "lib" prefix for modules?
27852need_lib_prefix=$need_lib_prefix
27853
27854# Do we need a version for libraries?
27855need_version=$need_version
27856
27857# Library versioning type.
27858version_type=$version_type
27859
27860# Shared library runtime path variable.
27861runpath_var=$runpath_var
27862
27863# Shared library path variable.
27864shlibpath_var=$shlibpath_var
27865
27866# Is shlibpath searched before the hard-coded library search path?
27867shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27868
27869# Format of library name prefix.
27870libname_spec=$lt_libname_spec
27871
27872# List of archive names. First name is the real one, the rest are links.
27873# The last name is the one that the linker finds with -lNAME
27874library_names_spec=$lt_library_names_spec
27875
27876# The coded name of the library, if different from the real name.
27877soname_spec=$lt_soname_spec
27878
e6408286 27879# Permission mode override for installation of shared libraries.
27880install_override_mode=$lt_install_override_mode
27881
542f9784 27882# Command to use after installation of a shared archive.
27883postinstall_cmds=$lt_postinstall_cmds
27884
27885# Command to use after uninstallation of a shared archive.
27886postuninstall_cmds=$lt_postuninstall_cmds
27887
27888# Commands used to finish a libtool library installation in a directory.
27889finish_cmds=$lt_finish_cmds
27890
27891# As "finish_cmds", except a single script fragment to be evaled but
27892# not shown.
27893finish_eval=$lt_finish_eval
27894
27895# Whether we should hardcode library paths into libraries.
27896hardcode_into_libs=$hardcode_into_libs
27897
27898# Compile-time system search path for libraries.
27899sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27900
27901# Run-time system search path for libraries.
27902sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27903
27904# Whether dlopen is supported.
27905dlopen_support=$enable_dlopen
27906
27907# Whether dlopen of programs is supported.
27908dlopen_self=$enable_dlopen_self
27909
27910# Whether dlopen of statically linked programs is supported.
27911dlopen_self_static=$enable_dlopen_self_static
27912
27913# Commands to strip libraries.
27914old_striplib=$lt_old_striplib
27915striplib=$lt_striplib
27916
27917
27918# The linker used to build libraries.
27919LD=$lt_LD
27920
e6408286 27921# How to create reloadable object files.
27922reload_flag=$lt_reload_flag
27923reload_cmds=$lt_reload_cmds
27924
542f9784 27925# Commands used to build an old-style archive.
27926old_archive_cmds=$lt_old_archive_cmds
27927
27928# A language specific compiler.
27929CC=$lt_compiler
27930
27931# Is the compiler the GNU compiler?
27932with_gcc=$GCC
27933
27934# Compiler flag to turn off builtin functions.
27935no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27936
27937# How to pass a linker flag through the compiler.
27938wl=$lt_lt_prog_compiler_wl
27939
27940# Additional compiler flags for building library objects.
27941pic_flag=$lt_lt_prog_compiler_pic
27942
27943# Compiler flag to prevent dynamic linking.
27944link_static_flag=$lt_lt_prog_compiler_static
27945
27946# Does compiler simultaneously support -c and -o options?
27947compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27948
27949# Whether or not to add -lc for building shared libraries.
27950build_libtool_need_lc=$archive_cmds_need_lc
27951
27952# Whether or not to disallow shared libs when runtime libs are static.
27953allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27954
27955# Compiler flag to allow reflexive dlopens.
27956export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27957
27958# Compiler flag to generate shared objects directly from archives.
27959whole_archive_flag_spec=$lt_whole_archive_flag_spec
27960
27961# Whether the compiler copes with passing no objects directly.
27962compiler_needs_object=$lt_compiler_needs_object
27963
27964# Create an old-style archive from a shared archive.
27965old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27966
27967# Create a temporary old-style archive to link instead of a shared archive.
27968old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27969
27970# Commands used to build a shared archive.
27971archive_cmds=$lt_archive_cmds
27972archive_expsym_cmds=$lt_archive_expsym_cmds
27973
27974# Commands used to build a loadable module if different from building
27975# a shared archive.
27976module_cmds=$lt_module_cmds
27977module_expsym_cmds=$lt_module_expsym_cmds
27978
27979# Whether we are building with GNU ld or not.
27980with_gnu_ld=$lt_with_gnu_ld
27981
27982# Flag that allows shared libraries with undefined symbols to be built.
27983allow_undefined_flag=$lt_allow_undefined_flag
27984
27985# Flag that enforces no undefined symbols.
27986no_undefined_flag=$lt_no_undefined_flag
27987
27988# Flag to hardcode \$libdir into a binary during linking.
27989# This must work even if \$libdir does not exist
27990hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27991
27992# If ld is used when linking, flag to hardcode \$libdir into a binary
27993# during linking. This must work even if \$libdir does not exist.
27994hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27995
27996# Whether we need a single "-rpath" flag with a separated argument.
27997hardcode_libdir_separator=$lt_hardcode_libdir_separator
27998
27999# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28000# DIR into the resulting binary.
28001hardcode_direct=$hardcode_direct
28002
28003# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28004# DIR into the resulting binary and the resulting library dependency is
28005# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28006# library is relocated.
28007hardcode_direct_absolute=$hardcode_direct_absolute
28008
28009# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28010# into the resulting binary.
28011hardcode_minus_L=$hardcode_minus_L
28012
28013# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28014# into the resulting binary.
28015hardcode_shlibpath_var=$hardcode_shlibpath_var
28016
28017# Set to "yes" if building a shared library automatically hardcodes DIR
28018# into the library and all subsequent libraries and executables linked
28019# against it.
28020hardcode_automatic=$hardcode_automatic
28021
28022# Set to yes if linker adds runtime paths of dependent libraries
28023# to runtime path list.
28024inherit_rpath=$inherit_rpath
28025
28026# Whether libtool must link a program against all its dependency libraries.
28027link_all_deplibs=$link_all_deplibs
28028
28029# Fix the shell variable \$srcfile for the compiler.
28030fix_srcfile_path=$lt_fix_srcfile_path
28031
28032# Set to "yes" if exported symbols are required.
28033always_export_symbols=$always_export_symbols
28034
28035# The commands to list exported symbols.
28036export_symbols_cmds=$lt_export_symbols_cmds
28037
28038# Symbols that should not be listed in the preloaded symbols.
28039exclude_expsyms=$lt_exclude_expsyms
28040
28041# Symbols that must always be exported.
28042include_expsyms=$lt_include_expsyms
28043
28044# Commands necessary for linking programs (against libraries) with templates.
28045prelink_cmds=$lt_prelink_cmds
28046
28047# Specify filename containing input files.
28048file_list_spec=$lt_file_list_spec
28049
28050# How to hardcode a shared library path into an executable.
28051hardcode_action=$hardcode_action
28052
00aafda4 28053# The directories searched by this compiler when creating a shared library.
28054compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28055
542f9784 28056# Dependencies to place before and after the objects being linked to
28057# create a shared library.
28058predep_objects=$lt_predep_objects
28059postdep_objects=$lt_postdep_objects
28060predeps=$lt_predeps
28061postdeps=$lt_postdeps
28062
28063# The library search path used internally by the compiler when linking
28064# a shared library.
28065compiler_lib_search_path=$lt_compiler_lib_search_path
28066
28067# ### END LIBTOOL CONFIG
28068
28069_LT_EOF
28070
28071 case $host_os in
28072 aix3*)
28073 cat <<\_LT_EOF >> "$cfgfile"
28074# AIX sometimes has problems with the GCC collect2 program. For some
28075# reason, if we set the COLLECT_NAMES environment variable, the problems
28076# vanish in a puff of smoke.
28077if test "X${COLLECT_NAMES+set}" != Xset; then
28078 COLLECT_NAMES=
28079 export COLLECT_NAMES
28080fi
28081_LT_EOF
28082 ;;
28083 esac
28084
28085
28086ltmain="$ac_aux_dir/ltmain.sh"
28087
28088
28089 # We use sed instead of cat because bash on DJGPP gets confused if
28090 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28091 # text mode, it properly converts lines to CR/LF. This bash problem
28092 # is reportedly fixed, but why not run on old versions too?
28093 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28094 || (rm -f "$cfgfile"; exit 1)
28095
28096 case $xsi_shell in
28097 yes)
28098 cat << \_LT_EOF >> "$cfgfile"
00aafda4 28099
542f9784 28100# func_dirname file append nondir_replacement
28101# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28102# otherwise set result to NONDIR_REPLACEMENT.
28103func_dirname ()
28104{
28105 case ${1} in
28106 */*) func_dirname_result="${1%/*}${2}" ;;
28107 * ) func_dirname_result="${3}" ;;
28108 esac
28109}
28110
28111# func_basename file
28112func_basename ()
28113{
28114 func_basename_result="${1##*/}"
28115}
28116
00aafda4 28117# func_dirname_and_basename file append nondir_replacement
28118# perform func_basename and func_dirname in a single function
28119# call:
28120# dirname: Compute the dirname of FILE. If nonempty,
28121# add APPEND to the result, otherwise set result
28122# to NONDIR_REPLACEMENT.
28123# value returned in "$func_dirname_result"
28124# basename: Compute filename of FILE.
28125# value retuned in "$func_basename_result"
28126# Implementation must be kept synchronized with func_dirname
28127# and func_basename. For efficiency, we do not delegate to
28128# those functions but instead duplicate the functionality here.
28129func_dirname_and_basename ()
28130{
28131 case ${1} in
28132 */*) func_dirname_result="${1%/*}${2}" ;;
28133 * ) func_dirname_result="${3}" ;;
28134 esac
28135 func_basename_result="${1##*/}"
28136}
28137
542f9784 28138# func_stripname prefix suffix name
28139# strip PREFIX and SUFFIX off of NAME.
28140# PREFIX and SUFFIX must not contain globbing or regex special
28141# characters, hashes, percent signs, but SUFFIX may contain a leading
28142# dot (in which case that matches only a dot).
28143func_stripname ()
28144{
28145 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28146 # positional parameters, so assign one to ordinary parameter first.
28147 func_stripname_result=${3}
28148 func_stripname_result=${func_stripname_result#"${1}"}
28149 func_stripname_result=${func_stripname_result%"${2}"}
28150}
28151
28152# func_opt_split
28153func_opt_split ()
28154{
28155 func_opt_split_opt=${1%%=*}
28156 func_opt_split_arg=${1#*=}
28157}
28158
28159# func_lo2o object
28160func_lo2o ()
28161{
28162 case ${1} in
28163 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28164 *) func_lo2o_result=${1} ;;
28165 esac
28166}
00aafda4 28167
28168# func_xform libobj-or-source
28169func_xform ()
28170{
28171 func_xform_result=${1%.*}.lo
28172}
28173
28174# func_arith arithmetic-term...
28175func_arith ()
28176{
28177 func_arith_result=$(( $* ))
28178}
28179
28180# func_len string
28181# STRING may not start with a hyphen.
28182func_len ()
28183{
28184 func_len_result=${#1}
28185}
28186
542f9784 28187_LT_EOF
28188 ;;
28189 *) # Bourne compatible functions.
28190 cat << \_LT_EOF >> "$cfgfile"
00aafda4 28191
542f9784 28192# func_dirname file append nondir_replacement
28193# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28194# otherwise set result to NONDIR_REPLACEMENT.
28195func_dirname ()
28196{
28197 # Extract subdirectory from the argument.
e6408286 28198 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
542f9784 28199 if test "X$func_dirname_result" = "X${1}"; then
28200 func_dirname_result="${3}"
28201 else
28202 func_dirname_result="$func_dirname_result${2}"
28203 fi
28204}
28205
28206# func_basename file
28207func_basename ()
28208{
e6408286 28209 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
542f9784 28210}
28211
00aafda4 28212
542f9784 28213# func_stripname prefix suffix name
28214# strip PREFIX and SUFFIX off of NAME.
28215# PREFIX and SUFFIX must not contain globbing or regex special
28216# characters, hashes, percent signs, but SUFFIX may contain a leading
28217# dot (in which case that matches only a dot).
28218# func_strip_suffix prefix name
28219func_stripname ()
28220{
28221 case ${2} in
e6408286 28222 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28223 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
542f9784 28224 esac
28225}
28226
28227# sed scripts:
28228my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28229my_sed_long_arg='1s/^-[^=]*=//'
28230
28231# func_opt_split
28232func_opt_split ()
28233{
e6408286 28234 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28235 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
542f9784 28236}
28237
28238# func_lo2o object
28239func_lo2o ()
28240{
e6408286 28241 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
542f9784 28242}
00aafda4 28243
28244# func_xform libobj-or-source
28245func_xform ()
28246{
e6408286 28247 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
00aafda4 28248}
28249
28250# func_arith arithmetic-term...
28251func_arith ()
28252{
28253 func_arith_result=`expr "$@"`
28254}
28255
28256# func_len string
28257# STRING may not start with a hyphen.
28258func_len ()
28259{
28260 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28261}
28262
542f9784 28263_LT_EOF
28264esac
28265
28266case $lt_shell_append in
28267 yes)
28268 cat << \_LT_EOF >> "$cfgfile"
28269
28270# func_append var value
28271# Append VALUE to the end of shell variable VAR.
28272func_append ()
28273{
28274 eval "$1+=\$2"
28275}
28276_LT_EOF
28277 ;;
28278 *)
28279 cat << \_LT_EOF >> "$cfgfile"
28280
28281# func_append var value
28282# Append VALUE to the end of shell variable VAR.
28283func_append ()
28284{
28285 eval "$1=\$$1\$2"
28286}
00aafda4 28287
542f9784 28288_LT_EOF
28289 ;;
28290 esac
28291
28292
28293 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28294 || (rm -f "$cfgfile"; exit 1)
28295
28296 mv -f "$cfgfile" "$ofile" ||
28297 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28298 chmod +x "$ofile"
28299
28300
28301 cat <<_LT_EOF >> "$ofile"
28302
28303# ### BEGIN LIBTOOL TAG CONFIG: FC
28304
28305# The linker used to build libraries.
28306LD=$lt_LD_FC
28307
e6408286 28308# How to create reloadable object files.
28309reload_flag=$lt_reload_flag_FC
28310reload_cmds=$lt_reload_cmds_FC
28311
542f9784 28312# Commands used to build an old-style archive.
28313old_archive_cmds=$lt_old_archive_cmds_FC
28314
28315# A language specific compiler.
28316CC=$lt_compiler_FC
28317
28318# Is the compiler the GNU compiler?
28319with_gcc=$GCC_FC
28320
28321# Compiler flag to turn off builtin functions.
28322no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
28323
28324# How to pass a linker flag through the compiler.
28325wl=$lt_lt_prog_compiler_wl_FC
28326
28327# Additional compiler flags for building library objects.
28328pic_flag=$lt_lt_prog_compiler_pic_FC
28329
28330# Compiler flag to prevent dynamic linking.
28331link_static_flag=$lt_lt_prog_compiler_static_FC
28332
28333# Does compiler simultaneously support -c and -o options?
28334compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
28335
28336# Whether or not to add -lc for building shared libraries.
28337build_libtool_need_lc=$archive_cmds_need_lc_FC
28338
28339# Whether or not to disallow shared libs when runtime libs are static.
28340allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
28341
28342# Compiler flag to allow reflexive dlopens.
28343export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
28344
28345# Compiler flag to generate shared objects directly from archives.
28346whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
28347
28348# Whether the compiler copes with passing no objects directly.
28349compiler_needs_object=$lt_compiler_needs_object_FC
28350
28351# Create an old-style archive from a shared archive.
28352old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
28353
28354# Create a temporary old-style archive to link instead of a shared archive.
28355old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
28356
28357# Commands used to build a shared archive.
28358archive_cmds=$lt_archive_cmds_FC
28359archive_expsym_cmds=$lt_archive_expsym_cmds_FC
28360
28361# Commands used to build a loadable module if different from building
28362# a shared archive.
28363module_cmds=$lt_module_cmds_FC
28364module_expsym_cmds=$lt_module_expsym_cmds_FC
28365
28366# Whether we are building with GNU ld or not.
28367with_gnu_ld=$lt_with_gnu_ld_FC
28368
28369# Flag that allows shared libraries with undefined symbols to be built.
28370allow_undefined_flag=$lt_allow_undefined_flag_FC
28371
28372# Flag that enforces no undefined symbols.
28373no_undefined_flag=$lt_no_undefined_flag_FC
28374
28375# Flag to hardcode \$libdir into a binary during linking.
28376# This must work even if \$libdir does not exist
28377hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
28378
28379# If ld is used when linking, flag to hardcode \$libdir into a binary
28380# during linking. This must work even if \$libdir does not exist.
28381hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
28382
28383# Whether we need a single "-rpath" flag with a separated argument.
28384hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
28385
28386# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28387# DIR into the resulting binary.
28388hardcode_direct=$hardcode_direct_FC
28389
28390# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28391# DIR into the resulting binary and the resulting library dependency is
28392# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28393# library is relocated.
28394hardcode_direct_absolute=$hardcode_direct_absolute_FC
28395
28396# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28397# into the resulting binary.
28398hardcode_minus_L=$hardcode_minus_L_FC
28399
28400# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28401# into the resulting binary.
28402hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
28403
28404# Set to "yes" if building a shared library automatically hardcodes DIR
28405# into the library and all subsequent libraries and executables linked
28406# against it.
28407hardcode_automatic=$hardcode_automatic_FC
28408
28409# Set to yes if linker adds runtime paths of dependent libraries
28410# to runtime path list.
28411inherit_rpath=$inherit_rpath_FC
28412
28413# Whether libtool must link a program against all its dependency libraries.
28414link_all_deplibs=$link_all_deplibs_FC
28415
28416# Fix the shell variable \$srcfile for the compiler.
28417fix_srcfile_path=$lt_fix_srcfile_path_FC
28418
28419# Set to "yes" if exported symbols are required.
28420always_export_symbols=$always_export_symbols_FC
28421
28422# The commands to list exported symbols.
28423export_symbols_cmds=$lt_export_symbols_cmds_FC
28424
28425# Symbols that should not be listed in the preloaded symbols.
28426exclude_expsyms=$lt_exclude_expsyms_FC
28427
28428# Symbols that must always be exported.
28429include_expsyms=$lt_include_expsyms_FC
28430
28431# Commands necessary for linking programs (against libraries) with templates.
28432prelink_cmds=$lt_prelink_cmds_FC
28433
28434# Specify filename containing input files.
28435file_list_spec=$lt_file_list_spec_FC
28436
28437# How to hardcode a shared library path into an executable.
28438hardcode_action=$hardcode_action_FC
28439
00aafda4 28440# The directories searched by this compiler when creating a shared library.
28441compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
28442
542f9784 28443# Dependencies to place before and after the objects being linked to
28444# create a shared library.
28445predep_objects=$lt_predep_objects_FC
28446postdep_objects=$lt_postdep_objects_FC
28447predeps=$lt_predeps_FC
28448postdeps=$lt_postdeps_FC
28449
28450# The library search path used internally by the compiler when linking
28451# a shared library.
28452compiler_lib_search_path=$lt_compiler_lib_search_path_FC
28453
28454# ### END LIBTOOL TAG CONFIG: FC
28455_LT_EOF
28456
2fd61f51 28457 ;;
cd9a469c 28458 "gstdint.h":C)
2069752c 28459if test "$GCC" = yes; then
28460 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
28461else
28462 echo "/* generated for $CC */" > tmp-stdint.h
28463fi
56c15991 28464
2069752c 28465sed 's/^ *//' >> tmp-stdint.h <<EOF
28466
28467 #ifndef GCC_GENERATED_STDINT_H
28468 #define GCC_GENERATED_STDINT_H 1
28469
28470 #include <sys/types.h>
56c15991 28471EOF
56c15991 28472
2069752c 28473if test "$acx_cv_header_stdint" != stdint.h; then
28474 echo "#include <stddef.h>" >> tmp-stdint.h
28475fi
28476if test "$acx_cv_header_stdint" != stddef.h; then
28477 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
28478fi
28479
28480sed 's/^ *//' >> tmp-stdint.h <<EOF
28481 /* glibc uses these symbols as guards to prevent redefinitions. */
28482 #ifdef __int8_t_defined
28483 #define _INT8_T
28484 #define _INT16_T
28485 #define _INT32_T
28486 #endif
28487 #ifdef __uint32_t_defined
28488 #define _UINT32_T
28489 #endif
28490
28491EOF
28492
28493# ----------------- done header, emit basic int types -------------
28494if test "$acx_cv_header_stdint" = stddef.h; then
28495 sed 's/^ *//' >> tmp-stdint.h <<EOF
28496
28497 #ifndef _UINT8_T
28498 #define _UINT8_T
28499 #ifndef __uint8_t_defined
28500 #define __uint8_t_defined
9ad2e3f3 28501 #ifndef uint8_t
2069752c 28502 typedef unsigned $acx_cv_type_int8_t uint8_t;
28503 #endif
28504 #endif
9ad2e3f3 28505 #endif
2069752c 28506
28507 #ifndef _UINT16_T
28508 #define _UINT16_T
28509 #ifndef __uint16_t_defined
28510 #define __uint16_t_defined
9ad2e3f3 28511 #ifndef uint16_t
2069752c 28512 typedef unsigned $acx_cv_type_int16_t uint16_t;
28513 #endif
28514 #endif
9ad2e3f3 28515 #endif
2069752c 28516
28517 #ifndef _UINT32_T
28518 #define _UINT32_T
28519 #ifndef __uint32_t_defined
28520 #define __uint32_t_defined
9ad2e3f3 28521 #ifndef uint32_t
2069752c 28522 typedef unsigned $acx_cv_type_int32_t uint32_t;
28523 #endif
28524 #endif
9ad2e3f3 28525 #endif
2069752c 28526
28527 #ifndef _INT8_T
28528 #define _INT8_T
28529 #ifndef __int8_t_defined
28530 #define __int8_t_defined
9ad2e3f3 28531 #ifndef int8_t
2069752c 28532 typedef $acx_cv_type_int8_t int8_t;
28533 #endif
28534 #endif
9ad2e3f3 28535 #endif
2069752c 28536
28537 #ifndef _INT16_T
28538 #define _INT16_T
28539 #ifndef __int16_t_defined
28540 #define __int16_t_defined
9ad2e3f3 28541 #ifndef int16_t
2069752c 28542 typedef $acx_cv_type_int16_t int16_t;
28543 #endif
28544 #endif
9ad2e3f3 28545 #endif
2069752c 28546
28547 #ifndef _INT32_T
28548 #define _INT32_T
28549 #ifndef __int32_t_defined
28550 #define __int32_t_defined
9ad2e3f3 28551 #ifndef int32_t
2069752c 28552 typedef $acx_cv_type_int32_t int32_t;
28553 #endif
28554 #endif
9ad2e3f3 28555 #endif
2069752c 28556EOF
28557elif test "$ac_cv_type_u_int32_t" = yes; then
28558 sed 's/^ *//' >> tmp-stdint.h <<EOF
28559
28560 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
28561 #ifndef _INT8_T
28562 #define _INT8_T
28563 #endif
28564 #ifndef _INT16_T
28565 #define _INT16_T
28566 #endif
28567 #ifndef _INT32_T
28568 #define _INT32_T
28569 #endif
28570
28571 #ifndef _UINT8_T
28572 #define _UINT8_T
28573 #ifndef __uint8_t_defined
28574 #define __uint8_t_defined
9ad2e3f3 28575 #ifndef uint8_t
2069752c 28576 typedef u_int8_t uint8_t;
28577 #endif
28578 #endif
9ad2e3f3 28579 #endif
2069752c 28580
28581 #ifndef _UINT16_T
28582 #define _UINT16_T
28583 #ifndef __uint16_t_defined
28584 #define __uint16_t_defined
9ad2e3f3 28585 #ifndef uint16_t
2069752c 28586 typedef u_int16_t uint16_t;
28587 #endif
28588 #endif
9ad2e3f3 28589 #endif
2069752c 28590
28591 #ifndef _UINT32_T
28592 #define _UINT32_T
28593 #ifndef __uint32_t_defined
28594 #define __uint32_t_defined
9ad2e3f3 28595 #ifndef uint32_t
2069752c 28596 typedef u_int32_t uint32_t;
28597 #endif
28598 #endif
9ad2e3f3 28599 #endif
2069752c 28600EOF
28601else
28602 sed 's/^ *//' >> tmp-stdint.h <<EOF
28603
28604 /* Some systems have guard macros to prevent redefinitions, define them. */
28605 #ifndef _INT8_T
28606 #define _INT8_T
28607 #endif
28608 #ifndef _INT16_T
28609 #define _INT16_T
28610 #endif
28611 #ifndef _INT32_T
28612 #define _INT32_T
28613 #endif
28614 #ifndef _UINT8_T
28615 #define _UINT8_T
28616 #endif
28617 #ifndef _UINT16_T
28618 #define _UINT16_T
28619 #endif
28620 #ifndef _UINT32_T
28621 #define _UINT32_T
28622 #endif
28623EOF
28624fi
28625
28626# ------------- done basic int types, emit int64_t types ------------
28627if test "$ac_cv_type_uint64_t" = yes; then
28628 sed 's/^ *//' >> tmp-stdint.h <<EOF
28629
28630 /* system headers have good uint64_t and int64_t */
28631 #ifndef _INT64_T
28632 #define _INT64_T
28633 #endif
28634 #ifndef _UINT64_T
28635 #define _UINT64_T
28636 #endif
28637EOF
28638elif test "$ac_cv_type_u_int64_t" = yes; then
28639 sed 's/^ *//' >> tmp-stdint.h <<EOF
28640
28641 /* system headers have an u_int64_t (and int64_t) */
28642 #ifndef _INT64_T
28643 #define _INT64_T
28644 #endif
28645 #ifndef _UINT64_T
28646 #define _UINT64_T
28647 #ifndef __uint64_t_defined
28648 #define __uint64_t_defined
9ad2e3f3 28649 #ifndef uint64_t
2069752c 28650 typedef u_int64_t uint64_t;
28651 #endif
28652 #endif
9ad2e3f3 28653 #endif
2069752c 28654EOF
28655elif test -n "$acx_cv_type_int64_t"; then
28656 sed 's/^ *//' >> tmp-stdint.h <<EOF
28657
28658 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
28659 #ifndef _INT64_T
28660 #define _INT64_T
9ad2e3f3 28661 #ifndef int64_t
2069752c 28662 typedef $acx_cv_type_int64_t int64_t;
28663 #endif
9ad2e3f3 28664 #endif
2069752c 28665 #ifndef _UINT64_T
28666 #define _UINT64_T
28667 #ifndef __uint64_t_defined
28668 #define __uint64_t_defined
9ad2e3f3 28669 #ifndef uint64_t
2069752c 28670 typedef unsigned $acx_cv_type_int64_t uint64_t;
28671 #endif
28672 #endif
9ad2e3f3 28673 #endif
2069752c 28674EOF
28675else
28676 sed 's/^ *//' >> tmp-stdint.h <<EOF
28677
28678 /* some common heuristics for int64_t, using compiler-specific tests */
28679 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
28680 #ifndef _INT64_T
28681 #define _INT64_T
28682 #ifndef __int64_t_defined
9ad2e3f3 28683 #ifndef int64_t
2069752c 28684 typedef long long int64_t;
28685 #endif
28686 #endif
9ad2e3f3 28687 #endif
2069752c 28688 #ifndef _UINT64_T
28689 #define _UINT64_T
9ad2e3f3 28690 #ifndef uint64_t
2069752c 28691 typedef unsigned long long uint64_t;
28692 #endif
9ad2e3f3 28693 #endif
2069752c 28694
28695 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
28696 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
28697 does not implement __extension__. But that compiler doesn't define
28698 __GNUC_MINOR__. */
28699 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
28700 # define __extension__
28701 # endif
28702
28703 # ifndef _INT64_T
28704 # define _INT64_T
9ad2e3f3 28705 # ifndef int64_t
2069752c 28706 __extension__ typedef long long int64_t;
28707 # endif
9ad2e3f3 28708 # endif
2069752c 28709 # ifndef _UINT64_T
28710 # define _UINT64_T
9ad2e3f3 28711 # ifndef uint64_t
2069752c 28712 __extension__ typedef unsigned long long uint64_t;
28713 # endif
9ad2e3f3 28714 # endif
2069752c 28715
28716 #elif !defined __STRICT_ANSI__
28717 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
28718
28719 # ifndef _INT64_T
28720 # define _INT64_T
9ad2e3f3 28721 # ifndef int64_t
2069752c 28722 typedef __int64 int64_t;
28723 # endif
9ad2e3f3 28724 # endif
2069752c 28725 # ifndef _UINT64_T
28726 # define _UINT64_T
9ad2e3f3 28727 # ifndef uint64_t
2069752c 28728 typedef unsigned __int64 uint64_t;
28729 # endif
9ad2e3f3 28730 # endif
2069752c 28731 # endif /* compiler */
28732
28733 #endif /* ANSI version */
28734EOF
28735fi
28736
28737# ------------- done int64_t types, emit intptr types ------------
28738if test "$ac_cv_type_uintptr_t" != yes; then
28739 sed 's/^ *//' >> tmp-stdint.h <<EOF
28740
28741 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
28742 #ifndef __uintptr_t_defined
9ad2e3f3 28743 #ifndef uintptr_t
2069752c 28744 typedef u$acx_cv_type_intptr_t uintptr_t;
28745 #endif
9ad2e3f3 28746 #endif
2069752c 28747 #ifndef __intptr_t_defined
9ad2e3f3 28748 #ifndef intptr_t
2069752c 28749 typedef $acx_cv_type_intptr_t intptr_t;
28750 #endif
9ad2e3f3 28751 #endif
2069752c 28752EOF
28753fi
28754
28755# ------------- done intptr types, emit int_least types ------------
56c15991 28756if test "$ac_cv_type_int_least32_t" != yes; then
2069752c 28757 sed 's/^ *//' >> tmp-stdint.h <<EOF
56c15991 28758
28759 /* Define int_least types */
28760 typedef int8_t int_least8_t;
28761 typedef int16_t int_least16_t;
28762 typedef int32_t int_least32_t;
2069752c 28763 #ifdef _INT64_T
56c15991 28764 typedef int64_t int_least64_t;
2069752c 28765 #endif
56c15991 28766
28767 typedef uint8_t uint_least8_t;
28768 typedef uint16_t uint_least16_t;
28769 typedef uint32_t uint_least32_t;
2069752c 28770 #ifdef _UINT64_T
56c15991 28771 typedef uint64_t uint_least64_t;
2069752c 28772 #endif
56c15991 28773EOF
28774fi
28775
2069752c 28776# ------------- done intptr types, emit int_fast types ------------
56c15991 28777if test "$ac_cv_type_int_fast32_t" != yes; then
2069752c 28778 sed 's/^ *//' >> tmp-stdint.h <<EOF
56c15991 28779
28780 /* Define int_fast types. short is often slow */
28781 typedef int8_t int_fast8_t;
28782 typedef int int_fast16_t;
28783 typedef int32_t int_fast32_t;
2069752c 28784 #ifdef _INT64_T
56c15991 28785 typedef int64_t int_fast64_t;
2069752c 28786 #endif
56c15991 28787
28788 typedef uint8_t uint_fast8_t;
28789 typedef unsigned int uint_fast16_t;
28790 typedef uint32_t uint_fast32_t;
2069752c 28791 #ifdef _UINT64_T
56c15991 28792 typedef uint64_t uint_fast64_t;
2069752c 28793 #endif
28794EOF
28795fi
28796
28797if test "$ac_cv_type_uintmax_t" != yes; then
28798 sed 's/^ *//' >> tmp-stdint.h <<EOF
28799
28800 /* Define intmax based on what we found */
9ad2e3f3 28801 #ifndef intmax_t
2069752c 28802 #ifdef _INT64_T
28803 typedef int64_t intmax_t;
28804 #else
28805 typedef long intmax_t;
28806 #endif
9ad2e3f3 28807 #endif
28808 #ifndef uintmax_t
2069752c 28809 #ifdef _UINT64_T
28810 typedef uint64_t uintmax_t;
28811 #else
28812 typedef unsigned long uintmax_t;
28813 #endif
9ad2e3f3 28814 #endif
56c15991 28815EOF
28816fi
28817
2069752c 28818sed 's/^ *//' >> tmp-stdint.h <<EOF
28819
28820 #endif /* GCC_GENERATED_STDINT_H */
28821EOF
56c15991 28822
2069752c 28823if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
28824 rm -f tmp-stdint.h
56c15991 28825else
2069752c 28826 mv -f tmp-stdint.h gstdint.h
56c15991 28827fi
28828
28829 ;;
cd9a469c 28830
4ee9c684 28831 esac
cd9a469c 28832done # for ac_tag
4ee9c684 28833
4ee9c684 28834
cd9a469c 28835as_fn_exit 0
4ee9c684 28836_ACEOF
4ee9c684 28837ac_clean_files=$ac_clean_files_save
28838
cd9a469c 28839test $ac_write_fail = 0 ||
28840 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28841
4ee9c684 28842
28843# configure is writing to config.log, and then calls config.status.
28844# config.status does its own redirection, appending to config.log.
28845# Unfortunately, on DOS this fails, as config.log is still kept open
28846# by configure, so config.status won't be able to write to it; its
28847# output is simply discarded. So we exec the FD to /dev/null,
28848# effectively closing config.log, so it can be properly (re)opened and
28849# appended to by config.status. When coming back to configure, we
28850# need to make the FD available again.
28851if test "$no_create" != yes; then
28852 ac_cs_success=:
28853 ac_config_status_args=
28854 test "$silent" = yes &&
28855 ac_config_status_args="$ac_config_status_args --quiet"
28856 exec 5>/dev/null
28857 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28858 exec 5>>config.log
28859 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28860 # would make configure fail if this is the last instruction.
cd9a469c 28861 $ac_cs_success || as_fn_exit $?
28862fi
28863if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28865$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4ee9c684 28866fi
28867